@doist/reactist 20.2.0 → 21.0.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.
Files changed (39) hide show
  1. package/dist/reactist.cjs.development.js +130 -144
  2. package/dist/reactist.cjs.development.js.map +1 -1
  3. package/dist/reactist.cjs.production.min.js +1 -1
  4. package/dist/reactist.cjs.production.min.js.map +1 -1
  5. package/es/index.js +1 -1
  6. package/es/password-field/password-field.js +19 -62
  7. package/es/password-field/password-field.js.map +1 -1
  8. package/es/text-field/text-field.js +18 -12
  9. package/es/text-field/text-field.js.map +1 -1
  10. package/es/text-field/text-field.module.css.js +1 -1
  11. package/es/toast/static-toast.js +1 -1
  12. package/es/toast/static-toast.js.map +1 -1
  13. package/es/toast/use-toasts.js +31 -11
  14. package/es/toast/use-toasts.js.map +1 -1
  15. package/lib/index.js +1 -1
  16. package/lib/password-field/password-field.d.ts +4 -4
  17. package/lib/password-field/password-field.js +1 -1
  18. package/lib/password-field/password-field.js.map +1 -1
  19. package/lib/text-field/text-field.d.ts +3 -2
  20. package/lib/text-field/text-field.js +1 -1
  21. package/lib/text-field/text-field.js.map +1 -1
  22. package/lib/text-field/text-field.module.css.js +1 -1
  23. package/lib/toast/static-toast.d.ts +2 -1
  24. package/lib/toast/static-toast.js +1 -1
  25. package/lib/toast/static-toast.js.map +1 -1
  26. package/lib/toast/use-toasts.js +1 -1
  27. package/lib/toast/use-toasts.js.map +1 -1
  28. package/package.json +1 -1
  29. package/styles/modal.css +1 -1
  30. package/styles/modal.module.css.css +1 -1
  31. package/styles/password-field.css +3 -3
  32. package/styles/reactist.css +1 -2
  33. package/styles/text-field.css +1 -1
  34. package/styles/text-field.module.css.css +1 -1
  35. package/es/password-field/password-field.module.css.js +0 -4
  36. package/es/password-field/password-field.module.css.js.map +0 -1
  37. package/lib/password-field/password-field.module.css.js +0 -2
  38. package/lib/password-field/password-field.module.css.js.map +0 -1
  39. package/styles/password-field.module.css.css +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),a=e(t),n=e(require("classnames")),l=e(require("react-keyed-flatten-children")),r=require("ariakit/tooltip"),i=require("ariakit/portal"),o=require("ariakit-react-utils"),s=require("use-callback-ref"),d=e(require("react-focus-lock")),c=require("aria-hidden"),m=require("ariakit/dialog"),u=require("ariakit/tab"),p=require("ariakit/menu"),f=e(require("react-dom")),g=e(require("dayjs")),b=e(require("dayjs/plugin/localizedFormat")),h=require("@reach/dialog");function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function _(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?x(Object(a),!0).forEach((function(t){y(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):x(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function y(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function v(e,t){if(null==e)return{};var a,n,l=function(e,t){if(null==e)return{};var a,n,l={},r=Object.keys(e);for(n=0;n<r.length;n++)t.indexOf(a=r[n])>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)t.indexOf(a=r[n])>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}function E(e){return t.forwardRef(e)}function w(e,t,a){if(!a)return null;const n=[];return"string"==typeof a?n.push(e[t+"-"+a]):(a.mobile&&n.push(e[t+"-"+a.mobile]),a.tablet&&n.push(e["tablet-"+t+"-"+a.tablet]),a.desktop&&n.push(e["desktop-"+t+"-"+a.desktop])),n}function C(e,t){if(e)return"object"!=typeof e?t(e):{mobile:e.mobile?t(e.mobile):void 0,tablet:e.tablet?t(e.tablet):void 0,desktop:e.desktop?t(e.desktop):void 0}}var k={box:"_2a3b75a1","position-absolute":"_2286072d","position-fixed":"_0847ebf3","position-relative":"_9015266f","position-sticky":"_572136cd","tablet-position-absolute":"dec0da3c","tablet-position-fixed":"eb3f61a4","tablet-position-relative":"_6a9d01dd","tablet-position-sticky":"cf9268ba","desktop-position-absolute":"_6579cc9c","desktop-position-fixed":"_3a6a421f","desktop-position-relative":"_3a6950ac","desktop-position-sticky":"_142cd372","display-block":"_9a084bff","display-flex":"_509a57b4","display-inline":"_4a786bb9","display-inlineBlock":"_5d644b40","display-inlineFlex":"_973d00d0","display-none":"_3e4f26a6","tablet-display-block":"d525fe3a","tablet-display-flex":"_316c9f4b","tablet-display-inline":"_5e788d98","tablet-display-inlineBlock":"_851fc6b8","tablet-display-inlineFlex":"c16ba46a","tablet-display-none":"_759c0c1a","desktop-display-block":"c374b455","desktop-display-flex":"_8a854d8f","desktop-display-inline":"_805fa8dc","desktop-display-inlineBlock":"ab26af05","desktop-display-inlineFlex":"_9bd12ba4","desktop-display-none":"_581476ce","flexDirection-column":"_1fb9d90e","flexDirection-row":"e5a9206f","tablet-flexDirection-column":"_3e6a0be1","tablet-flexDirection-row":"e9e2e53a","desktop-flexDirection-column":"c7d6b073","desktop-flexDirection-row":"_935269b4","flexWrap-wrap":"_3692f9c2","flexWrap-nowrap":"_55f6f487","flexShrink-0":"d5d0d34a","flexGrow-0":"d8ff7933","flexGrow-1":"_4a93668a","alignItems-flexStart":"_5a8c5a77","alignItems-center":"_50ba6b6b","alignItems-flexEnd":"_3963f790","alignItems-baseline":"_55ef2d4e","tablet-alignItems-flexStart":"_3e2bfb5d","tablet-alignItems-center":"a99be1ab","tablet-alignItems-flexEnd":"fa8221fe","tablet-alignItems-baseline":"e83669a0","desktop-alignItems-flexStart":"_65e6b537","desktop-alignItems-center":"db356482","desktop-alignItems-flexEnd":"acc08587","desktop-alignItems-baseline":"ad033867","justifyContent-flexStart":"_985b733f","justifyContent-center":"_95a98d2a","justifyContent-flexEnd":"be9bf31a","justifyContent-spaceAround":"a89d8798","justifyContent-spaceBetween":"_904ef8fe","justifyContent-spaceEvenly":"_489975d5","tablet-justifyContent-flexStart":"a7175ae7","tablet-justifyContent-center":"_7334dead","tablet-justifyContent-flexEnd":"_746de733","tablet-justifyContent-spaceAround":"_6d09398a","tablet-justifyContent-spaceBetween":"c2324c1d","tablet-justifyContent-spaceEvenly":"_04bd6e07","desktop-justifyContent-flexStart":"_39b310de","desktop-justifyContent-center":"_0dc77292","desktop-justifyContent-flexEnd":"_96c15bd8","desktop-justifyContent-spaceBetween":"_096111a6","alignSelf-stretch":"_35d69587","alignSelf-flexStart":"f46f3a67","alignSelf-center":"fb6a8035","alignSelf-flexEnd":"d3193acd","alignSelf-baseline":"_1154f656","tablet-alignSelf-stretch":"_298e04af","tablet-alignSelf-flexStart":"_2c729d24","tablet-alignSelf-center":"_9ea5e943","tablet-alignSelf-flexEnd":"_02266425","tablet-alignSelf-baseline":"c16a5800","desktop-alignSelf-stretch":"_2ec9eb74","desktop-alignSelf-flexStart":"_34f1fb03","desktop-alignSelf-center":"_77c58550","desktop-alignSelf-flexEnd":"_9ffa429f","desktop-alignSelf-baseline":"_6cc14c5d","overflow-hidden":"f6342c26","overflow-auto":"_10a2f952","overflow-visible":"f20b8b87","overflow-scroll":"_4954f87c","height-full":"a83fb2f5","bg-default":"d85cf739","bg-aside":"_4eb1d749","bg-highlight":"da1ccaa5","bg-selected":"_82dc28e7","bg-toast":"_63ba3dfa","borderRadius-standard":"_34cd2b5e","borderRadius-full":"_5fe4d5e3","border-primary":"_1b34ffd9","border-secondary":"_705519b0","border-tertiary":"_67adc238","textAlign-start":"fff8bff0","textAlign-center":"f973eed0","textAlign-end":"_225acbd7","textAlign-justify":"dea1e8ba","tablet-textAlign-start":"_919d6c8f","tablet-textAlign-center":"ab9d970e","tablet-textAlign-end":"b5b45e0e","tablet-textAlign-justify":"bd6e42e0","desktop-textAlign-start":"_15120506","desktop-textAlign-center":"_337333b5","desktop-textAlign-end":"_221db0fb","desktop-textAlign-justify":"_29ea9711"},N={"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9ab24b","paddingTop-medium":"_1d226e27","paddingTop-large":"eb6097f1","paddingTop-xlarge":"d3229ba4","paddingTop-xxlarge":"_47978ba4","tablet-paddingTop-xsmall":"f987719c","tablet-paddingTop-small":"_8dbc4b4d","tablet-paddingTop-medium":"ae44fe07","tablet-paddingTop-large":"ffe9548d","tablet-paddingTop-xlarge":"f2b76a44","tablet-paddingTop-xxlarge":"c6eb8f43","desktop-paddingTop-xsmall":"_8699b560","desktop-paddingTop-small":"_02c374b7","desktop-paddingTop-medium":"_0dd0332f","desktop-paddingTop-large":"da55f1f6","desktop-paddingTop-xlarge":"_8ef2a278","desktop-paddingTop-xxlarge":"_8b493b28","paddingRight-xsmall":"_211eebc7","paddingRight-small":"ad0ccf15","paddingRight-medium":"a03e39af","paddingRight-large":"f0941ead","paddingRight-xlarge":"e47c5a43","paddingRight-xxlarge":"e849a5cf","tablet-paddingRight-xsmall":"_85374228","tablet-paddingRight-small":"_89df37b9","tablet-paddingRight-medium":"_1cc50ebe","tablet-paddingRight-large":"_1060982b","tablet-paddingRight-xlarge":"be58847d","tablet-paddingRight-xxlarge":"_45093484","desktop-paddingRight-xsmall":"f8d99d6a","desktop-paddingRight-small":"efa076d9","desktop-paddingRight-medium":"e59caa64","desktop-paddingRight-large":"da42f46a","desktop-paddingRight-xlarge":"b3ee2580","desktop-paddingRight-xxlarge":"_3ef94658","paddingBottom-xsmall":"b0e6eab4","paddingBottom-small":"_9510d053","paddingBottom-medium":"d7af60c9","paddingBottom-large":"b75f86cd","paddingBottom-xlarge":"fbd4ce29","paddingBottom-xxlarge":"_33e3ad63","tablet-paddingBottom-xsmall":"f0302da7","tablet-paddingBottom-small":"_4f9b8012","tablet-paddingBottom-medium":"_4333e20e","tablet-paddingBottom-large":"_30bbc76c","tablet-paddingBottom-xlarge":"ba5a4008","tablet-paddingBottom-xxlarge":"_423a3b1a","desktop-paddingBottom-xsmall":"b40139b7","desktop-paddingBottom-small":"f96071fa","desktop-paddingBottom-medium":"fe803c9a","desktop-paddingBottom-large":"_01686eb9","desktop-paddingBottom-xlarge":"afa763d8","desktop-paddingBottom-xxlarge":"a95785f1","paddingLeft-xsmall":"cad4e2ec","paddingLeft-small":"d70b3c17","paddingLeft-medium":"_8c851bd6","paddingLeft-large":"_078feb3c","paddingLeft-xlarge":"_76ab968c","paddingLeft-xxlarge":"aaca85d7","tablet-paddingLeft-xsmall":"_5eb0e5aa","tablet-paddingLeft-small":"_0384fb4f","tablet-paddingLeft-medium":"edffff6f","tablet-paddingLeft-large":"_873b9a46","tablet-paddingLeft-xlarge":"_89105db5","tablet-paddingLeft-xxlarge":"db1966fe","desktop-paddingLeft-xsmall":"b17f826b","desktop-paddingLeft-small":"_6dc83610","desktop-paddingLeft-medium":"_3421b8b2","desktop-paddingLeft-large":"_68cec7a6","desktop-paddingLeft-xlarge":"_94bde020","desktop-paddingLeft-xxlarge":"b94ee579"},S={"marginTop-xsmall":"c7813d79","marginTop-small":"d3449da6","marginTop-medium":"_4ea254c1","marginTop-large":"c0844f64","marginTop-xlarge":"_213145b4","marginTop-xxlarge":"df61c84c","marginTop--xsmall":"efe72b13","marginTop--small":"_870c2768","marginTop--medium":"_0b927c57","marginTop--large":"_461db014","marginTop--xlarge":"_2a3a8cb8","marginTop--xxlarge":"_9bcda921","tablet-marginTop-xsmall":"_6add01e4","tablet-marginTop-small":"_735ef86b","tablet-marginTop-medium":"_0477d068","tablet-marginTop-large":"_2c90af97","tablet-marginTop-xlarge":"_63a82db6","tablet-marginTop-xxlarge":"_03cd7726","tablet-marginTop--xsmall":"c986a62a","tablet-marginTop--small":"be2bdcdd","tablet-marginTop--medium":"_47d2686b","tablet-marginTop--large":"_25e5af9d","tablet-marginTop--xlarge":"ee82f441","tablet-marginTop--xxlarge":"a6f9d404","desktop-marginTop-xsmall":"_4d8d9a36","desktop-marginTop-small":"e813cee7","desktop-marginTop-medium":"_56975b7d","desktop-marginTop-large":"_53b367f6","desktop-marginTop-xlarge":"d69e7311","desktop-marginTop-xxlarge":"_92f57c7e","desktop-marginTop--xsmall":"_96880d3e","desktop-marginTop--small":"dc3f3555","desktop-marginTop--medium":"_86dd06bb","desktop-marginTop--large":"c93ef12e","desktop-marginTop--xlarge":"bc8fd4a2","desktop-marginTop--xxlarge":"b12a9124","marginRight-xsmall":"_6016f4fb","marginRight-small":"b85e3dfa","marginRight-medium":"_297575f4","marginRight-large":"b401ac6c","marginRight-xlarge":"dc3ec387","marginRight-xxlarge":"_24694604","marginRight--xsmall":"_8e9bf2ee","marginRight--small":"ae9d1115","marginRight--medium":"_14e46fc3","marginRight--large":"_3370631b","marginRight--xlarge":"_3f0e9b50","marginRight--xxlarge":"bc13e010","tablet-marginRight-xsmall":"_6fa1aae3","tablet-marginRight-small":"_2976c5cb","tablet-marginRight-medium":"_38d94802","tablet-marginRight-large":"db9569b5","tablet-marginRight-xlarge":"_4a52f06d","tablet-marginRight-xxlarge":"_8a0f0410","tablet-marginRight--xsmall":"e7d40e9d","tablet-marginRight--small":"_680fde91","tablet-marginRight--medium":"_021010ca","tablet-marginRight--large":"_9e52c87c","tablet-marginRight--xlarge":"_4d602613","tablet-marginRight--xxlarge":"_21b1b65a","desktop-marginRight-xsmall":"_7321bc07","desktop-marginRight-small":"fa1721f4","desktop-marginRight-medium":"_3fd7b4b8","desktop-marginRight-large":"_4fdc2f74","desktop-marginRight-xlarge":"c0254761","desktop-marginRight-xxlarge":"_710a5f09","desktop-marginRight--xsmall":"e08bee7f","desktop-marginRight--small":"e5ab73d2","desktop-marginRight--medium":"_5e731477","desktop-marginRight--large":"_0f57a22e","desktop-marginRight--xlarge":"_25f26ed3","desktop-marginRight--xxlarge":"_11a3b4e0","marginBottom-xsmall":"_6a4f69f7","marginBottom-small":"db26b033","marginBottom-medium":"c7313022","marginBottom-large":"a5885889","marginBottom-xlarge":"_33dfbd8e","marginBottom-xxlarge":"_795ad2de","marginBottom--xsmall":"a329dbd3","marginBottom--small":"_85e739fb","marginBottom--medium":"_681f65ff","marginBottom--large":"caf50d8f","marginBottom--xlarge":"_1e084cbf","marginBottom--xxlarge":"_3dfb1c7e","tablet-marginBottom-xsmall":"ef4735be","tablet-marginBottom-small":"de55afba","tablet-marginBottom-medium":"_0e33ce88","tablet-marginBottom-large":"_8ca391fc","tablet-marginBottom-xlarge":"_3a609d23","tablet-marginBottom-xxlarge":"_3e1177e4","tablet-marginBottom--xsmall":"d384884d","tablet-marginBottom--small":"_75254cec","tablet-marginBottom--medium":"_5d9f127d","tablet-marginBottom--large":"_835f1089","tablet-marginBottom--xlarge":"dad52a72","tablet-marginBottom--xxlarge":"_8703a4bf","desktop-marginBottom-xsmall":"_90fd20e9","desktop-marginBottom-small":"f3769191","desktop-marginBottom-medium":"_156410f8","desktop-marginBottom-large":"_7fed74d0","desktop-marginBottom-xlarge":"_477dc10e","desktop-marginBottom-xxlarge":"_85c82d89","desktop-marginBottom--xsmall":"_4f09c1e0","desktop-marginBottom--small":"_9523e048","desktop-marginBottom--medium":"efe10240","desktop-marginBottom--large":"c43971e6","desktop-marginBottom--xlarge":"f9b4da15","desktop-marginBottom--xxlarge":"a10fdf70","marginLeft-xsmall":"f9be90b4","marginLeft-small":"f53218d5","marginLeft-medium":"c4a9b3ab","marginLeft-large":"_5755e2c3","marginLeft-xlarge":"_33fc9354","marginLeft-xxlarge":"_4749a3bf","marginLeft--xsmall":"c76cb3c7","marginLeft--small":"_96003c07","marginLeft--medium":"_09988d07","marginLeft--large":"b4a486f6","marginLeft--xlarge":"f396e75e","marginLeft--xxlarge":"_81d1f26d","tablet-marginLeft-xsmall":"_0a46e8f1","tablet-marginLeft-small":"_57c970af","tablet-marginLeft-medium":"_4b6099d3","tablet-marginLeft-large":"_378fcff5","tablet-marginLeft-xlarge":"f8785663","tablet-marginLeft-xxlarge":"_72f957ee","tablet-marginLeft--xsmall":"_2288c7e1","tablet-marginLeft--small":"b27c1c05","tablet-marginLeft--medium":"_702cbb13","tablet-marginLeft--large":"_1a2748b4","tablet-marginLeft--xlarge":"b8c043a5","tablet-marginLeft--xxlarge":"_8dc8ff63","desktop-marginLeft-xsmall":"c2af646d","desktop-marginLeft-small":"c03d07be","desktop-marginLeft-medium":"_915fb1d3","desktop-marginLeft-large":"_64214ee1","desktop-marginLeft-xlarge":"_7be4a22c","desktop-marginLeft-xxlarge":"_5ec0a401","desktop-marginLeft--xsmall":"ea29f1ee","desktop-marginLeft--small":"c26652c7","desktop-marginLeft--medium":"c24f6af9","desktop-marginLeft--large":"c2671f27","desktop-marginLeft--xlarge":"cc51a04e","desktop-marginLeft--xxlarge":"fd581f54"},R={"minWidth-0":"_68ab48ca","minWidth-xsmall":"_6fa2b565","minWidth-small":"dd50fabd","minWidth-medium":"e7e2c808","minWidth-large":"_6abbe25e","minWidth-xlarge":"_54f479ac","maxWidth-xsmall":"_148492bc","maxWidth-small":"bd023b96","maxWidth-medium":"e102903f","maxWidth-large":"_0e8d76d7","maxWidth-xlarge":"_47a031d0","maxWidth-full":"cd4c8183","width-0":"_5f5959e8","width-full":"_8c75067a","width-auto":"_56a651f6","width-maxContent":"_26f87bb8","width-minContent":"_07a6ab44","width-fitContent":"a87016fa","width-xsmall":"_1a972e50","width-small":"c96d8261","width-medium":"f3829d42","width-large":"_2caef228","width-xlarge":"_069e1491"},L={"gap-none":"_64ed24f4","gap-xsmall":"_2580a74b","gap-small":"c68f8bf6","gap-medium":"_43e5f8e9","gap-large":"_966b120f","gap-xlarge":"f957894c","gap-xxlarge":"_8cca104b","tablet-gap-none":"_5797cee2","tablet-gap-xsmall":"_9015672f","tablet-gap-small":"_7ec86eec","tablet-gap-medium":"_714d7179","tablet-gap-large":"ae1deb59","tablet-gap-xlarge":"e1cfce55","tablet-gap-xxlarge":"_168a8ff8","desktop-gap-none":"_43e2b619","desktop-gap-xsmall":"_0ea9bf88","desktop-gap-small":"d451307a","desktop-gap-medium":"bf93cf66","desktop-gap-large":"_1430cddf","desktop-gap-xlarge":"fa00c93e","desktop-gap-xxlarge":"_6f3aee54"};const B=["as","position","display","flexDirection","flexWrap","flexGrow","flexShrink","gap","alignItems","justifyContent","alignSelf","overflow","width","height","background","border","borderRadius","minWidth","maxWidth","textAlign","padding","paddingY","paddingX","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginY","marginX","marginTop","marginRight","marginBottom","marginLeft","className","children"],T=E((function(e,a){var l,r,i,o,s,d,c,m;let{as:u="div",position:p="static",display:f,flexDirection:g="row",flexWrap:b,flexGrow:h,flexShrink:x,gap:y,alignItems:E,justifyContent:C,alignSelf:T,overflow:A,width:z,height:D,background:I,border:O,borderRadius:M,minWidth:F,maxWidth:P,textAlign:W,padding:j,paddingY:H,paddingX:Y,paddingTop:U,paddingRight:q,paddingBottom:K,paddingLeft:G,margin:V,marginY:X,marginX:Z,marginTop:$,marginRight:J,marginBottom:Q,marginLeft:ee,className:te,children:ae}=e,ne=v(e,B);const le=null!=(l=null!=U?U:H)?l:j,re=null!=(r=null!=q?q:Y)?r:j,ie=null!=(i=null!=K?K:H)?i:j,oe=null!=(o=null!=G?G:Y)?o:j,se=null!=(s=null!=$?$:X)?s:V,de=null!=(d=null!=J?J:Z)?d:V,ce=null!=(c=null!=Q?Q:X)?c:V,me=null!=(m=null!=ee?ee:Z)?m:V,ue=!f||"string"==typeof f&&"flex"!==f&&"inlineFlex"!==f;return t.createElement(u,_(_({},ne),{},{className:n(te,k.box,f?w(k,"display",f):null,"static"!==p?w(k,"position",p):null,null!=F?w(R,"minWidth",String(F)):null,w(R,"maxWidth",P),w(k,"textAlign",W),w(N,"paddingTop",le),w(N,"paddingRight",re),w(N,"paddingBottom",ie),w(N,"paddingLeft",oe),w(S,"marginTop",se),w(S,"marginRight",de),w(S,"marginBottom",ce),w(S,"marginLeft",me),ue?null:w(k,"flexDirection",g),ue?null:w(k,"flexWrap",b),ue?null:w(k,"alignItems",E),ue?null:w(k,"justifyContent",C),null!=T?w(k,"alignSelf",T):null,null!=x?w(k,"flexShrink",String(x)):null,null!=h?w(k,"flexGrow",String(h)):null,y?w(L,"gap",y):null,w(k,"overflow",A),null!=z?w(R,"width",String(z)):null,w(k,"height",D),w(k,"bg",I),"none"!==M?w(k,"borderRadius",M):null,"none"!==O?w(k,"border",O):null)||void 0,ref:a}),ae)}));var A={container:"eae3d34f","container-xsmall":"_9b4012c9","container-small":"e35e0320","container-medium":"_0703e67f","container-large":"_1cf15621","container-xlarge":"_1c7dff67","container-xxlarge":"_25bee9b6","columnWidth-content":"_4bb9987d","columnWidth-auto":"_9dd31975","columnWidth-1-2":"_38d11c0e","columnWidth-1-3":"_7ac225c6","columnWidth-2-3":"_9c340680","columnWidth-1-4":"_81cb99d2","columnWidth-3-4":"_10fd355f","columnWidth-1-5":"_3ee66520","columnWidth-2-5":"df1201a5","columnWidth-3-5":"f772e0b2","columnWidth-4-5":"_880cbbb1"};const z=["width","children","exceptionallySetClassName"],D=["space","align","alignY","collapseBelow","children","exceptionallySetClassName"],I=E((function(e,a){let{width:n="auto",children:l,exceptionallySetClassName:r}=e,i=v(e,z);return t.createElement(T,_(_({},i),{},{className:[r,w(A,"columnWidth",n.replace("/","-"))],minWidth:0,height:"full",flexShrink:"content"===n?0:void 0,flexGrow:"auto"===n?1:0,ref:a}),l)})),O=E((function(e,a){let{space:n,align:l="left",alignY:r="top",collapseBelow:i,children:o,exceptionallySetClassName:s}=e,d=v(e,D);return t.createElement(T,_(_({},d),{},{className:[s,A.container,w(A,"container",n)],display:"flex",gap:n,flexDirection:"desktop"===i?{mobile:"column",tablet:"column",desktop:"row"}:"tablet"===i?{mobile:"column",tablet:"row"}:"row",alignItems:C(r,e=>"top"===e?"flexStart":"bottom"===e?"flexEnd":e),justifyContent:C(l,e=>"left"===e?"flexStart":"right"===e?"flexEnd":e),ref:a}),o)}));var M={"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};const F=["weight"];function P(e){let{weight:a="tertiary"}=e,n=v(e,F);return t.createElement(T,_({as:"hr",className:w(M,"weight",a)},n))}const W=["as","space","align","alignY","children","exceptionallySetClassName"],j=E((function(e,a){let{as:n,space:l,align:r="left",alignY:i="center",children:o,exceptionallySetClassName:s}=e,d=v(e,W);return t.createElement(T,_(_({},d),{},{as:n,display:"flex",flexWrap:"wrap",gap:l,className:s,ref:a,alignItems:C(i,e=>"top"===e?"flexStart":"bottom"===e?"flexEnd":"center"),justifyContent:C(r,e=>"left"===e?"flexStart":"right"===e?"flexEnd":"center")}),o)})),H=["as","space","align","dividers","width","children","exceptionallySetClassName"],Y=E((function(e,a){let{as:n,space:r,align:i,dividers:o="none",width:s="full",children:d,exceptionallySetClassName:c}=e,m=v(e,H);const u=void 0===i?void 0:C(i,e=>"start"===e?"flexStart":"end"===e?"flexEnd":"center");return t.createElement(T,_(_({},m),{},{display:"flex",flexDirection:"column",width:s,alignItems:u,gap:r,as:n,className:c,ref:a}),"none"!==o?t.Children.map(l(d),(e,a)=>a>0?t.createElement(t.Fragment,null,t.createElement(P,{weight:o}),e):e):d)})),U=["display","children","exceptionallySetClassName"],q=E((function(e,a){let{display:n="block",children:l,exceptionallySetClassName:r}=e,i=v(e,U);const o="print"in i&&i.print,s="above"in i,d="below"in i,c="below"in i&&"desktop"===i.below||"above"in i&&"mobile"===i.above;return s&&d&&console.warn('<Hidden /> should receive either above="…" or below="…" but not both'),s||d||o||console.warn("<Hidden /> did not receive any criteria to hide itself"),"above"in i&&delete i.above,"below"in i&&delete i.below,"print"in i&&delete i.print,t.createElement(T,_(_({},i),{},{ref:a,className:[r,o?"_0e595dea":null],display:s&&d?"none":{mobile:d?"none":n,tablet:c?"none":n,desktop:s?"none":n}}),l)})),K=E((function(e,a){return t.createElement(T,_(_({},e),{},{ref:a,position:"absolute",overflow:"hidden",className:"_618235b7"}))}));function G({children:e,content:a,position:n="top",gapSize:l=3,withArrow:i=!1,exceptionallySetClassName:o}){const s=function(e){const a=r.useTooltipState(e),n=function(){const e=t.useRef(),a=t.useCallback((function(){null!=e.current&&clearTimeout(e.current)}),[]);return t.useEffect(()=>a,[a]),t.useCallback((function(t,n){return()=>{a(),e.current=setTimeout(t,n)}}),[a])}();return t.useMemo(()=>_(_({},a),{},{show:n(()=>a.show(),500),hide:n(()=>a.hide(),100)}),[n,a])}({placement:n,gutter:l}),d=t.Children.only(e);if(!a||!d)return d;if("string"==typeof d.ref)throw new Error("Tooltip: String refs cannot be used as they cannot be forwarded");function c(e){var t;e.currentTarget.addEventListener("keyup",(function(e){const t=e.key;"Escape"!==t&&"Enter"!==t&&"Space"!==t&&s.show()}),{once:!0}),e.preventDefault(),null==d||null==(t=d.props)||null==t.onFocus||t.onFocus(e)}function m(e){var t;s.hide(),null==d||null==(t=d.props)||null==t.onBlur||t.onBlur(e)}return t.createElement(t.Fragment,null,t.createElement(r.TooltipAnchor,{state:s,ref:d.ref,described:!0},e=>t.cloneElement(d,_(_(_({},e),d.props),{},{onFocus:c,onBlur:m}))),s.open?t.createElement(T,{as:r.Tooltip,state:s,className:["_487c82cd",o],background:"toast",borderRadius:"standard",paddingX:"small",paddingY:"xsmall",maxWidth:"medium",width:"fitContent",overflow:"hidden",textAlign:"center"},i?t.createElement(r.TooltipArrow,null):null,"function"==typeof a?a():a):null)}function V({size:e=24}){return t.createElement("svg",{"aria-hidden":!0,width:e,height:e,viewBox:"0 0 24 24",className:"_51539197","data-chromatic":"ignore"},t.createElement("g",{fill:"none",fillRule:"nonzero"},t.createElement("path",{className:"a0c466ed",d:"M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z"}),t.createElement("path",{className:"_745b73d3",d:"M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z"})))}var X={baseButton:"_8313bd46",label:"_0051d171","shape-rounded":"_8eb8f0fa","size-small":"_8b7f1a82","size-normal":"_5e45d59f","size-large":"_95951888",disabled:"_43792df1",iconButton:"_8644eccb",startIcon:"a44d4350",endIcon:"_073e1aa4","variant-primary":"_7a4dbd5f","variant-secondary":"_54d56775","variant-tertiary":"_907a61ca","variant-quaternary":"f169a390","tone-destructive":"ccb3eb8c"};const Z=["as","variant","tone","size","shape","disabled","loading","tooltip","onClick","exceptionallySetClassName","children","startIcon","endIcon","icon","width","align"];function $(e){e.preventDefault()}const J=E((function(e,a){let{as:n="div",variant:l,tone:r="normal",size:i="normal",shape:o="normal",disabled:s=!1,loading:d=!1,tooltip:c,onClick:m,exceptionallySetClassName:u,children:p,startIcon:f,endIcon:g,icon:b,width:h="auto",align:x="center"}=e,y=v(e,Z);const E=d||s,w=t.createElement(T,_(_({},y),{},{as:n,ref:a,"aria-disabled":E,onClick:E?$:m,width:b?void 0:h,className:[u,X.baseButton,X["variant-"+l],X["tone-"+r],X["size-"+i],"rounded"===o?X["shape-rounded"]:null,b?X.iconButton:null,s?X.disabled:null]}),b?d&&t.createElement(V,null)||b:t.createElement(t.Fragment,null,f?t.createElement(T,{display:"flex",className:X.startIcon,"aria-hidden":!0},d&&!g?t.createElement(V,null):f):null,p?t.createElement(T,{as:"span",className:X.label,overflow:"hidden",width:"full"===h?"full":void 0,textAlign:"auto"===h?"center":x},p):null,g||d&&!f?t.createElement(T,{display:"flex",className:X.endIcon,"aria-hidden":!0},d?t.createElement(V,null):g):null)),C=b&&void 0===c?y["aria-label"]:c;return C?t.createElement(G,{content:C},w):w})),Q=["variant","tone","size","type","disabled","exceptionallySetClassName"],ee=t.forwardRef((function(e,a){let{variant:n,tone:l="normal",size:r="normal",type:i="button",disabled:o=!1,exceptionallySetClassName:s}=e,d=v(e,Q);return t.createElement(J,_(_({},d),{},{as:"button",ref:a,variant:n,tone:l,size:r,type:i,disabled:o,exceptionallySetClassName:s}))})),te=["tone"],ae={info:function(e){return t.createElement("svg",_({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm0-1a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm1.18-11.84a.84.84 0 1 1-1.68 0 .84.84 0 0 1 1.68 0zM12.5 10a.5.5 0 0 1 .5.5V15h1a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1h1v-4h-1a.5.5 0 0 1 0-1h1.5z",fill:"currentColor"}))},positive:function(e){return t.createElement("svg",_({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm0-1a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm-4.354-8.104a.5.5 0 0 1 .708 0l2.146 2.147 5.146-5.147a.5.5 0 0 1 .708.708l-5.5 5.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 0-.708z",fill:"currentColor"}))},caution:function(e){return t.createElement("svg",_({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m3.254 16.992 7.018-12.03a2 2 0 0 1 3.455 0l7.018 12.03A2 2 0 0 1 19.018 20H4.982a2 2 0 0 1-1.728-3.008zm8.242-11.887a1 1 0 0 0-.36.36l-7.018 12.03A1 1 0 0 0 4.982 19h14.036a1 1 0 0 0 .864-1.504l-7.018-12.03a1 1 0 0 0-1.368-.36zM13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.014-7.014a.987.987 0 1 0-1.971.055l.236 4.25c.053.945 1.445.945 1.498 0l.236-4.25.001-.027v-.028z",fill:"currentColor"}))},critical:function(e){return t.createElement("svg",_({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM2.5 12a9.5 9.5 0 1 1 19 0 9.5 9.5 0 0 1-19 0zM13 15.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.014-7.014A.987.987 0 0 0 12 7.5h-.027l-.028.002a.987.987 0 0 0-.93 1.04l.236 4.25c.053.944 1.445.944 1.498 0l.236-4.25.001-.028v-.027z",fill:"currentColor"}))}};function ne(e){let{tone:a}=e,n=v(e,te);const l=ae[a];return l?t.createElement(l,_({},n)):null}function le(e){return t.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("path",{fill:"currentColor",d:"M5.146 5.146a.5.5 0 0 1 .708 0L12 11.293l6.146-6.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 0 .708L12.707 12l6.147 6.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.708 0L12 12.707l-6.146 6.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1 0-.708L11.293 12 5.146 5.854a.5.5 0 0 1-.057-.638z"}))}var re={container:"eb665121","tone-info":"d0373ff9","tone-positive":"bb18dcab","tone-caution":"_0af02331","tone-critical":"f76146f9"};let ie=0;function oe(e){return e+"-"+ie++}function se(e){const a=t.useRef(null!=e?e:null);return a.current||(a.current=oe("element")),a.current}var de={banner:"c1dffd60","banner-info":"_9d552538","banner-promotion":"d797752e",title:"_8cd610da","title-without-description":"_78ea5373","title-info":"_319c73fa","title-promotion":"fc84253f",description:"af4bd758","description-info":"b95a8c07","description-promotion":"_3c33f615"};const ce=["id","tone","icon","title","description","action"],me=t.forwardRef((function(e,a){let{id:n,tone:l,icon:r,title:i,description:o,action:s}=e,d=v(e,ce);const c=se(),m=se();return t.createElement(T,_(_({},d),{},{ref:a,id:n,role:"status","aria-labelledby":c,"aria-describedby":m,"aria-live":"polite",tabIndex:0,borderRadius:"standard",className:[de.banner,de["banner-"+l]]}),t.createElement(O,{space:"medium",alignY:"center"},t.createElement(I,{width:"content","aria-hidden":!0,style:{lineHeight:0}},r),t.createElement(I,null,t.createElement(T,{paddingY:"xsmall"},t.createElement(T,o?{id:c,className:[de.title,de["title-"+l]]}:{id:c,className:[de.title,de["title-without-description"],de["title-"+l]]},i),o?t.createElement(T,{id:m,className:[de.description,de["description-"+l]]},o):null)),s?t.createElement(I,{width:"content"},s):null))})),ue=["size","exceptionallySetClassName"],pe={xsmall:16,small:24,medium:36,large:48};var fe={container:"_464500ae","tone-info":"_1abfe147","tone-positive":"_36ce9859","tone-caution":"f92214b7","tone-critical":"be6cf28e"},ge={text:"a83bd4e0","size-caption":"_266d6623","size-copy":"a8d37c6e","size-subtitle":"_39f4eb1f","weight-semibold":"_7be5c531","weight-bold":"e214ff2e","tone-secondary":"_6a3e5ade","tone-danger":"_8f5b5f2b","tone-positive":"_9ae47ae4",lineClampMultipleLines:"_969f18f7","lineClamp-1":"_2f303ac3","lineClamp-2":"d3e04245","lineClamp-3":"_33411704","lineClamp-4":"bfc32640","lineClamp-5":"f813c82f"};const be=["as","size","weight","tone","align","children","lineClamp","exceptionallySetClassName"],he=E((function(e,a){let{as:n,size:l="body",weight:r="regular",tone:i="normal",align:o,children:s,lineClamp:d,exceptionallySetClassName:c}=e,m=v(e,be);const u="string"==typeof d?Number(d)>1:(null!=d?d:1)>1;return t.createElement(T,_(_({},m),{},{as:n,className:[c,ge.text,"body"!==l?w(ge,"size",l):null,"regular"!==r?w(ge,"weight",r):null,"normal"!==i?w(ge,"tone",i):null,u?ge.lineClampMultipleLines:null,d?w(ge,"lineClamp",d.toString()):null],textAlign:o,paddingRight:d?"xsmall":void 0,ref:a}),s)})),xe=["message","description","icon","action","onDismiss","dismissLabel"],_e=a.forwardRef((function(e,t){let{message:n,description:l,icon:r,action:i,onDismiss:o,dismissLabel:s="Close"}=e,d=v(e,xe);return a.createElement(T,_({ref:t,role:"alert","aria-live":"polite",borderRadius:"full",width:"fitContent",background:"toast",display:"flex",padding:"large",alignItems:"center",className:"_1b5f8e86"},d),r?a.createElement(ye,null,r):null,a.createElement(T,{flexGrow:1,maxWidth:"small"},l?a.createElement(Y,{space:"small"},a.createElement(he,{weight:"bold"},n," "),a.createElement(he,null,l)):a.createElement(he,null,n)),i?a.createElement(ye,null,function(e){return null!=e&&"object"==typeof e&&"label"in e&&"onClick"in e&&"string"==typeof e.label&&"function"==typeof e.onClick}(i)?a.createElement(ee,{variant:"tertiary",size:"small",onClick:i.onClick},i.label):i):null,o?a.createElement(ye,null,a.createElement(ee,{variant:"quaternary",size:"small",onClick:o,"aria-label":s,icon:a.createElement(le,null)})):null)}));function ye({children:e}){return a.createElement(T,{display:"flex",alignItems:"center",justifyContent:"center",marginX:"-xsmall",marginY:"-medium",className:"ce2e3476"},e)}function ve({element:e,transforms:t,transition:a,done:n}){const l=setTimeout(()=>{null==n||n()},400);t.forEach(({property:t,from:a=""})=>{e.style.setProperty(t,a)}),e.style.setProperty("transition",""),e.addEventListener("transitionend",(function t(a){a.target===e&&(e.style.setProperty("transition",""),null==n||n(),e.removeEventListener("transitionend",t),clearTimeout(l))})),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{e.style.setProperty("transition",a),t.forEach(({property:t,to:a=""})=>{e.style.setProperty(t,a)})})})}const Ee=["toastId"],we=a.forwardRef((function({message:e,description:t,icon:n,action:l,autoDismissDelay:r,dismissLabel:i,showDismissButton:o=!0,toastId:s,onDismiss:d,onRemoveToast:c},m){const[u,p]=a.useState(Boolean(r)),f=a.useRef(),g=a.useCallback((function(){p(!0)}),[]),b=a.useCallback((function(){p(!1),clearTimeout(f.current),f.current=void 0}),[]);return a.useEffect((function(){if(u&&r)return f.current=window.setTimeout(()=>{c(s),null==d||d()},1e3*r),b}),[r,d,c,s,b,u]),a.createElement(_e,{ref:m,message:e,description:t,icon:n,action:l,onDismiss:o?()=>{null==d||d(),c(s)}:void 0,dismissLabel:i,onMouseEnter:b,onMouseLeave:g})})),Ce=a.createContext(()=>()=>{});function ke(){return a.useContext(Ce)}var Ne={heading:"_71a1610c","weight-light":"_63750f40","tone-secondary":"_9ce984cf","tone-danger":"_1acad35e","size-largest":"_3da27a00","size-larger":"df220733","size-smaller":"eb373739",lineClampMultipleLines:"f53cfd2b","lineClamp-1":"e4819fc9","lineClamp-2":"a0ed6177","lineClamp-3":"_180d433e","lineClamp-4":"_40826ad9","lineClamp-5":"_5999b247"};const Se=["level","weight","size","tone","children","lineClamp","align","exceptionallySetClassName"],Re=t.forwardRef((function(e,a){let{level:n,weight:l="regular",size:r,tone:i="normal",children:o,lineClamp:s,align:d,exceptionallySetClassName:c}=e,m=v(e,Se);const u="h"+n,p="string"==typeof s?parseInt(s,10)>1:(s||0)>1;return t.createElement(T,_(_({},m),{},{className:[c,Ne.heading,"regular"!==l?w(Ne,"weight",l):null,"normal"!==i?w(Ne,"tone",i):null,w(Ne,"size",r),p?Ne.lineClampMultipleLines:null,s?w(Ne,"lineClamp",s.toString()):null],textAlign:d,paddingRight:s?"xsmall":void 0,as:u,ref:a}),o)})),Le=["darkModeTypography","exceptionallySetClassName"],Be=["as","variant","tone","size","exceptionallySetClassName","openInNewTab"],Te=E((function(e,a){let{as:n="a",variant:l,tone:r="normal",size:i="normal",exceptionallySetClassName:o,openInNewTab:s=!1}=e,d=v(e,Be);return t.createElement(J,_(_({},d),{},{as:n,ref:a,variant:l,tone:r,size:i,exceptionallySetClassName:o,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0}))})),Ae=["as","openInNewTab","exceptionallySetClassName"],ze=E((function(e,a){let{as:n="a",openInNewTab:l=!1,exceptionallySetClassName:r}=e,i=v(e,Ae);return t.createElement(T,_(_({},i),{},{as:n,display:"inline",className:[r,"fdc181b3"],ref:a,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0}))})),De=["checked","indeterminate","disabled"],Ie={checked:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2.457 4.293l-5.293 5.293-1.793-1.793a1 1 0 1 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l6-6a1 1 0 1 0-1.414-1.414z",unchecked:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm0 1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z",mixed:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2 7H8a1 1 0 0 0 0 2h8a1 1 0 0 0 0-2z",filled:"M6 4H18C19.1046 4 20 4.89543 20 6V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V6C4 4.89543 4.89543 4 6 4Z"};function Oe(e){let{checked:a,indeterminate:n,disabled:l}=e,r=v(e,De);const i=function({checked:e,indeterminate:t,disabled:a}){return t?"mixed":e?"checked":a?"filled":"unchecked"}({checked:a,indeterminate:n,disabled:l});return t.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},r),t.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:Ie[i]}))}const Me=["label","icon","disabled","indeterminate","defaultChecked","onChange"],Fe=t.forwardRef((function(e,a){var n,l,r;let{label:i,icon:s,disabled:d,indeterminate:c,defaultChecked:m,onChange:u}=e,p=v(e,Me);"boolean"!=typeof c||"boolean"==typeof p.checked||(console.warn("Cannot use indeterminate on an uncontrolled checkbox"),c=void 0),i||p["aria-label"]||p["aria-labelledby"]||console.warn("A Checkbox needs a label");const[f,g]=t.useState(!1),[b,h]=t.useState(null!=(n=null!=(l=p.checked)?l:m)&&n),x=null!=(r=p.checked)?r:b,y=t.useRef(null),E=o.useForkRef(y,a);return t.useEffect((function(){y.current&&"boolean"==typeof c&&(y.current.indeterminate=c)}),[c]),t.createElement(T,{as:"label",display:"flex",alignItems:"center",className:["_84dfdb83",d?"_131a2ca4":null,x?"_95b1556d":null,f?"_49de7ebd":null]},t.createElement("input",_(_({},p),{},{ref:E,type:"checkbox","aria-checked":c?"mixed":x,checked:x,disabled:d,onChange:e=>{null==u||u(e),e.defaultPrevented||h(e.currentTarget.checked)},onBlur:e=>{g(!1),null==p||null==p.onBlur||p.onBlur(e)},onKeyUp:e=>{g(!0),null==p||null==p.onKeyUp||p.onKeyUp(e)}})),t.createElement(Oe,{checked:x,disabled:d,indeterminate:c,"aria-hidden":!0}),s?t.createElement(T,{display:"flex",className:"_6b4b1851","aria-hidden":!0},s):null,i?t.createElement(T,{display:"flex",className:"_9047f3bd"},t.createElement(he,null,i)):null)}));function Pe(e){return t.createElement(he,_({as:"p",tone:"secondary",size:"copy"},e))}function We(e){return t.createElement("svg",_({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.5C4.96243 2.5 2.5 4.96243 2.5 8C2.5 11.0376 4.96243 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8C13.5 4.96243 11.0376 2.5 8 2.5ZM1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8ZM8.66667 10.3333C8.66667 10.7015 8.36819 11 8 11C7.63181 11 7.33333 10.7015 7.33333 10.3333C7.33333 9.96514 7.63181 9.66667 8 9.66667C8.36819 9.66667 8.66667 9.96514 8.66667 10.3333ZM8.65766 5.65766C8.65766 5.29445 8.36322 5 8 5C7.99087 5.00008 7.98631 5.00013 7.98175 5.00025C7.97719 5.00038 7.97263 5.00059 7.96352 5.00101C7.60086 5.02116 7.3232 5.33149 7.34335 5.69415L7.50077 8.52774C7.53575 9.15742 8.46425 9.15742 8.49923 8.52774L8.65665 5.69415C8.65707 5.68503 8.65728 5.68047 8.65741 5.67591C8.65754 5.67135 8.65758 5.66679 8.65766 5.65766Z",fill:"currentColor"}))}function je({id:e,children:a,tone:n}){return t.createElement(he,{as:"p",tone:"error"===n?"danger":"success"===n?"positive":"normal",size:"copy",id:e},t.createElement(T,{as:"span",marginRight:"xsmall",display:"inlineFlex",className:"_77b2107e"},"loading"===n?t.createElement(V,{size:16}):t.createElement(We,{"aria-hidden":!0})),a)}function He({variant:e="default",label:a,secondaryLabel:n,auxiliaryLabel:l,hint:r,message:i,tone:o="neutral",className:s,children:d,maxWidth:c,hidden:m,"aria-describedby":u,id:p}){const f=se(p),g=se(),b=se(),h={id:f,"aria-describedby":null!=u?u:[i?b:null,g].filter(Boolean).join(" "),"aria-invalid":"error"===o||void 0};return t.createElement(Y,{space:"small",hidden:m},t.createElement(T,{className:[s,"_2e189908","error"===o?"d1a17d92":null,"bordered"===e?"fd20ef50":null],maxWidth:c},a||n||l?t.createElement(T,{as:"span",display:"flex",justifyContent:"spaceBetween",alignItems:"flexEnd"},t.createElement(he,{size:"bordered"===e?"caption":"body",as:"label",htmlFor:f},a?t.createElement("span",{className:"_75e0afa0"},a):null,n?t.createElement("span",{className:"d04a867d"}," (",n,")"):null),l?t.createElement(T,{className:"_83051e0a",paddingLeft:"small"},l):null):null,d(h)),i?t.createElement(je,{id:b,tone:o},i):null,r?t.createElement(Pe,{id:g},r):null)}function Ye(e){return t.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"gray"},t.createElement("path",{d:"M21.358 12C17.825 7.65 14.692 5.5 12 5.5c-2.624 0-5.67 2.043-9.097 6.181a.5.5 0 0 0 0 .638C6.331 16.457 9.376 18.5 12 18.5c2.692 0 5.825-2.15 9.358-6.5z"}),t.createElement("circle",{cx:"12",cy:"12",r:"3.5"})))}function Ue(e){return t.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("g",{fill:"gray",fillRule:"evenodd",transform:"translate(2 4)"},t.createElement("path",{fillRule:"nonzero",d:"M13.047 2.888C11.962 2.294 10.944 2 10 2 7.56 2 4.63 3.966 1.288 8c1.133 1.368 2.218 2.497 3.253 3.394l-.708.708c-1.068-.93-2.173-2.085-3.315-3.464a1 1 0 0 1 0-1.276C4.031 3.121 7.192 1 10 1c1.196 0 2.456.385 3.78 1.154l-.733.734zm-6.02 10.263C8.084 13.72 9.076 14 10 14c2.443 0 5.373-1.969 8.712-6-1.11-1.34-2.176-2.453-3.193-3.341l.708-.709C17.437 5.013 18.695 6.363 20 8c-3.721 4.667-7.054 7-10 7-1.175 0-2.411-.371-3.709-1.113l.735-.736z"}),t.createElement("path",{fillRule:"nonzero",d:"M8.478 11.7l.79-.79a3 3 0 0 0 3.642-3.642l.79-.79A4 4 0 0 1 8.477 11.7zM6.334 9.602a4 4 0 0 1 5.268-5.268l-.78.78A3.002 3.002 0 0 0 7.113 8.82l-.78.78z"}),t.createElement("rect",{width:"21",height:"1",x:"-.722",y:"7.778",rx:".5",transform:"rotate(-45 9.778 8.278)"})))}const qe=["variant","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","togglePasswordLabel","hidden","aria-describedby"],Ke=t.forwardRef((function(e,a){let{variant:n="default",label:l,secondaryLabel:r,auxiliaryLabel:i,hint:s,message:d,tone:c,maxWidth:m,togglePasswordLabel:u="Toggle password visibility",hidden:p,"aria-describedby":f}=e,g=v(e,qe);const b=se(g.id),h=t.useRef(null),x=o.useForkRef(h,a),[y,E]=t.useState(!1);function w(){var e;E(e=>!e),null==(e=h.current)||e.focus()}return t.createElement(He,{variant:n,id:b,label:l,secondaryLabel:r,auxiliaryLabel:i,hint:s,message:d,tone:c,maxWidth:m,hidden:p,"aria-describedby":f},e=>t.createElement(T,{display:"flex",alignItems:"center",className:["_66b448b3","fb09cd05","error"===c?"_29118bf0":null,"bordered"===n?"f65f40dd":null]},t.createElement("input",_(_(_({},g),e),{},{ref:x,type:y?"text":"password"})),t.createElement(G,{content:u},t.createElement("button",{type:"button",onClick:w,"aria-label":u,tabIndex:-1},t.createElement(y?Ye:Ue,{"aria-hidden":!0})))))})),Ge=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","children","hidden","aria-describedby"],Ve=t.forwardRef((function(e,a){let{variant:n="default",id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:s,message:d,tone:c,maxWidth:m,children:u,hidden:p,"aria-describedby":f}=e,g=v(e,Ge);return t.createElement(He,{variant:n,id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:s,message:d,tone:c,maxWidth:m,hidden:p,"aria-describedby":f},e=>t.createElement(T,{"data-testid":"select-wrapper",className:["a804edbf","error"===c?"a6d38abf":null,"bordered"===n?"_50a3655f":null]},t.createElement("select",_(_(_({},g),e),{},{ref:a}),u),t.createElement(Xe,{"aria-hidden":!0})))}));function Xe(e){return t.createElement("svg",_({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11.646 5.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 1 1 .708-.708L8 9.293l3.646-3.647z",fill:"currentColor"}))}const Ze=["label","hint","disabled","hidden","defaultChecked","id","aria-describedby","aria-label","aria-labelledby","onChange"],$e=t.forwardRef((function(e,a){var n,l,r;let{label:i,hint:o,disabled:s=!1,hidden:d,defaultChecked:c,id:m,"aria-describedby":u,"aria-label":p,"aria-labelledby":f,onChange:g}=e,b=v(e,Ze);const h=se(m),x=se(),y=null!=u?u:o?x:void 0,E=null!=p?p:void 0,w=null!=f?f:void 0,[C,k]=t.useState(!1),[N,S]=t.useState(null!=(n=null!=(l=b.checked)?l:c)&&n),R=null!=(r=b.checked)?r:N;return t.createElement(Y,{space:"small",hidden:d},t.createElement(T,{className:["bae487be",s?"_408d32a0":null,R?"_99b0ead7":null,C?"_1f5e7fd4":null],as:"label",display:"flex",alignItems:"center"},t.createElement(T,{position:"relative",display:"inlineBlock",overflow:"visible",marginRight:"small",flexShrink:0,className:"_5af09fb5"},t.createElement(K,null,t.createElement("input",_(_({},b),{},{id:h,type:"checkbox",disabled:s,"aria-describedby":y,"aria-label":E,"aria-labelledby":w,ref:a,checked:R,onChange:e=>{null==g||g(e),e.defaultPrevented||S(e.currentTarget.checked)},onBlur:e=>{k(!1),null==b||null==b.onBlur||b.onBlur(e)},onKeyUp:e=>{k(!0),null==b||null==b.onKeyUp||b.onKeyUp(e)}}))),t.createElement("span",{className:"_0dcf70ec"})),t.createElement(he,{exceptionallySetClassName:"a66e1846"},i)),o?t.createElement(Pe,{id:x},o):null)})),Je=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","hidden","aria-describedby","rows","autoExpand"],Qe=t.forwardRef((function(e,a){let{variant:n="default",id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:d,message:c,tone:m,maxWidth:u,hidden:p,"aria-describedby":f,rows:g,autoExpand:b=!1}=e,h=v(e,Je);const x=t.useRef(null),y=t.useRef(null),E=s.useMergeRefs([a,y]);return t.useEffect((function(){const e=x.current;function t(t){e&&(e.dataset.replicatedValue=t.currentTarget.value)}const a=y.current;if(a&&b)return a.addEventListener("input",t),()=>a.removeEventListener("input",t)}),[b]),t.createElement(He,{variant:n,id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:d,message:c,tone:m,hidden:p,"aria-describedby":f,className:["_21dbfa84","error"===m?"a862f0e5":null,"bordered"===n?"f081b428":null],maxWidth:u},e=>t.createElement(T,{width:"full",display:"flex",className:"_43588660",ref:x},t.createElement("textarea",_(_(_({},h),e),{},{ref:E,rows:g,className:b?"_46360b15":void 0}))))})),et=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","type","maxWidth","hidden","aria-describedby","startIcon"],tt=t.forwardRef((function(e,a){let{variant:n="default",id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:d,message:c,tone:m,type:u="text",maxWidth:p,hidden:f,"aria-describedby":g,startIcon:b}=e,h=v(e,et);const x=t.useRef(null),y=s.useMergeRefs([a,x]);function E(){var e;null==(e=x.current)||e.focus()}return t.createElement(He,{variant:n,id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:d,message:c,tone:m,maxWidth:p,hidden:f,"aria-describedby":g},e=>t.createElement(T,{display:"flex",alignItems:"center",className:["fb09cd05","error"===m?"_29118bf0":null,"bordered"===n?"f65f40dd":null]},b?t.createElement(T,{display:"flex",className:"a40eb111",onClick:E,marginRight:"-xsmall",marginLeft:"small","aria-hidden":!0},b):null,t.createElement("input",_(_(_({},h),e),{},{type:u,ref:y}))))}));function at(e){var t;if(!e)return"";const a=e.trim().split(" "),n=a[0],l=a[a.length-1];let r=null==n?void 0:n[0];return null!=n&&null!=l&&null!=r&&n[0]!==l[0]&&(r+=l[0]),null==(t=r)?void 0:t.toUpperCase()}function nt(e,t){const a=e.split("@")[0];return(a&&a.charCodeAt(0)+a.charCodeAt(a.length-1)||0)%t}var lt={avatar:"_38a1be89","size-xxs":"d32e92ae","size-xs":"_0667d719","size-s":"cf529fcf","size-m":"_6e268eab","size-l":"d64c62cf","size-xl":"_44fb77de","size-xxl":"_01f85e0e","size-xxxl":"_41a5fe19","tablet-size-xxs":"_6ab1577d","tablet-size-xs":"b52a4963","tablet-size-s":"_714a8419","tablet-size-m":"_81cd4d51","tablet-size-l":"bf0a4edb","tablet-size-xl":"e4f0dabd","tablet-size-xxl":"_67ea065d","tablet-size-xxxl":"_2af7f76f","desktop-size-xxs":"_759081dc","desktop-size-xs":"_8290d1c1","desktop-size-s":"_48ea172d","desktop-size-m":"_758f6641","desktop-size-l":"f9ada088","desktop-size-xl":"d3bb7470","desktop-size-xxl":"_9a312ee3","desktop-size-xxxl":"a1d30c23"};const rt=["user","avatarUrl","size","className","colorList","exceptionallySetClassName"],it=["#fcc652","#e9952c","#e16b2d","#d84b40","#e8435a","#e5198a","#ad3889","#86389c","#a8a8a8","#98be2f","#5d9d50","#5f9f85","#5bbcb6","#32a3bf","#2bafeb","#2d88c3","#3863cc","#5e5e5e"];function ot(e){let{user:a,avatarUrl:n,size:l="l",className:r,colorList:i=it,exceptionallySetClassName:o}=e,s=v(e,rt);const d=at(a.name)||at(a.email),c=l||"l",m=n?{backgroundImage:"url("+n+")",textIndent:"-9999px"}:{backgroundColor:i[nt(a.email,i.length)]},u=w(lt,"size",c);return t.createElement(T,_({className:[r,lt.avatar,u,o],style:m},s),d)}ot.displayName="Avatar";var st={badge:"_7957de66","badge-info":"c6106b8c","badge-positive":"_6b06bf87","badge-promote":"a6d2daa2","badge-attention":"bbb036ff"};const dt=["tone","label"];var ct={overlay:"_8aa86dd3",fadein:"_20c07ee6",fitContent:"_713bc08f",container:"_45139719",full:"ec8619a2",large:"_86a1d5a4",medium:"_11d61de3",small:"aee19643",xlarge:"fe449c81",expand:"_61ffb38f",buttonContainer:"_49ffdac0",headerContent:"ee92ccb3"};const mt=["isOpen","onDismiss","height","width","exceptionallySetClassName","exceptionallySetOverlayClassName","autoFocus","hideOnEscape","hideOnInteractOutside","children","portalElement"],ut=["children","button","withDivider","exceptionallySetClassName"],pt=["exceptionallySetClassName","children"],ft=["exceptionallySetClassName","withDivider"],gt=["children"],bt=t.createContext({onDismiss:void 0,height:"fitContent"});function ht(e){return!(e.ownerDocument===document&&"iframe"===e.tagName.toLowerCase())}function xt(e){const{onDismiss:a}=t.useContext(bt),[n,l]=t.useState(!1),[r,i]=t.useState(!1);return t.useEffect((function(){r?l(!0):i(!0)}),[r]),t.createElement(ee,_(_({},e),{},{variant:"quaternary",onClick:a,icon:t.createElement(le,null),tabIndex:n?0:-1}))}function _t(e){let{exceptionallySetClassName:a,withDivider:n=!1}=e,l=v(e,ft);return t.createElement(t.Fragment,null,n?t.createElement(P,null):null,t.createElement(T,_(_({as:"footer"},l),{},{className:a,padding:"large"})))}var yt={tab:"e96bf360",track:"_430e252d","tab-neutral":"f631ccbe","tab-themed":"_6ba96acc","track-neutral":"ef4cd8d3","track-themed":"_344b3b10"};const vt=["as","children","id","exceptionallySetClassName"],Et=["children","space"],wt=["children","id","as","render"],Ct=t.createContext(null),kt=E((function(e,a){let{as:l,children:r,id:i,exceptionallySetClassName:o}=e,s=v(e,vt);const d=t.useContext(Ct);if(!d)return null;const{variant:c,tabState:m}=d;return t.createElement(u.Tab,_(_({},s),{},{as:l,className:n(o,yt.tab,yt["tab-"+c]),id:i,state:m,ref:a}),r)})),Nt=E((function(e,a){let{children:n,id:l,as:r,render:i="always"}=e,o=v(e,wt);const s=t.useContext(Ct),[d,c]=t.useState(!1),m=(null==s?void 0:s.tabState.selectedId)===l;if(t.useEffect((function(){!d&&m&&c(!0)}),[d,m]),!s)return null;const{tabState:p}=s;return"always"===i||"active"===i&&m||"lazy"===i&&(m||d)?t.createElement(u.TabPanel,_(_({tabId:l},o),{},{state:p,as:r,ref:a}),n):null})),St=["children","onItemSelect"],Rt=["exceptionallySetClassName"],Lt=["as"],Bt=["exceptionallySetClassName","modal"],Tt=["value","children","onSelect","hideOnSelect","onClick","exceptionallySetClassName","as"],At=["label","children","exceptionallySetClassName"],zt=t.createContext({});function Dt(e){let{children:a,onItemSelect:n}=e,l=v(e,St);const[r,i]=t.useState(null),o=t.useMemo(()=>r?()=>r:void 0,[r]),s=p.useMenuState(_({focusLoop:!0,gutter:8,shift:4,getAnchorRect:o},l)),d=t.useCallback((function(e){n&&n(e)}),[n]),c=t.useMemo(()=>({state:s,handleItemSelect:d,handleAnchorRectChange:i}),[s,d]);return t.createElement(zt.Provider,{value:c},a)}const It=E((function(e,a){let{exceptionallySetClassName:l}=e,r=v(e,Rt);const{state:i}=t.useContext(zt);return t.createElement(p.MenuButton,_(_({},r),{},{state:i,ref:a,className:n("reactist_menubutton",l)}))})),Ot=E((function(e,a){let{as:n="div"}=e,l=v(e,Lt);const{handleAnchorRectChange:r,state:i}=t.useContext(zt),o=t.useCallback(e=>{e.preventDefault(),r({x:e.clientX,y:e.clientY}),i.show()},[r,i]);return t.createElement(n,_(_({},l),{},{onContextMenu:o,ref:a}))})),Mt=E((function(e,a){let{exceptionallySetClassName:l,modal:r=!0}=e,o=v(e,Bt);const{state:s}=t.useContext(zt);return s.open?t.createElement(i.Portal,{preserveTabOrder:!0},t.createElement(p.Menu,_(_({},o),{},{state:s,ref:a,className:n("reactist_menulist",l),modal:r}))):null})),Ft=E((function(e,a){let{value:n,children:l,onSelect:r,hideOnSelect:i=!0,onClick:o,exceptionallySetClassName:s,as:d="button"}=e,c=v(e,Tt);const{handleItemSelect:m,state:u}=t.useContext(zt),{hide:f}=u,g=t.useCallback((function(e){null==o||o(e);const t=!1!==(r&&!e.defaultPrevented?r():void 0)&&i;m(n),t&&f()}),[r,o,m,i,f,n]);return t.createElement(p.MenuItem,_(_({},c),{},{as:d,state:u,ref:a,onClick:g,className:s,hideOnClick:!1}),l)})),Pt=t.forwardRef((function({children:e,onItemSelect:a},n){const{handleItemSelect:l,state:r}=t.useContext(zt),{hide:i}=r,o=t.useCallback((function(e){a&&a(e),l(e),i()}),[i,l,a]),[s,d]=t.Children.toArray(e),c=t.useCallback((function(e){return t.cloneElement(s,e)}),[s]);return t.createElement(Dt,{onItemSelect:o},t.createElement(p.MenuItem,{as:"div",state:r,ref:n,hideOnClick:!1},c),d)})),Wt=E((function(e,a){let{label:n,children:l,exceptionallySetClassName:r}=e,i=v(e,At);const{state:o}=t.useContext(zt);return t.createElement(p.MenuGroup,_(_({},i),{},{ref:a,state:o,className:r}),n?t.createElement("div",{role:"presentation",className:"reactist_menugroup__label"},n):null,l)})),jt=["type","variant","size","loading","disabled","tooltip","onClick","children"],Ht=t.forwardRef((function(e,a){let{type:l="button",variant:r,size:i="default",loading:o=!1,disabled:s=!1,tooltip:d,onClick:c,children:m}=e,u=v(e,jt);const p=n("reactist_button",r?"reactist_button--"+r:null,"default"!==i?"reactist_button--"+i:null,{"reactist_button--loading":o},u.className),f=t.createElement("button",_(_({},u),{},{ref:a,type:l,className:p,"aria-disabled":s||o,onClick:s||o?void 0:c}),m);return d?t.createElement(G,{content:d},f):f}));Ht.displayName="Button",Ht.defaultProps={size:"default",loading:!1,disabled:!1};const Yt=["children","onClick","tooltip","className"];class Ut extends t.Component{constructor(e,t){super(e,t),this._timeout=void 0,this._handleClickOutside=e=>{const t=f.findDOMNode(this);t&&!t.contains(e.target)?this._toggleShowBody():this.props.allowBodyInteractions||(this._timeout=setTimeout(()=>{this.state.showBody&&this._toggleShowBody()},100))},this._toggleShowBody=()=>{this.state.showBody?(this.props.onHideBody&&this.props.onHideBody(),document.removeEventListener("click",this._handleClickOutside,!0)):(this.props.onShowBody&&this.props.onShowBody(),document.addEventListener("click",this._handleClickOutside,!0)),this.setState({showBody:!this.state.showBody})},this._setPosition=e=>{if(e){const t=document.getElementById(this.props.scrolling_parent?this.props.scrolling_parent:"");if(t){const a=f.findDOMNode(this);if(!a)return;const n=f.findDOMNode(this).offsetTop,l=a.querySelector(".trigger");if(!l)return;const r=t.clientHeight+t.scrollTop-n-l.clientHeight<e.clientHeight;r!==this.state.top&&this.setState({top:r})}}},this.state={showBody:!1,top:e.top||!1},this._timeout=void 0}componentWillUnmount(){document.removeEventListener("click",this._handleClickOutside,!0),this._timeout&&clearTimeout(this._timeout)}_getTriggerComponent(){var e;const a=null==(e=this.props.children)?void 0:e[0];return a?t.cloneElement(a,{onClick:this._toggleShowBody}):void 0}_getBodyComponent(){if(!this.state.showBody)return null;const{top:e}=this.state,{right:a=!1,children:l}=this.props,r={top:e,right:a,setPosition:this._setPosition},i=n({body_wrapper:!0,with_arrow:!0,top:e,bottom:!e}),o=null==l?void 0:l[1],s="function"==typeof o?o(r):o?t.cloneElement(o,r):void 0;return t.createElement("div",{className:i,style:{position:"relative"}},s)}render(){const e=n("reactist_dropdown",this.props.className),{top:a}=this.state;return t.createElement("div",{style:{display:"inline-block"},className:e,"data-testid":"reactist-dropdown-box"},a&&this._getBodyComponent(),this._getTriggerComponent(),!a&&this._getBodyComponent())}}Ut.displayName=void 0,Ut.displayName="Dropdown.Box";const qt=t.forwardRef((function(e,a){let{children:l,onClick:r,tooltip:i,className:o}=e,s=v(e,Yt);return t.createElement(Ht,_(_({},s),{},{className:n("trigger",o),onClick:function(e){e.preventDefault(),e.stopPropagation(),r&&r(e)},tooltip:i,ref:a}),l)}));function Kt({top:e,right:a,children:n,setPosition:l}){const r={position:"absolute",right:0,top:0};return e&&(r.top="auto",r.bottom=0),a&&(r.right="auto",r.left=0),t.createElement("div",{ref:l,style:r,className:"body",id:"reactist-dropdown-body","data-testid":"reactist-dropdown-body"},n)}qt.displayName="Dropdown.Trigger",Kt.displayName="Dropdown.Body";const Gt={Box:Ut,Trigger:qt,Body:Kt},Vt=["#606060","#4A90E2","#03B3B2","#008299","#82BA00","#D24726","#AC193D","#DC4FAD","#3BD5FB","#74E8D3","#FFCC00","#FB886E","#CCCCCC"],Xt=e=>"string"!=typeof e;function Zt({color:e=0,small:a,onChange:l,colorList:r=Vt}){return t.createElement(Gt.Box,{right:!0,className:"reactist_color_picker"},t.createElement(Gt.Trigger,null,(()=>{const l=((e,t)=>e[t>=e.length?0:t])(r,e);return t.createElement("span",{className:n("color_trigger",{small:a}),style:{backgroundColor:Xt(l)?l.color:l}},t.createElement("span",{className:"color_trigger--inner_ring"}))})()),t.createElement(Gt.Body,null,t.createElement("div",{className:"color_options"},r.reduce((a,n,i)=>(a.push(t.createElement($t,{isActive:e>=r.length?0===i:i===e,key:i,color:Xt(n)?n.color:n,colorIndex:i,onClick:l,tooltip:Xt(n)?n.name:null})),a),[]))))}function $t({color:e,colorIndex:a,isActive:n,onClick:l,tooltip:r}){const i=t.createElement("span",{"data-testid":"reactist-color-item",className:"reactist color_item"+(n?" active":""),style:{backgroundColor:e},onClick:()=>null==l?void 0:l(a)},t.createElement("span",{className:"color_item--inner_ring"}));return r?t.createElement(G,{content:r},i):i}Zt.displayName="ColorPicker",$t.displayName="ColorItem";const Jt=["children","className","translateKey","isMac"];let Qt=e=>e;function ea(e){switch(e.toLowerCase()){case"cmd":case"mod":return"⌘";case"control":case"ctrl":return"⌃";case"alt":return"⌥";case"shift":return"⇧";case"space":return"␣";default:return e}}function ta(e){var a,l;let{children:r,className:i,translateKey:o=Qt,isMac:s=null!=(a=null==(l=navigator.platform)?void 0:l.toUpperCase().includes("MAC"))&&a}=e,d=v(e,Jt);const c="string"==typeof r?[r]:r;return t.createElement("span",_({className:n("reactist_keyboard_shortcut",i,{"reactist_keyboard_shortcut--macos":s})},d),c.map((e,a)=>t.createElement(t.Fragment,{key:a},0===a?null:", ",t.createElement("kbd",null,function(e,t,a){const n=t?ea:a,l=/\b(mod|cmd|ctrl|control|alt|shift)\b/i.test(e);return t||(e=e.replace(/\b(mod|cmd)\b/i,"ctrl")),e.split(/\s*\+\s*/).map((function(e){return function(e){return/^(mod|cmd|ctrl|control|alt|shift|space|super)$/i.test(e)}(e)?function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}(n(e)):l&&1===e.length?e.toUpperCase():e}))}(e,s,o).map((e,a)=>t.createElement("kbd",{key:a},e))))))}ta.setTranslateKey=e=>{Qt=e};const aa={resolveByKey(e){switch(e){case"Left":case"ArrowLeft":return"ArrowLeft";case"Up":case"ArrowUp":return"ArrowUp";case"Right":case"ArrowRight":return"ArrowRight";case"Down":case"ArrowDown":return"ArrowDown";case"Enter":return"Enter";case"Backspace":return"Backspace";case"Esc":case"Escape":return"Escape";default:return null}},resolveByKeyCode(e){switch(e){case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 13:return"Enter";case 8:return"Backspace";case 27:return"Escape";default:return null}}},na={ArrowUp:"onArrowUp",ArrowDown:"onArrowDown",ArrowLeft:"onArrowLeft",ArrowRight:"onArrowRight",Enter:"onEnter",Backspace:"onBackspace",Escape:"onEscape"},la={ArrowUp:"propagateArrowUp",ArrowDown:"propagateArrowDown",ArrowLeft:"propagateArrowLeft",ArrowRight:"propagateArrowRight",Enter:"propagateEnter",Backspace:"propagateBackspace",Escape:"propagateEscape"};function ra({fillPercentage:e=0,className:a,"aria-valuetext":l}){const r=n("reactist_progress_bar",a),i=e<0?0:e>100?100:e;return t.createElement("div",{className:r},t.createElement("div",{className:"inner",style:{width:i+"%"}}),t.createElement(K,null,t.createElement("progress",{value:i,max:100,"aria-valuetext":null!=l?l:void 0})))}ra.displayName="ProgressBar",g.extend(b);const ia={SHORT_FORMAT_CURRENT_YEAR:"L",SHORT_FORMAT_PAST_YEAR:"LL",LONG_FORMAT:"LL, LT",timeAgo(e,t={}){const{locale:a="en",shortFormatCurrentYear:n=this.SHORT_FORMAT_CURRENT_YEAR,shortFormatPastYear:l=this.SHORT_FORMAT_PAST_YEAR,daysSuffix:r="d",hoursSuffix:i="h",minutesSuffix:o="m",momentsAgo:s="moments ago"}=t,d=g(),c=g(1e3*e);c.locale(a);const m=d.diff(c,"minute"),u=d.diff(c,"hour"),p=d.diff(c,"day");return p>1?c.isSame(d,"year")?c.format(n):c.format(l):1===p?""+p+r:u>0&&u<=23?""+u+i:m>0&&m<=59?""+m+o:s},formatTime(e,t={}){const{locale:a="en",shortFormatCurrentYear:n=this.SHORT_FORMAT_CURRENT_YEAR,shortFormatPastYear:l=this.SHORT_FORMAT_PAST_YEAR}=t,r=g(1e3*e);return r.locale(a),r.isSame(g(),"year")?r.format(n):r.format(l)},formatTimeLong(e,t={}){const{locale:a="en",longFormat:n=this.LONG_FORMAT}=t,l=g(1e3*e);return l.locale(a),l.format(n)}};class oa extends t.Component{constructor(e){super(e),this.refreshInterval=void 0,this.refreshInterval=void 0,this.state={hovered:!1,mouseX:void 0,mouseY:void 0}}componentDidMount(){this.props.refresh&&this._refresh()}componentDidUpdate(e){!e.refresh&&this.props.refresh&&this._refresh(),e.refresh&&!this.props.refresh&&this.refreshInterval&&clearTimeout(this.refreshInterval)}componentWillUnmount(){this.refreshInterval&&clearTimeout(this.refreshInterval)}_setHovered(e,t){const{mouseX:a,mouseY:n}=this.state,{clientX:l,clientY:r}=t;l===a&&r===n||this.setState(()=>({hovered:e,mouseX:l,mouseY:r}))}_renderTime(e){if(this.props.time){if(this.state.hovered){if(this.props.expandFullyOnHover&&!this.props.tooltipOnHover)return ia.formatTimeLong(this.props.time,e);if(this.props.expandOnHover&&!this.props.tooltipOnHover)return ia.formatTime(this.props.time,e)}return ia.timeAgo(this.props.time,e)}}_refresh(){this.refreshInterval=setInterval(()=>{this.forceUpdate()},6e4)}render(){let e="reactist_time";this.props.className&&(e=this.props.className);const a=this._renderTime(this.props.config);return t.createElement("time",{className:e,onMouseEnter:e=>this._setHovered(!0,e),onMouseLeave:e=>this._setHovered(!1,e)},this.props.tooltipOnHover?t.createElement(G,{content:this.props.tooltip||this.props.time&&ia.formatTimeLong(this.props.time,this.props.config)},t.createElement("span",null,a)):a)}}oa.displayName=void 0,oa.defaultProps=void 0,oa.displayName="Time",oa.defaultProps={expandOnHover:!1,expandFullyOnHover:!1,tooltipOnHover:!1,refresh:!0,config:{locale:"en",daysSuffix:"d",hoursSuffix:"h",minutesSuffix:"m",momentsAgo:"moments ago"}};const sa=t.forwardRef((e,a)=>{const l=n("reactist_input",e.className);return t.createElement("input",_(_({},e),{},{className:l,ref:a}))});sa.displayName="Input";const da=["value","options","onChange","disabled","className","defaultValue"];function ca(e){let{value:a,options:l=[],onChange:r,disabled:i=!0,className:o="",defaultValue:s}=e,d=v(e,da);const c=n("reactist_select",{disabled:i},o);return t.createElement("select",_({className:c,value:a,onChange:e=>r?r(e.target.value):void 0,disabled:i,defaultValue:s},d),null==l?void 0:l.map(e=>t.createElement("option",{key:e.key||e.value,value:e.value,disabled:e.disabled},e.text)))}ca.displayName="Select",ca.defaultProps={options:[],disabled:!1};var ma={"reach-portal":"ad18b0a0",fadein:"f7a1b219",fitContent:"_8ed9bb5c",container:"f67e892e",full:"_4139421e",large:"_649eb5fe",medium:"_5323e676",small:"_56ca7ae6",xlarge:"a7be0fce",overlay:"_88a7a680",expand:"b29456b8",buttonContainer:"_09ef1f4f",headerContent:"_0e5b530a"};const ua=["isOpen","onDismiss","height","width","exceptionallySetClassName","autoFocus","children"],pa=["children","button","withDivider","exceptionallySetClassName"],fa=["exceptionallySetClassName","children"],ga=["exceptionallySetClassName","withDivider"],ba=["children"],ha=t.createContext({onDismiss:void 0,height:"fitContent"});function xa(e){return!(e.ownerDocument===document&&"iframe"===e.tagName.toLowerCase())}function _a(e){const{onDismiss:a}=t.useContext(ha),[n,l]=t.useState(!1),[r,i]=t.useState(!1);return t.useEffect((function(){r?l(!0):i(!0)}),[r]),t.createElement(ee,_(_({},e),{},{variant:"quaternary",onClick:a,icon:t.createElement(le,null),tabIndex:n?0:-1}))}function ya(e){let{exceptionallySetClassName:a,withDivider:n=!1}=e,l=v(e,ga);return t.createElement(t.Fragment,null,n?t.createElement(P,null):null,t.createElement(T,_(_({as:"footer"},l),{},{className:a,padding:"large"})))}exports.Alert=function({id:e,children:a,tone:n,closeLabel:l,onClose:r}){return t.createElement(T,{id:e,role:"alert","aria-live":"polite",borderRadius:"standard",className:[re.container,w(re,"tone",n)]},t.createElement(O,{space:"small",alignY:"top"},t.createElement(I,{width:"content"},t.createElement(ne,{tone:n})),t.createElement(I,null,t.createElement(T,{paddingY:"xsmall",paddingRight:null!=r&&null!=l?void 0:"small"},a)),null!=r&&null!=l?t.createElement(I,{width:"content"},t.createElement(ee,{variant:"quaternary",size:"small",onClick:r,"aria-label":l,icon:t.createElement(le,null),style:{"--reactist-btn-hover-fill":"transparent"}})):null))},exports.Avatar=ot,exports.Badge=function(e){let{tone:a,label:n}=e,l=v(e,dt);return t.createElement(T,_(_({},l),{},{as:"span",display:"inline",className:[st.badge,st["badge-"+a]]}),n)},exports.Banner=me,exports.Box=T,exports.Button=ee,exports.ButtonLink=Te,exports.COLORS=Vt,exports.CheckboxField=Fe,exports.ColorPicker=Zt,exports.Column=I,exports.Columns=O,exports.ContextMenuTrigger=Ot,exports.DeprecatedButton=Ht,exports.DeprecatedDropdown=Gt,exports.DeprecatedInput=sa,exports.DeprecatedModal=function(e){let{isOpen:a,onDismiss:l,height:r="fitContent",width:i="medium",exceptionallySetClassName:o,autoFocus:s=!0,children:c}=e,m=v(e,ua);const u=t.useMemo(()=>({onDismiss:l,height:r}),[l,r]);return t.createElement(h.DialogOverlay,{isOpen:a,onDismiss:l,dangerouslyBypassFocusLock:!0,className:n(ma.overlay,ma[r],ma[i]),"data-testid":"modal-overlay"},t.createElement(d,{autoFocus:s,whiteList:xa,returnFocus:!0},t.createElement(h.DialogContent,_(_({},m),{},{as:T,borderRadius:"full",background:"default",display:"flex",flexDirection:"column",overflow:"hidden",height:"expand"===r?"full":void 0,flexGrow:"expand"===r?1:0,className:[o,ma.container]}),t.createElement(ha.Provider,{value:u},c))))},exports.DeprecatedModalActions=function(e){let{children:a}=e,n=v(e,ba);return t.createElement(ya,_({},n),t.createElement(j,{align:"right",space:"large"},a))},exports.DeprecatedModalBody=function(e){let{exceptionallySetClassName:a,children:n}=e,l=v(e,fa);const{height:r}=t.useContext(ha);return t.createElement(T,_(_({},l),{},{className:a,flexGrow:"expand"===r?1:0,height:"expand"===r?"full":void 0,overflow:"auto"}),t.createElement(T,{padding:"large",paddingBottom:"xxlarge"},n))},exports.DeprecatedModalCloseButton=_a,exports.DeprecatedModalFooter=ya,exports.DeprecatedModalHeader=function(e){let{children:a,button:n=!0,withDivider:l=!1,exceptionallySetClassName:r}=e,i=v(e,pa);return t.createElement(t.Fragment,null,t.createElement(T,_(_({},i),{},{as:"header",paddingLeft:"large",paddingRight:!1===n||null===n?"large":"small",paddingY:"small",className:r}),t.createElement(O,{space:"large",alignY:"center"},t.createElement(I,{width:"auto"},a),!1===n||null===n?t.createElement("div",{className:ma.headerContent}):t.createElement(I,{width:"content",exceptionallySetClassName:ma.buttonContainer,"data-testid":"button-container"},"boolean"==typeof n?t.createElement(_a,{"aria-label":"Close modal",autoFocus:!1}):n))),l?t.createElement(P,null):null)},exports.DeprecatedSelect=ca,exports.Divider=P,exports.Heading=Re,exports.Hidden=q,exports.HiddenVisually=K,exports.Inline=j,exports.KeyCapturer=function(e){const{children:a,eventName:n="onKeyDown"}=e,l=t.useRef(!1);return t.cloneElement(a,_({[n]:function(t){const a=void 0!==t.key?aa.resolveByKey(t.key):aa.resolveByKeyCode(t.keyCode);if(!a)return;const n=e[la[a]]||!1,r=e[na[a]];"Enter"===a&&r&&(l.current||229===(t.keyCode||t.which))||r&&(r(t),n||(t.preventDefault(),t.stopPropagation()))}},e.onEnter?{onCompositionStart:()=>{l.current=!0},onCompositionEnd:()=>{l.current=!1}}:void 0))},exports.KeyboardShortcut=ta,exports.Loading=function(e){var a;let{size:n="small",exceptionallySetClassName:l}=e,r=v(e,ue);const i=null!=(a=pe[n])?a:pe.small,o=r["aria-label"]?r["aria-label"]:r["aria-labelledby"]?void 0:"Loading…";return t.createElement(T,_(_({},r),{},{"aria-label":o,className:l,display:"flex",alignItems:"center",justifyContent:"center",role:"progressbar"}),t.createElement(V,{size:i,"aria-hidden":!0}))},exports.Menu=Dt,exports.MenuButton=It,exports.MenuGroup=Wt,exports.MenuItem=Ft,exports.MenuList=Mt,exports.Modal=function(e){let{isOpen:a,onDismiss:l,height:r="fitContent",width:o="medium",exceptionallySetClassName:s,exceptionallySetOverlayClassName:u,autoFocus:p=!0,hideOnEscape:f=!0,hideOnInteractOutside:g=!0,children:b,portalElement:h}=e,x=v(e,mt);const y=t.useCallback(e=>{e||null==l||l()},[l]),E=m.useDialogState({open:a,setOpen:y}),w=t.useMemo(()=>({onDismiss:l,height:r}),[l,r]),C=t.useRef(null),k=t.useRef(null),N=t.useRef(null),S=t.useCallback(e=>{var t,a;null!=(t=k.current)&&t.contains(e.target)||null==(a=N.current)||!a.contains(e.target)||(e.stopPropagation(),null==l||l())},[l]);return t.useLayoutEffect((function(){if(a&&C.current)return c.hideOthers(C.current)}),[a]),a?t.createElement(i.Portal,{portalRef:C,portalElement:h},t.createElement(T,{"data-testid":"modal-overlay","data-overlay":!0,className:n(ct.overlay,ct[r],ct[o],u),onPointerDown:g?S:void 0,ref:N},t.createElement(d,{autoFocus:p,whiteList:ht,returnFocus:!0},t.createElement(m.Dialog,_(_({},x),{},{ref:k,as:T,state:E,hideOnEscape:f,preventBodyScroll:!0,borderRadius:"full",background:"default",display:"flex",flexDirection:"column",overflow:"hidden",height:"expand"===r?"full":void 0,flexGrow:"expand"===r?1:0,className:[s,ct.container],modal:!1,autoFocus:!1,autoFocusOnShow:!1,autoFocusOnHide:!1,portal:!1,backdrop:!1,hideOnInteractOutside:!1}),t.createElement(bt.Provider,{value:w},b))))):null},exports.ModalActions=function(e){let{children:a}=e,n=v(e,gt);return t.createElement(_t,_({},n),t.createElement(j,{align:"right",space:"large"},a))},exports.ModalBody=function(e){let{exceptionallySetClassName:a,children:n}=e,l=v(e,pt);const{height:r}=t.useContext(bt);return t.createElement(T,_(_({},l),{},{className:a,flexGrow:"expand"===r?1:0,height:"expand"===r?"full":void 0,overflow:"auto"}),t.createElement(T,{padding:"large",paddingBottom:"xxlarge"},n))},exports.ModalCloseButton=xt,exports.ModalFooter=_t,exports.ModalHeader=function(e){let{children:a,button:n=!0,withDivider:l=!1,exceptionallySetClassName:r}=e,i=v(e,ut);return t.createElement(t.Fragment,null,t.createElement(T,_(_({},i),{},{as:"header",paddingLeft:"large",paddingRight:!1===n||null===n?"large":"small",paddingY:"small",className:r}),t.createElement(O,{space:"large",alignY:"center"},t.createElement(I,{width:"auto"},a),!1===n||null===n?t.createElement("div",{className:ct.headerContent}):t.createElement(I,{width:"content",exceptionallySetClassName:ct.buttonContainer,"data-testid":"button-container"},"boolean"==typeof n?t.createElement(xt,{"aria-label":"Close modal",autoFocus:!1}):n))),l?t.createElement(P,null):null)},exports.Notice=function({id:e,children:a,tone:n}){return t.createElement(T,{id:e,role:"alert","aria-live":"polite",className:[fe.container,w(fe,"tone",n)]},t.createElement(O,{space:"small",alignY:"top"},t.createElement(I,{width:"content"},t.createElement(ne,{tone:n})),t.createElement(I,null,t.createElement(T,{paddingY:"xsmall"},a))))},exports.PasswordField=Ke,exports.ProgressBar=ra,exports.Prose=function(e){let{darkModeTypography:a,exceptionallySetClassName:n}=e,l=v(e,Le);return t.createElement(T,_(_({},l),{},{className:["_1f36658e",a?"d26ab086":null,n]}))},exports.SUPPORTED_KEYS={ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ENTER:"Enter",BACKSPACE:"Backspace",ESCAPE:"Escape"},exports.SelectField=Ve,exports.Stack=Y,exports.StaticToast=_e,exports.SubMenu=Pt,exports.SwitchField=$e,exports.Tab=kt,exports.TabAwareSlot=function({children:e}){const a=t.useContext(Ct);return a?e({selectedId:null==a?void 0:a.tabState.selectedId}):null},exports.TabList=function(e){let{children:a,space:n="xsmall"}=e,l=v(e,Et);const r=t.useContext(Ct);if(!r)return null;const{tabState:i,variant:o}=r;return t.createElement(T,null,t.createElement(u.TabList,_({state:i,as:T,position:"relative",width:"maxContent"},l),t.createElement(T,{className:[yt.track,yt["track-"+o]]}),t.createElement(j,{space:n},a)))},exports.TabPanel=Nt,exports.Tabs=function({children:e,selectedId:a,defaultSelectedId:n,variant:l="neutral",onSelectedIdChange:r}){const i=u.useTabState({selectedId:a,setSelectedId:r}),o=function(e){const a=t.useRef(null);return t.useEffect(()=>{a.current=e},[e]),a.current}(n),{selectedId:s,select:d}=i;t.useEffect((function(){a||n===o||n===s||void 0===n||d(n)}),[a,n,s,d,o]);const c=t.useMemo((function(){return{tabState:i,variant:l}}),[l,i]);return t.createElement(Ct.Provider,{value:c},e)},exports.Text=he,exports.TextArea=Qe,exports.TextField=tt,exports.TextLink=ze,exports.Time=oa,exports.Toast=function(e){const t=ke(),n=a.useRef(e);return a.useEffect(()=>t(n.current),[t]),null},exports.ToastsProvider=function({children:e,padding:n="large",defaultAutoDismissDelay:l=10,defaultDismissLabel:r="Close"}){const[o,s]=a.useState([]),{mappedRef:d,animateRemove:c}=function(){const e=t.useMemo(()=>new Map,[]),a=t.useMemo(()=>new Map,[]);t.useLayoutEffect(()=>{const t=[];Array.from(e.entries()).forEach(([n,l])=>{if(!l)return void e.delete(n);const r=a.get(n),{top:i,height:o}=l.getBoundingClientRect();"number"==typeof r&&r!==i?t.push({element:l,transition:"transform 0.3s ease, opacity 0.3s ease",transforms:[{property:"transform",from:"translateY("+(r-i)+"px)"}]}):"number"!=typeof r&&t.push({element:l,transition:"transform 0.3s ease, opacity 0.3s ease",transforms:[{property:"transform",from:"translateY("+o+"px)"},{property:"opacity",from:"0"}]}),a.set(n,l.getBoundingClientRect().top)}),t.forEach(({element:e,transforms:t,transition:a})=>{ve({element:e,transforms:t,transition:a})})});const n=t.useCallback((function(t,a){const n=e.get(t);n&&ve({element:n,transforms:[{property:"opacity",to:"0"}],transition:"opacity 0.2s ease",done:a})}),[e]);return{mappedRef:t.useCallback(t=>a=>{e.set(t,a)},[e]),animateRemove:n}}(),m=a.useCallback((function(e){c(e,()=>{s(t=>{const a=t.findIndex(t=>t.toastId===e);if(a<0)return t;const n=[...t];return n.splice(a,1),n})})}),[c]),u=a.useCallback((function(e){const t=oe("toast"),a=_(_({autoDismissDelay:l,dismissLabel:r},e),{},{toastId:t});return s(e=>[...e,a]),()=>m(t)}),[l,r,m]);return a.createElement(Ce.Provider,{value:u},e,a.createElement(i.Portal,null,0===o.length?null:a.createElement(T,{className:"_616cc3f3",position:"fixed",width:"full",paddingX:n,paddingBottom:n},a.createElement(Y,{space:"medium"},o.map(e=>{let{toastId:t}=e,n=v(e,Ee);return a.createElement(we,_({key:t,ref:d(t),toastId:t,onRemoveToast:m},n))})))))},exports.Tooltip=G,exports.useToasts=ke;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),a=e(t),n=e(require("classnames")),l=e(require("react-keyed-flatten-children")),r=require("ariakit/tooltip"),i=require("ariakit/portal"),o=require("ariakit-react-utils"),s=require("use-callback-ref"),d=e(require("react-focus-lock")),c=require("aria-hidden"),m=require("ariakit/dialog"),u=require("ariakit/tab"),p=require("ariakit/menu"),f=e(require("react-dom")),g=e(require("dayjs")),b=e(require("dayjs/plugin/localizedFormat")),h=require("@reach/dialog");function x(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function _(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?x(Object(a),!0).forEach((function(t){y(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):x(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function y(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function v(e,t){if(null==e)return{};var a,n,l=function(e,t){if(null==e)return{};var a,n,l={},r=Object.keys(e);for(n=0;n<r.length;n++)t.indexOf(a=r[n])>=0||(l[a]=e[a]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)t.indexOf(a=r[n])>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}function E(e){return t.forwardRef(e)}function C(e,t,a){if(!a)return null;const n=[];return"string"==typeof a?n.push(e[t+"-"+a]):(a.mobile&&n.push(e[t+"-"+a.mobile]),a.tablet&&n.push(e["tablet-"+t+"-"+a.tablet]),a.desktop&&n.push(e["desktop-"+t+"-"+a.desktop])),n}function w(e,t){if(e)return"object"!=typeof e?t(e):{mobile:e.mobile?t(e.mobile):void 0,tablet:e.tablet?t(e.tablet):void 0,desktop:e.desktop?t(e.desktop):void 0}}var k={box:"_2a3b75a1","position-absolute":"_2286072d","position-fixed":"_0847ebf3","position-relative":"_9015266f","position-sticky":"_572136cd","tablet-position-absolute":"dec0da3c","tablet-position-fixed":"eb3f61a4","tablet-position-relative":"_6a9d01dd","tablet-position-sticky":"cf9268ba","desktop-position-absolute":"_6579cc9c","desktop-position-fixed":"_3a6a421f","desktop-position-relative":"_3a6950ac","desktop-position-sticky":"_142cd372","display-block":"_9a084bff","display-flex":"_509a57b4","display-inline":"_4a786bb9","display-inlineBlock":"_5d644b40","display-inlineFlex":"_973d00d0","display-none":"_3e4f26a6","tablet-display-block":"d525fe3a","tablet-display-flex":"_316c9f4b","tablet-display-inline":"_5e788d98","tablet-display-inlineBlock":"_851fc6b8","tablet-display-inlineFlex":"c16ba46a","tablet-display-none":"_759c0c1a","desktop-display-block":"c374b455","desktop-display-flex":"_8a854d8f","desktop-display-inline":"_805fa8dc","desktop-display-inlineBlock":"ab26af05","desktop-display-inlineFlex":"_9bd12ba4","desktop-display-none":"_581476ce","flexDirection-column":"_1fb9d90e","flexDirection-row":"e5a9206f","tablet-flexDirection-column":"_3e6a0be1","tablet-flexDirection-row":"e9e2e53a","desktop-flexDirection-column":"c7d6b073","desktop-flexDirection-row":"_935269b4","flexWrap-wrap":"_3692f9c2","flexWrap-nowrap":"_55f6f487","flexShrink-0":"d5d0d34a","flexGrow-0":"d8ff7933","flexGrow-1":"_4a93668a","alignItems-flexStart":"_5a8c5a77","alignItems-center":"_50ba6b6b","alignItems-flexEnd":"_3963f790","alignItems-baseline":"_55ef2d4e","tablet-alignItems-flexStart":"_3e2bfb5d","tablet-alignItems-center":"a99be1ab","tablet-alignItems-flexEnd":"fa8221fe","tablet-alignItems-baseline":"e83669a0","desktop-alignItems-flexStart":"_65e6b537","desktop-alignItems-center":"db356482","desktop-alignItems-flexEnd":"acc08587","desktop-alignItems-baseline":"ad033867","justifyContent-flexStart":"_985b733f","justifyContent-center":"_95a98d2a","justifyContent-flexEnd":"be9bf31a","justifyContent-spaceAround":"a89d8798","justifyContent-spaceBetween":"_904ef8fe","justifyContent-spaceEvenly":"_489975d5","tablet-justifyContent-flexStart":"a7175ae7","tablet-justifyContent-center":"_7334dead","tablet-justifyContent-flexEnd":"_746de733","tablet-justifyContent-spaceAround":"_6d09398a","tablet-justifyContent-spaceBetween":"c2324c1d","tablet-justifyContent-spaceEvenly":"_04bd6e07","desktop-justifyContent-flexStart":"_39b310de","desktop-justifyContent-center":"_0dc77292","desktop-justifyContent-flexEnd":"_96c15bd8","desktop-justifyContent-spaceBetween":"_096111a6","alignSelf-stretch":"_35d69587","alignSelf-flexStart":"f46f3a67","alignSelf-center":"fb6a8035","alignSelf-flexEnd":"d3193acd","alignSelf-baseline":"_1154f656","tablet-alignSelf-stretch":"_298e04af","tablet-alignSelf-flexStart":"_2c729d24","tablet-alignSelf-center":"_9ea5e943","tablet-alignSelf-flexEnd":"_02266425","tablet-alignSelf-baseline":"c16a5800","desktop-alignSelf-stretch":"_2ec9eb74","desktop-alignSelf-flexStart":"_34f1fb03","desktop-alignSelf-center":"_77c58550","desktop-alignSelf-flexEnd":"_9ffa429f","desktop-alignSelf-baseline":"_6cc14c5d","overflow-hidden":"f6342c26","overflow-auto":"_10a2f952","overflow-visible":"f20b8b87","overflow-scroll":"_4954f87c","height-full":"a83fb2f5","bg-default":"d85cf739","bg-aside":"_4eb1d749","bg-highlight":"da1ccaa5","bg-selected":"_82dc28e7","bg-toast":"_63ba3dfa","borderRadius-standard":"_34cd2b5e","borderRadius-full":"_5fe4d5e3","border-primary":"_1b34ffd9","border-secondary":"_705519b0","border-tertiary":"_67adc238","textAlign-start":"fff8bff0","textAlign-center":"f973eed0","textAlign-end":"_225acbd7","textAlign-justify":"dea1e8ba","tablet-textAlign-start":"_919d6c8f","tablet-textAlign-center":"ab9d970e","tablet-textAlign-end":"b5b45e0e","tablet-textAlign-justify":"bd6e42e0","desktop-textAlign-start":"_15120506","desktop-textAlign-center":"_337333b5","desktop-textAlign-end":"_221db0fb","desktop-textAlign-justify":"_29ea9711"},S={"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9ab24b","paddingTop-medium":"_1d226e27","paddingTop-large":"eb6097f1","paddingTop-xlarge":"d3229ba4","paddingTop-xxlarge":"_47978ba4","tablet-paddingTop-xsmall":"f987719c","tablet-paddingTop-small":"_8dbc4b4d","tablet-paddingTop-medium":"ae44fe07","tablet-paddingTop-large":"ffe9548d","tablet-paddingTop-xlarge":"f2b76a44","tablet-paddingTop-xxlarge":"c6eb8f43","desktop-paddingTop-xsmall":"_8699b560","desktop-paddingTop-small":"_02c374b7","desktop-paddingTop-medium":"_0dd0332f","desktop-paddingTop-large":"da55f1f6","desktop-paddingTop-xlarge":"_8ef2a278","desktop-paddingTop-xxlarge":"_8b493b28","paddingRight-xsmall":"_211eebc7","paddingRight-small":"ad0ccf15","paddingRight-medium":"a03e39af","paddingRight-large":"f0941ead","paddingRight-xlarge":"e47c5a43","paddingRight-xxlarge":"e849a5cf","tablet-paddingRight-xsmall":"_85374228","tablet-paddingRight-small":"_89df37b9","tablet-paddingRight-medium":"_1cc50ebe","tablet-paddingRight-large":"_1060982b","tablet-paddingRight-xlarge":"be58847d","tablet-paddingRight-xxlarge":"_45093484","desktop-paddingRight-xsmall":"f8d99d6a","desktop-paddingRight-small":"efa076d9","desktop-paddingRight-medium":"e59caa64","desktop-paddingRight-large":"da42f46a","desktop-paddingRight-xlarge":"b3ee2580","desktop-paddingRight-xxlarge":"_3ef94658","paddingBottom-xsmall":"b0e6eab4","paddingBottom-small":"_9510d053","paddingBottom-medium":"d7af60c9","paddingBottom-large":"b75f86cd","paddingBottom-xlarge":"fbd4ce29","paddingBottom-xxlarge":"_33e3ad63","tablet-paddingBottom-xsmall":"f0302da7","tablet-paddingBottom-small":"_4f9b8012","tablet-paddingBottom-medium":"_4333e20e","tablet-paddingBottom-large":"_30bbc76c","tablet-paddingBottom-xlarge":"ba5a4008","tablet-paddingBottom-xxlarge":"_423a3b1a","desktop-paddingBottom-xsmall":"b40139b7","desktop-paddingBottom-small":"f96071fa","desktop-paddingBottom-medium":"fe803c9a","desktop-paddingBottom-large":"_01686eb9","desktop-paddingBottom-xlarge":"afa763d8","desktop-paddingBottom-xxlarge":"a95785f1","paddingLeft-xsmall":"cad4e2ec","paddingLeft-small":"d70b3c17","paddingLeft-medium":"_8c851bd6","paddingLeft-large":"_078feb3c","paddingLeft-xlarge":"_76ab968c","paddingLeft-xxlarge":"aaca85d7","tablet-paddingLeft-xsmall":"_5eb0e5aa","tablet-paddingLeft-small":"_0384fb4f","tablet-paddingLeft-medium":"edffff6f","tablet-paddingLeft-large":"_873b9a46","tablet-paddingLeft-xlarge":"_89105db5","tablet-paddingLeft-xxlarge":"db1966fe","desktop-paddingLeft-xsmall":"b17f826b","desktop-paddingLeft-small":"_6dc83610","desktop-paddingLeft-medium":"_3421b8b2","desktop-paddingLeft-large":"_68cec7a6","desktop-paddingLeft-xlarge":"_94bde020","desktop-paddingLeft-xxlarge":"b94ee579"},N={"marginTop-xsmall":"c7813d79","marginTop-small":"d3449da6","marginTop-medium":"_4ea254c1","marginTop-large":"c0844f64","marginTop-xlarge":"_213145b4","marginTop-xxlarge":"df61c84c","marginTop--xsmall":"efe72b13","marginTop--small":"_870c2768","marginTop--medium":"_0b927c57","marginTop--large":"_461db014","marginTop--xlarge":"_2a3a8cb8","marginTop--xxlarge":"_9bcda921","tablet-marginTop-xsmall":"_6add01e4","tablet-marginTop-small":"_735ef86b","tablet-marginTop-medium":"_0477d068","tablet-marginTop-large":"_2c90af97","tablet-marginTop-xlarge":"_63a82db6","tablet-marginTop-xxlarge":"_03cd7726","tablet-marginTop--xsmall":"c986a62a","tablet-marginTop--small":"be2bdcdd","tablet-marginTop--medium":"_47d2686b","tablet-marginTop--large":"_25e5af9d","tablet-marginTop--xlarge":"ee82f441","tablet-marginTop--xxlarge":"a6f9d404","desktop-marginTop-xsmall":"_4d8d9a36","desktop-marginTop-small":"e813cee7","desktop-marginTop-medium":"_56975b7d","desktop-marginTop-large":"_53b367f6","desktop-marginTop-xlarge":"d69e7311","desktop-marginTop-xxlarge":"_92f57c7e","desktop-marginTop--xsmall":"_96880d3e","desktop-marginTop--small":"dc3f3555","desktop-marginTop--medium":"_86dd06bb","desktop-marginTop--large":"c93ef12e","desktop-marginTop--xlarge":"bc8fd4a2","desktop-marginTop--xxlarge":"b12a9124","marginRight-xsmall":"_6016f4fb","marginRight-small":"b85e3dfa","marginRight-medium":"_297575f4","marginRight-large":"b401ac6c","marginRight-xlarge":"dc3ec387","marginRight-xxlarge":"_24694604","marginRight--xsmall":"_8e9bf2ee","marginRight--small":"ae9d1115","marginRight--medium":"_14e46fc3","marginRight--large":"_3370631b","marginRight--xlarge":"_3f0e9b50","marginRight--xxlarge":"bc13e010","tablet-marginRight-xsmall":"_6fa1aae3","tablet-marginRight-small":"_2976c5cb","tablet-marginRight-medium":"_38d94802","tablet-marginRight-large":"db9569b5","tablet-marginRight-xlarge":"_4a52f06d","tablet-marginRight-xxlarge":"_8a0f0410","tablet-marginRight--xsmall":"e7d40e9d","tablet-marginRight--small":"_680fde91","tablet-marginRight--medium":"_021010ca","tablet-marginRight--large":"_9e52c87c","tablet-marginRight--xlarge":"_4d602613","tablet-marginRight--xxlarge":"_21b1b65a","desktop-marginRight-xsmall":"_7321bc07","desktop-marginRight-small":"fa1721f4","desktop-marginRight-medium":"_3fd7b4b8","desktop-marginRight-large":"_4fdc2f74","desktop-marginRight-xlarge":"c0254761","desktop-marginRight-xxlarge":"_710a5f09","desktop-marginRight--xsmall":"e08bee7f","desktop-marginRight--small":"e5ab73d2","desktop-marginRight--medium":"_5e731477","desktop-marginRight--large":"_0f57a22e","desktop-marginRight--xlarge":"_25f26ed3","desktop-marginRight--xxlarge":"_11a3b4e0","marginBottom-xsmall":"_6a4f69f7","marginBottom-small":"db26b033","marginBottom-medium":"c7313022","marginBottom-large":"a5885889","marginBottom-xlarge":"_33dfbd8e","marginBottom-xxlarge":"_795ad2de","marginBottom--xsmall":"a329dbd3","marginBottom--small":"_85e739fb","marginBottom--medium":"_681f65ff","marginBottom--large":"caf50d8f","marginBottom--xlarge":"_1e084cbf","marginBottom--xxlarge":"_3dfb1c7e","tablet-marginBottom-xsmall":"ef4735be","tablet-marginBottom-small":"de55afba","tablet-marginBottom-medium":"_0e33ce88","tablet-marginBottom-large":"_8ca391fc","tablet-marginBottom-xlarge":"_3a609d23","tablet-marginBottom-xxlarge":"_3e1177e4","tablet-marginBottom--xsmall":"d384884d","tablet-marginBottom--small":"_75254cec","tablet-marginBottom--medium":"_5d9f127d","tablet-marginBottom--large":"_835f1089","tablet-marginBottom--xlarge":"dad52a72","tablet-marginBottom--xxlarge":"_8703a4bf","desktop-marginBottom-xsmall":"_90fd20e9","desktop-marginBottom-small":"f3769191","desktop-marginBottom-medium":"_156410f8","desktop-marginBottom-large":"_7fed74d0","desktop-marginBottom-xlarge":"_477dc10e","desktop-marginBottom-xxlarge":"_85c82d89","desktop-marginBottom--xsmall":"_4f09c1e0","desktop-marginBottom--small":"_9523e048","desktop-marginBottom--medium":"efe10240","desktop-marginBottom--large":"c43971e6","desktop-marginBottom--xlarge":"f9b4da15","desktop-marginBottom--xxlarge":"a10fdf70","marginLeft-xsmall":"f9be90b4","marginLeft-small":"f53218d5","marginLeft-medium":"c4a9b3ab","marginLeft-large":"_5755e2c3","marginLeft-xlarge":"_33fc9354","marginLeft-xxlarge":"_4749a3bf","marginLeft--xsmall":"c76cb3c7","marginLeft--small":"_96003c07","marginLeft--medium":"_09988d07","marginLeft--large":"b4a486f6","marginLeft--xlarge":"f396e75e","marginLeft--xxlarge":"_81d1f26d","tablet-marginLeft-xsmall":"_0a46e8f1","tablet-marginLeft-small":"_57c970af","tablet-marginLeft-medium":"_4b6099d3","tablet-marginLeft-large":"_378fcff5","tablet-marginLeft-xlarge":"f8785663","tablet-marginLeft-xxlarge":"_72f957ee","tablet-marginLeft--xsmall":"_2288c7e1","tablet-marginLeft--small":"b27c1c05","tablet-marginLeft--medium":"_702cbb13","tablet-marginLeft--large":"_1a2748b4","tablet-marginLeft--xlarge":"b8c043a5","tablet-marginLeft--xxlarge":"_8dc8ff63","desktop-marginLeft-xsmall":"c2af646d","desktop-marginLeft-small":"c03d07be","desktop-marginLeft-medium":"_915fb1d3","desktop-marginLeft-large":"_64214ee1","desktop-marginLeft-xlarge":"_7be4a22c","desktop-marginLeft-xxlarge":"_5ec0a401","desktop-marginLeft--xsmall":"ea29f1ee","desktop-marginLeft--small":"c26652c7","desktop-marginLeft--medium":"c24f6af9","desktop-marginLeft--large":"c2671f27","desktop-marginLeft--xlarge":"cc51a04e","desktop-marginLeft--xxlarge":"fd581f54"},R={"minWidth-0":"_68ab48ca","minWidth-xsmall":"_6fa2b565","minWidth-small":"dd50fabd","minWidth-medium":"e7e2c808","minWidth-large":"_6abbe25e","minWidth-xlarge":"_54f479ac","maxWidth-xsmall":"_148492bc","maxWidth-small":"bd023b96","maxWidth-medium":"e102903f","maxWidth-large":"_0e8d76d7","maxWidth-xlarge":"_47a031d0","maxWidth-full":"cd4c8183","width-0":"_5f5959e8","width-full":"_8c75067a","width-auto":"_56a651f6","width-maxContent":"_26f87bb8","width-minContent":"_07a6ab44","width-fitContent":"a87016fa","width-xsmall":"_1a972e50","width-small":"c96d8261","width-medium":"f3829d42","width-large":"_2caef228","width-xlarge":"_069e1491"},L={"gap-none":"_64ed24f4","gap-xsmall":"_2580a74b","gap-small":"c68f8bf6","gap-medium":"_43e5f8e9","gap-large":"_966b120f","gap-xlarge":"f957894c","gap-xxlarge":"_8cca104b","tablet-gap-none":"_5797cee2","tablet-gap-xsmall":"_9015672f","tablet-gap-small":"_7ec86eec","tablet-gap-medium":"_714d7179","tablet-gap-large":"ae1deb59","tablet-gap-xlarge":"e1cfce55","tablet-gap-xxlarge":"_168a8ff8","desktop-gap-none":"_43e2b619","desktop-gap-xsmall":"_0ea9bf88","desktop-gap-small":"d451307a","desktop-gap-medium":"bf93cf66","desktop-gap-large":"_1430cddf","desktop-gap-xlarge":"fa00c93e","desktop-gap-xxlarge":"_6f3aee54"};const B=["as","position","display","flexDirection","flexWrap","flexGrow","flexShrink","gap","alignItems","justifyContent","alignSelf","overflow","width","height","background","border","borderRadius","minWidth","maxWidth","textAlign","padding","paddingY","paddingX","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","marginY","marginX","marginTop","marginRight","marginBottom","marginLeft","className","children"],T=E((function(e,a){var l,r,i,o,s,d,c,m;let{as:u="div",position:p="static",display:f,flexDirection:g="row",flexWrap:b,flexGrow:h,flexShrink:x,gap:y,alignItems:E,justifyContent:w,alignSelf:T,overflow:A,width:z,height:D,background:O,border:I,borderRadius:M,minWidth:F,maxWidth:P,textAlign:W,padding:j,paddingY:H,paddingX:Y,paddingTop:U,paddingRight:q,paddingBottom:K,paddingLeft:G,margin:V,marginY:X,marginX:Z,marginTop:$,marginRight:J,marginBottom:Q,marginLeft:ee,className:te,children:ae}=e,ne=v(e,B);const le=null!=(l=null!=U?U:H)?l:j,re=null!=(r=null!=q?q:Y)?r:j,ie=null!=(i=null!=K?K:H)?i:j,oe=null!=(o=null!=G?G:Y)?o:j,se=null!=(s=null!=$?$:X)?s:V,de=null!=(d=null!=J?J:Z)?d:V,ce=null!=(c=null!=Q?Q:X)?c:V,me=null!=(m=null!=ee?ee:Z)?m:V,ue=!f||"string"==typeof f&&"flex"!==f&&"inlineFlex"!==f;return t.createElement(u,_(_({},ne),{},{className:n(te,k.box,f?C(k,"display",f):null,"static"!==p?C(k,"position",p):null,null!=F?C(R,"minWidth",String(F)):null,C(R,"maxWidth",P),C(k,"textAlign",W),C(S,"paddingTop",le),C(S,"paddingRight",re),C(S,"paddingBottom",ie),C(S,"paddingLeft",oe),C(N,"marginTop",se),C(N,"marginRight",de),C(N,"marginBottom",ce),C(N,"marginLeft",me),ue?null:C(k,"flexDirection",g),ue?null:C(k,"flexWrap",b),ue?null:C(k,"alignItems",E),ue?null:C(k,"justifyContent",w),null!=T?C(k,"alignSelf",T):null,null!=x?C(k,"flexShrink",String(x)):null,null!=h?C(k,"flexGrow",String(h)):null,y?C(L,"gap",y):null,C(k,"overflow",A),null!=z?C(R,"width",String(z)):null,C(k,"height",D),C(k,"bg",O),"none"!==M?C(k,"borderRadius",M):null,"none"!==I?C(k,"border",I):null)||void 0,ref:a}),ae)}));var A={container:"eae3d34f","container-xsmall":"_9b4012c9","container-small":"e35e0320","container-medium":"_0703e67f","container-large":"_1cf15621","container-xlarge":"_1c7dff67","container-xxlarge":"_25bee9b6","columnWidth-content":"_4bb9987d","columnWidth-auto":"_9dd31975","columnWidth-1-2":"_38d11c0e","columnWidth-1-3":"_7ac225c6","columnWidth-2-3":"_9c340680","columnWidth-1-4":"_81cb99d2","columnWidth-3-4":"_10fd355f","columnWidth-1-5":"_3ee66520","columnWidth-2-5":"df1201a5","columnWidth-3-5":"f772e0b2","columnWidth-4-5":"_880cbbb1"};const z=["width","children","exceptionallySetClassName"],D=["space","align","alignY","collapseBelow","children","exceptionallySetClassName"],O=E((function(e,a){let{width:n="auto",children:l,exceptionallySetClassName:r}=e,i=v(e,z);return t.createElement(T,_(_({},i),{},{className:[r,C(A,"columnWidth",n.replace("/","-"))],minWidth:0,height:"full",flexShrink:"content"===n?0:void 0,flexGrow:"auto"===n?1:0,ref:a}),l)})),I=E((function(e,a){let{space:n,align:l="left",alignY:r="top",collapseBelow:i,children:o,exceptionallySetClassName:s}=e,d=v(e,D);return t.createElement(T,_(_({},d),{},{className:[s,A.container,C(A,"container",n)],display:"flex",gap:n,flexDirection:"desktop"===i?{mobile:"column",tablet:"column",desktop:"row"}:"tablet"===i?{mobile:"column",tablet:"row"}:"row",alignItems:w(r,e=>"top"===e?"flexStart":"bottom"===e?"flexEnd":e),justifyContent:w(l,e=>"left"===e?"flexStart":"right"===e?"flexEnd":e),ref:a}),o)}));var M={"weight-primary":"_3f3a401c","weight-secondary":"_03b05b70","weight-tertiary":"b6f67ff8"};const F=["weight"];function P(e){let{weight:a="tertiary"}=e,n=v(e,F);return t.createElement(T,_({as:"hr",className:C(M,"weight",a)},n))}const W=["as","space","align","alignY","children","exceptionallySetClassName"],j=E((function(e,a){let{as:n,space:l,align:r="left",alignY:i="center",children:o,exceptionallySetClassName:s}=e,d=v(e,W);return t.createElement(T,_(_({},d),{},{as:n,display:"flex",flexWrap:"wrap",gap:l,className:s,ref:a,alignItems:w(i,e=>"top"===e?"flexStart":"bottom"===e?"flexEnd":"center"),justifyContent:w(r,e=>"left"===e?"flexStart":"right"===e?"flexEnd":"center")}),o)})),H=["as","space","align","dividers","width","children","exceptionallySetClassName"],Y=E((function(e,a){let{as:n,space:r,align:i,dividers:o="none",width:s="full",children:d,exceptionallySetClassName:c}=e,m=v(e,H);const u=void 0===i?void 0:w(i,e=>"start"===e?"flexStart":"end"===e?"flexEnd":"center");return t.createElement(T,_(_({},m),{},{display:"flex",flexDirection:"column",width:s,alignItems:u,gap:r,as:n,className:c,ref:a}),"none"!==o?t.Children.map(l(d),(e,a)=>a>0?t.createElement(t.Fragment,null,t.createElement(P,{weight:o}),e):e):d)})),U=["display","children","exceptionallySetClassName"],q=E((function(e,a){let{display:n="block",children:l,exceptionallySetClassName:r}=e,i=v(e,U);const o="print"in i&&i.print,s="above"in i,d="below"in i,c="below"in i&&"desktop"===i.below||"above"in i&&"mobile"===i.above;return s&&d&&console.warn('<Hidden /> should receive either above="…" or below="…" but not both'),s||d||o||console.warn("<Hidden /> did not receive any criteria to hide itself"),"above"in i&&delete i.above,"below"in i&&delete i.below,"print"in i&&delete i.print,t.createElement(T,_(_({},i),{},{ref:a,className:[r,o?"_0e595dea":null],display:s&&d?"none":{mobile:d?"none":n,tablet:c?"none":n,desktop:s?"none":n}}),l)})),K=E((function(e,a){return t.createElement(T,_(_({},e),{},{ref:a,position:"absolute",overflow:"hidden",className:"_618235b7"}))}));function G({children:e,content:a,position:n="top",gapSize:l=3,withArrow:i=!1,exceptionallySetClassName:o}){const s=function(e){const a=r.useTooltipState(e),n=function(){const e=t.useRef(),a=t.useCallback((function(){null!=e.current&&clearTimeout(e.current)}),[]);return t.useEffect(()=>a,[a]),t.useCallback((function(t,n){return()=>{a(),e.current=setTimeout(t,n)}}),[a])}();return t.useMemo(()=>_(_({},a),{},{show:n(()=>a.show(),500),hide:n(()=>a.hide(),100)}),[n,a])}({placement:n,gutter:l}),d=t.Children.only(e);if(!a||!d)return d;if("string"==typeof d.ref)throw new Error("Tooltip: String refs cannot be used as they cannot be forwarded");function c(e){var t;e.currentTarget.addEventListener("keyup",(function(e){const t=e.key;"Escape"!==t&&"Enter"!==t&&"Space"!==t&&s.show()}),{once:!0}),e.preventDefault(),null==d||null==(t=d.props)||null==t.onFocus||t.onFocus(e)}function m(e){var t;s.hide(),null==d||null==(t=d.props)||null==t.onBlur||t.onBlur(e)}return t.createElement(t.Fragment,null,t.createElement(r.TooltipAnchor,{state:s,ref:d.ref,described:!0},e=>t.cloneElement(d,_(_(_({},e),d.props),{},{onFocus:c,onBlur:m}))),s.open?t.createElement(T,{as:r.Tooltip,state:s,className:["_487c82cd",o],background:"toast",borderRadius:"standard",paddingX:"small",paddingY:"xsmall",maxWidth:"medium",width:"fitContent",overflow:"hidden",textAlign:"center"},i?t.createElement(r.TooltipArrow,null):null,"function"==typeof a?a():a):null)}function V({size:e=24}){return t.createElement("svg",{"aria-hidden":!0,width:e,height:e,viewBox:"0 0 24 24",className:"_51539197","data-chromatic":"ignore"},t.createElement("g",{fill:"none",fillRule:"nonzero"},t.createElement("path",{className:"a0c466ed",d:"M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z"}),t.createElement("path",{className:"_745b73d3",d:"M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z"})))}var X={baseButton:"_8313bd46",label:"_0051d171","shape-rounded":"_8eb8f0fa","size-small":"_8b7f1a82","size-normal":"_5e45d59f","size-large":"_95951888",disabled:"_43792df1",iconButton:"_8644eccb",startIcon:"a44d4350",endIcon:"_073e1aa4","variant-primary":"_7a4dbd5f","variant-secondary":"_54d56775","variant-tertiary":"_907a61ca","variant-quaternary":"f169a390","tone-destructive":"ccb3eb8c"};const Z=["as","variant","tone","size","shape","disabled","loading","tooltip","onClick","exceptionallySetClassName","children","startIcon","endIcon","icon","width","align"];function $(e){e.preventDefault()}const J=E((function(e,a){let{as:n="div",variant:l,tone:r="normal",size:i="normal",shape:o="normal",disabled:s=!1,loading:d=!1,tooltip:c,onClick:m,exceptionallySetClassName:u,children:p,startIcon:f,endIcon:g,icon:b,width:h="auto",align:x="center"}=e,y=v(e,Z);const E=d||s,C=t.createElement(T,_(_({},y),{},{as:n,ref:a,"aria-disabled":E,onClick:E?$:m,width:b?void 0:h,className:[u,X.baseButton,X["variant-"+l],X["tone-"+r],X["size-"+i],"rounded"===o?X["shape-rounded"]:null,b?X.iconButton:null,s?X.disabled:null]}),b?d&&t.createElement(V,null)||b:t.createElement(t.Fragment,null,f?t.createElement(T,{display:"flex",className:X.startIcon,"aria-hidden":!0},d&&!g?t.createElement(V,null):f):null,p?t.createElement(T,{as:"span",className:X.label,overflow:"hidden",width:"full"===h?"full":void 0,textAlign:"auto"===h?"center":x},p):null,g||d&&!f?t.createElement(T,{display:"flex",className:X.endIcon,"aria-hidden":!0},d?t.createElement(V,null):g):null)),w=b&&void 0===c?y["aria-label"]:c;return w?t.createElement(G,{content:w},C):C})),Q=["variant","tone","size","type","disabled","exceptionallySetClassName"],ee=t.forwardRef((function(e,a){let{variant:n,tone:l="normal",size:r="normal",type:i="button",disabled:o=!1,exceptionallySetClassName:s}=e,d=v(e,Q);return t.createElement(J,_(_({},d),{},{as:"button",ref:a,variant:n,tone:l,size:r,type:i,disabled:o,exceptionallySetClassName:s}))})),te=["tone"],ae={info:function(e){return t.createElement("svg",_({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm0-1a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm1.18-11.84a.84.84 0 1 1-1.68 0 .84.84 0 0 1 1.68 0zM12.5 10a.5.5 0 0 1 .5.5V15h1a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1h1v-4h-1a.5.5 0 0 1 0-1h1.5z",fill:"currentColor"}))},positive:function(e){return t.createElement("svg",_({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zm0-1a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm-4.354-8.104a.5.5 0 0 1 .708 0l2.146 2.147 5.146-5.147a.5.5 0 0 1 .708.708l-5.5 5.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 0-.708z",fill:"currentColor"}))},caution:function(e){return t.createElement("svg",_({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m3.254 16.992 7.018-12.03a2 2 0 0 1 3.455 0l7.018 12.03A2 2 0 0 1 19.018 20H4.982a2 2 0 0 1-1.728-3.008zm8.242-11.887a1 1 0 0 0-.36.36l-7.018 12.03A1 1 0 0 0 4.982 19h14.036a1 1 0 0 0 .864-1.504l-7.018-12.03a1 1 0 0 0-1.368-.36zM13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.014-7.014a.987.987 0 1 0-1.971.055l.236 4.25c.053.945 1.445.945 1.498 0l.236-4.25.001-.027v-.028z",fill:"currentColor"}))},critical:function(e){return t.createElement("svg",_({width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM2.5 12a9.5 9.5 0 1 1 19 0 9.5 9.5 0 0 1-19 0zM13 15.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.014-7.014A.987.987 0 0 0 12 7.5h-.027l-.028.002a.987.987 0 0 0-.93 1.04l.236 4.25c.053.944 1.445.944 1.498 0l.236-4.25.001-.028v-.027z",fill:"currentColor"}))}};function ne(e){let{tone:a}=e,n=v(e,te);const l=ae[a];return l?t.createElement(l,_({},n)):null}function le(e){return t.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("path",{fill:"currentColor",d:"M5.146 5.146a.5.5 0 0 1 .708 0L12 11.293l6.146-6.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 0 .708L12.707 12l6.147 6.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.708 0L12 12.707l-6.146 6.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1 0-.708L11.293 12 5.146 5.854a.5.5 0 0 1-.057-.638z"}))}var re={container:"eb665121","tone-info":"d0373ff9","tone-positive":"bb18dcab","tone-caution":"_0af02331","tone-critical":"f76146f9"};let ie=0;function oe(e){return e+"-"+ie++}function se(e){const a=t.useRef(null!=e?e:null);return a.current||(a.current=oe("element")),a.current}var de={banner:"c1dffd60","banner-info":"_9d552538","banner-promotion":"d797752e",title:"_8cd610da","title-without-description":"_78ea5373","title-info":"_319c73fa","title-promotion":"fc84253f",description:"af4bd758","description-info":"b95a8c07","description-promotion":"_3c33f615"};const ce=["id","tone","icon","title","description","action"],me=t.forwardRef((function(e,a){let{id:n,tone:l,icon:r,title:i,description:o,action:s}=e,d=v(e,ce);const c=se(),m=se();return t.createElement(T,_(_({},d),{},{ref:a,id:n,role:"status","aria-labelledby":c,"aria-describedby":m,"aria-live":"polite",tabIndex:0,borderRadius:"standard",className:[de.banner,de["banner-"+l]]}),t.createElement(I,{space:"medium",alignY:"center"},t.createElement(O,{width:"content","aria-hidden":!0,style:{lineHeight:0}},r),t.createElement(O,null,t.createElement(T,{paddingY:"xsmall"},t.createElement(T,o?{id:c,className:[de.title,de["title-"+l]]}:{id:c,className:[de.title,de["title-without-description"],de["title-"+l]]},i),o?t.createElement(T,{id:m,className:[de.description,de["description-"+l]]},o):null)),s?t.createElement(O,{width:"content"},s):null))})),ue=["size","exceptionallySetClassName"],pe={xsmall:16,small:24,medium:36,large:48};var fe={container:"_464500ae","tone-info":"_1abfe147","tone-positive":"_36ce9859","tone-caution":"f92214b7","tone-critical":"be6cf28e"},ge={text:"a83bd4e0","size-caption":"_266d6623","size-copy":"a8d37c6e","size-subtitle":"_39f4eb1f","weight-semibold":"_7be5c531","weight-bold":"e214ff2e","tone-secondary":"_6a3e5ade","tone-danger":"_8f5b5f2b","tone-positive":"_9ae47ae4",lineClampMultipleLines:"_969f18f7","lineClamp-1":"_2f303ac3","lineClamp-2":"d3e04245","lineClamp-3":"_33411704","lineClamp-4":"bfc32640","lineClamp-5":"f813c82f"};const be=["as","size","weight","tone","align","children","lineClamp","exceptionallySetClassName"],he=E((function(e,a){let{as:n,size:l="body",weight:r="regular",tone:i="normal",align:o,children:s,lineClamp:d,exceptionallySetClassName:c}=e,m=v(e,be);const u="string"==typeof d?Number(d)>1:(null!=d?d:1)>1;return t.createElement(T,_(_({},m),{},{as:n,className:[c,ge.text,"body"!==l?C(ge,"size",l):null,"regular"!==r?C(ge,"weight",r):null,"normal"!==i?C(ge,"tone",i):null,u?ge.lineClampMultipleLines:null,d?C(ge,"lineClamp",d.toString()):null],textAlign:o,paddingRight:d?"xsmall":void 0,ref:a}),s)})),xe=["message","description","icon","action","onDismiss","dismissLabel"],_e=a.forwardRef((function(e,t){let{message:n,description:l,icon:r,action:i,onDismiss:o,dismissLabel:s="Close"}=e,d=v(e,xe);return a.createElement(T,_({ref:t,role:"alert","aria-live":"polite",borderRadius:"full",width:"fitContent",background:"toast",display:"flex",padding:"large",alignItems:"center",className:"_1b5f8e86"},d),r?a.createElement(ve,null,r):null,a.createElement(T,{flexGrow:1,maxWidth:"small"},l?a.createElement(Y,{space:"small"},a.createElement(he,{weight:"bold"},n," "),a.createElement(he,null,l)):a.createElement(he,null,n)),i?a.createElement(ve,null,ye(i)?a.createElement(ee,{variant:"tertiary",size:"small",onClick:i.onClick},i.label):i):null,o?a.createElement(ve,null,a.createElement(ee,{variant:"quaternary",size:"small",onClick:o,"aria-label":s,icon:a.createElement(le,null)})):null)}));function ye(e){return null!=e&&"object"==typeof e&&"label"in e&&"onClick"in e&&"string"==typeof e.label&&"function"==typeof e.onClick}function ve({children:e}){return a.createElement(T,{display:"flex",alignItems:"center",justifyContent:"center",marginX:"-xsmall",marginY:"-medium",className:"ce2e3476"},e)}function Ee({element:e,transforms:t,transition:a,done:n}){const l=setTimeout(()=>{null==n||n()},400);t.forEach(({property:t,from:a=""})=>{e.style.setProperty(t,a)}),e.style.setProperty("transition",""),e.addEventListener("transitionend",(function t(a){a.target===e&&(e.style.setProperty("transition",""),null==n||n(),e.removeEventListener("transitionend",t),clearTimeout(l))})),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{e.style.setProperty("transition",a),t.forEach(({property:t,to:a=""})=>{e.style.setProperty(t,a)})})})}const Ce=["toastId"],we=a.forwardRef((function({message:e,description:t,icon:n,action:l,autoDismissDelay:r,dismissLabel:i,showDismissButton:o=!0,toastId:s,onDismiss:d,onRemoveToast:c},m){const[u,p]=a.useState(Boolean(r)),f=a.useRef(),g=a.useCallback((function(){p(!0)}),[]),b=a.useCallback((function(){p(!1),clearTimeout(f.current),f.current=void 0}),[]),h=a.useCallback((function(){c(s),null==d||d()}),[d,c,s]);a.useEffect((function(){if(u&&r)return f.current=window.setTimeout(h,1e3*r),b}),[r,h,b,u]);const x=a.useMemo(()=>ye(l)?_(_({},l),{},{onClick:function(){l&&(l.onClick(),h())}}):l,[l,h]);return a.createElement(_e,{ref:m,message:e,description:t,icon:n,action:x,onDismiss:o?h:void 0,dismissLabel:i,onMouseEnter:b,onMouseLeave:g})})),ke=a.createContext(()=>()=>{});function Se(){return a.useContext(ke)}var Ne={heading:"_71a1610c","weight-light":"_63750f40","tone-secondary":"_9ce984cf","tone-danger":"_1acad35e","size-largest":"_3da27a00","size-larger":"df220733","size-smaller":"eb373739",lineClampMultipleLines:"f53cfd2b","lineClamp-1":"e4819fc9","lineClamp-2":"a0ed6177","lineClamp-3":"_180d433e","lineClamp-4":"_40826ad9","lineClamp-5":"_5999b247"};const Re=["level","weight","size","tone","children","lineClamp","align","exceptionallySetClassName"],Le=t.forwardRef((function(e,a){let{level:n,weight:l="regular",size:r,tone:i="normal",children:o,lineClamp:s,align:d,exceptionallySetClassName:c}=e,m=v(e,Re);const u="h"+n,p="string"==typeof s?parseInt(s,10)>1:(s||0)>1;return t.createElement(T,_(_({},m),{},{className:[c,Ne.heading,"regular"!==l?C(Ne,"weight",l):null,"normal"!==i?C(Ne,"tone",i):null,C(Ne,"size",r),p?Ne.lineClampMultipleLines:null,s?C(Ne,"lineClamp",s.toString()):null],textAlign:d,paddingRight:s?"xsmall":void 0,as:u,ref:a}),o)})),Be=["darkModeTypography","exceptionallySetClassName"],Te=["as","variant","tone","size","exceptionallySetClassName","openInNewTab"],Ae=E((function(e,a){let{as:n="a",variant:l,tone:r="normal",size:i="normal",exceptionallySetClassName:o,openInNewTab:s=!1}=e,d=v(e,Te);return t.createElement(J,_(_({},d),{},{as:n,ref:a,variant:l,tone:r,size:i,exceptionallySetClassName:o,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0}))})),ze=["as","openInNewTab","exceptionallySetClassName"],De=E((function(e,a){let{as:n="a",openInNewTab:l=!1,exceptionallySetClassName:r}=e,i=v(e,ze);return t.createElement(T,_(_({},i),{},{as:n,display:"inline",className:[r,"fdc181b3"],ref:a,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0}))})),Oe=["checked","indeterminate","disabled"],Ie={checked:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2.457 4.293l-5.293 5.293-1.793-1.793a1 1 0 1 0-1.414 1.414l2.5 2.5a1 1 0 0 0 1.414 0l6-6a1 1 0 1 0-1.414-1.414z",unchecked:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm0 1H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z",mixed:"M18 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12zm-2 7H8a1 1 0 0 0 0 2h8a1 1 0 0 0 0-2z",filled:"M6 4H18C19.1046 4 20 4.89543 20 6V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V6C4 4.89543 4.89543 4 6 4Z"};function Me(e){let{checked:a,indeterminate:n,disabled:l}=e,r=v(e,Oe);const i=function({checked:e,indeterminate:t,disabled:a}){return t?"mixed":e?"checked":a?"filled":"unchecked"}({checked:a,indeterminate:n,disabled:l});return t.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},r),t.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:Ie[i]}))}const Fe=["label","icon","disabled","indeterminate","defaultChecked","onChange"],Pe=t.forwardRef((function(e,a){var n,l,r;let{label:i,icon:s,disabled:d,indeterminate:c,defaultChecked:m,onChange:u}=e,p=v(e,Fe);"boolean"!=typeof c||"boolean"==typeof p.checked||(console.warn("Cannot use indeterminate on an uncontrolled checkbox"),c=void 0),i||p["aria-label"]||p["aria-labelledby"]||console.warn("A Checkbox needs a label");const[f,g]=t.useState(!1),[b,h]=t.useState(null!=(n=null!=(l=p.checked)?l:m)&&n),x=null!=(r=p.checked)?r:b,y=t.useRef(null),E=o.useForkRef(y,a);return t.useEffect((function(){y.current&&"boolean"==typeof c&&(y.current.indeterminate=c)}),[c]),t.createElement(T,{as:"label",display:"flex",alignItems:"center",className:["_84dfdb83",d?"_131a2ca4":null,x?"_95b1556d":null,f?"_49de7ebd":null]},t.createElement("input",_(_({},p),{},{ref:E,type:"checkbox","aria-checked":c?"mixed":x,checked:x,disabled:d,onChange:e=>{null==u||u(e),e.defaultPrevented||h(e.currentTarget.checked)},onBlur:e=>{g(!1),null==p||null==p.onBlur||p.onBlur(e)},onKeyUp:e=>{g(!0),null==p||null==p.onKeyUp||p.onKeyUp(e)}})),t.createElement(Me,{checked:x,disabled:d,indeterminate:c,"aria-hidden":!0}),s?t.createElement(T,{display:"flex",className:"_6b4b1851","aria-hidden":!0},s):null,i?t.createElement(T,{display:"flex",className:"_9047f3bd"},t.createElement(he,null,i)):null)}));function We(e){return t.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"gray"},t.createElement("path",{d:"M21.358 12C17.825 7.65 14.692 5.5 12 5.5c-2.624 0-5.67 2.043-9.097 6.181a.5.5 0 0 0 0 .638C6.331 16.457 9.376 18.5 12 18.5c2.692 0 5.825-2.15 9.358-6.5z"}),t.createElement("circle",{cx:"12",cy:"12",r:"3.5"})))}function je(e){return t.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},e),t.createElement("g",{fill:"gray",fillRule:"evenodd",transform:"translate(2 4)"},t.createElement("path",{fillRule:"nonzero",d:"M13.047 2.888C11.962 2.294 10.944 2 10 2 7.56 2 4.63 3.966 1.288 8c1.133 1.368 2.218 2.497 3.253 3.394l-.708.708c-1.068-.93-2.173-2.085-3.315-3.464a1 1 0 0 1 0-1.276C4.031 3.121 7.192 1 10 1c1.196 0 2.456.385 3.78 1.154l-.733.734zm-6.02 10.263C8.084 13.72 9.076 14 10 14c2.443 0 5.373-1.969 8.712-6-1.11-1.34-2.176-2.453-3.193-3.341l.708-.709C17.437 5.013 18.695 6.363 20 8c-3.721 4.667-7.054 7-10 7-1.175 0-2.411-.371-3.709-1.113l.735-.736z"}),t.createElement("path",{fillRule:"nonzero",d:"M8.478 11.7l.79-.79a3 3 0 0 0 3.642-3.642l.79-.79A4 4 0 0 1 8.477 11.7zM6.334 9.602a4 4 0 0 1 5.268-5.268l-.78.78A3.002 3.002 0 0 0 7.113 8.82l-.78.78z"}),t.createElement("rect",{width:"21",height:"1",x:"-.722",y:"7.778",rx:".5",transform:"rotate(-45 9.778 8.278)"})))}function He(e){return t.createElement(he,_({as:"p",tone:"secondary",size:"copy"},e))}function Ye(e){return t.createElement("svg",_({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.5C4.96243 2.5 2.5 4.96243 2.5 8C2.5 11.0376 4.96243 13.5 8 13.5C11.0376 13.5 13.5 11.0376 13.5 8C13.5 4.96243 11.0376 2.5 8 2.5ZM1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8ZM8.66667 10.3333C8.66667 10.7015 8.36819 11 8 11C7.63181 11 7.33333 10.7015 7.33333 10.3333C7.33333 9.96514 7.63181 9.66667 8 9.66667C8.36819 9.66667 8.66667 9.96514 8.66667 10.3333ZM8.65766 5.65766C8.65766 5.29445 8.36322 5 8 5C7.99087 5.00008 7.98631 5.00013 7.98175 5.00025C7.97719 5.00038 7.97263 5.00059 7.96352 5.00101C7.60086 5.02116 7.3232 5.33149 7.34335 5.69415L7.50077 8.52774C7.53575 9.15742 8.46425 9.15742 8.49923 8.52774L8.65665 5.69415C8.65707 5.68503 8.65728 5.68047 8.65741 5.67591C8.65754 5.67135 8.65758 5.66679 8.65766 5.65766Z",fill:"currentColor"}))}function Ue({id:e,children:a,tone:n}){return t.createElement(he,{as:"p",tone:"error"===n?"danger":"success"===n?"positive":"normal",size:"copy",id:e},t.createElement(T,{as:"span",marginRight:"xsmall",display:"inlineFlex",className:"_77b2107e"},"loading"===n?t.createElement(V,{size:16}):t.createElement(Ye,{"aria-hidden":!0})),a)}function qe({variant:e="default",label:a,secondaryLabel:n,auxiliaryLabel:l,hint:r,message:i,tone:o="neutral",className:s,children:d,maxWidth:c,hidden:m,"aria-describedby":u,id:p}){const f=se(p),g=se(),b=se(),h={id:f,"aria-describedby":null!=u?u:[i?b:null,g].filter(Boolean).join(" "),"aria-invalid":"error"===o||void 0};return t.createElement(Y,{space:"small",hidden:m},t.createElement(T,{className:[s,"_2e189908","error"===o?"d1a17d92":null,"bordered"===e?"fd20ef50":null],maxWidth:c},a||n||l?t.createElement(T,{as:"span",display:"flex",justifyContent:"spaceBetween",alignItems:"flexEnd"},t.createElement(he,{size:"bordered"===e?"caption":"body",as:"label",htmlFor:f},a?t.createElement("span",{className:"_75e0afa0"},a):null,n?t.createElement("span",{className:"d04a867d"}," (",n,")"):null),l?t.createElement(T,{className:"_83051e0a",paddingLeft:"small"},l):null):null,d(h)),i?t.createElement(Ue,{id:b,tone:o},i):null,r?t.createElement(He,{id:g},r):null)}const Ke=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","type","maxWidth","hidden","aria-describedby","startSlot","endSlot"],Ge=t.forwardRef((function(e,a){let{variant:n="default",id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:d,message:c,tone:m,type:u="text",maxWidth:p,hidden:f,"aria-describedby":g,startSlot:b,endSlot:h}=e,x=v(e,Ke);const y=t.useRef(null),E=s.useMergeRefs([a,y]);function C(e){var t;e.currentTarget!==E.current&&(null==(t=y.current)||t.focus())}return t.createElement(qe,{variant:n,id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:d,message:c,tone:m,maxWidth:p,hidden:f,"aria-describedby":g},e=>t.createElement(T,{display:"flex",alignItems:"center",className:["_6c84b26d","error"===m?"d4d62845":null,"bordered"===n?"_8522aec5":null],onClick:C},b?t.createElement(T,{className:"_9c20ca38",display:"flex",marginRight:"bordered"===n?"xsmall":"-xsmall",marginLeft:"bordered"===n?"-xsmall":"xsmall"},b):null,t.createElement("input",_(_(_({},x),e),{},{type:u,ref:E})),h?t.createElement(T,{className:"_9c20ca38",display:"flex",marginRight:"bordered"===n?"-xsmall":"xsmall",marginLeft:"bordered"===n?"xsmall":"-xsmall"},h):null))})),Ve=["togglePasswordLabel"],Xe=t.forwardRef((function(e,a){let{togglePasswordLabel:n="Toggle password visibility"}=e,l=v(e,Ve);const[r,i]=t.useState(!1),o=r?We:je;return t.createElement(Ge,_(_({},l),{},{ref:a,type:r?"text":"password",endSlot:t.createElement(ee,{variant:"quaternary",icon:t.createElement(o,{"aria-hidden":!0}),"aria-label":n,onClick:()=>i(e=>!e)})}))})),Ze=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","children","hidden","aria-describedby"],$e=t.forwardRef((function(e,a){let{variant:n="default",id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:s,message:d,tone:c,maxWidth:m,children:u,hidden:p,"aria-describedby":f}=e,g=v(e,Ze);return t.createElement(qe,{variant:n,id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:s,message:d,tone:c,maxWidth:m,hidden:p,"aria-describedby":f},e=>t.createElement(T,{"data-testid":"select-wrapper",className:["a804edbf","error"===c?"a6d38abf":null,"bordered"===n?"_50a3655f":null]},t.createElement("select",_(_(_({},g),e),{},{ref:a}),u),t.createElement(Je,{"aria-hidden":!0})))}));function Je(e){return t.createElement("svg",_({width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t.createElement("path",{d:"M11.646 5.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 1 1 .708-.708L8 9.293l3.646-3.647z",fill:"currentColor"}))}const Qe=["label","hint","disabled","hidden","defaultChecked","id","aria-describedby","aria-label","aria-labelledby","onChange"],et=t.forwardRef((function(e,a){var n,l,r;let{label:i,hint:o,disabled:s=!1,hidden:d,defaultChecked:c,id:m,"aria-describedby":u,"aria-label":p,"aria-labelledby":f,onChange:g}=e,b=v(e,Qe);const h=se(m),x=se(),y=null!=u?u:o?x:void 0,E=null!=p?p:void 0,C=null!=f?f:void 0,[w,k]=t.useState(!1),[S,N]=t.useState(null!=(n=null!=(l=b.checked)?l:c)&&n),R=null!=(r=b.checked)?r:S;return t.createElement(Y,{space:"small",hidden:d},t.createElement(T,{className:["bae487be",s?"_408d32a0":null,R?"_99b0ead7":null,w?"_1f5e7fd4":null],as:"label",display:"flex",alignItems:"center"},t.createElement(T,{position:"relative",display:"inlineBlock",overflow:"visible",marginRight:"small",flexShrink:0,className:"_5af09fb5"},t.createElement(K,null,t.createElement("input",_(_({},b),{},{id:h,type:"checkbox",disabled:s,"aria-describedby":y,"aria-label":E,"aria-labelledby":C,ref:a,checked:R,onChange:e=>{null==g||g(e),e.defaultPrevented||N(e.currentTarget.checked)},onBlur:e=>{k(!1),null==b||null==b.onBlur||b.onBlur(e)},onKeyUp:e=>{k(!0),null==b||null==b.onKeyUp||b.onKeyUp(e)}}))),t.createElement("span",{className:"_0dcf70ec"})),t.createElement(he,{exceptionallySetClassName:"a66e1846"},i)),o?t.createElement(He,{id:x},o):null)})),tt=["variant","id","label","secondaryLabel","auxiliaryLabel","hint","message","tone","maxWidth","hidden","aria-describedby","rows","autoExpand"],at=t.forwardRef((function(e,a){let{variant:n="default",id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:d,message:c,tone:m,maxWidth:u,hidden:p,"aria-describedby":f,rows:g,autoExpand:b=!1}=e,h=v(e,tt);const x=t.useRef(null),y=t.useRef(null),E=s.useMergeRefs([a,y]);return t.useEffect((function(){const e=x.current;function t(t){e&&(e.dataset.replicatedValue=t.currentTarget.value)}const a=y.current;if(a&&b)return a.addEventListener("input",t),()=>a.removeEventListener("input",t)}),[b]),t.createElement(qe,{variant:n,id:l,label:r,secondaryLabel:i,auxiliaryLabel:o,hint:d,message:c,tone:m,hidden:p,"aria-describedby":f,className:["_21dbfa84","error"===m?"a862f0e5":null,"bordered"===n?"f081b428":null],maxWidth:u},e=>t.createElement(T,{width:"full",display:"flex",className:"_43588660",ref:x},t.createElement("textarea",_(_(_({},h),e),{},{ref:E,rows:g,className:b?"_46360b15":void 0}))))}));function nt(e){var t;if(!e)return"";const a=e.trim().split(" "),n=a[0],l=a[a.length-1];let r=null==n?void 0:n[0];return null!=n&&null!=l&&null!=r&&n[0]!==l[0]&&(r+=l[0]),null==(t=r)?void 0:t.toUpperCase()}function lt(e,t){const a=e.split("@")[0];return(a&&a.charCodeAt(0)+a.charCodeAt(a.length-1)||0)%t}var rt={avatar:"_38a1be89","size-xxs":"d32e92ae","size-xs":"_0667d719","size-s":"cf529fcf","size-m":"_6e268eab","size-l":"d64c62cf","size-xl":"_44fb77de","size-xxl":"_01f85e0e","size-xxxl":"_41a5fe19","tablet-size-xxs":"_6ab1577d","tablet-size-xs":"b52a4963","tablet-size-s":"_714a8419","tablet-size-m":"_81cd4d51","tablet-size-l":"bf0a4edb","tablet-size-xl":"e4f0dabd","tablet-size-xxl":"_67ea065d","tablet-size-xxxl":"_2af7f76f","desktop-size-xxs":"_759081dc","desktop-size-xs":"_8290d1c1","desktop-size-s":"_48ea172d","desktop-size-m":"_758f6641","desktop-size-l":"f9ada088","desktop-size-xl":"d3bb7470","desktop-size-xxl":"_9a312ee3","desktop-size-xxxl":"a1d30c23"};const it=["user","avatarUrl","size","className","colorList","exceptionallySetClassName"],ot=["#fcc652","#e9952c","#e16b2d","#d84b40","#e8435a","#e5198a","#ad3889","#86389c","#a8a8a8","#98be2f","#5d9d50","#5f9f85","#5bbcb6","#32a3bf","#2bafeb","#2d88c3","#3863cc","#5e5e5e"];function st(e){let{user:a,avatarUrl:n,size:l="l",className:r,colorList:i=ot,exceptionallySetClassName:o}=e,s=v(e,it);const d=nt(a.name)||nt(a.email),c=l||"l",m=n?{backgroundImage:"url("+n+")",textIndent:"-9999px"}:{backgroundColor:i[lt(a.email,i.length)]},u=C(rt,"size",c);return t.createElement(T,_({className:[r,rt.avatar,u,o],style:m},s),d)}st.displayName="Avatar";var dt={badge:"_7957de66","badge-info":"c6106b8c","badge-positive":"_6b06bf87","badge-promote":"a6d2daa2","badge-attention":"bbb036ff"};const ct=["tone","label"];var mt={overlay:"_8aa86dd3",fadein:"_20c07ee6",fitContent:"_713bc08f",container:"_45139719",full:"ec8619a2",large:"_86a1d5a4",medium:"_11d61de3",small:"aee19643",xlarge:"fe449c81",expand:"_61ffb38f",buttonContainer:"_49ffdac0",headerContent:"ee92ccb3"};const ut=["isOpen","onDismiss","height","width","exceptionallySetClassName","exceptionallySetOverlayClassName","autoFocus","hideOnEscape","hideOnInteractOutside","children","portalElement"],pt=["children","button","withDivider","exceptionallySetClassName"],ft=["exceptionallySetClassName","children"],gt=["exceptionallySetClassName","withDivider"],bt=["children"],ht=t.createContext({onDismiss:void 0,height:"fitContent"});function xt(e){return!(e.ownerDocument===document&&"iframe"===e.tagName.toLowerCase())}function _t(e){const{onDismiss:a}=t.useContext(ht),[n,l]=t.useState(!1),[r,i]=t.useState(!1);return t.useEffect((function(){r?l(!0):i(!0)}),[r]),t.createElement(ee,_(_({},e),{},{variant:"quaternary",onClick:a,icon:t.createElement(le,null),tabIndex:n?0:-1}))}function yt(e){let{exceptionallySetClassName:a,withDivider:n=!1}=e,l=v(e,gt);return t.createElement(t.Fragment,null,n?t.createElement(P,null):null,t.createElement(T,_(_({as:"footer"},l),{},{className:a,padding:"large"})))}var vt={tab:"e96bf360",track:"_430e252d","tab-neutral":"f631ccbe","tab-themed":"_6ba96acc","track-neutral":"ef4cd8d3","track-themed":"_344b3b10"};const Et=["as","children","id","exceptionallySetClassName"],Ct=["children","space"],wt=["children","id","as","render"],kt=t.createContext(null),St=E((function(e,a){let{as:l,children:r,id:i,exceptionallySetClassName:o}=e,s=v(e,Et);const d=t.useContext(kt);if(!d)return null;const{variant:c,tabState:m}=d;return t.createElement(u.Tab,_(_({},s),{},{as:l,className:n(o,vt.tab,vt["tab-"+c]),id:i,state:m,ref:a}),r)})),Nt=E((function(e,a){let{children:n,id:l,as:r,render:i="always"}=e,o=v(e,wt);const s=t.useContext(kt),[d,c]=t.useState(!1),m=(null==s?void 0:s.tabState.selectedId)===l;if(t.useEffect((function(){!d&&m&&c(!0)}),[d,m]),!s)return null;const{tabState:p}=s;return"always"===i||"active"===i&&m||"lazy"===i&&(m||d)?t.createElement(u.TabPanel,_(_({tabId:l},o),{},{state:p,as:r,ref:a}),n):null})),Rt=["children","onItemSelect"],Lt=["exceptionallySetClassName"],Bt=["as"],Tt=["exceptionallySetClassName","modal"],At=["value","children","onSelect","hideOnSelect","onClick","exceptionallySetClassName","as"],zt=["label","children","exceptionallySetClassName"],Dt=t.createContext({});function Ot(e){let{children:a,onItemSelect:n}=e,l=v(e,Rt);const[r,i]=t.useState(null),o=t.useMemo(()=>r?()=>r:void 0,[r]),s=p.useMenuState(_({focusLoop:!0,gutter:8,shift:4,getAnchorRect:o},l)),d=t.useCallback((function(e){n&&n(e)}),[n]),c=t.useMemo(()=>({state:s,handleItemSelect:d,handleAnchorRectChange:i}),[s,d]);return t.createElement(Dt.Provider,{value:c},a)}const It=E((function(e,a){let{exceptionallySetClassName:l}=e,r=v(e,Lt);const{state:i}=t.useContext(Dt);return t.createElement(p.MenuButton,_(_({},r),{},{state:i,ref:a,className:n("reactist_menubutton",l)}))})),Mt=E((function(e,a){let{as:n="div"}=e,l=v(e,Bt);const{handleAnchorRectChange:r,state:i}=t.useContext(Dt),o=t.useCallback(e=>{e.preventDefault(),r({x:e.clientX,y:e.clientY}),i.show()},[r,i]);return t.createElement(n,_(_({},l),{},{onContextMenu:o,ref:a}))})),Ft=E((function(e,a){let{exceptionallySetClassName:l,modal:r=!0}=e,o=v(e,Tt);const{state:s}=t.useContext(Dt);return s.open?t.createElement(i.Portal,{preserveTabOrder:!0},t.createElement(p.Menu,_(_({},o),{},{state:s,ref:a,className:n("reactist_menulist",l),modal:r}))):null})),Pt=E((function(e,a){let{value:n,children:l,onSelect:r,hideOnSelect:i=!0,onClick:o,exceptionallySetClassName:s,as:d="button"}=e,c=v(e,At);const{handleItemSelect:m,state:u}=t.useContext(Dt),{hide:f}=u,g=t.useCallback((function(e){null==o||o(e);const t=!1!==(r&&!e.defaultPrevented?r():void 0)&&i;m(n),t&&f()}),[r,o,m,i,f,n]);return t.createElement(p.MenuItem,_(_({},c),{},{as:d,state:u,ref:a,onClick:g,className:s,hideOnClick:!1}),l)})),Wt=t.forwardRef((function({children:e,onItemSelect:a},n){const{handleItemSelect:l,state:r}=t.useContext(Dt),{hide:i}=r,o=t.useCallback((function(e){a&&a(e),l(e),i()}),[i,l,a]),[s,d]=t.Children.toArray(e),c=t.useCallback((function(e){return t.cloneElement(s,e)}),[s]);return t.createElement(Ot,{onItemSelect:o},t.createElement(p.MenuItem,{as:"div",state:r,ref:n,hideOnClick:!1},c),d)})),jt=E((function(e,a){let{label:n,children:l,exceptionallySetClassName:r}=e,i=v(e,zt);const{state:o}=t.useContext(Dt);return t.createElement(p.MenuGroup,_(_({},i),{},{ref:a,state:o,className:r}),n?t.createElement("div",{role:"presentation",className:"reactist_menugroup__label"},n):null,l)})),Ht=["type","variant","size","loading","disabled","tooltip","onClick","children"],Yt=t.forwardRef((function(e,a){let{type:l="button",variant:r,size:i="default",loading:o=!1,disabled:s=!1,tooltip:d,onClick:c,children:m}=e,u=v(e,Ht);const p=n("reactist_button",r?"reactist_button--"+r:null,"default"!==i?"reactist_button--"+i:null,{"reactist_button--loading":o},u.className),f=t.createElement("button",_(_({},u),{},{ref:a,type:l,className:p,"aria-disabled":s||o,onClick:s||o?void 0:c}),m);return d?t.createElement(G,{content:d},f):f}));Yt.displayName="Button",Yt.defaultProps={size:"default",loading:!1,disabled:!1};const Ut=["children","onClick","tooltip","className"];class qt extends t.Component{constructor(e,t){super(e,t),this._timeout=void 0,this._handleClickOutside=e=>{const t=f.findDOMNode(this);t&&!t.contains(e.target)?this._toggleShowBody():this.props.allowBodyInteractions||(this._timeout=setTimeout(()=>{this.state.showBody&&this._toggleShowBody()},100))},this._toggleShowBody=()=>{this.state.showBody?(this.props.onHideBody&&this.props.onHideBody(),document.removeEventListener("click",this._handleClickOutside,!0)):(this.props.onShowBody&&this.props.onShowBody(),document.addEventListener("click",this._handleClickOutside,!0)),this.setState({showBody:!this.state.showBody})},this._setPosition=e=>{if(e){const t=document.getElementById(this.props.scrolling_parent?this.props.scrolling_parent:"");if(t){const a=f.findDOMNode(this);if(!a)return;const n=f.findDOMNode(this).offsetTop,l=a.querySelector(".trigger");if(!l)return;const r=t.clientHeight+t.scrollTop-n-l.clientHeight<e.clientHeight;r!==this.state.top&&this.setState({top:r})}}},this.state={showBody:!1,top:e.top||!1},this._timeout=void 0}componentWillUnmount(){document.removeEventListener("click",this._handleClickOutside,!0),this._timeout&&clearTimeout(this._timeout)}_getTriggerComponent(){var e;const a=null==(e=this.props.children)?void 0:e[0];return a?t.cloneElement(a,{onClick:this._toggleShowBody}):void 0}_getBodyComponent(){if(!this.state.showBody)return null;const{top:e}=this.state,{right:a=!1,children:l}=this.props,r={top:e,right:a,setPosition:this._setPosition},i=n({body_wrapper:!0,with_arrow:!0,top:e,bottom:!e}),o=null==l?void 0:l[1],s="function"==typeof o?o(r):o?t.cloneElement(o,r):void 0;return t.createElement("div",{className:i,style:{position:"relative"}},s)}render(){const e=n("reactist_dropdown",this.props.className),{top:a}=this.state;return t.createElement("div",{style:{display:"inline-block"},className:e,"data-testid":"reactist-dropdown-box"},a&&this._getBodyComponent(),this._getTriggerComponent(),!a&&this._getBodyComponent())}}qt.displayName=void 0,qt.displayName="Dropdown.Box";const Kt=t.forwardRef((function(e,a){let{children:l,onClick:r,tooltip:i,className:o}=e,s=v(e,Ut);return t.createElement(Yt,_(_({},s),{},{className:n("trigger",o),onClick:function(e){e.preventDefault(),e.stopPropagation(),r&&r(e)},tooltip:i,ref:a}),l)}));function Gt({top:e,right:a,children:n,setPosition:l}){const r={position:"absolute",right:0,top:0};return e&&(r.top="auto",r.bottom=0),a&&(r.right="auto",r.left=0),t.createElement("div",{ref:l,style:r,className:"body",id:"reactist-dropdown-body","data-testid":"reactist-dropdown-body"},n)}Kt.displayName="Dropdown.Trigger",Gt.displayName="Dropdown.Body";const Vt={Box:qt,Trigger:Kt,Body:Gt},Xt=["#606060","#4A90E2","#03B3B2","#008299","#82BA00","#D24726","#AC193D","#DC4FAD","#3BD5FB","#74E8D3","#FFCC00","#FB886E","#CCCCCC"],Zt=e=>"string"!=typeof e;function $t({color:e=0,small:a,onChange:l,colorList:r=Xt}){return t.createElement(Vt.Box,{right:!0,className:"reactist_color_picker"},t.createElement(Vt.Trigger,null,(()=>{const l=((e,t)=>e[t>=e.length?0:t])(r,e);return t.createElement("span",{className:n("color_trigger",{small:a}),style:{backgroundColor:Zt(l)?l.color:l}},t.createElement("span",{className:"color_trigger--inner_ring"}))})()),t.createElement(Vt.Body,null,t.createElement("div",{className:"color_options"},r.reduce((a,n,i)=>(a.push(t.createElement(Jt,{isActive:e>=r.length?0===i:i===e,key:i,color:Zt(n)?n.color:n,colorIndex:i,onClick:l,tooltip:Zt(n)?n.name:null})),a),[]))))}function Jt({color:e,colorIndex:a,isActive:n,onClick:l,tooltip:r}){const i=t.createElement("span",{"data-testid":"reactist-color-item",className:"reactist color_item"+(n?" active":""),style:{backgroundColor:e},onClick:()=>null==l?void 0:l(a)},t.createElement("span",{className:"color_item--inner_ring"}));return r?t.createElement(G,{content:r},i):i}$t.displayName="ColorPicker",Jt.displayName="ColorItem";const Qt=["children","className","translateKey","isMac"];let ea=e=>e;function ta(e){switch(e.toLowerCase()){case"cmd":case"mod":return"⌘";case"control":case"ctrl":return"⌃";case"alt":return"⌥";case"shift":return"⇧";case"space":return"␣";default:return e}}function aa(e){var a,l;let{children:r,className:i,translateKey:o=ea,isMac:s=null!=(a=null==(l=navigator.platform)?void 0:l.toUpperCase().includes("MAC"))&&a}=e,d=v(e,Qt);const c="string"==typeof r?[r]:r;return t.createElement("span",_({className:n("reactist_keyboard_shortcut",i,{"reactist_keyboard_shortcut--macos":s})},d),c.map((e,a)=>t.createElement(t.Fragment,{key:a},0===a?null:", ",t.createElement("kbd",null,function(e,t,a){const n=t?ta:a,l=/\b(mod|cmd|ctrl|control|alt|shift)\b/i.test(e);return t||(e=e.replace(/\b(mod|cmd)\b/i,"ctrl")),e.split(/\s*\+\s*/).map((function(e){return function(e){return/^(mod|cmd|ctrl|control|alt|shift|space|super)$/i.test(e)}(e)?function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}(n(e)):l&&1===e.length?e.toUpperCase():e}))}(e,s,o).map((e,a)=>t.createElement("kbd",{key:a},e))))))}aa.setTranslateKey=e=>{ea=e};const na={resolveByKey(e){switch(e){case"Left":case"ArrowLeft":return"ArrowLeft";case"Up":case"ArrowUp":return"ArrowUp";case"Right":case"ArrowRight":return"ArrowRight";case"Down":case"ArrowDown":return"ArrowDown";case"Enter":return"Enter";case"Backspace":return"Backspace";case"Esc":case"Escape":return"Escape";default:return null}},resolveByKeyCode(e){switch(e){case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 13:return"Enter";case 8:return"Backspace";case 27:return"Escape";default:return null}}},la={ArrowUp:"onArrowUp",ArrowDown:"onArrowDown",ArrowLeft:"onArrowLeft",ArrowRight:"onArrowRight",Enter:"onEnter",Backspace:"onBackspace",Escape:"onEscape"},ra={ArrowUp:"propagateArrowUp",ArrowDown:"propagateArrowDown",ArrowLeft:"propagateArrowLeft",ArrowRight:"propagateArrowRight",Enter:"propagateEnter",Backspace:"propagateBackspace",Escape:"propagateEscape"};function ia({fillPercentage:e=0,className:a,"aria-valuetext":l}){const r=n("reactist_progress_bar",a),i=e<0?0:e>100?100:e;return t.createElement("div",{className:r},t.createElement("div",{className:"inner",style:{width:i+"%"}}),t.createElement(K,null,t.createElement("progress",{value:i,max:100,"aria-valuetext":null!=l?l:void 0})))}ia.displayName="ProgressBar",g.extend(b);const oa={SHORT_FORMAT_CURRENT_YEAR:"L",SHORT_FORMAT_PAST_YEAR:"LL",LONG_FORMAT:"LL, LT",timeAgo(e,t={}){const{locale:a="en",shortFormatCurrentYear:n=this.SHORT_FORMAT_CURRENT_YEAR,shortFormatPastYear:l=this.SHORT_FORMAT_PAST_YEAR,daysSuffix:r="d",hoursSuffix:i="h",minutesSuffix:o="m",momentsAgo:s="moments ago"}=t,d=g(),c=g(1e3*e);c.locale(a);const m=d.diff(c,"minute"),u=d.diff(c,"hour"),p=d.diff(c,"day");return p>1?c.isSame(d,"year")?c.format(n):c.format(l):1===p?""+p+r:u>0&&u<=23?""+u+i:m>0&&m<=59?""+m+o:s},formatTime(e,t={}){const{locale:a="en",shortFormatCurrentYear:n=this.SHORT_FORMAT_CURRENT_YEAR,shortFormatPastYear:l=this.SHORT_FORMAT_PAST_YEAR}=t,r=g(1e3*e);return r.locale(a),r.isSame(g(),"year")?r.format(n):r.format(l)},formatTimeLong(e,t={}){const{locale:a="en",longFormat:n=this.LONG_FORMAT}=t,l=g(1e3*e);return l.locale(a),l.format(n)}};class sa extends t.Component{constructor(e){super(e),this.refreshInterval=void 0,this.refreshInterval=void 0,this.state={hovered:!1,mouseX:void 0,mouseY:void 0}}componentDidMount(){this.props.refresh&&this._refresh()}componentDidUpdate(e){!e.refresh&&this.props.refresh&&this._refresh(),e.refresh&&!this.props.refresh&&this.refreshInterval&&clearTimeout(this.refreshInterval)}componentWillUnmount(){this.refreshInterval&&clearTimeout(this.refreshInterval)}_setHovered(e,t){const{mouseX:a,mouseY:n}=this.state,{clientX:l,clientY:r}=t;l===a&&r===n||this.setState(()=>({hovered:e,mouseX:l,mouseY:r}))}_renderTime(e){if(this.props.time){if(this.state.hovered){if(this.props.expandFullyOnHover&&!this.props.tooltipOnHover)return oa.formatTimeLong(this.props.time,e);if(this.props.expandOnHover&&!this.props.tooltipOnHover)return oa.formatTime(this.props.time,e)}return oa.timeAgo(this.props.time,e)}}_refresh(){this.refreshInterval=setInterval(()=>{this.forceUpdate()},6e4)}render(){let e="reactist_time";this.props.className&&(e=this.props.className);const a=this._renderTime(this.props.config);return t.createElement("time",{className:e,onMouseEnter:e=>this._setHovered(!0,e),onMouseLeave:e=>this._setHovered(!1,e)},this.props.tooltipOnHover?t.createElement(G,{content:this.props.tooltip||this.props.time&&oa.formatTimeLong(this.props.time,this.props.config)},t.createElement("span",null,a)):a)}}sa.displayName=void 0,sa.defaultProps=void 0,sa.displayName="Time",sa.defaultProps={expandOnHover:!1,expandFullyOnHover:!1,tooltipOnHover:!1,refresh:!0,config:{locale:"en",daysSuffix:"d",hoursSuffix:"h",minutesSuffix:"m",momentsAgo:"moments ago"}};const da=t.forwardRef((e,a)=>{const l=n("reactist_input",e.className);return t.createElement("input",_(_({},e),{},{className:l,ref:a}))});da.displayName="Input";const ca=["value","options","onChange","disabled","className","defaultValue"];function ma(e){let{value:a,options:l=[],onChange:r,disabled:i=!0,className:o="",defaultValue:s}=e,d=v(e,ca);const c=n("reactist_select",{disabled:i},o);return t.createElement("select",_({className:c,value:a,onChange:e=>r?r(e.target.value):void 0,disabled:i,defaultValue:s},d),null==l?void 0:l.map(e=>t.createElement("option",{key:e.key||e.value,value:e.value,disabled:e.disabled},e.text)))}ma.displayName="Select",ma.defaultProps={options:[],disabled:!1};var ua={"reach-portal":"ad18b0a0",fadein:"f7a1b219",fitContent:"_8ed9bb5c",container:"f67e892e",full:"_4139421e",large:"_649eb5fe",medium:"_5323e676",small:"_56ca7ae6",xlarge:"a7be0fce",overlay:"_88a7a680",expand:"b29456b8",buttonContainer:"_09ef1f4f",headerContent:"_0e5b530a"};const pa=["isOpen","onDismiss","height","width","exceptionallySetClassName","autoFocus","children"],fa=["children","button","withDivider","exceptionallySetClassName"],ga=["exceptionallySetClassName","children"],ba=["exceptionallySetClassName","withDivider"],ha=["children"],xa=t.createContext({onDismiss:void 0,height:"fitContent"});function _a(e){return!(e.ownerDocument===document&&"iframe"===e.tagName.toLowerCase())}function ya(e){const{onDismiss:a}=t.useContext(xa),[n,l]=t.useState(!1),[r,i]=t.useState(!1);return t.useEffect((function(){r?l(!0):i(!0)}),[r]),t.createElement(ee,_(_({},e),{},{variant:"quaternary",onClick:a,icon:t.createElement(le,null),tabIndex:n?0:-1}))}function va(e){let{exceptionallySetClassName:a,withDivider:n=!1}=e,l=v(e,ba);return t.createElement(t.Fragment,null,n?t.createElement(P,null):null,t.createElement(T,_(_({as:"footer"},l),{},{className:a,padding:"large"})))}exports.Alert=function({id:e,children:a,tone:n,closeLabel:l,onClose:r}){return t.createElement(T,{id:e,role:"alert","aria-live":"polite",borderRadius:"standard",className:[re.container,C(re,"tone",n)]},t.createElement(I,{space:"small",alignY:"top"},t.createElement(O,{width:"content"},t.createElement(ne,{tone:n})),t.createElement(O,null,t.createElement(T,{paddingY:"xsmall",paddingRight:null!=r&&null!=l?void 0:"small"},a)),null!=r&&null!=l?t.createElement(O,{width:"content"},t.createElement(ee,{variant:"quaternary",size:"small",onClick:r,"aria-label":l,icon:t.createElement(le,null),style:{"--reactist-btn-hover-fill":"transparent"}})):null))},exports.Avatar=st,exports.Badge=function(e){let{tone:a,label:n}=e,l=v(e,ct);return t.createElement(T,_(_({},l),{},{as:"span",display:"inline",className:[dt.badge,dt["badge-"+a]]}),n)},exports.Banner=me,exports.Box=T,exports.Button=ee,exports.ButtonLink=Ae,exports.COLORS=Xt,exports.CheckboxField=Pe,exports.ColorPicker=$t,exports.Column=O,exports.Columns=I,exports.ContextMenuTrigger=Mt,exports.DeprecatedButton=Yt,exports.DeprecatedDropdown=Vt,exports.DeprecatedInput=da,exports.DeprecatedModal=function(e){let{isOpen:a,onDismiss:l,height:r="fitContent",width:i="medium",exceptionallySetClassName:o,autoFocus:s=!0,children:c}=e,m=v(e,pa);const u=t.useMemo(()=>({onDismiss:l,height:r}),[l,r]);return t.createElement(h.DialogOverlay,{isOpen:a,onDismiss:l,dangerouslyBypassFocusLock:!0,className:n(ua.overlay,ua[r],ua[i]),"data-testid":"modal-overlay"},t.createElement(d,{autoFocus:s,whiteList:_a,returnFocus:!0},t.createElement(h.DialogContent,_(_({},m),{},{as:T,borderRadius:"full",background:"default",display:"flex",flexDirection:"column",overflow:"hidden",height:"expand"===r?"full":void 0,flexGrow:"expand"===r?1:0,className:[o,ua.container]}),t.createElement(xa.Provider,{value:u},c))))},exports.DeprecatedModalActions=function(e){let{children:a}=e,n=v(e,ha);return t.createElement(va,_({},n),t.createElement(j,{align:"right",space:"large"},a))},exports.DeprecatedModalBody=function(e){let{exceptionallySetClassName:a,children:n}=e,l=v(e,ga);const{height:r}=t.useContext(xa);return t.createElement(T,_(_({},l),{},{className:a,flexGrow:"expand"===r?1:0,height:"expand"===r?"full":void 0,overflow:"auto"}),t.createElement(T,{padding:"large",paddingBottom:"xxlarge"},n))},exports.DeprecatedModalCloseButton=ya,exports.DeprecatedModalFooter=va,exports.DeprecatedModalHeader=function(e){let{children:a,button:n=!0,withDivider:l=!1,exceptionallySetClassName:r}=e,i=v(e,fa);return t.createElement(t.Fragment,null,t.createElement(T,_(_({},i),{},{as:"header",paddingLeft:"large",paddingRight:!1===n||null===n?"large":"small",paddingY:"small",className:r}),t.createElement(I,{space:"large",alignY:"center"},t.createElement(O,{width:"auto"},a),!1===n||null===n?t.createElement("div",{className:ua.headerContent}):t.createElement(O,{width:"content",exceptionallySetClassName:ua.buttonContainer,"data-testid":"button-container"},"boolean"==typeof n?t.createElement(ya,{"aria-label":"Close modal",autoFocus:!1}):n))),l?t.createElement(P,null):null)},exports.DeprecatedSelect=ma,exports.Divider=P,exports.Heading=Le,exports.Hidden=q,exports.HiddenVisually=K,exports.Inline=j,exports.KeyCapturer=function(e){const{children:a,eventName:n="onKeyDown"}=e,l=t.useRef(!1);return t.cloneElement(a,_({[n]:function(t){const a=void 0!==t.key?na.resolveByKey(t.key):na.resolveByKeyCode(t.keyCode);if(!a)return;const n=e[ra[a]]||!1,r=e[la[a]];"Enter"===a&&r&&(l.current||229===(t.keyCode||t.which))||r&&(r(t),n||(t.preventDefault(),t.stopPropagation()))}},e.onEnter?{onCompositionStart:()=>{l.current=!0},onCompositionEnd:()=>{l.current=!1}}:void 0))},exports.KeyboardShortcut=aa,exports.Loading=function(e){var a;let{size:n="small",exceptionallySetClassName:l}=e,r=v(e,ue);const i=null!=(a=pe[n])?a:pe.small,o=r["aria-label"]?r["aria-label"]:r["aria-labelledby"]?void 0:"Loading…";return t.createElement(T,_(_({},r),{},{"aria-label":o,className:l,display:"flex",alignItems:"center",justifyContent:"center",role:"progressbar"}),t.createElement(V,{size:i,"aria-hidden":!0}))},exports.Menu=Ot,exports.MenuButton=It,exports.MenuGroup=jt,exports.MenuItem=Pt,exports.MenuList=Ft,exports.Modal=function(e){let{isOpen:a,onDismiss:l,height:r="fitContent",width:o="medium",exceptionallySetClassName:s,exceptionallySetOverlayClassName:u,autoFocus:p=!0,hideOnEscape:f=!0,hideOnInteractOutside:g=!0,children:b,portalElement:h}=e,x=v(e,ut);const y=t.useCallback(e=>{e||null==l||l()},[l]),E=m.useDialogState({open:a,setOpen:y}),C=t.useMemo(()=>({onDismiss:l,height:r}),[l,r]),w=t.useRef(null),k=t.useRef(null),S=t.useRef(null),N=t.useCallback(e=>{var t,a;null!=(t=k.current)&&t.contains(e.target)||null==(a=S.current)||!a.contains(e.target)||(e.stopPropagation(),null==l||l())},[l]);return t.useLayoutEffect((function(){if(a&&w.current)return c.hideOthers(w.current)}),[a]),a?t.createElement(i.Portal,{portalRef:w,portalElement:h},t.createElement(T,{"data-testid":"modal-overlay","data-overlay":!0,className:n(mt.overlay,mt[r],mt[o],u),onPointerDown:g?N:void 0,ref:S},t.createElement(d,{autoFocus:p,whiteList:xt,returnFocus:!0},t.createElement(m.Dialog,_(_({},x),{},{ref:k,as:T,state:E,hideOnEscape:f,preventBodyScroll:!0,borderRadius:"full",background:"default",display:"flex",flexDirection:"column",overflow:"hidden",height:"expand"===r?"full":void 0,flexGrow:"expand"===r?1:0,className:[s,mt.container],modal:!1,autoFocus:!1,autoFocusOnShow:!1,autoFocusOnHide:!1,portal:!1,backdrop:!1,hideOnInteractOutside:!1}),t.createElement(ht.Provider,{value:C},b))))):null},exports.ModalActions=function(e){let{children:a}=e,n=v(e,bt);return t.createElement(yt,_({},n),t.createElement(j,{align:"right",space:"large"},a))},exports.ModalBody=function(e){let{exceptionallySetClassName:a,children:n}=e,l=v(e,ft);const{height:r}=t.useContext(ht);return t.createElement(T,_(_({},l),{},{className:a,flexGrow:"expand"===r?1:0,height:"expand"===r?"full":void 0,overflow:"auto"}),t.createElement(T,{padding:"large",paddingBottom:"xxlarge"},n))},exports.ModalCloseButton=_t,exports.ModalFooter=yt,exports.ModalHeader=function(e){let{children:a,button:n=!0,withDivider:l=!1,exceptionallySetClassName:r}=e,i=v(e,pt);return t.createElement(t.Fragment,null,t.createElement(T,_(_({},i),{},{as:"header",paddingLeft:"large",paddingRight:!1===n||null===n?"large":"small",paddingY:"small",className:r}),t.createElement(I,{space:"large",alignY:"center"},t.createElement(O,{width:"auto"},a),!1===n||null===n?t.createElement("div",{className:mt.headerContent}):t.createElement(O,{width:"content",exceptionallySetClassName:mt.buttonContainer,"data-testid":"button-container"},"boolean"==typeof n?t.createElement(_t,{"aria-label":"Close modal",autoFocus:!1}):n))),l?t.createElement(P,null):null)},exports.Notice=function({id:e,children:a,tone:n}){return t.createElement(T,{id:e,role:"alert","aria-live":"polite",className:[fe.container,C(fe,"tone",n)]},t.createElement(I,{space:"small",alignY:"top"},t.createElement(O,{width:"content"},t.createElement(ne,{tone:n})),t.createElement(O,null,t.createElement(T,{paddingY:"xsmall"},a))))},exports.PasswordField=Xe,exports.ProgressBar=ia,exports.Prose=function(e){let{darkModeTypography:a,exceptionallySetClassName:n}=e,l=v(e,Be);return t.createElement(T,_(_({},l),{},{className:["_1f36658e",a?"d26ab086":null,n]}))},exports.SUPPORTED_KEYS={ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ENTER:"Enter",BACKSPACE:"Backspace",ESCAPE:"Escape"},exports.SelectField=$e,exports.Stack=Y,exports.StaticToast=_e,exports.SubMenu=Wt,exports.SwitchField=et,exports.Tab=St,exports.TabAwareSlot=function({children:e}){const a=t.useContext(kt);return a?e({selectedId:null==a?void 0:a.tabState.selectedId}):null},exports.TabList=function(e){let{children:a,space:n="xsmall"}=e,l=v(e,Ct);const r=t.useContext(kt);if(!r)return null;const{tabState:i,variant:o}=r;return t.createElement(T,null,t.createElement(u.TabList,_({state:i,as:T,position:"relative",width:"maxContent"},l),t.createElement(T,{className:[vt.track,vt["track-"+o]]}),t.createElement(j,{space:n},a)))},exports.TabPanel=Nt,exports.Tabs=function({children:e,selectedId:a,defaultSelectedId:n,variant:l="neutral",onSelectedIdChange:r}){const i=u.useTabState({selectedId:a,setSelectedId:r}),o=function(e){const a=t.useRef(null);return t.useEffect(()=>{a.current=e},[e]),a.current}(n),{selectedId:s,select:d}=i;t.useEffect((function(){a||n===o||n===s||void 0===n||d(n)}),[a,n,s,d,o]);const c=t.useMemo((function(){return{tabState:i,variant:l}}),[l,i]);return t.createElement(kt.Provider,{value:c},e)},exports.Text=he,exports.TextArea=at,exports.TextField=Ge,exports.TextLink=De,exports.Time=sa,exports.Toast=function(e){const t=Se(),n=a.useRef(e);return a.useEffect(()=>t(n.current),[t]),null},exports.ToastsProvider=function({children:e,padding:n="large",defaultAutoDismissDelay:l=10,defaultDismissLabel:r="Close"}){const[o,s]=a.useState([]),{mappedRef:d,animateRemove:c}=function(){const e=t.useMemo(()=>new Map,[]),a=t.useMemo(()=>new Map,[]);t.useLayoutEffect(()=>{const t=[];Array.from(e.entries()).forEach(([n,l])=>{if(!l)return void e.delete(n);const r=a.get(n),{top:i,height:o}=l.getBoundingClientRect();"number"==typeof r&&r!==i?t.push({element:l,transition:"transform 0.3s ease, opacity 0.3s ease",transforms:[{property:"transform",from:"translateY("+(r-i)+"px)"}]}):"number"!=typeof r&&t.push({element:l,transition:"transform 0.3s ease, opacity 0.3s ease",transforms:[{property:"transform",from:"translateY("+o+"px)"},{property:"opacity",from:"0"}]}),a.set(n,l.getBoundingClientRect().top)}),t.forEach(({element:e,transforms:t,transition:a})=>{Ee({element:e,transforms:t,transition:a})})});const n=t.useCallback((function(t,a){const n=e.get(t);n&&Ee({element:n,transforms:[{property:"opacity",to:"0"}],transition:"opacity 0.2s ease",done:a})}),[e]);return{mappedRef:t.useCallback(t=>a=>{e.set(t,a)},[e]),animateRemove:n}}(),m=a.useCallback((function(e){c(e,()=>{s(t=>{const a=t.findIndex(t=>t.toastId===e);if(a<0)return t;const n=[...t];return n.splice(a,1),n})})}),[c]),u=a.useCallback((function(e){const t=oe("toast"),a=_(_({autoDismissDelay:l,dismissLabel:r},e),{},{toastId:t});return s(e=>[...e,a]),()=>m(t)}),[l,r,m]);return a.createElement(ke.Provider,{value:u},e,a.createElement(i.Portal,null,0===o.length?null:a.createElement(T,{className:"_616cc3f3",position:"fixed",width:"full",paddingX:n,paddingBottom:n},a.createElement(Y,{space:"medium"},o.map(e=>{let{toastId:t}=e,n=v(e,Ce);return a.createElement(we,_({key:t,ref:d(t),toastId:t,onRemoveToast:m},n))})))))},exports.Tooltip=G,exports.useToasts=Se;
2
2
  //# sourceMappingURL=reactist.cjs.production.min.js.map