UNPKG

air-command-ui-library

Version:

A React component library for Air Command System with Storybook

1 lines 93.2 kB
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("react-i18next"),o=require("react-dom"),r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};function a(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function l(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var i={button:"Button-module_button__2ZuB7","button--xs":"Button-module_button--xs__mqYfR","button--sm":"Button-module_button--sm__-XOLs","button--md":"Button-module_button--md__-GRga","button--lg":"Button-module_button--lg__p-URz","button--icon-only":"Button-module_button--icon-only__-ILwS","button--primary":"Button-module_button--primary__0eqDM","button--danger":"Button-module_button--danger__y2uGS","button--warning":"Button-module_button--warning__cp3iP","button--white":"Button-module_button--white__gGIPa","button--black":"Button-module_button--black__D27Dd","button--cancel":"Button-module_button--cancel__cC2PL","button--outline":"Button-module_button--outline__eVhnr","button--dark":"Button-module_button--dark__jf0ou","button--disabled":"Button-module_button--disabled__Ahfhc",icon:"Button-module_icon__-43u5",content:"Button-module_content__EKXmF"};const s=t.forwardRef((t,n)=>{var o,r,{color:l="primary",size:s="md",width:c,outline:d=!1,theme:u="light",icon:m,iconOnly:p=!1,children:h,className:f,style:g,disabled:b,"aria-label":v}=t,y=a(t,["color","size","width","outline","theme","icon","iconOnly","children","className","style","disabled","aria-label"]);const _=[i.button,i[`button--${l}`],i[`button--${s}`],i[`button--${u}`],d&&i["button--outline"],p&&i["button--icon-only"],b&&i["button--disabled"],f].filter(Boolean).join(" "),x=Object.assign(Object.assign({},g),c&&{width:c});if(p&&!v)try{null===(r=null===(o=globalThis.console)||void 0===o?void 0:o.warn)||void 0===r||r.call(o,"Button: iconOnly buttons should have an aria-label for accessibility")}catch(e){}return e.jsxs("button",Object.assign({ref:n,className:_,style:x,disabled:b,"aria-label":v},y,{children:[m&&e.jsx("span",{className:i.icon,children:m}),!p&&h&&e.jsx("span",{className:i.content,children:h})]}))});s.displayName="Button";var c={container:"Input-module_container__zLqel",label:"Input-module_label__-OEBL",input:"Input-module_input__WjT81","input--light":"Input-module_input--light__KsLg2","label--light":"Input-module_label--light__HTudv","input--dark":"Input-module_input--dark__O4OLT","label--dark":"Input-module_label--dark__rnggC","input--error":"Input-module_input--error__M6Mva",errorMessage:"Input-module_errorMessage__rP4NL"};const d=t.forwardRef((t,n)=>{var{theme:o="light",type:r="text",placeholder:l,label:i,disabled:s=!1,error:d=!1,errorMessage:u,width:m,className:p}=t,h=a(t,["theme","type","placeholder","label","disabled","error","errorMessage","width","className"]);const f=[c.input,c[`input--${o}`],d&&c["input--error"],p].filter(Boolean).join(" "),g=Object.assign({},m&&{width:m}),b=[c.label,c[`label--${o}`]].filter(Boolean).join(" ");return e.jsxs("div",{className:c.container,children:[i&&e.jsx("label",{className:b,children:i}),e.jsx("input",Object.assign({ref:n,type:r,placeholder:l,disabled:s,className:f,style:g},h)),d&&u&&e.jsx("span",{className:c.errorMessage,children:u})]})});d.displayName="Input";var u={table:"Table-module_table__Dkosn","table--bordered":"Table-module_table--bordered__R4uKP","table--dark":"Table-module_table--dark__PYrbm",tableWrapper:"Table-module_tableWrapper__RrJlk",tableElement:"Table-module_tableElement__O-g1O",tableHead:"Table-module_tableHead__u0Ap5",tableHeaderCell:"Table-module_tableHeaderCell__AxkAJ",sortableHeader:"Table-module_sortableHeader__kziwl",headerButton:"Table-module_headerButton__ZDpwC",headerContent:"Table-module_headerContent__tzwme",headerText:"Table-module_headerText__v3vJx",sortButton:"Table-module_sortButton__V9clQ",tableBody:"Table-module_tableBody__hME-z",tableRow:"Table-module_tableRow__snnCC","tableRow--selected":"Table-module_tableRow--selected__eP6Wv",tableCell:"Table-module_tableCell__nwzFB",classificationText:"Table-module_classificationText__OKnkg",classificationDot:"Table-module_classificationDot__htS7E","align--left":"Table-module_align--left__lEvls","align--center":"Table-module_align--center__PmXpI","align--right":"Table-module_align--right__5Vj9Y",classificationCell:"Table-module_classificationCell__NLycl","classification--friendly":"Table-module_classification--friendly__wnDEx","classification--hostile":"Table-module_classification--hostile__tB0c-","classification--neutral":"Table-module_classification--neutral__ZrkTn","classification--unknown":"Table-module_classification--unknown__mftR1","classificationText--friendly":"Table-module_classificationText--friendly__HxBbS","classificationText--hostile":"Table-module_classificationText--hostile__7Q3V5","classificationText--neutral":"Table-module_classificationText--neutral__pgAGS","classificationText--unknown":"Table-module_classificationText--unknown__Q3bmE","tableRow--clickable":"Table-module_tableRow--clickable__Bygb8",loading:"Table-module_loading__BI6XS",empty:"Table-module_empty__O1nyD",compoundSortIndicator:"Table-module_compoundSortIndicator__okp5-",sortNumber:"Table-module_sortNumber__PmDXz",cancelAnimation:"Table-module_cancelAnimation__UOruQ",fadeInOut:"Table-module_fadeInOut__yVoFQ"};const m=t=>e.jsxs("svg",Object.assign({},t,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{clipPath:"url(#clip0_3592_1179)",children:e.jsx("path",{d:"M11.0706 5.36641L6.62979 0.920122C6.54532 0.839164 6.44572 0.775702 6.3367 0.733378C6.12047 0.644436 5.87793 0.644436 5.6617 0.733378C5.55268 0.775702 5.45307 0.839164 5.36861 0.920122L0.927825 5.36641C0.845015 5.44933 0.779326 5.54776 0.73451 5.65609C0.689693 5.76442 0.666626 5.88053 0.666626 5.99779C0.666626 6.2346 0.760582 6.46171 0.927825 6.62916C1.09507 6.79661 1.3219 6.89068 1.55842 6.89068C1.79493 6.89068 2.02176 6.79661 2.18901 6.62916L5.11104 3.69461V10.4441C5.11104 10.6799 5.20462 10.9061 5.37118 11.0729C5.53774 11.2396 5.76365 11.3333 5.9992 11.3333C6.23475 11.3333 6.46066 11.2396 6.62722 11.0729C6.79378 10.9061 6.88736 10.6799 6.88736 10.4441V3.69461L9.80939 6.62916C9.89196 6.71251 9.99019 6.77866 10.0984 6.82381C10.2066 6.86896 10.3227 6.8922 10.44 6.8922C10.5572 6.8922 10.6733 6.86896 10.7815 6.82381C10.8898 6.77866 10.988 6.71251 11.0706 6.62916C11.1538 6.54649 11.2199 6.44814 11.265 6.33977C11.3101 6.23141 11.3333 6.11518 11.3333 5.99779C11.3333 5.88039 11.3101 5.76416 11.265 5.6558C11.2199 5.54743 11.1538 5.44908 11.0706 5.36641Z",fill:"currentColor"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_3592_1179",children:e.jsx("rect",{width:"12",height:"12",fill:"white"})})})]})),p=t=>e.jsxs("svg",Object.assign({},t,{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{clipPath:"url(#clip0_3592_1173)",children:e.jsx("path",{d:"M0.929429 6.63359L5.37021 11.0799C5.45468 11.1608 5.55428 11.2243 5.6633 11.2666C5.87953 11.3556 6.12207 11.3556 6.3383 11.2666C6.44732 11.2243 6.54693 11.1608 6.63139 11.0799L11.0722 6.63359C11.155 6.55067 11.2207 6.45224 11.2655 6.34391C11.3103 6.23558 11.3334 6.11947 11.3334 6.00221C11.3334 5.7654 11.2394 5.53829 11.0722 5.37084C10.9049 5.20339 10.6781 5.10932 10.4416 5.10932C10.2051 5.10932 9.97824 5.20339 9.81099 5.37084L6.88896 8.30539L6.88896 1.55592C6.88896 1.32008 6.79538 1.09389 6.62882 0.927125C6.46226 0.760356 6.23636 0.666667 6.0008 0.666667C5.76525 0.666667 5.53934 0.760355 5.37278 0.927124C5.20622 1.09389 5.11265 1.32008 5.11265 1.55592L5.11264 8.30539L2.19061 5.37084C2.10804 5.28749 2.00981 5.22134 1.90158 5.17619C1.79335 5.13104 1.67727 5.1078 1.56002 5.1078C1.44277 5.1078 1.32669 5.13104 1.21846 5.17619C1.11023 5.22134 1.01199 5.28749 0.92943 5.37084C0.846184 5.45351 0.780109 5.55186 0.735018 5.66023C0.689928 5.76859 0.666714 5.88482 0.666714 6.00221C0.666714 6.11961 0.689928 6.23584 0.735018 6.3442C0.780109 6.45257 0.846184 6.55092 0.929429 6.63359Z",fill:"currentColor"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_3592_1173",children:e.jsx("rect",{width:"12",height:"12",fill:"white",transform:"translate(12 12) rotate(-180)"})})})]})),h=()=>e.jsx(m,{style:{display:"inline-block",color:"#4d4dff"}}),f=()=>e.jsx(p,{style:{display:"inline-block",color:"#4d4dff"}}),g=t.forwardRef((o,r)=>{var{columns:l,dataSource:i,theme:s="light",selectedRowKeys:c=[],onRowSelectionChange:d,onSort:m,loading:p=!1,emptyText:g="No data",height:b,bordered:v=!0,className:y,style:_,compoundSortState:x}=o,w=a(o,["columns","dataSource","theme","selectedRowKeys","onRowSelectionChange","onSort","loading","emptyText","height","bordered","className","style","compoundSortState"]);const{t:C}=n.useTranslation(),[j]=t.useState({columnKey:null,direction:null}),[k,N]=t.useState({primary:{columnKey:null,direction:null},secondary:{columnKey:null,direction:null}}),[S,L]=t.useState(null),T=t.useCallback(e=>{let t="asc";const n=null!=x?x:k;return n.primary.columnKey===e?"asc"===n.primary.direction?t="desc":"desc"===n.primary.direction&&(t=null):n.secondary.columnKey===e&&("asc"===n.secondary.direction?t="desc":"desc"===n.secondary.direction&&(t=null)),null===t?(n.primary.columnKey===e?n.secondary.columnKey&&n.secondary.direction?x||N(e=>({primary:Object.assign({},e.secondary),secondary:{columnKey:null,direction:null}})):x||N(()=>({primary:{columnKey:null,direction:null},secondary:{columnKey:null,direction:null}})):n.secondary.columnKey===e&&(x||N(e=>({primary:e.primary,secondary:{columnKey:null,direction:null}}))),L({columnKey:e,timer:globalThis.setTimeout(()=>{L(null)},1e3)}),void(null==m||m(e,t))):n.primary.columnKey===e?(x||N(n=>Object.assign(Object.assign({},n),{primary:{columnKey:e,direction:t}})),void(null==m||m(e,t))):n.secondary.columnKey===e?(x||N(n=>Object.assign(Object.assign({},n),{secondary:{columnKey:e,direction:t}})),void(null==m||m(e,t))):!n.primary.columnKey||!n.primary.direction||n.secondary.columnKey&&n.secondary.direction?n.primary.columnKey&&n.primary.direction?n.secondary.columnKey&&n.secondary.direction?(x||N(n=>({primary:n.secondary,secondary:{columnKey:e,direction:t}})),null==m||m(e,t),(null==S?void 0:S.timer)&&globalThis.clearTimeout(S.timer),void L(null)):(x||N(n=>Object.assign(Object.assign({},n),{secondary:{columnKey:e,direction:t}})),void(null==m||m(e,t))):(x||N(n=>Object.assign(Object.assign({},n),{primary:{columnKey:e,direction:t}})),void(null==m||m(e,t))):(x||N(n=>({primary:Object.assign({},n.primary),secondary:{columnKey:e,direction:t}})),void(null==m||m(e,t)))},[k,x,m,S]);t.useEffect(()=>()=>{(null==S?void 0:S.timer)&&globalThis.clearTimeout(S.timer)},[S]);const B=t.useCallback(e=>{if(!d)return;const t=c.includes(e);let n;n=t?[]:[e];const o=i.filter(e=>n.includes(e.key));d(n,o)},[c,d,i]),M=t=>{const n=null!=x?x:k,{primary:o,secondary:r}=n;if((null==S?void 0:S.columnKey)===t)return e.jsx("div",{className:u.compoundSortIndicator,children:e.jsx("span",{className:u.cancelAnimation,children:"-"})});if(o.columnKey&&o.direction&&r.columnKey&&r.direction){if(o.columnKey===t)return e.jsxs("div",{className:u.compoundSortIndicator,children:[e.jsx("span",{className:u.sortNumber,children:"1"}),"asc"===o.direction?e.jsx(h,{}):e.jsx(f,{})]});if(r.columnKey===t)return e.jsxs("div",{className:u.compoundSortIndicator,children:[e.jsx("span",{className:u.sortNumber,children:"2"}),"asc"===r.direction?e.jsx(h,{}):e.jsx(f,{})]})}return o.columnKey!==t||!o.direction||r.columnKey&&r.direction?r.columnKey!==t||!r.direction||o.columnKey&&o.direction?j.columnKey===t&&j.direction?e.jsx("div",{className:u.compoundSortIndicator,children:"asc"===j.direction?e.jsx(h,{}):e.jsx(f,{})}):null:e.jsx("div",{className:u.compoundSortIndicator,children:"asc"===r.direction?e.jsx(h,{}):e.jsx(f,{})}):e.jsx("div",{className:u.compoundSortIndicator,children:"asc"===o.direction?e.jsx(h,{}):e.jsx(f,{})})},$=[u.table,u[`table--${s}`],v&&u["table--bordered"],y].filter(Boolean).join(" "),O=Object.assign(Object.assign({},_),b&&{height:b});return p?e.jsx("div",Object.assign({ref:r,className:$,style:O},w,{children:e.jsx("div",{className:u.loading,children:C("common.loading")})})):0===i.length?e.jsx("div",Object.assign({ref:r,className:$,style:O},w,{children:e.jsx("div",{className:u.empty,children:g||C("common.noData")})})):e.jsx("div",Object.assign({ref:r,className:$,style:O},w,{children:e.jsx("div",{className:u.tableWrapper,children:e.jsxs("table",{className:u.tableElement,children:[e.jsx("thead",{className:u.tableHead,children:e.jsx("tr",{children:l.map(t=>e.jsx("th",{className:`${u.tableHeaderCell} ${t.align?u[`align--${t.align}`]:""} ${t.sortable?u.sortableHeader:""}`,style:{width:t.width},onClick:t.sortable?()=>T(t.key):void 0,children:e.jsxs("div",{className:u.headerContent,children:[e.jsx("span",{className:u.headerText,children:t.title}),t.sortable&&M(t.key)]})},t.key))})}),e.jsx("tbody",{className:u.tableBody,children:i.map((t,n)=>{const o=c.includes(t.key);return e.jsx("tr",{className:`${u.tableRow} ${o?u["tableRow--selected"]:""} ${u["tableRow--clickable"]}`,onClick:()=>B(t.key),children:l.map(o=>{const r=t[o.dataIndex];let a=r;return o.render?a=o.render(r,t,n):"classification"===o.dataIndex&&"string"==typeof r?a=(t=>{const n=t.toLowerCase();return e.jsxs("div",{className:u.classificationCell,children:[e.jsx("span",{className:`${u.classificationDot} ${u[`classification--${n}`]}`}),e.jsx("span",{className:`${u.classificationText} ${u[`classificationText--${n}`]}`,children:t})]})})(r):"latitude"!==o.dataIndex&&"longitude"!==o.dataIndex||"number"!=typeof r||(a=r.toFixed(6)),e.jsx("td",{className:`${u.tableCell} ${o.align?u[`align--${o.align}`]:""}`,style:{width:o.width},children:a},o.key)})},t.key)})})]})})}))});g.displayName="Table";var b={combobox:"ComboBox-module_combobox__DXzYn",label:"ComboBox-module_label__e2wbc",trigger:"ComboBox-module_trigger__rxff2","trigger--disabled":"ComboBox-module_trigger--disabled__HFXJk","trigger--sm":"ComboBox-module_trigger--sm__PonZm","trigger--md":"ComboBox-module_trigger--md__woKSZ","trigger--lg":"ComboBox-module_trigger--lg__UUp1m",placeholder:"ComboBox-module_placeholder__-8hfX",value:"ComboBox-module_value__e-ces",arrow:"ComboBox-module_arrow__3W-3l","arrow--open":"ComboBox-module_arrow--open__Z0PwB",dropdown:"ComboBox-module_dropdown__CkUge",fadeIn:"ComboBox-module_fadeIn__vx8xz",option:"ComboBox-module_option__E86BE","option--disabled":"ComboBox-module_option--disabled__viUbY","option--selected":"ComboBox-module_option--selected__mtL9o","option--highlighted":"ComboBox-module_option--highlighted__SxV73","combobox--dark":"ComboBox-module_combobox--dark__nA5KY","trigger--error":"ComboBox-module_trigger--error__s-jS4","helper-text":"ComboBox-module_helper-text__Mq6gh","helper-text--error":"ComboBox-module_helper-text--error__bfJGC","search-input":"ComboBox-module_search-input__20T0G","no-options":"ComboBox-module_no-options__JAnLE"};const v=t.forwardRef((n,o)=>{var{options:r=[],value:l,onChange:i,label:s,placeholder:c="Select an option...",disabled:d=!1,theme:u="light",size:m="md",searchable:p=!1,width:h,error:f=!1,helperText:g,required:v=!1,name:y,className:_,style:x}=n,w=a(n,["options","value","onChange","label","placeholder","disabled","theme","size","searchable","width","error","helperText","required","name","className","style"]);const[C,j]=t.useState(!1),[k,N]=t.useState(""),[S,L]=t.useState(-1),T=t.useRef(null),B=t.useRef(null),M=t.useRef(null),$=r.find(e=>e.value===l),O=p?r.filter(e=>e.label.toLowerCase().includes(k.toLowerCase())):r,P=e=>{var t;null==i||i(e),j(!1),N(""),L(-1),null===(t=B.current)||void 0===t||t.focus()};t.useEffect(()=>{var e;const t=e=>{T.current&&!T.current.contains(e.target)&&(j(!1),N(""),L(-1))};if("undefined"!=typeof window)return null===(e=globalThis.document)||void 0===e||e.addEventListener("mousedown",t),()=>{var e;return null===(e=globalThis.document)||void 0===e?void 0:e.removeEventListener("mousedown",t)}},[]),t.useEffect(()=>{var e;const t=e=>{var t;if(C)switch(e.key){case"ArrowDown":e.preventDefault(),L(e=>e<O.length-1?e+1:0);break;case"ArrowUp":e.preventDefault(),L(e=>e>0?e-1:O.length-1);break;case"Enter":e.preventDefault(),S>=0&&O[S]&&P(O[S].value);break;case"Escape":e.preventDefault(),j(!1),N(""),L(-1),null===(t=B.current)||void 0===t||t.focus()}};if("undefined"!=typeof window)return null===(e=globalThis.document)||void 0===e||e.addEventListener("keydown",t),()=>{var e;return null===(e=globalThis.document)||void 0===e?void 0:e.removeEventListener("keydown",t)}},[C,S,O,P]),t.useEffect(()=>{L(-1)},[k]);const I=[b.combobox,b[`combobox--${u}`],_].filter(Boolean).join(" "),A=[b.trigger,b[`trigger--${m}`],d&&b["trigger--disabled"],f&&b["trigger--error"]].filter(Boolean).join(" "),E=[b.arrow,C&&b["arrow--open"]].filter(Boolean).join(" "),D=Object.assign(Object.assign({},x),h&&{width:h});return e.jsxs("div",Object.assign({ref:o||T,className:I,style:D},w,{children:[s&&e.jsx("label",{className:b.label,children:s}),e.jsxs("button",{ref:B,type:"button",className:A,onClick:()=>{d||(j(!C),C||(N(""),L(-1)))},disabled:d,"aria-haspopup":"listbox","aria-expanded":C,name:y,children:[p&&C?e.jsx("input",{type:"text",className:b["search-input"],value:k,onChange:e=>{N(e.target.value)},placeholder:c,autoFocus:!0,onClick:e=>e.stopPropagation()}):e.jsx("span",{className:$?b.value:b.placeholder,children:(null==$?void 0:$.label)||c}),e.jsx("svg",{className:E,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),C&&e.jsx("div",{ref:M,className:b.dropdown,role:"listbox",children:O.length>0?O.map((t,n)=>{const o=[b.option,t.value===l&&b["option--selected"],t.disabled&&b["option--disabled"],n===S&&b["option--highlighted"]].filter(Boolean).join(" ");return e.jsx("button",{type:"button",className:o,onClick:()=>!t.disabled&&P(t.value),disabled:t.disabled,role:"option","aria-selected":t.value===l,children:t.label},t.value)}):e.jsx("div",{className:b["no-options"],children:p&&k?"No options found":"No options available"})}),g&&e.jsx("div",{className:`${b["helper-text"]} ${f?b["helper-text--error"]:""}`,children:g})]}))});v.displayName="ComboBox";var y={navbar:"Navbar-module_navbar__Ey25T","navbar--light":"Navbar-module_navbar--light__bJMc7","navbar--dark":"Navbar-module_navbar--dark__DPoq3",navbarLeft:"Navbar-module_navbarLeft__8KVcI",navbarLogo:"Navbar-module_navbarLogo__sr34v",navbarTitle:"Navbar-module_navbarTitle__Sz-F6","navbarTitle--light":"Navbar-module_navbarTitle--light__IDFhu","navbarTitle--dark":"Navbar-module_navbarTitle--dark__yO8OQ",navbarRight:"Navbar-module_navbarRight__dgAkg",userInfo:"Navbar-module_userInfo__yDCa7","userInfo--light":"Navbar-module_userInfo--light__bFeRG","userInfo--dark":"Navbar-module_userInfo--dark__mk28a",navbarActions:"Navbar-module_navbarActions__NQtA-",iconButton:"Navbar-module_iconButton__rJ3Dm","iconButton--light":"Navbar-module_iconButton--light__Y2NNK","iconButton--dark":"Navbar-module_iconButton--dark__rstUA",languageButton:"Navbar-module_languageButton__8-ORg","languageButton--light":"Navbar-module_languageButton--light__LPtUS","languageButton--dark":"Navbar-module_languageButton--dark__1TGrU",logoutButton:"Navbar-module_logoutButton__-bsWL"};var _={statusBadge:"StatusBadge-module_statusBadge__rgWk4",statusDot:"StatusBadge-module_statusDot__Oq4lw",friendly:"StatusBadge-module_friendly__-j92o",hostile:"StatusBadge-module_hostile__WfEjB",neutral:"StatusBadge-module_neutral__YeWht",unknown:"StatusBadge-module_unknown__LvB5P",backgroundVariant:"StatusBadge-module_backgroundVariant__S8JY6",friendlyBackground:"StatusBadge-module_friendlyBackground__E0Sur",hostileBackground:"StatusBadge-module_hostileBackground__MdcNr",neutralBackground:"StatusBadge-module_neutralBackground__8XBNk",unknownBackground:"StatusBadge-module_unknownBackground__6m8jl",small:"StatusBadge-module_small__zb-N-",large:"StatusBadge-module_large__Hifby"};const x=t.forwardRef((t,n)=>{var{status:o,text:r,size:l="medium",variant:i="dot",className:s}=t,c=a(t,["status","text","size","variant","className"]);const d=[_.statusBadge,_[o],"background"===i&&_[`${o}Background`],"medium"!==l&&_[l],"background"===i&&_.backgroundVariant,s].filter(Boolean).join(" ");return e.jsxs("span",Object.assign({ref:n,className:d},c,{children:["dot"===i&&e.jsx("span",{className:_.statusDot}),r||o]}))});function w(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}x.displayName="StatusBadge";var C=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,j=w(function(e){return C.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),k="-ms-",N="-moz-",S="-webkit-",L="comm",T="rule",B="decl",M="@keyframes",$=Math.abs,O=String.fromCharCode,P=Object.assign;function I(e){return e.trim()}function A(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,n){return e.replace(t,n)}function D(e,t,n){return e.indexOf(t,n)}function R(e,t){return 0|e.charCodeAt(t)}function V(e,t,n){return e.slice(t,n)}function H(e){return e.length}function F(e){return e.length}function z(e,t){return t.push(e),e}function Z(e,t){return e.filter(function(e){return!A(e,t)})}var U=1,K=1,W=0,G=0,q=0,Y="";function X(e,t,n,o,r,a,l,i){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:U,column:K,length:l,return:"",siblings:i}}function Q(e,t){return P(X("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function J(e){for(;e.root;)e=Q(e.root,{children:[e]});z(e,e.siblings)}function ee(){return q=G>0?R(Y,--G):0,K--,10===q&&(K=1,U--),q}function te(){return q=G<W?R(Y,G++):0,K++,10===q&&(K=1,U++),q}function ne(){return R(Y,G)}function oe(){return G}function re(e,t){return V(Y,e,t)}function ae(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(e){return I(re(G-1,ce(91===e?e+2:40===e?e+1:e)))}function ie(e){for(;(q=ne())&&q<33;)te();return ae(e)>2||ae(q)>3?"":" "}function se(e,t){for(;--t&&te()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return re(e,oe()+(t<6&&32==ne()&&32==te()))}function ce(e){for(;te();)switch(q){case e:return G;case 34:case 39:34!==e&&39!==e&&ce(q);break;case 40:41===e&&ce(e);break;case 92:te()}return G}function de(e,t){for(;te()&&e+q!==57&&(e+q!==84||47!==ne()););return"/*"+re(t,G-1)+"*"+O(47===e?e:te())}function ue(e){for(;!ae(ne());)te();return re(e,G)}function me(e){return function(e){return Y="",e}(pe("",null,null,null,[""],e=function(e){return U=K=1,W=H(Y=e),G=0,[]}(e),0,[0],e))}function pe(e,t,n,o,r,a,l,i,s){for(var c=0,d=0,u=l,m=0,p=0,h=0,f=1,g=1,b=1,v=0,y="",_=r,x=a,w=o,C=y;g;)switch(h=v,v=te()){case 40:if(108!=h&&58==R(C,u-1)){-1!=D(C+=E(le(v),"&","&\f"),"&\f",$(c?i[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=le(v);break;case 9:case 10:case 13:case 32:C+=ie(h);break;case 92:C+=se(oe()-1,7);continue;case 47:switch(ne()){case 42:case 47:z(fe(de(te(),oe()),t,n,s),s);break;default:C+="/"}break;case 123*f:i[c++]=H(C)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+d:-1==b&&(C=E(C,/\f/g,"")),p>0&&H(C)-u&&z(p>32?ge(C+";",o,n,u-1,s):ge(E(C," ","")+";",o,n,u-2,s),s);break;case 59:C+=";";default:if(z(w=he(C,t,n,c,d,r,i,y,_=[],x=[],u,a),a),123===v)if(0===d)pe(C,t,w,w,_,a,u,i,x);else switch(99===m&&110===R(C,3)?100:m){case 100:case 108:case 109:case 115:pe(e,w,w,o&&z(he(e,w,w,0,0,r,i,y,r,_=[],u,x),x),r,x,u,i,o?_:x);break;default:pe(C,w,w,w,[""],x,0,i,x)}}c=d=p=0,f=b=1,y=C="",u=l;break;case 58:u=1+H(C),p=h;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==ee())continue;switch(C+=O(v),v*f){case 38:b=d>0?1:(C+="\f",-1);break;case 44:i[c++]=(H(C)-1)*b,b=1;break;case 64:45===ne()&&(C+=le(te())),m=ne(),d=u=H(y=C+=ue(oe())),v++;break;case 45:45===h&&2==H(C)&&(f=0)}}return a}function he(e,t,n,o,r,a,l,i,s,c,d,u){for(var m=r-1,p=0===r?a:[""],h=F(p),f=0,g=0,b=0;f<o;++f)for(var v=0,y=V(e,m+1,m=$(g=l[f])),_=e;v<h;++v)(_=I(g>0?p[v]+" "+y:E(y,/&\f/g,p[v])))&&(s[b++]=_);return X(e,t,n,0===r?T:i,s,c,d,u)}function fe(e,t,n,o){return X(e,t,n,L,O(q),V(e,2,-2),0,o)}function ge(e,t,n,o,r){return X(e,t,n,B,V(e,0,o),V(e,o+1,-1),o,r)}function be(e,t,n){switch(function(e,t){return 45^R(e,0)?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}(e,t)){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 4789:return N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+N+e+k+e+e;case 5936:switch(R(e,t+11)){case 114:return S+e+k+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+k+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+k+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return S+e+k+e+e;case 6165:return S+e+k+"flex-"+e+e;case 5187:return S+e+E(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return S+e+k+"flex-item-"+E(e,/flex-|-self/g,"")+(A(e,/flex-|baseline/)?"":k+"grid-row-"+E(e,/flex-|-self/g,""))+e;case 4675:return S+e+k+"flex-line-pack"+E(e,/align-content|flex-|-self/g,"")+e;case 5548:return S+e+k+E(e,"shrink","negative")+e;case 5292:return S+e+k+E(e,"basis","preferred-size")+e;case 6060:return S+"box-"+E(e,"-grow","")+S+e+k+E(e,"grow","positive")+e;case 4554:return S+E(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4200:if(!A(e,/flex-|baseline/))return k+"grid-column-align"+V(e,t)+e;break;case 2592:case 3360:return k+E(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,A(e.props,/grid-\w+-end/)})?~D(e+(n=n[t].value),"span",0)?e:k+E(e,"-start","")+e+k+"grid-row-span:"+(~D(n,"span",0)?A(n,/\d+/):+A(n,/\d+/)-+A(e,/\d+/))+";":k+E(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return A(e.props,/grid-\w+-start/)})?e:k+E(E(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(H(e)-1-t>6)switch(R(e,t+1)){case 109:if(45!==R(e,t+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+N+(108==R(e,t+3)?"$3":"$2-$3"))+e;case 115:return~D(e,"stretch",0)?be(E(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return E(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,o,r,a,l,i){return k+n+":"+o+i+(r?k+n+"-span:"+(a?l:+l-+o)+i:"")+e});case 4949:if(121===R(e,t+6))return E(e,":",":"+S)+e;break;case 6444:switch(R(e,45===R(e,14)?18:11)){case 120:return E(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+S+(45===R(e,14)?"inline-":"")+"box$3$1"+S+"$2$3$1"+k+"$2box$3")+e;case 100:return E(e,":",":"+k)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return E(e,"scroll-","scroll-snap-")+e}return e}function ve(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function ye(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case B:return e.return=e.return||e.value;case L:return"";case M:return e.return=e.value+"{"+ve(e.children,o)+"}";case T:if(!H(e.value=e.props.join(",")))return""}return H(n=ve(e.children,o))?e.return=e.value+"{"+n+"}":""}function _e(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case B:return void(e.return=be(e.value,e.length,n));case M:return ve([Q(e,{value:E(e.value,"@","@"+S)})],o);case T:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(A(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":J(Q(e,{props:[E(t,/:(read-\w+)/,":-moz-$1")]})),J(Q(e,{props:[t]})),P(e,{props:Z(n,o)});break;case"::placeholder":J(Q(e,{props:[E(t,/:(plac\w+)/,":"+S+"input-$1")]})),J(Q(e,{props:[E(t,/:(plac\w+)/,":-moz-$1")]})),J(Q(e,{props:[E(t,/:(plac\w+)/,k+"input-$1")]})),J(Q(e,{props:[t]})),P(e,{props:Z(n,o)})}return""})}}var xe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},we="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ce="active",je="data-styled-version",ke="6.1.19",Ne="/*!sc*/\n",Se="undefined"!=typeof window&&"undefined"!=typeof document,Le=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Te=/invalid hook call/i,Be=new Set,Me=function(e,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",r="The component ".concat(e).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",a=console.error;try{var i=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Te.test(e)?(i=!1,Be.delete(r)):a.apply(void 0,l([e],t,!1))},t.useRef(),i&&!Be.has(r)&&(console.warn(r),Be.add(r))}catch(e){Te.test(e.message)&&Be.delete(r)}finally{console.error=a}}},$e=Object.freeze([]),Oe=Object.freeze({});var Pe=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ie=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ae=/(^-|-$)/g;function Ee(e){return e.replace(Ie,"-").replace(Ae,"")}var De=/(a)(d)/gi,Re=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ve(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Re(t%52)+n;return(Re(t%52)+n).replace(De,"$1-$2")}var He,Fe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ze=function(e){return Fe(5381,e)};function Ze(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ue(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ke="function"==typeof Symbol&&Symbol.for,We=Ke?Symbol.for("react.memo"):60115,Ge=Ke?Symbol.for("react.forward_ref"):60112,qe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ye={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qe=((He={})[Ge]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},He[We]=Xe,He);function Je(e){return("type"in(t=e)&&t.type.$$typeof)===We?Xe:"$$typeof"in e?Qe[e.$$typeof]:qe;var t}var et=Object.defineProperty,tt=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,ot=Object.getOwnPropertyDescriptor,rt=Object.getPrototypeOf,at=Object.prototype;function lt(e,t,n){if("string"!=typeof t){if(at){var o=rt(t);o&&o!==at&&lt(e,o,n)}var r=tt(t);nt&&(r=r.concat(nt(t)));for(var a=Je(e),l=Je(t),i=0;i<r.length;++i){var s=r[i];if(!(s in Ye||n&&n[s]||l&&s in l||a&&s in a)){var c=ot(t,s);try{et(e,s,c)}catch(e){}}}}return e}function it(e){return"function"==typeof e}function st(e){return"object"==typeof e&&"styledComponentId"in e}function ct(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function dt(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function ut(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function mt(e,t,n){if(void 0===n&&(n=!1),!n&&!ut(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=mt(e[o],t[o]);else if(ut(t))for(var o in t)e[o]=mt(e[o],t[o]);return e}function pt(e,t){Object.defineProperty(e,"toString",{value:t})}var ht="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,a=e.length;r<a;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function gt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ft.apply(void 0,l([ht[e]],t,!1)).trim())}var bt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw gt(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var a=o;a<r;a++)this.groupSizes[a]=0}for(var l=this.indexOfGroup(e+1),i=(a=0,t.length);a<i;a++)this.tag.insertRule(l,t[a])&&(this.groupSizes[e]++,l++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,a=o;a<r;a++)t+="".concat(this.tag.getRule(a)).concat(Ne);return t},e}(),vt=1<<30,yt=new Map,_t=new Map,xt=1,wt=function(e){if(yt.has(e))return yt.get(e);for(;_t.has(xt);)xt++;var t=xt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>vt))throw gt(16,"".concat(t));return yt.set(e,t),_t.set(t,e),t},Ct=function(e,t){xt=t+1,yt.set(e,t),_t.set(t,e)},jt="style[".concat(we,"][").concat(je,'="').concat(ke,'"]'),kt=new RegExp("^".concat(we,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Nt=function(e,t,n){for(var o,r=n.split(","),a=0,l=r.length;a<l;a++)(o=r[a])&&e.registerName(t,o)},St=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Ne),r=[],a=0,l=o.length;a<l;a++){var i=o[a].trim();if(i){var s=i.match(kt);if(s){var c=0|parseInt(s[1],10),d=s[2];0!==c&&(Ct(d,c),Nt(e,d,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},Lt=function(e){for(var t=document.querySelectorAll(jt),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(we)!==Ce&&(St(e,r),r.parentNode&&r.parentNode.removeChild(r))}};var Tt=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(we,"]")));return t[t.length-1]}(n),a=void 0!==r?r.nextSibling:null;o.setAttribute(we,Ce),o.setAttribute(je,ke);var l="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return l&&o.setAttribute("nonce",l),n.insertBefore(o,a),o},Bt=function(){function e(e){this.element=Tt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw gt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Mt=function(){function e(e){this.element=Tt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$t=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ot=Se,Pt={isServer:!Se,useCSSOMInjection:!Le},It=function(){function e(e,t,n){void 0===e&&(e=Oe),void 0===t&&(t={});var o=this;this.options=r(r({},Pt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Se&&Ot&&(Ot=!1,Lt(this)),pt(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return _t.get(e)}(n);if(void 0===r)return"continue";var a=e.names.get(r),l=t.getGroup(n);if(void 0===a||!a.size||0===l.length)return"continue";var i="".concat(we,".g").concat(n,'[id="').concat(r,'"]'),s="";void 0!==a&&a.forEach(function(e){e.length>0&&(s+="".concat(e,","))}),o+="".concat(l).concat(i,'{content:"').concat(s,'"}').concat(Ne)},a=0;a<n;a++)r(a);return o}(o)})}return e.registerId=function(e){return wt(e)},e.prototype.rehydrate=function(){!this.server&&Se&&Lt(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new $t(n):t?new Bt(n):new Mt(n)}(this.options),new bt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(wt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(wt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(wt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),At=/&/g,Et=/^\s*\/\/.*$/gm;function Dt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Dt(e.children,t)),e})}var Rt=new It,Vt=function(){var e,t,n,o=Oe,r=o.options,a=void 0===r?Oe:r,l=o.plugins,i=void 0===l?$e:l,s=function(n,o,r){return r.startsWith(t)&&r.endsWith(t)&&r.replaceAll(t,"").length>0?".".concat(e):n},c=i.slice();c.push(function(e){e.type===T&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(At,t).replace(n,s))}),a.prefix&&c.push(_e),c.push(ye);var d=function(o,r,l,i){void 0===r&&(r=""),void 0===l&&(l=""),void 0===i&&(i="&"),e=i,t=r,n=new RegExp("\\".concat(t,"\\b"),"g");var s=o.replace(Et,""),d=me(l||r?"".concat(l," ").concat(r," { ").concat(s," }"):s);a.namespace&&(d=Dt(d,a.namespace));var u,m=[];return ve(d,function(e){var t=F(e);return function(n,o,r,a){for(var l="",i=0;i<t;i++)l+=e[i](n,o,r,a)||"";return l}}(c.concat((u=function(e){return m.push(e)},function(e){e.root||(e=e.return)&&u(e)})))),m};return d.hash=i.length?i.reduce(function(e,t){return t.name||gt(15),Fe(e,t.name)},5381).toString():"",d}(),Ht=t.createContext({shouldForwardProp:void 0,styleSheet:Rt,stylis:Vt});function Ft(){return t.useContext(Ht)}Ht.Consumer,t.createContext(void 0);var zt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Vt);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,pt(this,function(){throw gt(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Vt),this.name+e.hash},e}(),Zt=function(e){return e>="A"&&e<="Z"};function Ut(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Zt(o)?t+="-"+o.toLowerCase():t+=o}return t.sta