@akad/design-system 0.2.0-beta.13 → 0.2.0-beta.15

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.
@@ -5,16 +5,16 @@
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var Xt;function ka(){if(Xt)return U;Xt=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,n=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,k=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,F=r?Symbol.for("react.responder"):60118,z=r?Symbol.for("react.scope"):60119;function w(p){if(typeof p=="object"&&p!==null){var E=p.$$typeof;switch(E){case e:switch(p=p.type,p){case c:case d:case s:case n:case a:case f:return p;default:switch(p=p&&p.$$typeof,p){case l:case h:case C:case k:case i:return p;default:return E}}case t:return E}}}function A(p){return w(p)===d}return U.AsyncMode=c,U.ConcurrentMode=d,U.ContextConsumer=l,U.ContextProvider=i,U.Element=e,U.ForwardRef=h,U.Fragment=s,U.Lazy=C,U.Memo=k,U.Portal=t,U.Profiler=n,U.StrictMode=a,U.Suspense=f,U.isAsyncMode=function(p){return A(p)||w(p)===c},U.isConcurrentMode=A,U.isContextConsumer=function(p){return w(p)===l},U.isContextProvider=function(p){return w(p)===i},U.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},U.isForwardRef=function(p){return w(p)===h},U.isFragment=function(p){return w(p)===s},U.isLazy=function(p){return w(p)===C},U.isMemo=function(p){return w(p)===k},U.isPortal=function(p){return w(p)===t},U.isProfiler=function(p){return w(p)===n},U.isStrictMode=function(p){return w(p)===a},U.isSuspense=function(p){return w(p)===f},U.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===s||p===d||p===n||p===a||p===f||p===v||typeof p=="object"&&p!==null&&(p.$$typeof===C||p.$$typeof===k||p.$$typeof===i||p.$$typeof===l||p.$$typeof===h||p.$$typeof===y||p.$$typeof===F||p.$$typeof===z||p.$$typeof===_)},U.typeOf=w,U}var W={};/** @license React v16.13.1
8
+ */var Xt;function ka(){if(Xt)return U;Xt=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,n=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,k=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,F=r?Symbol.for("react.responder"):60118,z=r?Symbol.for("react.scope"):60119;function w(p){if(typeof p=="object"&&p!==null){var A=p.$$typeof;switch(A){case e:switch(p=p.type,p){case c:case d:case s:case n:case a:case f:return p;default:switch(p=p&&p.$$typeof,p){case l:case h:case C:case k:case i:return p;default:return A}}case t:return A}}}function T(p){return w(p)===d}return U.AsyncMode=c,U.ConcurrentMode=d,U.ContextConsumer=l,U.ContextProvider=i,U.Element=e,U.ForwardRef=h,U.Fragment=s,U.Lazy=C,U.Memo=k,U.Portal=t,U.Profiler=n,U.StrictMode=a,U.Suspense=f,U.isAsyncMode=function(p){return T(p)||w(p)===c},U.isConcurrentMode=T,U.isContextConsumer=function(p){return w(p)===l},U.isContextProvider=function(p){return w(p)===i},U.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},U.isForwardRef=function(p){return w(p)===h},U.isFragment=function(p){return w(p)===s},U.isLazy=function(p){return w(p)===C},U.isMemo=function(p){return w(p)===k},U.isPortal=function(p){return w(p)===t},U.isProfiler=function(p){return w(p)===n},U.isStrictMode=function(p){return w(p)===a},U.isSuspense=function(p){return w(p)===f},U.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===s||p===d||p===n||p===a||p===f||p===v||typeof p=="object"&&p!==null&&(p.$$typeof===C||p.$$typeof===k||p.$$typeof===i||p.$$typeof===l||p.$$typeof===h||p.$$typeof===y||p.$$typeof===F||p.$$typeof===z||p.$$typeof===_)},U.typeOf=w,U}var W={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Kt;function ba(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,n=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,k=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,F=r?Symbol.for("react.responder"):60118,z=r?Symbol.for("react.scope"):60119;function w(b){return typeof b=="string"||typeof b=="function"||b===s||b===d||b===n||b===a||b===f||b===v||typeof b=="object"&&b!==null&&(b.$$typeof===C||b.$$typeof===k||b.$$typeof===i||b.$$typeof===l||b.$$typeof===h||b.$$typeof===y||b.$$typeof===F||b.$$typeof===z||b.$$typeof===_)}function A(b){if(typeof b=="object"&&b!==null){var Te=b.$$typeof;switch(Te){case e:var gt=b.type;switch(gt){case c:case d:case s:case n:case a:case f:return gt;default:var _a=gt&&gt.$$typeof;switch(_a){case l:case h:case C:case k:case i:return _a;default:return Te}}case t:return Te}}}var p=c,E=d,$=l,X=i,I=e,se=h,pe=s,he=C,Fe=k,_e=t,ze=n,le=a,ve=f,Ie=!1;function Ne(b){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),m(b)||A(b)===c}function m(b){return A(b)===d}function S(b){return A(b)===l}function P(b){return A(b)===i}function V(b){return typeof b=="object"&&b!==null&&b.$$typeof===e}function N(b){return A(b)===h}function x(b){return A(b)===s}function L(b){return A(b)===C}function j(b){return A(b)===k}function H(b){return A(b)===t}function D(b){return A(b)===n}function q(b){return A(b)===a}function ee(b){return A(b)===f}W.AsyncMode=p,W.ConcurrentMode=E,W.ContextConsumer=$,W.ContextProvider=X,W.Element=I,W.ForwardRef=se,W.Fragment=pe,W.Lazy=he,W.Memo=Fe,W.Portal=_e,W.Profiler=ze,W.StrictMode=le,W.Suspense=ve,W.isAsyncMode=Ne,W.isConcurrentMode=m,W.isContextConsumer=S,W.isContextProvider=P,W.isElement=V,W.isForwardRef=N,W.isFragment=x,W.isLazy=L,W.isMemo=j,W.isPortal=H,W.isProfiler=D,W.isStrictMode=q,W.isSuspense=ee,W.isValidElementType=w,W.typeOf=A}()),W}var Zt;function Jt(){return Zt||(Zt=1,process.env.NODE_ENV==="production"?Ze.exports=ka():Ze.exports=ba()),Ze.exports}/*
15
+ */var Kt;function ba(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,n=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,k=r?Symbol.for("react.memo"):60115,C=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,F=r?Symbol.for("react.responder"):60118,z=r?Symbol.for("react.scope"):60119;function w(b){return typeof b=="string"||typeof b=="function"||b===s||b===d||b===n||b===a||b===f||b===v||typeof b=="object"&&b!==null&&(b.$$typeof===C||b.$$typeof===k||b.$$typeof===i||b.$$typeof===l||b.$$typeof===h||b.$$typeof===y||b.$$typeof===F||b.$$typeof===z||b.$$typeof===_)}function T(b){if(typeof b=="object"&&b!==null){var Te=b.$$typeof;switch(Te){case e:var gt=b.type;switch(gt){case c:case d:case s:case n:case a:case f:return gt;default:var _a=gt&&gt.$$typeof;switch(_a){case l:case h:case C:case k:case i:return _a;default:return Te}}case t:return Te}}}var p=c,A=d,M=l,G=i,I=e,se=h,pe=s,he=C,Fe=k,_e=t,ze=n,le=a,ve=f,Ie=!1;function Ne(b){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),m(b)||T(b)===c}function m(b){return T(b)===d}function S(b){return T(b)===l}function P(b){return T(b)===i}function V(b){return typeof b=="object"&&b!==null&&b.$$typeof===e}function N(b){return T(b)===h}function x(b){return T(b)===s}function L(b){return T(b)===C}function j(b){return T(b)===k}function H(b){return T(b)===t}function D(b){return T(b)===n}function q(b){return T(b)===a}function ee(b){return T(b)===f}W.AsyncMode=p,W.ConcurrentMode=A,W.ContextConsumer=M,W.ContextProvider=G,W.Element=I,W.ForwardRef=se,W.Fragment=pe,W.Lazy=he,W.Memo=Fe,W.Portal=_e,W.Profiler=ze,W.StrictMode=le,W.Suspense=ve,W.isAsyncMode=Ne,W.isConcurrentMode=m,W.isContextConsumer=S,W.isContextProvider=P,W.isElement=V,W.isForwardRef=N,W.isFragment=x,W.isLazy=L,W.isMemo=j,W.isPortal=H,W.isProfiler=D,W.isStrictMode=q,W.isSuspense=ee,W.isValidElementType=w,W.typeOf=T}()),W}var Zt;function Jt(){return Zt||(Zt=1,process.env.NODE_ENV==="production"?Ze.exports=ka():Ze.exports=ba()),Ze.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var yt,Qt;function Sa(){if(Qt)return yt;Qt=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function s(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function a(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(h){return i[h]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return yt=a()?Object.assign:function(n,i){for(var l,c=s(n),d,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var f in l)e.call(l,f)&&(c[f]=l[f]);if(r){d=r(l);for(var v=0;v<d.length;v++)t.call(l,d[v])&&(c[d[v]]=l[d[v]])}}return c},yt}var _t,es;function vt(){if(es)return _t;es=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _t=r,_t}var kt,ts;function ss(){return ts||(ts=1,kt=Function.call.bind(Object.prototype.hasOwnProperty)),kt}var bt,as;function Ca(){if(as)return bt;as=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=vt(),t={},s=ss();r=function(n){var i="Warning: "+n;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(n,i,l,c,d){if(process.env.NODE_ENV!=="production"){for(var h in n)if(s(n,h)){var f;try{if(typeof n[h]!="function"){var v=Error((c||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}f=n[h](i,h,c,l,null,e)}catch(C){f=C}if(f&&!(f instanceof Error)&&r((c||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in t)){t[f.message]=!0;var k=d?d():"";r("Failed "+l+" type: "+f.message+(k??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},bt=a,bt}var St,ns;function Ea(){if(ns)return St;ns=1;var r=Jt(),e=Sa(),t=vt(),s=ss(),a=Ca(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return St=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(m){var S=m&&(d&&m[d]||m[h]);if(typeof S=="function")return S}var v="<<anonymous>>",k={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:z(),arrayOf:w,element:A(),elementType:p(),instanceOf:E,node:se(),objectOf:X,oneOf:$,oneOfType:I,shape:he,exact:Fe};function C(m,S){return m===S?m!==0||1/m===1/S:m!==m&&S!==S}function _(m,S){this.message=m,this.data=S&&typeof S=="object"?S:{},this.stack=""}_.prototype=Error.prototype;function y(m){if(process.env.NODE_ENV!=="production")var S={},P=0;function V(x,L,j,H,D,q,ee){if(H=H||v,q=q||j,ee!==t){if(c){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=H+":"+j;!S[Te]&&P<3&&(n("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),S[Te]=!0,P++)}}return L[j]==null?x?L[j]===null?new _("The "+D+" `"+q+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new _("The "+D+" `"+q+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:m(L,j,H,D,q)}var N=V.bind(null,!1);return N.isRequired=V.bind(null,!0),N}function F(m){function S(P,V,N,x,L,j){var H=P[V],D=le(H);if(D!==m){var q=ve(H);return new _("Invalid "+x+" `"+L+"` of type "+("`"+q+"` supplied to `"+N+"`, expected ")+("`"+m+"`."),{expectedType:m})}return null}return y(S)}function z(){return y(i)}function w(m){function S(P,V,N,x,L){if(typeof m!="function")return new _("Property `"+L+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var j=P[V];if(!Array.isArray(j)){var H=le(j);return new _("Invalid "+x+" `"+L+"` of type "+("`"+H+"` supplied to `"+N+"`, expected an array."))}for(var D=0;D<j.length;D++){var q=m(j,D,N,x,L+"["+D+"]",t);if(q instanceof Error)return q}return null}return y(S)}function A(){function m(S,P,V,N,x){var L=S[P];if(!l(L)){var j=le(L);return new _("Invalid "+N+" `"+x+"` of type "+("`"+j+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return y(m)}function p(){function m(S,P,V,N,x){var L=S[P];if(!r.isValidElementType(L)){var j=le(L);return new _("Invalid "+N+" `"+x+"` of type "+("`"+j+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return y(m)}function E(m){function S(P,V,N,x,L){if(!(P[V]instanceof m)){var j=m.name||v,H=Ne(P[V]);return new _("Invalid "+x+" `"+L+"` of type "+("`"+H+"` supplied to `"+N+"`, expected ")+("instance of `"+j+"`."))}return null}return y(S)}function $(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),i;function S(P,V,N,x,L){for(var j=P[V],H=0;H<m.length;H++)if(C(j,m[H]))return null;var D=JSON.stringify(m,function(ee,b){var Te=ve(b);return Te==="symbol"?String(b):b});return new _("Invalid "+x+" `"+L+"` of value `"+String(j)+"` "+("supplied to `"+N+"`, expected one of "+D+"."))}return y(S)}function X(m){function S(P,V,N,x,L){if(typeof m!="function")return new _("Property `"+L+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var j=P[V],H=le(j);if(H!=="object")return new _("Invalid "+x+" `"+L+"` of type "+("`"+H+"` supplied to `"+N+"`, expected an object."));for(var D in j)if(s(j,D)){var q=m(j,D,N,x,L+"."+D,t);if(q instanceof Error)return q}return null}return y(S)}function I(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var S=0;S<m.length;S++){var P=m[S];if(typeof P!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(P)+" at index "+S+"."),i}function V(N,x,L,j,H){for(var D=[],q=0;q<m.length;q++){var ee=m[q],b=ee(N,x,L,j,H,t);if(b==null)return null;b.data&&s(b.data,"expectedType")&&D.push(b.data.expectedType)}var Te=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new _("Invalid "+j+" `"+H+"` supplied to "+("`"+L+"`"+Te+"."))}return y(V)}function se(){function m(S,P,V,N,x){return _e(S[P])?null:new _("Invalid "+N+" `"+x+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return y(m)}function pe(m,S,P,V,N){return new _((m||"React class")+": "+S+" type `"+P+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function he(m){function S(P,V,N,x,L){var j=P[V],H=le(j);if(H!=="object")return new _("Invalid "+x+" `"+L+"` of type `"+H+"` "+("supplied to `"+N+"`, expected `object`."));for(var D in m){var q=m[D];if(typeof q!="function")return pe(N,x,L,D,ve(q));var ee=q(j,D,N,x,L+"."+D,t);if(ee)return ee}return null}return y(S)}function Fe(m){function S(P,V,N,x,L){var j=P[V],H=le(j);if(H!=="object")return new _("Invalid "+x+" `"+L+"` of type `"+H+"` "+("supplied to `"+N+"`, expected `object`."));var D=e({},P[V],m);for(var q in D){var ee=m[q];if(s(m,q)&&typeof ee!="function")return pe(N,x,L,q,ve(ee));if(!ee)return new _("Invalid "+x+" `"+L+"` key `"+q+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(P[V],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(m),null," "));var b=ee(j,q,N,x,L+"."+q,t);if(b)return b}return null}return y(S)}function _e(m){switch(typeof m){case"number":case"string":case"undefined":return!0;case"boolean":return!m;case"object":if(Array.isArray(m))return m.every(_e);if(m===null||l(m))return!0;var S=f(m);if(S){var P=S.call(m),V;if(S!==m.entries){for(;!(V=P.next()).done;)if(!_e(V.value))return!1}else for(;!(V=P.next()).done;){var N=V.value;if(N&&!_e(N[1]))return!1}}else return!1;return!0;default:return!1}}function ze(m,S){return m==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function le(m){var S=typeof m;return Array.isArray(m)?"array":m instanceof RegExp?"object":ze(S,m)?"symbol":S}function ve(m){if(typeof m>"u"||m===null)return""+m;var S=le(m);if(S==="object"){if(m instanceof Date)return"date";if(m instanceof RegExp)return"regexp"}return S}function Ie(m){var S=ve(m);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function Ne(m){return!m.constructor||!m.constructor.name?v:m.constructor.name}return k.checkPropTypes=a,k.resetWarningCache=a.resetWarningCache,k.PropTypes=k,k},St}var Ct,rs;function Ta(){if(rs)return Ct;rs=1;var r=vt();function e(){}function t(){}return t.resetWarningCache=e,Ct=function(){function s(i,l,c,d,h,f){if(f!==r){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}s.isRequired=s;function a(){return s}var n={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:a,element:s,elementType:s,instanceOf:a,node:s,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:e};return n.PropTypes=n,n},Ct}if(process.env.NODE_ENV!=="production"){var Aa=Jt(),xa=!0;mt.exports=Ea()(Aa.isElement,xa)}else mt.exports=Ta()();var wa=mt.exports;const o=va(wa),is={Primary:"primary",Secondary:"secondary",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Neutral:"neutral"},os={Solid:"solid",Outline:"outline",Text:"text"},ls={Large:"lg",Medium:"md",Small:"sm"},us={Right:"right",Left:"left"},Y={name:"Button",class:"ds-button",props:{color:{type:String,default:is.Primary,options:Object.values(is)},variant:{type:String,default:os.Solid,options:Object.values(os)},size:{type:String,default:ls.Medium,options:Object.values(ls)},elevation:{type:Number,options:[1,2,3,4]},disabled:{type:Boolean,default:!1},icon:{type:String,default:""},iconFill:{type:Boolean,default:!0},iconPosition:{type:String,default:us.Right,options:Object.values(us)},id:{type:String,default:""},testId:{type:String,default:"ds-button-test"},fullSize:{type:Boolean,default:!1}}},cs={Primary:"primary",PrimaryLightest:"primary-lightest",PrimaryLighter:"primary-lighter",PrimaryLight:"primary-light",PrimaryDark:"primary-dark",PrimaryDarker:"primary-darker",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",Secondary:"secondary",SecondaryLightest:"secondary-lightest",SecondaryLighter:"secondary-lighter",SecondaryLight:"secondary-light",SecondaryDark:"secondary-dark",SecondaryDarker:"secondary-darker",Success:"success",SuccessLighter:"success-lighter",SuccessLight:"success-light",SuccessDark:"success-dark",Warning:"warning",WarningLighter:"warning-lighter",WarningLight:"warning-light",WarningDark:"warning-dark",Danger:"danger",DangerLighter:"danger-lighter",DangerLight:"danger-light",DangerDark:"danger-dark",Info:"info",InfoLighter:"info-lighter",InfoLight:"info-light",InfoDark:"info-dark"},ds={Outlined:"outlined",Rounded:"rounded",Sharp:"sharp"},ps={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl",Huge:"huge"},hs={Bold:"bold",Semibold:"semibold",Medium:"medium",Regular:"regular",Light:"light",Extralight:"extralight"},ie={name:"Icon",class:"ds-icon",props:{color:{type:String,default:cs.Neutral90,options:Object.values(cs)},image:{type:String,default:"settings"},variation:{type:String,default:ds.Outlined,options:Object.values(ds)},size:{type:String,default:ps.MD,options:Object.values(ps)},fontVariationSettings:{type:Object,default:{fill:0,grad:0,weight:500,opticalSize:48}},fill:{type:Boolean,default:!1},testId:{type:String,default:"ds-icon-test"},weight:{type:String,default:hs.Semibold,options:Object.values(hs)},onClick:{type:Function,default:()=>({})}}},Da={bold:700,semibold:600,medium:500,regular:400,light:300,extralight:200},R=({image:r=ie.props.image.default,color:e=ie.props.color.default,className:t,size:s=ie.props.size.default,fill:a=ie.props.fill.default,weight:n=ie.props.weight.default,testId:i=ie.props.testId.default,onClick:l=ie.props.onClick.default})=>{const c="material-symbols-rounded",d=e&&ie.props.color.options.find(f=>f===e)&&`${ie.class}__color--${e}`,h=g.useMemo(()=>({fontVariationSettings:`'FILL' ${a?1:0}, 'GRAD' 0,'wght' ${Da[n]}, 'opsz' 48`}),[n,a]);return u.jsx("i",{className:[`${ie.class}--${s}`,ie.class,c,d,t&&t].filter(f=>f).join(" "),"data-testid":i,onClick:l,style:h,translate:"no",children:r})};R.propTypes={color:o.oneOf(ie.props.color.options),image:o.string,fontVariationSettings:o.object,size:o.oneOf(ie.props.size.options),fill:o.bool,weight:o.oneOf(ie.props.weight.options),onClick:o.func},R.displayName="DsIcon";const We=({children:r,className:e,onClick:t,size:s=Y.props.size.default,disabled:a=Y.props.disabled.default,icon:n=Y.props.icon.default,id:i=Y.props.id.default,testId:l=Y.props.testId.default,elevation:c,variant:d=Y.props.variant.default,color:h=Y.props.color.default,iconFill:f=Y.props.iconFill.default,iconPosition:v=Y.props.iconPosition.default,fullSize:k=Y.props.fullSize.default})=>{const C=s&&Y.props.size.options.find(E=>E===s)?`${Y.class}--${s}`:`${Y.class}__${Y.props.size.default}`,_=a&&`${Y.class}--disabled`,y=`${Y.class}__${h}--${d}`,F=c&&`${Y.class}--elevation-${c}`,z=n&&`${Y.class}--with-icon`,w=k?`${Y.class}--full-size`:"",A=v==="right"?`${Y.class}__icon`:`${Y.class}__icon--left`,p=v==="right"?`${Y.class}__text`:`${Y.class}__text--reversed`;return u.jsx("button",{className:[Y.class,w,_,z,C,y,F,z,e&&e].filter(E=>E).join(" "),"data-testid":l,disabled:a,id:i,onClick:a?void 0:t,children:u.jsxs("span",{className:["ds-button__text",p].join(" "),children:[r,n&&u.jsx(R,{className:["ds-button__icon",A].join(" "),fill:f,image:n,size:s})]})})};We.propTypes={color:o.oneOf(Y.props.color.options),variant:o.oneOf(Y.props.variant.options),size:o.oneOf(Y.props.size.options),disabled:o.bool,icon:o.string,iconFill:o.bool,iconPosition:o.oneOf(Y.props.iconPosition.options),testId:o.string,id:o.string,fullSize:o.bool},We.displayName="DsButton";const Fa={name:"Caption",class:"ds-caption"},Et=({children:r,className:e,testId:t="ds-caption-test"})=>u.jsx("p",{className:[Fa.class,e&&e].filter(s=>s).join(" "),"data-testid":t,children:r});Et.propTypes={children:o.node.isRequired,className:o.string,testId:o.string},Et.displayName="DsCaption";const Je={None:"",PrimaryDarker:"primary-darker",PrimaryDark:"primary-dark",Primary:"primary",PrimaryLight:"primary-light",PrimaryLighter:"primary-lighter",PrimaryLightest:"primary-lightest",SecondaryDarker:"secondary-darker",SecondaryDark:"secondary-dark",Secondary:"secondary",SecondaryLight:"secondary-light",SecondaryLighter:"secondary-lighter",SecondaryLightest:"secondary-lightest",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",SuccessDark:"success-dark",Success:"success",SuccessLight:"success-light",SuccessLighter:"success-lighter",WarningDark:"warning-dark",Warning:"warning",WarningLight:"warning-light",WarningLighter:"warning-lighter",DangerDark:"danger-dark",Danger:"danger",DangerLight:"danger-light",DangerLighter:"danger-lighter",InfoDark:"info-dark",Info:"info",InfoLight:"info-light",InfoLighter:"info-lighter"},ge={name:"Card",class:"ds-card",props:{backgroundColor:{type:String,default:Je.None,options:Object.values(Je)},borderColor:{type:String,default:Je.None,options:Object.values(Je)},elevation:{type:Number,default:0,options:[0,1,2,3,4]},id:{type:String,default:""},testId:{type:String,default:"ds-card"}}},Tt=({id:r,testId:e=ge.props.testId.default,children:t,className:s,elevation:a=ge.props.elevation.default,backgroundColor:n=ge.props.backgroundColor.default,borderColor:i=ge.props.borderColor.default})=>{const l=a&&`${ge.class}--elevation-${a}`,c=i&&`${ge.class}--border-${i}`,d=n&&`${ge.class}--${n}`;return u.jsx("div",{className:[ge.class,s,l,c,d].filter(h=>h).join(" "),"data-testid":e,id:r,children:t})};Tt.propTypes={id:o.string,testId:o.string,backgroundColor:o.oneOf(ge.props.backgroundColor.options),borderColor:o.oneOf(ge.props.borderColor.options),elevation:o.oneOf(ge.props.elevation.options)},Tt.displayName="DsCard";const re={name:"Checkbox",class:"ds-checkbox",props:{name:{type:String,required:!1},testId:{type:String,default:"ds-checkbox-test"},label:{type:String,default:""},description:{type:String,default:""},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},changeByChecked:{type:Boolean,default:!1},onChangeHandler:{type:Function,default:()=>({})}}},At=g.forwardRef(({id:r,className:e,name:t,testId:s=re.props.testId.default,label:a=re.props.label.default,description:n=re.props.description.default,checked:i=re.props.checked.default,disabled:l=re.props.checked.default,changeByChecked:c=re.props.changeByChecked.default,onChangeHandler:d},h)=>{const f=c||!1,v=i||!1,[k,C]=g.useState(v),_={image:k?"check_box":"check_box_outline_blank",class:k?`${re.class}__icon--checked`:`${re.class}__icon--unchecked`},y=l&&`${re.class}--disabled`,F=z=>{l||(C(w=>!w),d&&d(z))};return g.useEffect(()=>{f&&C(i)},[i,f]),u.jsxs("label",{className:[re.class,y,e&&e].join(" "),htmlFor:r||t,children:[u.jsx("input",{checked:k,className:`${re.class}__input`,"data-testid":s,id:r||t,name:t,onChange:F,ref:h,type:"checkbox"}),u.jsx(R,{className:`${re.class}__icon ${_.class}`,fill:!0,image:_.image,size:"xxl",testId:`${s}-icon`}),(n||a)&&u.jsxs("div",{className:`${re.class}__label`,children:[a&&u.jsx("label",{className:`${re.class}__label-title`,htmlFor:r||t,children:a}),n&&u.jsx("label",{className:`${re.class}__label-description`,htmlFor:r||t,children:n})]})]})});At.propTypes={label:o.oneOfType([o.string,o.node]),name:o.string,className:o.string,testId:o.string,description:o.oneOfType([o.string,o.node]),checked:o.bool,disabled:o.bool},At.displayName="DsCheckbox";const fs={Heading1:"heading-1",Heading2:"heading-2",Heading3:"heading-3",Heading4:"heading-4",Heading5:"heading-5",Heading6:"heading-6"},Ye={name:"Heading",class:"ds-heading",props:{type:{type:String,default:fs.Heading1,options:Object.values(fs)}}},Qe=({children:r,testId:e="ds-heading-test",type:t=Ye.props.type.default,className:s})=>{const a={"heading-1":"h1","heading-2":"h2","heading-3":"h3","heading-4":"h4","heading-5":"h5","heading-6":"h6"},n=Ye.props.type.options.find(c=>c===t)&&`${Ye.class}--${t}`,l=a[t];return u.jsx(l,{className:[Ye.class,n,s&&s].filter(c=>c).join(" "),"data-testid":e,children:r})};Qe.propTypes={className:o.string,testId:o.string,type:o.oneOf(Ye.props.type.options)},Qe.displayName="DsHeading";const gs={None:"",Dashed:"dashed",Dotted:"dotted"},ms={None:"",Small:"small",Large:"large"},Me={name:"HR",class:"ds-hr",props:{borderStyle:{type:String,default:gs.None,options:Object.values(gs)},size:{type:String,default:ms.None,options:Object.values(ms)}}};function ys(r,e,t){const s=t.props[r];return s.options&&s.options.some(a=>a===e)?`${t.class}--${e}`:""}const xt=({size:r=Me.props.size.default,borderStyle:e=Me.props.borderStyle.default})=>{const t=ys("size",r,Me),s=ys("borderStyle",e,Me);return u.jsx("hr",{className:`${Me.class} ${t} ${s}`.trim()})};xt.propTypes={size:o.oneOf(Me.props.size.options),borderStyle:o.oneOf(Me.props.borderStyle.options)},xt.displayName="DsHR";function Oe(r){return typeof r=="string"||r instanceof String}function _s(r){var e;return typeof r=="object"&&r!=null&&(r==null||(e=r.constructor)==null?void 0:e.name)==="Object"}function vs(r,e){return Array.isArray(e)?vs(r,(t,s)=>e.includes(s)):Object.entries(r).reduce((t,s)=>{let[a,n]=s;return e(n,a)&&(t[a]=n),t},{})}const T={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Ia(r){switch(r){case T.LEFT:return T.FORCE_LEFT;case T.RIGHT:return T.FORCE_RIGHT;default:return r}}function wt(r){return r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function et(r,e){if(e===r)return!0;const t=Array.isArray(e),s=Array.isArray(r);let a;if(t&&s){if(e.length!=r.length)return!1;for(a=0;a<e.length;a++)if(!et(e[a],r[a]))return!1;return!0}if(t!=s)return!1;if(e&&r&&typeof e=="object"&&typeof r=="object"){const n=e instanceof Date,i=r instanceof Date;if(n&&i)return e.getTime()==r.getTime();if(n!=i)return!1;const l=e instanceof RegExp,c=r instanceof RegExp;if(l&&c)return e.toString()==r.toString();if(l!=c)return!1;const d=Object.keys(e);for(a=0;a<d.length;a++)if(!Object.prototype.hasOwnProperty.call(r,d[a]))return!1;for(a=0;a<d.length;a++)if(!et(r[d[a]],e[d[a]]))return!1;return!0}else if(e&&r&&typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();return!1}class Oa{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?T.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?T.RIGHT:T.LEFT}}function O(r,e){return new O.InputMask(r,e)}function ks(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?O.MaskedRegExp:Oe(r)?O.MaskedPattern:r===Date?O.MaskedDate:r===Number?O.MaskedNumber:Array.isArray(r)||r===Array?O.MaskedDynamic:O.Masked&&r.prototype instanceof O.Masked?r:O.Masked&&r instanceof O.Masked?r.constructor:r instanceof Function?O.MaskedFunction:(console.warn("Mask not found for mask",r),O.Masked)}function Ge(r){if(!r)throw new Error("Options in not defined");if(O.Masked){if(r.prototype instanceof O.Masked)return{mask:r};const{mask:e=void 0,...t}=r instanceof O.Masked?{mask:r}:_s(r)&&r.mask instanceof O.Masked?r:{};if(e){const s=e.mask;return{...vs(e,(a,n)=>!n.startsWith("_")),mask:e.constructor,_mask:s,...t}}}return _s(r)?{...r}:{mask:r}}function Ae(r){if(O.Masked&&r instanceof O.Masked)return r;const e=Ge(r),t=ks(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}O.createMask=Ae;class Dt{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}O.MaskElement=Dt;const bs=90,Ba=89;class tt extends Dt{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,s;return(e=(t=(s=this.input).getRootNode)==null?void 0:t.call(s))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===bs&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===Ba&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===bs&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}O.HTMLMaskElement=tt;class Na extends tt{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}O.HTMLMaskElement=tt;class Ss extends tt{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,a=t&&t.focusOffset;return a==null||s==null||s<a?s:a}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,a=t&&t.focusOffset;return a==null||s==null||s>a?s:a}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,t);const a=this.rootElement,n=a.getSelection&&a.getSelection();n&&(n.removeAllRanges(),n.addRange(s))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}O.HTMLContenteditableMaskElement=Ss;class st{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>st.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}st.MAX_LENGTH=100;class Ma{constructor(e,t){this.el=e instanceof Dt?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new Ss(e):new Na(e),this.masked=Ae(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new st,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof O.Masked)&&this.masked.constructor===ks(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof O.Masked?e:Ae({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const s=this._listeners[e];s&&s.forEach(a=>a(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,s=this.masked.value,a=this.masked.rawInputValue,n=this.displayValue,i=this.unmaskedValue!==t||this.value!==s||this._rawInputValue!==a;this._unmaskedValue=t,this._value=s,this._rawInputValue=a,this.el.value!==n&&(this.el.value=n),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...s}=e,a=!this.maskEquals(t),n=this.masked.optionsIsChanged(s);a&&(this.mask=t),n&&this.masked.updateOptions(s),(a||n)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,T.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const s=this._listeners[e].indexOf(t);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new Oa({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,a=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,n=s===this.masked.rawInputValue?t.removeDirection:T.NONE;let i=this.masked.nearestInputPos(t.startChangePos+a,n);n!==T.NONE&&(i=this.masked.nearestInputPos(i,T.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}O.InputMask=Ma;class M{static normalize(e){return Array.isArray(e)?e:[e,new M]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}O.ChangeDetails=M;class ke{constructor(e,t,s){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class ae{constructor(e){this._value="",this._update({...ae.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new ke(this.extractInput(e,t),e)}appendTail(e){return Oe(e)&&(e=new ke(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new M({inserted:e,rawInserted:e})):new M}_appendChar(e,t,s){t===void 0&&(t={});const a=this.state;let n;if([e,n]=this.doPrepareChar(e,t),e&&(n=n.aggregate(this._appendCharRaw(e,t)),!n.rawInserted&&this.autofix==="pad")){const i=this.state;this.state=a;let l=this.pad(t);const c=this._appendCharRaw(e,t);l=l.aggregate(c),c.rawInserted||l.equals(n)?n=l:this.state=i}if(n.inserted){let i,l=this.doValidate(t)!==!1;if(l&&s!=null){const c=this.state;if(this.overwrite===!0){i=s.state;for(let h=0;h<n.rawInserted.length;++h)s.unshift(this.displayValue.length-n.tailShift)}let d=this.appendTail(s);if(l=d.rawInserted.length===s.toString().length,!(l&&d.inserted)&&this.overwrite==="shift"){this.state=c,i=s.state;for(let h=0;h<n.rawInserted.length;++h)s.shift();d=this.appendTail(s),l=d.rawInserted.length===s.toString().length}l&&d.inserted&&(this.state=c)}l||(n=new M,this.state=a,s&&i&&(s.state=i))}return n}_appendPlaceholder(){return new M}_appendEager(){return new M}append(e,t,s){if(!Oe(e))throw new Error("value should be string");const a=Oe(s)?new ke(String(s)):s;t!=null&&t.tail&&(t._beforeTailState=this.state);let n;[e,n]=this.doPrepare(e,t);for(let i=0;i<e.length;++i){const l=this._appendChar(e[i],t,a);if(!l.rawInserted&&!this.doSkipInvalid(e[i],t,a))break;n.aggregate(l)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&n.aggregate(this._appendEager()),a!=null&&(n.tailShift+=this.appendTail(a).tailShift),n}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new M}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,s=this.value,a=e();return this.rawInputValue=t,this.value&&this.value!==s&&s.indexOf(this.value)===0&&(this.append(s.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,a}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,s=e(this);return this.state=t,delete this._isolated,s}doSkipInvalid(e,t,s){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),M.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),M.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,s,a,n){s===void 0&&(s=""),a===void 0&&(a=T.NONE),n===void 0&&(n={input:!0});const i=e+t,l=this.extractTail(i),c=this.eager===!0||this.eager==="remove";let d;c&&(a=Ia(a),d=this.extractInput(0,i,{raw:!0}));let h=e;const f=new M;if(a!==T.NONE&&(h=this.nearestInputPos(e,t>1&&e!==0&&!c?T.NONE:a),f.tailShift=h-e),f.aggregate(this.remove(h)),c&&a!==T.NONE&&d===this.rawInputValue)if(a===T.FORCE_LEFT){let v;for(;d===this.rawInputValue&&(v=this.displayValue.length);)f.aggregate(new M({tailShift:-1})).aggregate(this.remove(v-1))}else a===T.FORCE_RIGHT&&l.unshift();return f.aggregate(this.append(s,n,l))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!et(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||ae.EMPTY_VALUES.includes(e)&&ae.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new M}}ae.DEFAULTS={skipInvalid:!0},ae.EMPTY_VALUES=[void 0,null,""],O.Masked=ae;class $e{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=Oe(e)?new ke(String(e)):e;const t=this.chunks[this.chunks.length-1],s=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof ke)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof $e){if(e.stop==null){let a;for(;e.chunks.length&&e.chunks[0].stop==null;)a=e.chunks.shift(),a.from+=e.from,this.extend(a)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof O.MaskedPattern))return new ke(this.toString()).appendTo(e);const t=new M;for(let s=0;s<this.chunks.length;++s){const a=this.chunks[s],n=e._mapPosToBlock(e.displayValue.length),i=a.stop;let l;if(i!=null&&(!n||n.index<=i)&&((a instanceof $e||e._stops.indexOf(i)>=0)&&t.aggregate(e._appendPlaceholder(i)),l=a instanceof $e&&e._blocks[i]),l){const c=l.appendTail(a);t.aggregate(c);const d=a.toString().slice(c.rawInserted.length);d&&t.aggregate(e.append(d,{tail:!0}))}else t.aggregate(e.append(a.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...s}=e;Object.assign(this,s),this.chunks=t.map(a=>{const n="chunks"in a?new $e:new ke;return n.state=a,n})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let s=0;for(;s<this.chunks.length;){const a=this.chunks[s],n=a.unshift(t);if(a.toString()){if(!n)break;++s}else this.chunks.splice(s,1);if(n)return n}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],s=t.shift();if(t.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}}class $a{constructor(e,t){this.masked=e,this._log=[];const{offset:s,index:a}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s,this.index=a,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,T.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,T.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,T.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,T.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,T.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,T.NONE),!0})}}class Cs{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new M}nearestInputPos(e,t){t===void 0&&(t=T.NONE);const s=0,a=this._value.length;switch(t){case T.LEFT:case T.FORCE_LEFT:return s;case T.NONE:case T.RIGHT:case T.FORCE_RIGHT:default:return a}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),s===void 0&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new M;const s=this.eager===!0||this.eager==="append",n=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!s)&&!t.tail,i=new M({inserted:this.char,rawInserted:n?this.char:""});return this._value=this.char,this._isRawInput=n&&(t.raw||t.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new M;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new ke("")}appendTail(e){return Oe(e)&&(e=new ke(String(e))),e.appendTo(this)}append(e,t,s){const a=this._appendChar(e[0],t);return s!=null&&(a.tailShift+=this.appendTail(s).tailShift),a}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}}class at{constructor(e){const{parent:t,isOptional:s,placeholderChar:a,displayChar:n,lazy:i,eager:l,...c}=e;this.masked=Ae(c),Object.assign(this,{parent:t,isOptional:s,placeholderChar:a,displayChar:n,lazy:i,eager:l})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new M}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new M;const s=this.masked.state;let a=this.masked._appendChar(e,this.currentMaskFlags(t));return a.inserted&&this.doValidate(t)===!1&&(a=new M,this.masked.state=s),!a.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(a.inserted=this.placeholderChar),a.skip=!a.inserted&&!this.isOptional,this.isFilled=!!a.inserted,a}append(e,t,s){return this.masked.append(e,this.currentMaskFlags(t),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new M:(this.isFilled=!0,new M({inserted:this.placeholderChar}))}_appendEager(){return new M}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,s)}nearestInputPos(e,t){t===void 0&&(t=T.NONE);const s=0,a=this.value.length,n=Math.min(Math.max(e,s),a);switch(t){case T.LEFT:case T.FORCE_LEFT:return this.isComplete?n:s;case T.RIGHT:case T.FORCE_RIGHT:return this.isComplete?n:a;case T.NONE:default:return n}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new M}}at.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Va extends ae{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=s=>s.search(t)>=0),super._update(e)}}O.MaskedRegExp=Va;class ne extends ae{constructor(e){super({...ne.DEFAULTS,...e,definitions:Object.assign({},at.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let s=!1,a=!1;for(let n=0;n<t.length;++n){if(this.blocks){const d=t.slice(n),h=Object.keys(this.blocks).filter(v=>d.indexOf(v)===0);h.sort((v,k)=>k.length-v.length);const f=h[0];if(f){const{expose:v,repeat:k,...C}=Ge(this.blocks[f]),_={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...C,repeat:k,parent:this},y=k!=null?new O.RepeatBlock(_):Ae(_);y&&(this._blocks.push(y),v&&(this.exposeBlock=y),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),n+=f.length-1;continue}}let i=t[n],l=i in e;if(i===ne.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(i==="{"||i==="}"){s=!s;continue}if(i==="["||i==="]"){a=!a;continue}if(i===ne.ESCAPE_CHAR){if(++n,i=t[n],!i)break;l=!1}const c=l?new at({isOptional:a,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Ge(e[i]),parent:this}):new Cs({char:i,eager:this.eager,isUnmasking:s});this._blocks.push(c)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...s}=e;this._blocks.forEach((a,n)=>a.state=t[n]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new M;let s=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(s==null)return t;this._blocks[s].isFilled&&++s;for(let a=s;a<this._blocks.length;++a){const n=this._blocks[a]._appendEager();if(!n.inserted)break;t.aggregate(n)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._mapPosToBlock(this.displayValue.length),a=new M;if(!s)return a;for(let i=s.index,l;l=this._blocks[i];++i){var n;const c=l._appendChar(e,{...t,_beforeTailState:(n=t._beforeTailState)==null||(n=n._blocks)==null?void 0:n[i]});if(a.aggregate(c),c.consumed)break}return a}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=new $e;return e===t||this._forEachBlocksInRange(e,t,(a,n,i,l)=>{const c=a.extractTail(i,l);c.stop=this._findStopBefore(n),c.from=this._blockStartPos(n),c instanceof $e&&(c.blockIndex=n),s.extend(c)}),s}extractInput(e,t,s){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),s===void 0&&(s={}),e===t)return"";let a="";return this._forEachBlocksInRange(e,t,(n,i,l,c)=>{a+=n.extractInput(l,c,s)}),a}_findStopBefore(e){let t;for(let s=0;s<this._stops.length;++s){const a=this._stops[s];if(a<=e)t=a;else break}return t}_appendPlaceholder(e){const t=new M;if(this.lazy&&e==null)return t;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return t;const a=s.index,n=e??this._blocks.length;return this._blocks.slice(a,n).forEach(i=>{if(!i.lazy||e!=null){var l;t.aggregate(i._appendPlaceholder((l=i._blocks)==null?void 0:l.length))}}),t}_mapPosToBlock(e){let t="";for(let s=0;s<this._blocks.length;++s){const a=this._blocks[s],n=t.length;if(t+=a.displayValue,e<=t.length)return{index:s,offset:e-n}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,s)=>t+=s.displayValue.length,0)}_forEachBlocksInRange(e,t,s){t===void 0&&(t=this.displayValue.length);const a=this._mapPosToBlock(e);if(a){const n=this._mapPosToBlock(t),i=n&&a.index===n.index,l=a.offset,c=n&&i?n.offset:this._blocks[a.index].displayValue.length;if(s(this._blocks[a.index],a.index,l,c),n&&!i){for(let d=a.index+1;d<n.index;++d)s(this._blocks[d],d,0,this._blocks[d].displayValue.length);s(this._blocks[n.index],n.index,0,n.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._forEachBlocksInRange(e,t,(a,n,i,l)=>{s.aggregate(a.remove(i,l))}),s}nearestInputPos(e,t){if(t===void 0&&(t=T.NONE),!this._blocks.length)return 0;const s=new $a(this,e);if(t===T.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===T.LEFT||t===T.FORCE_LEFT){if(t===T.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===T.LEFT){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:t===T.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return t===T.RIGHT||t===T.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:t===T.FORCE_RIGHT?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,T.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,t,(a,n,i,l)=>{s+=a.totalInputPositions(i,l)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(s=>this._blocks[s]):[]}pad(e){const t=new M;return this._forEachBlocksInRange(0,this.displayValue.length,s=>t.aggregate(s.pad(e))),t}}ne.DEFAULTS={...ae.DEFAULTS,lazy:!0,placeholderChar:"_"},ne.STOP_CHAR="`",ne.ESCAPE_CHAR="\\",ne.InputDefinition=at,ne.FixedDefinition=Cs,O.MaskedPattern=ne;class nt extends ne{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:s=this.from||0,maxLength:a=this.maxLength||0,autofix:n=this.autofix,...i}=e;this.to=t,this.from=s,this.maxLength=Math.max(String(t).length,a),this.autofix=n;const l=String(this.from).padStart(this.maxLength,"0"),c=String(this.to).padStart(this.maxLength,"0");let d=0;for(;d<c.length&&c[d]===l[d];)++d;i.mask=c.slice(0,d).replace(/0/g,"\\0")+"0".repeat(this.maxLength-d),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",s="";const[,a,n]=e.match(/^(\D*)(\d*)(\D*)/)||[];return n&&(t="0".repeat(a.length)+n,s="9".repeat(a.length)+n),t=t.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9"),[t,s]}doPrepareChar(e,t){t===void 0&&(t={});let s;return[e,s]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const s=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0"),[n,i]=this.boundaries(this.value+e);return Number(i)<this.from?super._appendCharRaw(s[this.value.length],t):Number(n)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(a[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[a,n]=this.boundaries(t);return this.from<=Number(n)&&Number(a)<=this.to&&super.doValidate(e)}pad(e){const t=new M;if(this.value.length===this.maxLength)return t;const s=this.value,a=this.maxLength-this.value.length;if(a){this.reset();for(let n=0;n<a;++n)t.aggregate(super._appendCharRaw("0",e));s.split("").forEach(n=>this._appendCharRaw(n))}return t}}O.MaskedRange=nt;class xe extends ne{static extractPatternOptions(e){const{mask:t,pattern:s,...a}=e;return{...a,mask:Oe(t)?t:s}}constructor(e){super(xe.extractPatternOptions({...xe.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:s,blocks:a,...n}={...xe.DEFAULTS,...e},i=Object.assign({},xe.GET_DEFAULT_BLOCKS());e.min&&(i.Y.from=e.min.getFullYear()),e.max&&(i.Y.to=e.max.getFullYear()),e.min&&e.max&&i.Y.from===i.Y.to&&(i.m.from=e.min.getMonth()+1,i.m.to=e.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=e.min.getDate(),i.d.to=e.max.getDate())),Object.assign(i,this.blocks,a),super._update({...n,mask:Oe(t)?t:s,blocks:i})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(xe.extractPatternOptions(e))}}xe.GET_DEFAULT_BLOCKS=()=>({d:{mask:nt,from:1,to:31,maxLength:2},m:{mask:nt,from:1,to:12,maxLength:2},Y:{mask:nt,from:1900,to:9999}}),xe.DEFAULTS={...ne.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(r,e)=>{if(!r)return"";const t=String(r.getDate()).padStart(2,"0"),s=String(r.getMonth()+1).padStart(2,"0"),a=r.getFullYear();return[t,s,a].join(".")},parse:(r,e)=>{const[t,s,a]=r.split(".").map(Number);return new Date(a,s-1,t)}},O.MaskedDate=xe;class rt extends ae{constructor(e){super({...rt.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:s,...a}=Ge(t),n=Ae({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...a});return s&&(this.exposeMask=n),n}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._applyDispatch(e,t);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),s}_applyDispatch(e,t,s){e===void 0&&(e=""),t===void 0&&(t={}),s===void 0&&(s="");const a=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,n=this.rawInputValue,i=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:n,l=n.slice(i.length),c=this.currentMask,d=new M,h=c==null?void 0:c.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==c?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),d.tailShift=this.currentMask.value.length-a.length),l&&(d.tailShift+=this.currentMask.append(l,{raw:!0,tail:!0}).tailShift)):h&&(this.currentMask.state=h)),d}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new M;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,s;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((s=e._beforeTailState)==null?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,t,s){return t===void 0&&(t={}),s===void 0&&(s=""),this.dispatch(e,this,t,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[s,a]=super.doPrepare(e,t);if(this.currentMask){let n;[s,n]=super.doPrepare(s,this.currentMaskFlags(t)),a=a.aggregate(n)}return[s,a]}doPrepareChar(e,t){t===void 0&&(t={});let[s,a]=super.doPrepareChar(e,t);if(this.currentMask){let n;[s,n]=super.doPrepareChar(s,this.currentMaskFlags(t)),a=a.aggregate(n)}return[s,a]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const s=new M;return this.currentMask&&s.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:s,currentMask:a,...n}=e;t&&this.compiledMasks.forEach((i,l)=>i.state=t[l]),s!=null&&(this.currentMask=s,this.currentMask.state=a),super.state=n}extractInput(e,t,s){return this.currentMask?this.currentMask.extractInput(e,t,s):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,s)=>{if(!e[s])return;const{mask:a,...n}=e[s];return et(t,n)&&t.maskEquals(a)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}}rt.DEFAULTS={...ae.DEFAULTS,dispatch:(r,e,t,s)=>{if(!e.compiledMasks.length)return;const a=e.rawInputValue,n=e.compiledMasks.map((i,l)=>{const c=e.currentMask===i,d=c?i.displayValue.length:i.nearestInputPos(i.displayValue.length,T.FORCE_LEFT);return i.rawInputValue!==a?(i.reset(),i.append(a,{raw:!0})):c||i.remove(d),i.append(r,e.currentMaskFlags(t)),i.appendTail(s),{index:l,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(d,i.nearestInputPos(i.displayValue.length,T.FORCE_LEFT)))}});return n.sort((i,l)=>l.weight-i.weight||l.totalInputPositions-i.totalInputPositions),e.compiledMasks[n[0].index]}},O.MaskedDynamic=rt;class it extends ne{constructor(e){super({...it.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...s}=e;if(t){const a=t.map(l=>l.length),n=Math.min(...a),i=Math.max(...a)-n;s.mask="*".repeat(n),i&&(s.mask+="["+"*".repeat(i)+"]"),this.enum=t}super._update(s)}_appendCharRaw(e,t){t===void 0&&(t={});const s=Math.min(this.nearestInputPos(0,T.FORCE_RIGHT),this.value.length),a=this.enum.filter(n=>this.matchValue(n,this.unmaskedValue+e,s));if(a.length){a.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,l)=>{const c=a[0][l];l>=this.value.length||c===i.value||(i.reset(),i._appendChar(c,t))});const n=super._appendCharRaw(a[0][this.value.length],t);return a.length===1&&a[0].slice(this.unmaskedValue.length).split("").forEach(i=>n.aggregate(super._appendCharRaw(i))),n}return new M({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new ke("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new M;const s=Math.min(super.nearestInputPos(0,T.FORCE_RIGHT),this.value.length);let a;for(a=e;a>=0&&!(this.enum.filter(l=>this.matchValue(l,this.value.slice(s,a),s)).length>1);--a);const n=super.remove(a,t);return n.tailShift+=a-e,n}get isComplete(){return this.enum.indexOf(this.value)>=0}}it.DEFAULTS={...ne.DEFAULTS,matchValue:(r,e,t)=>r.indexOf(e,t)===t},O.MaskedEnum=it;class La extends ae{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}O.MaskedFunction=La;var Es;class ue extends ae{constructor(e){super({...ue.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",s=(this.scale?"("+wt(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+s),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(wt).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(wt(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[s,a]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!s&&(a.skip=!0),s&&!this.allowPositive&&!this.value&&s!=="-"&&a.aggregate(this._appendChar("-")),[s,a]}_separatorsCount(e,t){t===void 0&&(t=!1);let s=0;for(let a=0;a<e;++a)this._value.indexOf(this.thousandsSeparator,a)===a&&(++s,t&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,s))}_appendCharRaw(e,t){t===void 0&&(t={});const s=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const n=this._value;this._value+=e;const i=this.number;let l=!isNaN(i),c=!1;if(l){let v;this.min!=null&&this.min<0&&this.number<this.min&&(v=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(v=this.max),v!=null&&(this.autofix?(this._value=this.format(v,this).replace(ue.UNMASKED_RADIX,this.radix),c||(c=n===this._value&&!t.tail)):l=!1),l&&(l=!!this._value.match(this._numberRegExp))}let d;l?d=new M({inserted:this._value.slice(n.length),rawInserted:c?"":e,skip:c}):(this._value=n,d=new M),this._value=this._insertThousandsSeparators(this._value);const h=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,f=this._separatorsCountFromSlice(h);return d.tailShift+=(f-a)*this.thousandsSeparator.length,d}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,t);if(s<=e)return s}return-1}_adjustRangeWithSeparators(e,t){const s=this._findSeparatorAround(e);s>=0&&(e=s);const a=this._findSeparatorAround(t);return a>=0&&(t=a+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const s=this.value.slice(0,e),a=this.value.slice(t),n=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+a));const i=this._separatorsCountFromSlice(s);return new M({tailShift:(i-n)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case T.NONE:case T.LEFT:case T.FORCE_LEFT:{const s=this._findSeparatorAround(e-1);if(s>=0){const a=s+this.thousandsSeparator.length;if(e<a||this.value.length<=a||t===T.FORCE_LEFT)return s}break}case T.RIGHT:case T.FORCE_RIGHT:{const s=this._findSeparatorAround(e);if(s>=0)return s+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(s,a,n,i)=>a+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,s){t===void 0&&(t={});const a=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===ue.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,s)&&!a}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,ue.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(ue.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||ue.EMPTY_VALUES.includes(e)&&ue.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}Es=ue,ue.UNMASKED_RADIX=".",ue.EMPTY_VALUES=[...ae.EMPTY_VALUES,0],ue.DEFAULTS={...ae.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Es.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},O.MaskedNumber=ue;const Ft={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Ts(r,e,t){e===void 0&&(e=Ft.MASKED),t===void 0&&(t=Ft.MASKED);const s=Ae(r);return a=>s.runIsolated(n=>(n[e]=a,n[t]))}function Pa(r,e,t,s){return Ts(e,t,s)(r)}O.PIPE_TYPE=Ft,O.createPipe=Ts,O.pipe=Pa;class ja extends ne{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,s,a;const{repeat:n,...i}=Ge(e);this._blockOpts=Object.assign({},this._blockOpts,i);const l=Ae(this._blockOpts);this.repeat=(t=(s=n??l.repeat)!=null?s:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((a=this._blocks)==null?void 0:a.length)||0,this.repeatFrom)),blocks:{m:l},eager:l.eager,overwrite:l.overwrite,skipInvalid:l.skipInvalid,lazy:l.lazy,placeholderChar:l.placeholderChar,displayChar:l.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Ae(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const s=new M;for(let c=(a=(n=this._mapPosToBlock(this.displayValue.length))==null?void 0:n.index)!=null?a:Math.max(this._blocks.length-1,0),d,h;d=(i=this._blocks[c])!=null?i:h=!h&&this._allocateBlock(c);++c){var a,n,i,l;const f=d._appendChar(e,{...t,_beforeTailState:(l=t._beforeTailState)==null||(l=l._blocks)==null?void 0:l[c]});if(f.skip&&h){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(f),f.consumed)break}return s}_trimEmptyTail(e,t){var s,a;e===void 0&&(e=0);const n=Math.max(((s=this._mapPosToBlock(e))==null?void 0:s.index)||0,this.repeatFrom,0);let i;t!=null&&(i=(a=this._mapPosToBlock(t))==null?void 0:a.index),i==null&&(i=this._blocks.length-1);let l=0;for(let c=i;n<=c&&!this._blocks[c].unmaskedValue;--c,++l);l&&(this._blocks.splice(i-l+1,l),this.mask=this.mask.slice(l))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._trimEmptyTail(e,t),s}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}O.RepeatBlock=ja;try{globalThis.IMask=O}catch{}const As={mask:o.oneOfType([o.array,o.func,o.string,o.instanceOf(RegExp),o.oneOf([Date,Number,O.Masked]),o.instanceOf(O.Masked)]),value:o.any,unmask:o.oneOfType([o.bool,o.oneOf(["typed"])]),prepare:o.func,prepareChar:o.func,validate:o.func,commit:o.func,overwrite:o.oneOfType([o.bool,o.oneOf(["shift"])]),eager:o.oneOfType([o.bool,o.oneOf(["append","remove"])]),skipInvalid:o.bool,onAccept:o.func,onComplete:o.func,placeholderChar:o.string,displayChar:o.string,lazy:o.bool,definitions:o.object,blocks:o.object,enum:o.arrayOf(o.string),maxLength:o.number,from:o.number,to:o.number,pattern:o.string,format:o.func,parse:o.func,autofix:o.oneOfType([o.bool,o.oneOf(["pad"])]),radix:o.string,thousandsSeparator:o.string,mapToRadix:o.arrayOf(o.string),scale:o.number,normalizeZeros:o.bool,padFractionalZeros:o.bool,min:o.oneOfType([o.number,o.instanceOf(Date)]),max:o.oneOfType([o.number,o.instanceOf(Date)]),dispatch:o.func,inputRef:o.oneOfType([o.func,o.shape({current:o.object})])},xs=Object.keys(As).filter(r=>r!=="value"),za=["value","unmask","onAccept","onComplete","inputRef"],qa=xs.filter(r=>za.indexOf(r)<0);function Ha(r){var e;const t=(e=class extends g.Component{constructor(n){super(n),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const n=this.props,i=this._extractMaskOptionsFromProps(n);if(i.mask)this.maskRef?(this.maskRef.updateOptions(i),"value"in n&&n.value!==void 0&&(this.maskValue=n.value)):this.initMask(i);else if(this.destroyMask(),"value"in n&&n.value!==void 0){var l;(l=this.element)!=null&&l.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=n.value:this.element.value=n.value}}componentWillUnmount(){this.destroyMask()}_inputRef(n){this.element=n,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=n:this.props.inputRef(n))}initMask(n){n===void 0&&(n=this._extractMaskOptionsFromProps(this.props)),this.maskRef=O(this.element,n).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(n){const{...i}=n;return Object.keys(i).filter(l=>qa.indexOf(l)<0).forEach(l=>{delete i[l]}),i}_extractNonMaskProps(n){const{...i}=n;return xs.forEach(l=>{l!=="maxLength"&&delete i[l]}),"defaultValue"in i||(i.defaultValue=n.mask?"":i.value),delete i.value,i}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(n){this.maskRef&&(n=n==null&&this.props.unmask!=="typed"?"":n,this.props.unmask==="typed"?this.maskRef.typedValue=n:this.props.unmask?this.maskRef.unmaskedValue=n:this.maskRef.value=n)}_onAccept(n){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,n)}_onComplete(n){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,n)}render(){return g.createElement(r,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),s=r.displayName||r.name||"Component";return t.displayName="IMask("+s+")",t.propTypes=As,g.forwardRef((a,n)=>g.createElement(t,{...a,ref:n}))}const Ua=Ha(r=>{let{inputRef:e,...t}=r;return g.createElement("input",{...t,ref:e})}),Wa=(r,e)=>g.createElement(Ua,{...r,ref:e});g.forwardRef(Wa);function Ya(r,e){let{onAccept:t,onComplete:s,ref:a=g.useRef(null),defaultValue:n,defaultUnmaskedValue:i,defaultTypedValue:l}=e===void 0?{}:e;const c=g.useRef(null),[d,h]=g.useState({}),[f,v]=g.useState(""),[k,C]=g.useState(""),[_,y]=g.useState(),F=g.useCallback(()=>{var p;(p=c.current)==null||p.destroy(),c.current=null},[]),z=g.useCallback(()=>{const p=c.current;p&&(h({value:p.value,unmaskedValue:p.unmaskedValue,typedValue:p.typedValue}),y(p.typedValue),C(p.unmaskedValue),v(p.value))},[]),w=g.useCallback(p=>{const E=c.current;E&&(z(),t==null||t(E.value,E,p))},[t]),A=g.useCallback(p=>c.current&&(s==null?void 0:s(c.current.value,c.current,p)),[s]);return g.useEffect(()=>{const{value:p,...E}=d,$=c.current;!$||f===void 0||(p!==f&&($.value=f,$.value!==f&&w()),h(E))},[f]),g.useEffect(()=>{const{unmaskedValue:p,...E}=d,$=c.current;!$||k===void 0||(p!==k&&($.unmaskedValue=k,$.unmaskedValue!==k&&w()),h(E))},[k]),g.useEffect(()=>{const{typedValue:p,...E}=d,$=c.current;!$||_===void 0||(p!==_&&($.typedValue=_,$.masked.typedValueEquals(_)||w()),h(E))},[_]),g.useEffect(()=>{const p=a.current;if(!p||!(r!=null&&r.mask))return F();const E=c.current;E?E==null||E.updateOptions(r):p&&r!=null&&r.mask&&(c.current=O(p,r),z(),n!==void 0&&v(n),i!==void 0&&C(i),l!==void 0&&y(l))},[r,F,w]),g.useEffect(()=>{if(!c.current)return;const p=c.current;return p.on("accept",w),p.on("complete",A),()=>{p.off("accept",w),p.off("complete",A)}},[w,A]),g.useEffect(()=>F,[F]),{ref:a,maskRef:c,value:f,setValue:v,unmaskedValue:k,setUnmaskedValue:C,typedValue:_,setTypedValue:y}}const ws={Text:"text",Password:"password",Email:"email",Date:"date",Number:"number"},Ds={Small:"small",Medium:"medium",Large:"large"},Fs={Default:"",Error:"error",Success:"success"},Is={Center:"center",End:"end",Initial:"initial"},Os={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},K={name:"Input",class:"ds-input",props:{name:{type:String,required:!0},testId:{type:String,default:"ds-input-test"},type:{type:String,default:ws.Text,options:Object.values(ws)},animated:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},size:{type:String,default:Ds.Medium,options:Object.values(Ds)},label:{type:String,default:""},placeholder:{type:String,default:" "},value:{type:String,default:""},min:{type:String,default:""},max:{type:String,default:""},status:{type:String,default:Fs.Default,options:Object.values(Fs)},feedback:{type:String,default:""},hasFeedback:{type:Boolean,default:!0},noMargin:{type:Boolean,default:!1},icon:{type:String,default:""},tooltip:{type:String,default:""},tooltipPlacement:{type:String,default:Is.Center,options:Object.values(Is)},tooltipPosition:{type:String,default:Os.Top,options:Object.values(Os)},mask:{type:String,default:""},onChangeHandler:{type:Function,default:()=>({})}}},Bs={currency:{mask:"currency",blocks:{currency:{mask:"R$ num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:".",padFractionalZeros:!0,normalizeZeros:!1,radix:",",mapToRadix:[",","."]}}}}},document:{mask:[{mask:"000.000.000-00",startsWith:/[0-9]/,maxLength:14},{mask:"00.000.000/0000-00",startsWith:/[0-9]/,maxLength:18}]},"phone-br":{mask:[{mask:"(00) 0000-0000"},{mask:"(00) 00000-0000"}],dispatch:(r,e)=>(e.value+r).replace(/\D/g,"").length<=10?e.compiledMasks[0]:e.compiledMasks[1]}},Ns={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},Ms={Center:"center",End:"end",Initial:"initial"},be={name:"Tooltip",class:"ds-tooltip",props:{position:{type:String,default:Ns.Top,options:Object.values(Ns)},placement:{type:String,default:Ms.Center,options:Object.values(Ms)},text:{type:String,default:""},testId:{type:String,default:"ds-tooltip"}}},Ve=({children:r,position:e=be.props.position.default,placement:t=be.props.placement.default,text:s=be.props.text.default,testId:a=be.props.testId.default,className:n})=>{const i=g.useRef(null),[l,c]=g.useState(0),[d,h]=g.useState(0),[f,v]=g.useState(!1),k=e&&be.props.position.options.find(F=>F===e)&&`${be.class}--${e}`,C=t&&be.props.placement.options.find(F=>F===t)&&`${be.class}--${t}`;let _;g.useLayoutEffect(()=>{var F,z;i.current&&(c((F=i==null?void 0:i.current)==null?void 0:F.offsetHeight),h((z=i==null?void 0:i.current)==null?void 0:z.offsetWidth))},[]);const y=9;switch(e){case"top":t==="initial"?_={bottom:l+y,left:-y}:t==="end"?_={bottom:l+y,right:-y}:_={bottom:l+y,left:"50%",transform:"translateX(-50%)"};break;case"bottom":t==="initial"?_={top:l+y,left:-y}:t==="end"?_={top:l+y,right:-y}:_={top:l+y,left:"50%",transform:"translateX(-50%)"};break;case"left":t==="initial"?_={right:d+y,top:-y}:t==="end"?_={right:d+y,bottom:-y}:_={right:d+y,top:"50%",transform:"translateY(-50%)"};break;case"right":t==="initial"?_={left:d+y,top:-y}:t==="end"?_={left:d+y,bottom:-y}:_={left:d+y,top:"50%",transform:"translateY(-50%)"};break}return u.jsxs("div",{className:[be.class,n].join(" "),"data-testid":a,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),ref:i,role:"tooltip",children:[r,f&&u.jsx("div",{className:[k,C].filter(F=>F).join(" "),children:u.jsx("span",{className:`${be.class}__wrapper`,"data-testid":"ds-tooltip-wrapper",style:_,children:s})})]})};Ve.propTypes={position:o.string,placement:o.string,text:o.oneOfType([o.string,o.node]),testId:o.string},Ve.displayName="DsTooltip";const qe=g.forwardRef(({name:r,testId:e=K.props.testId.default,type:t=K.props.type.default,animated:s=K.props.animated.default,size:a=K.props.size.default,label:n,placeholder:i,value:l,min:c,max:d,tooltip:h=K.props.tooltip.default,tooltipPosition:f=K.props.tooltipPosition.default,tooltipPlacement:v=K.props.tooltipPlacement.default,icon:k=K.props.icon.default,status:C=K.props.status.default,feedback:_,hasFeedback:y=K.props.hasFeedback.default,noMargin:F=K.props.noMargin.default,disabled:z=K.props.disabled.default,className:w,mask:A,onChangeHandler:p=K.props.onChangeHandler.default,onBlurHandler:E,onKeyDownHandler:$,onFocusHandler:X},I)=>{const[se,pe]=g.useState(!1),[he,Fe]=g.useState(!1),_e=!!p&&!!A,ze=(D,q,ee)=>{if(_e&&ee){const b={...ee,target:{...ee.target,name:r,maskedValue:D,value:q.unmaskedValue,type:"text"}};p(b)}},le=g.useMemo(()=>typeof A=="object"?{lazy:!0,...A}:Bs[A]?{...Bs[A],min:c,max:d,lazy:!0}:{mask:A||"",min:c,max:d,lazy:!0},[A]),{ref:ve,setUnmaskedValue:Ie}=Ya(le,{onAccept:ze}),Ne=D=>{p&&!_e&&p(D)},m=D=>{$&&$(D)},S=D=>{pe(!1),E&&E(D)},P=D=>{pe(!0),X&&X(D)},V=()=>{Fe(D=>!D)},N=g.useMemo(()=>he&&t==="password"?"text":t,[he,t]),x=()=>{const D=[`${K.class}`];return a&&D.push(`${K.class}--${a}`),s&&D.push(`${K.class}--animated`),F&&D.push(`${K.class}--no-margin`),k&&D.push(`${K.class}--with-icon`),C&&D.push(`${K.class}--${C}`),w&&D.push(w),D.join(" ")},L=g.useMemo(()=>{const D=[`${K.class}__label`];return(se||l)&&D.push(`${K.class}__label--active`),D.join(" ")},[l,se]),j=()=>!s&&i?i:"",H=()=>C&&C==="error"?"info":"check_circle";return g.useEffect(()=>{A&&Ie(l||"")},[l,A,Ie]),u.jsxs("div",{className:x(),ref:I,children:[y&&u.jsx("div",{className:"ds-input__feedback",children:_&&u.jsxs(u.Fragment,{children:[u.jsx(R,{image:H()}),_]})}),u.jsx("input",{className:"ds-input__input","data-testid":e,disabled:z,id:r,max:d,min:c,name:r,onBlur:S,onChange:Ne,onFocus:P,onInput:Ne,onKeyDown:m,placeholder:j(),ref:ve,type:N,...!A&&{value:l||""}}),u.jsxs("label",{className:L,htmlFor:r,children:[n,h&&u.jsx(Ve,{className:"ds-input__tooltip",placement:v,position:f,text:h,children:u.jsx(R,{className:"ds-input__icon",image:"info"})})]}),k&&u.jsx(R,{className:"ds-input__icon",image:k}),t==="password"&&u.jsx(R,{className:"ds-input__password-icon",image:he?"visibility_off":"visibility",onClick:V,size:"xl"})]})});qe.propTypes={name:o.string,testId:o.string,type:o.oneOf(K.props.type.options),animated:o.bool,size:o.oneOf(K.props.size.options),label:o.string,placeholder:o.string,value:o.oneOfType([o.string]),min:o.string,max:o.string,tooltip:o.string,tooltipPosition:o.string,tooltipPlacement:o.string,icon:o.string,status:o.oneOf(K.props.status.options),feedback:o.string,hasFeedback:o.bool,noMargin:o.bool,disabled:o.bool,mask:o.oneOfType([o.string,o.object]),onChangeHandler:o.func,onFocusHandler:o.func},qe.displayName="DsInput";const $s={Small:"small",Medium:"medium",Large:"large"},Vs={None:"",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00"},ce={name:"Loading",class:"ds-loading",props:{size:{type:String,default:$s.Medium,options:Object.values($s)},opacity:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!0},backgroundColor:{type:String,default:Vs.Neutral10,options:Object.values(Vs)},id:{type:String,default:""},testId:{type:String,default:"ds-loading"}}},ot=({id:r,testId:e=ce.props.testId.default,className:t,size:s=ce.props.size.default,opacity:a=ce.props.opacity.default,fullscreen:n=ce.props.fullscreen.default,backgroundColor:i=ce.props.backgroundColor.default})=>{const l=!n&&`${ce.class}--absolute`,c=s&&`${ce.class}__dots--${s}`,d=i&&ce.props.backgroundColor.options.find(f=>f===i)&&`${ce.class}__background--${i}`,h=a&&`${ce.class}__background--opacity`;return u.jsxs("div",{className:[ce.class,t,l].filter(f=>f).join(" "),"data-testid":e,id:r,children:[u.jsx("div",{className:[`${ce.class}__background`,d,h].filter(f=>f).join(" ")}),u.jsx("div",{className:["ds-loading__dots",c].filter(f=>f).join(" "),role:"status"})]})};ot.propTypes={id:o.string,testId:o.string,size:o.oneOf(ce.props.size.options),opacity:o.bool,fullscreen:o.bool,backgroundColor:o.string},ot.displayName="DsLoading";const we={name:"Option",class:"ds-option",props:{id:{type:String,default:""},name:{type:String,default:""},testId:{type:String,default:""},label:{type:String,default:""},value:{type:String,default:""},disabled:{type:Boolean,default:!1},detail:{type:String,default:""},checked:{type:Boolean,default:!1},onChangeHandler:{type:Function,default:()=>({})}}},It=({id:r,label:e,detail:t,name:s,testId:a=s||"ds-option-test",disabled:n=we.props.disabled.default,value:i,checked:l=we.props.checked.default,onChangeHandler:c=we.props.onChangeHandler.default})=>{const[d]=g.useState(Math.random()),h=()=>{const f=[we.class];return n&&f.push(`${we.class}--disabled`),f.join(" ")};return u.jsxs("div",{className:h(),children:[u.jsx("input",{checked:l,"data-testid":a,disabled:n,id:r||String(d),name:s,onChange:c,type:"radio",value:i}),u.jsx(R,{className:`${we.class}__icon`,image:l?"radio_button_checked":"radio_button_unchecked",size:"xxl"}),u.jsxs("div",{className:`${we.class}__text-container`,children:[e&&u.jsx("label",{className:`${we.class}__label`,htmlFor:r||String(d),children:e}),t&&u.jsx("label",{className:`${we.class}__detail`,htmlFor:r||String(d),children:t})]})]})};It.propTypes={id:o.string,name:o.string,testId:o.string,label:o.oneOfType([o.string,o.node]),value:o.oneOfType([o.string,o.number]),detail:o.string,disabled:o.bool,checked:o.bool,onChangeHandler:o.func},It.displayName="DsOption";const Ls={Default:"",Large:"large",Small:"small"},lt={name:"Paragraph",class:"ds-paragraph",props:{type:{type:String,default:Ls.Default,options:Object.values(Ls)}}},Se=({children:r,className:e,testId:t="ds-paragraph-test",type:s=lt.props.type.default})=>{const a=s&&`${lt.class}--${s}`;return u.jsx("p",{className:[lt.class,a,e&&e].filter(n=>n).join(" "),"data-testid":t,children:r})};Se.propTypes={className:o.string,testId:o.string,type:o.oneOf(lt.props.type.options)},Se.displayName="DsParagraph";const Ps={Success:"success",SuccessDark:"success-dark",Warning:"warning",Danger:"danger"},js={name:"Progress",class:"ds-progress",props:{label:{type:String,default:""},progress:{type:Number,default:0},color:{type:String,default:Ps.Success,options:Object.values(Ps)}}},Ot={name:"Flex-Element",class:"ds-flex-element",props:{flex:{type:String,default:"0 1 auto",required:!1},className:{type:String,default:"",required:!1}}},te=({children:r,flex:e=Ot.props.flex.default,className:t=Ot.props.className.default})=>{const s=()=>[Ot.class,t].join(" "),a=()=>({flex:e});return u.jsx("div",{className:s(),style:a(),children:r})};te.propTypes={className:o.string,flex:o.string},te.displayName="DsFlexElement";const zs={Stretch:"stretch",FlexStart:"flex-start",FlexEnd:"flex-end",Center:"center",SpaceAround:"space-around",SpaceBetween:"space-between"},qs={Stretch:"stretch",FlexStart:"flex-start",FlexEnd:"flex-end",Center:"center"},Hs={Row:"row",Column:"column",RowReverse:"row-reverse",ColumnReverse:"column-reverse"},Us={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},Ga={Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl"},Le={name:"Flex-Layout",class:"ds-flex-layout",props:{justifyContent:{type:String,default:zs.Stretch,required:!0,options:Object.values(zs)},alignItems:{type:String,default:qs.Stretch,required:!0,options:Object.values(qs)},flexDirection:{type:String,default:Hs.Row,required:!0,options:Object.values(Hs)},flexWrap:{type:String,default:Us.Wrap,required:!1,options:Object.values(Us)},className:{type:String,default:""},width:{type:String,default:"100%"},height:{type:String,default:""},gap:{type:String,default:"",options:Object.values(Ga)}}},De=({children:r,className:e,justifyContent:t=Le.props.justifyContent.default,alignItems:s=Le.props.alignItems.default,flexDirection:a=Le.props.flexDirection.default,flexWrap:n=Le.props.flexWrap.default,width:i=Le.props.width.default,height:l,gap:c})=>{const d=()=>{const f=[Le.class,e];return c&&f.push(`${Le.class}--gap-${c}`),f.join(" ")},h=()=>({display:"flex",justifyContent:t,alignItems:s,flexDirection:a,flexWrap:n,width:i,height:l,gap:c});return u.jsx("div",{className:d(),style:h(),children:r})};De.propTypes={className:o.string,justifyContent:o.string,alignItems:o.string,flexDirection:o.string,flexWrap:o.string,width:o.string,height:o.string,gap:o.string},De.displayName="DsFlexLayout";const ut={None:"none",Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm"},Re={name:"Spacer",class:"ds-spacer",props:{vertical:{type:String,default:ut.None,options:Object.values(ut)},horizontal:{type:String,default:ut.None,options:Object.values(ut)}}},de=({vertical:r=Re.props.vertical.default,horizontal:e=Re.props.horizontal.default})=>{const t=r&&`ds-spacer__vertical--${r}`,s=e&&`ds-spacer__horizontal--${e}`;return u.jsx("div",{className:[Re.class,t,s].filter(a=>a).join(" "),"data-testid":"ds-spacer"})};de.propTypes={vertical:o.oneOf(Re.props.vertical.options),horizontal:o.oneOf(Re.props.horizontal.options)},de.displayName="DsSpacer";const Bt=({label:r,progress:e=js.props.progress.default,color:t=js.props.color.default})=>{const s=g.useMemo(()=>e>100?100:e<0?0:e,[e]),a=g.useMemo(()=>`ds-progress__progress--${t}`,[t]),n=g.useMemo(()=>t==="success-dark"?"color__success--dark":t==="warning"?"color__warning--dark":`color__${t}--default`,[t]);return u.jsx("div",{className:"ds-progress",children:u.jsxs(De,{flexDirection:"column",children:[u.jsx(te,{children:u.jsx("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,className:"ds-progress__container",role:"progressbar",children:u.jsx("div",{className:`ds-progress__progress ${a}`,"data-testid":"ds-progress-bar",style:{width:`${s}%`}})})}),u.jsx(te,{children:u.jsxs(De,{alignItems:"flex-end",flexDirection:"column",justifyContent:"center",children:[u.jsx(de,{vertical:"quark"}),u.jsx(u.Fragment,{children:r&&u.jsx(Se,{className:n,children:r})})]})})]})})};Bt.propTypes={label:o.string,progress:o.number,color:o.string};const Ws={Small:"sm",Medium:"md",Large:"lg"},Ys={Default:"",Error:"error",Success:"success"},Gs={Center:"center",End:"end",Initial:"initial"},Rs={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},Z={name:"Select",class:"ds-select",props:{label:{type:String,default:""},className:{type:String,default:""},animated:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},name:{type:String,default:""},testId:{type:String,default:"ds-select-test"},placeholder:{type:String},onChange:{type:Function,default:()=>{}},value:{type:[Boolean,String,Number,void 0]},size:{type:String,options:Object.values(Ws),default:Ws.Medium},status:{type:String,default:Ys.Default,options:Object.values(Ys)},tooltip:{type:String,default:""},tooltipPlacement:{type:String,default:Gs.Initial,options:Object.values(Gs)},tooltipPosition:{type:String,default:Rs.Top,options:Object.values(Rs)},feedback:{type:String,default:""},options:[]}},Nt=g.forwardRef(({label:r,className:e,disabled:t=Z.props.disabled.default,animated:s=Z.props.animated.default,multiple:a=Z.props.multiple.default,testId:n=Z.props.testId.default,name:i,options:l,value:c,placeholder:d,onChange:h,onChangeHandler:f,size:v=Z.props.size.default,status:k=Z.props.status.default,tooltip:C,tooltipPosition:_=Z.props.tooltipPosition.default,tooltipPlacement:y=Z.props.tooltipPlacement.default,feedback:F,...z},w)=>{const[A,p]=g.useState(!1),E=I=>{p(!1),h&&h(I,I.target.value),f&&f(I,I.target.value)},$=()=>{const I=[Z.class,"select-placeholder"];return I.push(`${Z.class}--${v}`),k&&I.push(`${Z.class}--${k}`),A&&I.push(`${Z.class}--active`),t&&I.push(`${Z.class}--disabled`),e&&I.push(e),I.join(" ")},X=g.useMemo(()=>{const I=[`${Z.class}__label`];return!s&&I.push(`${Z.class}__label--not-animated`),c&&I.push(`${Z.class}__label--has-value`),s&&!c&&!C&&I.push(`${Z.class}__label--hidden`),I.join(" ")},[c]);return u.jsxs("div",{className:$(),"data-testid":"ds-select-component",children:[r&&u.jsxs("label",{className:X,"data-testid":"ds-label-id",htmlFor:i,children:[r,C&&u.jsx(Ve,{className:`${Z.class}__tooltip`,placement:y,position:_,text:C,children:u.jsx(R,{className:`${Z.class}__icon`,image:"info"})})]}),u.jsxs("select",{"data-testid":n,disabled:t,id:i,multiple:a,name:i,onBlur:()=>p(!1),onChange:I=>E(I),onFocus:()=>p(!0),ref:w,value:c??"",...z,children:[(d||s)&&u.jsx("option",{disabled:!0,value:"",children:d??r}),l==null?void 0:l.map((I,se)=>{var pe;return"options"in I?u.jsx("optgroup",{label:I.label,children:(pe=I.options)==null?void 0:pe.map((he,Fe)=>u.jsx("option",{className:`${Z.class}__option-select`,value:he.value,children:he.label||he.value},Fe))},se):u.jsx("option",{className:`${Z.class}__option-select`,value:I.value,children:I.label||I.value},se)})]}),F&&u.jsxs("div",{className:"ds-select__feedback-container",children:[u.jsx(R,{className:"ds-select__icon",image:k==="success"?"check_circle":"info"}),u.jsx("span",{className:"ds-select__feedback",children:F})]})]})});Nt.propTypes={label:o.string.isRequired,className:o.string,disabled:o.bool,animated:o.bool,multiple:o.bool,name:o.string,testId:o.string,options:o.array.isRequired,placeholder:o.string,onChange:o.func,onChangeHandler:o.func,value:o.oneOfType([o.string,o.number]),size:o.oneOf(Z.props.size.options),status:o.oneOf(Z.props.status.options),tooltip:o.string,tooltipPosition:o.string,tooltipPlacement:o.string,feedback:o.string},Nt.displayName="DsSelect";const Xs={Large:"large",Small:"small"},Mt={name:"Subtitle",class:"ds-subtitle",props:{type:{type:String,default:Xs.Large,options:Object.values(Xs)}}},Ks=({children:r,className:e,testId:t="ds-subtitle-test",type:s})=>{const a=Mt.props.type.options.find(n=>n===s)&&`${Mt.class}--${s}`;return u.jsx("p",{className:[Mt.class,a,e&&e].filter(n=>n).join(" "),"data-testid":t,children:r})};Ks.displayName="DsSubtitle";const Zs={Small:"small",Medium:"medium",Large:"large"},Js={Text:"text"},Qs={None:"",Error:"error",Success:"success"},ea={None:"none",Both:"both",Horizontal:"horizontal",Vertical:"vertical",Block:"block",Inline:"inline"},J={name:"TextArea",class:"ds-textarea",props:{name:{type:String,required:!0},testId:{type:String,default:"ds-textarea-test"},type:{type:String,default:Js.Text,options:Object.values(Js)},animated:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},size:{type:String,default:Zs.Medium,options:Object.values(Zs)},label:{type:String,default:""},placeholder:{type:String,default:" "},value:{type:String,default:""},minLength:{type:Number,default:void 0},maxLength:{type:Number,default:void 0},rows:{type:Number,default:1},status:{type:String,default:Qs.None,options:Object.values(Qs)},feedback:{type:String,default:""},description:{type:String,default:""},icon:{type:String,default:""},tooltip:{type:String,default:""},resize:{type:String,default:ea.None,options:Object.values(ea)},onChangeHandler:{type:Function,default:()=>{}}}},$t=g.forwardRef(({name:r,testId:e=J.props.testId.default,animated:t=J.props.animated.default,size:s=J.props.size.default,label:a,placeholder:n,value:i,minLength:l,maxLength:c,tooltip:d,icon:h,status:f=J.props.status.default,feedback:v,disabled:k=J.props.disabled.default,required:C,className:_,resize:y=J.props.resize.default,onChangeHandler:F,onBlurHandler:z,onKeyDownHandler:w,onFocusHandler:A,rows:p=J.props.rows.default,cols:E,description:$,style:X},I)=>{const[se,pe]=g.useState(!1),[he,Fe]=g.useState(0),[_e,ze]=g.useState(Math.random());g.useEffect(()=>{i==null&&ze(Math.random())},[i]);const le=x=>{Fe(x.target.value.length),F&&F(x)},ve=x=>{w&&w(x)},Ie=x=>{pe(!1),z&&z(x)},Ne=x=>{pe(!0),A&&A(x)},m=()=>{const x=[`${J.class}`];return s&&x.push(`${J.class}--${s}`),t&&x.push(`${J.class}--animated`),d&&x.push(`${J.class}--with-icon`),f&&x.push(`${J.class}--${f}`),_&&x.push(_),x.join(" ")},S=g.useMemo(()=>{const x=[`${J.class}__label`];return(se||i)&&x.push(`${J.class}__label--active`),x.join(" ")},[i,se]),P=()=>!t&&n?n:"",V=()=>f&&f==="error"?"info":"check_circle",N={resize:y,...X||{}};return u.jsxs("div",{className:m(),children:[$&&u.jsx("span",{className:"ds-textarea__description",children:$}),v&&u.jsxs("div",{className:"ds-textarea__feedback",children:[u.jsx(R,{image:V()}),v]}),u.jsx("textarea",{className:"ds-textarea__textarea",cols:E,"data-testid":e,defaultValue:i||"",disabled:k,id:r,maxLength:c,minLength:l,name:r,onBlur:Ie,onChange:le,onFocus:Ne,onKeyDown:ve,placeholder:P(),ref:I,required:C,rows:p,style:N}),u.jsx("label",{className:S,htmlFor:r,children:a}),c&&u.jsxs("span",{className:"ds-textarea__count",children:[he,"/",c]}),d&&u.jsx(Ve,{className:"ds-textarea__tooltip",placement:"end",text:d,children:u.jsx(R,{className:"ds-textarea__icon",image:h})})]},_e)});$t.propTypes={name:o.string,testId:o.string,type:o.oneOf(J.props.type.options),animated:o.bool,size:o.oneOf(J.props.size.options),label:o.string,placeholder:o.string,value:o.oneOfType([o.string]),tooltip:o.string,icon:o.string,status:o.oneOf(J.props.status.options),feedback:o.string,minLength:o.number,maxLength:o.number,rows:o.number,cols:o.number,disabled:o.bool,required:o.bool,onChangeHandler:o.func,onBlur:o.func,onKeyDown:o.func,onFocus:o.func,resize:o.oneOf(J.props.resize.options).isRequired,description:o.string,style:o.object},$t.displayName="DsTextArea";const ct={name:"Container",class:"ds-container",props:{fluid:{type:Boolean,default:!1},testId:{type:String,default:"ds-container-test"}}},dt=({children:r,fluid:e=ct.props.fluid.default,className:t,style:s,testId:a=ct.props.testId.default})=>{const n=e?`${ct.class}--fluid`:ct.class;return u.jsx("div",{className:[n,t].filter(i=>i).join(" "),"data-testid":a,style:s,children:r})};dt.propTypes={children:o.node,fluid:o.bool,className:o.string,style:o.object,testId:o.string},dt.displayName="DsContainer";const ta=()=>typeof window<"u"&&window.innerWidth?window.innerWidth:0,sa=({children:r,grid:e})=>{const{row:t,col:s,mobileRow:a,mobileCol:n}=e,[i,l]=g.useState(ta());g.useEffect(()=>{const d=()=>{l(ta())};if(typeof window<"u")return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]);const c=g.useMemo(()=>i<=768?{gridRow:a||t,gridColumn:n||s}:{gridRow:t,gridColumn:s},[i,t,s,a,n]);return u.jsx("div",{style:c,children:r})};sa.displayName="DsGridElement";const aa={Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},pt={Start:"start",End:"end",Center:"center",Stretch:"stretch",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},Q={name:"Grid-Layout",class:"ds-grid-layout",props:{rows:{type:String,default:"auto",required:!0},gap:{type:String,default:aa.Small,options:Object.values(aa)},vGap:{type:Boolean,default:!0},hGap:{type:Boolean,default:!0},width:{type:String,default:""},height:{type:String,default:""},horizontalAlign:{type:String,default:pt.Start,options:Object.values(pt)},verticalAlign:{type:String,default:pt.Start,options:Object.values(pt)}}};function na(){const{innerWidth:r,innerHeight:e}=window;return{width:r,height:e}}function Ra(){const[r,e]=g.useState(na());return g.useEffect(()=>{function t(){e(na())}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),r}const Vt=({children:r,rows:e=Q.props.rows.default,gap:t=Q.props.gap.default,vGap:s=Q.props.vGap.default,hGap:a=Q.props.hGap.default,horizontalAlign:n=Q.props.horizontalAlign.default,verticalAlign:i=Q.props.verticalAlign.default,width:l=Q.props.width.default,height:c=Q.props.height.default})=>{const d=s&&`${Q.class}__v-gap--${t}`,h=a&&`${Q.class}__h-gap--${t}`,f=n&&Q.props.horizontalAlign.options.find(w=>w===n)?`${Q.class}--h-${n}`:null,v=i&&Q.props.verticalAlign.options.find(w=>w===i)?`${Q.class}--v-${i}`:null,{width:k}=Ra(),[C,_]=g.useState("auto");g.useEffect(()=>{k<=768?_("6"):_("12")},[k]);const y=w=>/^[+-]?\d+$/.test(w),F=()=>e.split(",").map(A=>(A=A.trim(),A==="0"||A==="*"||A==="auto"?"auto":y(A)?A+"fr":A)).join(" "),z=()=>`repeat(${C}, minmax(0, 1fr))`;return u.jsx("div",{className:[Q.class,f,v,d,h].filter(w=>w).join(" "),style:{width:l,height:c,gridTemplateColumns:z(),gridTemplateRows:F()},children:r})};Vt.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node,o.func]),rows:o.string,gap:o.oneOf(Q.props.gap.options),vGap:o.bool,hGap:o.bool,width:o.string,height:o.string,horizontalAlign:o.oneOf(Q.props.horizontalAlign.options),verticalAlign:o.oneOf(Q.props.verticalAlign.options)},Vt.displayName="DsGridLayout";const Ce={None:"none",Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},me={name:"Wrapper",class:"ds-wrapper",props:{space:{type:String,default:Ce.ExtraSmall,options:Object.values(Ce)},top:{type:String,default:Ce.None,options:Object.values(Ce)},right:{type:String,default:Ce.None,options:Object.values(Ce)},bottom:{type:String,default:Ce.None,options:Object.values(Ce)},left:{type:String,default:Ce.None,options:Object.values(Ce)}}},He=({children:r,space:e=me.props.space.default,top:t=me.props.top.default,right:s=me.props.right.default,bottom:a=me.props.bottom.default,left:n=me.props.left.default})=>{const i=t&&`${me.class}__top--${t}`,l=s&&`${me.class}__right--${s}`,c=a&&`${me.class}__bottom--${a}`,d=n&&`${me.class}__left--${n}`,h=e&&`${me.class}--${e}`;return u.jsx("div",{className:[me.class,i,l,c,d,h].filter(f=>f).join(" "),children:r})};He.displayName="DsWrapper";const Lt={name:"Accordion",class:"ds-accordion",props:{openItemListIndex:{type:Boolean,default:!1},items:{type:Array,default:[]},activeItem:{type:Number,default:0}}},Ue={name:"AccordionItem",class:"ds-accordion-item",props:{title:{type:String,default:""},content:{type:String,default:""},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1}}},Pt=({title:r,content:e,onToggle:t,active:s=Ue.props.active.default,disabled:a=Ue.props.disabled.default})=>{const n=s&&`${Ue.class}--active`;return u.jsxs("li",{className:[Ue.class,n].filter(i=>i).join(" "),children:[u.jsxs("button",{className:`${Ue.class}__button`,disabled:a,onClick:t,children:[r,u.jsx(R,{className:`${Ue.class}__icon`,color:"neutral-90",image:"expand_more",size:"xl"})]}),s&&u.jsx("div",{className:"ds-accordion-item__content",children:e})]})};Pt.propTypes={active:o.bool,title:o.oneOfType([o.element,o.string]),content:o.oneOfType([o.element,o.string]),disabled:o.bool},Pt.displayName="DsAccordionItem";const jt=({items:r=Lt.props.items.default,activeItem:e=Lt.props.activeItem.default,onClick:t})=>{const[s,a]=g.useState(-1);g.useEffect(()=>{r.map((i,l)=>{i.active&&a(l)})},[r]),g.useEffect(()=>{e!=null&&a(e)},[e]);const n=i=>{if(s===i)return t&&t(-1),a(-1);a(i),t&&t(i)};return u.jsx("ul",{className:Lt.class,children:r.map((i,l)=>u.jsx(Pt,{active:s===l,content:i.content,disabled:i.disabled,onToggle:()=>{n(l)},title:i.title},l))})};jt.propTypes={items:o.array,activeItem:o.number},jt.displayName="DsAccordion";const ra=({title:r,activeTags:e,handleTagClose:t})=>u.jsx("div",{className:"active-tags",children:e.length>0&&u.jsxs(u.Fragment,{children:[u.jsx(Se,{className:"active-tags__title",children:r}),u.jsx("div",{className:"active-tags__list","data-testid":"ds-list",children:e.map((s,a)=>u.jsx(Ve,{text:`Filtro ${s.text} aplicado`,children:u.jsxs("div",{className:`active-tags__item ${s.hiddenClose&&"active-tags__item--no-close"}`,"data-testid":`ds-active-tag-${a}`,children:[u.jsxs(De,{alignItems:"center",gap:"nano",children:[u.jsx(te,{children:u.jsx(R,{className:"active-tags__icon",color:s.hiddenClose?"neutral-00":"neutral-90",fill:!0,image:s.icon,testId:`icon-${a}`})}),u.jsx(te,{children:u.jsx(Se,{type:"small",children:s.text})})]}),!s.hiddenClose&&u.jsx(R,{image:"close",onClick:()=>t(a),testId:`icon-close-${a}`})]},a)},`ds-tooltip-key-${s.id}-${s.text}`))})]})});ra.displayName="DsActiveTags";const Xe={name:"Carousel",class:"ds-carousel",props:{}},ia=({slides:r,interval:e=3e3,imageHeight:t=100,imageWidth:s=100,imageMaxHeight:a,imageMaxWidth:n})=>{const[i,l]=g.useState(0),[c,d]=g.useState(!1),h=g.useRef(null);g.useEffect(()=>(c||(h.current=setInterval(()=>{l(k=>k===r.length-1?0:k+1)},e)),()=>{h.current&&clearInterval(h.current)}),[c,e,r.length]);const f=()=>d(!0),v=()=>d(!1);return u.jsxs("div",{className:`${Xe.class}`,"data-testid":"ds-carousel",onMouseEnter:f,onMouseLeave:v,children:[u.jsx("div",{className:`${Xe.class}__image-wrapper`,style:{height:t,width:s,maxHeight:a,maxWidth:n},children:r.map((k,C)=>u.jsx("img",{alt:k.title,className:`${Xe.class}__image ${C===i?"active":"inactive"}`,height:t,src:k.image,style:{maxHeight:a,maxWidth:n},width:s},C))}),u.jsx(de,{vertical:"xxs"}),u.jsx("div",{children:u.jsx(Qe,{className:"color__primary--default",type:"heading-4",children:r[i].title})}),u.jsx("div",{children:u.jsx(Se,{type:"large",children:r[i].description})}),u.jsx(de,{vertical:"xxs"}),u.jsx("div",{className:`${Xe.class}__dots`,children:u.jsx("div",{className:`${Xe.class}__dots-wrapper`,children:r.map((k,C)=>u.jsx("button",{"aria-label":`Go to slide ${C+1}`,className:`dot ${i===C?"dot--active":""}`,onClick:()=>l(C)},C))})})]})};ia.propTypes={slides:o.arrayOf(o.shape({title:o.string.isRequired,image:o.string.isRequired,description:o.string.isRequired})).isRequired,interval:o.number,imageHeight:o.oneOfType([o.number,o.string]),imageWidth:o.oneOfType([o.number,o.string]),imageMaxHeight:o.oneOfType([o.number,o.string]),imageMaxWidth:o.oneOfType([o.number,o.string])};const oa={Small:"small",Medium:"medium",Large:"large"},G={name:"EditableSelect",class:"ds-editable-select",props:{label:{type:String,default:""},testId:{type:String,default:"ds-editable-select"},animated:{type:Boolean,default:!0},placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},noOptionsMessage:{type:String,default:"Nenhum resultado encontrado"},size:{type:String,default:oa.Medium,options:Object.values(oa)},status:{type:String,default:""},options:{type:Array,default:[]},icon:{type:String,default:void 0},disabled:{type:Boolean,default:!1},loading:{type:Boolean},onChangeHandler:{type:Function,default:()=>{}},onBlurHandler:{type:Function,default:()=>{}},onFocusHandler:{type:Function,default:()=>{}},onSelectHandler:{type:Function,default:()=>{}}}},la=({label:r=G.props.label.default,name:e=G.props.name.default,testId:t=G.props.testId.default,value:s=G.props.value.default,options:a=G.props.options.default,size:n=G.props.size.default,onChangeHandler:i=G.props.onChangeHandler.default,onSelectHandler:l=G.props.onSelectHandler.default,icon:c=G.props.icon.default,noOptionsMessage:d=G.props.noOptionsMessage.default,disabled:h=G.props.disabled.default,status:f=G.props.status.default,onBlurHandler:v=G.props.onBlurHandler.default,onFocusHandler:k=G.props.onFocusHandler.default,animated:C=G.props.animated.default,placeholder:_=G.props.placeholder.default,loading:y})=>{const[F,z]=g.useState(!1),[w,A]=g.useState(s),p=I=>{i(I),(y==null&&I.currentTarget.value.length||!y&&I.currentTarget.value.length>2)&&z(!0)},E=I=>{l(I),v(),A(Math.random().toString()),z(!1)},$=I=>{h||E(I)};g.useEffect(()=>{s.length===0&&z(!1)},[s]);const X=()=>a.length>0?a.map((I,se)=>u.jsx("button",{className:`${G.class}__option ${G.class}__option--${n}`,"data-testid":`ds-option-${I.id||I.label}`,onClick:()=>$(I),children:I.label},se)):u.jsx("div",{className:`${G.class}__option ${G.class}__option--not-found--${n}`,children:d},"no_option");return u.jsxs("div",{className:`${G.class}__container`,children:[u.jsx(qe,{animated:C,className:`${G.class}__input`,disabled:h,label:r,name:e,onBlurHandler:v,onChangeHandler:p,onFocusHandler:k,placeholder:_,size:n,status:f,testId:t,value:s},w),(c||y)&&(y?u.jsx("div",{className:`${G.class}__loading ${G.class}__loading--${n}`,style:{width:"18px"},children:u.jsx(ot,{fullscreen:!1})}):c&&u.jsx(R,{className:`${G.class}__icon ${G.class}__icon--${n}`,image:c})),F&&u.jsx("div",{className:`${G.class}__list ${G.class}__list--${n}`,"data-testid":"ds-list",children:X()})]})};la.displayName="DsEditableSelect";const Ke={name:"DsIndicator",class:"ds-indicator",props:{current:{type:Number,default:0},length:{type:Number,required:!0}}},Xa=({length:r,current:e=Ke.props.current.default})=>{const[t,s]=g.useState(e),a=i=>i<t?`${Ke.class}__step--older`:i===t?`${Ke.class}__step--active`:"";g.useEffect(()=>{s(e)},[e]);const n=[];for(let i=0;i<r;i++)n.push(u.jsx("div",{className:`${Ke.class}__step ${a(i)}`,"data-testid":`ds-indicator-step-${i}`},i));return u.jsx("div",{className:Ke.class,children:n})},Ka={name:"DsInlineEditable",class:"ds-inline-editable",props:{name:{type:String,required:!0},value:{type:String,default:""},min:{type:String,default:""},max:{type:String,default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},onChangeHandler:{type:Function,default:()=>{}}}},zt=({name:r,value:e,prefix:t,sufix:s,min:a,max:n,onChangeHandler:i})=>{const l=g.useRef(null),[c,d]=g.useState(!1),[h,f]=g.useState("");g.useEffect(()=>{f(e??"")},[e]);const v=y=>{y.key==="Enter"&&k(y)};function k(y){d(!1),i&&(a&&parseInt(a)>=parseInt(h===""?a:h)?(y.currentTarget.value=a,f(a)):n&&parseInt(n)<parseInt(h)?(y.currentTarget.value=n,f(n)):y.currentTarget.value=h,i(y))}const C=y=>{f(y.currentTarget.value)},_=async()=>{var y;await d(!0),(y=l.current)==null||y.focus()};return u.jsx("div",{className:Ka.class,children:c?u.jsx("input",{className:"ds-input__input","data-testid":"ds-input",max:n,min:a,name:r,onBlur:k,onChange:C,onKeyDown:v,ref:l,type:"number",value:h}):u.jsx("div",{"data-testid":"ds-inline-editible-div-click",onClick:_,children:u.jsxs(De,{alignItems:"center",gap:"nano",children:[u.jsx(te,{children:u.jsx(Se,{children:u.jsxs("b",{children:[t,e,s]})})}),u.jsx(te,{children:u.jsx(R,{image:"edit_square"})})]})})})};zt.propTypes={value:o.string},zt.displayName="DsInlineEditable";const Za=[1,2,3,4],ua={Squared:"squared",Rounded:"rounded"},fe={name:"Modal",class:"ds-modal",props:{elevation:{type:Number,options:Za},variant:{type:String,default:ua.Rounded,options:Object.values(ua)},cancelBtnText:{type:String,default:"Cancelar"},confirmBtnText:{type:String,default:"Confirmar"},isModalOpen:{type:Boolean,default:!1}}},qt=({className:r,title:e,content:t,cancelBtnText:s=fe.props.cancelBtnText.default,confirmBtnText:a=fe.props.confirmBtnText.default,variant:n=fe.props.variant.default,elevation:i,isModalOpen:l=fe.props.isModalOpen.default,onClose:c,onCancel:d,onConfirm:h,...f})=>{const v=n&&fe.props.variant.options.find(y=>y===n)?`${fe.class}--${n}`:`${fe.class}--${fe.props.variant.default}`,k=i&&`${fe.class}--elevation-${i}`,C=h||d,_=g.useCallback(y=>{y.keyCode===27&&c()},[c]);return g.useEffect(()=>(l&&window&&!C&&window.addEventListener("keyup",_),()=>{window.removeEventListener("keyup",_)}),[C,_]),l?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"ds-modal-overlay","data-testid":"ds-modal-overlay",...f,onClick:()=>C?()=>{}:c()}),u.jsxs("div",{className:[fe.class,v,k,r&&r].filter(y=>y).join(" "),"data-testid":"ds-modal",children:[!C&&u.jsx("button",{className:"ds-modal__closeBtn","data-testid":"ds-modal-close-button",onClick:c,children:u.jsx(R,{image:"close",size:"lg"})}),u.jsxs("div",{className:"ds-modal__content",children:[u.jsx("div",{className:"ds-modal__content__title",children:e}),e&&u.jsx(de,{vertical:"xxxs"}),u.jsx("div",{className:"ds-modal__content__content",children:t})]}),C&&u.jsx(de,{vertical:"sm"}),!C&&u.jsx(de,{vertical:"xxs"}),u.jsxs("div",{className:"ds-modal__cta",children:[d&&u.jsx(We,{onClick:()=>{c(),d()},children:s}),h&&u.jsx(We,{onClick:()=>{c(),h()},children:a})]})]})]}):null};qt.propTypes={firstButtonText:o.string,confirmBtnText:o.string,cancelBtnText:o.string,variant:o.oneOf(fe.props.variant.options),elevation:o.oneOf(fe.props.elevation.options),isModalOpen:o.bool,title:o.node,content:o.node},qt.displayName="DsModal";const ca={Success:"success",Danger:"danger",Warning:"warning",Info:"info"},da={Rounded:"rounded",Squared:"squared"},oe={name:"DsNotification",class:"ds-notification",props:{type:{type:String,default:ca.Info,options:Object.values(ca)},id:{type:String},autoClose:{type:Boolean,default:!1},autoCloseTimer:{type:Number,default:4e3},dismissible:{type:Boolean,default:!1},elevation:{type:Number,options:[1,2,3,4]},variant:{type:String,default:da.Rounded,options:Object.values(da)},progressBar:{type:Boolean,default:!0},testId:{type:String,default:"ds-notification"}}},Ja={success:"check",danger:"error",warning:"warning",info:"info"},Ht=({className:r,type:e=oe.props.type.default,variant:t=oe.props.variant.default,id:s,children:a,message:n,autoClose:i=oe.props.autoClose.default,autoCloseTimer:l=oe.props.autoCloseTimer.default,dismissible:c=oe.props.dismissible.default,elevation:d,progressBar:h=oe.props.progressBar.default,handleClose:f,testId:v=oe.props.testId.default})=>{const[k,C]=g.useState(l),[_,y]=g.useState(!1),[F,z]=g.useState(!0),w=[oe.class,e&&`${oe.class}--${e}`,t&&`${oe.class}--${t}`,d&&`${oe.class}--elevation-${d}`,r&&r].join(" "),A=()=>C(X=>(X===0&&z(!1),X-100));g.useEffect(()=>{!i&&!c&&z(!0);let X;return!_&&i&&(X=setInterval(A,100)),()=>{clearInterval(X)}},[_,i,l,F,c]);const p=()=>{y(!0)},E=()=>{y(!1)},$=X=>{z(!1),f&&f(X)};return F?u.jsxs("div",{className:w,"data-testid":v,id:s,onMouseEnter:p,onMouseLeave:E,children:[u.jsx(He,{bottom:"nano",top:"nano",children:u.jsxs(De,{alignItems:"center",flexWrap:"nowrap",gap:"xxxs",children:[u.jsx(te,{children:u.jsx(R,{color:e,fill:!0,image:Ja[e]})}),u.jsx(te,{flex:"1",children:u.jsx(He,{left:"none",right:"none",space:"nano",children:a??n})}),u.jsx(te,{children:c?u.jsx("div",{className:`${oe.class}__button`,"data-testid":`${v}-close`,onClick:X=>$(X),children:u.jsx(He,{children:u.jsx(R,{image:"close"})})}):u.jsx(de,{horizontal:"quark"})})]})}),h&&i&&u.jsx("div",{className:`${oe.class}__progress-bar ${oe.class}__progress-bar--${e}`,"data-testid":`${v}-progress-bar`,style:{width:`${k/l*100}%`}})]}):null};Ht.displayName="DsNotification";const Ut={name:"DsPasswordConfirmation",class:"ds-password-confirmation",props:{onChange:{type:Function,default:()=>{}},validationList:{type:Array,default:[{title:"Um número",rule:r=>/\d/.test(r)},{title:"Uma letra maiúscula",rule:r=>/[A-Z]/.test(r)},{title:"Um caractere especial. Ex: @#!?",rule:r=>/[!@#$%^&*()+\-=_[\]{};':"\\|,.<>/?]/.test(r)},{title:"Mínimo 8 caracteres",rule:r=>r.length>=8}]},instructionLabel:{type:String,default:"A senha deverá conter:"},testId:{type:String,default:"ds-password-confirmation"}}},ht={strong:"Forte",good:"Boa",medium:"Médio",weak:"Fraco"},Wt=({onChange:r,validationList:e=Ut.props.validationList.default,instructionLabel:t=Ut.props.instructionLabel.default,testId:s=Ut.props.testId.default})=>{const[a,n]=g.useState(""),[i,l]=g.useState(""),[c,d]=g.useState([]),[h,f]=g.useState({score:0,color:"danger",label:"Fraco"}),[v,k]=g.useState(!1),C=g.useCallback(p=>{const E=e.map($=>$==null?void 0:$.rule(p));return d(E),E},[e]),_=g.useCallback(p=>{n(p.currentTarget.value);const E=C(p.currentTarget.value),$=w(E);r({password:p.currentTarget.value,confirmationPassword:i,isEqual:i===p.currentTarget.value,feedback:$})},[i,r,C]),y=g.useCallback(p=>{l(p.currentTarget.value);const E=C(a),$=w(E);r({password:a,confirmationPassword:p.currentTarget.value,isEqual:a===p.currentTarget.value,feedback:$})},[a,r,C]),F=g.useMemo(()=>a!==i&&v?{status:"error",feedback:"As senhas são diferentes"}:{status:"",feedback:""},[a,i,v]),z=g.useCallback(p=>{const E={score:p,color:"danger",label:ht.weak};return p>30&&p<75?(E.color="warning",E.label=ht.medium):p>=75&&p<100?(E.color="success",E.label=ht.good):p===100&&(E.color="success-dark",E.label=ht.strong),E},[]),w=g.useCallback(p=>{const E=p.reduce((X,I)=>{let se=X;return I?(se++,se):X},0),$=z(E*100/p.length);return f($),$},[z]),A=()=>u.jsx("ul",{children:e.map((p,E)=>{const $=c[E]?"ds-password-confirmation__list":"ds-password-confirmation__list--disc";return u.jsxs("li",{className:$,children:[c[E]?u.jsx(R,{color:"success-dark",image:"check",testId:"ds-check-icon"}):null,u.jsx(de,{horizontal:"quark"}),u.jsx(Se,{children:p.title})]},E+p.title)})});return u.jsxs(De,{className:"ds-password-confirmation",flexDirection:"column",children:[u.jsx(te,{children:u.jsx(qe,{label:"Senha",name:"password",onChangeHandler:_,testId:`${s}-main-input`,type:"password",value:a})}),u.jsx(te,{children:u.jsx(Bt,{color:h==null?void 0:h.color,label:h==null?void 0:h.label,progress:h==null?void 0:h.score})}),u.jsx(te,{children:u.jsx(Se,{children:t})}),u.jsx(te,{children:A()}),u.jsx(de,{vertical:"xxs"}),u.jsx(te,{children:u.jsx(qe,{feedback:F.feedback,label:"Confirme a senha",name:"confirmPassword",onBlurHandler:()=>k(!0),onChangeHandler:y,onFocusHandler:()=>k(!0),status:F.status,testId:`${s}-confirm-input`,type:"password",value:i})})]})};Wt.propTypes={onChange:o.func,validationList:o.array,instructionLabel:o.string,testId:o.string},Wt.displayName="DsPasswordConfirmation";const ye={name:"DsStepper",class:"ds-stepper",props:{steps:{type:Array,required:!0},selectedStep:{type:Number,default:0}}},pa=({steps:r,selectedStep:e=ye.props.selectedStep.default,onChange:t})=>{const[s,a]=g.useState(e),n=(i,l)=>{const c=[`${ye.class}__button`];return l!==i&&c.push(`${ye.class}__button--round`),r[i]&&r[i].disabled&&c.push(`${ye.class}__button--disabled`),c.join(" ")};return g.useEffect(()=>{a(e)},[e]),g.useEffect(()=>{t(s)},[s]),u.jsxs("div",{className:ye.class,children:[u.jsxs("span",{className:`${ye.class}__step-counter`,children:["Etapa ",s+1," de ",r==null?void 0:r.length]}),u.jsx("div",{className:`${ye.class}__step`,children:r.map((i,l)=>u.jsx("div",{className:`${ye.class}__content`,children:u.jsx("button",{className:n(l,s),"data-testid":`ds-button-${l}`,disabled:i.disabled,onClick:()=>a(l),children:u.jsxs("span",{className:`${ye.class}__text`,children:[s===l?u.jsx(He,{bottom:"none",left:"nano",right:"nano",top:"none",children:u.jsx(R,{className:`${ye.class}__icon`,fill:!0,image:i.icon,testId:`ds-icon-${l}`})}):u.jsx(R,{className:`${ye.class}__icon`,fill:!0,image:i.icon,testId:`ds-icon-${l}`}),s===l&&i.label]})})},l))})]})};pa.displayName="DsStepper";const Ee={name:"Table",class:"ds-table",props:{header:{type:Array,default:[]},items:{type:Array,default:[]},columns:{type:Array,default:[]}}},ha=({item:r,columns:e})=>u.jsx("tr",{className:`${Ee.class}__row`,children:e.map((t,s)=>{const a=t.align&&`${Ee.class}__cell--align-${t.align}`;return u.jsx("td",{children:u.jsx("div",{className:[`${Ee.class}__cell`,a,t.className].filter(n=>n).join(" "),children:r&&r[`${t.name}`]})},s)})});ha.displayName="DsTableRow";const fa=({columns:r,data:e,className:t})=>u.jsx("div",{className:`${Ee.class}__wrapper`,children:u.jsxs("table",{className:[`${Ee.class}`,t].filter(s=>s).join(" "),children:[u.jsx("thead",{className:`${Ee.class}__head`,children:u.jsx("tr",{className:`${Ee.class}__row`,children:r&&r.map((s,a)=>u.jsx("th",{style:{width:s.size},children:u.jsx("div",{className:[`${Ee.class}__cell`,s.align&&`${Ee.class}__cell--align-${s.align}`].filter(n=>n).join(" "),children:s.label})},a))})}),u.jsx("tbody",{className:`${Ee.class}__body`,children:e&&e.map((s,a)=>u.jsx(ha,{columns:r,item:s},a))})]})});fa.displayName="DsTable";const ga={None:"",Primary:"primary",Secondary:"secondary",Neutral:"neutral",Success:"success",Warning:"warning",Danger:"danger",Info:"info"},Be={name:"DsTabs",class:"ds-tabs",props:{tabs:{type:Array,required:!0},selectedTab:{type:Number,default:0},color:{type:String,default:ga.Primary,options:Object.values(ga)},className:{type:String,default:""},onChange:{type:Function,default:()=>{}}}},Qa=({active:r,className:e,color:t,disabled:s,name:a,index:n,title:i,onClick:l})=>{const c=[`${Be.class}__tab`,`${Be.class}__tab-color--${t}`,r&&`${Be.class}__tab--active`,s&&`${Be.class}__tab--disabled`,e&&e].join(" "),d=h=>{l&&!s&&l(h)};return u.jsx("div",{className:c,"data-testid":`ds-tab-${n}`,id:a,onClick:()=>d(n),children:i})},en=({tabs:r,color:e,selectedTab:t=Be.props.selectedTab.default,className:s,onChange:a})=>{const[n,i]=g.useState(t),l=c=>{i(c),a&&a(c)};return g.useEffect(()=>i(t),[t]),u.jsxs("div",{className:[Be.class,s&&s].join(" "),"data-testid":"ds-tabs",children:[u.jsx("div",{className:`${Be.class}__header`,children:r.map((c,d)=>g.createElement(Qa,{...c,active:n===d,color:e,index:d,key:d,onClick:()=>l(d)}))}),u.jsx("div",{className:`${Be.class}__content`,children:r[n].content})]})};function ma({library:r,children:e,theme:t}){return u.jsx("div",{"data-library":r,"data-theme":t,children:u.jsx("div",{className:"ds-theme",children:e})})}ma.propTypes={library:o.string,children:o.node.isRequired,theme:o.string};const ya={TopLeft:"top-left",TopCenter:"top-center",TopRight:"top-right",BottomLeft:"bottom-left",BottomCenter:"bottom-center",BottomRight:"bottom-right"},Pe={name:"DsNotificationList",class:"ds-notification-list",props:{position:{type:String,default:ya.TopRight,options:Object.values(ya)},fluid:{type:Boolean,default:!1},className:{type:String,default:""}}},Yt=({className:r=Pe.props.className.default,position:e=Pe.props.position.default,fluid:t=Pe.props.fluid.default,notifications:s,removeNotification:a})=>{const n=[Pe.class,`${Pe.class}--${e}`,t&&`${Pe.class}--fluid`,r&&r].join(" "),i=l=>{a&&a(l)};return u.jsx("div",{className:n,"data-testid":"ds-notification-list",children:s.map(l=>{const c=l.autoClose??!0,d=l.autoCloseTimer??4e3,h=l.dismissible??!0,f=l.elevation??2,v=l.progressBar??!0;return u.jsx(Ht,{autoClose:c,autoCloseTimer:d,dismissible:h,elevation:f,handleClose:()=>i(l.id),id:l.id,message:l.message,progressBar:v,type:l.type},l.id)})})};Yt.propTypes={position:o.oneOf(Pe.props.position.options),fluid:o.bool,notifications:o.array,removeNotification:o.func},Yt.displayName="DsNotificationList";const je={name:"SplitLayout",class:"ds-split-layout",props:{}},Gt=({leftContent:r,rightContent:e,leftBackgroundColor:t,rightBackgroundColor:s,reverseOnMobile:a=!1})=>{const n=t?`${je.class}__content--${t}`:"",i=s?`${je.class}__content--${s}`:"",l=a?`${je.class}__content--mobile-order-2`:"",c=a?`${je.class}__content--mobile-order-1`:"",d=`${je.class}__content ${n} ${l}`,h=`${je.class}__content ${i} ${c}`;return u.jsxs("div",{className:je.class,children:[u.jsx("div",{className:d,children:r}),u.jsx("div",{className:h,children:e})]})};Gt.propTypes={leftContent:o.node.isRequired,rightContent:o.node.isRequired,leftBackgroundColor:o.string,rightBackgroundColor:o.string,reverseOnMobile:o.bool},Gt.displayName="DsSplitLayout";const ft={name:"TwoColumns",class:"ds-two-columns",props:{}},Rt=({header:r,main:e,sidebar:t,breadcrumb:s})=>u.jsxs(dt,{children:[u.jsxs("div",{className:"ds-grid",children:[u.jsx("div",{className:"ds-grid__row",children:u.jsx("div",{className:"ds-grid__col ds-grid__col-12",children:s})}),u.jsxs("div",{className:`${ft.class}__content ds-grid__row`,children:[u.jsx("div",{className:"ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12",children:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:`${ft.class}__header`,children:r}),u.jsx("div",{className:`${ft.class}__main`,children:e})]})}),u.jsx("div",{className:`${ft.class}__sidebar ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12`,children:t})]})]}),u.jsx(de,{vertical:"sm"})]});Rt.propTypes={breadcrumb:o.node,header:o.node,main:o.node,sidebar:o.node},Rt.displayName="DsTwoColumns",B.DsAccordion=jt,B.DsActiveTags=ra,B.DsButton=We,B.DsCaption=Et,B.DsCard=Tt,B.DsCarousel=ia,B.DsCheckbox=At,B.DsContainer=dt,B.DsEditableSelect=la,B.DsFlexElement=te,B.DsFlexLayout=De,B.DsGridElement=sa,B.DsGridLayout=Vt,B.DsHR=xt,B.DsHeading=Qe,B.DsIcon=R,B.DsIndicator=Xa,B.DsInlineEditable=zt,B.DsInput=qe,B.DsLoading=ot,B.DsModal=qt,B.DsNotification=Ht,B.DsNotificationList=Yt,B.DsOption=It,B.DsParagraph=Se,B.DsPasswordConfirmation=Wt,B.DsProgress=Bt,B.DsSelect=Nt,B.DsSpacer=de,B.DsSplitLayout=Gt,B.DsStepper=pa,B.DsSubtitle=Ks,B.DsTable=fa,B.DsTabs=en,B.DsTextArea=$t,B.DsTooltip=Ve,B.DsTwoColumns=Rt,B.DsWrapper=He,B.ThemeProvider=ma,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
19
+ */var yt,Qt;function Sa(){if(Qt)return yt;Qt=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function s(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function a(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(h){return i[h]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return yt=a()?Object.assign:function(n,i){for(var l,c=s(n),d,h=1;h<arguments.length;h++){l=Object(arguments[h]);for(var f in l)e.call(l,f)&&(c[f]=l[f]);if(r){d=r(l);for(var v=0;v<d.length;v++)t.call(l,d[v])&&(c[d[v]]=l[d[v]])}}return c},yt}var _t,es;function vt(){if(es)return _t;es=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _t=r,_t}var kt,ts;function ss(){return ts||(ts=1,kt=Function.call.bind(Object.prototype.hasOwnProperty)),kt}var bt,as;function Ca(){if(as)return bt;as=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=vt(),t={},s=ss();r=function(n){var i="Warning: "+n;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(n,i,l,c,d){if(process.env.NODE_ENV!=="production"){for(var h in n)if(s(n,h)){var f;try{if(typeof n[h]!="function"){var v=Error((c||"React class")+": "+l+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}f=n[h](i,h,c,l,null,e)}catch(C){f=C}if(f&&!(f instanceof Error)&&r((c||"React class")+": type specification of "+l+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in t)){t[f.message]=!0;var k=d?d():"";r("Failed "+l+" type: "+f.message+(k??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},bt=a,bt}var St,ns;function Ea(){if(ns)return St;ns=1;var r=Jt(),e=Sa(),t=vt(),s=ss(),a=Ca(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return St=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(m){var S=m&&(d&&m[d]||m[h]);if(typeof S=="function")return S}var v="<<anonymous>>",k={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:z(),arrayOf:w,element:T(),elementType:p(),instanceOf:A,node:se(),objectOf:G,oneOf:M,oneOfType:I,shape:he,exact:Fe};function C(m,S){return m===S?m!==0||1/m===1/S:m!==m&&S!==S}function _(m,S){this.message=m,this.data=S&&typeof S=="object"?S:{},this.stack=""}_.prototype=Error.prototype;function y(m){if(process.env.NODE_ENV!=="production")var S={},P=0;function V(x,L,j,H,D,q,ee){if(H=H||v,q=q||j,ee!==t){if(c){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=H+":"+j;!S[Te]&&P<3&&(n("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),S[Te]=!0,P++)}}return L[j]==null?x?L[j]===null?new _("The "+D+" `"+q+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new _("The "+D+" `"+q+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:m(L,j,H,D,q)}var N=V.bind(null,!1);return N.isRequired=V.bind(null,!0),N}function F(m){function S(P,V,N,x,L,j){var H=P[V],D=le(H);if(D!==m){var q=ve(H);return new _("Invalid "+x+" `"+L+"` of type "+("`"+q+"` supplied to `"+N+"`, expected ")+("`"+m+"`."),{expectedType:m})}return null}return y(S)}function z(){return y(i)}function w(m){function S(P,V,N,x,L){if(typeof m!="function")return new _("Property `"+L+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var j=P[V];if(!Array.isArray(j)){var H=le(j);return new _("Invalid "+x+" `"+L+"` of type "+("`"+H+"` supplied to `"+N+"`, expected an array."))}for(var D=0;D<j.length;D++){var q=m(j,D,N,x,L+"["+D+"]",t);if(q instanceof Error)return q}return null}return y(S)}function T(){function m(S,P,V,N,x){var L=S[P];if(!l(L)){var j=le(L);return new _("Invalid "+N+" `"+x+"` of type "+("`"+j+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return y(m)}function p(){function m(S,P,V,N,x){var L=S[P];if(!r.isValidElementType(L)){var j=le(L);return new _("Invalid "+N+" `"+x+"` of type "+("`"+j+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return y(m)}function A(m){function S(P,V,N,x,L){if(!(P[V]instanceof m)){var j=m.name||v,H=Ne(P[V]);return new _("Invalid "+x+" `"+L+"` of type "+("`"+H+"` supplied to `"+N+"`, expected ")+("instance of `"+j+"`."))}return null}return y(S)}function M(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),i;function S(P,V,N,x,L){for(var j=P[V],H=0;H<m.length;H++)if(C(j,m[H]))return null;var D=JSON.stringify(m,function(ee,b){var Te=ve(b);return Te==="symbol"?String(b):b});return new _("Invalid "+x+" `"+L+"` of value `"+String(j)+"` "+("supplied to `"+N+"`, expected one of "+D+"."))}return y(S)}function G(m){function S(P,V,N,x,L){if(typeof m!="function")return new _("Property `"+L+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var j=P[V],H=le(j);if(H!=="object")return new _("Invalid "+x+" `"+L+"` of type "+("`"+H+"` supplied to `"+N+"`, expected an object."));for(var D in j)if(s(j,D)){var q=m(j,D,N,x,L+"."+D,t);if(q instanceof Error)return q}return null}return y(S)}function I(m){if(!Array.isArray(m))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var S=0;S<m.length;S++){var P=m[S];if(typeof P!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(P)+" at index "+S+"."),i}function V(N,x,L,j,H){for(var D=[],q=0;q<m.length;q++){var ee=m[q],b=ee(N,x,L,j,H,t);if(b==null)return null;b.data&&s(b.data,"expectedType")&&D.push(b.data.expectedType)}var Te=D.length>0?", expected one of type ["+D.join(", ")+"]":"";return new _("Invalid "+j+" `"+H+"` supplied to "+("`"+L+"`"+Te+"."))}return y(V)}function se(){function m(S,P,V,N,x){return _e(S[P])?null:new _("Invalid "+N+" `"+x+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return y(m)}function pe(m,S,P,V,N){return new _((m||"React class")+": "+S+" type `"+P+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function he(m){function S(P,V,N,x,L){var j=P[V],H=le(j);if(H!=="object")return new _("Invalid "+x+" `"+L+"` of type `"+H+"` "+("supplied to `"+N+"`, expected `object`."));for(var D in m){var q=m[D];if(typeof q!="function")return pe(N,x,L,D,ve(q));var ee=q(j,D,N,x,L+"."+D,t);if(ee)return ee}return null}return y(S)}function Fe(m){function S(P,V,N,x,L){var j=P[V],H=le(j);if(H!=="object")return new _("Invalid "+x+" `"+L+"` of type `"+H+"` "+("supplied to `"+N+"`, expected `object`."));var D=e({},P[V],m);for(var q in D){var ee=m[q];if(s(m,q)&&typeof ee!="function")return pe(N,x,L,q,ve(ee));if(!ee)return new _("Invalid "+x+" `"+L+"` key `"+q+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(P[V],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(m),null," "));var b=ee(j,q,N,x,L+"."+q,t);if(b)return b}return null}return y(S)}function _e(m){switch(typeof m){case"number":case"string":case"undefined":return!0;case"boolean":return!m;case"object":if(Array.isArray(m))return m.every(_e);if(m===null||l(m))return!0;var S=f(m);if(S){var P=S.call(m),V;if(S!==m.entries){for(;!(V=P.next()).done;)if(!_e(V.value))return!1}else for(;!(V=P.next()).done;){var N=V.value;if(N&&!_e(N[1]))return!1}}else return!1;return!0;default:return!1}}function ze(m,S){return m==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function le(m){var S=typeof m;return Array.isArray(m)?"array":m instanceof RegExp?"object":ze(S,m)?"symbol":S}function ve(m){if(typeof m>"u"||m===null)return""+m;var S=le(m);if(S==="object"){if(m instanceof Date)return"date";if(m instanceof RegExp)return"regexp"}return S}function Ie(m){var S=ve(m);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function Ne(m){return!m.constructor||!m.constructor.name?v:m.constructor.name}return k.checkPropTypes=a,k.resetWarningCache=a.resetWarningCache,k.PropTypes=k,k},St}var Ct,rs;function Ta(){if(rs)return Ct;rs=1;var r=vt();function e(){}function t(){}return t.resetWarningCache=e,Ct=function(){function s(i,l,c,d,h,f){if(f!==r){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}s.isRequired=s;function a(){return s}var n={array:s,bigint:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:a,element:s,elementType:s,instanceOf:a,node:s,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:e};return n.PropTypes=n,n},Ct}if(process.env.NODE_ENV!=="production"){var Aa=Jt(),xa=!0;mt.exports=Ea()(Aa.isElement,xa)}else mt.exports=Ta()();var wa=mt.exports;const o=va(wa),is={Primary:"primary",Secondary:"secondary",Info:"info",Success:"success",Danger:"danger",Warning:"warning",Neutral:"neutral"},os={Solid:"solid",Outline:"outline",Text:"text"},ls={Large:"lg",Medium:"md",Small:"sm"},us={Right:"right",Left:"left"},Y={name:"Button",class:"ds-button",props:{color:{type:String,default:is.Primary,options:Object.values(is)},variant:{type:String,default:os.Solid,options:Object.values(os)},size:{type:String,default:ls.Medium,options:Object.values(ls)},elevation:{type:Number,options:[1,2,3,4]},disabled:{type:Boolean,default:!1},icon:{type:String,default:""},iconFill:{type:Boolean,default:!0},iconPosition:{type:String,default:us.Right,options:Object.values(us)},id:{type:String,default:""},testId:{type:String,default:"ds-button-test"},fullSize:{type:Boolean,default:!1},trackId:{type:String,default:"track-click"},trackLabel:{type:String,default:""}}},cs={Primary:"primary",PrimaryLightest:"primary-lightest",PrimaryLighter:"primary-lighter",PrimaryLight:"primary-light",PrimaryDark:"primary-dark",PrimaryDarker:"primary-darker",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",Secondary:"secondary",SecondaryLightest:"secondary-lightest",SecondaryLighter:"secondary-lighter",SecondaryLight:"secondary-light",SecondaryDark:"secondary-dark",SecondaryDarker:"secondary-darker",Success:"success",SuccessLighter:"success-lighter",SuccessLight:"success-light",SuccessDark:"success-dark",Warning:"warning",WarningLighter:"warning-lighter",WarningLight:"warning-light",WarningDark:"warning-dark",Danger:"danger",DangerLighter:"danger-lighter",DangerLight:"danger-light",DangerDark:"danger-dark",Info:"info",InfoLighter:"info-lighter",InfoLight:"info-light",InfoDark:"info-dark"},ds={Outlined:"outlined",Rounded:"rounded",Sharp:"sharp"},ps={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl",Huge:"huge"},hs={Bold:"bold",Semibold:"semibold",Medium:"medium",Regular:"regular",Light:"light",Extralight:"extralight"},ie={name:"Icon",class:"ds-icon",props:{color:{type:String,default:cs.Neutral90,options:Object.values(cs)},image:{type:String,default:"settings"},variation:{type:String,default:ds.Outlined,options:Object.values(ds)},size:{type:String,default:ps.MD,options:Object.values(ps)},fontVariationSettings:{type:Object,default:{fill:0,grad:0,weight:500,opticalSize:48}},fill:{type:Boolean,default:!1},testId:{type:String,default:"ds-icon-test"},weight:{type:String,default:hs.Semibold,options:Object.values(hs)},onClick:{type:Function,default:()=>({})}}},Da={bold:700,semibold:600,medium:500,regular:400,light:300,extralight:200},X=({image:r=ie.props.image.default,color:e=ie.props.color.default,className:t,size:s=ie.props.size.default,fill:a=ie.props.fill.default,weight:n=ie.props.weight.default,testId:i=ie.props.testId.default,onClick:l=ie.props.onClick.default})=>{const c="material-symbols-rounded",d=e&&ie.props.color.options.find(f=>f===e)&&`${ie.class}__color--${e}`,h=g.useMemo(()=>({fontVariationSettings:`'FILL' ${a?1:0}, 'GRAD' 0,'wght' ${Da[n]}, 'opsz' 48`}),[n,a]);return u.jsx("i",{className:[`${ie.class}--${s}`,ie.class,c,d,t&&t].filter(f=>f).join(" "),"data-testid":i,onClick:l,style:h,translate:"no",children:r})};X.propTypes={color:o.oneOf(ie.props.color.options),image:o.string,fontVariationSettings:o.object,size:o.oneOf(ie.props.size.options),fill:o.bool,weight:o.oneOf(ie.props.weight.options),onClick:o.func},X.displayName="DsIcon";const We=({children:r,className:e,onClick:t,size:s=Y.props.size.default,disabled:a=Y.props.disabled.default,icon:n=Y.props.icon.default,id:i=Y.props.id.default,testId:l=Y.props.testId.default,elevation:c,variant:d=Y.props.variant.default,color:h=Y.props.color.default,iconFill:f=Y.props.iconFill.default,iconPosition:v=Y.props.iconPosition.default,fullSize:k=Y.props.fullSize.default,trackId:C=Y.props.trackId.default,trackLabel:_})=>{const y=s&&Y.props.size.options.find(G=>G===s)?`${Y.class}--${s}`:`${Y.class}__${Y.props.size.default}`,F=a&&`${Y.class}--disabled`,z=`${Y.class}__${h}--${d}`,w=c&&`${Y.class}--elevation-${c}`,T=n&&`${Y.class}--with-icon`,p=k?`${Y.class}--full-size`:"",A=v==="right"?`${Y.class}__icon`:`${Y.class}__icon--left`,M=v==="right"?`${Y.class}__text`:`${Y.class}__text--reversed`;return u.jsx("button",{className:[Y.class,p,F,y,z,w,T,e].filter(G=>G).join(" "),"data-testid":l,"data-trackid":C,..._&&{"data-tracklabel":_},disabled:a,id:i,onClick:a?void 0:t,children:u.jsxs("span",{className:["ds-button__text",M].join(" "),children:[r,n&&u.jsx(X,{className:["ds-button__icon",A].join(" "),fill:f,image:n,size:s})]})})};We.propTypes={color:o.oneOf(Y.props.color.options),variant:o.oneOf(Y.props.variant.options),size:o.oneOf(Y.props.size.options),disabled:o.bool,icon:o.string,iconFill:o.bool,iconPosition:o.oneOf(Y.props.iconPosition.options),testId:o.string,id:o.string,fullSize:o.bool,trackId:o.string,trackLabel:o.string},We.displayName="DsButton";const Fa={name:"Caption",class:"ds-caption"},Et=({children:r,className:e,testId:t="ds-caption-test"})=>u.jsx("p",{className:[Fa.class,e&&e].filter(s=>s).join(" "),"data-testid":t,children:r});Et.propTypes={children:o.node.isRequired,className:o.string,testId:o.string},Et.displayName="DsCaption";const Je={None:"",PrimaryDarker:"primary-darker",PrimaryDark:"primary-dark",Primary:"primary",PrimaryLight:"primary-light",PrimaryLighter:"primary-lighter",PrimaryLightest:"primary-lightest",SecondaryDarker:"secondary-darker",SecondaryDark:"secondary-dark",Secondary:"secondary",SecondaryLight:"secondary-light",SecondaryLighter:"secondary-lighter",SecondaryLightest:"secondary-lightest",Neutral90:"neutral-90",Neutral80:"neutral-80",Neutral60:"neutral-60",Neutral40:"neutral-40",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00",SuccessDark:"success-dark",Success:"success",SuccessLight:"success-light",SuccessLighter:"success-lighter",WarningDark:"warning-dark",Warning:"warning",WarningLight:"warning-light",WarningLighter:"warning-lighter",DangerDark:"danger-dark",Danger:"danger",DangerLight:"danger-light",DangerLighter:"danger-lighter",InfoDark:"info-dark",Info:"info",InfoLight:"info-light",InfoLighter:"info-lighter"},fe={name:"Card",class:"ds-card",props:{backgroundColor:{type:String,default:Je.None,options:Object.values(Je)},borderColor:{type:String,default:Je.None,options:Object.values(Je)},elevation:{type:Number,default:0,options:[0,1,2,3,4]},id:{type:String,default:""},testId:{type:String,default:"ds-card"},trackId:{type:String,default:"track-click"},trackLabel:{type:String,default:""}}},Tt=({id:r,testId:e=fe.props.testId.default,children:t,className:s,elevation:a=fe.props.elevation.default,backgroundColor:n=fe.props.backgroundColor.default,borderColor:i=fe.props.borderColor.default,trackId:l=fe.props.trackId.default,trackLabel:c})=>{const d=a&&`${fe.class}--elevation-${a}`,h=i&&`${fe.class}--border-${i}`,f=n&&`${fe.class}--${n}`;return u.jsx("div",{className:[fe.class,s,d,h,f].filter(v=>v).join(" "),"data-testid":e,"data-trackid":l,...c&&{"data-tracklabel":c},id:r,children:t})};Tt.propTypes={id:o.string,testId:o.string,backgroundColor:o.oneOf(fe.props.backgroundColor.options),borderColor:o.oneOf(fe.props.borderColor.options),elevation:o.oneOf(fe.props.elevation.options),trackId:o.string,trackLabel:o.string},Tt.displayName="DsCard";const re={name:"Checkbox",class:"ds-checkbox",props:{name:{type:String,required:!1},testId:{type:String,default:"ds-checkbox-test"},label:{type:String,default:""},description:{type:String,default:""},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},changeByChecked:{type:Boolean,default:!1},onChangeHandler:{type:Function,default:()=>({})}}},At=g.forwardRef(({id:r,className:e,name:t,testId:s=re.props.testId.default,label:a=re.props.label.default,description:n=re.props.description.default,checked:i=re.props.checked.default,disabled:l=re.props.checked.default,changeByChecked:c=re.props.changeByChecked.default,onChangeHandler:d},h)=>{const f=c||!1,v=i||!1,[k,C]=g.useState(v),_={image:k?"check_box":"check_box_outline_blank",class:k?`${re.class}__icon--checked`:`${re.class}__icon--unchecked`},y=l&&`${re.class}--disabled`,F=z=>{l||(C(w=>!w),d&&d(z))};return g.useEffect(()=>{f&&C(i)},[i,f]),u.jsxs("label",{className:[re.class,y,e&&e].join(" "),htmlFor:r||t,children:[u.jsx("input",{checked:k,className:`${re.class}__input`,"data-testid":s,id:r||t,name:t,onChange:F,ref:h,type:"checkbox"}),u.jsx(X,{className:`${re.class}__icon ${_.class}`,fill:!0,image:_.image,size:"xxl",testId:`${s}-icon`}),(n||a)&&u.jsxs("div",{className:`${re.class}__label`,children:[a&&u.jsx("label",{className:`${re.class}__label-title`,htmlFor:r||t,children:a}),n&&u.jsx("label",{className:`${re.class}__label-description`,htmlFor:r||t,children:n})]})]})});At.propTypes={label:o.oneOfType([o.string,o.node]),name:o.string,className:o.string,testId:o.string,description:o.oneOfType([o.string,o.node]),checked:o.bool,disabled:o.bool},At.displayName="DsCheckbox";const fs={Heading1:"heading-1",Heading2:"heading-2",Heading3:"heading-3",Heading4:"heading-4",Heading5:"heading-5",Heading6:"heading-6"},Ye={name:"Heading",class:"ds-heading",props:{type:{type:String,default:fs.Heading1,options:Object.values(fs)}}},Qe=({children:r,testId:e="ds-heading-test",type:t=Ye.props.type.default,className:s})=>{const a={"heading-1":"h1","heading-2":"h2","heading-3":"h3","heading-4":"h4","heading-5":"h5","heading-6":"h6"},n=Ye.props.type.options.find(c=>c===t)&&`${Ye.class}--${t}`,l=a[t];return u.jsx(l,{className:[Ye.class,n,s&&s].filter(c=>c).join(" "),"data-testid":e,children:r})};Qe.propTypes={className:o.string,testId:o.string,type:o.oneOf(Ye.props.type.options)},Qe.displayName="DsHeading";const gs={None:"",Dashed:"dashed",Dotted:"dotted"},ms={None:"",Small:"small",Large:"large"},Me={name:"HR",class:"ds-hr",props:{borderStyle:{type:String,default:gs.None,options:Object.values(gs)},size:{type:String,default:ms.None,options:Object.values(ms)}}};function ys(r,e,t){const s=t.props[r];return s.options&&s.options.some(a=>a===e)?`${t.class}--${e}`:""}const xt=({size:r=Me.props.size.default,borderStyle:e=Me.props.borderStyle.default})=>{const t=ys("size",r,Me),s=ys("borderStyle",e,Me);return u.jsx("hr",{className:`${Me.class} ${t} ${s}`.trim()})};xt.propTypes={size:o.oneOf(Me.props.size.options),borderStyle:o.oneOf(Me.props.borderStyle.options)},xt.displayName="DsHR";function Oe(r){return typeof r=="string"||r instanceof String}function _s(r){var e;return typeof r=="object"&&r!=null&&(r==null||(e=r.constructor)==null?void 0:e.name)==="Object"}function vs(r,e){return Array.isArray(e)?vs(r,(t,s)=>e.includes(s)):Object.entries(r).reduce((t,s)=>{let[a,n]=s;return e(n,a)&&(t[a]=n),t},{})}const E={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Ia(r){switch(r){case E.LEFT:return E.FORCE_LEFT;case E.RIGHT:return E.FORCE_RIGHT;default:return r}}function wt(r){return r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function et(r,e){if(e===r)return!0;const t=Array.isArray(e),s=Array.isArray(r);let a;if(t&&s){if(e.length!=r.length)return!1;for(a=0;a<e.length;a++)if(!et(e[a],r[a]))return!1;return!0}if(t!=s)return!1;if(e&&r&&typeof e=="object"&&typeof r=="object"){const n=e instanceof Date,i=r instanceof Date;if(n&&i)return e.getTime()==r.getTime();if(n!=i)return!1;const l=e instanceof RegExp,c=r instanceof RegExp;if(l&&c)return e.toString()==r.toString();if(l!=c)return!1;const d=Object.keys(e);for(a=0;a<d.length;a++)if(!Object.prototype.hasOwnProperty.call(r,d[a]))return!1;for(a=0;a<d.length;a++)if(!et(r[d[a]],e[d[a]]))return!1;return!0}else if(e&&r&&typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();return!1}class Oa{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?E.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?E.RIGHT:E.LEFT}}function O(r,e){return new O.InputMask(r,e)}function ks(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?O.MaskedRegExp:Oe(r)?O.MaskedPattern:r===Date?O.MaskedDate:r===Number?O.MaskedNumber:Array.isArray(r)||r===Array?O.MaskedDynamic:O.Masked&&r.prototype instanceof O.Masked?r:O.Masked&&r instanceof O.Masked?r.constructor:r instanceof Function?O.MaskedFunction:(console.warn("Mask not found for mask",r),O.Masked)}function Ge(r){if(!r)throw new Error("Options in not defined");if(O.Masked){if(r.prototype instanceof O.Masked)return{mask:r};const{mask:e=void 0,...t}=r instanceof O.Masked?{mask:r}:_s(r)&&r.mask instanceof O.Masked?r:{};if(e){const s=e.mask;return{...vs(e,(a,n)=>!n.startsWith("_")),mask:e.constructor,_mask:s,...t}}}return _s(r)?{...r}:{mask:r}}function Ae(r){if(O.Masked&&r instanceof O.Masked)return r;const e=Ge(r),t=ks(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}O.createMask=Ae;class Dt{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}O.MaskElement=Dt;const bs=90,Ba=89;class tt extends Dt{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,s;return(e=(t=(s=this.input).getRootNode)==null?void 0:t.call(s))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===bs&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===Ba&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===bs&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}O.HTMLMaskElement=tt;class Na extends tt{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}O.HTMLMaskElement=tt;class Ss extends tt{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,a=t&&t.focusOffset;return a==null||s==null||s<a?s:a}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,a=t&&t.focusOffset;return a==null||s==null||s>a?s:a}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,t);const a=this.rootElement,n=a.getSelection&&a.getSelection();n&&(n.removeAllRanges(),n.addRange(s))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}O.HTMLContenteditableMaskElement=Ss;class st{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>st.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}st.MAX_LENGTH=100;class Ma{constructor(e,t){this.el=e instanceof Dt?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new Ss(e):new Na(e),this.masked=Ae(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new st,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof O.Masked)&&this.masked.constructor===ks(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof O.Masked?e:Ae({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const s=this._listeners[e];s&&s.forEach(a=>a(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,s=this.masked.value,a=this.masked.rawInputValue,n=this.displayValue,i=this.unmaskedValue!==t||this.value!==s||this._rawInputValue!==a;this._unmaskedValue=t,this._value=s,this._rawInputValue=a,this.el.value!==n&&(this.el.value=n),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...s}=e,a=!this.maskEquals(t),n=this.masked.optionsIsChanged(s);a&&(this.mask=t),n&&this.masked.updateOptions(s),(a||n)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,E.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const s=this._listeners[e].indexOf(t);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new Oa({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,a=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,n=s===this.masked.rawInputValue?t.removeDirection:E.NONE;let i=this.masked.nearestInputPos(t.startChangePos+a,n);n!==E.NONE&&(i=this.masked.nearestInputPos(i,E.NONE)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}O.InputMask=Ma;class ${static normalize(e){return Array.isArray(e)?e:[e,new $]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}O.ChangeDetails=$;class ke{constructor(e,t,s){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class ae{constructor(e){this._value="",this._update({...ae.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new ke(this.extractInput(e,t),e)}appendTail(e){return Oe(e)&&(e=new ke(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new $({inserted:e,rawInserted:e})):new $}_appendChar(e,t,s){t===void 0&&(t={});const a=this.state;let n;if([e,n]=this.doPrepareChar(e,t),e&&(n=n.aggregate(this._appendCharRaw(e,t)),!n.rawInserted&&this.autofix==="pad")){const i=this.state;this.state=a;let l=this.pad(t);const c=this._appendCharRaw(e,t);l=l.aggregate(c),c.rawInserted||l.equals(n)?n=l:this.state=i}if(n.inserted){let i,l=this.doValidate(t)!==!1;if(l&&s!=null){const c=this.state;if(this.overwrite===!0){i=s.state;for(let h=0;h<n.rawInserted.length;++h)s.unshift(this.displayValue.length-n.tailShift)}let d=this.appendTail(s);if(l=d.rawInserted.length===s.toString().length,!(l&&d.inserted)&&this.overwrite==="shift"){this.state=c,i=s.state;for(let h=0;h<n.rawInserted.length;++h)s.shift();d=this.appendTail(s),l=d.rawInserted.length===s.toString().length}l&&d.inserted&&(this.state=c)}l||(n=new $,this.state=a,s&&i&&(s.state=i))}return n}_appendPlaceholder(){return new $}_appendEager(){return new $}append(e,t,s){if(!Oe(e))throw new Error("value should be string");const a=Oe(s)?new ke(String(s)):s;t!=null&&t.tail&&(t._beforeTailState=this.state);let n;[e,n]=this.doPrepare(e,t);for(let i=0;i<e.length;++i){const l=this._appendChar(e[i],t,a);if(!l.rawInserted&&!this.doSkipInvalid(e[i],t,a))break;n.aggregate(l)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&n.aggregate(this._appendEager()),a!=null&&(n.tailShift+=this.appendTail(a).tailShift),n}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new $}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,s=this.value,a=e();return this.rawInputValue=t,this.value&&this.value!==s&&s.indexOf(this.value)===0&&(this.append(s.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,a}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,s=e(this);return this.state=t,delete this._isolated,s}doSkipInvalid(e,t,s){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),$.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),$.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,s,a,n){s===void 0&&(s=""),a===void 0&&(a=E.NONE),n===void 0&&(n={input:!0});const i=e+t,l=this.extractTail(i),c=this.eager===!0||this.eager==="remove";let d;c&&(a=Ia(a),d=this.extractInput(0,i,{raw:!0}));let h=e;const f=new $;if(a!==E.NONE&&(h=this.nearestInputPos(e,t>1&&e!==0&&!c?E.NONE:a),f.tailShift=h-e),f.aggregate(this.remove(h)),c&&a!==E.NONE&&d===this.rawInputValue)if(a===E.FORCE_LEFT){let v;for(;d===this.rawInputValue&&(v=this.displayValue.length);)f.aggregate(new $({tailShift:-1})).aggregate(this.remove(v-1))}else a===E.FORCE_RIGHT&&l.unshift();return f.aggregate(this.append(s,n,l))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!et(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||ae.EMPTY_VALUES.includes(e)&&ae.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new $}}ae.DEFAULTS={skipInvalid:!0},ae.EMPTY_VALUES=[void 0,null,""],O.Masked=ae;class $e{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=Oe(e)?new ke(String(e)):e;const t=this.chunks[this.chunks.length-1],s=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof ke)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof $e){if(e.stop==null){let a;for(;e.chunks.length&&e.chunks[0].stop==null;)a=e.chunks.shift(),a.from+=e.from,this.extend(a)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof O.MaskedPattern))return new ke(this.toString()).appendTo(e);const t=new $;for(let s=0;s<this.chunks.length;++s){const a=this.chunks[s],n=e._mapPosToBlock(e.displayValue.length),i=a.stop;let l;if(i!=null&&(!n||n.index<=i)&&((a instanceof $e||e._stops.indexOf(i)>=0)&&t.aggregate(e._appendPlaceholder(i)),l=a instanceof $e&&e._blocks[i]),l){const c=l.appendTail(a);t.aggregate(c);const d=a.toString().slice(c.rawInserted.length);d&&t.aggregate(e.append(d,{tail:!0}))}else t.aggregate(e.append(a.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...s}=e;Object.assign(this,s),this.chunks=t.map(a=>{const n="chunks"in a?new $e:new ke;return n.state=a,n})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let s=0;for(;s<this.chunks.length;){const a=this.chunks[s],n=a.unshift(t);if(a.toString()){if(!n)break;++s}else this.chunks.splice(s,1);if(n)return n}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],s=t.shift();if(t.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}}class $a{constructor(e,t){this.masked=e,this._log=[];const{offset:s,index:a}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s,this.index=a,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,E.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,E.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,E.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,E.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,E.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,E.NONE),!0})}}class Cs{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new $}nearestInputPos(e,t){t===void 0&&(t=E.NONE);const s=0,a=this._value.length;switch(t){case E.LEFT:case E.FORCE_LEFT:return s;case E.NONE:case E.RIGHT:case E.FORCE_RIGHT:default:return a}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),s===void 0&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new $;const s=this.eager===!0||this.eager==="append",n=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!s)&&!t.tail,i=new $({inserted:this.char,rawInserted:n?this.char:""});return this._value=this.char,this._isRawInput=n&&(t.raw||t.input),i}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new $;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new ke("")}appendTail(e){return Oe(e)&&(e=new ke(String(e))),e.appendTo(this)}append(e,t,s){const a=this._appendChar(e[0],t);return s!=null&&(a.tailShift+=this.appendTail(s).tailShift),a}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}}class at{constructor(e){const{parent:t,isOptional:s,placeholderChar:a,displayChar:n,lazy:i,eager:l,...c}=e;this.masked=Ae(c),Object.assign(this,{parent:t,isOptional:s,placeholderChar:a,displayChar:n,lazy:i,eager:l})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new $}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new $;const s=this.masked.state;let a=this.masked._appendChar(e,this.currentMaskFlags(t));return a.inserted&&this.doValidate(t)===!1&&(a=new $,this.masked.state=s),!a.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(a.inserted=this.placeholderChar),a.skip=!a.inserted&&!this.isOptional,this.isFilled=!!a.inserted,a}append(e,t,s){return this.masked.append(e,this.currentMaskFlags(t),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new $:(this.isFilled=!0,new $({inserted:this.placeholderChar}))}_appendEager(){return new $}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,s)}nearestInputPos(e,t){t===void 0&&(t=E.NONE);const s=0,a=this.value.length,n=Math.min(Math.max(e,s),a);switch(t){case E.LEFT:case E.FORCE_LEFT:return this.isComplete?n:s;case E.RIGHT:case E.FORCE_RIGHT:return this.isComplete?n:a;case E.NONE:default:return n}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new $}}at.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Va extends ae{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=s=>s.search(t)>=0),super._update(e)}}O.MaskedRegExp=Va;class ne extends ae{constructor(e){super({...ne.DEFAULTS,...e,definitions:Object.assign({},at.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let s=!1,a=!1;for(let n=0;n<t.length;++n){if(this.blocks){const d=t.slice(n),h=Object.keys(this.blocks).filter(v=>d.indexOf(v)===0);h.sort((v,k)=>k.length-v.length);const f=h[0];if(f){const{expose:v,repeat:k,...C}=Ge(this.blocks[f]),_={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...C,repeat:k,parent:this},y=k!=null?new O.RepeatBlock(_):Ae(_);y&&(this._blocks.push(y),v&&(this.exposeBlock=y),this._maskedBlocks[f]||(this._maskedBlocks[f]=[]),this._maskedBlocks[f].push(this._blocks.length-1)),n+=f.length-1;continue}}let i=t[n],l=i in e;if(i===ne.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(i==="{"||i==="}"){s=!s;continue}if(i==="["||i==="]"){a=!a;continue}if(i===ne.ESCAPE_CHAR){if(++n,i=t[n],!i)break;l=!1}const c=l?new at({isOptional:a,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Ge(e[i]),parent:this}):new Cs({char:i,eager:this.eager,isUnmasking:s});this._blocks.push(c)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...s}=e;this._blocks.forEach((a,n)=>a.state=t[n]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new $;let s=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(s==null)return t;this._blocks[s].isFilled&&++s;for(let a=s;a<this._blocks.length;++a){const n=this._blocks[a]._appendEager();if(!n.inserted)break;t.aggregate(n)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._mapPosToBlock(this.displayValue.length),a=new $;if(!s)return a;for(let i=s.index,l;l=this._blocks[i];++i){var n;const c=l._appendChar(e,{...t,_beforeTailState:(n=t._beforeTailState)==null||(n=n._blocks)==null?void 0:n[i]});if(a.aggregate(c),c.consumed)break}return a}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=new $e;return e===t||this._forEachBlocksInRange(e,t,(a,n,i,l)=>{const c=a.extractTail(i,l);c.stop=this._findStopBefore(n),c.from=this._blockStartPos(n),c instanceof $e&&(c.blockIndex=n),s.extend(c)}),s}extractInput(e,t,s){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),s===void 0&&(s={}),e===t)return"";let a="";return this._forEachBlocksInRange(e,t,(n,i,l,c)=>{a+=n.extractInput(l,c,s)}),a}_findStopBefore(e){let t;for(let s=0;s<this._stops.length;++s){const a=this._stops[s];if(a<=e)t=a;else break}return t}_appendPlaceholder(e){const t=new $;if(this.lazy&&e==null)return t;const s=this._mapPosToBlock(this.displayValue.length);if(!s)return t;const a=s.index,n=e??this._blocks.length;return this._blocks.slice(a,n).forEach(i=>{if(!i.lazy||e!=null){var l;t.aggregate(i._appendPlaceholder((l=i._blocks)==null?void 0:l.length))}}),t}_mapPosToBlock(e){let t="";for(let s=0;s<this._blocks.length;++s){const a=this._blocks[s],n=t.length;if(t+=a.displayValue,e<=t.length)return{index:s,offset:e-n}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,s)=>t+=s.displayValue.length,0)}_forEachBlocksInRange(e,t,s){t===void 0&&(t=this.displayValue.length);const a=this._mapPosToBlock(e);if(a){const n=this._mapPosToBlock(t),i=n&&a.index===n.index,l=a.offset,c=n&&i?n.offset:this._blocks[a.index].displayValue.length;if(s(this._blocks[a.index],a.index,l,c),n&&!i){for(let d=a.index+1;d<n.index;++d)s(this._blocks[d],d,0,this._blocks[d].displayValue.length);s(this._blocks[n.index],n.index,0,n.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._forEachBlocksInRange(e,t,(a,n,i,l)=>{s.aggregate(a.remove(i,l))}),s}nearestInputPos(e,t){if(t===void 0&&(t=E.NONE),!this._blocks.length)return 0;const s=new $a(this,e);if(t===E.NONE)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===E.LEFT||t===E.FORCE_LEFT){if(t===E.LEFT){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===E.LEFT){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:t===E.FORCE_LEFT?0:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:0)}return t===E.RIGHT||t===E.FORCE_RIGHT?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled()?s.pos:t===E.FORCE_RIGHT?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok)?s.pos:this.nearestInputPos(e,E.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,t,(a,n,i,l)=>{s+=a.totalInputPositions(i,l)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(s=>this._blocks[s]):[]}pad(e){const t=new $;return this._forEachBlocksInRange(0,this.displayValue.length,s=>t.aggregate(s.pad(e))),t}}ne.DEFAULTS={...ae.DEFAULTS,lazy:!0,placeholderChar:"_"},ne.STOP_CHAR="`",ne.ESCAPE_CHAR="\\",ne.InputDefinition=at,ne.FixedDefinition=Cs,O.MaskedPattern=ne;class nt extends ne{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:s=this.from||0,maxLength:a=this.maxLength||0,autofix:n=this.autofix,...i}=e;this.to=t,this.from=s,this.maxLength=Math.max(String(t).length,a),this.autofix=n;const l=String(this.from).padStart(this.maxLength,"0"),c=String(this.to).padStart(this.maxLength,"0");let d=0;for(;d<c.length&&c[d]===l[d];)++d;i.mask=c.slice(0,d).replace(/0/g,"\\0")+"0".repeat(this.maxLength-d),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",s="";const[,a,n]=e.match(/^(\D*)(\d*)(\D*)/)||[];return n&&(t="0".repeat(a.length)+n,s="9".repeat(a.length)+n),t=t.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9"),[t,s]}doPrepareChar(e,t){t===void 0&&(t={});let s;return[e,s]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const s=String(this.from).padStart(this.maxLength,"0"),a=String(this.to).padStart(this.maxLength,"0"),[n,i]=this.boundaries(this.value+e);return Number(i)<this.from?super._appendCharRaw(s[this.value.length],t):Number(n)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(a[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[a,n]=this.boundaries(t);return this.from<=Number(n)&&Number(a)<=this.to&&super.doValidate(e)}pad(e){const t=new $;if(this.value.length===this.maxLength)return t;const s=this.value,a=this.maxLength-this.value.length;if(a){this.reset();for(let n=0;n<a;++n)t.aggregate(super._appendCharRaw("0",e));s.split("").forEach(n=>this._appendCharRaw(n))}return t}}O.MaskedRange=nt;class xe extends ne{static extractPatternOptions(e){const{mask:t,pattern:s,...a}=e;return{...a,mask:Oe(t)?t:s}}constructor(e){super(xe.extractPatternOptions({...xe.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:s,blocks:a,...n}={...xe.DEFAULTS,...e},i=Object.assign({},xe.GET_DEFAULT_BLOCKS());e.min&&(i.Y.from=e.min.getFullYear()),e.max&&(i.Y.to=e.max.getFullYear()),e.min&&e.max&&i.Y.from===i.Y.to&&(i.m.from=e.min.getMonth()+1,i.m.to=e.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=e.min.getDate(),i.d.to=e.max.getDate())),Object.assign(i,this.blocks,a),super._update({...n,mask:Oe(t)?t:s,blocks:i})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(xe.extractPatternOptions(e))}}xe.GET_DEFAULT_BLOCKS=()=>({d:{mask:nt,from:1,to:31,maxLength:2},m:{mask:nt,from:1,to:12,maxLength:2},Y:{mask:nt,from:1900,to:9999}}),xe.DEFAULTS={...ne.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(r,e)=>{if(!r)return"";const t=String(r.getDate()).padStart(2,"0"),s=String(r.getMonth()+1).padStart(2,"0"),a=r.getFullYear();return[t,s,a].join(".")},parse:(r,e)=>{const[t,s,a]=r.split(".").map(Number);return new Date(a,s-1,t)}},O.MaskedDate=xe;class rt extends ae{constructor(e){super({...rt.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:s,...a}=Ge(t),n=Ae({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...a});return s&&(this.exposeMask=n),n}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const s=this._applyDispatch(e,t);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),s}_applyDispatch(e,t,s){e===void 0&&(e=""),t===void 0&&(t={}),s===void 0&&(s="");const a=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,n=this.rawInputValue,i=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:n,l=n.slice(i.length),c=this.currentMask,d=new $,h=c==null?void 0:c.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==c?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),d.tailShift=this.currentMask.value.length-a.length),l&&(d.tailShift+=this.currentMask.append(l,{raw:!0,tail:!0}).tailShift)):h&&(this.currentMask.state=h)),d}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new $;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,s;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((s=e._beforeTailState)==null?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,t,s){return t===void 0&&(t={}),s===void 0&&(s=""),this.dispatch(e,this,t,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[s,a]=super.doPrepare(e,t);if(this.currentMask){let n;[s,n]=super.doPrepare(s,this.currentMaskFlags(t)),a=a.aggregate(n)}return[s,a]}doPrepareChar(e,t){t===void 0&&(t={});let[s,a]=super.doPrepareChar(e,t);if(this.currentMask){let n;[s,n]=super.doPrepareChar(s,this.currentMaskFlags(t)),a=a.aggregate(n)}return[s,a]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const s=new $;return this.currentMask&&s.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:s,currentMask:a,...n}=e;t&&this.compiledMasks.forEach((i,l)=>i.state=t[l]),s!=null&&(this.currentMask=s,this.currentMask.state=a),super.state=n}extractInput(e,t,s){return this.currentMask?this.currentMask.extractInput(e,t,s):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,s)=>{if(!e[s])return;const{mask:a,...n}=e[s];return et(t,n)&&t.maskEquals(a)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}}rt.DEFAULTS={...ae.DEFAULTS,dispatch:(r,e,t,s)=>{if(!e.compiledMasks.length)return;const a=e.rawInputValue,n=e.compiledMasks.map((i,l)=>{const c=e.currentMask===i,d=c?i.displayValue.length:i.nearestInputPos(i.displayValue.length,E.FORCE_LEFT);return i.rawInputValue!==a?(i.reset(),i.append(a,{raw:!0})):c||i.remove(d),i.append(r,e.currentMaskFlags(t)),i.appendTail(s),{index:l,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(d,i.nearestInputPos(i.displayValue.length,E.FORCE_LEFT)))}});return n.sort((i,l)=>l.weight-i.weight||l.totalInputPositions-i.totalInputPositions),e.compiledMasks[n[0].index]}},O.MaskedDynamic=rt;class it extends ne{constructor(e){super({...it.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...s}=e;if(t){const a=t.map(l=>l.length),n=Math.min(...a),i=Math.max(...a)-n;s.mask="*".repeat(n),i&&(s.mask+="["+"*".repeat(i)+"]"),this.enum=t}super._update(s)}_appendCharRaw(e,t){t===void 0&&(t={});const s=Math.min(this.nearestInputPos(0,E.FORCE_RIGHT),this.value.length),a=this.enum.filter(n=>this.matchValue(n,this.unmaskedValue+e,s));if(a.length){a.length===1&&this._forEachBlocksInRange(0,this.value.length,(i,l)=>{const c=a[0][l];l>=this.value.length||c===i.value||(i.reset(),i._appendChar(c,t))});const n=super._appendCharRaw(a[0][this.value.length],t);return a.length===1&&a[0].slice(this.unmaskedValue.length).split("").forEach(i=>n.aggregate(super._appendCharRaw(i))),n}return new $({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new ke("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new $;const s=Math.min(super.nearestInputPos(0,E.FORCE_RIGHT),this.value.length);let a;for(a=e;a>=0&&!(this.enum.filter(l=>this.matchValue(l,this.value.slice(s,a),s)).length>1);--a);const n=super.remove(a,t);return n.tailShift+=a-e,n}get isComplete(){return this.enum.indexOf(this.value)>=0}}it.DEFAULTS={...ne.DEFAULTS,matchValue:(r,e,t)=>r.indexOf(e,t)===t},O.MaskedEnum=it;class La extends ae{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}O.MaskedFunction=La;var Es;class ue extends ae{constructor(e){super({...ue.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",s=(this.scale?"("+wt(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+s),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(wt).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(wt(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[s,a]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!s&&(a.skip=!0),s&&!this.allowPositive&&!this.value&&s!=="-"&&a.aggregate(this._appendChar("-")),[s,a]}_separatorsCount(e,t){t===void 0&&(t=!1);let s=0;for(let a=0;a<e;++a)this._value.indexOf(this.thousandsSeparator,a)===a&&(++s,t&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,s){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,s))}_appendCharRaw(e,t){t===void 0&&(t={});const s=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(s);this._value=this._removeThousandsSeparators(this.value);const n=this._value;this._value+=e;const i=this.number;let l=!isNaN(i),c=!1;if(l){let v;this.min!=null&&this.min<0&&this.number<this.min&&(v=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(v=this.max),v!=null&&(this.autofix?(this._value=this.format(v,this).replace(ue.UNMASKED_RADIX,this.radix),c||(c=n===this._value&&!t.tail)):l=!1),l&&(l=!!this._value.match(this._numberRegExp))}let d;l?d=new $({inserted:this._value.slice(n.length),rawInserted:c?"":e,skip:c}):(this._value=n,d=new $),this._value=this._insertThousandsSeparators(this._value);const h=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,f=this._separatorsCountFromSlice(h);return d.tailShift+=(f-a)*this.thousandsSeparator.length,d}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,t);if(s<=e)return s}return-1}_adjustRangeWithSeparators(e,t){const s=this._findSeparatorAround(e);s>=0&&(e=s);const a=this._findSeparatorAround(t);return a>=0&&(t=a+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const s=this.value.slice(0,e),a=this.value.slice(t),n=this._separatorsCount(s.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+a));const i=this._separatorsCountFromSlice(s);return new $({tailShift:(i-n)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case E.NONE:case E.LEFT:case E.FORCE_LEFT:{const s=this._findSeparatorAround(e-1);if(s>=0){const a=s+this.thousandsSeparator.length;if(e<a||this.value.length<=a||t===E.FORCE_LEFT)return s}break}case E.RIGHT:case E.FORCE_RIGHT:{const s=this._findSeparatorAround(e);if(s>=0)return s+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(s,a,n,i)=>a+i),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,s){t===void 0&&(t={});const a=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===ue.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,s)&&!a}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,ue.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(ue.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||ue.EMPTY_VALUES.includes(e)&&ue.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}Es=ue,ue.UNMASKED_RADIX=".",ue.EMPTY_VALUES=[...ae.EMPTY_VALUES,0],ue.DEFAULTS={...ae.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Es.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},O.MaskedNumber=ue;const Ft={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Ts(r,e,t){e===void 0&&(e=Ft.MASKED),t===void 0&&(t=Ft.MASKED);const s=Ae(r);return a=>s.runIsolated(n=>(n[e]=a,n[t]))}function Pa(r,e,t,s){return Ts(e,t,s)(r)}O.PIPE_TYPE=Ft,O.createPipe=Ts,O.pipe=Pa;class ja extends ne{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,s,a;const{repeat:n,...i}=Ge(e);this._blockOpts=Object.assign({},this._blockOpts,i);const l=Ae(this._blockOpts);this.repeat=(t=(s=n??l.repeat)!=null?s:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((a=this._blocks)==null?void 0:a.length)||0,this.repeatFrom)),blocks:{m:l},eager:l.eager,overwrite:l.overwrite,skipInvalid:l.skipInvalid,lazy:l.lazy,placeholderChar:l.placeholderChar,displayChar:l.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(Ae(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const s=new $;for(let c=(a=(n=this._mapPosToBlock(this.displayValue.length))==null?void 0:n.index)!=null?a:Math.max(this._blocks.length-1,0),d,h;d=(i=this._blocks[c])!=null?i:h=!h&&this._allocateBlock(c);++c){var a,n,i,l;const f=d._appendChar(e,{...t,_beforeTailState:(l=t._beforeTailState)==null||(l=l._blocks)==null?void 0:l[c]});if(f.skip&&h){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(f),f.consumed)break}return s}_trimEmptyTail(e,t){var s,a;e===void 0&&(e=0);const n=Math.max(((s=this._mapPosToBlock(e))==null?void 0:s.index)||0,this.repeatFrom,0);let i;t!=null&&(i=(a=this._mapPosToBlock(t))==null?void 0:a.index),i==null&&(i=this._blocks.length-1);let l=0;for(let c=i;n<=c&&!this._blocks[c].unmaskedValue;--c,++l);l&&(this._blocks.splice(i-l+1,l),this.mask=this.mask.slice(l))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const s=super.remove(e,t);return this._trimEmptyTail(e,t),s}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}O.RepeatBlock=ja;try{globalThis.IMask=O}catch{}const As={mask:o.oneOfType([o.array,o.func,o.string,o.instanceOf(RegExp),o.oneOf([Date,Number,O.Masked]),o.instanceOf(O.Masked)]),value:o.any,unmask:o.oneOfType([o.bool,o.oneOf(["typed"])]),prepare:o.func,prepareChar:o.func,validate:o.func,commit:o.func,overwrite:o.oneOfType([o.bool,o.oneOf(["shift"])]),eager:o.oneOfType([o.bool,o.oneOf(["append","remove"])]),skipInvalid:o.bool,onAccept:o.func,onComplete:o.func,placeholderChar:o.string,displayChar:o.string,lazy:o.bool,definitions:o.object,blocks:o.object,enum:o.arrayOf(o.string),maxLength:o.number,from:o.number,to:o.number,pattern:o.string,format:o.func,parse:o.func,autofix:o.oneOfType([o.bool,o.oneOf(["pad"])]),radix:o.string,thousandsSeparator:o.string,mapToRadix:o.arrayOf(o.string),scale:o.number,normalizeZeros:o.bool,padFractionalZeros:o.bool,min:o.oneOfType([o.number,o.instanceOf(Date)]),max:o.oneOfType([o.number,o.instanceOf(Date)]),dispatch:o.func,inputRef:o.oneOfType([o.func,o.shape({current:o.object})])},xs=Object.keys(As).filter(r=>r!=="value"),za=["value","unmask","onAccept","onComplete","inputRef"],qa=xs.filter(r=>za.indexOf(r)<0);function Ha(r){var e;const t=(e=class extends g.Component{constructor(n){super(n),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const n=this.props,i=this._extractMaskOptionsFromProps(n);if(i.mask)this.maskRef?(this.maskRef.updateOptions(i),"value"in n&&n.value!==void 0&&(this.maskValue=n.value)):this.initMask(i);else if(this.destroyMask(),"value"in n&&n.value!==void 0){var l;(l=this.element)!=null&&l.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=n.value:this.element.value=n.value}}componentWillUnmount(){this.destroyMask()}_inputRef(n){this.element=n,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=n:this.props.inputRef(n))}initMask(n){n===void 0&&(n=this._extractMaskOptionsFromProps(this.props)),this.maskRef=O(this.element,n).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(n){const{...i}=n;return Object.keys(i).filter(l=>qa.indexOf(l)<0).forEach(l=>{delete i[l]}),i}_extractNonMaskProps(n){const{...i}=n;return xs.forEach(l=>{l!=="maxLength"&&delete i[l]}),"defaultValue"in i||(i.defaultValue=n.mask?"":i.value),delete i.value,i}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(n){this.maskRef&&(n=n==null&&this.props.unmask!=="typed"?"":n,this.props.unmask==="typed"?this.maskRef.typedValue=n:this.props.unmask?this.maskRef.unmaskedValue=n:this.maskRef.value=n)}_onAccept(n){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,n)}_onComplete(n){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,n)}render(){return g.createElement(r,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),s=r.displayName||r.name||"Component";return t.displayName="IMask("+s+")",t.propTypes=As,g.forwardRef((a,n)=>g.createElement(t,{...a,ref:n}))}const Ua=Ha(r=>{let{inputRef:e,...t}=r;return g.createElement("input",{...t,ref:e})}),Wa=(r,e)=>g.createElement(Ua,{...r,ref:e});g.forwardRef(Wa);function Ya(r,e){let{onAccept:t,onComplete:s,ref:a=g.useRef(null),defaultValue:n,defaultUnmaskedValue:i,defaultTypedValue:l}=e===void 0?{}:e;const c=g.useRef(null),[d,h]=g.useState({}),[f,v]=g.useState(""),[k,C]=g.useState(""),[_,y]=g.useState(),F=g.useCallback(()=>{var p;(p=c.current)==null||p.destroy(),c.current=null},[]),z=g.useCallback(()=>{const p=c.current;p&&(h({value:p.value,unmaskedValue:p.unmaskedValue,typedValue:p.typedValue}),y(p.typedValue),C(p.unmaskedValue),v(p.value))},[]),w=g.useCallback(p=>{const A=c.current;A&&(z(),t==null||t(A.value,A,p))},[t]),T=g.useCallback(p=>c.current&&(s==null?void 0:s(c.current.value,c.current,p)),[s]);return g.useEffect(()=>{const{value:p,...A}=d,M=c.current;!M||f===void 0||(p!==f&&(M.value=f,M.value!==f&&w()),h(A))},[f]),g.useEffect(()=>{const{unmaskedValue:p,...A}=d,M=c.current;!M||k===void 0||(p!==k&&(M.unmaskedValue=k,M.unmaskedValue!==k&&w()),h(A))},[k]),g.useEffect(()=>{const{typedValue:p,...A}=d,M=c.current;!M||_===void 0||(p!==_&&(M.typedValue=_,M.masked.typedValueEquals(_)||w()),h(A))},[_]),g.useEffect(()=>{const p=a.current;if(!p||!(r!=null&&r.mask))return F();const A=c.current;A?A==null||A.updateOptions(r):p&&r!=null&&r.mask&&(c.current=O(p,r),z(),n!==void 0&&v(n),i!==void 0&&C(i),l!==void 0&&y(l))},[r,F,w]),g.useEffect(()=>{if(!c.current)return;const p=c.current;return p.on("accept",w),p.on("complete",T),()=>{p.off("accept",w),p.off("complete",T)}},[w,T]),g.useEffect(()=>F,[F]),{ref:a,maskRef:c,value:f,setValue:v,unmaskedValue:k,setUnmaskedValue:C,typedValue:_,setTypedValue:y}}const ws={Text:"text",Password:"password",Email:"email",Date:"date",Number:"number"},Ds={Small:"small",Medium:"medium",Large:"large"},Fs={Default:"",Error:"error",Success:"success"},Is={Center:"center",End:"end",Initial:"initial"},Os={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},K={name:"Input",class:"ds-input",props:{name:{type:String,required:!0},testId:{type:String,default:"ds-input-test"},type:{type:String,default:ws.Text,options:Object.values(ws)},animated:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},size:{type:String,default:Ds.Medium,options:Object.values(Ds)},label:{type:String,default:""},placeholder:{type:String,default:" "},value:{type:String,default:""},min:{type:String,default:""},max:{type:String,default:""},status:{type:String,default:Fs.Default,options:Object.values(Fs)},feedback:{type:String,default:""},hasFeedback:{type:Boolean,default:!0},noMargin:{type:Boolean,default:!1},icon:{type:String,default:""},tooltip:{type:String,default:""},tooltipPlacement:{type:String,default:Is.Center,options:Object.values(Is)},tooltipPosition:{type:String,default:Os.Top,options:Object.values(Os)},mask:{type:String,default:""},onChangeHandler:{type:Function,default:()=>({})}}},Bs={currency:{mask:"currency",blocks:{currency:{mask:"R$ num",lazy:!1,blocks:{num:{mask:Number,scale:2,thousandsSeparator:".",padFractionalZeros:!0,normalizeZeros:!1,radix:",",mapToRadix:[",","."]}}}}},document:{mask:[{mask:"000.000.000-00",startsWith:/[0-9]/,maxLength:14},{mask:"00.000.000/0000-00",startsWith:/[0-9]/,maxLength:18}]},"phone-br":{mask:[{mask:"(00) 0000-0000"},{mask:"(00) 00000-0000"}],dispatch:(r,e)=>(e.value+r).replace(/\D/g,"").length<=10?e.compiledMasks[0]:e.compiledMasks[1]}},Ns={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},Ms={Center:"center",End:"end",Initial:"initial"},be={name:"Tooltip",class:"ds-tooltip",props:{position:{type:String,default:Ns.Top,options:Object.values(Ns)},placement:{type:String,default:Ms.Center,options:Object.values(Ms)},text:{type:String,default:""},testId:{type:String,default:"ds-tooltip"}}},Ve=({children:r,position:e=be.props.position.default,placement:t=be.props.placement.default,text:s=be.props.text.default,testId:a=be.props.testId.default,className:n})=>{const i=g.useRef(null),[l,c]=g.useState(0),[d,h]=g.useState(0),[f,v]=g.useState(!1),k=e&&be.props.position.options.find(F=>F===e)&&`${be.class}--${e}`,C=t&&be.props.placement.options.find(F=>F===t)&&`${be.class}--${t}`;let _;g.useLayoutEffect(()=>{var F,z;i.current&&(c((F=i==null?void 0:i.current)==null?void 0:F.offsetHeight),h((z=i==null?void 0:i.current)==null?void 0:z.offsetWidth))},[]);const y=9;switch(e){case"top":t==="initial"?_={bottom:l+y,left:-y}:t==="end"?_={bottom:l+y,right:-y}:_={bottom:l+y,left:"50%",transform:"translateX(-50%)"};break;case"bottom":t==="initial"?_={top:l+y,left:-y}:t==="end"?_={top:l+y,right:-y}:_={top:l+y,left:"50%",transform:"translateX(-50%)"};break;case"left":t==="initial"?_={right:d+y,top:-y}:t==="end"?_={right:d+y,bottom:-y}:_={right:d+y,top:"50%",transform:"translateY(-50%)"};break;case"right":t==="initial"?_={left:d+y,top:-y}:t==="end"?_={left:d+y,bottom:-y}:_={left:d+y,top:"50%",transform:"translateY(-50%)"};break}return u.jsxs("div",{className:[be.class,n].join(" "),"data-testid":a,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),ref:i,role:"tooltip",children:[r,f&&u.jsx("div",{className:[k,C].filter(F=>F).join(" "),children:u.jsx("span",{className:`${be.class}__wrapper`,"data-testid":"ds-tooltip-wrapper",style:_,children:s})})]})};Ve.propTypes={position:o.string,placement:o.string,text:o.oneOfType([o.string,o.node]),testId:o.string},Ve.displayName="DsTooltip";const qe=g.forwardRef(({name:r,testId:e=K.props.testId.default,type:t=K.props.type.default,animated:s=K.props.animated.default,size:a=K.props.size.default,label:n,placeholder:i,value:l,min:c,max:d,tooltip:h=K.props.tooltip.default,tooltipPosition:f=K.props.tooltipPosition.default,tooltipPlacement:v=K.props.tooltipPlacement.default,icon:k=K.props.icon.default,status:C=K.props.status.default,feedback:_,hasFeedback:y=K.props.hasFeedback.default,noMargin:F=K.props.noMargin.default,disabled:z=K.props.disabled.default,className:w,mask:T,onChangeHandler:p=K.props.onChangeHandler.default,onBlurHandler:A,onKeyDownHandler:M,onFocusHandler:G},I)=>{const[se,pe]=g.useState(!1),[he,Fe]=g.useState(!1),_e=!!p&&!!T,ze=(D,q,ee)=>{if(_e&&ee){const b={...ee,target:{...ee.target,name:r,maskedValue:D,value:q.unmaskedValue,type:"text"}};p(b)}},le=g.useMemo(()=>typeof T=="object"?{lazy:!0,...T}:Bs[T]?{...Bs[T],min:c,max:d,lazy:!0}:{mask:T||"",min:c,max:d,lazy:!0},[T]),{ref:ve,setUnmaskedValue:Ie}=Ya(le,{onAccept:ze}),Ne=D=>{p&&!_e&&p(D)},m=D=>{M&&M(D)},S=D=>{pe(!1),A&&A(D)},P=D=>{pe(!0),G&&G(D)},V=()=>{Fe(D=>!D)},N=g.useMemo(()=>he&&t==="password"?"text":t,[he,t]),x=()=>{const D=[`${K.class}`];return a&&D.push(`${K.class}--${a}`),s&&D.push(`${K.class}--animated`),F&&D.push(`${K.class}--no-margin`),k&&D.push(`${K.class}--with-icon`),C&&D.push(`${K.class}--${C}`),w&&D.push(w),D.join(" ")},L=g.useMemo(()=>{const D=[`${K.class}__label`];return(se||l)&&D.push(`${K.class}__label--active`),D.join(" ")},[l,se]),j=()=>!s&&i?i:"",H=()=>C&&C==="error"?"info":"check_circle";return g.useEffect(()=>{T&&Ie(l||"")},[l,T,Ie]),u.jsxs("div",{className:x(),ref:I,children:[y&&u.jsx("div",{className:"ds-input__feedback",children:_&&u.jsxs(u.Fragment,{children:[u.jsx(X,{image:H()}),_]})}),u.jsx("input",{className:"ds-input__input","data-testid":e,disabled:z,id:r,max:d,min:c,name:r,onBlur:S,onChange:Ne,onFocus:P,onInput:Ne,onKeyDown:m,placeholder:j(),ref:ve,type:N,...!T&&{value:l||""}}),u.jsxs("label",{className:L,htmlFor:r,children:[n,h&&u.jsx(Ve,{className:"ds-input__tooltip",placement:v,position:f,text:h,children:u.jsx(X,{className:"ds-input__icon",image:"info"})})]}),k&&u.jsx(X,{className:"ds-input__icon",image:k}),t==="password"&&u.jsx(X,{className:"ds-input__password-icon",image:he?"visibility_off":"visibility",onClick:V,size:"xl"})]})});qe.propTypes={name:o.string,testId:o.string,type:o.oneOf(K.props.type.options),animated:o.bool,size:o.oneOf(K.props.size.options),label:o.string,placeholder:o.string,value:o.oneOfType([o.string]),min:o.string,max:o.string,tooltip:o.string,tooltipPosition:o.string,tooltipPlacement:o.string,icon:o.string,status:o.oneOf(K.props.status.options),feedback:o.string,hasFeedback:o.bool,noMargin:o.bool,disabled:o.bool,mask:o.oneOfType([o.string,o.object]),onChangeHandler:o.func,onFocusHandler:o.func},qe.displayName="DsInput";const $s={Small:"small",Medium:"medium",Large:"large"},Vs={None:"",Neutral20:"neutral-20",Neutral10:"neutral-10",Neutral05:"neutral-05",Neutral00:"neutral-00"},ce={name:"Loading",class:"ds-loading",props:{size:{type:String,default:$s.Medium,options:Object.values($s)},opacity:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!0},backgroundColor:{type:String,default:Vs.Neutral10,options:Object.values(Vs)},id:{type:String,default:""},testId:{type:String,default:"ds-loading"}}},ot=({id:r,testId:e=ce.props.testId.default,className:t,size:s=ce.props.size.default,opacity:a=ce.props.opacity.default,fullscreen:n=ce.props.fullscreen.default,backgroundColor:i=ce.props.backgroundColor.default})=>{const l=!n&&`${ce.class}--absolute`,c=s&&`${ce.class}__dots--${s}`,d=i&&ce.props.backgroundColor.options.find(f=>f===i)&&`${ce.class}__background--${i}`,h=a&&`${ce.class}__background--opacity`;return u.jsxs("div",{className:[ce.class,t,l].filter(f=>f).join(" "),"data-testid":e,id:r,children:[u.jsx("div",{className:[`${ce.class}__background`,d,h].filter(f=>f).join(" ")}),u.jsx("div",{className:["ds-loading__dots",c].filter(f=>f).join(" "),role:"status"})]})};ot.propTypes={id:o.string,testId:o.string,size:o.oneOf(ce.props.size.options),opacity:o.bool,fullscreen:o.bool,backgroundColor:o.string},ot.displayName="DsLoading";const we={name:"Option",class:"ds-option",props:{id:{type:String,default:""},name:{type:String,default:""},testId:{type:String,default:""},label:{type:String,default:""},value:{type:String,default:""},disabled:{type:Boolean,default:!1},detail:{type:String,default:""},checked:{type:Boolean,default:!1},onChangeHandler:{type:Function,default:()=>({})}}},It=({id:r,label:e,detail:t,name:s,testId:a=s||"ds-option-test",disabled:n=we.props.disabled.default,value:i,checked:l=we.props.checked.default,onChangeHandler:c=we.props.onChangeHandler.default})=>{const[d]=g.useState(Math.random()),h=()=>{const f=[we.class];return n&&f.push(`${we.class}--disabled`),f.join(" ")};return u.jsxs("div",{className:h(),children:[u.jsx("input",{checked:l,"data-testid":a,disabled:n,id:r||String(d),name:s,onChange:c,type:"radio",value:i}),u.jsx(X,{className:`${we.class}__icon`,image:l?"radio_button_checked":"radio_button_unchecked",size:"xxl"}),u.jsxs("div",{className:`${we.class}__text-container`,children:[e&&u.jsx("label",{className:`${we.class}__label`,htmlFor:r||String(d),children:e}),t&&u.jsx("label",{className:`${we.class}__detail`,htmlFor:r||String(d),children:t})]})]})};It.propTypes={id:o.string,name:o.string,testId:o.string,label:o.oneOfType([o.string,o.node]),value:o.oneOfType([o.string,o.number]),detail:o.string,disabled:o.bool,checked:o.bool,onChangeHandler:o.func},It.displayName="DsOption";const Ls={Default:"",Large:"large",Small:"small"},lt={name:"Paragraph",class:"ds-paragraph",props:{type:{type:String,default:Ls.Default,options:Object.values(Ls)}}},Se=({children:r,className:e,testId:t="ds-paragraph-test",type:s=lt.props.type.default})=>{const a=s&&`${lt.class}--${s}`;return u.jsx("p",{className:[lt.class,a,e&&e].filter(n=>n).join(" "),"data-testid":t,children:r})};Se.propTypes={className:o.string,testId:o.string,type:o.oneOf(lt.props.type.options)},Se.displayName="DsParagraph";const Ps={Success:"success",SuccessDark:"success-dark",Warning:"warning",Danger:"danger"},js={name:"Progress",class:"ds-progress",props:{label:{type:String,default:""},progress:{type:Number,default:0},color:{type:String,default:Ps.Success,options:Object.values(Ps)}}},Ot={name:"Flex-Element",class:"ds-flex-element",props:{flex:{type:String,default:"0 1 auto",required:!1},className:{type:String,default:"",required:!1}}},te=({children:r,flex:e=Ot.props.flex.default,className:t=Ot.props.className.default})=>{const s=()=>[Ot.class,t].join(" "),a=()=>({flex:e});return u.jsx("div",{className:s(),style:a(),children:r})};te.propTypes={className:o.string,flex:o.string},te.displayName="DsFlexElement";const zs={Stretch:"stretch",FlexStart:"flex-start",FlexEnd:"flex-end",Center:"center",SpaceAround:"space-around",SpaceBetween:"space-between"},qs={Stretch:"stretch",FlexStart:"flex-start",FlexEnd:"flex-end",Center:"center"},Hs={Row:"row",Column:"column",RowReverse:"row-reverse",ColumnReverse:"column-reverse"},Us={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},Ga={Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl",XXL:"xxl",XXXL:"xxxl"},Le={name:"Flex-Layout",class:"ds-flex-layout",props:{justifyContent:{type:String,default:zs.Stretch,required:!0,options:Object.values(zs)},alignItems:{type:String,default:qs.Stretch,required:!0,options:Object.values(qs)},flexDirection:{type:String,default:Hs.Row,required:!0,options:Object.values(Hs)},flexWrap:{type:String,default:Us.Wrap,required:!1,options:Object.values(Us)},className:{type:String,default:""},width:{type:String,default:"100%"},height:{type:String,default:""},gap:{type:String,default:"",options:Object.values(Ga)}}},De=({children:r,className:e,justifyContent:t=Le.props.justifyContent.default,alignItems:s=Le.props.alignItems.default,flexDirection:a=Le.props.flexDirection.default,flexWrap:n=Le.props.flexWrap.default,width:i=Le.props.width.default,height:l,gap:c})=>{const d=()=>{const f=[Le.class,e];return c&&f.push(`${Le.class}--gap-${c}`),f.join(" ")},h=()=>({display:"flex",justifyContent:t,alignItems:s,flexDirection:a,flexWrap:n,width:i,height:l,gap:c});return u.jsx("div",{className:d(),style:h(),children:r})};De.propTypes={className:o.string,justifyContent:o.string,alignItems:o.string,flexDirection:o.string,flexWrap:o.string,width:o.string,height:o.string,gap:o.string},De.displayName="DsFlexLayout";const ut={None:"none",Quark:"quark",Nano:"nano",XXXS:"xxxs",XXS:"xxs",XS:"xs",SM:"sm"},Re={name:"Spacer",class:"ds-spacer",props:{vertical:{type:String,default:ut.None,options:Object.values(ut)},horizontal:{type:String,default:ut.None,options:Object.values(ut)}}},de=({vertical:r=Re.props.vertical.default,horizontal:e=Re.props.horizontal.default})=>{const t=r&&`ds-spacer__vertical--${r}`,s=e&&`ds-spacer__horizontal--${e}`;return u.jsx("div",{className:[Re.class,t,s].filter(a=>a).join(" "),"data-testid":"ds-spacer"})};de.propTypes={vertical:o.oneOf(Re.props.vertical.options),horizontal:o.oneOf(Re.props.horizontal.options)},de.displayName="DsSpacer";const Bt=({label:r,progress:e=js.props.progress.default,color:t=js.props.color.default})=>{const s=g.useMemo(()=>e>100?100:e<0?0:e,[e]),a=g.useMemo(()=>`ds-progress__progress--${t}`,[t]),n=g.useMemo(()=>t==="success-dark"?"color__success--dark":t==="warning"?"color__warning--dark":`color__${t}--default`,[t]);return u.jsx("div",{className:"ds-progress",children:u.jsxs(De,{flexDirection:"column",children:[u.jsx(te,{children:u.jsx("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":s,className:"ds-progress__container",role:"progressbar",children:u.jsx("div",{className:`ds-progress__progress ${a}`,"data-testid":"ds-progress-bar",style:{width:`${s}%`}})})}),u.jsx(te,{children:u.jsxs(De,{alignItems:"flex-end",flexDirection:"column",justifyContent:"center",children:[u.jsx(de,{vertical:"quark"}),u.jsx(u.Fragment,{children:r&&u.jsx(Se,{className:n,children:r})})]})})]})})};Bt.propTypes={label:o.string,progress:o.number,color:o.string};const Ws={Small:"sm",Medium:"md",Large:"lg"},Ys={Default:"",Error:"error",Success:"success"},Gs={Center:"center",End:"end",Initial:"initial"},Rs={Top:"top",Right:"right",Bottom:"bottom",Left:"left"},Z={name:"Select",class:"ds-select",props:{label:{type:String,default:""},className:{type:String,default:""},animated:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},name:{type:String,default:""},testId:{type:String,default:"ds-select-test"},placeholder:{type:String},onChange:{type:Function,default:()=>{}},value:{type:[Boolean,String,Number,void 0]},size:{type:String,options:Object.values(Ws),default:Ws.Medium},status:{type:String,default:Ys.Default,options:Object.values(Ys)},tooltip:{type:String,default:""},tooltipPlacement:{type:String,default:Gs.Initial,options:Object.values(Gs)},tooltipPosition:{type:String,default:Rs.Top,options:Object.values(Rs)},feedback:{type:String,default:""},options:[]}},Nt=g.forwardRef(({label:r,className:e,disabled:t=Z.props.disabled.default,animated:s=Z.props.animated.default,multiple:a=Z.props.multiple.default,testId:n=Z.props.testId.default,name:i,options:l,value:c,placeholder:d,onChange:h,onChangeHandler:f,size:v=Z.props.size.default,status:k=Z.props.status.default,tooltip:C,tooltipPosition:_=Z.props.tooltipPosition.default,tooltipPlacement:y=Z.props.tooltipPlacement.default,feedback:F,...z},w)=>{const[T,p]=g.useState(!1),A=I=>{p(!1),h&&h(I,I.target.value),f&&f(I,I.target.value)},M=()=>{const I=[Z.class,"select-placeholder"];return I.push(`${Z.class}--${v}`),k&&I.push(`${Z.class}--${k}`),T&&I.push(`${Z.class}--active`),t&&I.push(`${Z.class}--disabled`),e&&I.push(e),I.join(" ")},G=g.useMemo(()=>{const I=[`${Z.class}__label`];return!s&&I.push(`${Z.class}__label--not-animated`),c&&I.push(`${Z.class}__label--has-value`),s&&!c&&!C&&I.push(`${Z.class}__label--hidden`),I.join(" ")},[c]);return u.jsxs("div",{className:M(),"data-testid":"ds-select-component",children:[r&&u.jsxs("label",{className:G,"data-testid":"ds-label-id",htmlFor:i,children:[r,C&&u.jsx(Ve,{className:`${Z.class}__tooltip`,placement:y,position:_,text:C,children:u.jsx(X,{className:`${Z.class}__icon`,image:"info"})})]}),u.jsxs("select",{"data-testid":n,disabled:t,id:i,multiple:a,name:i,onBlur:()=>p(!1),onChange:I=>A(I),onFocus:()=>p(!0),ref:w,value:c??"",...z,children:[(d||s)&&u.jsx("option",{disabled:!0,value:"",children:d??r}),l==null?void 0:l.map((I,se)=>{var pe;return"options"in I?u.jsx("optgroup",{label:I.label,children:(pe=I.options)==null?void 0:pe.map((he,Fe)=>u.jsx("option",{className:`${Z.class}__option-select`,value:he.value,children:he.label||he.value},Fe))},se):u.jsx("option",{className:`${Z.class}__option-select`,value:I.value,children:I.label||I.value},se)})]}),F&&u.jsxs("div",{className:"ds-select__feedback-container",children:[u.jsx(X,{className:"ds-select__icon",image:k==="success"?"check_circle":"info"}),u.jsx("span",{className:"ds-select__feedback",children:F})]})]})});Nt.propTypes={label:o.string.isRequired,className:o.string,disabled:o.bool,animated:o.bool,multiple:o.bool,name:o.string,testId:o.string,options:o.array.isRequired,placeholder:o.string,onChange:o.func,onChangeHandler:o.func,value:o.oneOfType([o.string,o.number]),size:o.oneOf(Z.props.size.options),status:o.oneOf(Z.props.status.options),tooltip:o.string,tooltipPosition:o.string,tooltipPlacement:o.string,feedback:o.string},Nt.displayName="DsSelect";const Xs={Large:"large",Small:"small"},Mt={name:"Subtitle",class:"ds-subtitle",props:{type:{type:String,default:Xs.Large,options:Object.values(Xs)}}},Ks=({children:r,className:e,testId:t="ds-subtitle-test",type:s})=>{const a=Mt.props.type.options.find(n=>n===s)&&`${Mt.class}--${s}`;return u.jsx("p",{className:[Mt.class,a,e&&e].filter(n=>n).join(" "),"data-testid":t,children:r})};Ks.displayName="DsSubtitle";const Zs={Small:"small",Medium:"medium",Large:"large"},Js={Text:"text"},Qs={None:"",Error:"error",Success:"success"},ea={None:"none",Both:"both",Horizontal:"horizontal",Vertical:"vertical",Block:"block",Inline:"inline"},J={name:"TextArea",class:"ds-textarea",props:{name:{type:String,required:!0},testId:{type:String,default:"ds-textarea-test"},type:{type:String,default:Js.Text,options:Object.values(Js)},animated:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},size:{type:String,default:Zs.Medium,options:Object.values(Zs)},label:{type:String,default:""},placeholder:{type:String,default:" "},value:{type:String,default:""},minLength:{type:Number,default:void 0},maxLength:{type:Number,default:void 0},rows:{type:Number,default:1},status:{type:String,default:Qs.None,options:Object.values(Qs)},feedback:{type:String,default:""},description:{type:String,default:""},icon:{type:String,default:""},tooltip:{type:String,default:""},resize:{type:String,default:ea.None,options:Object.values(ea)},onChangeHandler:{type:Function,default:()=>{}}}},$t=g.forwardRef(({name:r,testId:e=J.props.testId.default,animated:t=J.props.animated.default,size:s=J.props.size.default,label:a,placeholder:n,value:i,minLength:l,maxLength:c,tooltip:d,icon:h,status:f=J.props.status.default,feedback:v,disabled:k=J.props.disabled.default,required:C,className:_,resize:y=J.props.resize.default,onChangeHandler:F,onBlurHandler:z,onKeyDownHandler:w,onFocusHandler:T,rows:p=J.props.rows.default,cols:A,description:M,style:G},I)=>{const[se,pe]=g.useState(!1),[he,Fe]=g.useState(0),[_e,ze]=g.useState(Math.random());g.useEffect(()=>{i==null&&ze(Math.random())},[i]);const le=x=>{Fe(x.target.value.length),F&&F(x)},ve=x=>{w&&w(x)},Ie=x=>{pe(!1),z&&z(x)},Ne=x=>{pe(!0),T&&T(x)},m=()=>{const x=[`${J.class}`];return s&&x.push(`${J.class}--${s}`),t&&x.push(`${J.class}--animated`),d&&x.push(`${J.class}--with-icon`),f&&x.push(`${J.class}--${f}`),_&&x.push(_),x.join(" ")},S=g.useMemo(()=>{const x=[`${J.class}__label`];return(se||i)&&x.push(`${J.class}__label--active`),x.join(" ")},[i,se]),P=()=>!t&&n?n:"",V=()=>f&&f==="error"?"info":"check_circle",N={resize:y,...G||{}};return u.jsxs("div",{className:m(),children:[M&&u.jsx("span",{className:"ds-textarea__description",children:M}),v&&u.jsxs("div",{className:"ds-textarea__feedback",children:[u.jsx(X,{image:V()}),v]}),u.jsx("textarea",{className:"ds-textarea__textarea",cols:A,"data-testid":e,defaultValue:i||"",disabled:k,id:r,maxLength:c,minLength:l,name:r,onBlur:Ie,onChange:le,onFocus:Ne,onKeyDown:ve,placeholder:P(),ref:I,required:C,rows:p,style:N}),u.jsx("label",{className:S,htmlFor:r,children:a}),c&&u.jsxs("span",{className:"ds-textarea__count",children:[he,"/",c]}),d&&u.jsx(Ve,{className:"ds-textarea__tooltip",placement:"end",text:d,children:u.jsx(X,{className:"ds-textarea__icon",image:h})})]},_e)});$t.propTypes={name:o.string,testId:o.string,type:o.oneOf(J.props.type.options),animated:o.bool,size:o.oneOf(J.props.size.options),label:o.string,placeholder:o.string,value:o.oneOfType([o.string]),tooltip:o.string,icon:o.string,status:o.oneOf(J.props.status.options),feedback:o.string,minLength:o.number,maxLength:o.number,rows:o.number,cols:o.number,disabled:o.bool,required:o.bool,onChangeHandler:o.func,onBlur:o.func,onKeyDown:o.func,onFocus:o.func,resize:o.oneOf(J.props.resize.options).isRequired,description:o.string,style:o.object},$t.displayName="DsTextArea";const ct={name:"Container",class:"ds-container",props:{fluid:{type:Boolean,default:!1},testId:{type:String,default:"ds-container-test"}}},dt=({children:r,fluid:e=ct.props.fluid.default,className:t,style:s,testId:a=ct.props.testId.default})=>{const n=e?`${ct.class}--fluid`:ct.class;return u.jsx("div",{className:[n,t].filter(i=>i).join(" "),"data-testid":a,style:s,children:r})};dt.propTypes={children:o.node,fluid:o.bool,className:o.string,style:o.object,testId:o.string},dt.displayName="DsContainer";const ta=()=>typeof window<"u"&&window.innerWidth?window.innerWidth:0,sa=({children:r,grid:e})=>{const{row:t,col:s,mobileRow:a,mobileCol:n}=e,[i,l]=g.useState(ta());g.useEffect(()=>{const d=()=>{l(ta())};if(typeof window<"u")return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]);const c=g.useMemo(()=>i<=768?{gridRow:a||t,gridColumn:n||s}:{gridRow:t,gridColumn:s},[i,t,s,a,n]);return u.jsx("div",{style:c,children:r})};sa.displayName="DsGridElement";const aa={Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},pt={Start:"start",End:"end",Center:"center",Stretch:"stretch",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},Q={name:"Grid-Layout",class:"ds-grid-layout",props:{rows:{type:String,default:"auto",required:!0},gap:{type:String,default:aa.Small,options:Object.values(aa)},vGap:{type:Boolean,default:!0},hGap:{type:Boolean,default:!0},width:{type:String,default:""},height:{type:String,default:""},horizontalAlign:{type:String,default:pt.Start,options:Object.values(pt)},verticalAlign:{type:String,default:pt.Start,options:Object.values(pt)}}};function na(){const{innerWidth:r,innerHeight:e}=window;return{width:r,height:e}}function Ra(){const[r,e]=g.useState(na());return g.useEffect(()=>{function t(){e(na())}return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),r}const Vt=({children:r,rows:e=Q.props.rows.default,gap:t=Q.props.gap.default,vGap:s=Q.props.vGap.default,hGap:a=Q.props.hGap.default,horizontalAlign:n=Q.props.horizontalAlign.default,verticalAlign:i=Q.props.verticalAlign.default,width:l=Q.props.width.default,height:c=Q.props.height.default})=>{const d=s&&`${Q.class}__v-gap--${t}`,h=a&&`${Q.class}__h-gap--${t}`,f=n&&Q.props.horizontalAlign.options.find(w=>w===n)?`${Q.class}--h-${n}`:null,v=i&&Q.props.verticalAlign.options.find(w=>w===i)?`${Q.class}--v-${i}`:null,{width:k}=Ra(),[C,_]=g.useState("auto");g.useEffect(()=>{k<=768?_("6"):_("12")},[k]);const y=w=>/^[+-]?\d+$/.test(w),F=()=>e.split(",").map(T=>(T=T.trim(),T==="0"||T==="*"||T==="auto"?"auto":y(T)?T+"fr":T)).join(" "),z=()=>`repeat(${C}, minmax(0, 1fr))`;return u.jsx("div",{className:[Q.class,f,v,d,h].filter(w=>w).join(" "),style:{width:l,height:c,gridTemplateColumns:z(),gridTemplateRows:F()},children:r})};Vt.propTypes={children:o.oneOfType([o.arrayOf(o.node),o.node,o.func]),rows:o.string,gap:o.oneOf(Q.props.gap.options),vGap:o.bool,hGap:o.bool,width:o.string,height:o.string,horizontalAlign:o.oneOf(Q.props.horizontalAlign.options),verticalAlign:o.oneOf(Q.props.verticalAlign.options)},Vt.displayName="DsGridLayout";const Ce={None:"none",Quark:"quark",Nano:"nano",ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},me={name:"Wrapper",class:"ds-wrapper",props:{space:{type:String,default:Ce.ExtraSmall,options:Object.values(Ce)},top:{type:String,default:Ce.None,options:Object.values(Ce)},right:{type:String,default:Ce.None,options:Object.values(Ce)},bottom:{type:String,default:Ce.None,options:Object.values(Ce)},left:{type:String,default:Ce.None,options:Object.values(Ce)}}},He=({children:r,space:e=me.props.space.default,top:t=me.props.top.default,right:s=me.props.right.default,bottom:a=me.props.bottom.default,left:n=me.props.left.default})=>{const i=t&&`${me.class}__top--${t}`,l=s&&`${me.class}__right--${s}`,c=a&&`${me.class}__bottom--${a}`,d=n&&`${me.class}__left--${n}`,h=e&&`${me.class}--${e}`;return u.jsx("div",{className:[me.class,i,l,c,d,h].filter(f=>f).join(" "),children:r})};He.displayName="DsWrapper";const Lt={name:"Accordion",class:"ds-accordion",props:{openItemListIndex:{type:Boolean,default:!1},items:{type:Array,default:[]},activeItem:{type:Number,default:0}}},Ue={name:"AccordionItem",class:"ds-accordion-item",props:{title:{type:String,default:""},content:{type:String,default:""},disabled:{type:Boolean,default:!1},active:{type:Boolean,default:!1}}},Pt=({title:r,content:e,onToggle:t,active:s=Ue.props.active.default,disabled:a=Ue.props.disabled.default})=>{const n=s&&`${Ue.class}--active`;return u.jsxs("li",{className:[Ue.class,n].filter(i=>i).join(" "),children:[u.jsxs("button",{className:`${Ue.class}__button`,disabled:a,onClick:t,children:[r,u.jsx(X,{className:`${Ue.class}__icon`,color:"neutral-90",image:"expand_more",size:"xl"})]}),s&&u.jsx("div",{className:"ds-accordion-item__content",children:e})]})};Pt.propTypes={active:o.bool,title:o.oneOfType([o.element,o.string]),content:o.oneOfType([o.element,o.string]),disabled:o.bool},Pt.displayName="DsAccordionItem";const jt=({items:r=Lt.props.items.default,activeItem:e=Lt.props.activeItem.default,onClick:t})=>{const[s,a]=g.useState(-1);g.useEffect(()=>{r.map((i,l)=>{i.active&&a(l)})},[r]),g.useEffect(()=>{e!=null&&a(e)},[e]);const n=i=>{if(s===i)return t&&t(-1),a(-1);a(i),t&&t(i)};return u.jsx("ul",{className:Lt.class,children:r.map((i,l)=>u.jsx(Pt,{active:s===l,content:i.content,disabled:i.disabled,onToggle:()=>{n(l)},title:i.title},l))})};jt.propTypes={items:o.array,activeItem:o.number},jt.displayName="DsAccordion";const ra=({title:r,activeTags:e,handleTagClose:t})=>u.jsx("div",{className:"active-tags",children:e.length>0&&u.jsxs(u.Fragment,{children:[u.jsx(Se,{className:"active-tags__title",children:r}),u.jsx("div",{className:"active-tags__list","data-testid":"ds-list",children:e.map((s,a)=>u.jsx(Ve,{text:`Filtro ${s.text} aplicado`,children:u.jsxs("div",{className:`active-tags__item ${s.hiddenClose&&"active-tags__item--no-close"}`,"data-testid":`ds-active-tag-${a}`,children:[u.jsxs(De,{alignItems:"center",gap:"nano",children:[u.jsx(te,{children:u.jsx(X,{className:"active-tags__icon",color:s.hiddenClose?"neutral-00":"neutral-90",fill:!0,image:s.icon,testId:`icon-${a}`})}),u.jsx(te,{children:u.jsx(Se,{type:"small",children:s.text})})]}),!s.hiddenClose&&u.jsx(X,{image:"close",onClick:()=>t(a),testId:`icon-close-${a}`})]},a)},`ds-tooltip-key-${s.id}-${s.text}`))})]})});ra.displayName="DsActiveTags";const Xe={name:"Carousel",class:"ds-carousel",props:{}},ia=({slides:r,interval:e=3e3,imageHeight:t=100,imageWidth:s=100,imageMaxHeight:a,imageMaxWidth:n})=>{const[i,l]=g.useState(0),[c,d]=g.useState(!1),h=g.useRef(null);g.useEffect(()=>(c||(h.current=setInterval(()=>{l(k=>k===r.length-1?0:k+1)},e)),()=>{h.current&&clearInterval(h.current)}),[c,e,r.length]);const f=()=>d(!0),v=()=>d(!1);return u.jsxs("div",{className:`${Xe.class}`,"data-testid":"ds-carousel",onMouseEnter:f,onMouseLeave:v,children:[u.jsx("div",{className:`${Xe.class}__image-wrapper`,style:{height:t,width:s,maxHeight:a,maxWidth:n},children:r.map((k,C)=>u.jsx("img",{alt:k.title,className:`${Xe.class}__image ${C===i?"active":"inactive"}`,height:t,src:k.image,style:{maxHeight:a,maxWidth:n},width:s},C))}),u.jsx(de,{vertical:"xxs"}),u.jsx("div",{children:u.jsx(Qe,{className:"color__primary--default",type:"heading-4",children:r[i].title})}),u.jsx("div",{children:u.jsx(Se,{type:"large",children:r[i].description})}),u.jsx(de,{vertical:"xxs"}),u.jsx("div",{className:`${Xe.class}__dots`,children:u.jsx("div",{className:`${Xe.class}__dots-wrapper`,children:r.map((k,C)=>u.jsx("button",{"aria-label":`Go to slide ${C+1}`,className:`dot ${i===C?"dot--active":""}`,onClick:()=>l(C)},C))})})]})};ia.propTypes={slides:o.arrayOf(o.shape({title:o.string.isRequired,image:o.string.isRequired,description:o.string.isRequired})).isRequired,interval:o.number,imageHeight:o.oneOfType([o.number,o.string]),imageWidth:o.oneOfType([o.number,o.string]),imageMaxHeight:o.oneOfType([o.number,o.string]),imageMaxWidth:o.oneOfType([o.number,o.string])};const oa={Small:"small",Medium:"medium",Large:"large"},R={name:"EditableSelect",class:"ds-editable-select",props:{label:{type:String,default:""},testId:{type:String,default:"ds-editable-select"},animated:{type:Boolean,default:!0},placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},noOptionsMessage:{type:String,default:"Nenhum resultado encontrado"},size:{type:String,default:oa.Medium,options:Object.values(oa)},status:{type:String,default:""},options:{type:Array,default:[]},icon:{type:String,default:void 0},disabled:{type:Boolean,default:!1},loading:{type:Boolean},onChangeHandler:{type:Function,default:()=>{}},onBlurHandler:{type:Function,default:()=>{}},onFocusHandler:{type:Function,default:()=>{}},onSelectHandler:{type:Function,default:()=>{}}}},la=({label:r=R.props.label.default,name:e=R.props.name.default,testId:t=R.props.testId.default,value:s=R.props.value.default,options:a=R.props.options.default,size:n=R.props.size.default,onChangeHandler:i=R.props.onChangeHandler.default,onSelectHandler:l=R.props.onSelectHandler.default,icon:c=R.props.icon.default,noOptionsMessage:d=R.props.noOptionsMessage.default,disabled:h=R.props.disabled.default,status:f=R.props.status.default,onBlurHandler:v=R.props.onBlurHandler.default,onFocusHandler:k=R.props.onFocusHandler.default,animated:C=R.props.animated.default,placeholder:_=R.props.placeholder.default,loading:y})=>{const[F,z]=g.useState(!1),[w,T]=g.useState(s),p=I=>{i(I),(y==null&&I.currentTarget.value.length||!y&&I.currentTarget.value.length>2)&&z(!0)},A=I=>{l(I),v(),T(Math.random().toString()),z(!1)},M=I=>{h||A(I)};g.useEffect(()=>{s.length===0&&z(!1)},[s]);const G=()=>a.length>0?a.map((I,se)=>u.jsx("button",{className:`${R.class}__option ${R.class}__option--${n}`,"data-testid":`ds-option-${I.id||I.label}`,onClick:()=>M(I),children:I.label},se)):u.jsx("div",{className:`${R.class}__option ${R.class}__option--not-found--${n}`,children:d},"no_option");return u.jsxs("div",{className:`${R.class}__container`,children:[u.jsx(qe,{animated:C,className:`${R.class}__input`,disabled:h,label:r,name:e,onBlurHandler:v,onChangeHandler:p,onFocusHandler:k,placeholder:_,size:n,status:f,testId:t,value:s},w),(c||y)&&(y?u.jsx("div",{className:`${R.class}__loading ${R.class}__loading--${n}`,style:{width:"18px"},children:u.jsx(ot,{fullscreen:!1})}):c&&u.jsx(X,{className:`${R.class}__icon ${R.class}__icon--${n}`,image:c})),F&&u.jsx("div",{className:`${R.class}__list ${R.class}__list--${n}`,"data-testid":"ds-list",children:G()})]})};la.displayName="DsEditableSelect";const Ke={name:"DsIndicator",class:"ds-indicator",props:{current:{type:Number,default:0},length:{type:Number,required:!0}}},Xa=({length:r,current:e=Ke.props.current.default})=>{const[t,s]=g.useState(e),a=i=>i<t?`${Ke.class}__step--older`:i===t?`${Ke.class}__step--active`:"";g.useEffect(()=>{s(e)},[e]);const n=[];for(let i=0;i<r;i++)n.push(u.jsx("div",{className:`${Ke.class}__step ${a(i)}`,"data-testid":`ds-indicator-step-${i}`},i));return u.jsx("div",{className:Ke.class,children:n})},Ka={name:"DsInlineEditable",class:"ds-inline-editable",props:{name:{type:String,required:!0},value:{type:String,default:""},min:{type:String,default:""},max:{type:String,default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},onChangeHandler:{type:Function,default:()=>{}}}},zt=({name:r,value:e,prefix:t,sufix:s,min:a,max:n,onChangeHandler:i})=>{const l=g.useRef(null),[c,d]=g.useState(!1),[h,f]=g.useState("");g.useEffect(()=>{f(e??"")},[e]);const v=y=>{y.key==="Enter"&&k(y)};function k(y){d(!1),i&&(a&&parseInt(a)>=parseInt(h===""?a:h)?(y.currentTarget.value=a,f(a)):n&&parseInt(n)<parseInt(h)?(y.currentTarget.value=n,f(n)):y.currentTarget.value=h,i(y))}const C=y=>{f(y.currentTarget.value)},_=async()=>{var y;await d(!0),(y=l.current)==null||y.focus()};return u.jsx("div",{className:Ka.class,children:c?u.jsx("input",{className:"ds-input__input","data-testid":"ds-input",max:n,min:a,name:r,onBlur:k,onChange:C,onKeyDown:v,ref:l,type:"number",value:h}):u.jsx("div",{"data-testid":"ds-inline-editible-div-click",onClick:_,children:u.jsxs(De,{alignItems:"center",gap:"nano",children:[u.jsx(te,{children:u.jsx(Se,{children:u.jsxs("b",{children:[t,e,s]})})}),u.jsx(te,{children:u.jsx(X,{image:"edit_square"})})]})})})};zt.propTypes={value:o.string},zt.displayName="DsInlineEditable";const Za=[1,2,3,4],ua={Squared:"squared",Rounded:"rounded"},ge={name:"Modal",class:"ds-modal",props:{elevation:{type:Number,options:Za},variant:{type:String,default:ua.Rounded,options:Object.values(ua)},cancelBtnText:{type:String,default:"Cancelar"},confirmBtnText:{type:String,default:"Confirmar"},isModalOpen:{type:Boolean,default:!1}}},qt=({className:r,title:e,content:t,cancelBtnText:s=ge.props.cancelBtnText.default,confirmBtnText:a=ge.props.confirmBtnText.default,variant:n=ge.props.variant.default,elevation:i,isModalOpen:l=ge.props.isModalOpen.default,onClose:c,onCancel:d,onConfirm:h,...f})=>{const v=n&&ge.props.variant.options.find(y=>y===n)?`${ge.class}--${n}`:`${ge.class}--${ge.props.variant.default}`,k=i&&`${ge.class}--elevation-${i}`,C=h||d,_=g.useCallback(y=>{y.keyCode===27&&c()},[c]);return g.useEffect(()=>(l&&window&&!C&&window.addEventListener("keyup",_),()=>{window.removeEventListener("keyup",_)}),[C,_]),l?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"ds-modal-overlay","data-testid":"ds-modal-overlay",...f,onClick:()=>C?()=>{}:c()}),u.jsxs("div",{className:[ge.class,v,k,r&&r].filter(y=>y).join(" "),"data-testid":"ds-modal",children:[!C&&u.jsx("button",{className:"ds-modal__closeBtn","data-testid":"ds-modal-close-button",onClick:c,children:u.jsx(X,{image:"close",size:"lg"})}),u.jsxs("div",{className:"ds-modal__content",children:[u.jsx("div",{className:"ds-modal__content__title",children:e}),e&&u.jsx(de,{vertical:"xxxs"}),u.jsx("div",{className:"ds-modal__content__content",children:t})]}),C&&u.jsx(de,{vertical:"sm"}),!C&&u.jsx(de,{vertical:"xxs"}),u.jsxs("div",{className:"ds-modal__cta",children:[d&&u.jsx(We,{onClick:()=>{c(),d()},children:s}),h&&u.jsx(We,{onClick:()=>{c(),h()},children:a})]})]})]}):null};qt.propTypes={firstButtonText:o.string,confirmBtnText:o.string,cancelBtnText:o.string,variant:o.oneOf(ge.props.variant.options),elevation:o.oneOf(ge.props.elevation.options),isModalOpen:o.bool,title:o.node,content:o.node},qt.displayName="DsModal";const ca={Success:"success",Danger:"danger",Warning:"warning",Info:"info"},da={Rounded:"rounded",Squared:"squared"},oe={name:"DsNotification",class:"ds-notification",props:{type:{type:String,default:ca.Info,options:Object.values(ca)},id:{type:String},autoClose:{type:Boolean,default:!1},autoCloseTimer:{type:Number,default:4e3},dismissible:{type:Boolean,default:!1},elevation:{type:Number,options:[1,2,3,4]},variant:{type:String,default:da.Rounded,options:Object.values(da)},progressBar:{type:Boolean,default:!0},testId:{type:String,default:"ds-notification"}}},Ja={success:"check",danger:"error",warning:"warning",info:"info"},Ht=({className:r,type:e=oe.props.type.default,variant:t=oe.props.variant.default,id:s,children:a,message:n,autoClose:i=oe.props.autoClose.default,autoCloseTimer:l=oe.props.autoCloseTimer.default,dismissible:c=oe.props.dismissible.default,elevation:d,progressBar:h=oe.props.progressBar.default,handleClose:f,testId:v=oe.props.testId.default})=>{const[k,C]=g.useState(l),[_,y]=g.useState(!1),[F,z]=g.useState(!0),w=[oe.class,e&&`${oe.class}--${e}`,t&&`${oe.class}--${t}`,d&&`${oe.class}--elevation-${d}`,r&&r].join(" "),T=()=>C(G=>(G===0&&z(!1),G-100));g.useEffect(()=>{!i&&!c&&z(!0);let G;return!_&&i&&(G=setInterval(T,100)),()=>{clearInterval(G)}},[_,i,l,F,c]);const p=()=>{y(!0)},A=()=>{y(!1)},M=G=>{z(!1),f&&f(G)};return F?u.jsxs("div",{className:w,"data-testid":v,id:s,onMouseEnter:p,onMouseLeave:A,children:[u.jsx(He,{bottom:"nano",top:"nano",children:u.jsxs(De,{alignItems:"center",flexWrap:"nowrap",gap:"xxxs",children:[u.jsx(te,{children:u.jsx(X,{color:e,fill:!0,image:Ja[e]})}),u.jsx(te,{flex:"1",children:u.jsx(He,{left:"none",right:"none",space:"nano",children:a??n})}),u.jsx(te,{children:c?u.jsx("div",{className:`${oe.class}__button`,"data-testid":`${v}-close`,onClick:G=>M(G),children:u.jsx(He,{children:u.jsx(X,{image:"close"})})}):u.jsx(de,{horizontal:"quark"})})]})}),h&&i&&u.jsx("div",{className:`${oe.class}__progress-bar ${oe.class}__progress-bar--${e}`,"data-testid":`${v}-progress-bar`,style:{width:`${k/l*100}%`}})]}):null};Ht.displayName="DsNotification";const Ut={name:"DsPasswordConfirmation",class:"ds-password-confirmation",props:{onChange:{type:Function,default:()=>{}},validationList:{type:Array,default:[{title:"Um número",rule:r=>/\d/.test(r)},{title:"Uma letra maiúscula",rule:r=>/[A-Z]/.test(r)},{title:"Um caractere especial. Ex: @#!?",rule:r=>/[!@#$%^&*()+\-=_[\]{};':"\\|,.<>/?]/.test(r)},{title:"Mínimo 8 caracteres",rule:r=>r.length>=8}]},instructionLabel:{type:String,default:"A senha deverá conter:"},testId:{type:String,default:"ds-password-confirmation"}}},ht={strong:"Forte",good:"Boa",medium:"Médio",weak:"Fraco"},Wt=({onChange:r,validationList:e=Ut.props.validationList.default,instructionLabel:t=Ut.props.instructionLabel.default,testId:s=Ut.props.testId.default})=>{const[a,n]=g.useState(""),[i,l]=g.useState(""),[c,d]=g.useState([]),[h,f]=g.useState({score:0,color:"danger",label:"Fraco"}),[v,k]=g.useState(!1),C=g.useCallback(p=>{const A=e.map(M=>M==null?void 0:M.rule(p));return d(A),A},[e]),_=g.useCallback(p=>{n(p.currentTarget.value);const A=C(p.currentTarget.value),M=w(A);r({password:p.currentTarget.value,confirmationPassword:i,isEqual:i===p.currentTarget.value,feedback:M})},[i,r,C]),y=g.useCallback(p=>{l(p.currentTarget.value);const A=C(a),M=w(A);r({password:a,confirmationPassword:p.currentTarget.value,isEqual:a===p.currentTarget.value,feedback:M})},[a,r,C]),F=g.useMemo(()=>a!==i&&v?{status:"error",feedback:"As senhas são diferentes"}:{status:"",feedback:""},[a,i,v]),z=g.useCallback(p=>{const A={score:p,color:"danger",label:ht.weak};return p>30&&p<75?(A.color="warning",A.label=ht.medium):p>=75&&p<100?(A.color="success",A.label=ht.good):p===100&&(A.color="success-dark",A.label=ht.strong),A},[]),w=g.useCallback(p=>{const A=p.reduce((G,I)=>{let se=G;return I?(se++,se):G},0),M=z(A*100/p.length);return f(M),M},[z]),T=()=>u.jsx("ul",{children:e.map((p,A)=>{const M=c[A]?"ds-password-confirmation__list":"ds-password-confirmation__list--disc";return u.jsxs("li",{className:M,children:[c[A]?u.jsx(X,{color:"success-dark",image:"check",testId:"ds-check-icon"}):null,u.jsx(de,{horizontal:"quark"}),u.jsx(Se,{children:p.title})]},A+p.title)})});return u.jsxs(De,{className:"ds-password-confirmation",flexDirection:"column",children:[u.jsx(te,{children:u.jsx(qe,{label:"Senha",name:"password",onChangeHandler:_,testId:`${s}-main-input`,type:"password",value:a})}),u.jsx(te,{children:u.jsx(Bt,{color:h==null?void 0:h.color,label:h==null?void 0:h.label,progress:h==null?void 0:h.score})}),u.jsx(te,{children:u.jsx(Se,{children:t})}),u.jsx(te,{children:T()}),u.jsx(de,{vertical:"xxs"}),u.jsx(te,{children:u.jsx(qe,{feedback:F.feedback,label:"Confirme a senha",name:"confirmPassword",onBlurHandler:()=>k(!0),onChangeHandler:y,onFocusHandler:()=>k(!0),status:F.status,testId:`${s}-confirm-input`,type:"password",value:i})})]})};Wt.propTypes={onChange:o.func,validationList:o.array,instructionLabel:o.string,testId:o.string},Wt.displayName="DsPasswordConfirmation";const ye={name:"DsStepper",class:"ds-stepper",props:{steps:{type:Array,required:!0},selectedStep:{type:Number,default:0}}},pa=({steps:r,selectedStep:e=ye.props.selectedStep.default,onChange:t})=>{const[s,a]=g.useState(e),n=(i,l)=>{const c=[`${ye.class}__button`];return l!==i&&c.push(`${ye.class}__button--round`),r[i]&&r[i].disabled&&c.push(`${ye.class}__button--disabled`),c.join(" ")};return g.useEffect(()=>{a(e)},[e]),g.useEffect(()=>{t(s)},[s]),u.jsxs("div",{className:ye.class,children:[u.jsxs("span",{className:`${ye.class}__step-counter`,children:["Etapa ",s+1," de ",r==null?void 0:r.length]}),u.jsx("div",{className:`${ye.class}__step`,children:r.map((i,l)=>u.jsx("div",{className:`${ye.class}__content`,children:u.jsx("button",{className:n(l,s),"data-testid":`ds-button-${l}`,disabled:i.disabled,onClick:()=>a(l),children:u.jsxs("span",{className:`${ye.class}__text`,children:[s===l?u.jsx(He,{bottom:"none",left:"nano",right:"nano",top:"none",children:u.jsx(X,{className:`${ye.class}__icon`,fill:!0,image:i.icon,testId:`ds-icon-${l}`})}):u.jsx(X,{className:`${ye.class}__icon`,fill:!0,image:i.icon,testId:`ds-icon-${l}`}),s===l&&i.label]})})},l))})]})};pa.displayName="DsStepper";const Ee={name:"Table",class:"ds-table",props:{header:{type:Array,default:[]},items:{type:Array,default:[]},columns:{type:Array,default:[]}}},ha=({item:r,columns:e})=>u.jsx("tr",{className:`${Ee.class}__row`,children:e.map((t,s)=>{const a=t.align&&`${Ee.class}__cell--align-${t.align}`;return u.jsx("td",{children:u.jsx("div",{className:[`${Ee.class}__cell`,a,t.className].filter(n=>n).join(" "),children:r&&r[`${t.name}`]})},s)})});ha.displayName="DsTableRow";const fa=({columns:r,data:e,className:t})=>u.jsx("div",{className:`${Ee.class}__wrapper`,children:u.jsxs("table",{className:[`${Ee.class}`,t].filter(s=>s).join(" "),children:[u.jsx("thead",{className:`${Ee.class}__head`,children:u.jsx("tr",{className:`${Ee.class}__row`,children:r&&r.map((s,a)=>u.jsx("th",{style:{width:s.size},children:u.jsx("div",{className:[`${Ee.class}__cell`,s.align&&`${Ee.class}__cell--align-${s.align}`].filter(n=>n).join(" "),children:s.label})},a))})}),u.jsx("tbody",{className:`${Ee.class}__body`,children:e&&e.map((s,a)=>u.jsx(ha,{columns:r,item:s},a))})]})});fa.displayName="DsTable";const ga={None:"",Primary:"primary",Secondary:"secondary",Neutral:"neutral",Success:"success",Warning:"warning",Danger:"danger",Info:"info"},Be={name:"DsTabs",class:"ds-tabs",props:{tabs:{type:Array,required:!0},selectedTab:{type:Number,default:0},color:{type:String,default:ga.Primary,options:Object.values(ga)},className:{type:String,default:""},onChange:{type:Function,default:()=>{}}}},Qa=({active:r,className:e,color:t,disabled:s,name:a,index:n,title:i,onClick:l})=>{const c=[`${Be.class}__tab`,`${Be.class}__tab-color--${t}`,r&&`${Be.class}__tab--active`,s&&`${Be.class}__tab--disabled`,e&&e].join(" "),d=h=>{l&&!s&&l(h)};return u.jsx("div",{className:c,"data-testid":`ds-tab-${n}`,id:a,onClick:()=>d(n),children:i})},en=({tabs:r,color:e,selectedTab:t=Be.props.selectedTab.default,className:s,onChange:a})=>{const[n,i]=g.useState(t),l=c=>{i(c),a&&a(c)};return g.useEffect(()=>i(t),[t]),u.jsxs("div",{className:[Be.class,s&&s].join(" "),"data-testid":"ds-tabs",children:[u.jsx("div",{className:`${Be.class}__header`,children:r.map((c,d)=>g.createElement(Qa,{...c,active:n===d,color:e,index:d,key:d,onClick:()=>l(d)}))}),u.jsx("div",{className:`${Be.class}__content`,children:r[n].content})]})};function ma({library:r,children:e,theme:t}){return u.jsx("div",{"data-library":r,"data-theme":t,children:u.jsx("div",{className:"ds-theme",children:e})})}ma.propTypes={library:o.string,children:o.node.isRequired,theme:o.string};const ya={TopLeft:"top-left",TopCenter:"top-center",TopRight:"top-right",BottomLeft:"bottom-left",BottomCenter:"bottom-center",BottomRight:"bottom-right"},Pe={name:"DsNotificationList",class:"ds-notification-list",props:{position:{type:String,default:ya.TopRight,options:Object.values(ya)},fluid:{type:Boolean,default:!1},className:{type:String,default:""}}},Yt=({className:r=Pe.props.className.default,position:e=Pe.props.position.default,fluid:t=Pe.props.fluid.default,notifications:s,removeNotification:a})=>{const n=[Pe.class,`${Pe.class}--${e}`,t&&`${Pe.class}--fluid`,r&&r].join(" "),i=l=>{a&&a(l)};return u.jsx("div",{className:n,"data-testid":"ds-notification-list",children:s.map(l=>{const c=l.autoClose??!0,d=l.autoCloseTimer??4e3,h=l.dismissible??!0,f=l.elevation??2,v=l.progressBar??!0;return u.jsx(Ht,{autoClose:c,autoCloseTimer:d,dismissible:h,elevation:f,handleClose:()=>i(l.id),id:l.id,message:l.message,progressBar:v,type:l.type},l.id)})})};Yt.propTypes={position:o.oneOf(Pe.props.position.options),fluid:o.bool,notifications:o.array,removeNotification:o.func},Yt.displayName="DsNotificationList";const je={name:"SplitLayout",class:"ds-split-layout",props:{}},Gt=({leftContent:r,rightContent:e,leftBackgroundColor:t,rightBackgroundColor:s,reverseOnMobile:a=!1})=>{const n=t?`${je.class}__content--${t}`:"",i=s?`${je.class}__content--${s}`:"",l=a?`${je.class}__content--mobile-order-2`:"",c=a?`${je.class}__content--mobile-order-1`:"",d=`${je.class}__content ${n} ${l}`,h=`${je.class}__content ${i} ${c}`;return u.jsxs("div",{className:je.class,children:[u.jsx("div",{className:d,children:r}),u.jsx("div",{className:h,children:e})]})};Gt.propTypes={leftContent:o.node.isRequired,rightContent:o.node.isRequired,leftBackgroundColor:o.string,rightBackgroundColor:o.string,reverseOnMobile:o.bool},Gt.displayName="DsSplitLayout";const ft={name:"TwoColumns",class:"ds-two-columns",props:{}},Rt=({header:r,main:e,sidebar:t,breadcrumb:s})=>u.jsxs(dt,{children:[u.jsxs("div",{className:"ds-grid",children:[u.jsx("div",{className:"ds-grid__row",children:u.jsx("div",{className:"ds-grid__col ds-grid__col-12",children:s})}),u.jsxs("div",{className:`${ft.class}__content ds-grid__row`,children:[u.jsx("div",{className:"ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12",children:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:`${ft.class}__header`,children:r}),u.jsx("div",{className:`${ft.class}__main`,children:e})]})}),u.jsx("div",{className:`${ft.class}__sidebar ds-grid__col ds-grid__col--lg-4 ds-grid__col--sm-12 ds-grid__col-12`,children:t})]})]}),u.jsx(de,{vertical:"sm"})]});Rt.propTypes={breadcrumb:o.node,header:o.node,main:o.node,sidebar:o.node},Rt.displayName="DsTwoColumns",B.DsAccordion=jt,B.DsActiveTags=ra,B.DsButton=We,B.DsCaption=Et,B.DsCard=Tt,B.DsCarousel=ia,B.DsCheckbox=At,B.DsContainer=dt,B.DsEditableSelect=la,B.DsFlexElement=te,B.DsFlexLayout=De,B.DsGridElement=sa,B.DsGridLayout=Vt,B.DsHR=xt,B.DsHeading=Qe,B.DsIcon=X,B.DsIndicator=Xa,B.DsInlineEditable=zt,B.DsInput=qe,B.DsLoading=ot,B.DsModal=qt,B.DsNotification=Ht,B.DsNotificationList=Yt,B.DsOption=It,B.DsParagraph=Se,B.DsPasswordConfirmation=Wt,B.DsProgress=Bt,B.DsSelect=Nt,B.DsSpacer=de,B.DsSplitLayout=Gt,B.DsStepper=pa,B.DsSubtitle=Ks,B.DsTable=fa,B.DsTabs=en,B.DsTextArea=$t,B.DsTooltip=Ve,B.DsTwoColumns=Rt,B.DsWrapper=He,B.ThemeProvider=ma,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});