@progressiveui/react 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@ interface NumberInputProps extends InputProps, Omit<React.ComponentPropsWithRef<
28
28
  /**
29
29
  * Provide text that is used alongside the control label for additional help
30
30
  */
31
- helperText?: string;
31
+ helperText?: React.ReactNode;
32
32
  /**
33
33
  * Specify whether you want the underlying label to be visually hidden
34
34
  */
@@ -45,6 +45,10 @@ interface NumberInputProps extends InputProps, Omit<React.ComponentPropsWithRef<
45
45
  * Specify the regular expression that the value should match using the html pattern attribute
46
46
  */
47
47
  pattern?: string;
48
+ /**
49
+ * Provide a label for the control
50
+ */
51
+ labelText?: React.ReactNode;
48
52
  /**
49
53
  * The new value is available in 'imaginaryTarget.value'
50
54
  * i.e. to get the value: evt.imaginaryTarget.value or in th second argument provided to the onChange prop
@@ -4,11 +4,11 @@ interface PasswordInputProps extends Omit<InputProps, "type">, Omit<React.Compon
4
4
  /**
5
5
  * Accessible label for the toggle when the password is hidden
6
6
  */
7
- showPasswordLabelText?: string;
7
+ showPasswordLabelText?: React.ReactNode;
8
8
  /**
9
9
  * Accessible label for the toggle when the password is visible
10
10
  */
11
- hidePasswordLabelText?: string;
11
+ hidePasswordLabelText?: React.ReactNode;
12
12
  }
13
13
  declare const PasswordInput: React.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
14
14
  export default PasswordInput;
package/dist/index.cjs.js CHANGED
@@ -100,5 +100,5 @@ Valid keys: `+JSON.stringify(Object.keys(u),null," "));var W=pe(K,re,A,q,I+"."+
100
100
  1. You might have mismatching versions of React and the renderer (such as React DOM)
101
101
  2. You might be breaking the Rules of Hooks
102
102
  3. You might have more than one copy of React in the same app
103
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d=z,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},i=Symbol.for("react.portal"),h=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ye.createPortal=function(m,f){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return r(m,f,null,v)},ye.flushSync=function(m){var f=h.T,v=l.p;try{if(h.T=null,l.p=2,m)return m()}finally{h.T=f,l.p=v,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ye.preconnect=function(m,f){typeof m=="string"&&m?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(m)),typeof m=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(m,f))},ye.prefetchDNS=function(m){if(typeof m!="string"||!m)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(m));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(f))}typeof m=="string"&&l.d.D(m)},ye.preinit=function(m,f){if(typeof m=="string"&&m?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(m)),typeof m=="string"&&f&&typeof f.as=="string"){var v=f.as,w=n(v,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,x=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;v==="style"?l.d.S(m,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:w,integrity:y,fetchPriority:x}):v==="script"&&l.d.X(m,{crossOrigin:w,integrity:y,fetchPriority:x,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ye.preinitModule=function(m,f){var v="";if(typeof m=="string"&&m||(v+=" The `href` argument encountered was "+o(m)+"."),f!==void 0&&typeof f!="object"?v+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(v+=" The `as` option encountered was "+s(f.as)+"."),v)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",v);else switch(v=f&&typeof f.as=="string"?f.as:"script",v){case"script":break;default:v=s(v),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',v,m)}typeof m=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(v=n(f.as,f.crossOrigin),l.d.M(m,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(m))},ye.preload=function(m,f){var v="";if(typeof m=="string"&&m||(v+=" The `href` argument encountered was "+o(m)+"."),f==null||typeof f!="object"?v+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(v+=" The `as` option encountered was "+o(f.as)+"."),v&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',v),typeof m=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){v=f.as;var w=n(v,f.crossOrigin);l.d.L(m,v,{crossOrigin:w,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ye.preloadModule=function(m,f){var v="";typeof m=="string"&&m||(v+=" The `href` argument encountered was "+o(m)+"."),f!==void 0&&typeof f!="object"?v+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(v+=" The `as` option encountered was "+o(f.as)+"."),v&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',v),typeof m=="string"&&(f?(v=n(f.as,f.crossOrigin),l.d.m(m,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(m))},ye.requestFormReset=function(m){l.d.r(m)},ye.unstable_batchedUpdates=function(m,f){return m(f)},ye.useFormState=function(m,f,v){return c().useFormState(m,f,v)},ye.useFormStatus=function(){return c().useHostTransitionStatus()},ye.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ye}var pn;function Ia(){if(pn)return Nt.exports;pn=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),Nt.exports=Da()):Nt.exports=Ma(),Nt.exports}var ss=Ia();const os=Dt(ss);function La(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},De.apply(this,arguments)}var mn=function(t){return t.reduce(function(r,n){var o=n[0],s=n[1];return r[o]=s,r},{})},hn=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,xe="top",je="bottom",Ne="right",be="left",Er="auto",mt=[xe,je,Ne,be],Xe="start",dt="end",Ba="clippingParents",as="viewport",at="popper",qa="reference",vn=mt.reduce(function(e,t){return e.concat([t+"-"+Xe,t+"-"+dt])},[]),is=[].concat(mt,[Er]).reduce(function(e,t){return e.concat([t,t+"-"+Xe,t+"-"+dt])},[]),Fa="beforeRead",Ha="read",Wa="afterRead",za="beforeMain",Ua="main",Ya="afterMain",Va="beforeWrite",Ga="write",Ka="afterWrite",Xa=[Fa,Ha,Wa,za,Ua,Ya,Va,Ga,Ka];function Re(e){return e?(e.nodeName||"").toLowerCase():null}function we(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ze(e){var t=we(e).Element;return e instanceof t||e instanceof Element}function Ee(e){var t=we(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function jr(e){if(typeof ShadowRoot>"u")return!1;var t=we(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qa(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!Ee(s)||!Re(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(c){var d=o[c];d===!1?s.removeAttribute(c):s.setAttribute(c,d===!0?"":d)}))})}function Za(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],s=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),d=c.reduce(function(l,i){return l[i]="",l},{});!Ee(o)||!Re(o)||(Object.assign(o.style,d),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const Ja={name:"applyStyles",enabled:!0,phase:"write",fn:Qa,effect:Za,requires:["computeStyles"]};function Oe(e){return e.split("-")[0]}var We=Math.max,kt=Math.min,Qe=Math.round;function dr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cs(){return!/^((?!chrome|android).)*safari/i.test(dr())}function Ze(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Ee(e)&&(o=e.offsetWidth>0&&Qe(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Qe(n.height)/e.offsetHeight||1);var c=ze(e)?we(e):window,d=c.visualViewport,l=!cs()&&r,i=(n.left+(l&&d?d.offsetLeft:0))/o,h=(n.top+(l&&d?d.offsetTop:0))/s,m=n.width/o,f=n.height/s;return{width:m,height:f,top:h,right:i+m,bottom:h+f,left:i,x:i,y:h}}function Nr(e){var t=Ze(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ls(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&jr(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Me(e){return we(e).getComputedStyle(e)}function ei(e){return["table","td","th"].indexOf(Re(e))>=0}function Fe(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bt(e){return Re(e)==="html"?e:e.assignedSlot||e.parentNode||(jr(e)?e.host:null)||Fe(e)}function gn(e){return!Ee(e)||Me(e).position==="fixed"?null:e.offsetParent}function ti(e){var t=/firefox/i.test(dr()),r=/Trident/i.test(dr());if(r&&Ee(e)){var n=Me(e);if(n.position==="fixed")return null}var o=Bt(e);for(jr(o)&&(o=o.host);Ee(o)&&["html","body"].indexOf(Re(o))<0;){var s=Me(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ht(e){for(var t=we(e),r=gn(e);r&&ei(r)&&Me(r).position==="static";)r=gn(r);return r&&(Re(r)==="html"||Re(r)==="body"&&Me(r).position==="static")?t:r||ti(e)||t}function Cr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lt(e,t,r){return We(e,kt(t,r))}function ri(e,t,r){var n=lt(e,t,r);return n>r?r:n}function us(){return{top:0,right:0,bottom:0,left:0}}function ds(e){return Object.assign({},us(),e)}function fs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ni=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ds(typeof t!="number"?t:fs(t,mt))};function si(e){var t,r=e.state,n=e.name,o=e.options,s=r.elements.arrow,c=r.modifiersData.popperOffsets,d=Oe(r.placement),l=Cr(d),i=[be,Ne].indexOf(d)>=0,h=i?"height":"width";if(!(!s||!c)){var m=ni(o.padding,r),f=Nr(s),v=l==="y"?xe:be,w=l==="y"?je:Ne,y=r.rects.reference[h]+r.rects.reference[l]-c[l]-r.rects.popper[h],x=c[l]-r.rects.reference[l],j=ht(s),O=j?l==="y"?j.clientHeight||0:j.clientWidth||0:0,S=y/2-x/2,E=m[v],_=O-f[h]-m[w],N=O/2-f[h]/2+S,k=lt(E,N,_),D=l;r.modifiersData[n]=(t={},t[D]=k,t.centerOffset=k-N,t)}}function oi(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ls(t.elements.popper,o)&&(t.elements.arrow=o))}const ai={name:"arrow",enabled:!0,phase:"main",fn:si,effect:oi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Je(e){return e.split("-")[1]}var ii={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ci(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Qe(r*o)/o||0,y:Qe(n*o)/o||0}}function yn(e){var t,r=e.popper,n=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,d=e.position,l=e.gpuAcceleration,i=e.adaptive,h=e.roundOffsets,m=e.isFixed,f=c.x,v=f===void 0?0:f,w=c.y,y=w===void 0?0:w,x=typeof h=="function"?h({x:v,y}):{x:v,y};v=x.x,y=x.y;var j=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),S=be,E=xe,_=window;if(i){var N=ht(r),k="clientHeight",D="clientWidth";if(N===we(r)&&(N=Fe(r),Me(N).position!=="static"&&d==="absolute"&&(k="scrollHeight",D="scrollWidth")),N=N,o===xe||(o===be||o===Ne)&&s===dt){E=je;var M=m&&N===_&&_.visualViewport?_.visualViewport.height:N[k];y-=M-n.height,y*=l?1:-1}if(o===be||(o===xe||o===je)&&s===dt){S=Ne;var H=m&&N===_&&_.visualViewport?_.visualViewport.width:N[D];v-=H-n.width,v*=l?1:-1}}var P=Object.assign({position:d},i&&ii),V=h===!0?ci({x:v,y},we(r)):{x:v,y};if(v=V.x,y=V.y,l){var ee;return Object.assign({},P,(ee={},ee[E]=O?"0":"",ee[S]=j?"0":"",ee.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",ee))}return Object.assign({},P,(t={},t[E]=O?y+"px":"",t[S]=j?v+"px":"",t.transform="",t))}function li(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,c=s===void 0?!0:s,d=r.roundOffsets,l=d===void 0?!0:d,i={placement:Oe(t.placement),variation:Je(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yn(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yn(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ui={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:li,data:{}};var Ct={passive:!0};function di(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,s=o===void 0?!0:o,c=n.resize,d=c===void 0?!0:c,l=we(t.elements.popper),i=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&i.forEach(function(h){h.addEventListener("scroll",r.update,Ct)}),d&&l.addEventListener("resize",r.update,Ct),function(){s&&i.forEach(function(h){h.removeEventListener("scroll",r.update,Ct)}),d&&l.removeEventListener("resize",r.update,Ct)}}const fi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:di,data:{}};var pi={left:"right",right:"left",bottom:"top",top:"bottom"};function Tt(e){return e.replace(/left|right|bottom|top/g,function(t){return pi[t]})}var mi={start:"end",end:"start"};function _n(e){return e.replace(/start|end/g,function(t){return mi[t]})}function Tr(e){var t=we(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Sr(e){return Ze(Fe(e)).left+Tr(e).scrollLeft}function hi(e,t){var r=we(e),n=Fe(e),o=r.visualViewport,s=n.clientWidth,c=n.clientHeight,d=0,l=0;if(o){s=o.width,c=o.height;var i=cs();(i||!i&&t==="fixed")&&(d=o.offsetLeft,l=o.offsetTop)}return{width:s,height:c,x:d+Sr(e),y:l}}function vi(e){var t,r=Fe(e),n=Tr(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=We(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=We(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-n.scrollLeft+Sr(e),l=-n.scrollTop;return Me(o||r).direction==="rtl"&&(d+=We(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:d,y:l}}function Or(e){var t=Me(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ps(e){return["html","body","#document"].indexOf(Re(e))>=0?e.ownerDocument.body:Ee(e)&&Or(e)?e:ps(Bt(e))}function ut(e,t){var r;t===void 0&&(t=[]);var n=ps(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),s=we(n),c=o?[s].concat(s.visualViewport||[],Or(n)?n:[]):n,d=t.concat(c);return o?d:d.concat(ut(Bt(c)))}function fr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gi(e,t){var r=Ze(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function xn(e,t,r){return t===as?fr(hi(e,r)):ze(t)?gi(t,r):fr(vi(Fe(e)))}function yi(e){var t=ut(Bt(e)),r=["absolute","fixed"].indexOf(Me(e).position)>=0,n=r&&Ee(e)?ht(e):e;return ze(n)?t.filter(function(o){return ze(o)&&ls(o,n)&&Re(o)!=="body"}):[]}function _i(e,t,r,n){var o=t==="clippingParents"?yi(e):[].concat(t),s=[].concat(o,[r]),c=s[0],d=s.reduce(function(l,i){var h=xn(e,i,n);return l.top=We(h.top,l.top),l.right=kt(h.right,l.right),l.bottom=kt(h.bottom,l.bottom),l.left=We(h.left,l.left),l},xn(e,c,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function ms(e){var t=e.reference,r=e.element,n=e.placement,o=n?Oe(n):null,s=n?Je(n):null,c=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,l;switch(o){case xe:l={x:c,y:t.y-r.height};break;case je:l={x:c,y:t.y+t.height};break;case Ne:l={x:t.x+t.width,y:d};break;case be:l={x:t.x-r.width,y:d};break;default:l={x:t.x,y:t.y}}var i=o?Cr(o):null;if(i!=null){var h=i==="y"?"height":"width";switch(s){case Xe:l[i]=l[i]-(t[h]/2-r[h]/2);break;case dt:l[i]=l[i]+(t[h]/2-r[h]/2);break}}return l}function ft(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,s=r.strategy,c=s===void 0?e.strategy:s,d=r.boundary,l=d===void 0?Ba:d,i=r.rootBoundary,h=i===void 0?as:i,m=r.elementContext,f=m===void 0?at:m,v=r.altBoundary,w=v===void 0?!1:v,y=r.padding,x=y===void 0?0:y,j=ds(typeof x!="number"?x:fs(x,mt)),O=f===at?qa:at,S=e.rects.popper,E=e.elements[w?O:f],_=_i(ze(E)?E:E.contextElement||Fe(e.elements.popper),l,h,c),N=Ze(e.elements.reference),k=ms({reference:N,element:S,placement:o}),D=fr(Object.assign({},S,k)),M=f===at?D:N,H={top:_.top-M.top+j.top,bottom:M.bottom-_.bottom+j.bottom,left:_.left-M.left+j.left,right:M.right-_.right+j.right},P=e.modifiersData.offset;if(f===at&&P){var V=P[o];Object.keys(H).forEach(function(ee){var J=[Ne,je].indexOf(ee)>=0?1:-1,X=[xe,je].indexOf(ee)>=0?"y":"x";H[ee]+=V[X]*J})}return H}function xi(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,s=r.rootBoundary,c=r.padding,d=r.flipVariations,l=r.allowedAutoPlacements,i=l===void 0?is:l,h=Je(n),m=h?d?vn:vn.filter(function(w){return Je(w)===h}):mt,f=m.filter(function(w){return i.indexOf(w)>=0});f.length===0&&(f=m);var v=f.reduce(function(w,y){return w[y]=ft(e,{placement:y,boundary:o,rootBoundary:s,padding:c})[Oe(y)],w},{});return Object.keys(v).sort(function(w,y){return v[w]-v[y]})}function bi(e){if(Oe(e)===Er)return[];var t=Tt(e);return[_n(e),t,_n(t)]}function wi(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,c=r.altAxis,d=c===void 0?!0:c,l=r.fallbackPlacements,i=r.padding,h=r.boundary,m=r.rootBoundary,f=r.altBoundary,v=r.flipVariations,w=v===void 0?!0:v,y=r.allowedAutoPlacements,x=t.options.placement,j=Oe(x),O=j===x,S=l||(O||!w?[Tt(x)]:bi(x)),E=[x].concat(S).reduce(function(A,q){return A.concat(Oe(q)===Er?xi(t,{placement:q,boundary:h,rootBoundary:m,padding:i,flipVariations:w,allowedAutoPlacements:y}):q)},[]),_=t.rects.reference,N=t.rects.popper,k=new Map,D=!0,M=E[0],H=0;H<E.length;H++){var P=E[H],V=Oe(P),ee=Je(P)===Xe,J=[xe,je].indexOf(V)>=0,X=J?"width":"height",Y=ft(t,{placement:P,boundary:h,rootBoundary:m,altBoundary:f,padding:i}),te=J?ee?Ne:be:ee?je:xe;_[X]>N[X]&&(te=Tt(te));var ce=Tt(te),le=[];if(s&&le.push(Y[V]<=0),d&&le.push(Y[te]<=0,Y[ce]<=0),le.every(function(A){return A})){M=P,D=!1;break}k.set(P,le)}if(D)for(var u=w?3:1,g=function(q){var I=E.find(function(K){var L=k.get(K);if(L)return L.slice(0,q).every(function(G){return G})});if(I)return M=I,"break"},$=u;$>0;$--){var T=g($);if(T==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const $i={name:"flip",enabled:!0,phase:"main",fn:wi,requiresIfExists:["offset"],data:{_skip:!1}};function bn(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function wn(e){return[xe,Ne,je,be].some(function(t){return e[t]>=0})}function Ei(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=ft(t,{elementContext:"reference"}),d=ft(t,{altBoundary:!0}),l=bn(c,n),i=bn(d,o,s),h=wn(l),m=wn(i);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:i,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const ji={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ei};function Ni(e,t,r){var n=Oe(e),o=[be,xe].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=s[0],d=s[1];return c=c||0,d=(d||0)*o,[be,Ne].indexOf(n)>=0?{x:d,y:c}:{x:c,y:d}}function Ci(e){var t=e.state,r=e.options,n=e.name,o=r.offset,s=o===void 0?[0,0]:o,c=is.reduce(function(h,m){return h[m]=Ni(m,t.rects,s),h},{}),d=c[t.placement],l=d.x,i=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=i),t.modifiersData[n]=c}const Ti={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ci};function Si(e){var t=e.state,r=e.name;t.modifiersData[r]=ms({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Oi={name:"popperOffsets",enabled:!0,phase:"read",fn:Si,data:{}};function Ri(e){return e==="x"?"y":"x"}function ki(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=o===void 0?!0:o,c=r.altAxis,d=c===void 0?!1:c,l=r.boundary,i=r.rootBoundary,h=r.altBoundary,m=r.padding,f=r.tether,v=f===void 0?!0:f,w=r.tetherOffset,y=w===void 0?0:w,x=ft(t,{boundary:l,rootBoundary:i,padding:m,altBoundary:h}),j=Oe(t.placement),O=Je(t.placement),S=!O,E=Cr(j),_=Ri(E),N=t.modifiersData.popperOffsets,k=t.rects.reference,D=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,H=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(N){if(s){var ee,J=E==="y"?xe:be,X=E==="y"?je:Ne,Y=E==="y"?"height":"width",te=N[E],ce=te+x[J],le=te-x[X],u=v?-D[Y]/2:0,g=O===Xe?k[Y]:D[Y],$=O===Xe?-D[Y]:-k[Y],T=t.elements.arrow,A=v&&T?Nr(T):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:us(),I=q[J],K=q[X],L=lt(0,k[Y],A[Y]),G=S?k[Y]/2-u-L-I-H.mainAxis:g-L-I-H.mainAxis,re=S?-k[Y]/2+u+L+K+H.mainAxis:$+L+K+H.mainAxis,pe=t.elements.arrow&&ht(t.elements.arrow),W=pe?E==="y"?pe.clientTop||0:pe.clientLeft||0:0,ve=(ee=P?.[E])!=null?ee:0,Pe=te+G-ve-W,Ie=te+re-ve,_e=lt(v?kt(ce,Pe):ce,te,v?We(le,Ie):le);N[E]=_e,V[E]=_e-te}if(d){var He,vt=E==="x"?xe:be,zt=E==="x"?je:Ne,ne=N[_],Ae=_==="y"?"height":"width",et=ne+x[vt],tt=ne-x[zt],Ye=[xe,be].indexOf(j)!==-1,rt=(He=P?.[_])!=null?He:0,gt=Ye?et:ne-k[Ae]-D[Ae]-rt+H.altAxis,yt=Ye?ne+k[Ae]+D[Ae]-rt-H.altAxis:tt,nt=v&&Ye?ri(gt,ne,yt):lt(v?gt:et,ne,v?yt:tt);N[_]=nt,V[_]=nt-ne}t.modifiersData[n]=V}}const Pi={name:"preventOverflow",enabled:!0,phase:"main",fn:ki,requiresIfExists:["offset"]};function Ai(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Di(e){return e===we(e)||!Ee(e)?Tr(e):Ai(e)}function Mi(e){var t=e.getBoundingClientRect(),r=Qe(t.width)/e.offsetWidth||1,n=Qe(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Ii(e,t,r){r===void 0&&(r=!1);var n=Ee(t),o=Ee(t)&&Mi(t),s=Fe(t),c=Ze(e,o,r),d={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Re(t)!=="body"||Or(s))&&(d=Di(t)),Ee(t)?(l=Ze(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Sr(s))),{x:c.left+d.scrollLeft-l.x,y:c.top+d.scrollTop-l.y,width:c.width,height:c.height}}function Li(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(d){if(!r.has(d)){var l=t.get(d);l&&o(l)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),n}function Bi(e){var t=Li(e);return Xa.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function qi(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Fi(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var $n={placement:"bottom",modifiers:[],strategy:"absolute"};function En(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Hi(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?$n:o;return function(d,l,i){i===void 0&&(i=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},$n,s),modifiersData:{},elements:{reference:d,popper:l},attributes:{},styles:{}},m=[],f=!1,v={state:h,setOptions:function(j){var O=typeof j=="function"?j(h.options):j;y(),h.options=Object.assign({},s,h.options,O),h.scrollParents={reference:ze(d)?ut(d):d.contextElement?ut(d.contextElement):[],popper:ut(l)};var S=Bi(Fi([].concat(n,h.options.modifiers)));return h.orderedModifiers=S.filter(function(E){return E.enabled}),w(),v.update()},forceUpdate:function(){if(!f){var j=h.elements,O=j.reference,S=j.popper;if(En(O,S)){h.rects={reference:Ii(O,ht(S),h.options.strategy==="fixed"),popper:Nr(S)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(H){return h.modifiersData[H.name]=Object.assign({},H.data)});for(var E=0;E<h.orderedModifiers.length;E++){if(h.reset===!0){h.reset=!1,E=-1;continue}var _=h.orderedModifiers[E],N=_.fn,k=_.options,D=k===void 0?{}:k,M=_.name;typeof N=="function"&&(h=N({state:h,options:D,name:M,instance:v})||h)}}}},update:qi(function(){return new Promise(function(x){v.forceUpdate(),x(h)})}),destroy:function(){y(),f=!0}};if(!En(d,l))return v;v.setOptions(i).then(function(x){!f&&i.onFirstUpdate&&i.onFirstUpdate(x)});function w(){h.orderedModifiers.forEach(function(x){var j=x.name,O=x.options,S=O===void 0?{}:O,E=x.effect;if(typeof E=="function"){var _=E({state:h,name:j,instance:v,options:S}),N=function(){};m.push(_||N)}})}function y(){m.forEach(function(x){return x()}),m=[]}return v}}var Wi=[fi,Oi,ui,Ja,Ti,$i,Pi,ai,ji],zi=Hi({defaultModifiers:Wi}),rr,jn;function Ui(){if(jn)return rr;jn=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(s,c){if(s===c)return!0;if(s&&c&&typeof s=="object"&&typeof c=="object"){if(s.constructor!==c.constructor)return!1;var d,l,i;if(Array.isArray(s)){if(d=s.length,d!=c.length)return!1;for(l=d;l--!==0;)if(!o(s[l],c[l]))return!1;return!0}var h;if(t&&s instanceof Map&&c instanceof Map){if(s.size!==c.size)return!1;for(h=s.entries();!(l=h.next()).done;)if(!c.has(l.value[0]))return!1;for(h=s.entries();!(l=h.next()).done;)if(!o(l.value[1],c.get(l.value[0])))return!1;return!0}if(r&&s instanceof Set&&c instanceof Set){if(s.size!==c.size)return!1;for(h=s.entries();!(l=h.next()).done;)if(!c.has(l.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(c)){if(d=s.length,d!=c.length)return!1;for(l=d;l--!==0;)if(s[l]!==c[l])return!1;return!0}if(s.constructor===RegExp)return s.source===c.source&&s.flags===c.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof c.valueOf=="function")return s.valueOf()===c.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof c.toString=="function")return s.toString()===c.toString();if(i=Object.keys(s),d=i.length,d!==Object.keys(c).length)return!1;for(l=d;l--!==0;)if(!Object.prototype.hasOwnProperty.call(c,i[l]))return!1;if(e&&s instanceof Element)return!1;for(l=d;l--!==0;)if(!((i[l]==="_owner"||i[l]==="__v"||i[l]==="__o")&&s.$$typeof)&&!o(s[i[l]],c[i[l]]))return!1;return!0}return s!==s&&c!==c}return rr=function(c,d){try{return o(c,d)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},rr}var Yi=Ui();const Vi=Dt(Yi);var Gi=[],Ki=function(t,r,n){n===void 0&&(n={});var o=F.useRef(null),s={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Gi},c=F.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=c[0],l=c[1],i=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var w=v.state,y=Object.keys(w.elements);ss.flushSync(function(){l({styles:mn(y.map(function(x){return[x,w.styles[x]||{}]})),attributes:mn(y.map(function(x){return[x,w.attributes[x]]}))})})},requires:["computeStyles"]}},[]),h=F.useMemo(function(){var f={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[i,{name:"applyStyles",enabled:!1}])};return Vi(o.current,f)?o.current||f:(o.current=f,f)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,i]),m=F.useRef();return hn(function(){m.current&&m.current.setOptions(h)},[h]),hn(function(){if(!(t==null||r==null)){var f=n.createPopper||zi,v=f(t,r,h);return m.current=v,function(){v.destroy(),m.current=null}}},[t,r,n.createPopper]),{state:m.current?m.current.state:null,styles:d.styles,attributes:d.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}};function hs(e){var t=F.useRef(e);return t.current=e,F.useCallback(function(){return t.current},[])}var Xi=function(){};function Qi(e){var t=e.initial,r=e.value,n=e.onChange,o=n===void 0?Xi:n;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var s=F.useState(t),c=s[0],d=s[1],l=hs(c),i=F.useCallback(function(m){var f=l(),v=typeof m=="function"?m(f):m;typeof v.persist=="function"&&v.persist(),d(v),typeof o=="function"&&o(v)},[l,o]),h=r!==void 0;return[h?r:c,h?o:i]}function vs(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var Zi=["styles","attributes"],Nn={getBoundingClientRect:vs()},Cn={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function Ji(e,t){var r,n,o;e===void 0&&(e={}),t===void 0&&(t={});var s=Object.keys(Cn).reduce(function(X,Y){var te;return De({},X,(te={},te[Y]=X[Y]!==void 0?X[Y]:Cn[Y],te))},e),c=F.useMemo(function(){return[{name:"offset",options:{offset:s.offset}}]},Array.isArray(s.offset)?s.offset:[]),d=De({},t,{placement:t.placement||s.placement,modifiers:t.modifiers||c}),l=F.useState(null),i=l[0],h=l[1],m=F.useState(null),f=m[0],v=m[1],w=Qi({initial:s.defaultVisible,value:s.visible,onChange:s.onVisibleChange}),y=w[0],x=w[1],j=F.useRef();F.useEffect(function(){return function(){return clearTimeout(j.current)}},[]);var O=Ki(s.followCursor?Nn:i,f,d),S=O.styles,E=O.attributes,_=La(O,Zi),N=_.update,k=hs({visible:y,triggerRef:i,tooltipRef:f,finalConfig:s}),D=F.useCallback(function(X){return Array.isArray(s.trigger)?s.trigger.includes(X):s.trigger===X},Array.isArray(s.trigger)?s.trigger:[s.trigger]),M=F.useCallback(function(){clearTimeout(j.current),j.current=window.setTimeout(function(){return x(!1)},s.delayHide)},[s.delayHide,x]),H=F.useCallback(function(){clearTimeout(j.current),j.current=window.setTimeout(function(){return x(!0)},s.delayShow)},[s.delayShow,x]),P=F.useCallback(function(){k().visible?M():H()},[k,M,H]);F.useEffect(function(){if(k().finalConfig.closeOnOutsideClick){var X=function(te){var ce,le=k(),u=le.tooltipRef,g=le.triggerRef,$=(te.composedPath==null||(ce=te.composedPath())==null?void 0:ce[0])||te.target;$ instanceof Node&&u!=null&&g!=null&&!u.contains($)&&!g.contains($)&&M()};return document.addEventListener("mousedown",X),function(){return document.removeEventListener("mousedown",X)}}},[k,M]),F.useEffect(function(){if(!(i==null||!D("click")))return i.addEventListener("click",P),function(){return i.removeEventListener("click",P)}},[i,D,P]),F.useEffect(function(){if(!(i==null||!D("double-click")))return i.addEventListener("dblclick",P),function(){return i.removeEventListener("dblclick",P)}},[i,D,P]),F.useEffect(function(){if(!(i==null||!D("right-click"))){var X=function(te){te.preventDefault(),P()};return i.addEventListener("contextmenu",X),function(){return i.removeEventListener("contextmenu",X)}}},[i,D,P]),F.useEffect(function(){if(!(i==null||!D("focus")))return i.addEventListener("focus",H),i.addEventListener("blur",M),function(){i.removeEventListener("focus",H),i.removeEventListener("blur",M)}},[i,D,H,M]),F.useEffect(function(){if(!(i==null||!D("hover")))return i.addEventListener("mouseenter",H),i.addEventListener("mouseleave",M),function(){i.removeEventListener("mouseenter",H),i.removeEventListener("mouseleave",M)}},[i,D,H,M]),F.useEffect(function(){if(!(f==null||!D("hover")||!k().finalConfig.interactive))return f.addEventListener("mouseenter",H),f.addEventListener("mouseleave",M),function(){f.removeEventListener("mouseenter",H),f.removeEventListener("mouseleave",M)}},[f,D,H,M,k]);var V=_==null||(r=_.state)==null||(n=r.modifiersData)==null||(o=n.hide)==null?void 0:o.isReferenceHidden;F.useEffect(function(){s.closeOnTriggerHidden&&V&&M()},[s.closeOnTriggerHidden,M,V]),F.useEffect(function(){if(!s.followCursor||i==null)return;function X(Y){var te=Y.clientX,ce=Y.clientY;Nn.getBoundingClientRect=vs(te,ce),N?.()}return i.addEventListener("mousemove",X),function(){return i.removeEventListener("mousemove",X)}},[s.followCursor,i,N]),F.useEffect(function(){if(!(f==null||N==null||s.mutationObserverOptions==null)){var X=new MutationObserver(N);return X.observe(f,s.mutationObserverOptions),function(){return X.disconnect()}}},[s.mutationObserverOptions,f,N]);var ee=function(Y){return Y===void 0&&(Y={}),De({},Y,{style:De({},Y.style,S.popper)},E.popper,{"data-popper-interactive":s.interactive})},J=function(Y){return Y===void 0&&(Y={}),De({},Y,E.arrow,{style:De({},Y.style,S.arrow),"data-popper-arrow":!0})};return De({getArrowProps:J,getTooltipProps:ee,setTooltipRef:v,setTriggerRef:h,tooltipRef:f,triggerRef:i,visible:y},_)}const ec={duration:100,animation:"fade",theme:"light",arrow:!0},tc={duration:100,animation:"fade",theme:"dark",arrow:!0},Rr=({className:e,dark:t,noPadding:r,children:n,content:o,trigger:s="hover",placement:c="top",createRefWrapper:d,closeOnOutsideClick:l,closeOnTriggerHidden:i,defaultVisible:h,delayHide:m,delayShow:f,followCursor:v,interactive:w,mutationObserverOptions:y,offset:x,onVisibleChange:j,usePortal:O})=>{const{prefix:S}=R(),[E,_]=F.useState(!1),N=C(e,{[`${S}--tooltip`]:!0,[`${S}--tooltip--disable-padding`]:r,[`${S}--tooltip--visible`]:E,[`${S}--tooltip--${s}`]:s,[`${S}--tooltip--dark`]:t}),{getArrowProps:k,getTooltipProps:D,setTooltipRef:M,setTriggerRef:H,visible:P}=Ji({closeOnOutsideClick:l,closeOnTriggerHidden:i,defaultVisible:h,delayHide:m,delayShow:f,followCursor:v,interactive:w,mutationObserverOptions:y,offset:x,onVisibleChange:j,placement:c,trigger:s}),V=C({[`${S}--tooltip--trigger`]:!0}),ee=C(e,{[`${S}--tooltip--trigger`]:!0}),J=!d&&typeof n!="string"?F.cloneElement(n,{ref:H,className:V}):a.jsx("span",{ref:H,className:ee,children:n}),X=te=>{_(te),j&&j(te)},Y=a.jsxs("div",{ref:M,...D({className:N}),children:[typeof o=="function"?o({setVisibility:_,visibilityChange:X}):o,a.jsx("div",{...k({className:`${S}--tooltip__arrow`})})]});return a.jsxs(a.Fragment,{children:[J,P&&O&&a.jsx(rc,{children:Y}),P&&!O&&Y]})};function rc({children:e}){return os.createPortal(e,document.body)}const nc=({children:e,className:t,content:r})=>{const{prefix:n}=R(),o=C({[`${n}--context-menu`]:!0},t);return a.jsx(Rr,{className:o,content:r,noPadding:!0,trigger:"click",children:e})},sc=({className:e,...t})=>{const{prefix:r}=R(),n=C({[`${r}--context-menu__group`]:!0},e);return a.jsx("div",{className:n,...t})},oc=({className:e,...t})=>{const{prefix:r}=R(),n=C({[`${r}--context-menu__item`]:!0},e);return a.jsx("div",{className:n,...t})},gs=({className:e,children:t,labelOne:r,linkTextOne:n,linkHrefOne:o,labelTwo:s,linkTextTwo:c,linkHrefTwo:d,logo:l,metaContent:i,metaLinks:h,secondary:m,pageWidth:f="lg"})=>{const{prefix:v}=R(),w=C(`${v}--footer`,e);return a.jsxs("footer",{className:w,children:[a.jsx(Be,{pageWidth:f,children:a.jsxs("div",{className:`${v}--footer__content`,children:[t?a.jsx("div",{className:`${v}--footer__info`,children:t}):a.jsxs("div",{className:`${v}--footer__info`,children:[a.jsxs("div",{className:`${v}--footer__info__item`,children:[a.jsx("p",{className:`${v}--footer__label`,children:r}),a.jsx("ul",{className:`${v}--footer__list`,children:a.jsx("li",{children:a.jsx(he,{href:o,children:n})})})]}),a.jsxs("div",{className:`${v}--footer__info__item`,children:[a.jsx("p",{className:`${v}--footer__label`,children:s}),a.jsx("ul",{className:`${v}--footer__list`,children:a.jsx("li",{children:a.jsx(he,{href:d,children:c})})})]})]}),a.jsxs("div",{className:`${v}--footer__cta`,children:[l,m&&a.jsx("div",{className:`${v}--footer__secondary`,children:m})]})]})}),a.jsxs(Be,{className:`${v}--footer__meta`,pageWidth:f,children:[h&&a.jsx("div",{className:`${v}--footer__meta__links`,children:h}),i&&a.jsx("div",{className:`${v}--footer__meta__content`,children:i})]})]})};gs.displayName="Footer";const ys=({className:e,children:t,longForm:r=!0,...n})=>{const{prefix:o}=R(),s=C(`${o}--form`,{[`${o}--form-long`]:r===!0},e);return a.jsx("form",{className:s,...n,children:t})};ys.displayName="Form";const ac=({align:e,breakpoint:t,legendText:r,inline:n,children:o,className:s,inputSpacing:c,message:d,messageText:l})=>{const{prefix:i}=R(),h=C(`${i}--form-group__title`,s),m=C(`${i}--fieldset`,{[`${i}--fieldset__inline`]:n,[`${i}--fieldset__align-${e}`]:e,[`${i}--fieldset__breakpoint-${t}`]:t,[`${i}--fieldset__input-spacing-${c}`]:c},s);return a.jsxs("div",{className:m,children:[a.jsx("legend",{className:h,children:r}),a.jsx("div",{className:`${i}--fieldset__content`,children:o}),d?a.jsx("div",{className:`${i}--form__requirements`,children:l}):null]})},ic=({className:e,children:t,description:r})=>{const{prefix:n}=R(),o=C(`${n}--form-hint`,e);return a.jsx(Rr,{content:t,children:a.jsx("div",{className:o,children:a.jsx(Go,{width:"15",height:"15",description:r})})})},cc=({className:e,children:t,id:r,...n})=>{const{prefix:o}=R(),s=C(`${o}--label`,e);return a.jsx("label",{htmlFor:r,className:s,...n,children:t})},_s=({children:e,className:t,id:r,pageWidth:n})=>{const{prefix:o}=R(),s=C(`${o}--info-bar`,t);return a.jsx("div",{id:r,className:s,children:a.jsx(Be,{pageWidth:n,children:e})})};_s.displayName="InfoBar";const kr=e=>{const{active:t=!0,className:r,withOverlay:n=!0,small:o=!1,...s}=e,{prefix:c}=R(),d=C(`${c}--loading`,r,{[`${c}--loading--small`]:o,[`${c}--loading--stop`]:!t}),l=C(`${c}--loading-overlay`,{[`${c}--loading-overlay--stop`]:!t}),i=a.jsx("div",{...s,"aria-live":t?"assertive":"off",className:d,children:a.jsxs("svg",{className:`${c}--loading__svg`,viewBox:"-75 -75 150 150",children:[a.jsx("title",{children:"Loading"}),null,a.jsx("circle",{className:void 0,cx:"0",cy:"0",r:"37.5"})]})});return n?a.jsx("div",{className:l,children:i}):i};kr.displayName="Loading";const xs=e=>{const{className:t,success:r,description:n,onSuccess:o,successDelay:s,...c}=e,{prefix:d}=R(),l=C(`${d}--inline-loading`,t),i=()=>r?(setTimeout(()=>{o&&o()},s),a.jsx("svg",{className:`${d}--inline-loading__checkmark-container ${d}--inline-loading__svg`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",children:a.jsx("polyline",{className:`${d}--inline-loading__checkmark`,points:"0.74 3.4 3.67 6.34 9.24 0.74"})})):a.jsx(kr,{small:!0,withOverlay:!1}),h=a.jsx("p",{className:`${d}--inline-loading__text`,children:n});return a.jsxs("div",{className:l,...c,children:[a.jsx("div",{className:`${d}--inline-loading__animation`,children:i()}),n&&h]})};xs.displayName="InlineLoading";const qt=F.forwardRef(({children:e,className:t,colon:r,kind:n,small:o,...s},c)=>{const{prefix:d}=R(),l=C(`${d}--list`,t,{[`${d}--list--${n}`]:n,[`${d}--list--small`]:o,[`${d}--list--colon`]:r}),i={...s};return a.jsx("ul",{className:l,...i,ref:c,children:e})});qt.displayName="List";const bs=({children:e,className:t,title:r,kind:n,icon:o,...s})=>{const c=C("wfp--list__element",t,{"wfp--list-item--checkmark":n==="checkmark","wfp--list-item--cross":n==="cross"});return a.jsxs("li",{className:c,...s,children:[n==="cross"&&a.jsx(Bo,{className:"wfp--list-item__icon"}),n==="checkmark"&&a.jsx(Co,{className:"wfp--list-item__icon"}),o&&a.jsx("span",{className:"wfp--list__element__icon",children:o}),r&&a.jsx("span",{className:"wfp--list__element__title",children:r}),a.jsx("span",{className:"wfp--list__element__content",children:e})]})},Pr=z.createContext({onChangeSub:e=>e,activeMenuItem:null,openMobileMenu:!1,toggleMenu:()=>{},setOpenMobileMenu:()=>{}}),lc=({toggleMenu:e,prefix:t})=>a.jsx(qe,{className:`${t}--main-navigation__button`,onClick:e,children:"Menu"}),ws=({children:e,components:t={},className:r,id:n,logo:o,line:s=!1,logoRibbon:c="default",mobilePageWidth:d,pageWidth:l})=>{const{prefix:i}=R(),[h,m]=z.useState(!1),[f,v]=z.useState(null),w=(_,N,k)=>{if(k&&k.preventDefault(),_==="close")v(null);else if(_==="toggle"){const D=f===null||f!==N?N:null;D!==void 0&&v(D)}},y=()=>{m(!h)},x=C(`${i}--main-navigation`,{[`${i}--main-navigation--line`]:s},r),j=C(`${i}--main-navigation__list`,{[`${i}--main-navigation__list--open`]:h}),O={Wrapper:Be,MobileButton:lc,...t},S=O.Wrapper,E=O.MobileButton;return a.jsx("nav",{id:n,className:x,children:a.jsx(Pr.Provider,{value:{activeMenuItem:f,openMobileMenu:h,toggleMenu:y,onChangeSub:w,setOpenMobileMenu:m},children:a.jsxs(S,{pageWidth:l,mobilePageWidth:d,className:`${i}--main-navigation__wrapper`,children:[a.jsxs("div",{className:`${i}--main-navigation__logo-wrapper`,children:[a.jsx(E,{toggleMenu:y,prefix:i,openMobileMenu:h,children:"Menu"}),a.jsx("div",{className:`${i}--main-navigation__logo`,children:o})]}),a.jsx("ul",{className:j,children:e})]})})})};ws.displayName="MainNavigation";function Ar(){return z.useContext(Pr)}Ar.displayName="useMainNavigation";const uc=({className:e,children:t,kind:r,subNavigation:n,subNavWideAsContent:o})=>{const{prefix:s}=R(),{onChangeSub:c,activeMenuItem:d}=Ar(),[l]=z.useState(Math.random().toString(36)),i=z.useRef(null);z.useEffect(()=>(l===d?document.addEventListener("mousedown",h):document.removeEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}),[d]);const h=y=>{i?.current&&!i.current.contains(y.target)&&c("close")},m=C(e,{[`${s}--main-navigation__item`]:!0,[`${s}--main-navigation__item--open`]:l===d,[`${s}--content-width`]:n&&o}),f=C({[`${s}--main-navigation__trigger`]:!0,[`${s}--main-navigation__trigger--has-sub`]:n,[`${s}--main-navigation__trigger--open`]:l===d}),v=l===d?Lt:hr,w=C({[`${s}--main-navigation__sub`]:!0,[`${s}--main-navigation__sub--${r}`]:r,[`${s}--main-navigation__sub--open`]:l===d});return a.jsxs("li",{className:m,ref:i,children:[a.jsxs("div",{className:f,onClick:()=>c("toggle",l),children:[t,n&&a.jsx(v,{className:`${s}--main-navigation__trigger__icon`,description:l===d?"close icon":"expand icon"})]}),n&&a.jsx("div",{className:w,children:n})]})},dc=({children:e,...t})=>a.jsx("div",{...t,children:e}),fc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__item`,t);return a.jsx("div",{className:o,...r,children:e})},pc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__header`,t);return a.jsx("div",{className:o,...r,children:e})},mc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__title`,t);return a.jsx("div",{className:o,...r,children:e})},hc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__link`,t);return a.jsx("div",{className:o,...r,children:e})},vc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__filter`,t);return a.jsx("div",{className:o,...r,children:e})},gc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__content`,t);return a.jsx("div",{className:o,...r,children:e})},yc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__list`,t);return a.jsx("div",{className:o,...r,children:e})},_c=({children:e,columns:t,className:r,title:n,...o})=>{const{prefix:s}=R(),c=C(`${s}--sub-navigation__group`,{className:r},{[`${s}--sub-navigation__group--columns`]:t,[`${s}--sub-navigation__group--columns--${t}`]:t});return a.jsxs("div",{className:c,...o,children:[n&&a.jsx("h3",{className:`${s}--sub-navigation__group__title`,children:n}),a.jsx("div",{children:e})]})},$s=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C({[`${n}--story`]:!0,[`${t}`]:t});return a.jsx("div",{className:o,...r,children:e})},Es=({ariaLabel:e="close notification",className:t,iconDescription:r="close icon",type:n="button",renderIcon:o=Lt,name:s,notificationType:c="toast",...d})=>{const{prefix:l}=R(),i=C(t,{[`${l}--${c}-notification__close-button`]:c}),h=C({[`${l}--${c}-notification__close-icon`]:c});return a.jsx("button",{...d,type:n,"aria-label":r,title:r,className:i,children:o&&a.jsx(o,{"aria-label":e,className:h,name:s})})},xc=({children:e,className:t,onClick:r,...n})=>{const{prefix:o}=R(),s=C(t,`${o}--inline-notification__action-button`);return a.jsx(qe,{className:s,kind:"ghost",onClick:r,small:!0,...n,children:e})},Dr=({title:e,subtitle:t,caption:r,notificationType:n="toast",children:o,...s})=>{const{prefix:c}=R();return n==="toast"?a.jsxs("div",{...s,className:`${c}--toast-notification__details`,children:[e&&a.jsx("h3",{className:`${c}--toast-notification__title`,children:e}),a.jsx("div",{className:`${c}--toast-notification__subtitle`,children:t}),a.jsx("div",{className:`${c}--toast-notification__caption`,children:r}),o]}):a.jsxs("div",{...s,className:`${c}--inline-notification__text-wrapper`,children:[e&&a.jsx("p",{className:`${c}--inline-notification__title`,children:e}),a.jsx("div",{className:`${c}--inline-notification__subtitle`,children:o||t})]})},bc={error:In,success:Ro,warning:Ln,info:Yo},js=({iconDescription:e,kind:t="info",notificationType:r="toast"})=>{const{prefix:n}=R(),o=t?bc[t]:void 0;return o?a.jsx(o,{className:`${n}--${r}-notification__icon`,children:a.jsx("title",{children:e})}):null},wc=({role:e="alert",notificationType:t="toast",onClose:r=()=>{},onCloseButtonClick:n=()=>{},iconDescription:o="closes notification",statusIconDescription:s,className:c,subtitle:d,title:l="provide a title",kind:i="error",lowContrast:h=!0,hideCloseButton:m=!1,children:f,timeout:v=0,...w})=>{const{prefix:y}=R(),[x,j]=F.useState(!0),O=C(c,{[`${y}--toast-notification`]:!0,[`${y}--toast-notification--low-contrast`]:h,[`${y}--toast-notification--${i}`]:i}),S=N=>{(!r||r(N)!==!1)&&j(!1)};function E(N){n(N),S(N)}const _=F.useRef(r);return F.useEffect(()=>{_.current=r}),F.useEffect(()=>{if(!v)return;const N=window.setTimeout(k=>{j(!1),_.current&&_.current(k)},v);return()=>{window.clearTimeout(N)}},[v]),x?a.jsxs("div",{...w,role:e,className:O,children:[a.jsx(js,{kind:i,iconDescription:s||`${i} icon`,notificationType:t}),a.jsx(Dr,{title:l,subtitle:d,notificationType:t,children:f}),!m&&a.jsx(Es,{iconDescription:o,notificationType:t,onClick:E})]}):null},pt=F.forwardRef((e,t)=>{const{actions:r,role:n="alert",notificationType:o="inline",icon:s,statusIconDescription:c,className:d,subtitle:l,title:i,kind:h="info",lowContrast:m=!0,hideCloseButton:f=!1,children:v,...w}=e,{prefix:y}=R(),x=C(d,{[`${y}--inline-notification`]:!0,[`${y}--block-notification`]:!0,[`${y}--inline-notification--low-contrast`]:m,[`${y}--inline-notification--${h}`]:h,[`${y}--inline-notification--hide-close-button`]:f});return a.jsx("div",{...w,ref:t,role:n,className:x,children:a.jsxs("div",{className:`${y}--inline-notification__details`,children:[s===void 0&&a.jsx(js,{notificationType:o,kind:h,iconDescription:c||`${h} icon`}),s&&a.jsx("div",{className:`${y}--${o}-notification__icon`,children:s}),a.jsx(Dr,{title:i,subtitle:l,notificationType:o,children:v}),r&&a.jsx("div",{className:`${y}--inline-notification__actions-wrapper`,children:r})]})})});pt.displayName="Callout";const Ns=({className:e,children:t,responsive:r,withBorder:n,...o})=>{const{prefix:s}=R(),c=C(`${s}--table`,{[`${s}--table--responsive`]:r,[`${s}--table--with-border`]:n},e);return a.jsx("table",{...o,className:c,children:t})},$c=({className:e,isSorted:t,isSortedDesc:r,sortType:n})=>{const o=C(e,"wfp--table--sorting",{"wfp--table--is-sorted":t,"wfp--table--is-sortable":n});return a.jsx("span",{className:o,children:t?r?a.jsx($o,{}):a.jsx(jo,{}):""})},Ec=Object.freeze(Object.defineProperty({__proto__:null,default:$c},Symbol.toStringTag,{value:"Module"})),Ue=F.forwardRef(({as:e,children:t,className:r,kind:n,spacingTop:o,spacingBottom:s,...c},d)=>{const{prefix:l}=R(),i="div",h=C(`${l}--text`,n&&`${l}--text__${n}`,o&&`${l}--text__spacing-top-${o}`,s&&`${l}--text__spacing-bottom-${s}`,r);return a.jsx(i,{ref:d,className:h,...c,children:t})});Ue.displayName="Text";const jc=e=>a.jsx($s,{...e}),Nc=e=>{const t=typeof e.children=="string"?e.children.substring(0,1):"";return t==="✓"||t==="✗"?a.jsx(bs,{kind:t==="✓"?"checkmark":"cross",...e,children:e.children.substring(1,e.children.length)}):a.jsx("li",{...e,children:e.children})},Cc=({children:e,...t})=>a.jsx(qt,{...t,kind:"bullets",children:e}),Tc=({children:e,...t})=>a.jsx(qt,{...t,kind:"ordered",children:e}),Sc=e=>a.jsx(Ue,{kind:"h1",...e,children:e.children}),Oc=e=>a.jsx(Ue,{kind:"h2",...e,children:e.children}),Rc=e=>a.jsx(Ue,{kind:"h3",...e,children:e.children}),kc=e=>a.jsx(Ue,{kind:"h4",...e,children:e.children}),Pc=e=>a.jsx(Ue,{kind:"h5",...e,children:e.children}),Ac=e=>a.jsx("p",{...e,children:e.children}),Dc=e=>a.jsx(Ns,{...e,children:e.children}),Mc=e=>a.jsx(he,{inline:!0,...e,children:e.children}),Ic=e=>{const t=R();return a.jsx("code",{className:`${t.prefix}--story__code`,...e,children:e.children})},Lc=e=>{const t=R();return a.jsx("pre",{className:`${t.prefix}--story__pre`,...e,children:e.children})},Bc=({children:e,...t})=>Array.isArray(e)&&e.length>=2&&e[0].props?a.jsx(pt,{kind:"info",...t,subtitle:e.map((r,n)=>{if(n>0)return r}),title:e[0].props.children}):a.jsx(pt,{kind:"info",...t,subtitle:e}),qc={wrapper:jc,h1:Sc,h2:Oc,h3:Rc,h4:kc,h5:Pc,p:Ac,li:Nc,a:Mc,ul:Cc,ol:Tc,code:Ic,pre:Lc,table:Dc,blockquote:Bc,Button:qe,Accordion:mr,AccordionItem:vr},Cs=({passiveModal:e,secondaryButtonText:t,onSecondaryButtonClick:r,primaryButtonText:n,onRequestSubmit:o,primaryButtonDisabled:s,secondaryButtonDisabled:c,danger:d,primaryButtonRef:l,secondaryButtonRef:i})=>{const{prefix:h}=R();return e?null:a.jsx("div",{className:`${h}--modal-footer`,children:a.jsxs("div",{className:`${h}--modal__buttons-container`,children:[t&&a.jsx(qe,{kind:"secondary",disabled:c,id:"secondaryButton",onClick:m=>{r&&r(m,"button")},ref:i,children:t}),a.jsx(qe,{kind:d?"danger":"primary",disabled:s,onClick:o,id:"primaryButton",ref:l,children:n})]})})},nr=typeof Element<"u"&&["matches","webkitMatchesSelector","msMatchesSelector"].filter(e=>typeof Element.prototype[e]=="function")[0];function Mr(e){const{modalHeading:t,modalLabel:r,className:n,components:o={},modalSecondaryAction:s,modalAriaLabel:c,passiveModal:d,children:l,elementToAppend:i,backgroundImage:h,open:m,lazyLoad:f,onRequestClose:v=()=>{},onSecondarySubmit:w,iconDescription:y,inPortal:x=!0,hideClose:j,handleBlur:O=()=>{},wide:S,type:E,selectorPrimaryFocus:_,primaryButtonRef:N,secondaryButtonRef:k,...D}=e,{prefix:M}=R(),H=z.useRef(null),P=z.useRef(null),V=z.useRef(null),ee=i||(typeof document<"u"?document.body:void 0),[J,X]=z.useState(!1),Y=G=>{const{selectorsFloatingMenus:re=[`.${M}--overflow-menu-options`,`.${M}--tooltip`,".flatpickr-calendar"]}=e;if(G&&typeof G.closest=="function")return re.some(pe=>G.closest(pe));for(;G;){if(nr&&typeof G[nr]=="function"&&re.some(pe=>G[nr](pe)))return!0;G=G.parentNode}return!1},te=G=>{v(G,"button")},ce=()=>{P.current&&P.current.focus()},le=G=>{O?O({evt:G,innerModal:V,open:m,elementOrParentIsFloatingMenu:Y,focusModal:ce}):V.current&&m&&G.relatedTarget&&!V.current.contains(G.relatedTarget)&&!Y(G.relatedTarget)&&ce()},u=G=>{if(_===!1)return;const re=G.querySelector(_);if(re){re.focus();return}H?.current&&H.current.focus()},g=G=>{P.current&&P.current.offsetWidth&&P.current.offsetHeight&&J&&(u(G.currentTarget),X(!1))};if(m===!1&&f)return null;const T={ModalFooter:Cs,...o}.ModalFooter,A=w||v,q=C({[`${M}--modal`]:!0,[`${M}--modal--wide`]:S,[`${M}--modal--tall`]:!d,[`${M}--modal--background-image`]:h,"is-visible":m,[`${M}--modal--warning`]:E==="warning"||e.warning,[`${M}--modal--danger`]:E==="danger"||e.danger},n),I=j?null:a.jsx("button",{className:`${M}--modal-close`,type:"button",id:"closeButton",onClick:te,ref:H,children:a.jsx(Lt,{className:`${M}--modal-close__icon`,description:y})}),K=a.jsxs("div",{ref:V,role:"dialog",className:`${M}--modal-container`,"aria-label":c,children:[a.jsxs("div",{className:`${M}--modal-header`,children:[d&&I,a.jsxs("div",{children:[r&&a.jsx("h4",{className:`${M}--modal-header__label`,children:r}),a.jsx("h2",{className:`${M}--modal-header__heading`,children:t})]}),s&&a.jsx(a.Fragment,{children:s}),!d&&I]}),a.jsx("div",{className:`${M}--modal-content`,children:l}),a.jsx(T,{...e,prefix:M,onSecondaryButtonClick:A,primaryButtonRef:N,secondaryButtonRef:k})]}),L=a.jsx("div",{...D,onBlur:le,className:q,style:h?{backgroundImage:`url(${h})`}:void 0,role:"presentation",tabIndex:-1,onTransitionEnd:m?g:void 0,ref:P,children:a.jsx("div",{className:`${M}--modal-inner`,children:K})});return x&&ee?os.createPortal(L,ee):L}Mr.displayName="Modal";const Ts=({children:e,customButton:t,id:r,onKeyDown:n,buttonTriggerText:o,buttonTriggerClassName:s,triggerButtonKind:c,disabled:d,handleSubmit:l=()=>{},shouldCloseAfterSubmit:i=!0,...h})=>{const{prefix:m}=R(),f=F.createRef(),[v,w]=F.useState(!1),y=()=>{w(!0)},x=()=>{w(!1),v||(f.current&&f.current.focus(),x&&x())},O={...h,open:v,onRequestClose:x,onRequestSubmit:()=>{l&&(l(x),i&&x())}},S=t?F.cloneElement(t,{disabled:d,onClick:y,inputref:f}):void 0;return a.jsxs("div",{role:"presentation",className:`${m}--modal__wrapper`,onKeyDown:E=>{E.which===27&&(x(),n&&n(E))},children:[t?a.jsx(F.Fragment,{children:S}):a.jsx(qe,{id:r,className:s,disabled:d,kind:c,onClick:y,ref:f,children:o}),a.jsx(Mr,{...O,children:e})]})};Ts.displayName="ModalWrapper";const Fc=({dark:e,light:t,children:r,className:n,margin:o,fullHeight:s,noMargin:c,withHover:d,...l})=>{const{prefix:i}=R(),h=C({[`${i}--module--dark`]:e,[`${i}--module--no-margin`]:c||o===void 0,[`${i}--module--full-height`]:s,[`${i}--module--margin-xs`]:o==="xs",[`${i}--module--margin-md`]:o==="md",[`${i}--module--margin-lg`]:o==="lg",[`${i}--module--light`]:t,[`${i}--module--with-hover`]:d},n,[`${i}--module`]);return a.jsx("div",{className:h,...l,children:a.jsx("div",{className:`${i}--module__inner`,children:r})})},Hc=({children:e,className:t,centered:r,noPadding:n,...o})=>{const s=C("wfp--module__content",t,{"wfp--module__content--centered":r,"wfp--module__content--no-padding":n});return a.jsx("div",{className:s,...o,children:e})},Wc=({filter:e,children:t,className:r,...n})=>{const o=C("wfp--module__header",r);return a.jsxs("div",{className:o,...n,children:[a.jsx("h1",{className:"wfp--module__title",children:t}),e&&a.jsx("div",{className:"wfp--module__filter",children:e})]})},zc=({children:e,className:t,...r})=>{const n=C("wfp--module__footer",t);return a.jsx("div",{className:n,...r,children:e})},Uc=e=>{const t=parseFloat(e);return Math.floor(t)===t?0:e.split(".")[1].length||0},Tn=(e,t)=>isNaN(e)||!e&&e!==0||isNaN(t)||!t&&t!==0?t:Math.max(e,t),Sn=(e,t)=>isNaN(e)||!e&&e!==0||isNaN(t)||!t&&t!==0?t:Math.min(e,t),Ss=F.forwardRef((e,t)=>{const{className:r,disabled:n,id:o,hideLabel:s,hideControls:c,max:d,min:l,step:i=1,onChange:h=()=>{},onClick:m=()=>{},helperText:f,light:v,pattern:w="[0-9]*"}=e,{prefix:y}=R(),x=Sn(d,Tn(l,e.value)),[j,O]=z.useState(x);z.useEffect(()=>{O(e.value)},[e.value]);const S=z.useRef(null),E=t||S,_=V=>{n||(V.persist(),V.imaginaryTarget=E,O(V.target.value),h(V,parseFloat(V.target.value)))},N=(V,ee)=>{let J=typeof j=="string"?Number(j):j;J=isNaN(J)?0:J;const X=ee==="down"?l!==void 0&&J>l||l===void 0:d!==void 0&&J<d||d===void 0,Y=i.toString();J=ee==="down"?J-i:J+parseFloat(Y),J=Sn(d,Tn(l,J)),J=parseFloat(J.toFixed(Uc(Y))),!n&&X&&(V.persist(),V.imaginaryTarget=E,V.target.value=parseFloat(J),m(V,ee),O(J),h(V,J,ee))},k=C(`${y}--number`,r,{[`${y}--number--light`]:v,[`${y}--number--helpertext`]:f,[`${y}--number--nolabel`]:s,[`${y}--number--nocontrols`]:c}),D={disabled:n,id:o,max:d,min:l,step:i,onChange:_,value:j},M=e,{inputProps:H,wrapperProps:P}=Te({...M,type:"number"});return a.jsx(Ce,{...P,inputWrapperClassName:k,children:a.jsxs("div",{className:`${y}--number__controls`,children:[a.jsx("button",{className:`${y}--number__control-btn up-icon`,type:"button",disabled:n,onClick:V=>N(V,"up"),children:"+"}),a.jsx("button",{className:`${y}--number__control-btn down-icon`,type:"button",disabled:n,onClick:V=>N(V,"down"),children:"−"}),a.jsx("input",{pattern:w,...H,...D,ref:t})]})})});Ss.displayName="NumberInput";const Pt=F.forwardRef((e,t)=>{const{className:r,inline:n,disabled:o,children:s,iconDescription:c,light:d,hideLabel:l}=e,{prefix:i}=R(),h=C({[`${i}--select-input`]:!0,[`${i}--select--inline`]:n,[`${i}--select--light`]:d,[`${i}--select--disabled`]:o},r),m=e,{inputProps:f,wrapperProps:v}=Te({...m,inputClassName:h});return a.jsxs(Ce,{...v,inputWrapperClassName:`${i}--select`,hideLabel:l,children:[a.jsx("select",{...f,ref:t,children:s}),a.jsx(hr,{className:`${i}--select__arrow`,description:c})]})});Pt.displayName="Select";function At({className:e,value:t,disabled:r,hidden:n,text:o,...s}){const{prefix:c}=R(),d=C({[`${c}--select-option`]:!0,[`${e}`]:e});return a.jsx("option",{...s,className:d,value:t,disabled:r,hidden:n,children:o})}At.displayName="SelectItem";let Yc=0;const Ir=e=>{const{backwardText:t="Backward",className:r,forwardText:n="Forward",id:o,itemsPerPageText:s="Items per page:",itemsPerPageFollowsText:c,itemRangeText:d=(g,$,T)=>`${g}-${$} of ${T} items`,pageRangeText:l=(g,$)=>`${g} of ${$} pages`,pageSize:i,pageSizesDisabled:h,pageSizes:m,itemText:f=(g,$)=>`${g}-${$} items`,pageText:v=g=>`page ${g}`,pageNumberText:w="Page Number",pagesUnknown:y=!1,isLastPage:x=!1,pageInputDisabled:j=!1,totalItems:O,onChange:S,page:E=1,..._}=e,[N,k]=z.useState(E),[D,M]=z.useState(e.pageSize?e.pageSize:m[0]),H=z.useState(()=>++Yc)[0],P=g=>{const $=Number(g.target.value);k(1),M($),S?.({page:1,pageSize:$})},V=g=>{const $=Number(g.target.value);$>0&&$<=Math.max(Math.ceil(O/D),1)&&(k($),S?.({page:$,pageSize:D}))},ee=()=>{const g=N+1;k(g),S?.({page:g,pageSize:D})},J=()=>{const g=N-1;k(g),S?.({page:g,pageSize:D})},X=g=>{let $=1;const T=[];for(;$<=g;)T.push(a.jsx(At,{value:$,text:String($)},$)),$++;return T},Y=C("wfp--pagination",r),te=C("wfp--pagination__button","wfp--pagination__button--backward",{"wfp--pagination__button--no-index":j}),ce=o||H,le=Math.max(Math.ceil(O/D),1),u=X(le);return a.jsxs("div",{className:Y,..._,children:[a.jsxs("div",{className:"wfp--pagination__left",children:[!h&&a.jsxs(z.Fragment,{children:[a.jsx("span",{className:"wfp--pagination__text",children:c||s}),a.jsx(Pt,{id:`wfp-pagination-select-${ce}`,labelText:s,hideLabel:!0,inline:!0,onChange:P,value:D,children:m.map(g=>a.jsx(At,{value:g,text:String(g)},g))}),a.jsxs("span",{className:"wfp--pagination__text",children:[" ","  |  "]})]}),a.jsx("span",{className:"wfp--pagination__text",children:y?f(D*(N-1)+1,N*D):d(Math.min(D*(N-1)+1,O),Math.min(N*D,O),O)})]}),a.jsxs("div",{className:"wfp--pagination__right wfp--pagination--inline",children:[a.jsx("span",{className:"wfp--pagination__text",children:y?v(N):l(N,le)}),a.jsx("button",{className:te,onClick:J,disabled:e.disabled||N===1,children:a.jsx(Dn,{className:"wfp--pagination__button-icon",description:t})}),j?null:a.jsx(Pt,{id:`wfp-pagination-select-${+ce+2}`,labelText:s,hideLabel:!0,inline:!0,onChange:V,value:N,children:u}),a.jsx("button",{className:"wfp--pagination__button wfp--pagination__button--forward",onClick:ee,disabled:e.disabled||N===le||x,children:a.jsx(Mn,{className:"wfp--pagination__button-icon",description:n})})]})]})};Ir.displayName="Pagination";let On=0;function Os(e="id"){return On++,`${e}${On}`}const Rs=F.forwardRef((e,t)=>{const{labelText:r,id:n,className:o,value:s,name:c,onChange:d,...l}=e,[i]=z.useState(n||Os()),{prefix:h}=R(),m=C("radioButtonWrapper",o),v=d?{onChange:w=>{d?.(w,s,c)}}:{};return a.jsxs("div",{className:m,children:[a.jsx("input",{...l,ref:t,type:"radio",className:`${h}--radio-button`,...v,id:i,value:s,name:c,checked:e.checked,defaultChecked:e.defaultChecked,disabled:e.disabled}),a.jsxs("label",{htmlFor:i,className:`${h}--radio-button__label`,children:[a.jsx("span",{className:`${h}--radio-button__appearance`}),r]})]})});Rs.displayName="RadioButton";const ks=e=>{const{prefix:t}=R(),{children:r,labelText:n,helperText:o,vertical:s,hideLabel:c,className:d=`${t}--input-group`,wrapperClassName:l,valueSelected:i,defaultSelected:h}=e,[m,f]=z.useState(i||h);z.useEffect(()=>{i!==m&&f(i)},[i,h]);const v=C(`${t}--label`,{[`${t}--visually-hidden`]:c}),w=C(`${t}--form-item`,{[`${t}--input-group__vertical`]:s,wrapperClassName:l}),y=n?a.jsx("span",{className:v,children:n}):null,x=o?a.jsx("div",{className:`${t}--form__helper-text`,children:o}):null;return a.jsx("div",{className:w,children:a.jsxs("div",{className:d,children:[y,x,a.jsx("div",{className:`${t}--input-group-inside`,children:r})]})})};ks.displayName="InputGroup";const Vc=({handleToggleClick:e,link:t,text:r,showMore:n,contentId:o})=>{const{prefix:s}=R(),c={"aria-expanded":n,"aria-controls":o};if(t)return z.cloneElement(t,{onClick:e,...c});{const d=Mo,l=C({[`${s}--read-more__trigger`]:!0,[`${s}--read-more__trigger--expanded`]:n});return a.jsxs(he,{className:l,size:"sm",onClick:e,...c,children:[r,a.jsx(d,{width:"10",height:"10",description:n?"icon up":"icon down"})]})}};function Ps({collapseLink:e,collapseText:t="Show less",children:r,collapsed:n,className:o,disableAutoscroll:s,expandLink:c,expandText:d="Show more",fade:l,maxHeight:i}){const{prefix:h}=R(),[m,f]=z.useState(!1),[v,w]=z.useState(0),y=z.useRef(null),x=z.useRef(null),O=`${An()}-read-more-content`,S=k=>{k.preventDefault();const D=y?.current?.clientHeight;!m&&!s&&setTimeout(()=>{x?.current&&x.current.scrollIntoView({behavior:"smooth",block:"end"})},50),f(!m),D&&w(D)},E=C(o,{[`${h}--read-more`]:!0,[`${h}--read-more--expanded`]:m,[`${h}--read-more--fade`]:l,[`${h}--read-more--max-height`]:i}),_=i?i&&!m?{maxHeight:i}:{maxHeight:v+20}:{undefined:void 0},N=m?{display:"none"}:{display:"block"};return a.jsxs("div",{className:E,children:[a.jsxs("div",{className:`${h}--read-more__content`,style:_,id:O,children:[a.jsx("div",{className:`${h}--read-more__fake-height`,ref:x,style:{height:`${v+30}px`}}),a.jsxs("div",{ref:y,children:[(m||!n)&&r,n&&a.jsx("div",{style:N,children:n})]})]}),a.jsx(Vc,{handleToggleClick:S,showMore:m,link:m?e:c,text:m?t:d,contentId:O})]})}Ps.displayName="ReadMore";function As({additional:e,children:t,className:r,id:n,pageWidth:o,...s}){const{prefix:c}=R(),d=C(`${c}--secondary-navigation`,r);return a.jsx("div",{id:n,className:d,...s,children:a.jsxs(Be,{pageWidth:o,className:`${c}--secondary-navigation__wrapper`,children:[a.jsx("div",{className:`${c}--secondary-navigation__list`,children:t}),e&&a.jsx("div",{className:`${c}--secondary-navigation__additional`,children:e})]})})}As.displayName="SecondaryNavigation";function Ds({className:e,children:t}){const{prefix:r}=R(),n=C(`${r}--secondary-navigation__title`,e);return a.jsx("h1",{className:n,children:t})}Ds.displayName="SecondaryNavigationTitle";function Gc({inline:e,small:t,vertical:r,className:n,role:o,children:s}){const{prefix:c}=R(),[d]=z.useState(!0),i=z.Children.map(s,m=>m),h={tabs:C(n,{[`${c}--step-navigation`]:!0,[`${c}--step-navigation--vertical`]:r,[`${c}--step-navigation--small`]:t,[`${c}--step-navigation--regular`]:!t}),tablist:C(`${c}--step-navigation__nav`,{[`${c}--step-navigation__nav--hidden`]:d,[`${c}--step-navigation__nav--inline`]:e})};return a.jsx(a.Fragment,{children:a.jsx("nav",{className:h.tabs,role:o,children:a.jsx("ul",{role:"tablist",className:h.tablist,children:i})})})}const Kc=({className:e,handleTabClick:t=()=>{},index:r,label:n,status:o,helperText:s,selectedPage:c=0,onClick:d=()=>{},page:l=0,renderAnchor:i})=>{const{prefix:h}=R(),m=C(`${h}--step-navigation__nav-item`,{[`${h}--step-navigation__nav-item--before`]:l<c},{[`${h}--step-navigation__nav-item--selected`]:l===c},{[`${h}--step-navigation__nav-item--${o}`]:o},e),f={className:`${h}--step-navigation__nav-link`},w=o?{"not-started":{icon:Fo},warning:{icon:aa},locked:{icon:Xo},skip:{icon:ea},disabled:{icon:In},complete:{icon:So},summary:{icon:Zo}}[o]?.icon:null;return a.jsx("li",{tabIndex:-1,className:m,onClick:y=>{o!=="locked"&&(t(y,r,n),d(y))},role:"presentation",children:a.jsx(a.Fragment,{children:i?i(f):a.jsxs(F.Fragment,{children:[a.jsx("div",{className:`${h}--step-navigation__nav-item__indicator`,children:o&&l!==c?a.jsx(w,{width:"14",height:"14",description:"Step Item"}):a.jsx("span",{children:l+1})}),a.jsxs("div",{children:[a.jsx("span",{className:`${h}--step-navigation__nav-item__text`,children:n}),s&&a.jsx("span",{className:`${h}--step-navigation__nav-item__helper-text`,children:s})]})]})})})};function Xc({children:e,className:t,disabled:r,label:n,...o}){const{prefix:s}=R(),c=C(`${s}--select-optgroup`,t);return a.jsx("optgroup",{className:c,label:n,disabled:r,...o,children:e})}const Qc=({active:e,children:t,className:r,sidebar:n,...o})=>{const{prefix:s}=R(),c=C(`${s}--sidebar-content__container`,r,{[`${s}--sidebar-content__container--active`]:e});return a.jsxs("div",{className:c,...o,children:[a.jsx("div",{className:`${s}--sidebar-item-content`,children:n}),a.jsx("div",{className:`${s}--content-section`,children:t})]})},Zc=({className:e,children:t,noPadding:r,...n})=>{const{prefix:o}=R(),s=C(`${o}--sidebar-content__header`,e,{[`${o}--sidebar-content__header--no-padding`]:r});return a.jsx("div",{className:s,...n,children:t})},Jc=({className:e,children:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sidebar-content-mobile-header`,e,{});return a.jsx("div",{className:o,...r,children:t})},el=({className:e,children:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sidebar-content__children`,e,{});return a.jsx("div",{id:"scroll-container",className:o,...r,children:t})},tl=({children:e,...t})=>{const{prefix:r}=R();return a.jsx("div",{className:`${r}--sidebar-content__scroll`,...t,children:e})},rl=({children:e,...t})=>{const{prefix:r}=R();return a.jsxs("div",{className:`${r}--sidebar-content__back-button`,...t,children:[a.jsx(Dn,{}),e]})},Lr=F.forwardRef((e,t)=>{const{hideLabel:r,helperText:n,pattern:o,required:s}=e,{prefix:c}=R(),d=C(`${c}--input`,`${c}--text-input`,{[`${c}--text--helpertext`]:n,[`${c}--text--nolabel`]:r,[`${c}--text--required`]:s}),l=e,{inputProps:i,wrapperProps:h}=Te({...l,inputClassName:d});return a.jsx(Ce,{...h,children:a.jsx("input",{pattern:o,...i,ref:t})})});Lr.displayName="TextInput";const nl=(e,t)=>typeof t=="function"?t(e):`${e}${t||""}`;function sl(e,t,r){if(!(r<=t))return e<t&&(e=t),e>r&&(e=r),(e-t)/(r-t)*100}const Ms=F.forwardRef((e,t)=>{const{ariaLabelInput:r,className:n,disabled:o,formatLabel:s=nl,fullWidth:c,id:d,inputType:l,hideLabel:i,hideControls:h,hideTextInput:m,min:f,minLabel:v,max:w,maxLabel:y,step:x=1,onChange:j=()=>{},helperText:O,...S}=e,{prefix:E}=R(),_=e.value,[N,k]=F.useState(_);F.useEffect(()=>{k(e.value)},[e.value]);const D=F.useRef(null),M=t||D,H=u=>{o||(u.persist(),u.imaginaryTarget=M,u.target.value>w?(k(w),j(u)):(k(u.target.value),j(u)))},P=C(`${E}--slider--wrapper`,n,{[`${E}--slider--helpertext`]:O,[`${E}--slider--nolabel`]:i,[`${E}--slider--nocontrols`]:h}),V=C(`${E}--slider-container`,{[`${E}--slider-container--full-width`]:c}),ee={disabled:o,id:d,max:w,min:f,step:x,onChange:H,value:N},J=C(`${E}--input`,`${E}--slider-text-input`),X=C(`${E}--slider`,{[`${E}--slider--disabled`]:o},n),Y=C(`${E}--slider__range-wrapper`,{[`${E}--slider__range-wrapper--disabled`]:o},n),te=N&&N<f?f:N,le=Te(e);return console.log("valueMinimal",te),a.jsx(Ce,{...le.wrapperProps,formItemClassName:P,children:a.jsxs("div",{className:V,children:[a.jsx("span",{className:`${E}--slider__range-label`,children:s(f,v)}),a.jsxs("div",{className:Y,children:[a.jsx("div",{className:`${E}--slider__range-before`,style:{width:`${sl(te,f,w)}%`}}),a.jsx("input",{className:X,type:"range",...S,...ee,ref:M})]}),a.jsx("span",{className:`${E}--slider__range-label`,children:s(w,y)}),!m&&a.jsx(Lr,{disabled:o,type:l,id:"input-for-slider",className:J,value:N,onChange:H,"aria-label":r})]})})});Ms.displayName="Slider";const Is=F.forwardRef(({active:e,additional:t,children:r,className:n,subContent:o,image:s,hint:c,noImage:d,unread:l,showAdditionalIcon:i,title:h,kind:m="large",wrapper:f="none",...v},w)=>{const{prefix:y}=R(),x=C({[`${y}--item`]:!0,[`${y}--item--${m}`]:m,[`${y}--item--${f}`]:f,[`${y}--item--active`]:e,[`${y}--item--unread`]:l},n);return a.jsxs("div",{className:x,...v,ref:w,children:[s?a.jsx("div",{className:`${y}--item__image`,children:s}):d?a.jsx("div",{className:`${y}--item__image ${y}--item__image-empty`}):null,h&&a.jsx("div",{className:`${y}--item__title-wrapper`,children:a.jsx("h2",{className:`${y}--item__title`,children:h})}),t&&a.jsxs("div",{className:`${y}--item__additional`,children:[t,i&&a.jsx(Mn,{className:`${y}--item__additional-icon`})]}),r&&a.jsx("div",{className:`${y}--item__text`,children:r}),o&&a.jsx("div",{className:`${y}--item__sub-content`,children:o}),c&&a.jsx("div",{className:`${y}--item__hint`,children:c}),l&&a.jsx("div",{className:`${y}--item__unread`})]})});Is.displayName="Item";const Ls=({data:e,page:t,pageSizeOptions:r,paginationClassName:n,totalItems:o,style:s,onPageChange:c,onPageSizeChange:d,isLastPage:l,pages:i,pageInputDisabled:h,pageSize:m,pagesUnknown:f,backwardText:v,forwardText:w,itemsPerPageText:y,itemsPerPageFollowsText:x,itemRangeText:j,pageRangeText:O,pageSizesDisabled:S,itemText:E,pageNumberText:_})=>{const{prefix:N}=R(),k=H=>(isNaN(H)&&(H=t),H),D=H=>{const P=k(H.page-1);H!==P&&c(P),m!==H.pageSize&&d(H.pageSize)},M={isLastPage:l,pages:i,pageInputDisabled:h,pageSize:m,pagesUnknown:f,backwardText:v,forwardText:w,itemsPerPageText:y,itemsPerPageFollowsText:x,itemRangeText:j,pageRangeText:O,pageSizesDisabled:S,itemText:E,pageNumberText:_};return a.jsx("div",{className:C(n,"-pagination"),style:s,children:a.jsx("div",{className:`${N}-pagination`,children:a.jsx(Ir,{onChange:D,pageSizes:r,page:t,totalItems:o||(e?e.length:void 0),...M})})})};Ls.displayName="ReactTablePagination";function Bs(e){const{prefix:t}=R(),{className:r,disabled:n,handleTabClick:o=()=>{},handleTabAnchorFocus:s=()=>{},handleTabKeyDown:c=()=>{},href:d,index:l=0,label:i,selected:h,tabIndex:m,onClick:f=()=>{},onKeyDown:v=()=>{},...w}=e,y=E=>{if(E.which===37&&s)s(l-1);else if(E.which===39&&s)s(l+1);else return},x=C(`${t}--tabs__nav-item`,{[`${t}--tabs__nav-item--disabled`]:n},{[`${t}--tabs__nav-item--selected`]:h},r),j=C(`${t}--tabs__nav-item`,`${t}--tabs__nav-item--selected`,r),O={className:"wfp--tabs__nav-link",href:n?void 0:d,label:i,role:"tab",tabIndex:m,"aria-selected":h};return{liProps:{tabIndex:-1,className:x,onClick:E=>{n||(o(l,i,E),f(E))},onKeyDown:E=>{n||(y(E),c(l,i,E),v(E))},role:"presentation",selected:h,...w},anchorProps:O,selectedClasses:j}}const ol=e=>{const{disabled:t,label:r,renderAnchor:n,renderListElement:o}=e,{anchorProps:s,liProps:c,selectedClasses:d}=Bs(e);return a.jsx(F.Fragment,{children:o?typeof o=="function"?o({...e,...c,anchor:s,selectedClasses:d}):a.jsx(a.Fragment,{children:o}):a.jsx("li",{...c,children:n?n(s):t?a.jsx("span",{...s,children:r}):a.jsx("a",{...s,children:r})})})},qs=e=>{const{selected:t=!1,children:r,...n}=e;return a.jsx("div",{...n,"data-selected":t,hidden:!t,children:r})};qs.displayName="TabContent";const al=z.createContext({handleTabClick:()=>{},handleTabKeyDown:()=>{},handleTabAnchorFocus:()=>{}}),Fs=e=>{const{disableAnimation:t,inline:r,className:n,role:o="navigation",selected:s=null,...c}=e,{prefix:d}=R(),[l,i]=F.useState(s),h=F.useRef(null);F.useEffect(()=>{s!==l&&i(s)},[s]);const m={tabs:C(`${d}--tabs`,{[`${d}--tabs--no-animation`]:t},n),tablist:C(`${d}--tabs__nav`,{[`${d}--tabs__nav--inline`]:r})},f=()=>(y,x,j)=>{j&&j.preventDefault()},v=()=>(y,x,j)=>{j.key||j.which},w=()=>{};return a.jsx(al.Provider,{value:{handleTabClick:f,handleTabKeyDown:v,handleTabAnchorFocus:w},children:a.jsxs("nav",{...c,className:m.tabs,role:o,children:[a.jsx("div",{className:`${d}--tabs__nav__bar`}),a.jsx("ul",{ref:h,role:"tablist",className:m.tablist,children:e.children})]})})};Fs.displayName="Tabs";const Hs=F.forwardRef((e,t)=>{const{className:r,fullWidth:n}=e,{prefix:o}=R(),s=C(`${o}--text-area`,r,{[`${o}--textarea-fullwidth`]:n}),d=Te({...e,inputClassName:s});return a.jsx(Ce,{...d.wrapperProps,children:a.jsx("textarea",{...d.inputProps,ref:t})})});Hs.displayName="TextArea";const Ws=F.forwardRef((e,t)=>{const{showPasswordLabelText:r="Show password",hidePasswordLabelText:n="Hide password",addonAfter:o,...s}=e,{prefix:c}=R(),[d,l]=F.useState(!1),{hideLabel:i,helperText:h,required:m,disabled:f,readOnly:v}=s,w=C(`${c}--input`,`${c}--text-input`,`${c}--password-input`,{[`${c}--text--helpertext`]:h,[`${c}--text--nolabel`]:i,[`${c}--text--required`]:m}),y=d?n:r,x=()=>{f||v||l(_=>!_)},j=a.jsx("button",{type:"button",className:`${c}--password-input__toggle`,onClick:x,"aria-pressed":d,"aria-label":y,disabled:f||v,children:y}),O=s,{inputProps:S,wrapperProps:E}=Te({...O,type:d?"text":"password",addonAfter:a.jsxs(a.Fragment,{children:[o,j]}),inputClassName:w});return a.jsx(Ce,{...E,children:a.jsx("input",{...S,ref:t})})});Ws.displayName="PasswordInput";const zs=F.forwardRef((e,t)=>{const{className:r,defaultToggled:n=!1,id:o,labelA:s="Off",labelB:c="On",...d}=e,{prefix:l}=R(),i=C({[`${l}--form-item`]:!0},r),h=o||d.name,f=Te(e),v=d;return a.jsxs(Ce,{className:i,...e,children:[a.jsx("input",{...v,...f.inputProps,defaultChecked:n,type:"checkbox",id:h,className:`${l}--toggle`,ref:t}),a.jsxs("label",{className:`${l}--toggle__label`,htmlFor:h,children:[a.jsx("span",{className:`${l}--toggle__text--left`,children:s}),a.jsx("span",{className:`${l}--toggle__appearance`}),a.jsx("span",{className:`${l}--toggle__text--right`,children:c})]})]})});zs.displayName="Toggle";const il=e=>{const{className:t,children:r,components:n={},description:o,ellipsis:s,extendedDescription:c,showName:d,small:l,name:i,missingImage:h,...m}=e,{prefix:f}=R(),w={...{Avatar:_r},...n},y=C(`${f}--user`,t,{[`${f}--user--has-description`]:o,[`${f}--user--has-extended-description`]:c}),x=C({[`${f}--user__title`]:!0,[`${f}--user__title--ellipsis`]:s,[`${f}--user__title--small`]:l});return a.jsxs("div",{className:y,...m,children:[a.jsx(w.Avatar,{...e,missingImage:h}),d&&a.jsxs("span",{className:x,children:[a.jsx("span",{children:i}),o&&a.jsx("div",{className:`${f}--user__description`,children:o})]}),r,c&&a.jsx("div",{className:`${f}--user__extended-description`,children:c})]})},ct={thousand:{pow:1e3,defaultmaximumFractionDigits:2,default:{after:"T"}},million:{pow:1e6,defaultmaximumFractionDigits:1,default:{after:"M"}},billion:{pow:1e9,defaultmaximumFractionDigits:2,default:{after:"B"}}},Us=e=>a.jsx("span",{className:e.className+" invalid",children:"–"}),cl=e=>a.jsx("tspan",{className:e.className+" invalid",children:"–"}),Ft=e=>{if(e){const t=e.before?e.before+" ":"",r=e.output&&e.output.default?e.output.default.after+"":"",n=e.after?" "+e.after:"";return t+e.value+r+n}else return""},Ht=(e,t)=>{const{style:r,...n}=t;return e?a.jsxs("text",{className:t.className,...n,children:[a.jsxs("tspan",{style:r,children:[e.before," "]}),a.jsx("tspan",{style:r,children:e.value}),a.jsxs("tspan",{style:r,children:[" ",e.output?e.output.default.after+"":"",e.after]})]}):a.jsx(cl,{className:t.className})},ke=(e,t,r,n,o)=>{const{children:s,input:c,output:d,minimumFractionDigits:l,maximumFractionDigits:i,localeStringLanguage:h="en-EN",calcOnly:m,string:f,svg:v,hideZero:w}=e;var y=typeof s=="string"?s.replace(/,/g,""):s;y=parseFloat(y),y=y!==0&&c&&ct[c]?ct[c].pow*y:y;const x=d&&ct[d]?ct[d]:void 0;y=y!==0&&d?y/x.pow:y;const j=o===!0&&d===void 0?l===0:typeof l=="number"?l:x&&x.defaultmaximumFractionDigits?x.defaultmaximumFractionDigits:2,O=o===!0&&d===void 0?i===0:y<=.005?4:y<=.05?3:y<=.5?2:i===0?0:typeof i=="number"?i:x&&x.defaultmaximumFractionDigits?x.defaultmaximumFractionDigits:2,S={minimumFractionDigits:j,maximumFractionDigits:O>j?O:j};y=y.toLocaleString(h,S);const E={value:y,before:r,after:t,output:x};let _=e.className;return y==="1"&&n&&(_=_+" wfp--unit--singular"),(!y||y==="NaN"||parseFloat(y)===0)&&w?!1:m?E:v?Ht(E,e):f?Ft(E):y!==!1?a.jsx("span",{className:_,children:y}):a.jsx(Us,{className:e.className})},ll=(e,t,r)=>{const{calcOnly:n,children:o,from:s,string:c,svg:d,hideZero:l,maximumSignificantDigits:i,maximumFractionDigits:h}=e;var m=typeof o=="string"?o.replace(/,/g,""):o;m=parseFloat(m),parseFloat(s)===0?m=!1:s&&(m=m/parseFloat(s)*100),m=m.toLocaleString("en-EN",{minimumFractionDigits:i||0,maximumSignificantDigits:i,maximumFractionDigits:m<=.5?5:h||1});const f={value:m,before:r,after:t,output:void 0};return(!m||m==="NaN"||parseFloat(m)===0)&&l?!1:n?f:d?Ht(f,e):c?Ft(f):m!==!1?a.jsx("span",{className:e.className,children:m}):a.jsx(Us,{className:e.className})},Wt=(e,t,r)=>{const{calcOnly:n,className:o,children:s,string:c,svg:d,hideUnit:l}=e,i=s,h=t||"",m=l?"":r+s+h,f={value:i,before:r,after:t,output:i+m};if(n)return f;if(d)return Ht({value:i+m,before:r,after:t},e);if(c)return Ft(f);if(i!==!1)return a.jsx("span",{className:o,children:i})},ul=e=>{const{children:t}=e,r=t;let n;if(typeof r=="number"&&r.toString().length>=7)n=new Date(r,e);else if(r.getMonth)n=r;else{const c=r.toString().substring(0,4),d=parseInt(r.toString().substring(4,7),10)-1;n=new Date(c,d,1)}const o=n.toLocaleString("en-us",{month:"short"}),s=n.toLocaleString("en-us",{month:"long"});return{monthName:o,monthNameFull:s,year:n.getFullYear(),date:n}},dl=e=>{const{className:t,string:r,svg:n,calcOnly:o}=e,s=ul(e),c={value:s.monthName+" "+s.year,before:"",after:"",output:void 0};if(o)return c;if(n)return Ht(c,e);if(r)return Ft(c);if(c?.value)return a.jsx("span",{className:t,children:c.value})},fl=e=>ke(e,"","US$"),pl=e=>ke(e,"People",void 0,!0,!0),ml=e=>ke(e,"Partners",void 0,!0,!0),hl=e=>ke(e,"MT",void 0,!0),vl=e=>ke(e,"MetricTons",void 0,!0),gl=e=>ke(e,"Months",void 0,!0,"Month"),yl=e=>ke(e,""),_l=e=>ke(e,"Beneficaries",void 0,!0,!0),xl=e=>ke(e,"Households",void 0,!0,!0),bl=e=>ke(e,"Trips",void 0,!0,!0),wl=e=>Wt(e,"kg"),$l=e=>Wt(e,""),El=e=>Wt(e,"Countries"),jl=e=>Wt(e,""),Nl=e=>ll(e,"%"),Cl=e=>dl(e),Tl={Usd:fl,Partners:ml,Beneficiaries:_l,Households:xl,Months:gl,Mt:hl,Kg:wl,MetricTons:vl,Num:yl,Level:$l,None:jl,Trips:bl,Countries:El,People:pl,Percentage:Nl,YearMonth:Cl},Sl=e=>{const{prefix:t}=R(),{className:r,output:n,string:o,textAnchor:s,localeStringLanguage:c="en-EN",type:d="none",setup:l}=e,i=e.type.charAt(0).toUpperCase()+e.type.slice(1),h=Tl[i],m=s||"start",f=d?`${t}--unit--${d.toLowerCase()}`:"",v=n&&ct[n]?`${t}--unit--${n}`:"",w=l?`${t}--unit--${l}`:"",y=`${t}--unit ${r} ${f} ${v} ${w}`;return o?h(e):h===void 0?null:a.jsx(h,{...e,className:y,textAnchor:m,localeStringLanguage:c})},Ol=({value:e,secondaryValue:t,className:r,title:n,...o})=>{const{prefix:s}=R(),c=C(`${s}--value`,r);return a.jsxs("div",{className:c,...o,children:[a.jsx("h4",{className:`${s}--value__title`,children:n}),a.jsx("div",{className:`${s}--value__primary-value`,children:e}),a.jsx("div",{className:`${s}--value__secondary-value`,children:t})]})},Rl=e=>t=>{const n={...R(),...t};return a.jsx(e,{...n})};function kl(){return z.useContext(It)}const Pl={main:{name:"main",hex:"#007DBC",scss:"$color__main",type:"communications"},"sequential-default-07":{name:"sequential-default-07",hex:"#9DEAFF",scss:"$color__sequential-default-07",type:"sequential-default",shortDescription:"sequential default 07"},"sequential-default-06":{name:"sequential-default-06",hex:"#73C3FE",scss:"$color__sequential-default-06",type:"sequential-default",shortDescription:"sequential default 06"},"sequential-default-05":{name:"sequential-default-05",hex:"#4AA1E2",scss:"$color__sequential-default-05",type:"sequential-default",shortDescription:"sequential default 05"},"sequential-default-04":{name:"sequential-default-04",hex:"#0780C0",scss:"$color__sequential-default-04",type:"sequential-default",shortDescription:"sequential default 04"},"sequential-default-03":{name:"sequential-default-03",hex:"#005F9B",scss:"$color__sequential-default-03",type:"sequential-default",shortDescription:"sequential default 03"},"sequential-default-02":{name:"sequential-default-02",hex:"#003F76",scss:"$color__sequential-default-02",type:"sequential-default",shortDescription:"sequential default 02"},"sequential-default-01":{name:"sequential-default-01",hex:"#002153",scss:"$color__sequential-default-01",type:"sequential-default",shortDescription:"sequential default 01"},"sequential-secondary-07":{name:"sequential-secondary-07",hex:"#bdf9c4",scss:"$color__sequential-secondary-07",type:"sequential-secondary",shortDescription:"sequential secondary 07"},"sequential-secondary-06":{name:"sequential-secondary-06",hex:"#89eaa8",scss:"$color__sequential-secondary-06",type:"sequential-secondary",shortDescription:"sequential secondary 06"},"sequential-secondary-05":{name:"sequential-secondary-05",hex:"#5fd79a",scss:"$color__sequential-secondary-05",type:"sequential-secondary",shortDescription:"sequential secondary 05"},"sequential-secondary-04":{name:"sequential-secondary-04",hex:"#41c196",scss:"$color__sequential-secondary-04",type:"sequential-secondary",shortDescription:"sequential secondary 04"},"sequential-secondary-03":{name:"sequential-secondary-03",hex:"#33aa96",scss:"$color__sequential-secondary-03",type:"sequential-secondary",shortDescription:"sequential secondary 03"},"sequential-secondary-02":{name:"sequential-secondary-02",hex:"#319298",scss:"$color__sequential-secondary-02",type:"sequential-secondary",shortDescription:"sequential secondary 02"},"sequential-secondary-01":{name:"sequential-secondary-01",hex:"#367a96",scss:"$color__sequential-secondary-01",type:"sequential-secondary",shortDescription:"sequential secondary 01"},"categorical-corporate-01":{name:"categorical-01",hex:"#007DBC",scss:"$color__categorical-corporate-01",type:"categorical",shortDescription:"categorical-01"},"categorical-corporate-02":{name:"categorical-02",hex:"#36B5C5",scss:"$color__categorical-corporate-02",type:"categorical",shortDescription:"categorical-02"},"categorical-corporate-03":{name:"categorical-03",hex:"#00B485",scss:"$color__categorical-corporate-03",type:"categorical",shortDescription:"categorical-03"},"categorical-corporate-04":{name:"categorical-04",hex:"#008868",scss:"$color__categorical-corporate-04",type:"categorical",shortDescription:"categorical-04"},"categorical-corporate-05":{name:"categorical-05",hex:"#1A4262",scss:"$color__categorical-corporate-05",type:"categorical",shortDescription:"categorical-05"},"categorical-corporate-06":{name:"categorical-06",hex:"#982B56",scss:"$color__categorical-corporate-06",type:"categorical",shortDescription:"categorical-06"},"categorical-corporate-07":{name:"categorical-07",hex:"#EF404C",scss:"$color__categorical-corporate-07",type:"categorical",shortDescription:"categorical-07"},"categorical-corporate-08":{name:"categorical-08",hex:"#F47847",scss:"$color__categorical-corporate-08",type:"categorical",shortDescription:"categorical-08"},"categorical-corporate-09":{name:"categorical-09",hex:"#B79F8D",scss:"$color__categorical-corporate-09",type:"categorical",shortDescription:"categorical-09"},"categorical-corporate-10":{name:"categorical-10",hex:"#ECDFBB",scss:"$color__categorical-corporate-10",type:"categorical",shortDescription:"categorical-10"},female:{name:"female",hex:"#3f7e44",scss:"$color__female",type:"symbolic",shortDescription:"Indicate female"},male:{name:"male",hex:"#26bde2",scss:"$color__male",type:"symbolic",shortDescription:"Indicate male"},national:{name:"national",hex:"#3C5979",scss:"$color__national",type:"symbolic",shortDescription:"Indicate national staff"},international:{name:"international",hex:"#fcc30b",scss:"$color__international",type:"symbolic",shortDescription:"Indicate international staff"},"brand-01":{name:"brand-01",hex:"#007DBC",scss:"var(--brand-01)",css:"color__brand-01",type:"brand",shortDescription:"WFP brand color"},"interactive-01":{name:"interactive-01",hex:"#0b77c2",scss:"var(--interactive-01)",css:"color__interactive-01",type:"brand",shortDescription:"Primary interactive color, Primary buttons"},"interactive-02":{name:"interactive-02",hex:"#085387",scss:"$action-default-fill-primary-default-02",css:"color__interactive-02",type:"brand",shortDescription:"BannerNavigation"},"accent-01":{name:"accent-01",hex:"#f7b825",scss:"$accent-01",css:"color__accent-01",type:"brand-accent",shortDescription:"Accent colour (recommended)"},"brand-01-20":{name:"brand-01-20",hex:"#c2dbec",scss:"$brand-01-20",css:"color__brand-01-20",type:"brand-extended"},"brand-01-30":{name:"brand-01-30",hex:"#85b7da",scss:"$brand-01-30",css:"color__brand-01-30",type:"brand-extended"},"brand-01-40":{name:"brand-01-40",hex:"#4792c7",scss:"$brand-01-40",css:"color__brand-01-40",type:"brand-extended"},"brand-01-60":{name:"brand-01-60",hex:"#085387",scss:"$brand-01-60",css:"color__brand-01-60",type:"brand-extended"},"brand-01-70":{name:"brand-01-70",hex:"#05375a",scss:"$brand-01-70",css:"color__brand-01-70",type:"brand-extended"},"brand-01-80":{name:"brand-01-80",hex:"#031c2d",scss:"$brand-01-80",css:"color__brand-01-80",type:"brand-extended"},"ui-01":{name:"ui-01",hex:"#ffffff",scss:"$ui-01",css:"color__ui-01",type:"ui",shortDescription:"Primary container background; Secondary page background",description:"This colour is used as the page background if there are no Modules on top of it."},"ui-02":{name:"ui-02",hex:"#eff2f5",scss:"var(--ui-02)",css:"color__ui-02",type:"ui",shortDescription:"Primary page background; Secondary container background",description:"Use this colour as page background if there are modules on top of it to increase the contrast between the modules."},"ui-03":{name:"ui-03",hex:"#f0f3f6",scss:"$ui-03",css:"color__ui-03",type:"ui",shortDescription:"Subtle border, Tertiary background color"},"ui-04":{name:"ui-04",hex:"#dfe3e6",scss:"$ui-04",css:"color__ui-04",type:"ui",shortDescription:"3:1 AA element contrast; Medium contrast border"},"ui-05":{name:"ui-05",hex:"#8c9ba5",scss:"$ui-03",css:"color__ui-05",type:"ui",shortDescription:"4.5:1 AA element contrast; High contrast border; Emphasis elements"},"ui-06":{name:"ui-06",hex:"#0b1923",scss:"$ui-06",css:"color__ui-06",type:"ui",shortDescription:""},"text-01":{name:"text-01",hex:"#031c2d",scss:"$text-01",css:"color__text-01",type:"ui",shortDescription:"Primary text colour; Input labels;"},"text-02":{name:"text-02",hex:"#5a6872",scss:"$text-02",css:"color__text-02",type:"ui",shortDescription:"Secondary text; Help text"},"text-03":{name:"text-03",hex:"#dfe6eb",scss:"$text-03",css:"color__text-03",type:"ui",shortDescription:"Placeholder text"},"text-04":{name:"text-04",hex:"#ffffff",scss:"$text-04",css:"color__text-04",type:"ui",shortDescription:""},"inverse-01":{name:"inverse-01",hex:"#ffffff",scss:"$inverse-01",css:"color__inverse-01",type:"ui",shortDescription:"Inverse text color; Inverse icon color"},"field-01":{name:"field-01",hex:"#ffffff",scss:"$field-02",css:"color__field-01",type:"ui",shortDescription:"Default input fields; Fields on $ui-backgrounds"},"field-border-01":{name:"field-border-01",hex:"#d4d7d9",scss:"$field-border-01",css:"color__field-border-01",type:"ui",shortDescription:""},"disabled-01":{name:"disabled-01",hex:"#f9fbfc",scss:"$disabled-01",css:"color__disabled-01",type:"ui",shortDescription:""},"disabled-02":{name:"disabled-02",hex:"#dfe6eb",scss:"$disabled-02",css:"color__disabled-02",type:"ui",shortDescription:""},"sdg-01":{name:"sdg-01",hex:"#E5243B",scss:"$sdg-01",css:"color__sdg-01",type:"sdg",shortDescription:"No poverty, red"},"sdg-02":{name:"sdg-02",hex:"#DDA63A",scss:"$sdg-02",css:"color__sdg-02",type:"sdg",shortDescription:"Zero hunger, mustard"},"sdg-03":{name:"sdg-03",hex:"#4C9F38",scss:"$sdg-03",css:"color__sdg-03",type:"sdg",shortDescription:"Good health and well-being, kelly green"},"sdg-04":{name:"sdg-04",hex:"#C5192D",scss:"$sdg-04",css:"color__sdg-04",type:"sdg",shortDescription:"Quality education, dark red"},"sdg-05":{name:"sdg-05",hex:"#FF3A21",scss:"$sdg-05",css:"color__sdg-05",type:"sdg",shortDescription:"Gender equality, red orange"},"sdg-06":{name:"sdg-06",hex:"#26BDE2",scss:"$sdg-06",css:"color__sdg-06",type:"sdg",shortDescription:"Clean water and sanitation, bright blue"},"sdg-07":{name:"sdg-07",hex:"#FCC30B",scss:"$sdg-07",css:"color__sdg-07",type:"sdg",shortDescription:"Affordable and clean energy, yellow"},"sdg-08":{name:"sdg-08",hex:"#A21942",scss:"$sdg-08",css:"color__sdg-08",type:"sdg",shortDescription:"Decent work and economic growth, burgundy red"},"sdg-09":{name:"sdg-09",hex:"#FD6925",scss:"$sdg-09",css:"color__sdg-09",type:"sdg",shortDescription:"Industry, innovation and infrastructure, orange"},"sdg-10":{name:"sdg-10",hex:"#DD1367",scss:"$sdg-10",css:"color__sdg-10",type:"sdg",shortDescription:"Reduced inequalities, magentas"},"sdg-11":{name:"sdg-11",hex:"#FD9D24",scss:"$sdg-11",css:"color__sdg-11",type:"sdg",shortDescription:"Sustainable cities and communities, golden yellow"},"sdg-12":{name:"sdg-12",hex:"#BF8B2E",scss:"$sdg-12",css:"color__sdg-12",type:"sdg",shortDescription:"Responsible consumption and production, dark mustard"},"sdg-13":{name:"sdg-13",hex:"#3F7E44",scss:"$sdg-10",css:"color__sdg-13",type:"sdg",shortDescription:"Climate action, dark green"},"sdg-14":{name:"sdg-14",hex:"#0A97D9",scss:"$sdg-14",css:"color__sdg-14",type:"sdg",shortDescription:"Life below water, blue"},"sdg-15":{name:"sdg-15",hex:"#56C02B",scss:"$sdg-15",css:"color__sdg-15",type:"sdg",shortDescription:"Life on land, lime green"},"sdg-16":{name:"sdg-16",hex:"#00689D",scss:"$sdg-16",css:"color__sdg-16",type:"sdg",shortDescription:"Peace, justice and stron institutions, royal blue"},"sdg-17":{name:"sdg-17",hex:"#19486A",scss:"$sdg-17",css:"color__sdg-17",type:"sdg",shortDescription:"Partnership for the goals, navy blue"},"support-01":{name:"support-01",hex:"#c5192d",scss:"$support-01",css:"color__support-01",type:"support",shortDescription:"Error (same as color__red)",description:"Use the error color to indicate an error or to focus the attention on something which is crucial to see. Paired with a cross icon, red delivers the message that something went wrong."},"support-light-01":{name:"support-light-01",hex:"#f1c6cb",scss:"$support-light-01",css:"color__support-light-01",type:"support",shortDescription:"Lighter version of color-red",description:""},"support-02":{name:"support-02",hex:"#689e18",scss:"$support-02",css:"color__support-02",type:"support",shortDescription:"Success",description:"Use green to indicate success state. Paired with a checkmark icon the user knows that the operation was successfully completed."},"support-light-02":{name:"support-light-02",hex:"#ccdbcd",scss:"$support-light-02",css:"color__support-light-02",type:"support",shortDescription:"Lighter version of green",description:""},"support-03":{name:"support-03",hex:"#f7b825",scss:"$support-03",css:"color__support-03",type:"support",shortDescription:"Warning (same as color__yellow)",description:"Use yellow to indicate a transient warning which is less important than an error message. Yellow typically consists of items which require the user’s immediate attention, or indicate a waiting period. Although this overlaps with the use of red, yellow is more transient in nature."},"support-light-03":{name:"support-light-03",hex:"#fdedc9",scss:"$support-light-03",css:"color__support-light-03",type:"support",shortDescription:"Lighter version of yellow",description:""},"support-04":{name:"support-04",hex:"#85b7da",scss:"$support-04",css:"color__support-04",type:"support",shortDescription:"Info",description:""},"support-light-04":{name:"support-light-04",hex:"#c2dbec",scss:"$support-light-04",css:"color__support-light-04",type:"support",shortDescription:"",description:""}},Ys=typeof window<"u"?z.useLayoutEffect:z.useEffect,Al=typeof window>"u";function Dl(e,t){const r=typeof t=="boolean"?t:t?.defaultValue??!1,n=typeof t=="boolean"?void 0:t?.initializeWithValue??void 0,o=l=>Al?r:window.matchMedia(l).matches,[s,c]=z.useState(()=>n?o(e):r);function d(){c(o(e))}return Ys(()=>{const l=window.matchMedia(e);return d(),l.addListener?l.addListener(d):l.addEventListener("change",d),()=>{l.removeListener?l.removeListener(d):l.removeEventListener("change",d)}},[e]),s}exports.Accordion=mr;exports.AccordionItem=vr;exports.AddonAfter=zn;exports.AddonBefore=Wn;exports.AuthLayout=pa;exports.Avatar=_r;exports.BackgroundContent=ma;exports.BannerNavigation=Fn;exports.BannerNavigationItem=$e;exports.BannerNavigationWithContent=va;exports.BlockNotification=pt;exports.Breadcrumb=ga;exports.BreadcrumbHome=xa;exports.BreadcrumbItem=_a;exports.Button=qe;exports.Callout=pt;exports.Card=Zn;exports.CardExternal=Jn;exports.Checkbox=rs;exports.ContentSwitcher=Aa;exports.ContextMenu=nc;exports.ContextMenuGroup=sc;exports.ContextMenuItem=oc;exports.Credits=ns;exports.DatePicker=es;exports.DatePickerInput=wr;exports.DateRangePicker=ts;exports.DateRangePickerInput=$r;exports.Empty=Xn;exports.Footer=gs;exports.Form=ys;exports.FormGroup=ac;exports.FormHint=ic;exports.FormItem=Hn;exports.FormLabel=cc;exports.Helper=Yn;exports.Hero=Qn;exports.HeroExternal=ka;exports.InfoBar=_s;exports.InlineErrorMessage=gr;exports.InlineLoading=xs;exports.Input=Ce;exports.InputGroup=ks;exports.Item=Is;exports.Label=Un;exports.Link=he;exports.List=qt;exports.ListItem=bs;exports.Loading=kr;exports.MainNavigation=ws;exports.MainNavigationContext=Pr;exports.MainNavigationItem=uc;exports.Modal=Mr;exports.ModalFooter=Cs;exports.ModalWrapper=Ts;exports.Module=Fc;exports.ModuleBody=Hc;exports.ModuleFooter=zc;exports.ModuleHeader=Wc;exports.NotificationActionButton=xc;exports.NotificationButton=Es;exports.NotificationTextDetails=Dr;exports.NumberInput=Ss;exports.Pagination=Ir;exports.PasswordInput=Ws;exports.RadioButton=Rs;exports.ReadMore=Ps;exports.Search=yr;exports.SecondaryNavigation=As;exports.SecondaryNavigationTitle=Ds;exports.Select=Pt;exports.SelectItem=At;exports.SelectItemGroup=Xc;exports.Sidebar=Qc;exports.SidebarBackButton=rl;exports.SidebarContentBody=el;exports.SidebarContentHeader=Jc;exports.SidebarHeader=Zc;exports.SidebarScroll=tl;exports.Slider=Ms;exports.StepNavigation=Gc;exports.StepNavigationItem=Kc;exports.Story=$s;exports.SubNavigation=dc;exports.SubNavigationContent=gc;exports.SubNavigationFilter=vc;exports.SubNavigationGroup=_c;exports.SubNavigationHeader=pc;exports.SubNavigationItem=fc;exports.SubNavigationLink=hc;exports.SubNavigationList=yc;exports.SubNavigationTitle=mc;exports.Tab=ol;exports.TabContent=qs;exports.Table=Ns;exports.TablePagination=Ls;exports.TableSorting=Ec;exports.Tabs=Fs;exports.Tag=br;exports.Text=Ue;exports.TextArea=Hs;exports.TextInput=Lr;exports.ToastNotification=wc;exports.Toggle=zs;exports.Tooltip=Rr;exports.Unit=Sl;exports.User=il;exports.Value=Ol;exports.WFPCoreContext=It;exports.WFPCoreProvider=uo;exports.Wrapper=Be;exports.buttonKinds=Ta;exports.colors=Pl;exports.defaultWFPContext=Mt;exports.mdxComponents=qc;exports.notificationtypes=Sa;exports.pageWidths=ha;exports.tooltipStyle=ec;exports.tooltipStyleDark=tc;exports.uniqueId=Os;exports.useInput=Te;exports.useIsomorphicLayoutEffect=Ys;exports.useMainNavigation=Ar;exports.useMediaQuery=Dl;exports.useTab=Bs;exports.useTheme=kl;exports.withWFPCoreSettings=Rl;
103
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d=z,l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},i=Symbol.for("react.portal"),h=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ye.createPortal=function(m,f){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error("Target container is not a DOM element.");return r(m,f,null,v)},ye.flushSync=function(m){var f=h.T,v=l.p;try{if(h.T=null,l.p=2,m)return m()}finally{h.T=f,l.p=v,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ye.preconnect=function(m,f){typeof m=="string"&&m?f!=null&&typeof f!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(f)):f!=null&&typeof f.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(f.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(m)),typeof m=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,l.d.C(m,f))},ye.prefetchDNS=function(m){if(typeof m!="string"||!m)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(m));else if(1<arguments.length){var f=arguments[1];typeof f=="object"&&f.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(f)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(f))}typeof m=="string"&&l.d.D(m)},ye.preinit=function(m,f){if(typeof m=="string"&&m?f==null||typeof f!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(f)):f.as!=="style"&&f.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(f.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(m)),typeof m=="string"&&f&&typeof f.as=="string"){var v=f.as,w=n(v,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,x=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;v==="style"?l.d.S(m,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:w,integrity:y,fetchPriority:x}):v==="script"&&l.d.X(m,{crossOrigin:w,integrity:y,fetchPriority:x,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ye.preinitModule=function(m,f){var v="";if(typeof m=="string"&&m||(v+=" The `href` argument encountered was "+o(m)+"."),f!==void 0&&typeof f!="object"?v+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&f.as!=="script"&&(v+=" The `as` option encountered was "+s(f.as)+"."),v)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",v);else switch(v=f&&typeof f.as=="string"?f.as:"script",v){case"script":break;default:v=s(v),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',v,m)}typeof m=="string"&&(typeof f=="object"&&f!==null?(f.as==null||f.as==="script")&&(v=n(f.as,f.crossOrigin),l.d.M(m,{crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})):f==null&&l.d.M(m))},ye.preload=function(m,f){var v="";if(typeof m=="string"&&m||(v+=" The `href` argument encountered was "+o(m)+"."),f==null||typeof f!="object"?v+=" The `options` argument encountered was "+o(f)+".":typeof f.as=="string"&&f.as||(v+=" The `as` option encountered was "+o(f.as)+"."),v&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',v),typeof m=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){v=f.as;var w=n(v,f.crossOrigin);l.d.L(m,v,{crossOrigin:w,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ye.preloadModule=function(m,f){var v="";typeof m=="string"&&m||(v+=" The `href` argument encountered was "+o(m)+"."),f!==void 0&&typeof f!="object"?v+=" The `options` argument encountered was "+o(f)+".":f&&"as"in f&&typeof f.as!="string"&&(v+=" The `as` option encountered was "+o(f.as)+"."),v&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',v),typeof m=="string"&&(f?(v=n(f.as,f.crossOrigin),l.d.m(m,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:v,integrity:typeof f.integrity=="string"?f.integrity:void 0})):l.d.m(m))},ye.requestFormReset=function(m){l.d.r(m)},ye.unstable_batchedUpdates=function(m,f){return m(f)},ye.useFormState=function(m,f,v){return c().useFormState(m,f,v)},ye.useFormStatus=function(){return c().useHostTransitionStatus()},ye.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ye}var pn;function Ia(){if(pn)return Nt.exports;pn=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),Nt.exports=Da()):Nt.exports=Ma(),Nt.exports}var ss=Ia();const os=Dt(ss);function La(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,s;for(s=0;s<n.length;s++)o=n[s],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},De.apply(this,arguments)}var mn=function(t){return t.reduce(function(r,n){var o=n[0],s=n[1];return r[o]=s,r},{})},hn=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,xe="top",je="bottom",Ne="right",be="left",Er="auto",mt=[xe,je,Ne,be],Xe="start",dt="end",Ba="clippingParents",as="viewport",at="popper",qa="reference",vn=mt.reduce(function(e,t){return e.concat([t+"-"+Xe,t+"-"+dt])},[]),is=[].concat(mt,[Er]).reduce(function(e,t){return e.concat([t,t+"-"+Xe,t+"-"+dt])},[]),Fa="beforeRead",Ha="read",Wa="afterRead",za="beforeMain",Ua="main",Ya="afterMain",Va="beforeWrite",Ga="write",Ka="afterWrite",Xa=[Fa,Ha,Wa,za,Ua,Ya,Va,Ga,Ka];function Re(e){return e?(e.nodeName||"").toLowerCase():null}function we(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ze(e){var t=we(e).Element;return e instanceof t||e instanceof Element}function Ee(e){var t=we(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function jr(e){if(typeof ShadowRoot>"u")return!1;var t=we(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qa(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!Ee(s)||!Re(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(c){var d=o[c];d===!1?s.removeAttribute(c):s.setAttribute(c,d===!0?"":d)}))})}function Za(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],s=t.attributes[n]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),d=c.reduce(function(l,i){return l[i]="",l},{});!Ee(o)||!Re(o)||(Object.assign(o.style,d),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const Ja={name:"applyStyles",enabled:!0,phase:"write",fn:Qa,effect:Za,requires:["computeStyles"]};function Oe(e){return e.split("-")[0]}var We=Math.max,kt=Math.min,Qe=Math.round;function dr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cs(){return!/^((?!chrome|android).)*safari/i.test(dr())}function Ze(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&Ee(e)&&(o=e.offsetWidth>0&&Qe(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Qe(n.height)/e.offsetHeight||1);var c=ze(e)?we(e):window,d=c.visualViewport,l=!cs()&&r,i=(n.left+(l&&d?d.offsetLeft:0))/o,h=(n.top+(l&&d?d.offsetTop:0))/s,m=n.width/o,f=n.height/s;return{width:m,height:f,top:h,right:i+m,bottom:h+f,left:i,x:i,y:h}}function Nr(e){var t=Ze(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ls(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&jr(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Me(e){return we(e).getComputedStyle(e)}function ei(e){return["table","td","th"].indexOf(Re(e))>=0}function Fe(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bt(e){return Re(e)==="html"?e:e.assignedSlot||e.parentNode||(jr(e)?e.host:null)||Fe(e)}function gn(e){return!Ee(e)||Me(e).position==="fixed"?null:e.offsetParent}function ti(e){var t=/firefox/i.test(dr()),r=/Trident/i.test(dr());if(r&&Ee(e)){var n=Me(e);if(n.position==="fixed")return null}var o=Bt(e);for(jr(o)&&(o=o.host);Ee(o)&&["html","body"].indexOf(Re(o))<0;){var s=Me(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ht(e){for(var t=we(e),r=gn(e);r&&ei(r)&&Me(r).position==="static";)r=gn(r);return r&&(Re(r)==="html"||Re(r)==="body"&&Me(r).position==="static")?t:r||ti(e)||t}function Cr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lt(e,t,r){return We(e,kt(t,r))}function ri(e,t,r){var n=lt(e,t,r);return n>r?r:n}function us(){return{top:0,right:0,bottom:0,left:0}}function ds(e){return Object.assign({},us(),e)}function fs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ni=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ds(typeof t!="number"?t:fs(t,mt))};function si(e){var t,r=e.state,n=e.name,o=e.options,s=r.elements.arrow,c=r.modifiersData.popperOffsets,d=Oe(r.placement),l=Cr(d),i=[be,Ne].indexOf(d)>=0,h=i?"height":"width";if(!(!s||!c)){var m=ni(o.padding,r),f=Nr(s),v=l==="y"?xe:be,w=l==="y"?je:Ne,y=r.rects.reference[h]+r.rects.reference[l]-c[l]-r.rects.popper[h],x=c[l]-r.rects.reference[l],j=ht(s),O=j?l==="y"?j.clientHeight||0:j.clientWidth||0:0,S=y/2-x/2,E=m[v],_=O-f[h]-m[w],N=O/2-f[h]/2+S,k=lt(E,N,_),D=l;r.modifiersData[n]=(t={},t[D]=k,t.centerOffset=k-N,t)}}function oi(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ls(t.elements.popper,o)&&(t.elements.arrow=o))}const ai={name:"arrow",enabled:!0,phase:"main",fn:si,effect:oi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Je(e){return e.split("-")[1]}var ii={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ci(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Qe(r*o)/o||0,y:Qe(n*o)/o||0}}function yn(e){var t,r=e.popper,n=e.popperRect,o=e.placement,s=e.variation,c=e.offsets,d=e.position,l=e.gpuAcceleration,i=e.adaptive,h=e.roundOffsets,m=e.isFixed,f=c.x,v=f===void 0?0:f,w=c.y,y=w===void 0?0:w,x=typeof h=="function"?h({x:v,y}):{x:v,y};v=x.x,y=x.y;var j=c.hasOwnProperty("x"),O=c.hasOwnProperty("y"),S=be,E=xe,_=window;if(i){var N=ht(r),k="clientHeight",D="clientWidth";if(N===we(r)&&(N=Fe(r),Me(N).position!=="static"&&d==="absolute"&&(k="scrollHeight",D="scrollWidth")),N=N,o===xe||(o===be||o===Ne)&&s===dt){E=je;var M=m&&N===_&&_.visualViewport?_.visualViewport.height:N[k];y-=M-n.height,y*=l?1:-1}if(o===be||(o===xe||o===je)&&s===dt){S=Ne;var H=m&&N===_&&_.visualViewport?_.visualViewport.width:N[D];v-=H-n.width,v*=l?1:-1}}var P=Object.assign({position:d},i&&ii),V=h===!0?ci({x:v,y},we(r)):{x:v,y};if(v=V.x,y=V.y,l){var ee;return Object.assign({},P,(ee={},ee[E]=O?"0":"",ee[S]=j?"0":"",ee.transform=(_.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",ee))}return Object.assign({},P,(t={},t[E]=O?y+"px":"",t[S]=j?v+"px":"",t.transform="",t))}function li(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,c=s===void 0?!0:s,d=r.roundOffsets,l=d===void 0?!0:d,i={placement:Oe(t.placement),variation:Je(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yn(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yn(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ui={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:li,data:{}};var Ct={passive:!0};function di(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,s=o===void 0?!0:o,c=n.resize,d=c===void 0?!0:c,l=we(t.elements.popper),i=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&i.forEach(function(h){h.addEventListener("scroll",r.update,Ct)}),d&&l.addEventListener("resize",r.update,Ct),function(){s&&i.forEach(function(h){h.removeEventListener("scroll",r.update,Ct)}),d&&l.removeEventListener("resize",r.update,Ct)}}const fi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:di,data:{}};var pi={left:"right",right:"left",bottom:"top",top:"bottom"};function Tt(e){return e.replace(/left|right|bottom|top/g,function(t){return pi[t]})}var mi={start:"end",end:"start"};function _n(e){return e.replace(/start|end/g,function(t){return mi[t]})}function Tr(e){var t=we(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Sr(e){return Ze(Fe(e)).left+Tr(e).scrollLeft}function hi(e,t){var r=we(e),n=Fe(e),o=r.visualViewport,s=n.clientWidth,c=n.clientHeight,d=0,l=0;if(o){s=o.width,c=o.height;var i=cs();(i||!i&&t==="fixed")&&(d=o.offsetLeft,l=o.offsetTop)}return{width:s,height:c,x:d+Sr(e),y:l}}function vi(e){var t,r=Fe(e),n=Tr(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=We(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=We(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-n.scrollLeft+Sr(e),l=-n.scrollTop;return Me(o||r).direction==="rtl"&&(d+=We(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:d,y:l}}function Or(e){var t=Me(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ps(e){return["html","body","#document"].indexOf(Re(e))>=0?e.ownerDocument.body:Ee(e)&&Or(e)?e:ps(Bt(e))}function ut(e,t){var r;t===void 0&&(t=[]);var n=ps(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),s=we(n),c=o?[s].concat(s.visualViewport||[],Or(n)?n:[]):n,d=t.concat(c);return o?d:d.concat(ut(Bt(c)))}function fr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gi(e,t){var r=Ze(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function xn(e,t,r){return t===as?fr(hi(e,r)):ze(t)?gi(t,r):fr(vi(Fe(e)))}function yi(e){var t=ut(Bt(e)),r=["absolute","fixed"].indexOf(Me(e).position)>=0,n=r&&Ee(e)?ht(e):e;return ze(n)?t.filter(function(o){return ze(o)&&ls(o,n)&&Re(o)!=="body"}):[]}function _i(e,t,r,n){var o=t==="clippingParents"?yi(e):[].concat(t),s=[].concat(o,[r]),c=s[0],d=s.reduce(function(l,i){var h=xn(e,i,n);return l.top=We(h.top,l.top),l.right=kt(h.right,l.right),l.bottom=kt(h.bottom,l.bottom),l.left=We(h.left,l.left),l},xn(e,c,n));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function ms(e){var t=e.reference,r=e.element,n=e.placement,o=n?Oe(n):null,s=n?Je(n):null,c=t.x+t.width/2-r.width/2,d=t.y+t.height/2-r.height/2,l;switch(o){case xe:l={x:c,y:t.y-r.height};break;case je:l={x:c,y:t.y+t.height};break;case Ne:l={x:t.x+t.width,y:d};break;case be:l={x:t.x-r.width,y:d};break;default:l={x:t.x,y:t.y}}var i=o?Cr(o):null;if(i!=null){var h=i==="y"?"height":"width";switch(s){case Xe:l[i]=l[i]-(t[h]/2-r[h]/2);break;case dt:l[i]=l[i]+(t[h]/2-r[h]/2);break}}return l}function ft(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,s=r.strategy,c=s===void 0?e.strategy:s,d=r.boundary,l=d===void 0?Ba:d,i=r.rootBoundary,h=i===void 0?as:i,m=r.elementContext,f=m===void 0?at:m,v=r.altBoundary,w=v===void 0?!1:v,y=r.padding,x=y===void 0?0:y,j=ds(typeof x!="number"?x:fs(x,mt)),O=f===at?qa:at,S=e.rects.popper,E=e.elements[w?O:f],_=_i(ze(E)?E:E.contextElement||Fe(e.elements.popper),l,h,c),N=Ze(e.elements.reference),k=ms({reference:N,element:S,placement:o}),D=fr(Object.assign({},S,k)),M=f===at?D:N,H={top:_.top-M.top+j.top,bottom:M.bottom-_.bottom+j.bottom,left:_.left-M.left+j.left,right:M.right-_.right+j.right},P=e.modifiersData.offset;if(f===at&&P){var V=P[o];Object.keys(H).forEach(function(ee){var J=[Ne,je].indexOf(ee)>=0?1:-1,X=[xe,je].indexOf(ee)>=0?"y":"x";H[ee]+=V[X]*J})}return H}function xi(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,s=r.rootBoundary,c=r.padding,d=r.flipVariations,l=r.allowedAutoPlacements,i=l===void 0?is:l,h=Je(n),m=h?d?vn:vn.filter(function(w){return Je(w)===h}):mt,f=m.filter(function(w){return i.indexOf(w)>=0});f.length===0&&(f=m);var v=f.reduce(function(w,y){return w[y]=ft(e,{placement:y,boundary:o,rootBoundary:s,padding:c})[Oe(y)],w},{});return Object.keys(v).sort(function(w,y){return v[w]-v[y]})}function bi(e){if(Oe(e)===Er)return[];var t=Tt(e);return[_n(e),t,_n(t)]}function wi(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,c=r.altAxis,d=c===void 0?!0:c,l=r.fallbackPlacements,i=r.padding,h=r.boundary,m=r.rootBoundary,f=r.altBoundary,v=r.flipVariations,w=v===void 0?!0:v,y=r.allowedAutoPlacements,x=t.options.placement,j=Oe(x),O=j===x,S=l||(O||!w?[Tt(x)]:bi(x)),E=[x].concat(S).reduce(function(A,q){return A.concat(Oe(q)===Er?xi(t,{placement:q,boundary:h,rootBoundary:m,padding:i,flipVariations:w,allowedAutoPlacements:y}):q)},[]),_=t.rects.reference,N=t.rects.popper,k=new Map,D=!0,M=E[0],H=0;H<E.length;H++){var P=E[H],V=Oe(P),ee=Je(P)===Xe,J=[xe,je].indexOf(V)>=0,X=J?"width":"height",Y=ft(t,{placement:P,boundary:h,rootBoundary:m,altBoundary:f,padding:i}),te=J?ee?Ne:be:ee?je:xe;_[X]>N[X]&&(te=Tt(te));var ce=Tt(te),le=[];if(s&&le.push(Y[V]<=0),d&&le.push(Y[te]<=0,Y[ce]<=0),le.every(function(A){return A})){M=P,D=!1;break}k.set(P,le)}if(D)for(var u=w?3:1,g=function(q){var I=E.find(function(K){var L=k.get(K);if(L)return L.slice(0,q).every(function(G){return G})});if(I)return M=I,"break"},$=u;$>0;$--){var T=g($);if(T==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const $i={name:"flip",enabled:!0,phase:"main",fn:wi,requiresIfExists:["offset"],data:{_skip:!1}};function bn(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function wn(e){return[xe,Ne,je,be].some(function(t){return e[t]>=0})}function Ei(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,c=ft(t,{elementContext:"reference"}),d=ft(t,{altBoundary:!0}),l=bn(c,n),i=bn(d,o,s),h=wn(l),m=wn(i);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:i,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const ji={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ei};function Ni(e,t,r){var n=Oe(e),o=[be,xe].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=s[0],d=s[1];return c=c||0,d=(d||0)*o,[be,Ne].indexOf(n)>=0?{x:d,y:c}:{x:c,y:d}}function Ci(e){var t=e.state,r=e.options,n=e.name,o=r.offset,s=o===void 0?[0,0]:o,c=is.reduce(function(h,m){return h[m]=Ni(m,t.rects,s),h},{}),d=c[t.placement],l=d.x,i=d.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=i),t.modifiersData[n]=c}const Ti={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ci};function Si(e){var t=e.state,r=e.name;t.modifiersData[r]=ms({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Oi={name:"popperOffsets",enabled:!0,phase:"read",fn:Si,data:{}};function Ri(e){return e==="x"?"y":"x"}function ki(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=o===void 0?!0:o,c=r.altAxis,d=c===void 0?!1:c,l=r.boundary,i=r.rootBoundary,h=r.altBoundary,m=r.padding,f=r.tether,v=f===void 0?!0:f,w=r.tetherOffset,y=w===void 0?0:w,x=ft(t,{boundary:l,rootBoundary:i,padding:m,altBoundary:h}),j=Oe(t.placement),O=Je(t.placement),S=!O,E=Cr(j),_=Ri(E),N=t.modifiersData.popperOffsets,k=t.rects.reference,D=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,H=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(N){if(s){var ee,J=E==="y"?xe:be,X=E==="y"?je:Ne,Y=E==="y"?"height":"width",te=N[E],ce=te+x[J],le=te-x[X],u=v?-D[Y]/2:0,g=O===Xe?k[Y]:D[Y],$=O===Xe?-D[Y]:-k[Y],T=t.elements.arrow,A=v&&T?Nr(T):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:us(),I=q[J],K=q[X],L=lt(0,k[Y],A[Y]),G=S?k[Y]/2-u-L-I-H.mainAxis:g-L-I-H.mainAxis,re=S?-k[Y]/2+u+L+K+H.mainAxis:$+L+K+H.mainAxis,pe=t.elements.arrow&&ht(t.elements.arrow),W=pe?E==="y"?pe.clientTop||0:pe.clientLeft||0:0,ve=(ee=P?.[E])!=null?ee:0,Pe=te+G-ve-W,Ie=te+re-ve,_e=lt(v?kt(ce,Pe):ce,te,v?We(le,Ie):le);N[E]=_e,V[E]=_e-te}if(d){var He,vt=E==="x"?xe:be,zt=E==="x"?je:Ne,ne=N[_],Ae=_==="y"?"height":"width",et=ne+x[vt],tt=ne-x[zt],Ye=[xe,be].indexOf(j)!==-1,rt=(He=P?.[_])!=null?He:0,gt=Ye?et:ne-k[Ae]-D[Ae]-rt+H.altAxis,yt=Ye?ne+k[Ae]+D[Ae]-rt-H.altAxis:tt,nt=v&&Ye?ri(gt,ne,yt):lt(v?gt:et,ne,v?yt:tt);N[_]=nt,V[_]=nt-ne}t.modifiersData[n]=V}}const Pi={name:"preventOverflow",enabled:!0,phase:"main",fn:ki,requiresIfExists:["offset"]};function Ai(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Di(e){return e===we(e)||!Ee(e)?Tr(e):Ai(e)}function Mi(e){var t=e.getBoundingClientRect(),r=Qe(t.width)/e.offsetWidth||1,n=Qe(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Ii(e,t,r){r===void 0&&(r=!1);var n=Ee(t),o=Ee(t)&&Mi(t),s=Fe(t),c=Ze(e,o,r),d={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Re(t)!=="body"||Or(s))&&(d=Di(t)),Ee(t)?(l=Ze(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Sr(s))),{x:c.left+d.scrollLeft-l.x,y:c.top+d.scrollTop-l.y,width:c.width,height:c.height}}function Li(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(d){if(!r.has(d)){var l=t.get(d);l&&o(l)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),n}function Bi(e){var t=Li(e);return Xa.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function qi(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Fi(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var $n={placement:"bottom",modifiers:[],strategy:"absolute"};function En(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Hi(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?$n:o;return function(d,l,i){i===void 0&&(i=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},$n,s),modifiersData:{},elements:{reference:d,popper:l},attributes:{},styles:{}},m=[],f=!1,v={state:h,setOptions:function(j){var O=typeof j=="function"?j(h.options):j;y(),h.options=Object.assign({},s,h.options,O),h.scrollParents={reference:ze(d)?ut(d):d.contextElement?ut(d.contextElement):[],popper:ut(l)};var S=Bi(Fi([].concat(n,h.options.modifiers)));return h.orderedModifiers=S.filter(function(E){return E.enabled}),w(),v.update()},forceUpdate:function(){if(!f){var j=h.elements,O=j.reference,S=j.popper;if(En(O,S)){h.rects={reference:Ii(O,ht(S),h.options.strategy==="fixed"),popper:Nr(S)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(H){return h.modifiersData[H.name]=Object.assign({},H.data)});for(var E=0;E<h.orderedModifiers.length;E++){if(h.reset===!0){h.reset=!1,E=-1;continue}var _=h.orderedModifiers[E],N=_.fn,k=_.options,D=k===void 0?{}:k,M=_.name;typeof N=="function"&&(h=N({state:h,options:D,name:M,instance:v})||h)}}}},update:qi(function(){return new Promise(function(x){v.forceUpdate(),x(h)})}),destroy:function(){y(),f=!0}};if(!En(d,l))return v;v.setOptions(i).then(function(x){!f&&i.onFirstUpdate&&i.onFirstUpdate(x)});function w(){h.orderedModifiers.forEach(function(x){var j=x.name,O=x.options,S=O===void 0?{}:O,E=x.effect;if(typeof E=="function"){var _=E({state:h,name:j,instance:v,options:S}),N=function(){};m.push(_||N)}})}function y(){m.forEach(function(x){return x()}),m=[]}return v}}var Wi=[fi,Oi,ui,Ja,Ti,$i,Pi,ai,ji],zi=Hi({defaultModifiers:Wi}),rr,jn;function Ui(){if(jn)return rr;jn=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(s,c){if(s===c)return!0;if(s&&c&&typeof s=="object"&&typeof c=="object"){if(s.constructor!==c.constructor)return!1;var d,l,i;if(Array.isArray(s)){if(d=s.length,d!=c.length)return!1;for(l=d;l--!==0;)if(!o(s[l],c[l]))return!1;return!0}var h;if(t&&s instanceof Map&&c instanceof Map){if(s.size!==c.size)return!1;for(h=s.entries();!(l=h.next()).done;)if(!c.has(l.value[0]))return!1;for(h=s.entries();!(l=h.next()).done;)if(!o(l.value[1],c.get(l.value[0])))return!1;return!0}if(r&&s instanceof Set&&c instanceof Set){if(s.size!==c.size)return!1;for(h=s.entries();!(l=h.next()).done;)if(!c.has(l.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(c)){if(d=s.length,d!=c.length)return!1;for(l=d;l--!==0;)if(s[l]!==c[l])return!1;return!0}if(s.constructor===RegExp)return s.source===c.source&&s.flags===c.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof c.valueOf=="function")return s.valueOf()===c.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof c.toString=="function")return s.toString()===c.toString();if(i=Object.keys(s),d=i.length,d!==Object.keys(c).length)return!1;for(l=d;l--!==0;)if(!Object.prototype.hasOwnProperty.call(c,i[l]))return!1;if(e&&s instanceof Element)return!1;for(l=d;l--!==0;)if(!((i[l]==="_owner"||i[l]==="__v"||i[l]==="__o")&&s.$$typeof)&&!o(s[i[l]],c[i[l]]))return!1;return!0}return s!==s&&c!==c}return rr=function(c,d){try{return o(c,d)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},rr}var Yi=Ui();const Vi=Dt(Yi);var Gi=[],Ki=function(t,r,n){n===void 0&&(n={});var o=F.useRef(null),s={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Gi},c=F.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=c[0],l=c[1],i=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var w=v.state,y=Object.keys(w.elements);ss.flushSync(function(){l({styles:mn(y.map(function(x){return[x,w.styles[x]||{}]})),attributes:mn(y.map(function(x){return[x,w.attributes[x]]}))})})},requires:["computeStyles"]}},[]),h=F.useMemo(function(){var f={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[i,{name:"applyStyles",enabled:!1}])};return Vi(o.current,f)?o.current||f:(o.current=f,f)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,i]),m=F.useRef();return hn(function(){m.current&&m.current.setOptions(h)},[h]),hn(function(){if(!(t==null||r==null)){var f=n.createPopper||zi,v=f(t,r,h);return m.current=v,function(){v.destroy(),m.current=null}}},[t,r,n.createPopper]),{state:m.current?m.current.state:null,styles:d.styles,attributes:d.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}};function hs(e){var t=F.useRef(e);return t.current=e,F.useCallback(function(){return t.current},[])}var Xi=function(){};function Qi(e){var t=e.initial,r=e.value,n=e.onChange,o=n===void 0?Xi:n;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var s=F.useState(t),c=s[0],d=s[1],l=hs(c),i=F.useCallback(function(m){var f=l(),v=typeof m=="function"?m(f):m;typeof v.persist=="function"&&v.persist(),d(v),typeof o=="function"&&o(v)},[l,o]),h=r!==void 0;return[h?r:c,h?o:i]}function vs(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:function(){return null}}}}var Zi=["styles","attributes"],Nn={getBoundingClientRect:vs()},Cn={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function Ji(e,t){var r,n,o;e===void 0&&(e={}),t===void 0&&(t={});var s=Object.keys(Cn).reduce(function(X,Y){var te;return De({},X,(te={},te[Y]=X[Y]!==void 0?X[Y]:Cn[Y],te))},e),c=F.useMemo(function(){return[{name:"offset",options:{offset:s.offset}}]},Array.isArray(s.offset)?s.offset:[]),d=De({},t,{placement:t.placement||s.placement,modifiers:t.modifiers||c}),l=F.useState(null),i=l[0],h=l[1],m=F.useState(null),f=m[0],v=m[1],w=Qi({initial:s.defaultVisible,value:s.visible,onChange:s.onVisibleChange}),y=w[0],x=w[1],j=F.useRef();F.useEffect(function(){return function(){return clearTimeout(j.current)}},[]);var O=Ki(s.followCursor?Nn:i,f,d),S=O.styles,E=O.attributes,_=La(O,Zi),N=_.update,k=hs({visible:y,triggerRef:i,tooltipRef:f,finalConfig:s}),D=F.useCallback(function(X){return Array.isArray(s.trigger)?s.trigger.includes(X):s.trigger===X},Array.isArray(s.trigger)?s.trigger:[s.trigger]),M=F.useCallback(function(){clearTimeout(j.current),j.current=window.setTimeout(function(){return x(!1)},s.delayHide)},[s.delayHide,x]),H=F.useCallback(function(){clearTimeout(j.current),j.current=window.setTimeout(function(){return x(!0)},s.delayShow)},[s.delayShow,x]),P=F.useCallback(function(){k().visible?M():H()},[k,M,H]);F.useEffect(function(){if(k().finalConfig.closeOnOutsideClick){var X=function(te){var ce,le=k(),u=le.tooltipRef,g=le.triggerRef,$=(te.composedPath==null||(ce=te.composedPath())==null?void 0:ce[0])||te.target;$ instanceof Node&&u!=null&&g!=null&&!u.contains($)&&!g.contains($)&&M()};return document.addEventListener("mousedown",X),function(){return document.removeEventListener("mousedown",X)}}},[k,M]),F.useEffect(function(){if(!(i==null||!D("click")))return i.addEventListener("click",P),function(){return i.removeEventListener("click",P)}},[i,D,P]),F.useEffect(function(){if(!(i==null||!D("double-click")))return i.addEventListener("dblclick",P),function(){return i.removeEventListener("dblclick",P)}},[i,D,P]),F.useEffect(function(){if(!(i==null||!D("right-click"))){var X=function(te){te.preventDefault(),P()};return i.addEventListener("contextmenu",X),function(){return i.removeEventListener("contextmenu",X)}}},[i,D,P]),F.useEffect(function(){if(!(i==null||!D("focus")))return i.addEventListener("focus",H),i.addEventListener("blur",M),function(){i.removeEventListener("focus",H),i.removeEventListener("blur",M)}},[i,D,H,M]),F.useEffect(function(){if(!(i==null||!D("hover")))return i.addEventListener("mouseenter",H),i.addEventListener("mouseleave",M),function(){i.removeEventListener("mouseenter",H),i.removeEventListener("mouseleave",M)}},[i,D,H,M]),F.useEffect(function(){if(!(f==null||!D("hover")||!k().finalConfig.interactive))return f.addEventListener("mouseenter",H),f.addEventListener("mouseleave",M),function(){f.removeEventListener("mouseenter",H),f.removeEventListener("mouseleave",M)}},[f,D,H,M,k]);var V=_==null||(r=_.state)==null||(n=r.modifiersData)==null||(o=n.hide)==null?void 0:o.isReferenceHidden;F.useEffect(function(){s.closeOnTriggerHidden&&V&&M()},[s.closeOnTriggerHidden,M,V]),F.useEffect(function(){if(!s.followCursor||i==null)return;function X(Y){var te=Y.clientX,ce=Y.clientY;Nn.getBoundingClientRect=vs(te,ce),N?.()}return i.addEventListener("mousemove",X),function(){return i.removeEventListener("mousemove",X)}},[s.followCursor,i,N]),F.useEffect(function(){if(!(f==null||N==null||s.mutationObserverOptions==null)){var X=new MutationObserver(N);return X.observe(f,s.mutationObserverOptions),function(){return X.disconnect()}}},[s.mutationObserverOptions,f,N]);var ee=function(Y){return Y===void 0&&(Y={}),De({},Y,{style:De({},Y.style,S.popper)},E.popper,{"data-popper-interactive":s.interactive})},J=function(Y){return Y===void 0&&(Y={}),De({},Y,E.arrow,{style:De({},Y.style,S.arrow),"data-popper-arrow":!0})};return De({getArrowProps:J,getTooltipProps:ee,setTooltipRef:v,setTriggerRef:h,tooltipRef:f,triggerRef:i,visible:y},_)}const ec={duration:100,animation:"fade",theme:"light",arrow:!0},tc={duration:100,animation:"fade",theme:"dark",arrow:!0},Rr=({className:e,dark:t,noPadding:r,children:n,content:o,trigger:s="hover",placement:c="top",createRefWrapper:d,closeOnOutsideClick:l,closeOnTriggerHidden:i,defaultVisible:h,delayHide:m,delayShow:f,followCursor:v,interactive:w,mutationObserverOptions:y,offset:x,onVisibleChange:j,usePortal:O})=>{const{prefix:S}=R(),[E,_]=F.useState(!1),N=C(e,{[`${S}--tooltip`]:!0,[`${S}--tooltip--disable-padding`]:r,[`${S}--tooltip--visible`]:E,[`${S}--tooltip--${s}`]:s,[`${S}--tooltip--dark`]:t}),{getArrowProps:k,getTooltipProps:D,setTooltipRef:M,setTriggerRef:H,visible:P}=Ji({closeOnOutsideClick:l,closeOnTriggerHidden:i,defaultVisible:h,delayHide:m,delayShow:f,followCursor:v,interactive:w,mutationObserverOptions:y,offset:x,onVisibleChange:j,placement:c,trigger:s}),V=C({[`${S}--tooltip--trigger`]:!0}),ee=C(e,{[`${S}--tooltip--trigger`]:!0}),J=!d&&typeof n!="string"?F.cloneElement(n,{ref:H,className:V}):a.jsx("span",{ref:H,className:ee,children:n}),X=te=>{_(te),j&&j(te)},Y=a.jsxs("div",{ref:M,...D({className:N}),children:[typeof o=="function"?o({setVisibility:_,visibilityChange:X}):o,a.jsx("div",{...k({className:`${S}--tooltip__arrow`})})]});return a.jsxs(a.Fragment,{children:[J,P&&O&&a.jsx(rc,{children:Y}),P&&!O&&Y]})};function rc({children:e}){return os.createPortal(e,document.body)}const nc=({children:e,className:t,content:r})=>{const{prefix:n}=R(),o=C({[`${n}--context-menu`]:!0},t);return a.jsx(Rr,{className:o,content:r,noPadding:!0,trigger:"click",children:e})},sc=({className:e,...t})=>{const{prefix:r}=R(),n=C({[`${r}--context-menu__group`]:!0},e);return a.jsx("div",{className:n,...t})},oc=({className:e,...t})=>{const{prefix:r}=R(),n=C({[`${r}--context-menu__item`]:!0},e);return a.jsx("div",{className:n,...t})},gs=({className:e,children:t,labelOne:r,linkTextOne:n,linkHrefOne:o,labelTwo:s,linkTextTwo:c,linkHrefTwo:d,logo:l,metaContent:i,metaLinks:h,secondary:m,pageWidth:f="lg"})=>{const{prefix:v}=R(),w=C(`${v}--footer`,e);return a.jsxs("footer",{className:w,children:[a.jsx(Be,{pageWidth:f,children:a.jsxs("div",{className:`${v}--footer__content`,children:[t?a.jsx("div",{className:`${v}--footer__info`,children:t}):a.jsxs("div",{className:`${v}--footer__info`,children:[a.jsxs("div",{className:`${v}--footer__info__item`,children:[a.jsx("p",{className:`${v}--footer__label`,children:r}),a.jsx("ul",{className:`${v}--footer__list`,children:a.jsx("li",{children:a.jsx(he,{href:o,children:n})})})]}),a.jsxs("div",{className:`${v}--footer__info__item`,children:[a.jsx("p",{className:`${v}--footer__label`,children:s}),a.jsx("ul",{className:`${v}--footer__list`,children:a.jsx("li",{children:a.jsx(he,{href:d,children:c})})})]})]}),a.jsxs("div",{className:`${v}--footer__cta`,children:[l,m&&a.jsx("div",{className:`${v}--footer__secondary`,children:m})]})]})}),a.jsxs(Be,{className:`${v}--footer__meta`,pageWidth:f,children:[h&&a.jsx("div",{className:`${v}--footer__meta__links`,children:h}),i&&a.jsx("div",{className:`${v}--footer__meta__content`,children:i})]})]})};gs.displayName="Footer";const ys=({className:e,children:t,longForm:r=!0,...n})=>{const{prefix:o}=R(),s=C(`${o}--form`,{[`${o}--form-long`]:r===!0},e);return a.jsx("form",{className:s,...n,children:t})};ys.displayName="Form";const ac=({align:e,breakpoint:t,legendText:r,inline:n,children:o,className:s,inputSpacing:c,message:d,messageText:l})=>{const{prefix:i}=R(),h=C(`${i}--form-group__title`,s),m=C(`${i}--fieldset`,{[`${i}--fieldset__inline`]:n,[`${i}--fieldset__align-${e}`]:e,[`${i}--fieldset__breakpoint-${t}`]:t,[`${i}--fieldset__input-spacing-${c}`]:c},s);return a.jsxs("div",{className:m,children:[a.jsx("legend",{className:h,children:r}),a.jsx("div",{className:`${i}--fieldset__content`,children:o}),d?a.jsx("div",{className:`${i}--form__requirements`,children:l}):null]})},ic=({className:e,children:t,description:r})=>{const{prefix:n}=R(),o=C(`${n}--form-hint`,e);return a.jsx(Rr,{content:t,children:a.jsx("div",{className:o,children:a.jsx(Go,{width:"15",height:"15",description:r})})})},cc=({className:e,children:t,id:r,...n})=>{const{prefix:o}=R(),s=C(`${o}--label`,e);return a.jsx("label",{htmlFor:r,className:s,...n,children:t})},_s=({children:e,className:t,id:r,pageWidth:n})=>{const{prefix:o}=R(),s=C(`${o}--info-bar`,t);return a.jsx("div",{id:r,className:s,children:a.jsx(Be,{pageWidth:n,children:e})})};_s.displayName="InfoBar";const kr=e=>{const{active:t=!0,className:r,withOverlay:n=!0,small:o=!1,...s}=e,{prefix:c}=R(),d=C(`${c}--loading`,r,{[`${c}--loading--small`]:o,[`${c}--loading--stop`]:!t}),l=C(`${c}--loading-overlay`,{[`${c}--loading-overlay--stop`]:!t}),i=a.jsx("div",{...s,"aria-live":t?"assertive":"off",className:d,children:a.jsxs("svg",{className:`${c}--loading__svg`,viewBox:"-75 -75 150 150",children:[a.jsx("title",{children:"Loading"}),null,a.jsx("circle",{className:void 0,cx:"0",cy:"0",r:"37.5"})]})});return n?a.jsx("div",{className:l,children:i}):i};kr.displayName="Loading";const xs=e=>{const{className:t,success:r,description:n,onSuccess:o,successDelay:s,...c}=e,{prefix:d}=R(),l=C(`${d}--inline-loading`,t),i=()=>r?(setTimeout(()=>{o&&o()},s),a.jsx("svg",{className:`${d}--inline-loading__checkmark-container ${d}--inline-loading__svg`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",children:a.jsx("polyline",{className:`${d}--inline-loading__checkmark`,points:"0.74 3.4 3.67 6.34 9.24 0.74"})})):a.jsx(kr,{small:!0,withOverlay:!1}),h=a.jsx("p",{className:`${d}--inline-loading__text`,children:n});return a.jsxs("div",{className:l,...c,children:[a.jsx("div",{className:`${d}--inline-loading__animation`,children:i()}),n&&h]})};xs.displayName="InlineLoading";const qt=F.forwardRef(({children:e,className:t,colon:r,kind:n,small:o,...s},c)=>{const{prefix:d}=R(),l=C(`${d}--list`,t,{[`${d}--list--${n}`]:n,[`${d}--list--small`]:o,[`${d}--list--colon`]:r}),i={...s};return a.jsx("ul",{className:l,...i,ref:c,children:e})});qt.displayName="List";const bs=({children:e,className:t,title:r,kind:n,icon:o,...s})=>{const c=C("wfp--list__element",t,{"wfp--list-item--checkmark":n==="checkmark","wfp--list-item--cross":n==="cross"});return a.jsxs("li",{className:c,...s,children:[n==="cross"&&a.jsx(Bo,{className:"wfp--list-item__icon"}),n==="checkmark"&&a.jsx(Co,{className:"wfp--list-item__icon"}),o&&a.jsx("span",{className:"wfp--list__element__icon",children:o}),r&&a.jsx("span",{className:"wfp--list__element__title",children:r}),a.jsx("span",{className:"wfp--list__element__content",children:e})]})},Pr=z.createContext({onChangeSub:e=>e,activeMenuItem:null,openMobileMenu:!1,toggleMenu:()=>{},setOpenMobileMenu:()=>{}}),lc=({toggleMenu:e,prefix:t})=>a.jsx(qe,{className:`${t}--main-navigation__button`,onClick:e,children:"Menu"}),ws=({children:e,components:t={},className:r,id:n,logo:o,line:s=!1,logoRibbon:c="default",mobilePageWidth:d,pageWidth:l})=>{const{prefix:i}=R(),[h,m]=z.useState(!1),[f,v]=z.useState(null),w=(_,N,k)=>{if(k&&k.preventDefault(),_==="close")v(null);else if(_==="toggle"){const D=f===null||f!==N?N:null;D!==void 0&&v(D)}},y=()=>{m(!h)},x=C(`${i}--main-navigation`,{[`${i}--main-navigation--line`]:s},r),j=C(`${i}--main-navigation__list`,{[`${i}--main-navigation__list--open`]:h}),O={Wrapper:Be,MobileButton:lc,...t},S=O.Wrapper,E=O.MobileButton;return a.jsx("nav",{id:n,className:x,children:a.jsx(Pr.Provider,{value:{activeMenuItem:f,openMobileMenu:h,toggleMenu:y,onChangeSub:w,setOpenMobileMenu:m},children:a.jsxs(S,{pageWidth:l,mobilePageWidth:d,className:`${i}--main-navigation__wrapper`,children:[a.jsxs("div",{className:`${i}--main-navigation__logo-wrapper`,children:[a.jsx(E,{toggleMenu:y,prefix:i,openMobileMenu:h,children:"Menu"}),a.jsx("div",{className:`${i}--main-navigation__logo`,children:o})]}),a.jsx("ul",{className:j,children:e})]})})})};ws.displayName="MainNavigation";function Ar(){return z.useContext(Pr)}Ar.displayName="useMainNavigation";const uc=({className:e,children:t,kind:r,subNavigation:n,subNavWideAsContent:o})=>{const{prefix:s}=R(),{onChangeSub:c,activeMenuItem:d}=Ar(),[l]=z.useState(Math.random().toString(36)),i=z.useRef(null);z.useEffect(()=>(l===d?document.addEventListener("mousedown",h):document.removeEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}),[d]);const h=y=>{i?.current&&!i.current.contains(y.target)&&c("close")},m=C(e,{[`${s}--main-navigation__item`]:!0,[`${s}--main-navigation__item--open`]:l===d,[`${s}--content-width`]:n&&o}),f=C({[`${s}--main-navigation__trigger`]:!0,[`${s}--main-navigation__trigger--has-sub`]:n,[`${s}--main-navigation__trigger--open`]:l===d}),v=l===d?Lt:hr,w=C({[`${s}--main-navigation__sub`]:!0,[`${s}--main-navigation__sub--${r}`]:r,[`${s}--main-navigation__sub--open`]:l===d});return a.jsxs("li",{className:m,ref:i,children:[a.jsxs("div",{className:f,onClick:()=>c("toggle",l),children:[t,n&&a.jsx(v,{className:`${s}--main-navigation__trigger__icon`,description:l===d?"close icon":"expand icon"})]}),n&&a.jsx("div",{className:w,children:n})]})},dc=({children:e,...t})=>a.jsx("div",{...t,children:e}),fc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__item`,t);return a.jsx("div",{className:o,...r,children:e})},pc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__header`,t);return a.jsx("div",{className:o,...r,children:e})},mc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__title`,t);return a.jsx("div",{className:o,...r,children:e})},hc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__link`,t);return a.jsx("div",{className:o,...r,children:e})},vc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__filter`,t);return a.jsx("div",{className:o,...r,children:e})},gc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__content`,t);return a.jsx("div",{className:o,...r,children:e})},yc=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sub-navigation__list`,t);return a.jsx("div",{className:o,...r,children:e})},_c=({children:e,columns:t,className:r,title:n,...o})=>{const{prefix:s}=R(),c=C(`${s}--sub-navigation__group`,{className:r},{[`${s}--sub-navigation__group--columns`]:t,[`${s}--sub-navigation__group--columns--${t}`]:t});return a.jsxs("div",{className:c,...o,children:[n&&a.jsx("h3",{className:`${s}--sub-navigation__group__title`,children:n}),a.jsx("div",{children:e})]})},$s=({children:e,className:t,...r})=>{const{prefix:n}=R(),o=C({[`${n}--story`]:!0,[`${t}`]:t});return a.jsx("div",{className:o,...r,children:e})},Es=({ariaLabel:e="close notification",className:t,iconDescription:r="close icon",type:n="button",renderIcon:o=Lt,name:s,notificationType:c="toast",...d})=>{const{prefix:l}=R(),i=C(t,{[`${l}--${c}-notification__close-button`]:c}),h=C({[`${l}--${c}-notification__close-icon`]:c});return a.jsx("button",{...d,type:n,"aria-label":r,title:r,className:i,children:o&&a.jsx(o,{"aria-label":e,className:h,name:s})})},xc=({children:e,className:t,onClick:r,...n})=>{const{prefix:o}=R(),s=C(t,`${o}--inline-notification__action-button`);return a.jsx(qe,{className:s,kind:"ghost",onClick:r,small:!0,...n,children:e})},Dr=({title:e,subtitle:t,caption:r,notificationType:n="toast",children:o,...s})=>{const{prefix:c}=R();return n==="toast"?a.jsxs("div",{...s,className:`${c}--toast-notification__details`,children:[e&&a.jsx("h3",{className:`${c}--toast-notification__title`,children:e}),a.jsx("div",{className:`${c}--toast-notification__subtitle`,children:t}),a.jsx("div",{className:`${c}--toast-notification__caption`,children:r}),o]}):a.jsxs("div",{...s,className:`${c}--inline-notification__text-wrapper`,children:[e&&a.jsx("p",{className:`${c}--inline-notification__title`,children:e}),a.jsx("div",{className:`${c}--inline-notification__subtitle`,children:o||t})]})},bc={error:In,success:Ro,warning:Ln,info:Yo},js=({iconDescription:e,kind:t="info",notificationType:r="toast"})=>{const{prefix:n}=R(),o=t?bc[t]:void 0;return o?a.jsx(o,{className:`${n}--${r}-notification__icon`,children:a.jsx("title",{children:e})}):null},wc=({role:e="alert",notificationType:t="toast",onClose:r=()=>{},onCloseButtonClick:n=()=>{},iconDescription:o="closes notification",statusIconDescription:s,className:c,subtitle:d,title:l="provide a title",kind:i="error",lowContrast:h=!0,hideCloseButton:m=!1,children:f,timeout:v=0,...w})=>{const{prefix:y}=R(),[x,j]=F.useState(!0),O=C(c,{[`${y}--toast-notification`]:!0,[`${y}--toast-notification--low-contrast`]:h,[`${y}--toast-notification--${i}`]:i}),S=N=>{(!r||r(N)!==!1)&&j(!1)};function E(N){n(N),S(N)}const _=F.useRef(r);return F.useEffect(()=>{_.current=r}),F.useEffect(()=>{if(!v)return;const N=window.setTimeout(k=>{j(!1),_.current&&_.current(k)},v);return()=>{window.clearTimeout(N)}},[v]),x?a.jsxs("div",{...w,role:e,className:O,children:[a.jsx(js,{kind:i,iconDescription:s||`${i} icon`,notificationType:t}),a.jsx(Dr,{title:l,subtitle:d,notificationType:t,children:f}),!m&&a.jsx(Es,{iconDescription:o,notificationType:t,onClick:E})]}):null},pt=F.forwardRef((e,t)=>{const{actions:r,role:n="alert",notificationType:o="inline",icon:s,statusIconDescription:c,className:d,subtitle:l,title:i,kind:h="info",lowContrast:m=!0,hideCloseButton:f=!1,children:v,...w}=e,{prefix:y}=R(),x=C(d,{[`${y}--inline-notification`]:!0,[`${y}--block-notification`]:!0,[`${y}--inline-notification--low-contrast`]:m,[`${y}--inline-notification--${h}`]:h,[`${y}--inline-notification--hide-close-button`]:f});return a.jsx("div",{...w,ref:t,role:n,className:x,children:a.jsxs("div",{className:`${y}--inline-notification__details`,children:[s===void 0&&a.jsx(js,{notificationType:o,kind:h,iconDescription:c||`${h} icon`}),s&&a.jsx("div",{className:`${y}--${o}-notification__icon`,children:s}),a.jsx(Dr,{title:i,subtitle:l,notificationType:o,children:v}),r&&a.jsx("div",{className:`${y}--inline-notification__actions-wrapper`,children:r})]})})});pt.displayName="Callout";const Ns=({className:e,children:t,responsive:r,withBorder:n,...o})=>{const{prefix:s}=R(),c=C(`${s}--table`,{[`${s}--table--responsive`]:r,[`${s}--table--with-border`]:n},e);return a.jsx("table",{...o,className:c,children:t})},$c=({className:e,isSorted:t,isSortedDesc:r,sortType:n})=>{const o=C(e,"wfp--table--sorting",{"wfp--table--is-sorted":t,"wfp--table--is-sortable":n});return a.jsx("span",{className:o,children:t?r?a.jsx($o,{}):a.jsx(jo,{}):""})},Ec=Object.freeze(Object.defineProperty({__proto__:null,default:$c},Symbol.toStringTag,{value:"Module"})),Ue=F.forwardRef(({as:e,children:t,className:r,kind:n,spacingTop:o,spacingBottom:s,...c},d)=>{const{prefix:l}=R(),i=e||"div",h=C(`${l}--text`,n&&`${l}--text__${n}`,o&&`${l}--text__spacing-top-${o}`,s&&`${l}--text__spacing-bottom-${s}`,r);return a.jsx(i,{ref:d,className:h,...c,children:t})});Ue.displayName="Text";const jc=e=>a.jsx($s,{...e}),Nc=e=>{const t=typeof e.children=="string"?e.children.substring(0,1):"";return t==="✓"||t==="✗"?a.jsx(bs,{kind:t==="✓"?"checkmark":"cross",...e,children:e.children.substring(1,e.children.length)}):a.jsx("li",{...e,children:e.children})},Cc=({children:e,...t})=>a.jsx(qt,{...t,kind:"bullets",children:e}),Tc=({children:e,...t})=>a.jsx(qt,{...t,kind:"ordered",children:e}),Sc=e=>a.jsx(Ue,{kind:"h1",...e,children:e.children}),Oc=e=>a.jsx(Ue,{kind:"h2",...e,children:e.children}),Rc=e=>a.jsx(Ue,{kind:"h3",...e,children:e.children}),kc=e=>a.jsx(Ue,{kind:"h4",...e,children:e.children}),Pc=e=>a.jsx(Ue,{kind:"h5",...e,children:e.children}),Ac=e=>a.jsx("p",{...e,children:e.children}),Dc=e=>a.jsx(Ns,{...e,children:e.children}),Mc=e=>a.jsx(he,{inline:!0,...e,children:e.children}),Ic=e=>{const t=R();return a.jsx("code",{className:`${t.prefix}--story__code`,...e,children:e.children})},Lc=e=>{const t=R();return a.jsx("pre",{className:`${t.prefix}--story__pre`,...e,children:e.children})},Bc=({children:e,...t})=>Array.isArray(e)&&e.length>=2&&e[0].props?a.jsx(pt,{kind:"info",...t,subtitle:e.map((r,n)=>{if(n>0)return r}),title:e[0].props.children}):a.jsx(pt,{kind:"info",...t,subtitle:e}),qc={wrapper:jc,h1:Sc,h2:Oc,h3:Rc,h4:kc,h5:Pc,p:Ac,li:Nc,a:Mc,ul:Cc,ol:Tc,code:Ic,pre:Lc,table:Dc,blockquote:Bc,Button:qe,Accordion:mr,AccordionItem:vr},Cs=({passiveModal:e,secondaryButtonText:t,onSecondaryButtonClick:r,primaryButtonText:n,onRequestSubmit:o,primaryButtonDisabled:s,secondaryButtonDisabled:c,danger:d,primaryButtonRef:l,secondaryButtonRef:i})=>{const{prefix:h}=R();return e?null:a.jsx("div",{className:`${h}--modal-footer`,children:a.jsxs("div",{className:`${h}--modal__buttons-container`,children:[t&&a.jsx(qe,{kind:"secondary",disabled:c,id:"secondaryButton",onClick:m=>{r&&r(m,"button")},ref:i,children:t}),a.jsx(qe,{kind:d?"danger":"primary",disabled:s,onClick:o,id:"primaryButton",ref:l,children:n})]})})},nr=typeof Element<"u"&&["matches","webkitMatchesSelector","msMatchesSelector"].filter(e=>typeof Element.prototype[e]=="function")[0];function Mr(e){const{modalHeading:t,modalLabel:r,className:n,components:o={},modalSecondaryAction:s,modalAriaLabel:c,passiveModal:d,children:l,elementToAppend:i,backgroundImage:h,open:m,lazyLoad:f,onRequestClose:v=()=>{},onSecondarySubmit:w,iconDescription:y,inPortal:x=!0,hideClose:j,handleBlur:O=()=>{},wide:S,type:E,selectorPrimaryFocus:_,primaryButtonRef:N,secondaryButtonRef:k,...D}=e,{prefix:M}=R(),H=z.useRef(null),P=z.useRef(null),V=z.useRef(null),ee=i||(typeof document<"u"?document.body:void 0),[J,X]=z.useState(!1),Y=G=>{const{selectorsFloatingMenus:re=[`.${M}--overflow-menu-options`,`.${M}--tooltip`,".flatpickr-calendar"]}=e;if(G&&typeof G.closest=="function")return re.some(pe=>G.closest(pe));for(;G;){if(nr&&typeof G[nr]=="function"&&re.some(pe=>G[nr](pe)))return!0;G=G.parentNode}return!1},te=G=>{v(G,"button")},ce=()=>{P.current&&P.current.focus()},le=G=>{O?O({evt:G,innerModal:V,open:m,elementOrParentIsFloatingMenu:Y,focusModal:ce}):V.current&&m&&G.relatedTarget&&!V.current.contains(G.relatedTarget)&&!Y(G.relatedTarget)&&ce()},u=G=>{if(_===!1)return;const re=G.querySelector(_);if(re){re.focus();return}H?.current&&H.current.focus()},g=G=>{P.current&&P.current.offsetWidth&&P.current.offsetHeight&&J&&(u(G.currentTarget),X(!1))};if(m===!1&&f)return null;const T={ModalFooter:Cs,...o}.ModalFooter,A=w||v,q=C({[`${M}--modal`]:!0,[`${M}--modal--wide`]:S,[`${M}--modal--tall`]:!d,[`${M}--modal--background-image`]:h,"is-visible":m,[`${M}--modal--warning`]:E==="warning"||e.warning,[`${M}--modal--danger`]:E==="danger"||e.danger},n),I=j?null:a.jsx("button",{className:`${M}--modal-close`,type:"button",id:"closeButton",onClick:te,ref:H,children:a.jsx(Lt,{className:`${M}--modal-close__icon`,description:y})}),K=a.jsxs("div",{ref:V,role:"dialog",className:`${M}--modal-container`,"aria-label":c,children:[a.jsxs("div",{className:`${M}--modal-header`,children:[d&&I,a.jsxs("div",{children:[r&&a.jsx("h4",{className:`${M}--modal-header__label`,children:r}),a.jsx("h2",{className:`${M}--modal-header__heading`,children:t})]}),s&&a.jsx(a.Fragment,{children:s}),!d&&I]}),a.jsx("div",{className:`${M}--modal-content`,children:l}),a.jsx(T,{...e,prefix:M,onSecondaryButtonClick:A,primaryButtonRef:N,secondaryButtonRef:k})]}),L=a.jsx("div",{...D,onBlur:le,className:q,style:h?{backgroundImage:`url(${h})`}:void 0,role:"presentation",tabIndex:-1,onTransitionEnd:m?g:void 0,ref:P,children:a.jsx("div",{className:`${M}--modal-inner`,children:K})});return x&&ee?os.createPortal(L,ee):L}Mr.displayName="Modal";const Ts=({children:e,customButton:t,id:r,onKeyDown:n,buttonTriggerText:o,buttonTriggerClassName:s,triggerButtonKind:c,disabled:d,handleSubmit:l=()=>{},shouldCloseAfterSubmit:i=!0,...h})=>{const{prefix:m}=R(),f=F.createRef(),[v,w]=F.useState(!1),y=()=>{w(!0)},x=()=>{w(!1),v||(f.current&&f.current.focus(),x&&x())},O={...h,open:v,onRequestClose:x,onRequestSubmit:()=>{l&&(l(x),i&&x())}},S=t?F.cloneElement(t,{disabled:d,onClick:y,inputref:f}):void 0;return a.jsxs("div",{role:"presentation",className:`${m}--modal__wrapper`,onKeyDown:E=>{E.which===27&&(x(),n&&n(E))},children:[t?a.jsx(F.Fragment,{children:S}):a.jsx(qe,{id:r,className:s,disabled:d,kind:c,onClick:y,ref:f,children:o}),a.jsx(Mr,{...O,children:e})]})};Ts.displayName="ModalWrapper";const Fc=({dark:e,light:t,children:r,className:n,margin:o,fullHeight:s,noMargin:c,withHover:d,...l})=>{const{prefix:i}=R(),h=C({[`${i}--module--dark`]:e,[`${i}--module--no-margin`]:c||o===void 0,[`${i}--module--full-height`]:s,[`${i}--module--margin-xs`]:o==="xs",[`${i}--module--margin-md`]:o==="md",[`${i}--module--margin-lg`]:o==="lg",[`${i}--module--light`]:t,[`${i}--module--with-hover`]:d},n,[`${i}--module`]);return a.jsx("div",{className:h,...l,children:a.jsx("div",{className:`${i}--module__inner`,children:r})})},Hc=({children:e,className:t,centered:r,noPadding:n,...o})=>{const s=C("wfp--module__content",t,{"wfp--module__content--centered":r,"wfp--module__content--no-padding":n});return a.jsx("div",{className:s,...o,children:e})},Wc=({filter:e,children:t,className:r,...n})=>{const o=C("wfp--module__header",r);return a.jsxs("div",{className:o,...n,children:[a.jsx("h1",{className:"wfp--module__title",children:t}),e&&a.jsx("div",{className:"wfp--module__filter",children:e})]})},zc=({children:e,className:t,...r})=>{const n=C("wfp--module__footer",t);return a.jsx("div",{className:n,...r,children:e})},Uc=e=>{const t=parseFloat(e);return Math.floor(t)===t?0:e.split(".")[1].length||0},Tn=(e,t)=>isNaN(e)||!e&&e!==0||isNaN(t)||!t&&t!==0?t:Math.max(e,t),Sn=(e,t)=>isNaN(e)||!e&&e!==0||isNaN(t)||!t&&t!==0?t:Math.min(e,t),Ss=F.forwardRef((e,t)=>{const{className:r,disabled:n,id:o,hideLabel:s,hideControls:c,max:d,min:l,step:i=1,onChange:h=()=>{},onClick:m=()=>{},helperText:f,light:v,pattern:w="[0-9]*"}=e,{prefix:y}=R(),x=Sn(d,Tn(l,e.value)),[j,O]=z.useState(x);z.useEffect(()=>{O(e.value)},[e.value]);const S=z.useRef(null),E=t||S,_=V=>{n||(V.persist(),V.imaginaryTarget=E,O(V.target.value),h(V,parseFloat(V.target.value)))},N=(V,ee)=>{let J=typeof j=="string"?Number(j):j;J=isNaN(J)?0:J;const X=ee==="down"?l!==void 0&&J>l||l===void 0:d!==void 0&&J<d||d===void 0,Y=i.toString();J=ee==="down"?J-i:J+parseFloat(Y),J=Sn(d,Tn(l,J)),J=parseFloat(J.toFixed(Uc(Y))),!n&&X&&(V.persist(),V.imaginaryTarget=E,V.target.value=parseFloat(J),m(V,ee),O(J),h(V,J,ee))},k=C(`${y}--number`,r,{[`${y}--number--light`]:v,[`${y}--number--helpertext`]:f,[`${y}--number--nolabel`]:s,[`${y}--number--nocontrols`]:c}),D={disabled:n,id:o,max:d,min:l,step:i,onChange:_,value:j},M=e,{inputProps:H,wrapperProps:P}=Te({...M,type:"number"});return a.jsx(Ce,{...P,inputWrapperClassName:k,children:a.jsxs("div",{className:`${y}--number__controls`,children:[a.jsx("button",{className:`${y}--number__control-btn up-icon`,type:"button",disabled:n,onClick:V=>N(V,"up"),children:"+"}),a.jsx("button",{className:`${y}--number__control-btn down-icon`,type:"button",disabled:n,onClick:V=>N(V,"down"),children:"−"}),a.jsx("input",{pattern:w,...H,...D,ref:t})]})})});Ss.displayName="NumberInput";const Pt=F.forwardRef((e,t)=>{const{className:r,inline:n,disabled:o,children:s,iconDescription:c,light:d,hideLabel:l}=e,{prefix:i}=R(),h=C({[`${i}--select-input`]:!0,[`${i}--select--inline`]:n,[`${i}--select--light`]:d,[`${i}--select--disabled`]:o},r),m=e,{inputProps:f,wrapperProps:v}=Te({...m,inputClassName:h});return a.jsxs(Ce,{...v,inputWrapperClassName:`${i}--select`,hideLabel:l,children:[a.jsx("select",{...f,ref:t,children:s}),a.jsx(hr,{className:`${i}--select__arrow`,description:c})]})});Pt.displayName="Select";function At({className:e,value:t,disabled:r,hidden:n,text:o,...s}){const{prefix:c}=R(),d=C({[`${c}--select-option`]:!0,[`${e}`]:e});return a.jsx("option",{...s,className:d,value:t,disabled:r,hidden:n,children:o})}At.displayName="SelectItem";let Yc=0;const Ir=e=>{const{backwardText:t="Backward",className:r,forwardText:n="Forward",id:o,itemsPerPageText:s="Items per page:",itemsPerPageFollowsText:c,itemRangeText:d=(g,$,T)=>`${g}-${$} of ${T} items`,pageRangeText:l=(g,$)=>`${g} of ${$} pages`,pageSize:i,pageSizesDisabled:h,pageSizes:m,itemText:f=(g,$)=>`${g}-${$} items`,pageText:v=g=>`page ${g}`,pageNumberText:w="Page Number",pagesUnknown:y=!1,isLastPage:x=!1,pageInputDisabled:j=!1,totalItems:O,onChange:S,page:E=1,..._}=e,[N,k]=z.useState(E),[D,M]=z.useState(e.pageSize?e.pageSize:m[0]),H=z.useState(()=>++Yc)[0],P=g=>{const $=Number(g.target.value);k(1),M($),S?.({page:1,pageSize:$})},V=g=>{const $=Number(g.target.value);$>0&&$<=Math.max(Math.ceil(O/D),1)&&(k($),S?.({page:$,pageSize:D}))},ee=()=>{const g=N+1;k(g),S?.({page:g,pageSize:D})},J=()=>{const g=N-1;k(g),S?.({page:g,pageSize:D})},X=g=>{let $=1;const T=[];for(;$<=g;)T.push(a.jsx(At,{value:$,text:String($)},$)),$++;return T},Y=C("wfp--pagination",r),te=C("wfp--pagination__button","wfp--pagination__button--backward",{"wfp--pagination__button--no-index":j}),ce=o||H,le=Math.max(Math.ceil(O/D),1),u=X(le);return a.jsxs("div",{className:Y,..._,children:[a.jsxs("div",{className:"wfp--pagination__left",children:[!h&&a.jsxs(z.Fragment,{children:[a.jsx("span",{className:"wfp--pagination__text",children:c||s}),a.jsx(Pt,{id:`wfp-pagination-select-${ce}`,labelText:s,hideLabel:!0,inline:!0,onChange:P,value:D,children:m.map(g=>a.jsx(At,{value:g,text:String(g)},g))}),a.jsxs("span",{className:"wfp--pagination__text",children:[" ","  |  "]})]}),a.jsx("span",{className:"wfp--pagination__text",children:y?f(D*(N-1)+1,N*D):d(Math.min(D*(N-1)+1,O),Math.min(N*D,O),O)})]}),a.jsxs("div",{className:"wfp--pagination__right wfp--pagination--inline",children:[a.jsx("span",{className:"wfp--pagination__text",children:y?v(N):l(N,le)}),a.jsx("button",{className:te,onClick:J,disabled:e.disabled||N===1,children:a.jsx(Dn,{className:"wfp--pagination__button-icon",description:t})}),j?null:a.jsx(Pt,{id:`wfp-pagination-select-${+ce+2}`,labelText:s,hideLabel:!0,inline:!0,onChange:V,value:N,children:u}),a.jsx("button",{className:"wfp--pagination__button wfp--pagination__button--forward",onClick:ee,disabled:e.disabled||N===le||x,children:a.jsx(Mn,{className:"wfp--pagination__button-icon",description:n})})]})]})};Ir.displayName="Pagination";let On=0;function Os(e="id"){return On++,`${e}${On}`}const Rs=F.forwardRef((e,t)=>{const{labelText:r,id:n,className:o,value:s,name:c,onChange:d,...l}=e,[i]=z.useState(n||Os()),{prefix:h}=R(),m=C("radioButtonWrapper",o),v=d?{onChange:w=>{d?.(w,s,c)}}:{};return a.jsxs("div",{className:m,children:[a.jsx("input",{...l,ref:t,type:"radio",className:`${h}--radio-button`,...v,id:i,value:s,name:c,checked:e.checked,defaultChecked:e.defaultChecked,disabled:e.disabled}),a.jsxs("label",{htmlFor:i,className:`${h}--radio-button__label`,children:[a.jsx("span",{className:`${h}--radio-button__appearance`}),r]})]})});Rs.displayName="RadioButton";const ks=e=>{const{prefix:t}=R(),{children:r,labelText:n,helperText:o,vertical:s,hideLabel:c,className:d=`${t}--input-group`,wrapperClassName:l,valueSelected:i,defaultSelected:h}=e,[m,f]=z.useState(i||h);z.useEffect(()=>{i!==m&&f(i)},[i,h]);const v=C(`${t}--label`,{[`${t}--visually-hidden`]:c}),w=C(`${t}--form-item`,{[`${t}--input-group__vertical`]:s,wrapperClassName:l}),y=n?a.jsx("span",{className:v,children:n}):null,x=o?a.jsx("div",{className:`${t}--form__helper-text`,children:o}):null;return a.jsx("div",{className:w,children:a.jsxs("div",{className:d,children:[y,x,a.jsx("div",{className:`${t}--input-group-inside`,children:r})]})})};ks.displayName="InputGroup";const Vc=({handleToggleClick:e,link:t,text:r,showMore:n,contentId:o})=>{const{prefix:s}=R(),c={"aria-expanded":n,"aria-controls":o};if(t)return z.cloneElement(t,{onClick:e,...c});{const d=Mo,l=C({[`${s}--read-more__trigger`]:!0,[`${s}--read-more__trigger--expanded`]:n});return a.jsxs(he,{className:l,size:"sm",onClick:e,...c,children:[r,a.jsx(d,{width:"10",height:"10",description:n?"icon up":"icon down"})]})}};function Ps({collapseLink:e,collapseText:t="Show less",children:r,collapsed:n,className:o,disableAutoscroll:s,expandLink:c,expandText:d="Show more",fade:l,maxHeight:i}){const{prefix:h}=R(),[m,f]=z.useState(!1),[v,w]=z.useState(0),y=z.useRef(null),x=z.useRef(null),O=`${An()}-read-more-content`,S=k=>{k.preventDefault();const D=y?.current?.clientHeight;!m&&!s&&setTimeout(()=>{x?.current&&x.current.scrollIntoView({behavior:"smooth",block:"end"})},50),f(!m),D&&w(D)},E=C(o,{[`${h}--read-more`]:!0,[`${h}--read-more--expanded`]:m,[`${h}--read-more--fade`]:l,[`${h}--read-more--max-height`]:i}),_=i?i&&!m?{maxHeight:i}:{maxHeight:v+20}:{undefined:void 0},N=m?{display:"none"}:{display:"block"};return a.jsxs("div",{className:E,children:[a.jsxs("div",{className:`${h}--read-more__content`,style:_,id:O,children:[a.jsx("div",{className:`${h}--read-more__fake-height`,ref:x,style:{height:`${v+30}px`}}),a.jsxs("div",{ref:y,children:[(m||!n)&&r,n&&a.jsx("div",{style:N,children:n})]})]}),a.jsx(Vc,{handleToggleClick:S,showMore:m,link:m?e:c,text:m?t:d,contentId:O})]})}Ps.displayName="ReadMore";function As({additional:e,children:t,className:r,id:n,pageWidth:o,...s}){const{prefix:c}=R(),d=C(`${c}--secondary-navigation`,r);return a.jsx("div",{id:n,className:d,...s,children:a.jsxs(Be,{pageWidth:o,className:`${c}--secondary-navigation__wrapper`,children:[a.jsx("div",{className:`${c}--secondary-navigation__list`,children:t}),e&&a.jsx("div",{className:`${c}--secondary-navigation__additional`,children:e})]})})}As.displayName="SecondaryNavigation";function Ds({className:e,children:t}){const{prefix:r}=R(),n=C(`${r}--secondary-navigation__title`,e);return a.jsx("h1",{className:n,children:t})}Ds.displayName="SecondaryNavigationTitle";function Gc({inline:e,small:t,vertical:r,className:n,role:o,children:s}){const{prefix:c}=R(),[d]=z.useState(!0),i=z.Children.map(s,m=>m),h={tabs:C(n,{[`${c}--step-navigation`]:!0,[`${c}--step-navigation--vertical`]:r,[`${c}--step-navigation--small`]:t,[`${c}--step-navigation--regular`]:!t}),tablist:C(`${c}--step-navigation__nav`,{[`${c}--step-navigation__nav--hidden`]:d,[`${c}--step-navigation__nav--inline`]:e})};return a.jsx(a.Fragment,{children:a.jsx("nav",{className:h.tabs,role:o,children:a.jsx("ul",{role:"tablist",className:h.tablist,children:i})})})}const Kc=({className:e,handleTabClick:t=()=>{},index:r,label:n,status:o,helperText:s,selectedPage:c=0,onClick:d=()=>{},page:l=0,renderAnchor:i})=>{const{prefix:h}=R(),m=C(`${h}--step-navigation__nav-item`,{[`${h}--step-navigation__nav-item--before`]:l<c},{[`${h}--step-navigation__nav-item--selected`]:l===c},{[`${h}--step-navigation__nav-item--${o}`]:o},e),f={className:`${h}--step-navigation__nav-link`},w=o?{"not-started":{icon:Fo},warning:{icon:aa},locked:{icon:Xo},skip:{icon:ea},disabled:{icon:In},complete:{icon:So},summary:{icon:Zo}}[o]?.icon:null;return a.jsx("li",{tabIndex:-1,className:m,onClick:y=>{o!=="locked"&&(t(y,r,n),d(y))},role:"presentation",children:a.jsx(a.Fragment,{children:i?i(f):a.jsxs(F.Fragment,{children:[a.jsx("div",{className:`${h}--step-navigation__nav-item__indicator`,children:o&&l!==c?a.jsx(w,{width:"14",height:"14",description:"Step Item"}):a.jsx("span",{children:l+1})}),a.jsxs("div",{children:[a.jsx("span",{className:`${h}--step-navigation__nav-item__text`,children:n}),s&&a.jsx("span",{className:`${h}--step-navigation__nav-item__helper-text`,children:s})]})]})})})};function Xc({children:e,className:t,disabled:r,label:n,...o}){const{prefix:s}=R(),c=C(`${s}--select-optgroup`,t);return a.jsx("optgroup",{className:c,label:n,disabled:r,...o,children:e})}const Qc=({active:e,children:t,className:r,sidebar:n,...o})=>{const{prefix:s}=R(),c=C(`${s}--sidebar-content__container`,r,{[`${s}--sidebar-content__container--active`]:e});return a.jsxs("div",{className:c,...o,children:[a.jsx("div",{className:`${s}--sidebar-item-content`,children:n}),a.jsx("div",{className:`${s}--content-section`,children:t})]})},Zc=({className:e,children:t,noPadding:r,...n})=>{const{prefix:o}=R(),s=C(`${o}--sidebar-content__header`,e,{[`${o}--sidebar-content__header--no-padding`]:r});return a.jsx("div",{className:s,...n,children:t})},Jc=({className:e,children:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sidebar-content-mobile-header`,e,{});return a.jsx("div",{className:o,...r,children:t})},el=({className:e,children:t,...r})=>{const{prefix:n}=R(),o=C(`${n}--sidebar-content__children`,e,{});return a.jsx("div",{id:"scroll-container",className:o,...r,children:t})},tl=({children:e,...t})=>{const{prefix:r}=R();return a.jsx("div",{className:`${r}--sidebar-content__scroll`,...t,children:e})},rl=({children:e,...t})=>{const{prefix:r}=R();return a.jsxs("div",{className:`${r}--sidebar-content__back-button`,...t,children:[a.jsx(Dn,{}),e]})},Lr=F.forwardRef((e,t)=>{const{hideLabel:r,helperText:n,pattern:o,required:s}=e,{prefix:c}=R(),d=C(`${c}--input`,`${c}--text-input`,{[`${c}--text--helpertext`]:n,[`${c}--text--nolabel`]:r,[`${c}--text--required`]:s}),l=e,{inputProps:i,wrapperProps:h}=Te({...l,inputClassName:d});return a.jsx(Ce,{...h,children:a.jsx("input",{pattern:o,...i,ref:t})})});Lr.displayName="TextInput";const nl=(e,t)=>typeof t=="function"?t(e):`${e}${t||""}`;function sl(e,t,r){if(!(r<=t))return e<t&&(e=t),e>r&&(e=r),(e-t)/(r-t)*100}const Ms=F.forwardRef((e,t)=>{const{ariaLabelInput:r,className:n,disabled:o,formatLabel:s=nl,fullWidth:c,id:d,inputType:l,hideLabel:i,hideControls:h,hideTextInput:m,min:f,minLabel:v,max:w,maxLabel:y,step:x=1,onChange:j=()=>{},helperText:O,...S}=e,{prefix:E}=R(),_=e.value,[N,k]=F.useState(_);F.useEffect(()=>{k(e.value)},[e.value]);const D=F.useRef(null),M=t||D,H=u=>{o||(u.persist(),u.imaginaryTarget=M,u.target.value>w?(k(w),j(u)):(k(u.target.value),j(u)))},P=C(`${E}--slider--wrapper`,n,{[`${E}--slider--helpertext`]:O,[`${E}--slider--nolabel`]:i,[`${E}--slider--nocontrols`]:h}),V=C(`${E}--slider-container`,{[`${E}--slider-container--full-width`]:c}),ee={disabled:o,id:d,max:w,min:f,step:x,onChange:H,value:N},J=C(`${E}--input`,`${E}--slider-text-input`),X=C(`${E}--slider`,{[`${E}--slider--disabled`]:o},n),Y=C(`${E}--slider__range-wrapper`,{[`${E}--slider__range-wrapper--disabled`]:o},n),te=N&&N<f?f:N,le=Te(e);return console.log("valueMinimal",te),a.jsx(Ce,{...le.wrapperProps,formItemClassName:P,children:a.jsxs("div",{className:V,children:[a.jsx("span",{className:`${E}--slider__range-label`,children:s(f,v)}),a.jsxs("div",{className:Y,children:[a.jsx("div",{className:`${E}--slider__range-before`,style:{width:`${sl(te,f,w)}%`}}),a.jsx("input",{className:X,type:"range",...S,...ee,ref:M})]}),a.jsx("span",{className:`${E}--slider__range-label`,children:s(w,y)}),!m&&a.jsx(Lr,{disabled:o,type:l,id:"input-for-slider",className:J,value:N,onChange:H,"aria-label":r})]})})});Ms.displayName="Slider";const Is=F.forwardRef(({active:e,additional:t,children:r,className:n,subContent:o,image:s,hint:c,noImage:d,unread:l,showAdditionalIcon:i,title:h,kind:m="large",wrapper:f="none",...v},w)=>{const{prefix:y}=R(),x=C({[`${y}--item`]:!0,[`${y}--item--${m}`]:m,[`${y}--item--${f}`]:f,[`${y}--item--active`]:e,[`${y}--item--unread`]:l},n);return a.jsxs("div",{className:x,...v,ref:w,children:[s?a.jsx("div",{className:`${y}--item__image`,children:s}):d?a.jsx("div",{className:`${y}--item__image ${y}--item__image-empty`}):null,h&&a.jsx("div",{className:`${y}--item__title-wrapper`,children:a.jsx("h2",{className:`${y}--item__title`,children:h})}),t&&a.jsxs("div",{className:`${y}--item__additional`,children:[t,i&&a.jsx(Mn,{className:`${y}--item__additional-icon`})]}),r&&a.jsx("div",{className:`${y}--item__text`,children:r}),o&&a.jsx("div",{className:`${y}--item__sub-content`,children:o}),c&&a.jsx("div",{className:`${y}--item__hint`,children:c}),l&&a.jsx("div",{className:`${y}--item__unread`})]})});Is.displayName="Item";const Ls=({data:e,page:t,pageSizeOptions:r,paginationClassName:n,totalItems:o,style:s,onPageChange:c,onPageSizeChange:d,isLastPage:l,pages:i,pageInputDisabled:h,pageSize:m,pagesUnknown:f,backwardText:v,forwardText:w,itemsPerPageText:y,itemsPerPageFollowsText:x,itemRangeText:j,pageRangeText:O,pageSizesDisabled:S,itemText:E,pageNumberText:_})=>{const{prefix:N}=R(),k=H=>(isNaN(H)&&(H=t),H),D=H=>{const P=k(H.page-1);H!==P&&c(P),m!==H.pageSize&&d(H.pageSize)},M={isLastPage:l,pages:i,pageInputDisabled:h,pageSize:m,pagesUnknown:f,backwardText:v,forwardText:w,itemsPerPageText:y,itemsPerPageFollowsText:x,itemRangeText:j,pageRangeText:O,pageSizesDisabled:S,itemText:E,pageNumberText:_};return a.jsx("div",{className:C(n,"-pagination"),style:s,children:a.jsx("div",{className:`${N}-pagination`,children:a.jsx(Ir,{onChange:D,pageSizes:r,page:t,totalItems:o||(e?e.length:void 0),...M})})})};Ls.displayName="ReactTablePagination";function Bs(e){const{prefix:t}=R(),{className:r,disabled:n,handleTabClick:o=()=>{},handleTabAnchorFocus:s=()=>{},handleTabKeyDown:c=()=>{},href:d,index:l=0,label:i,selected:h,tabIndex:m,onClick:f=()=>{},onKeyDown:v=()=>{},...w}=e,y=E=>{if(E.which===37&&s)s(l-1);else if(E.which===39&&s)s(l+1);else return},x=C(`${t}--tabs__nav-item`,{[`${t}--tabs__nav-item--disabled`]:n},{[`${t}--tabs__nav-item--selected`]:h},r),j=C(`${t}--tabs__nav-item`,`${t}--tabs__nav-item--selected`,r),O={className:"wfp--tabs__nav-link",href:n?void 0:d,label:i,role:"tab",tabIndex:m,"aria-selected":h};return{liProps:{tabIndex:-1,className:x,onClick:E=>{n||(o(l,i,E),f(E))},onKeyDown:E=>{n||(y(E),c(l,i,E),v(E))},role:"presentation",selected:h,...w},anchorProps:O,selectedClasses:j}}const ol=e=>{const{disabled:t,label:r,renderAnchor:n,renderListElement:o}=e,{anchorProps:s,liProps:c,selectedClasses:d}=Bs(e);return a.jsx(F.Fragment,{children:o?typeof o=="function"?o({...e,...c,anchor:s,selectedClasses:d}):a.jsx(a.Fragment,{children:o}):a.jsx("li",{...c,children:n?n(s):t?a.jsx("span",{...s,children:r}):a.jsx("a",{...s,children:r})})})},qs=e=>{const{selected:t=!1,children:r,...n}=e;return a.jsx("div",{...n,"data-selected":t,hidden:!t,children:r})};qs.displayName="TabContent";const al=z.createContext({handleTabClick:()=>{},handleTabKeyDown:()=>{},handleTabAnchorFocus:()=>{}}),Fs=e=>{const{disableAnimation:t,inline:r,className:n,role:o="navigation",selected:s=null,...c}=e,{prefix:d}=R(),[l,i]=F.useState(s),h=F.useRef(null);F.useEffect(()=>{s!==l&&i(s)},[s]);const m={tabs:C(`${d}--tabs`,{[`${d}--tabs--no-animation`]:t},n),tablist:C(`${d}--tabs__nav`,{[`${d}--tabs__nav--inline`]:r})},f=()=>(y,x,j)=>{j&&j.preventDefault()},v=()=>(y,x,j)=>{j.key||j.which},w=()=>{};return a.jsx(al.Provider,{value:{handleTabClick:f,handleTabKeyDown:v,handleTabAnchorFocus:w},children:a.jsxs("nav",{...c,className:m.tabs,role:o,children:[a.jsx("div",{className:`${d}--tabs__nav__bar`}),a.jsx("ul",{ref:h,role:"tablist",className:m.tablist,children:e.children})]})})};Fs.displayName="Tabs";const Hs=F.forwardRef((e,t)=>{const{className:r,fullWidth:n}=e,{prefix:o}=R(),s=C(`${o}--text-area`,r,{[`${o}--textarea-fullwidth`]:n}),d=Te({...e,inputClassName:s});return a.jsx(Ce,{...d.wrapperProps,children:a.jsx("textarea",{...d.inputProps,ref:t})})});Hs.displayName="TextArea";const Ws=F.forwardRef((e,t)=>{const{showPasswordLabelText:r="Show password",hidePasswordLabelText:n="Hide password",addonAfter:o,...s}=e,{prefix:c}=R(),[d,l]=F.useState(!1),{hideLabel:i,helperText:h,required:m,disabled:f,readOnly:v}=s,w=C(`${c}--input`,`${c}--text-input`,`${c}--password-input`,{[`${c}--text--helpertext`]:h,[`${c}--text--nolabel`]:i,[`${c}--text--required`]:m}),y=d?n:r,x=()=>{f||v||l(_=>!_)},j=a.jsx("button",{type:"button",className:`${c}--password-input__toggle`,onClick:x,"aria-pressed":d,"aria-label":y,disabled:f||v,children:y}),O=s,{inputProps:S,wrapperProps:E}=Te({...O,type:d?"text":"password",addonAfter:a.jsxs(a.Fragment,{children:[o,j]}),inputClassName:w});return a.jsx(Ce,{...E,children:a.jsx("input",{...S,ref:t})})});Ws.displayName="PasswordInput";const zs=F.forwardRef((e,t)=>{const{className:r,defaultToggled:n=!1,id:o,labelA:s="Off",labelB:c="On",...d}=e,{prefix:l}=R(),i=C({[`${l}--form-item`]:!0},r),h=o||d.name,f=Te(e),v=d;return a.jsxs(Ce,{className:i,...e,children:[a.jsx("input",{...v,...f.inputProps,defaultChecked:n,type:"checkbox",id:h,className:`${l}--toggle`,ref:t}),a.jsxs("label",{className:`${l}--toggle__label`,htmlFor:h,children:[a.jsx("span",{className:`${l}--toggle__text--left`,children:s}),a.jsx("span",{className:`${l}--toggle__appearance`}),a.jsx("span",{className:`${l}--toggle__text--right`,children:c})]})]})});zs.displayName="Toggle";const il=e=>{const{className:t,children:r,components:n={},description:o,ellipsis:s,extendedDescription:c,showName:d,small:l,name:i,missingImage:h,...m}=e,{prefix:f}=R(),w={...{Avatar:_r},...n},y=C(`${f}--user`,t,{[`${f}--user--has-description`]:o,[`${f}--user--has-extended-description`]:c}),x=C({[`${f}--user__title`]:!0,[`${f}--user__title--ellipsis`]:s,[`${f}--user__title--small`]:l});return a.jsxs("div",{className:y,...m,children:[a.jsx(w.Avatar,{...e,missingImage:h}),d&&a.jsxs("span",{className:x,children:[a.jsx("span",{children:i}),o&&a.jsx("div",{className:`${f}--user__description`,children:o})]}),r,c&&a.jsx("div",{className:`${f}--user__extended-description`,children:c})]})},ct={thousand:{pow:1e3,defaultmaximumFractionDigits:2,default:{after:"T"}},million:{pow:1e6,defaultmaximumFractionDigits:1,default:{after:"M"}},billion:{pow:1e9,defaultmaximumFractionDigits:2,default:{after:"B"}}},Us=e=>a.jsx("span",{className:e.className+" invalid",children:"–"}),cl=e=>a.jsx("tspan",{className:e.className+" invalid",children:"–"}),Ft=e=>{if(e){const t=e.before?e.before+" ":"",r=e.output&&e.output.default?e.output.default.after+"":"",n=e.after?" "+e.after:"";return t+e.value+r+n}else return""},Ht=(e,t)=>{const{style:r,...n}=t;return e?a.jsxs("text",{className:t.className,...n,children:[a.jsxs("tspan",{style:r,children:[e.before," "]}),a.jsx("tspan",{style:r,children:e.value}),a.jsxs("tspan",{style:r,children:[" ",e.output?e.output.default.after+"":"",e.after]})]}):a.jsx(cl,{className:t.className})},ke=(e,t,r,n,o)=>{const{children:s,input:c,output:d,minimumFractionDigits:l,maximumFractionDigits:i,localeStringLanguage:h="en-EN",calcOnly:m,string:f,svg:v,hideZero:w}=e;var y=typeof s=="string"?s.replace(/,/g,""):s;y=parseFloat(y),y=y!==0&&c&&ct[c]?ct[c].pow*y:y;const x=d&&ct[d]?ct[d]:void 0;y=y!==0&&d?y/x.pow:y;const j=o===!0&&d===void 0?l===0:typeof l=="number"?l:x&&x.defaultmaximumFractionDigits?x.defaultmaximumFractionDigits:2,O=o===!0&&d===void 0?i===0:y<=.005?4:y<=.05?3:y<=.5?2:i===0?0:typeof i=="number"?i:x&&x.defaultmaximumFractionDigits?x.defaultmaximumFractionDigits:2,S={minimumFractionDigits:j,maximumFractionDigits:O>j?O:j};y=y.toLocaleString(h,S);const E={value:y,before:r,after:t,output:x};let _=e.className;return y==="1"&&n&&(_=_+" wfp--unit--singular"),(!y||y==="NaN"||parseFloat(y)===0)&&w?!1:m?E:v?Ht(E,e):f?Ft(E):y!==!1?a.jsx("span",{className:_,children:y}):a.jsx(Us,{className:e.className})},ll=(e,t,r)=>{const{calcOnly:n,children:o,from:s,string:c,svg:d,hideZero:l,maximumSignificantDigits:i,maximumFractionDigits:h}=e;var m=typeof o=="string"?o.replace(/,/g,""):o;m=parseFloat(m),parseFloat(s)===0?m=!1:s&&(m=m/parseFloat(s)*100),m=m.toLocaleString("en-EN",{minimumFractionDigits:i||0,maximumSignificantDigits:i,maximumFractionDigits:m<=.5?5:h||1});const f={value:m,before:r,after:t,output:void 0};return(!m||m==="NaN"||parseFloat(m)===0)&&l?!1:n?f:d?Ht(f,e):c?Ft(f):m!==!1?a.jsx("span",{className:e.className,children:m}):a.jsx(Us,{className:e.className})},Wt=(e,t,r)=>{const{calcOnly:n,className:o,children:s,string:c,svg:d,hideUnit:l}=e,i=s,h=t||"",m=l?"":r+s+h,f={value:i,before:r,after:t,output:i+m};if(n)return f;if(d)return Ht({value:i+m,before:r,after:t},e);if(c)return Ft(f);if(i!==!1)return a.jsx("span",{className:o,children:i})},ul=e=>{const{children:t}=e,r=t;let n;if(typeof r=="number"&&r.toString().length>=7)n=new Date(r,e);else if(r.getMonth)n=r;else{const c=r.toString().substring(0,4),d=parseInt(r.toString().substring(4,7),10)-1;n=new Date(c,d,1)}const o=n.toLocaleString("en-us",{month:"short"}),s=n.toLocaleString("en-us",{month:"long"});return{monthName:o,monthNameFull:s,year:n.getFullYear(),date:n}},dl=e=>{const{className:t,string:r,svg:n,calcOnly:o}=e,s=ul(e),c={value:s.monthName+" "+s.year,before:"",after:"",output:void 0};if(o)return c;if(n)return Ht(c,e);if(r)return Ft(c);if(c?.value)return a.jsx("span",{className:t,children:c.value})},fl=e=>ke(e,"","US$"),pl=e=>ke(e,"People",void 0,!0,!0),ml=e=>ke(e,"Partners",void 0,!0,!0),hl=e=>ke(e,"MT",void 0,!0),vl=e=>ke(e,"MetricTons",void 0,!0),gl=e=>ke(e,"Months",void 0,!0,"Month"),yl=e=>ke(e,""),_l=e=>ke(e,"Beneficaries",void 0,!0,!0),xl=e=>ke(e,"Households",void 0,!0,!0),bl=e=>ke(e,"Trips",void 0,!0,!0),wl=e=>Wt(e,"kg"),$l=e=>Wt(e,""),El=e=>Wt(e,"Countries"),jl=e=>Wt(e,""),Nl=e=>ll(e,"%"),Cl=e=>dl(e),Tl={Usd:fl,Partners:ml,Beneficiaries:_l,Households:xl,Months:gl,Mt:hl,Kg:wl,MetricTons:vl,Num:yl,Level:$l,None:jl,Trips:bl,Countries:El,People:pl,Percentage:Nl,YearMonth:Cl},Sl=e=>{const{prefix:t}=R(),{className:r,output:n,string:o,textAnchor:s,localeStringLanguage:c="en-EN",type:d="none",setup:l}=e,i=e.type.charAt(0).toUpperCase()+e.type.slice(1),h=Tl[i],m=s||"start",f=d?`${t}--unit--${d.toLowerCase()}`:"",v=n&&ct[n]?`${t}--unit--${n}`:"",w=l?`${t}--unit--${l}`:"",y=`${t}--unit ${r} ${f} ${v} ${w}`;return o?h(e):h===void 0?null:a.jsx(h,{...e,className:y,textAnchor:m,localeStringLanguage:c})},Ol=({value:e,secondaryValue:t,className:r,title:n,...o})=>{const{prefix:s}=R(),c=C(`${s}--value`,r);return a.jsxs("div",{className:c,...o,children:[a.jsx("h4",{className:`${s}--value__title`,children:n}),a.jsx("div",{className:`${s}--value__primary-value`,children:e}),a.jsx("div",{className:`${s}--value__secondary-value`,children:t})]})},Rl=e=>t=>{const n={...R(),...t};return a.jsx(e,{...n})};function kl(){return z.useContext(It)}const Pl={main:{name:"main",hex:"#007DBC",scss:"$color__main",type:"communications"},"sequential-default-07":{name:"sequential-default-07",hex:"#9DEAFF",scss:"$color__sequential-default-07",type:"sequential-default",shortDescription:"sequential default 07"},"sequential-default-06":{name:"sequential-default-06",hex:"#73C3FE",scss:"$color__sequential-default-06",type:"sequential-default",shortDescription:"sequential default 06"},"sequential-default-05":{name:"sequential-default-05",hex:"#4AA1E2",scss:"$color__sequential-default-05",type:"sequential-default",shortDescription:"sequential default 05"},"sequential-default-04":{name:"sequential-default-04",hex:"#0780C0",scss:"$color__sequential-default-04",type:"sequential-default",shortDescription:"sequential default 04"},"sequential-default-03":{name:"sequential-default-03",hex:"#005F9B",scss:"$color__sequential-default-03",type:"sequential-default",shortDescription:"sequential default 03"},"sequential-default-02":{name:"sequential-default-02",hex:"#003F76",scss:"$color__sequential-default-02",type:"sequential-default",shortDescription:"sequential default 02"},"sequential-default-01":{name:"sequential-default-01",hex:"#002153",scss:"$color__sequential-default-01",type:"sequential-default",shortDescription:"sequential default 01"},"sequential-secondary-07":{name:"sequential-secondary-07",hex:"#bdf9c4",scss:"$color__sequential-secondary-07",type:"sequential-secondary",shortDescription:"sequential secondary 07"},"sequential-secondary-06":{name:"sequential-secondary-06",hex:"#89eaa8",scss:"$color__sequential-secondary-06",type:"sequential-secondary",shortDescription:"sequential secondary 06"},"sequential-secondary-05":{name:"sequential-secondary-05",hex:"#5fd79a",scss:"$color__sequential-secondary-05",type:"sequential-secondary",shortDescription:"sequential secondary 05"},"sequential-secondary-04":{name:"sequential-secondary-04",hex:"#41c196",scss:"$color__sequential-secondary-04",type:"sequential-secondary",shortDescription:"sequential secondary 04"},"sequential-secondary-03":{name:"sequential-secondary-03",hex:"#33aa96",scss:"$color__sequential-secondary-03",type:"sequential-secondary",shortDescription:"sequential secondary 03"},"sequential-secondary-02":{name:"sequential-secondary-02",hex:"#319298",scss:"$color__sequential-secondary-02",type:"sequential-secondary",shortDescription:"sequential secondary 02"},"sequential-secondary-01":{name:"sequential-secondary-01",hex:"#367a96",scss:"$color__sequential-secondary-01",type:"sequential-secondary",shortDescription:"sequential secondary 01"},"categorical-corporate-01":{name:"categorical-01",hex:"#007DBC",scss:"$color__categorical-corporate-01",type:"categorical",shortDescription:"categorical-01"},"categorical-corporate-02":{name:"categorical-02",hex:"#36B5C5",scss:"$color__categorical-corporate-02",type:"categorical",shortDescription:"categorical-02"},"categorical-corporate-03":{name:"categorical-03",hex:"#00B485",scss:"$color__categorical-corporate-03",type:"categorical",shortDescription:"categorical-03"},"categorical-corporate-04":{name:"categorical-04",hex:"#008868",scss:"$color__categorical-corporate-04",type:"categorical",shortDescription:"categorical-04"},"categorical-corporate-05":{name:"categorical-05",hex:"#1A4262",scss:"$color__categorical-corporate-05",type:"categorical",shortDescription:"categorical-05"},"categorical-corporate-06":{name:"categorical-06",hex:"#982B56",scss:"$color__categorical-corporate-06",type:"categorical",shortDescription:"categorical-06"},"categorical-corporate-07":{name:"categorical-07",hex:"#EF404C",scss:"$color__categorical-corporate-07",type:"categorical",shortDescription:"categorical-07"},"categorical-corporate-08":{name:"categorical-08",hex:"#F47847",scss:"$color__categorical-corporate-08",type:"categorical",shortDescription:"categorical-08"},"categorical-corporate-09":{name:"categorical-09",hex:"#B79F8D",scss:"$color__categorical-corporate-09",type:"categorical",shortDescription:"categorical-09"},"categorical-corporate-10":{name:"categorical-10",hex:"#ECDFBB",scss:"$color__categorical-corporate-10",type:"categorical",shortDescription:"categorical-10"},female:{name:"female",hex:"#3f7e44",scss:"$color__female",type:"symbolic",shortDescription:"Indicate female"},male:{name:"male",hex:"#26bde2",scss:"$color__male",type:"symbolic",shortDescription:"Indicate male"},national:{name:"national",hex:"#3C5979",scss:"$color__national",type:"symbolic",shortDescription:"Indicate national staff"},international:{name:"international",hex:"#fcc30b",scss:"$color__international",type:"symbolic",shortDescription:"Indicate international staff"},"brand-01":{name:"brand-01",hex:"#007DBC",scss:"var(--brand-01)",css:"color__brand-01",type:"brand",shortDescription:"WFP brand color"},"interactive-01":{name:"interactive-01",hex:"#0b77c2",scss:"var(--interactive-01)",css:"color__interactive-01",type:"brand",shortDescription:"Primary interactive color, Primary buttons"},"interactive-02":{name:"interactive-02",hex:"#085387",scss:"$action-default-fill-primary-default-02",css:"color__interactive-02",type:"brand",shortDescription:"BannerNavigation"},"accent-01":{name:"accent-01",hex:"#f7b825",scss:"$accent-01",css:"color__accent-01",type:"brand-accent",shortDescription:"Accent colour (recommended)"},"brand-01-20":{name:"brand-01-20",hex:"#c2dbec",scss:"$brand-01-20",css:"color__brand-01-20",type:"brand-extended"},"brand-01-30":{name:"brand-01-30",hex:"#85b7da",scss:"$brand-01-30",css:"color__brand-01-30",type:"brand-extended"},"brand-01-40":{name:"brand-01-40",hex:"#4792c7",scss:"$brand-01-40",css:"color__brand-01-40",type:"brand-extended"},"brand-01-60":{name:"brand-01-60",hex:"#085387",scss:"$brand-01-60",css:"color__brand-01-60",type:"brand-extended"},"brand-01-70":{name:"brand-01-70",hex:"#05375a",scss:"$brand-01-70",css:"color__brand-01-70",type:"brand-extended"},"brand-01-80":{name:"brand-01-80",hex:"#031c2d",scss:"$brand-01-80",css:"color__brand-01-80",type:"brand-extended"},"ui-01":{name:"ui-01",hex:"#ffffff",scss:"$ui-01",css:"color__ui-01",type:"ui",shortDescription:"Primary container background; Secondary page background",description:"This colour is used as the page background if there are no Modules on top of it."},"ui-02":{name:"ui-02",hex:"#eff2f5",scss:"var(--ui-02)",css:"color__ui-02",type:"ui",shortDescription:"Primary page background; Secondary container background",description:"Use this colour as page background if there are modules on top of it to increase the contrast between the modules."},"ui-03":{name:"ui-03",hex:"#f0f3f6",scss:"$ui-03",css:"color__ui-03",type:"ui",shortDescription:"Subtle border, Tertiary background color"},"ui-04":{name:"ui-04",hex:"#dfe3e6",scss:"$ui-04",css:"color__ui-04",type:"ui",shortDescription:"3:1 AA element contrast; Medium contrast border"},"ui-05":{name:"ui-05",hex:"#8c9ba5",scss:"$ui-03",css:"color__ui-05",type:"ui",shortDescription:"4.5:1 AA element contrast; High contrast border; Emphasis elements"},"ui-06":{name:"ui-06",hex:"#0b1923",scss:"$ui-06",css:"color__ui-06",type:"ui",shortDescription:""},"text-01":{name:"text-01",hex:"#031c2d",scss:"$text-01",css:"color__text-01",type:"ui",shortDescription:"Primary text colour; Input labels;"},"text-02":{name:"text-02",hex:"#5a6872",scss:"$text-02",css:"color__text-02",type:"ui",shortDescription:"Secondary text; Help text"},"text-03":{name:"text-03",hex:"#dfe6eb",scss:"$text-03",css:"color__text-03",type:"ui",shortDescription:"Placeholder text"},"text-04":{name:"text-04",hex:"#ffffff",scss:"$text-04",css:"color__text-04",type:"ui",shortDescription:""},"inverse-01":{name:"inverse-01",hex:"#ffffff",scss:"$inverse-01",css:"color__inverse-01",type:"ui",shortDescription:"Inverse text color; Inverse icon color"},"field-01":{name:"field-01",hex:"#ffffff",scss:"$field-02",css:"color__field-01",type:"ui",shortDescription:"Default input fields; Fields on $ui-backgrounds"},"field-border-01":{name:"field-border-01",hex:"#d4d7d9",scss:"$field-border-01",css:"color__field-border-01",type:"ui",shortDescription:""},"disabled-01":{name:"disabled-01",hex:"#f9fbfc",scss:"$disabled-01",css:"color__disabled-01",type:"ui",shortDescription:""},"disabled-02":{name:"disabled-02",hex:"#dfe6eb",scss:"$disabled-02",css:"color__disabled-02",type:"ui",shortDescription:""},"sdg-01":{name:"sdg-01",hex:"#E5243B",scss:"$sdg-01",css:"color__sdg-01",type:"sdg",shortDescription:"No poverty, red"},"sdg-02":{name:"sdg-02",hex:"#DDA63A",scss:"$sdg-02",css:"color__sdg-02",type:"sdg",shortDescription:"Zero hunger, mustard"},"sdg-03":{name:"sdg-03",hex:"#4C9F38",scss:"$sdg-03",css:"color__sdg-03",type:"sdg",shortDescription:"Good health and well-being, kelly green"},"sdg-04":{name:"sdg-04",hex:"#C5192D",scss:"$sdg-04",css:"color__sdg-04",type:"sdg",shortDescription:"Quality education, dark red"},"sdg-05":{name:"sdg-05",hex:"#FF3A21",scss:"$sdg-05",css:"color__sdg-05",type:"sdg",shortDescription:"Gender equality, red orange"},"sdg-06":{name:"sdg-06",hex:"#26BDE2",scss:"$sdg-06",css:"color__sdg-06",type:"sdg",shortDescription:"Clean water and sanitation, bright blue"},"sdg-07":{name:"sdg-07",hex:"#FCC30B",scss:"$sdg-07",css:"color__sdg-07",type:"sdg",shortDescription:"Affordable and clean energy, yellow"},"sdg-08":{name:"sdg-08",hex:"#A21942",scss:"$sdg-08",css:"color__sdg-08",type:"sdg",shortDescription:"Decent work and economic growth, burgundy red"},"sdg-09":{name:"sdg-09",hex:"#FD6925",scss:"$sdg-09",css:"color__sdg-09",type:"sdg",shortDescription:"Industry, innovation and infrastructure, orange"},"sdg-10":{name:"sdg-10",hex:"#DD1367",scss:"$sdg-10",css:"color__sdg-10",type:"sdg",shortDescription:"Reduced inequalities, magentas"},"sdg-11":{name:"sdg-11",hex:"#FD9D24",scss:"$sdg-11",css:"color__sdg-11",type:"sdg",shortDescription:"Sustainable cities and communities, golden yellow"},"sdg-12":{name:"sdg-12",hex:"#BF8B2E",scss:"$sdg-12",css:"color__sdg-12",type:"sdg",shortDescription:"Responsible consumption and production, dark mustard"},"sdg-13":{name:"sdg-13",hex:"#3F7E44",scss:"$sdg-10",css:"color__sdg-13",type:"sdg",shortDescription:"Climate action, dark green"},"sdg-14":{name:"sdg-14",hex:"#0A97D9",scss:"$sdg-14",css:"color__sdg-14",type:"sdg",shortDescription:"Life below water, blue"},"sdg-15":{name:"sdg-15",hex:"#56C02B",scss:"$sdg-15",css:"color__sdg-15",type:"sdg",shortDescription:"Life on land, lime green"},"sdg-16":{name:"sdg-16",hex:"#00689D",scss:"$sdg-16",css:"color__sdg-16",type:"sdg",shortDescription:"Peace, justice and stron institutions, royal blue"},"sdg-17":{name:"sdg-17",hex:"#19486A",scss:"$sdg-17",css:"color__sdg-17",type:"sdg",shortDescription:"Partnership for the goals, navy blue"},"support-01":{name:"support-01",hex:"#c5192d",scss:"$support-01",css:"color__support-01",type:"support",shortDescription:"Error (same as color__red)",description:"Use the error color to indicate an error or to focus the attention on something which is crucial to see. Paired with a cross icon, red delivers the message that something went wrong."},"support-light-01":{name:"support-light-01",hex:"#f1c6cb",scss:"$support-light-01",css:"color__support-light-01",type:"support",shortDescription:"Lighter version of color-red",description:""},"support-02":{name:"support-02",hex:"#689e18",scss:"$support-02",css:"color__support-02",type:"support",shortDescription:"Success",description:"Use green to indicate success state. Paired with a checkmark icon the user knows that the operation was successfully completed."},"support-light-02":{name:"support-light-02",hex:"#ccdbcd",scss:"$support-light-02",css:"color__support-light-02",type:"support",shortDescription:"Lighter version of green",description:""},"support-03":{name:"support-03",hex:"#f7b825",scss:"$support-03",css:"color__support-03",type:"support",shortDescription:"Warning (same as color__yellow)",description:"Use yellow to indicate a transient warning which is less important than an error message. Yellow typically consists of items which require the user’s immediate attention, or indicate a waiting period. Although this overlaps with the use of red, yellow is more transient in nature."},"support-light-03":{name:"support-light-03",hex:"#fdedc9",scss:"$support-light-03",css:"color__support-light-03",type:"support",shortDescription:"Lighter version of yellow",description:""},"support-04":{name:"support-04",hex:"#85b7da",scss:"$support-04",css:"color__support-04",type:"support",shortDescription:"Info",description:""},"support-light-04":{name:"support-light-04",hex:"#c2dbec",scss:"$support-light-04",css:"color__support-light-04",type:"support",shortDescription:"",description:""}},Ys=typeof window<"u"?z.useLayoutEffect:z.useEffect,Al=typeof window>"u";function Dl(e,t){const r=typeof t=="boolean"?t:t?.defaultValue??!1,n=typeof t=="boolean"?void 0:t?.initializeWithValue??void 0,o=l=>Al?r:window.matchMedia(l).matches,[s,c]=z.useState(()=>n?o(e):r);function d(){c(o(e))}return Ys(()=>{const l=window.matchMedia(e);return d(),l.addListener?l.addListener(d):l.addEventListener("change",d),()=>{l.removeListener?l.removeListener(d):l.removeEventListener("change",d)}},[e]),s}exports.Accordion=mr;exports.AccordionItem=vr;exports.AddonAfter=zn;exports.AddonBefore=Wn;exports.AuthLayout=pa;exports.Avatar=_r;exports.BackgroundContent=ma;exports.BannerNavigation=Fn;exports.BannerNavigationItem=$e;exports.BannerNavigationWithContent=va;exports.BlockNotification=pt;exports.Breadcrumb=ga;exports.BreadcrumbHome=xa;exports.BreadcrumbItem=_a;exports.Button=qe;exports.Callout=pt;exports.Card=Zn;exports.CardExternal=Jn;exports.Checkbox=rs;exports.ContentSwitcher=Aa;exports.ContextMenu=nc;exports.ContextMenuGroup=sc;exports.ContextMenuItem=oc;exports.Credits=ns;exports.DatePicker=es;exports.DatePickerInput=wr;exports.DateRangePicker=ts;exports.DateRangePickerInput=$r;exports.Empty=Xn;exports.Footer=gs;exports.Form=ys;exports.FormGroup=ac;exports.FormHint=ic;exports.FormItem=Hn;exports.FormLabel=cc;exports.Helper=Yn;exports.Hero=Qn;exports.HeroExternal=ka;exports.InfoBar=_s;exports.InlineErrorMessage=gr;exports.InlineLoading=xs;exports.Input=Ce;exports.InputGroup=ks;exports.Item=Is;exports.Label=Un;exports.Link=he;exports.List=qt;exports.ListItem=bs;exports.Loading=kr;exports.MainNavigation=ws;exports.MainNavigationContext=Pr;exports.MainNavigationItem=uc;exports.Modal=Mr;exports.ModalFooter=Cs;exports.ModalWrapper=Ts;exports.Module=Fc;exports.ModuleBody=Hc;exports.ModuleFooter=zc;exports.ModuleHeader=Wc;exports.NotificationActionButton=xc;exports.NotificationButton=Es;exports.NotificationTextDetails=Dr;exports.NumberInput=Ss;exports.Pagination=Ir;exports.PasswordInput=Ws;exports.RadioButton=Rs;exports.ReadMore=Ps;exports.Search=yr;exports.SecondaryNavigation=As;exports.SecondaryNavigationTitle=Ds;exports.Select=Pt;exports.SelectItem=At;exports.SelectItemGroup=Xc;exports.Sidebar=Qc;exports.SidebarBackButton=rl;exports.SidebarContentBody=el;exports.SidebarContentHeader=Jc;exports.SidebarHeader=Zc;exports.SidebarScroll=tl;exports.Slider=Ms;exports.StepNavigation=Gc;exports.StepNavigationItem=Kc;exports.Story=$s;exports.SubNavigation=dc;exports.SubNavigationContent=gc;exports.SubNavigationFilter=vc;exports.SubNavigationGroup=_c;exports.SubNavigationHeader=pc;exports.SubNavigationItem=fc;exports.SubNavigationLink=hc;exports.SubNavigationList=yc;exports.SubNavigationTitle=mc;exports.Tab=ol;exports.TabContent=qs;exports.Table=Ns;exports.TablePagination=Ls;exports.TableSorting=Ec;exports.Tabs=Fs;exports.Tag=br;exports.Text=Ue;exports.TextArea=Hs;exports.TextInput=Lr;exports.ToastNotification=wc;exports.Toggle=zs;exports.Tooltip=Rr;exports.Unit=Sl;exports.User=il;exports.Value=Ol;exports.WFPCoreContext=It;exports.WFPCoreProvider=uo;exports.Wrapper=Be;exports.buttonKinds=Ta;exports.colors=Pl;exports.defaultWFPContext=Mt;exports.mdxComponents=qc;exports.notificationtypes=Sa;exports.pageWidths=ha;exports.tooltipStyle=ec;exports.tooltipStyleDark=tc;exports.uniqueId=Os;exports.useInput=Te;exports.useIsomorphicLayoutEffect=Ys;exports.useMainNavigation=Ar;exports.useMediaQuery=Dl;exports.useTab=Bs;exports.useTheme=kl;exports.withWFPCoreSettings=Rl;
104
104
  //# sourceMappingURL=index.cjs.js.map