@wavv/ui 2.0.0-alpha.7 → 2.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/Table/Body.d.ts +12 -0
- package/build/cjs/types/components/Table/LoadingRow.d.ts +5 -0
- package/build/cjs/types/components/Table/Row.d.ts +2 -2
- package/build/cjs/types/components/Table/SortCaret.d.ts +6 -0
- package/build/cjs/types/components/Table/Table.d.ts +11 -4
- package/build/cjs/types/components/componentTypes.d.ts +2 -2
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/Table/Body.d.ts +12 -0
- package/build/esm/types/components/Table/LoadingRow.d.ts +5 -0
- package/build/esm/types/components/Table/Row.d.ts +2 -2
- package/build/esm/types/components/Table/SortCaret.d.ts +6 -0
- package/build/esm/types/components/Table/Table.d.ts +11 -4
- package/build/esm/types/components/componentTypes.d.ts +2 -2
- package/build/index.d.ts +13 -6
- package/build/types/components/Table/Body.d.ts +12 -0
- package/build/types/components/Table/LoadingRow.d.ts +5 -0
- package/build/types/components/Table/Row.d.ts +2 -2
- package/build/types/components/Table/SortCaret.d.ts +6 -0
- package/build/types/components/Table/Table.d.ts +11 -4
- package/build/types/components/componentTypes.d.ts +2 -2
- package/package.json +1 -1
package/build/cjs/index.js
CHANGED
|
@@ -50,5 +50,5 @@ prismjs/prism.js:
|
|
|
50
50
|
(c) Sindre Sorhus
|
|
51
51
|
@license MIT
|
|
52
52
|
*/
|
|
53
|
-
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}return l}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,l,s,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,c,typeof e[c]),d=e[c](n,c,s,l,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",l,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?l(e,t):function(e,t,n){return!(10===u(e).length&&!n||i(t))}(e,n,r)?s(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var l=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var l=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+l+i.substring(r)}var s=f(e,i,t,o);return{phoneNumber:d(i),cursorPosition:s}},s=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=c(e,n,t)),a(t)||(o=c(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},c=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=u(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},f=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return d(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var l=/[^0-9]/g;if(a(n)&&l.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&l.test(e[n.start-1]))return n.start-1}var s=e.substring(n.end).match(/[0-9]/g),u=s?s.length:0,c=d(t),f=p(c,u);return c.length-f},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var Ble=zle.exports;const Fle=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(un,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(un,Object.assign({},n,r))},Kle=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:u,description:c,isLoading:d,search:f,phone:p,textOnly:h,iconLeft:g,iconRight:m,invalid:v,borderRadius:y,borderColor:b,backgroundColor:w,fontSize:x,width:C,height:S,margin:k,marginLeft:E,marginRight:O,marginTop:D,marginBottom:_,padding:j,paddingLeft:P,paddingRight:T,paddingTop:M,paddingBottom:A,containerRef:R,value:L,disabled:I,readOnly:N,preventFocus:$,pointer:z,hideControls:B,onChange:F,onClick:K,onClear:V,onFocus:H,onBlur:U}=r,W=l(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:Z,handleFocus:q,handleBlur:G}=ale(H,U,!$&&!N),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:k,marginTop:D,marginBottom:_,marginRight:O,marginLeft:E},ne={padding:j,paddingTop:M,paddingBottom:A,paddingRight:T,paddingLeft:P};t.useLayoutEffect((()=>{if(h&&(null==ee?void 0:ee.current)){const{current:e}=ee;L&&(e.innerHTML=L.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,L,s,ee]);const re=h?L||s:L,oe=(!!L||"number"==typeof L)&&V&&!d;t.useEffect((()=>{var e,t;if(p&&"string"==typeof L&&10===L.length&&L===Ble.normalize(L)){const{current:n}=Y;if(n){const r=Ble.format(L),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[L]);const ie=()=>{Z||q()},ae=()=>{Z&&G()},le=()=>{ie(),(null==Y?void 0:Y.current)&&Y.current.select()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:Z,select:le}))),t.useEffect((()=>{var e;Z&&(null===(e=Y.current)||void 0===e||e.focus())}),[Z]);return e.jsxs(sle,Object.assign({ref:R,invalid:v,textOnly:h,borderRadius:y,borderColor:b,backgroundColor:w,width:C,height:S,focused:Z,disabled:I,hasLabel:!!a,onClick:e=>{$||N||ie(),K&&K(e)},pointer:z,readOnly:N},te,ne,{children:[f&&e.jsx(un,{name:"search",marginRight:8,inheritColor:!0}),g&&Fle(g,{marginRight:8}),e.jsxs(ule,{readOnly:N||$,children:[h&&e.jsx(Ule,{ref:ee,fontSize:x,children:re}),a&&!h&&e.jsx(cle,{htmlFor:i||a,filled:lle(L),focused:Z,disabled:I,children:a}),e.jsx(Vle,Object.assign({id:i||a,ref:Y,value:L,placeholder:s,placeholderColor:u,onChange:e=>{if(p){const{value:t}=e.target,n=Ble.normalize(t);if(n.length>10)return;const r=Ble.format(n);F&&F(e,r,n)}else F&&F(e)},onFocus:q,onBlur:G,disabled:I,hide:!(lle(L)||!a||Z||h),width:J,fontSize:x,hideControls:B},W))]}),m&&Fle(m),d&&e.jsx(Px,{}),oe&&e.jsx(Hle,{onClick:V,children:e.jsx(un,{name:"close-circle-outline",color:X.brand})}),c&&e.jsx(dle,{invalid:v,children:c})]}))})),Vle=U.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),Hle=U.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),Ule=U.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Wle=U("div",{shouldForwardProp:e=>fx(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Zle=U("div",{shouldForwardProp:e=>fx(e,["selected","noSelect","contentPosition","color","accented","section"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),qle=({id:n,children:o,containerRef:i,parentSelector:a,width:l,maxHeight:s=200,offsetY:u,offsetX:c,centerY:d,centerX:f,direction:p})=>{const[h,g]=t.useState(),m=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||m;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<s?n:s)+((r?c:u)||4))}}),[i,p]);const v=e.jsx(Gle,{id:n,ref:i||m,offsetX:c,offsetY:u,width:l,maxHeight:s,centerY:d,centerX:f,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(v,e):v}return v};qle.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:u,accented:c,section:d}=t,f=l(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(Zle,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:d,noSelect:d||a,contentPosition:s,color:u,accented:c,tabIndex:a?-1:0},f,{children:n}))};const Gle=U(Wle)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Yle=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Xle=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Qle,{children:n.header}),e.jsx(ese,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),Jle=(n,r,o,i,a)=>{const{selected:s}=a,u=((t,n,r,o)=>{if(t&&t.length>0)return Yle(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(qle.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:Xle(t)},t.id)}));return[]})(n,o,i,l(a,["selected"])),c=((e,n,r)=>e?Mle(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Mle([...u,...c]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Qle=U.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),ese=U.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),tse=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),nse=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:u,onBlur:c,onError:d,placeholder:f,placeholderColor:p,value:h,options:g,children:m,borderColor:v,backgroundColor:y,hideIcon:b,clearOnSelect:w,textOnly:x,width:C,height:S,isLoading:k,margin:E,marginTop:O,marginBottom:D,marginRight:_,marginLeft:j,label:P,id:T,name:M,trigger:A,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,fontSize:z,description:B,disabled:F,invalid:K,search:V,filter:H,restrictInput:U,inputRef:W,optionsParent:Z}=r,q=l(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[G,Y]=t.useState(""),[X,J]=t.useState(""),[Q,ee]=t.useState(!1),[te,ne]=t.useState(!1),[re,oe]=t.useState(!1),ie=t.useRef(null),{input:ae}=n.useTheme(),le={margin:E,marginTop:O,marginBottom:D,marginRight:_,marginLeft:j},se=e=>{e&&e.stopPropagation(),!Q&&a&&a(),Q&&s&&s(),ee((e=>!e))};t.useEffect((()=>{var e;if(Q&&V){null===(e=(W||ie).current)||void 0===e||e.focus()}}),[Q,V]),t.useEffect((()=>{d&&d(re)}),[re]),t.useEffect((()=>{i&&i(X)}),[X]);const ue=rt(se,Q,Z?[Z,`${Z} *`]:void 0),ce=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ge().find((t=>{let n=ce(t.label,e);return!n&&"id"in t&&(n=ce(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=ce(t.value,e)),n}));return t},fe=e=>"function"==typeof U?!U(e):U,pe=e=>he(null,e),he=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(fe(e))return de(e)||null;return{id:$le(),label:e,value:e}})(e);const t=fe(e);null===n&&t&&(r=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}Q&&se(t),Y((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?oe(!0):(re&&oe(!1),w&&Y(""),J(""))};t.useEffect((()=>{""!==h&&null!=h||pe()}),[h]);const ge=()=>{const e=Mle(m).map((e=>{const t=e;let n=t.props.displayText||"";return!P&&t.props.children&&(n=tse(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Yle(g||[],{search:V,filter:H,inputText:X}),...e]},me={options:ge(),select:he,open:se,close:se,searchText:V?X:void 0,isOpen:Q,isFocused:te},[ve,ye]=ut(me),be=Jle(g||[],m,he,se,{selected:ve,search:V,filter:H,inputText:X}),we=Q?"caret-up":"caret-down",xe=x&&!F?p||ae.color.default:void 0,Ce=l(q,["onClear","phone"]);return e.jsx(rse,Object.assign({textOnly:x,altTrigger:!!A,width:C,height:S,focused:te,search:V},le,{children:e.jsxs(ose,{ref:ue,children:[A?e.jsx(ise,{id:T,onClick:se,tabIndex:0,onFocus:()=>ne(!0),onBlur:()=>ne(!1),children:A}):e.jsx(lse,{shake:re,children:e.jsx(Kle,Object.assign({},Ce,{ref:W||ie,id:T,name:M,label:P,fontSize:z,pointer:!0,preventFocus:!V,value:X||h||G,placeholder:f||"Select",placeholderColor:xe,iconRight:b||k?void 0:we,borderColor:v,backgroundColor:y,isLoading:k,textOnly:x,description:B,disabled:F,invalid:re||K,onClick:se,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(W||ie).current)||void 0===t?void 0:t.hasFocus;V?(J(n),!Q&&r&&ee(!0),re&&oe(!1)):n||pe(e);const o=de(n),i=fe(n),a=""===n||i&&!r;o&&!(V&&(!i||r))?he(o,e):V&&!a||pe(e)},onFocus:e=>{ne(!0),u&&u(e)},onBlur:e=>{var t;if(ne(!1),c&&c(e),V&&X&&e){const{relatedTarget:n}=e;(null===(t=null==ye?void 0:ye.current)||void 0===t?void 0:t.contains(n))||he(X,e)}}}))}),Q&&be.length>0&&e.jsx(qle,{containerRef:ye,parentSelector:Z,width:!A&&!x||Z?"100%":void 0,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,children:be})]})}))};nse.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:u,id:c,section:d})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:c,label:n||tse(i)||"",value:t};r&&r(o,e)};return e.jsx(qle.Item,{id:c,contentPosition:a,color:l,onClick:f,accented:s,section:d,children:i})};const rse=U.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),rn,an),ose=U.div({position:"relative",width:"100%",height:"inherit"}),ise=U.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),ase=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),lse=U.div((({shake:e})=>({"& input":{animation:e?`${ase} .5s linear`:void 0}}))),sse=U.div({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},on,an),use=U.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:u,width:c,height:d})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:l,justifyItems:u,alignContent:a,justifyContent:s,width:c,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),on,an);use.Item=U.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})),on,an);const cse=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f}=t,p=l(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};return e.jsxs(VQ,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(UQ,{children:r}),e.jsx(HQ,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(un,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},dse=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:u,margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,g=l(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[m,v]=t.useState("toggle-off"),[y,b]=t.useState(a||!1),w="right"===i,x={margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h};return t.useEffect((()=>{v(y?"toggle-on":"toggle-off")}),[y]),t.useEffect((()=>{b("boolean"==typeof a?a:y)}),[a,y]),e.jsxs(VQ,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(UQ,{children:o}),e.jsx(HQ,Object.assign({id:r,type:"checkbox",checked:y,disabled:s,onChange:()=>{const e=!y;b(e),u(e)}},g)),e.jsx(un,{name:m,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},fse=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=l(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(pse,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&Fle(r,{marginRight:4,size:"small"}),n,o&&Fle(o,{marginLeft:4,size:"small"})]}))},pse=U.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),an),hse=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(gse,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};hse.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(mse,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},hse.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=l(t,["children","inline","align","disabled"]);return e.jsx(vse,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},hse.Input=Kle,hse.Dropdown=nse,hse.Radio=cse,hse.Toggle=dse,hse.Checkbox=WQ,hse.Label=fse;const gse=U(use)({boxSizing:"border-box"}),mse=U(use)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),vse=U.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),an),yse=U.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),bse=U.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),wse=U.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),xse=U.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Cse=U.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),Sse=U(Wb)((({theme:e,placeholderColor:t})=>({outline:"none",borderRadius:4,padding:"0 2px","&[data-focused]":{backgroundColor:e.calendar.background.activeRange},"&[data-placeholder]":{color:t||e.input.color.placeholder}}))),kse=({description:t,errorMessage:n})=>t||n?e.jsxs(Ese,{children:[t&&!n&&e.jsx(Ose,{slot:"description",children:t}),n&&e.jsx(Dse,{children:n})]}):null,Ese=U.div({position:"absolute",left:0,top:"100%"}),Ose=U(Rm)((({theme:e})=>({color:e.input.color.description,fontSize:e.font.size.sm}))),Dse=U(By)((({theme:e})=>({color:e.input.color.descriptionError,fontSize:e.font.size.sm}))),_se=U(kx)((({theme:{input:e,accent:t},isDisabled:n})=>({color:n?e.labelColor.disabled:e.labelColor.default,outline:"none","&[data-focused]":{outline:`${t} solid 1px`}}))),jse=IQ(),Pse=U(Jb)(X1),Tse=U(Hb,q1)({display:"flex"},G1),Mse=IQ(),Ase=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:s,noShadow:u}=n,c=l(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=t.useRef(r?$Q(r):Mse),{current:f}=t.useRef(o?$Q(o):d),[p,h]=t.useState(d),[g,m]=t.useState(f),{min:v,max:y}=zQ({past:a,future:s,rel:d});return e.jsxs(Rse,Object.assign({value:{start:p,end:g},onChange:e=>{const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:u}=n,c=new zl(r,o,a);h(c);const d=new zl(l,s,u);m(d);const f=NQ(t),p=NQ(n);i&&i(f,p)},minValue:v,maxValue:y,noShadow:u},c,{children:[e.jsx(MQ,{}),e.jsx(DQ,{range:!0})]}))},Rse=U(Oy)(OQ),Lse=IQ(),Ise=U(ew)(X1),Nse=U(Hb,q1)(G1,{display:"flex","&:first-of-type":{marginRight:0}}),$se=U(Sb,q1)((({theme:{input:e,font:t},hide:n,fontSize:r,isDisabled:o})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:o?e.color.disabled:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),zse=U(xw)(X1),Bse=U.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder}))),Fse=U(kx)((({theme:e})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden","&:hover":{backgroundColor:e.scale1},"&:active":{backgroundColor:e.scale0}}))),Kse=U.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),Vse=U(dx)(X1),Hse=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e.jsx(Use,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?Mle(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),Use=U.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u})),on),Wse=U.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),Zse=U.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),qse=U.div({marginLeft:"auto",marginRight:8});Hse.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e.jsx(Wse,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),Hse.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:l,onClick:s,id:u,children:c,indent:d=1,backgroundColor:f})=>{const[p,h]=t.useState(r||i),g=e=>Mle(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:f})}return null})),m=g(c),v=()=>h((e=>!e));return e.jsxs(Zse,{backgroundColor:f,children:[e.jsxs(Wse,{vertical:o,selected:i||!1,disabled:a,contentPosition:l,onClick:e=>{s?(s(e),p||v()):v()},id:u,role:"menuitem",indent:d,children:[n,e.jsx(qse,{onClick:e=>{e.stopPropagation(),v()},children:e.jsx(un,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&m]})};const Gse=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d,children:f})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:m}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),v={margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d};return e.jsxs(Jse,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e.jsx(un,{name:h,style:{marginRight:10},color:g}),e.jsx(Qse,{children:r||f}),o&&e.jsx(un,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},Yse=U.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Xse=U.div((({theme:e})=>({fontWeight:e.font.weight.default})));Gse.Header=Yse,Gse.Body=Xse;const Jse=U.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),an),Qse=U.div({width:"100%"}),eue=U.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),tue=U.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),nue=U.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),rue=({children:n,rootSelector:o,visible:i,width:a,height:l,onClose:s,closeIcon:u,preventOverlayClose:c,overlayBlur:d,overlayColor:f,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:_})=>{const j=rt(c?()=>null:s,i),P={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},T=Mle(n).map((e=>e?t.cloneElement(e,{inline:h}):null)),M=e.jsx(aue,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:_,blur:d,children:e.jsxs(oue,Object.assign({ref:j,width:a,height:l,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},P,{children:[T,u&&e.jsx(iue,{inline:h,children:e.jsx(un,{name:"close",onClick:s,pointer:!0})})]}))}),A=document.querySelector(o||"#root");return i&&A?r.createPortal(M,A):null};rue.Header=U.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),rue.Text=U.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),rue.Body=U.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),an),rue.Footer=U.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),an);const oue=U.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),on),iue=U.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),aue=U.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:u,zIndex:c})=>({position:i||"absolute",top:a||(u||l||s?void 0:0),left:u||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:c||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),lue=t.forwardRef(((o,i)=>{var{children:a,options:s,items:u,listLabel:c,listText:d,itemsTitle:f,maxItems:p,placeholder:h,width:g,filter:m,restrictInput:v,disabled:y,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:S,addItem:k,removeItem:E,onTextChange:O,autoFocus:D}=o,_=l(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,P]=t.useState(D||!1),[T,M]=t.useState(!1),[A,R]=t.useState(""),{color:L,font:I,input:N}=n.useTheme(),$=rt((()=>P(!1)),j,w?[w,`${w} *`]:void 0),z=t.useRef(null),B=x&&!!c,F=e=>{e&&k(e)},K=()=>{const{current:e}=z;j||c||P(!0),null==e||e.focus()},V=()=>{const{current:e}=z;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:K,blur:V})));const H=e=>{R(e),O&&O(e)};t.useEffect((()=>{j||V()}),[j]);nt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(u.length>0){e.preventDefault();const t=u[u.length-1];E(t)}}),j&&!A,[u]);const U=s.filter((e=>!u.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${$le()}`),[]),Z=t.useMemo((()=>`multi-select-list-${$le()}`),[]),q=p?u.length>=p:void 0,G=y||!j||q,Y=()=>{const t=e.jsxs(due,{id:Z,expanded:j,padTop:j&&u.length>0,labeled:!!c,children:[d&&e.jsx(fue,{expanded:j,labeled:!!c,children:d}),a?a(j,!!y):u.map((t=>e.jsx(fse,{pill:!0,iconRight:j&&!y?e.jsx(un,{name:"close-circle",onClick:()=>E(t),pointer:!0}):void 0,disabled:y,children:t.label},t.id))),e.jsx(nse,Object.assign({},_,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:m,backgroundColor:"transparent",restrictInput:v,options:U,fontSize:I.size.md,placeholder:y||u.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:z,onChange:F,onTextChange:H,onError:e=>M(e),disabled:G,optionsParent:w?`#${Z}`:`#${W}`,autoFocus:D}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(sue,{width:g,ref:$,labeled:!!c,disabled:y,collapse:B,onClick:e=>{e.stopPropagation(),K()},children:[e.jsxs(uue,{collapse:B,id:W,expanded:j&&u.length>0,error:T,labeled:!!c,backgroundColor:C,borderless:S,children:[c?e.jsx(cue,{collapse:B,children:c}):Y(),e.jsxs(pue,{children:[p&&!b&&e.jsx(gue,{children:y&&f?e.jsxs(e.Fragment,{children:[u.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(hue,{error:u.length>=p,children:u.length}),"/",p," ",f]})}),u.length>0&&e.jsx(un,{name:j?"chevron-up":"chevron-down",color:L.brand,pointer:!0,onClick:e=>{e.stopPropagation(),P(!j)}})]})]}),c&&j&&Y()]})})),sue=U.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),uue=U.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),cue=U.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),due=U.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),fue=U.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),pue=U.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),hue=U.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),gue=U.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),mue=e=>e?+e:0,vue=U.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),an),yue=U.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),bue=U(yue)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),wue=U(yue)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),xue=U.span((({theme:e})=>({color:e.scale6}))),Cue=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u})=>{const c={margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u},d=(n-r)/2,f=d*Math.PI*2,p=f-f*t/100,h=n/2;return e.jsxs(Sue,Object.assign({size:n},c,{children:[e.jsx(kue,{cx:h,cy:h,r:d,thickness:r}),e.jsx(Eue,{color:o,cx:h,cy:h,r:d,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:f,complete:p})]}))},Sue=U.svg((({size:e})=>({display:"block",width:e,height:e})),an),kue=U.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),Eue=U(kue)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),Oue=U.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),an),Due=U.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),_ue=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:s,options:u,placeholder:c="Select",placeholderColor:d,textOnly:f,value:p,width:h,onChange:g,afterShow:m,afterHide:v}=n,y=l(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","onChange","afterShow","afterHide"]);const[b,w]=t.useState(!1),[x,C]=t.useState(p||""),{margin:S,marginTop:k,marginBottom:E,marginRight:O,marginLeft:D}=y,_={margin:S,marginTop:k,marginBottom:E,marginRight:O,marginLeft:D};t.useEffect((()=>{p&&p!==x&&C(p)}),[p,x]);const j=!x&&s;return e.jsxs(Ew,Object.assign({placeholder:c,onOpenChange:e=>{w(e),m&&e&&m(),v&&!e&&v()},onSelectionChange:e=>{C(e),g&&g(e)},isDisabled:a,selectedKey:p?x:void 0},y,{children:[e.jsxs(jue,Object.assign({backgroundColor:r,textOnly:f,width:h,hasLabel:!!s,isDisabled:a,pointer:!0},_,{children:[e.jsxs(J1,{filled:!!x,disabled:a,children:[s,e.jsx(Pue,{fontSize:i,placeholderColor:d,isDisabled:a,style:({isPlaceholder:e})=>e&&j?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),e.jsx(un,{name:b?"caret-up":"caret-down",inheritColor:!0})]})),e.jsx(By,{}),e.jsx(Db,{offset:2,children:e.jsxs(Q1,{autoWidth:f,shouldFocusWrap:!0,children:[null==u?void 0:u.map((t=>e.jsx(e0,Object.assign({},t),t.id||t.value))),o]})})]}))};_ue.Item=e0,_ue.Section=r0;const jue=U(Tm)(X1),Pue=U(_w)((({theme:{input:e,font:t},fontSize:n,placeholderColor:r,isDisabled:o})=>({color:o?e.color.disabled:e.color.default,fontFamily:t.family.default,fontSize:n||t.size.lg,"&[data-placeholder]":{color:r||(o?e.color.disabled:e.color.placeholder)}}))),Tue=U.div(rn),Mue=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},Aue=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:Mue(t),alignItems:Mue(n),flexDirection:e,gap:r})],Rue=U(qw)((({showDefault:e})=>e&&{opacity:.3}),on),Lue=U.div(Aue),Iue=U(tx)((({theme:e})=>({width:9,height:18,backgroundColor:e.scale4,marginLeft:"auto",backgroundClip:"content-box",border:"4px transparent",borderStyle:"none solid","&[data-resizable-direction=both]":{cursor:"col-resize"},"&[data-resizable-direction=left]":{cursor:"e-resize"},"&[data-resizable-direction=right]":{cursor:"w-resize"},"&[data-focus-visible]":{backgroundColor:e.accent}}))),Nue=t.createContext({}),$ue=U(Kw)((({theme:e,sorting:t})=>({textAlign:"left",verticalAlign:"middle",cursor:t?"pointer":void 0,color:e.table.color.header,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,"&:hover":{color:t?e.scale8:void 0},"&[data-sort-direction]":{color:e.scale10}})),on),zue=U.div(Aue),Bue=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,Fue=e=>{const t={top:0,right:0,bottom:0,left:0},{padding:n,paddingTop:r,paddingRight:o,paddingBottom:i,paddingLeft:a}=e;if(n){const e=("string"==typeof n?n:n.toString()).split(" ").map(Bue);switch(e.length){case 1:t.top=t.right=t.bottom=t.left=e[0];break;case 2:t.top=t.bottom=e[0],t.right=t.left=e[1];break;case 3:t.top=e[0],t.right=t.left=e[1],t.bottom=e[2];break;case 4:t.top=e[0],t.right=e[1],t.bottom=e[2],t.left=e[3]}}return void 0!==r&&(t.top=Bue(r)),void 0!==o&&(t.right=Bue(o)),void 0!==i&&(t.bottom=Bue(i)),void 0!==a&&(t.left=Bue(a)),t},Kue=U(Bw)((({theme:e,padding:t="8px 24px",paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i,backgroundColor:a})=>{const l=Fue({padding:t,paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i}),{top:s,right:u,bottom:c,left:d}=l;return{"& > tr > th":{padding:0,outline:"none",backgroundColor:a||e.background0,position:"sticky",top:0,"&:focus-visible":{outline:`${e.accent} solid 1px`}},"& > tr > th > div":{paddingTop:`${s}px`,paddingBottom:`${c}px`},"& > tr > th:first-of-type > div":{paddingLeft:`${d}px`},"& > tr > th:last-of-type > div":{paddingRight:`${u}px`}}})),Vue=U(Ww)((({theme:e,backgroundColor:t,isDisabled:n})=>({color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",opacity:n?.3:1,backgroundColor:t,borderTop:`1px solid ${e.table.borderColor}`,outline:"none",transition:"background-color 0.2s"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"},"&:focus-visible":{backgroundColor:e.scale1}}),(({theme:e,padding:t="16px 24px",paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i,emphasis:a})=>{const l=Fue({padding:t,paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i}),{top:s,right:u,bottom:c,left:d}=l;let f;return!0===a?f=e.color.brand:"string"==typeof a&&(f=a),{"& > td":{padding:0,outline:"none","&:focus-visible":{outline:`${e.accent} solid 1px`}},"& > td > div":{paddingTop:`${s}px`,paddingBottom:`${c}px`},"& > td:first-of-type > div":{paddingLeft:d-2+"px",borderLeft:"2px solid transparent",borderLeftColor:f},"& > td:last-of-type > div":{paddingRight:`${u}px`}}})),Hue=n=>{var{children:r,data:o}=n,i=l(n,["children","data"]);const[a,s]=t.useState(o),[u,c]=t.useState(),d=o&&"function"==typeof r?r(a):r;t.useEffect((()=>{let e=o;if(u){const{key:t,dir:n}=u;e=lt.orderBy(o,t,n)}lt.isEqual(e,a)||s(e)}),[o,u]);const f=t.useMemo((()=>({activeColumn:u,setActiveColumn:c})),[u,c]);return e.jsx(Nue.Provider,{value:f,children:e.jsx(Uue,{children:e.jsx(Wue,Object.assign({},i,{children:d}))})})};Hue.Header=Kue,Hue.Column=r=>{var{children:o,sortKey:i,sorted:a,onClick:s,resize:u,direction:c,justify:d,align:f,gap:p}=r,h=l(r,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[g,m]=t.useState(a||"inactive"),{color:v}=n.useTheme(),{activeColumn:y,setActiveColumn:b}=t.useContext(Nue),w=i||a,x="desc"===g?"arrow-down":"arrow-up",C="asc"===g||"desc"===g,S={direction:c,justify:d,align:f,gap:p},k=e=>{if(m(e),b&&i){b("inactive"===e?void 0:{key:i,dir:e})}};return t.useEffect((()=>{!i||"asc"!==a&&"desc"!==a||k(a)}),[]),t.useEffect((()=>{a&&m(a)}),[a]),t.useEffect((()=>{const e=!y&&a;i&&y&&y.key!==i&&"inactive"!==g&&!e&&m("inactive")}),[y,g]),e.jsx($ue,Object.assign({sorting:!!w},h,{children:e.jsxs(zue,Object.assign({onClick:w||s?e=>{i?k("inactive"===g?"asc":"asc"===g?"desc":"inactive"):s&&s(e)}:void 0},S,{children:[e.jsx(sse,{children:o}),w&&e.jsx("span",{"aria-hidden":"true",children:e.jsx(un,{name:x,size:"small",color:C?v.brand:void 0,inheritColor:!C})}),u&&e.jsx(Iue,{})]}))}))},Hue.Body=Hw,Hue.Row=t=>{var{children:n,onClick:r,disabled:o}=t,i=l(t,["children","onClick","disabled"]);return e.jsx(Vue,Object.assign({isDisabled:o,onAction:r&&!o?r:void 0,hoverEffect:!!r&&!o},i,{children:n}))},Hue.Cell=t=>{var{children:n,defaultValue:r,direction:o,justify:i,align:a,gap:s}=t,u=l(t,["children","defaultValue","direction","justify","align","gap"]);const c={direction:o,justify:i,align:a,gap:s},d=n||r;return e.jsx(Rue,Object.assign({showDefault:!!r&&!n},u,{children:e.jsx(Lue,Object.assign({},c,{children:"string"==typeof d?e.jsx(sse,{paddingRight:2,children:d}):d}))}))};const Uue=U(Mw)((({theme:e,backgroundColor:t})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:"100%",backgroundColor:t||e.background0}))),Wue=U(Nw)(an,on),Zue=U.div((({gap:e=8})=>({display:"flex",gap:e})),an),que=U.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"})));const Gue="dismissableLayer.update",Yue="dismissableLayer.pointerDownOutside",Xue="dismissableLayer.focusOutside";let Jue;const Que=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ece=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=t.useContext(Que),[f,p]=t.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=t.useState({}),m=Y(n,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,S=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(e),o=t.useRef(!1),i=t.useRef((()=>{}));return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){nce(Yue,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(null==a||a(e),null==s||s(e),e.defaultPrevented||null==u||u())}),h),k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){nce(Xue,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==u||u())}),h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(e);t.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{w===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),h),t.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Jue=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),tce(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Jue)}}),[f,h,o,d]),t.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),tce())}),[f,d]),t.useEffect((()=>{const e=()=>g({});return document.addEventListener(Gue,e),()=>document.removeEventListener(Gue,e)}),[]),t.createElement(ae.div,X({},c,{ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,k.onFocusCapture),onBlurCapture:re(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,S.onPointerDownCapture)}))}));function tce(){const e=new CustomEvent(Gue);document.dispatchEvent(e)}function nce(e,t,n,{discrete:o}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?function(e,t){e&&r.flushSync((()=>e.dispatchEvent(t)))}(i,a):i.dispatchEvent(a)}const rce=["top","right","bottom","left"],oce=Math.min,ice=Math.max,ace=Math.round,lce=Math.floor,sce=e=>({x:e,y:e}),uce={left:"right",right:"left",bottom:"top",top:"bottom"},cce={start:"end",end:"start"};function dce(e,t,n){return ice(e,oce(t,n))}function fce(e,t){return"function"==typeof e?e(t):e}function pce(e){return e.split("-")[0]}function hce(e){return e.split("-")[1]}function gce(e){return"x"===e?"y":"x"}function mce(e){return"y"===e?"height":"width"}function vce(e){return["top","bottom"].includes(pce(e))?"y":"x"}function yce(e){return gce(vce(e))}function bce(e){return e.replace(/start|end/g,(e=>cce[e]))}function wce(e){return e.replace(/left|right|bottom|top/g,(e=>uce[e]))}function xce(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Cce(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Sce(e,t,n){let{reference:r,floating:o}=e;const i=vce(t),a=yce(t),l=mce(a),s=pce(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(hce(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function kce(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=fce(t,e),h=xce(p),g=l[f?"floating"===d?"reference":"floating":d],m=Cce(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=Cce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}function Ece(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Oce(e){return rce.some((t=>e[t]>=0))}const Dce=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=pce(n),l=hce(n),s="y"===vce(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=fce(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}};function _ce(e){return Tce(e)?(e.nodeName||"").toLowerCase():"#document"}function jce(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Pce(e){var t;return null==(t=(Tce(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Tce(e){return e instanceof Node||e instanceof jce(e).Node}function Mce(e){return e instanceof Element||e instanceof jce(e).Element}function Ace(e){return e instanceof HTMLElement||e instanceof jce(e).HTMLElement}function Rce(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof jce(e).ShadowRoot)}function Lce(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Bce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ice(e){return["table","td","th"].includes(_ce(e))}function Nce(e){const t=$ce(),n=Bce(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function $ce(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function zce(e){return["html","body","#document"].includes(_ce(e))}function Bce(e){return jce(e).getComputedStyle(e)}function Fce(e){return Mce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Kce(e){if("html"===_ce(e))return e;const t=e.assignedSlot||e.parentNode||Rce(e)&&e.host||Pce(e);return Rce(t)?t.host:t}function Vce(e){const t=Kce(e);return zce(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ace(t)&&Lce(t)?t:Vce(t)}function Hce(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Vce(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=jce(o);return i?t.concat(a,a.visualViewport||[],Lce(o)?o:[],a.frameElement&&n?Hce(a.frameElement):[]):t.concat(o,Hce(o,[],n))}function Uce(e){const t=Bce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ace(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=ace(n)!==i||ace(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Wce(e){return Mce(e)?e:e.contextElement}function Zce(e){const t=Wce(e);if(!Ace(t))return sce(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Uce(t);let a=(i?ace(n.width):n.width)/r,l=(i?ace(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const qce=sce(0);function Gce(e){const t=jce(e);return $ce()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qce}function Yce(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Wce(e);let a=sce(1);t&&(r?Mce(r)&&(a=Zce(r)):a=Zce(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==jce(e))&&t}(i,n,r)?Gce(i):sce(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=jce(i),t=r&&Mce(r)?jce(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Zce(o),t=o.getBoundingClientRect(),r=Bce(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=i,u+=a,n=jce(o),o=n.frameElement}}return Cce({width:c,height:d,x:s,y:u})}const Xce=[":popover-open",":modal"];function Jce(e){return Xce.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Qce(e){return Yce(Pce(e)).left+Fce(e).scrollLeft}function ede(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=jce(e),r=Pce(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=$ce();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Pce(e),n=Fce(e),r=e.ownerDocument.body,o=ice(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ice(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qce(e);const l=-n.scrollTop;return"rtl"===Bce(r).direction&&(a+=ice(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Pce(e));else if(Mce(t))r=function(e,t){const n=Yce(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ace(e)?Zce(e):sce(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Gce(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Cce(r)}function tde(e,t){const n=Kce(e);return!(n===t||!Mce(n)||zce(n))&&("fixed"===Bce(n).position||tde(n,t))}function nde(e,t,n){const r=Ace(t),o=Pce(t),i="fixed"===n,a=Yce(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=sce(0);if(r||!r&&!i)if(("body"!==_ce(t)||Lce(o))&&(l=Fce(t)),r){const e=Yce(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Qce(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function rde(e,t){return Ace(e)&&"fixed"!==Bce(e).position?t?t(e):e.offsetParent:null}function ode(e,t){const n=jce(e);if(!Ace(e)||Jce(e))return n;let r=rde(e,t);for(;r&&Ice(r)&&"static"===Bce(r).position;)r=rde(r,t);return r&&("html"===_ce(r)||"body"===_ce(r)&&"static"===Bce(r).position&&!Nce(r))?n:r||function(e){let t=Kce(e);for(;Ace(t)&&!zce(t);){if(Nce(t))return t;t=Kce(t)}return null}(e)||n}const ide={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Pce(r),l=!!t&&Jce(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=sce(1);const c=sce(0),d=Ace(r);if((d||!d&&!i)&&(("body"!==_ce(r)||Lce(a))&&(s=Fce(r)),Ace(r))){const e=Yce(r);u=Zce(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:Pce,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Hce(e,[],!1).filter((e=>Mce(e)&&"body"!==_ce(e))),o=null;const i="fixed"===Bce(e).position;let a=i?Kce(e):e;for(;Mce(a)&&!zce(a);){const t=Bce(a),n=Nce(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Lce(a)&&!n&&tde(e,a))?r=r.filter((e=>e!==a)):o=t,a=Kce(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=ede(t,n,o);return e.top=ice(r.top,e.top),e.right=oce(r.right,e.right),e.bottom=oce(r.bottom,e.bottom),e.left=ice(r.left,e.left),e}),ede(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ode,getElementRects:async function(e){const t=this.getOffsetParent||ode,n=this.getDimensions;return{reference:nde(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Uce(e);return{width:t,height:n}},getScale:Zce,isElement:Mce,isRTL:function(e){return"rtl"===Bce(e).direction}};function ade(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=Wce(e),c=o||i?[...u?Hce(u):[],...Hce(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&l?function(e,t){let n,r=null;const o=Pce(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-lce(c)+"px "+-lce(o.clientWidth-(u+d))+"px "+-lce(o.clientHeight-(c+f))+"px "+-lce(u)+"px",threshold:ice(0,oce(1,s))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!s&&h.observe(u),h.observe(t));let g=s?Yce(e):null;return s&&function t(){const r=Yce(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const lde=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=fce(e,t),u={x:n,y:r},c=await kce(t,s),d=vce(pce(o)),f=gce(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=dce(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=dce(h+c["y"===d?"top":"left"],h,h-c[e])}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},sde=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=fce(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=pce(o),y=pce(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=f||(y||!g?[wce(l)]:function(e){const t=wce(e);return[bce(e),t,bce(t)]}(l));f||"none"===h||w.push(...function(e,t,n,r){const o=hce(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(pce(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(bce)))),i}(l,g,h,b));const x=[l,...w],C=await kce(t,m),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=hce(e),o=yce(e),i=mce(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=wce(a)),[a,wce(a)]}(o,a,b);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,O;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(O=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},ude=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=fce(e,t),s=await kce(t,l),u=pce(n),c=hce(n),d="y"===vce(n),{width:f,height:p}=r.floating;let h,g;"top"===u||"bottom"===u?(h=u,g=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,h="end"===c?"top":"bottom");const m=p-s[h],v=f-s[g],y=!t.middlewareData.shift;let b=m,w=v;if(d){const e=f-s.left-s.right;w=c||y?oce(v,e):e}else{const e=p-s.top-s.bottom;b=c||y?oce(m,e):e}if(y&&!c){const e=ice(s.left,0),t=ice(s.right,0),n=ice(s.top,0),r=ice(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:ice(s.left,s.right)):b=p-2*(0!==n||0!==r?n+r:ice(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},cde=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=fce(e,t);switch(r){case"referenceHidden":{const e=Ece(await kce(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Oce(e)}}}case"escaped":{const e=Ece(await kce(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Oce(e)}}}default:return{}}}}},dde=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=fce(e,t)||{};if(null==u)return{};const d=xce(c),f={x:n,y:r},p=yce(o),h=mce(p),g=await a.getDimensions(u),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=C?C[b]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=l.floating[b]||i.floating[h]);const k=w/2-x/2,E=S/2-g[h]/2-1,O=oce(d[v],E),D=oce(d[y],E),_=O,j=S-g[h]-D,P=S/2-g[h]/2+k,T=dce(_,P,j),M=!s.arrow&&null!=hce(o)&&P!==T&&i.reference[h]/2-(P<_?O:D)-g[h]/2<0,A=M?P<_?P-_:P-j:0;return{[p]:f[p]+A,data:{[p]:T,centerOffset:P-T-A,...M&&{alignmentOffset:A}},reset:M}}}),fde=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=fce(e,t),c={x:n,y:r},d=vce(o),f=gce(d);let p=c[f],h=c[d];const g=fce(l,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(pce(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},pde=(e,t,n)=>{const r=new Map,o={platform:ide,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Sce(u,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:m,y:v,data:y,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=Sce(u,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},hde=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?dde({element:n.current,padding:r}).fn(t):{}:n?dde({element:n,padding:r}).fn(t):{};var o}});var gde="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function mde(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!mde(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!mde(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function vde(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yde(e,t){const n=vde(e);return Math.round(t*n)/n}function bde(e){const t=i.useRef(e);return gde((()=>{t.current=e})),t}const wde=t.forwardRef(((e,n)=>{const{children:r,width:o=10,height:i=5,...a}=e;return t.createElement(ae.svg,X({},a,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:t.createElement("polygon",{points:"0,0 30,0 15,10"}))}));const xde="Popper",[Cde,Sde]=Z(xde),[kde,Ede]=Cde(xde),Ode=t.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:o,...i}=e,a=Ede("PopperAnchor",r),l=t.useRef(null),s=Y(n,l);return t.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)})),o?null:t.createElement(ae.div,X({},i,{ref:s}))})),Dde="PopperContent",[_de,jde]=Cde(Dde),Pde=t.forwardRef(((e,n)=>{var r,o,l,s,u,c,d,f;const{__scopePopper:p,side:h="bottom",sideOffset:g=0,align:m="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...O}=e,D=Ede(Dde,p),[_,j]=t.useState(null),P=Y(n,(e=>j(e))),[T,M]=t.useState(null),A=function(e){const[n,r]=t.useState(void 0);return le((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}(T),R=null!==(r=null==A?void 0:A.width)&&void 0!==r?r:0,L=null!==(o=null==A?void 0:A.height)&&void 0!==o?o:0,I=h+("center"!==m?"-"+m:""),N="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},$=Array.isArray(w)?w:[w],z=$.length>0,B={padding:N,boundary:$.filter(Rde),altBoundary:z},{refs:F,floatingStyles:K,placement:V,isPositioned:H,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:s}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=i.useState(r);mde(h,r)||g(r);const[m,v]=i.useState(null),[y,b]=i.useState(null),w=i.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),x=i.useCallback((e=>{e!==E.current&&(E.current=e,b(e))}),[]),C=l||m,S=s||y,k=i.useRef(null),E=i.useRef(null),O=i.useRef(f),D=null!=c,_=bde(c),j=bde(o),P=i.useCallback((()=>{if(!k.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};j.current&&(e.platform=j.current),pde(k.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!mde(O.current,t)&&(O.current=t,a.flushSync((()=>{p(t)})))}))}),[h,t,n,j]);gde((()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const T=i.useRef(!1);gde((()=>(T.current=!0,()=>{T.current=!1})),[]),gde((()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(_.current)return _.current(C,S,P);P()}}),[C,S,P,_,D]);const M=i.useMemo((()=>({reference:k,floating:E,setReference:w,setFloating:x})),[w,x]),A=i.useMemo((()=>({reference:C,floating:S})),[C,S]),R=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=yde(A.floating,f.x),r=yde(A.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...vde(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,A.floating,f.x,f.y]);return i.useMemo((()=>({...f,update:P,refs:M,elements:A,floatingStyles:R})),[f,P,M,A,R])}({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>ade(...e,{animationFrame:"always"===k}),elements:{reference:D.anchor},middleware:[Dce({mainAxis:g+L,alignmentAxis:v}),b&&lde({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?fde():void 0,...B}),b&&sde({...B}),ude({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),T&&hde({element:T,padding:y}),Lde({arrowWidth:R,arrowHeight:L}),S&&cde({strategy:"referenceHidden",...B})]}),[W,Z]=Ide(V),q=oe(E);le((()=>{H&&(null==q||q())}),[H,q]);const G=null===(l=U.arrow)||void 0===l?void 0:l.x,J=null===(s=U.arrow)||void 0===s?void 0:s.y,Q=0!==(null===(u=U.arrow)||void 0===u?void 0:u.centerOffset),[ee,te]=t.useState();return le((()=>{_&&te(window.getComputedStyle(_).zIndex)}),[_]),t.createElement("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:H?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(c=U.transformOrigin)||void 0===c?void 0:c.x,null===(d=U.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:e.dir},t.createElement(_de,{scope:p,placedSide:W,onArrowChange:M,arrowX:G,arrowY:J,shouldHideArrow:Q},t.createElement(ae.div,X({"data-side":W,"data-align":Z},O,{ref:P,style:{...O.style,animation:H?void 0:"none",opacity:null!==(f=U.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),Tde="PopperArrow",Mde={top:"bottom",right:"left",bottom:"top",left:"right"},Ade=t.forwardRef((function(e,n){const{__scopePopper:r,...o}=e,i=jde(Tde,r),a=Mde[i.placedSide];return t.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},t.createElement(wde,X({},o,{ref:n,style:{...o.style,display:"block"}})))}));function Rde(e){return null!==e}const Lde=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Ide(l),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?g:`${m}px`,b=-f+"px"):"top"===p?(y=c?g:`${m}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?g:`${v}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?g:`${v}px`),{data:{x:y,y:b}}}});function Ide(e){const[t,n="center"]=e.split("-");return[t,n]}const Nde=e=>{const{__scopePopper:n,children:r}=e,[o,i]=t.useState(null);return t.createElement(kde,{scope:n,anchor:o,onAnchorChange:i},r)},$de=Ode,zde=Pde,Bde=Ade,Fde=t.forwardRef(((e,n)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=e;return i?r.createPortal(t.createElement(ae.div,X({},a,{ref:n})),i):null})),Kde=t.forwardRef(((e,n)=>t.createElement(ae.span,X({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[Vde,Hde]=Z("Tooltip",[Sde]),Ude=Sde(),Wde=700,Zde="tooltip.open",[qde,Gde]=Vde("TooltipProvider"),Yde="Tooltip",[Xde,Jde]=Vde(Yde),Qde="TooltipTrigger",efe=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=Jde(Qde,r),a=Gde(Qde,r),l=Ude(r),s=Y(n,t.useRef(null),i.onTriggerChange),u=t.useRef(!1),c=t.useRef(!1),d=t.useCallback((()=>u.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),t.createElement($de,W({asChild:!0},l),t.createElement(ae.button,W({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:s,onPointerMove:re(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))})),onPointerLeave:re(e.onPointerLeave,(()=>{i.onTriggerLeave(),c.current=!1})),onPointerDown:re(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:re(e.onFocus,(()=>{u.current||i.onOpen()})),onBlur:re(e.onBlur,i.onClose),onClick:re(e.onClick,i.onClose)})))})),tfe="TooltipPortal",[nfe,rfe]=Vde(tfe,{forceMount:void 0}),ofe="TooltipContent",ife=t.forwardRef(((e,n)=>{const r=rfe(ofe,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,l=Jde(ofe,e.__scopeTooltip);return t.createElement(se,{present:o||l.open},l.disableHoverableContent?t.createElement(ufe,W({side:i},a,{ref:n})):t.createElement(afe,W({side:i},a,{ref:n})))})),afe=t.forwardRef(((e,n)=>{const r=Jde(ofe,e.__scopeTooltip),o=Gde(ofe,e.__scopeTooltip),i=t.useRef(null),a=Y(n,i),[l,s]=t.useState(null),{trigger:u,onClose:c}=r,d=i.current,{onPointerInTransitChange:f}=o,p=t.useCallback((()=>{s(null),f(!1)}),[f]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);s(a),f(!0)}),[f]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(u&&d){const e=e=>h(e,d),t=e=>h(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[u,d,h,p]),t.useEffect((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,l);r?p():o&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,d,l,c,p]),t.createElement(ufe,W({},e,{ref:a}))})),[lfe,sfe]=Vde(Yde,{isInside:!1}),ufe=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...s}=e,u=Jde(ofe,r),c=Ude(r),{onClose:d}=u;return t.useEffect((()=>(document.addEventListener(Zde,d),()=>document.removeEventListener(Zde,d))),[d]),t.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),t.createElement(ece,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:d},t.createElement(zde,W({"data-state":u.stateAttribute},c,s,{ref:n,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(lfe,{scope:r,isInside:!0},t.createElement(Kde,{id:u.contentId,role:"tooltip"},i||o))))}));const cfe=e=>{const{__scopeTooltip:n,delayDuration:r=Wde,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[l,s]=t.useState(!0),u=t.useRef(!1),c=t.useRef(0);return t.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),t.createElement(qde,{scope:n,isOpenDelayed:l,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:t.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i},a)},dfe=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:s}=e,u=Gde(Yde,e.__scopeTooltip),c=Ude(n),[d,f]=t.useState(null),p=fe(),h=t.useRef(0),g=null!=l?l:u.disableHoverableContent,m=null!=s?s:u.delayDuration,v=t.useRef(!1),[y=!1,b]=ie({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(Zde))):u.onClose(),null==a||a(e)}}),w=t.useMemo((()=>y?v.current?"delayed-open":"instant-open":"closed"),[y]),x=t.useCallback((()=>{window.clearTimeout(h.current),v.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{v.current=!0,b(!0)}),m)}),[m,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(Nde,c,t.createElement(Xde,{scope:n,contentId:p,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:t.useCallback((()=>{u.isOpenDelayed?S():x()}),[u.isOpenDelayed,S,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},ffe=efe,pfe=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=Jde(tfe,n);return t.createElement(nfe,{scope:n,forceMount:r},t.createElement(se,{present:r||a.open},t.createElement(Fde,{asChild:!0,container:i},o)))},hfe=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=Ude(r);return sfe("TooltipArrow",r).isInside?null:t.createElement(Bde,W({},i,o,{ref:n}))})),gfe=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},mfe=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:u,maxWidth:c,textAlign:d,open:f,disabled:p,id:h,bgColor:g,color:m,container:v,afterShow:y,afterHide:b}=t,w=l(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(cfe,{children:e.jsxs(dfe,{delayDuration:0,onOpenChange:e=>{p||(y&&e&&y(),b&&!e&&b())},open:f,children:[e.jsx(ffe,{asChild:!0,children:e.jsx(yfe,Object.assign({},w,{children:n}))}),e.jsx(pfe,{container:v,children:!p&&e.jsxs(vfe,{side:gfe(i).side,align:gfe(i).align,sideOffset:a,zIndex:s,width:u,maxWidth:c,textAlign:d,id:h,bgColor:g,textColor:m,children:[o||r,e.jsx(hfe,{className:"tooltip-arrow",width:12,height:8})]})})]})})},vfe=U(ife,{shouldForwardProp:e=>fx(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:l,font:s}=e,u=l.background,c=o||u;return{backgroundColor:c,boxShadow:e.elevation1,color:i||l.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:c,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),yfe=U.div({display:"inline-flex"}),bfe=U.div((({theme:e})=>({color:e.tooltip.color.default}))),wfe=U.div((({theme:e})=>({color:e.tooltip.color.subtext})));mfe.Header=bfe,mfe.Body=wfe;const xfe=U.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),an),Cfe=U.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),Sfe=U.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),kfe=U.div({display:"flex",flexDirection:"column"}),Efe=U.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Ofe=U.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Dfe=U.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),_fe=U.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),jfe=U.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var Pfe,Tfe={exports:{}};Pfe=Tfe,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function l(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function s(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function c(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){c&&o&&s&&(c(u),c=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,s=!0,u=null,c=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),l(e,"head",t)}function f(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),l=!1;return i.onload=i.onreadystatechange=function(){l||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(l=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){l||(l=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,m(e)}}function g(e,t){e.c=t,m(e)}function m(e){0==e.a&&e.c&&(e.c(),e.c=null)}function v(e){this.a=e||"-"}function y(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function w(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new v("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=c(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(e.f,n,r)}E(e,"inactive")}function E(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function O(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function _(e){l(e.c,"body",e.a)}function j(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function P(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function T(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=j(e=new y(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=j(e=new y(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=j(e=new y("serif",w(this.a))),this.j.a.style.cssText=e,e=j(e=new y("sans-serif",w(this.a))),this.m.a.style.cssText=e,_(this.g),_(this.h),_(this.j),_(this.m)}v.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},P.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var M={D:"serif",C:"sans-serif"},A=null;function R(){if(null===A){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);A=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return A}function L(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[r]])return!0;return!1}function I(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=R()&&L(e,o,i)),t?r()-e.A>=e.w?R()&&L(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){I(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),t(this.a)}),e),0)}function $(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}T.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),I(this)};var z=null;function B(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),E(e,"active")):k(e.a))}function F(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function K(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===r.length&&a)k(t.a);else{t.f+=r.length,a&&(t.j=a);var s,c=[];for(s=0;s<r.length;s++){var d=r[s],f=l[d.c],p=t.a,h=d;if(p.g&&u(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new P(n(t.g,t),n(t.h,t),t.c,d,t.s,f):new T(n(t.g,t),n(t.h,t),t.c,d,t.s,e,f),c.push(p)}for(s=0;s<c.length;s++)c[s].start()}}),0)}function V(e,t){this.c=e,this.a=t}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}$.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),E(t,"fontactive",e),this.m=!0,B(this)},$.prototype.h=function(e){var t=this.a;if(t.g){var n=c(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),u(t.f,r,o)}E(t,"fontinactive",e),B(this)},F.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),E(e,"loading")}(t),r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new $(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},V.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new y(s,n))):a.push(new y(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;f(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},H.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new p;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],h(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),u=0;u<s.length;u+=1)l.push(new y(r[0],s[u]));else l.push(new y(r[0]));g(a,(function(){e(l,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,u=0;u<s;u++){var c;if((c=l[u]).match(/^[\w-]+$/))if(null==(d=X.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":Y[c],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new y(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?f(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new y(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new y(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},f(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ne=new F(window);ne.a.c.custom=function(e,t){return new H(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new V(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};Pfe.exports?Pfe.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var Mfe=it(Tfe.exports);const Afe="#0074F4",Rfe="#FF6068",Lfe="#FF9900",Ife="#F0BB00",Nfe="#00C242",$fe="#001D32",zfe="#FFFFFF",Bfe={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:Afe,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:ur(.95,Afe),brandTint1:ur(.9,Afe),brandTint2:ur(.8,Afe),brandTint3:ur(.7,Afe),brandTint4:ur(.6,Afe),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Rfe,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:ur(.95,Rfe),errorTint1:ur(.9,Rfe),errorTint2:ur(.8,Rfe),warning:Lfe,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:ur(.95,Lfe),warningTint1:ur(.9,Lfe),warningTint2:ur(.8,Lfe),alert:Ife,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:ur(.95,Ife),alertTint1:ur(.9,Ife),alertTint2:ur(.8,Ife),success:Nfe,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:ur(.95,Nfe),successTint1:ur(.9,Nfe),successTint2:ur(.8,Nfe),grayscale0:ur(.95,$fe),grayscale1:ur(.9,$fe),grayscale2:ur(.8,$fe),grayscale3:ur(.7,$fe),grayscale4:ur(.6,$fe),grayscale5:ur(.5,$fe),grayscale6:ur(.4,$fe),grayscale7:ur(.3,$fe),grayscale8:ur(.2,$fe),grayscale9:ur(.1,$fe),grayscale10:$fe,contrast0:ur(.95,zfe),contrast1:ur(.9,zfe),contrast2:ur(.8,zfe),contrast3:ur(.7,zfe),contrast4:ur(.6,zfe),contrast5:ur(.5,zfe),contrast6:ur(.4,zfe),contrast7:ur(.3,zfe),contrast8:ur(.2,zfe),contrast9:ur(.1,zfe),contrast10:zfe};var Ffe={color:Bfe,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:Kfe}=Ffe;var Vfe={small:{height:28,iconSize:18,font:Kfe.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:Kfe.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:Kfe.size.lg,padding:14,iconOnlyPadding:6}};const Hfe="#FFFFFF",Ufe={scale0:Bfe.grayscale0,scale1:Bfe.grayscale1,scale2:Bfe.grayscale2,scale3:Bfe.grayscale3,scale4:Bfe.grayscale4,scale5:Bfe.grayscale5,scale6:Bfe.grayscale6,scale7:Bfe.grayscale7,scale8:Bfe.grayscale8,scale9:Bfe.grayscale9,scale10:Bfe.grayscale10,accent:Bfe.brand,accentShade:Bfe.brandShade1,background0:Hfe,background1:Hfe,background2:Hfe,background3:Hfe,background4:Hfe,background5:Hfe},Wfe="#FFFFFF",Zfe=Bfe.grayscale0,qfe=Bfe.grayscale1,Gfe=Bfe.grayscale2,Yfe=Bfe.grayscale3,Xfe=Bfe.grayscale4,Jfe=Bfe.grayscale6,Qfe=Bfe.grayscale8,epe=Bfe.grayscale9,tpe=Bfe.grayscale10,npe=Object.assign(Object.assign(Object.assign({},Ffe),Ufe),{name:"light",button:Object.assign(Object.assign({},Vfe),{primary:{color:{default:Wfe,hover:Wfe,active:Wfe},outlineColor:{default:tpe,hover:tpe,active:tpe},background:{default:Bfe.brand,hover:Bfe.brandShade1,active:Bfe.brandShade2},outlineBackground:{default:Bfe.brandTint0,hover:Bfe.brandTint1,active:Bfe.brandTint2},border:{default:Bfe.brand,hover:Bfe.brandShade1,active:Bfe.brandShade2},divider:Gfe},secondary:{color:{default:tpe,hover:tpe,active:tpe},outlineColor:{default:tpe,hover:tpe,active:tpe},background:{default:qfe,hover:Gfe,active:Yfe},outlineBackground:{default:qfe,hover:Gfe,active:Yfe},border:{default:Gfe,hover:Gfe,active:Gfe},divider:Gfe},positive:{color:{default:Wfe,hover:Wfe,active:Wfe},outlineColor:{default:tpe,hover:tpe,active:tpe},background:{default:Bfe.success,hover:Bfe.successShade1,active:Bfe.successShade2},outlineBackground:{default:Bfe.successTint0,hover:Bfe.successTint1,active:Bfe.successTint2},border:{default:Bfe.success,hover:Bfe.successShade1,active:Bfe.successShade2},divider:Gfe},negative:{color:{default:Wfe,hover:Wfe,active:Wfe},outlineColor:{default:tpe,hover:tpe,active:tpe},background:{default:Bfe.error,hover:Bfe.errorShade1,active:Bfe.errorShade2},outlineBackground:{default:Bfe.errorTint0,hover:Bfe.errorTint1,active:Bfe.errorTint2},border:{default:Bfe.error,hover:Bfe.errorShade1,active:Bfe.errorShade2},divider:Gfe},caution:{color:{default:Wfe,hover:Wfe,active:Wfe},outlineColor:{default:tpe,hover:tpe,active:tpe},background:{default:Bfe.warning,hover:Bfe.warningShade1,active:Bfe.warningShade2},outlineBackground:{default:Bfe.warningTint0,hover:Bfe.warningTint1,active:Bfe.warningTint2},border:{default:Bfe.warning,hover:Bfe.warningShade1,active:Bfe.warningShade2},divider:Gfe},subtle:{color:{default:Bfe.brand,hover:Bfe.brand,active:Bfe.brand},outlineColor:{default:Bfe.brand,hover:Bfe.brand,active:Bfe.brand},secondaryColor:{default:tpe,hover:tpe,active:tpe},positiveColor:{default:Bfe.success,hover:Bfe.success,active:Bfe.success},negativeColor:{default:Bfe.error,hover:Bfe.error,active:Bfe.error},cautionColor:{default:Bfe.warning,hover:Bfe.warning,active:Bfe.warning},background:{default:"transparent",hover:qfe,active:Gfe},outlineBackground:{default:"transparent",hover:qfe,active:Gfe},border:{default:"transparent",hover:Gfe,active:Gfe},divider:Gfe},link:{color:{default:Bfe.brand,hover:Bfe.brandShade1,active:Bfe.brandShade2},outlineColor:{default:Bfe.brand,hover:Bfe.brandShade1,active:Bfe.brandShade2},secondaryColor:{default:Qfe,hover:epe,active:tpe},positiveColor:{default:Bfe.success,hover:Bfe.successShade1,active:Bfe.successShade2},negativeColor:{default:Bfe.error,hover:Bfe.errorShade1,active:Bfe.errorShade2},cautionColor:{default:Bfe.warning,hover:Bfe.warningShade1,active:Bfe.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Xfe,hover:Xfe,active:Xfe},outlineColor:{default:Xfe,hover:Xfe,active:Xfe},background:{default:qfe,hover:qfe,active:qfe},outlineBackground:{default:Zfe,hover:Zfe,active:Zfe},border:{default:qfe,hover:qfe,active:qfe},divider:qfe},color:{default:Wfe}}),calendar:{background:{container:Bfe.contrast10,hover:qfe,active:Bfe.brand,activeHover:Bfe.brandShade1,activeRange:Bfe.brandTint4},color:{disabled:Xfe,default:tpe,active:Bfe.contrast10,current:Bfe.brand,outside:Jfe,weekday:Qfe,monthYear:Qfe,iconDefault:Jfe,iconDisabled:Gfe,iconHover:tpe}},defaultBorder:`1px solid ${qfe}`,formControl:{color:{default:Qfe,hover:tpe,active:Bfe.brand,activeHover:Bfe.brandShade1,disabled:Xfe}},input:{borderRadius:4,background:{default:Zfe,hover:qfe,focused:qfe,disabled:Zfe},color:{default:tpe,disabled:Xfe,placeholder:Jfe,description:Jfe,descriptionError:Bfe.error},borderColor:{default:Jfe,hover:Qfe,focused:Bfe.brand,disabled:Xfe,error:Bfe.error},labelColor:{default:Qfe,hover:Qfe,filled:Jfe,focused:Bfe.brand,disabled:Xfe}},menu:{background:Wfe},menuItem:{borderColor:Bfe.brand,background:{active:Zfe,hover:qfe,inactive:"transparent"},color:{active:tpe,hover:tpe,inactive:Jfe}},modal:{background:Bfe.contrast10,color:{header:tpe,body:Jfe}},options:{background:Bfe.contrast10},optionItem:{background:{active:qfe,inactive:"transparent"},color:{active:tpe,inactive:tpe,accent:Bfe.brand}},table:{color:{header:Jfe,body:tpe},borderColor:qfe},toast:{color:tpe,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:Qfe,info:Bfe.brand,success:Bfe.success,warning:Bfe.warning,error:Bfe.error}},toggle:{slider:Bfe.contrast10},tooltip:{background:"#FFF",color:{default:tpe,subtext:Jfe}}}),rpe={scale0:Bfe.contrast0,scale1:Bfe.contrast1,scale2:Bfe.contrast2,scale3:Bfe.contrast3,scale4:Bfe.contrast4,scale5:Bfe.contrast5,scale6:Bfe.contrast6,scale7:Bfe.contrast7,scale8:Bfe.contrast8,scale9:Bfe.contrast9,scale10:Bfe.contrast10,accent:Bfe.brandDark,accentShade:Bfe.brandDarkShade1,background0:Bfe.brandBackground0,background1:Bfe.brandBackground1,background2:Bfe.brandBackground2,background3:Bfe.brandBackground3,background4:Bfe.brandBackground4,background5:Bfe.brandBackground5},ope=Bfe.contrast0,ipe=Bfe.contrast1,ape=Bfe.contrast2,lpe=Bfe.contrast3,spe=Bfe.contrast4,upe=Bfe.contrast6,cpe=Bfe.contrast8,dpe=Bfe.contrast9,fpe=Bfe.contrast10,ppe=Bfe.brandDark,hpe={light:npe,dark:Object.assign(Object.assign(Object.assign({},Ffe),rpe),{name:"dark",button:Object.assign(Object.assign({},Vfe),{primary:{color:{default:fpe,hover:fpe,active:fpe},outlineColor:{default:fpe,hover:fpe,active:fpe},background:{default:Bfe.brand,hover:Bfe.brandShade1,active:Bfe.brandShade2},outlineBackground:{default:Bfe.brandTint0,hover:Bfe.brandTint1,active:Bfe.brandTint2},border:{default:Bfe.brand,hover:Bfe.brandShade1,active:Bfe.brandShade2},divider:ape},secondary:{color:{default:fpe,hover:fpe,active:fpe},outlineColor:{default:fpe,hover:fpe,active:fpe},background:{default:ipe,hover:ape,active:lpe},outlineBackground:{default:ipe,hover:ape,active:lpe},border:{default:ape,hover:ape,active:ape},divider:ape},positive:{color:{default:fpe,hover:fpe,active:fpe},outlineColor:{default:fpe,hover:fpe,active:fpe},background:{default:Bfe.success,hover:Bfe.successShade1,active:Bfe.successShade2},outlineBackground:{default:Bfe.successTint0,hover:Bfe.successTint1,active:Bfe.successTint2},border:{default:Bfe.success,hover:Bfe.successShade1,active:Bfe.successShade2},divider:ape},negative:{color:{default:fpe,hover:fpe,active:fpe},outlineColor:{default:fpe,hover:fpe,active:fpe},background:{default:Bfe.error,hover:Bfe.errorShade1,active:Bfe.errorShade2},outlineBackground:{default:Bfe.errorTint0,hover:Bfe.errorTint1,active:Bfe.errorTint2},border:{default:Bfe.error,hover:Bfe.errorShade1,active:Bfe.errorShade2},divider:ape},caution:{color:{default:fpe,hover:fpe,active:fpe},outlineColor:{default:fpe,hover:fpe,active:fpe},background:{default:Bfe.warning,hover:Bfe.warningShade1,active:Bfe.warningShade2},outlineBackground:{default:Bfe.warningTint0,hover:Bfe.warningTint1,active:Bfe.warningTint2},border:{default:Bfe.warning,hover:Bfe.warningShade1,active:Bfe.warningShade2},divider:ape},subtle:{color:{default:Bfe.brand,hover:Bfe.brand,active:Bfe.brand},outlineColor:{default:Bfe.brand,hover:Bfe.brand,active:Bfe.brand},secondaryColor:{default:fpe,hover:fpe,active:fpe},positiveColor:{default:Bfe.success,hover:Bfe.success,active:Bfe.success},negativeColor:{default:Bfe.error,hover:Bfe.error,active:Bfe.error},cautionColor:{default:Bfe.warning,hover:Bfe.warning,active:Bfe.warning},background:{default:"transparent",hover:ipe,active:ape},outlineBackground:{default:"transparent",hover:ipe,active:ape},border:{default:"transparent",hover:ape,active:ape},divider:ape},link:{color:{default:Bfe.brandShade2,hover:Bfe.brandShade1,active:Bfe.brand},outlineColor:{default:Bfe.brandShade2,hover:Bfe.brandShade1,active:Bfe.brand},secondaryColor:{default:cpe,hover:dpe,active:fpe},positiveColor:{default:Bfe.successShade2,hover:Bfe.successShade1,active:Bfe.success},negativeColor:{default:Bfe.errorShade2,hover:Bfe.errorShade1,active:Bfe.error},cautionColor:{default:Bfe.warningShade2,hover:Bfe.warningShade1,active:Bfe.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:spe,hover:spe,active:spe},outlineColor:{default:spe,hover:spe,active:spe},background:{default:ipe,hover:ipe,active:ipe},outlineBackground:{default:ope,hover:ope,active:ope},border:{default:ipe,hover:ipe,active:ipe},divider:ipe},color:{default:"#FFFFFF"}}),calendar:{background:{container:Bfe.brandBackground3,hover:ipe,active:Bfe.brand,activeHover:Bfe.brandShade1,activeRange:Bfe.brandTint4},color:{disabled:spe,default:fpe,active:fpe,current:ppe,outside:upe,weekday:cpe,monthYear:cpe,iconDefault:upe,iconDisabled:ape,iconHover:fpe}},defaultBorder:`1px solid ${ipe}`,formControl:{color:{default:cpe,hover:fpe,active:Bfe.brand,activeHover:Bfe.brandShade1,disabled:spe}},input:{borderRadius:4,background:{default:ope,hover:ipe,focused:ipe,disabled:ope},color:{default:fpe,disabled:spe,placeholder:upe,description:upe,descriptionError:Bfe.error},borderColor:{default:upe,hover:cpe,focused:ppe,disabled:spe,error:Bfe.error},labelColor:{default:cpe,hover:cpe,filled:upe,focused:ppe,disabled:spe}},menu:{background:Bfe.brandBackground2},menuItem:{borderColor:Bfe.brand,background:{active:ope,hover:ipe,inactive:"transparent"},color:{active:fpe,hover:fpe,inactive:upe}},modal:{background:Bfe.brandBackground3,color:{header:fpe,body:upe}},options:{background:Bfe.brandBackground2},optionItem:{background:{active:ipe,inactive:"transparent"},color:{active:fpe,inactive:fpe,accent:ppe}},table:{color:{header:upe,body:fpe},borderColor:ipe},toast:{color:fpe,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:cpe,info:Bfe.brand,success:Bfe.success,warning:Bfe.warning,error:Bfe.error}},toggle:{slider:Bfe.brandBackground0},tooltip:{background:Bfe.brandBackground4,color:{default:fpe,subtext:upe}}})};exports.Accordion=fn,exports.Audio=Zx,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:u,barSize:c=16,maxBarSize:d,vertical:f=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:m=45}=t,v=l(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:y}=n.useTheme();return e.jsxs(yQ,Object.assign({},v,{children:[e.jsx(vQ,{}),e.jsx(yR,{width:"100%",height:"100%",children:e.jsxs(iJ,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:f?"vertical":"horizontal",barSize:c,maxBarSize:d,barGap:s,barCategoryGap:u,children:[e.jsx(zY,{stroke:y,strokeDasharray:"3 5",vertical:f,horizontal:!f}),e.jsx(oX,{stroke:y,tickMargin:4,tickFormatter:e=>f?aC(e):e,tick:!h&&{},height:h?12:g,dataKey:f?void 0:"name",type:f?"number":"category"}),e.jsx(aX,{stroke:y,tickMargin:4,tickFormatter:e=>f?e:aC(e),tick:!p&&{},width:p?5:m,dataKey:f?"name":void 0,type:f?"category":"number"}),wQ(),o&&e.jsx(eM,{content:e.jsx(xQ,{})}),i.map((({key:t,color:n},r)=>e.jsx(Gq,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=$x,exports.Calendar=FQ,exports.Checkbox=WQ,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:l,noNumbers:s,margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p},m=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[v,y,b]=m;v=v||a||"",y=y||l||"",b=b||s?"nonumbers":"";let w=v?v.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(y){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?st.range(r,o+1):st.rangeRight(o,r+1)}return null})),n=t.flat();return st.compact(n)})(y);return t.some((t=>e===t))}return!1},k=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(F1,{method:x,url:k}):e.jsx($1,{code:k,language:w,theme:"dark"===h?d1.oceanicNext:d1.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(U1,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(W1,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(Z1,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(z1,{content:k})]}))})},exports.ComboBox=o0,exports.DatePicker=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:g,preventFuture:m,onChange:v,afterShow:y,afterHide:b}=n,w=l(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[x,C]=t.useState(!1),{current:S}=t.useRef(r?$Q(r):void 0),[k,E]=t.useState(S),O=t.useRef(null),{min:D,max:_}=zQ({past:g,future:m,rel:S||jse}),j=e=>{const{year:t,month:n,day:r}=e,o=new zl(t,n,r);E(o);const i=NQ(e);v&&v(i)},P=!(k||!o);return e.jsxs(Pse,Object.assign({value:k,hasLabel:!!o,isDisabled:f,minValue:D,maxValue:_,onChange:j,onOpenChange:e=>{C(e),y&&e&&y(),b&&!e&&b()},ref:O},w,{children:[a&&Fle(a,{marginRight:8}),e.jsxs(J1,{filled:!!k,disabled:f,children:[o,e.jsx(Tse,{ref:i,hide:P,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Sse,{placeholderColor:d,segment:t})})]}),e.jsx(_se,{isDisabled:f,children:e.jsx(un,{name:x?"caret-up":"caret-down",inheritColor:!0})}),s&&Fle(s),u&&e.jsx(Px,{}),e.jsx(kse,{description:p,errorMessage:h}),e.jsx(Db,{triggerRef:O,children:e.jsx(Mb,{children:e.jsx(FQ,{date:k?NQ(k):void 0,onChange:e=>{j($Q(e))},preventPast:g,preventFuture:m})})})]}))},exports.DateRangePicker=n=>{var{startValue:r,endValue:o,label:i,inputRef:a,iconLeft:s,iconRight:u,isLoading:c,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=n,x=l(n,["startValue","endValue","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[C,S]=t.useState(!1),{current:k}=t.useRef(r?$Q(r):void 0),{current:E}=t.useRef(o?$Q(o):void 0),[O,D]=t.useState(k),[_,j]=t.useState(E),P=t.useRef(null),{min:T,max:M}=zQ({past:m,future:v,rel:k||Lse}),A=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,u=new zl(r,o,i);D(u);const c=new zl(a,l,s);j(c);const d=NQ(t),f=NQ(n);y&&y(d,f)},R=!(!O&&!_),L=!(R||!i);return e.jsxs(Ise,Object.assign({value:O&&_?{start:O,end:_}:void 0,hasLabel:!!i,isDisabled:p,minValue:T,maxValue:M,onChange:A,onOpenChange:e=>{S(e),b&&e&&b(),w&&!e&&w()},ref:P},x,{children:[s&&Fle(s,{marginRight:8}),e.jsxs(J1,{filled:R,disabled:p,children:[i,e.jsxs($se,{fontSize:d,hide:L,isDisabled:p,children:[e.jsx(Nse,{slot:"start",ref:a,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Sse,{placeholderColor:f,segment:t})}),e.jsx("span",{"aria-hidden":"true",children:"–"}),e.jsx(Nse,{slot:"end",fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Sse,{placeholderColor:f,segment:t})})]})]}),e.jsx(_se,{isDisabled:p,children:e.jsx(un,{name:C?"caret-up":"caret-down",inheritColor:!0})}),u&&Fle(u),c&&e.jsx(Px,{}),e.jsx(kse,{description:h,errorMessage:g}),e.jsx(Db,{triggerRef:P,children:e.jsx(Mb,{children:e.jsx(Ase,{startDate:O?NQ(O):void 0,endDate:_?NQ(_):void 0,onChange:(e,t)=>{const n=$Q(e),r=$Q(t);A({start:n,end:r})},preventPast:m,preventFuture:v})})})]}))},exports.DocTable=a0,exports.DraftEditor=kle,exports.Dropdown=nse,exports.DropdownMenu=Ex,exports.Ellipsis=sse,exports.Form=hse,exports.Grid=use,exports.Icon=un,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:u})=>{const[c,d]=t.useState(i),f=rt(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{d(i)}),[i]);const p=()=>d(c>0?c-1:o.length-1),h=()=>c<o.length-1?d(c+1):d(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,c]),n?e.jsxs(yse,{opacity:u,prevNext:o.length>1,children:[e.jsx(bse,{onClick:r,children:e.jsx(un,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(wse,{id:"prev",onClick:p,children:e.jsx(un,{name:"chevron-left",size:35,color:"white"})}),e.jsx(xse,{ref:f,src:o[c],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e.jsx(wse,{next:!0,id:"next",onClick:h,children:e.jsx(un,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=Cse,exports.Input=Kle,exports.InputUtils=fle,exports.Label=fse,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=l(r,["data","legend","keys"]);const[u,c]=t.useState(a),{scale2:d}=n.useTheme();return e.jsxs(yQ,Object.assign({},s,{children:[e.jsx(vQ,{}),e.jsx(yR,{width:"100%",height:"100%",children:e.jsxs(oJ,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(zY,{stroke:d,strokeDasharray:"3 5",vertical:!1}),e.jsx(oX,{stroke:d,dataKey:"name",tickMargin:4}),e.jsx(aX,{stroke:d,tickMargin:4,tickFormatter:e=>aC(e)}),wQ(),i&&e.jsx(eM,{content:e.jsx(xQ,{toggleData:a.length>1?e=>{c((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),u.map((({key:t,color:n,hidden:r},o)=>e.jsx(nX,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=Hse,exports.Message=Gse,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(nue,{children:[e.jsx(tue,{}),e.jsx(eue,{color:n,style:r,children:t}),e.jsx(tue,{})]}),exports.Modal=rue,exports.MultiSelect=lue,exports.Notification=lJ,exports.NumberInput=t=>{var{value:n,label:r,placeholder:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=t,g=l(t,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return e.jsxs(zse,Object.assign({value:n,hasLabel:!!r,isDisabled:f},g,{children:[a&&Fle(a,{marginRight:8}),e.jsxs(J1,{filled:!!n,disabled:f,children:[r,e.jsx(Y1,{ref:i,placeholder:o,hide:!(n||!r),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&Fle(s),u&&e.jsx(Px,{}),e.jsxs(Bse,{children:[e.jsx(Fse,{slot:"increment",children:e.jsx(un,{size:r?23.5:19.5,name:"caret-up"})}),e.jsx(Kse,{}),e.jsx(Fse,{slot:"decrement",children:e.jsx(un,{size:r?23.5:19.5,name:"caret-down"})})]}),e.jsx(kse,{description:p,errorMessage:h})]}))},exports.Options=qle,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,u=l(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[c,d]=t.useState(mue(o)||1),[f,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,mue(a)||h.length),m=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),d(e),r(e)}},v=0!==f,y=f!==g.length-1;return e.jsxs(vue,Object.assign({width:s},u,{children:[e.jsx(bue,{disabled:1===c,onClick:()=>m(1),children:e.jsx(un,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(bue,{disabled:1===c,onClick:()=>m(c-1),children:e.jsx(un,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(xue,{children:"... "}):"",e.jsx(wue,{selected:n===c,onClick:()=>m(n),children:n}),r===o.length-1&&y?e.jsx(xue,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(bue,{disabled:c===i,onClick:()=>m(c+1),children:e.jsx(un,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(bue,{disabled:c===i,onClick:()=>m(i),children:e.jsx(un,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=l(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,u=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,c=n/2-1;return e.jsx(yQ,Object.assign({width:n,height:n},a,{children:e.jsxs(aJ,{width:n,height:n,children:[e.jsx(CZ,{dataKey:"value",data:u,innerRadius:o,outerRadius:c,children:null==u?void 0:u.map((t=>e.jsx(bR,{fill:t.color||"#999"},t.name)))}),s&&wQ()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(Cue,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e.jsx(Oue,Object.assign({width:o,height:i||l},p,{children:e.jsx(Due,{color:n,width:h})}))},exports.Radio=cse,exports.RangeCalendar=Ase,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,Mfe.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Select=_ue,exports.Slider=Hx,exports.Spacer=Tue,exports.Spinner=Px,exports.Table=Hue,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,s=l(t,["items","activeItem","itemWidth","itemGap","onChange"]);const u=n.filter((e=>!1!==e.visible));return e.jsx(Zue,Object.assign({gap:i},s,{children:u.map((t=>{const{id:n,label:i,icon:s,iconColor:u,iconPosition:c}=t,d=l(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(que,Object.assign({active:n===r,itemWidth:o,reverse:"right"===c,onClick:()=>(e=>{a(e)})(t),gap:s?4:void 0},d,{children:[s&&e.jsx(un,{name:s,size:"small",color:u,inheritColor:!u}),i]}),n)}))}))},exports.TextInput=t=>{var{value:n,label:r,placeholder:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=t,g=l(t,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return e.jsxs(Vse,Object.assign({value:n,hasLabel:!!r,isDisabled:f},g,{children:[a&&Fle(a,{marginRight:8}),e.jsxs(J1,{filled:!!n,disabled:f,children:[r,e.jsx(Y1,{ref:i,placeholder:o,hide:!(n||!r),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&Fle(s),u&&e.jsx(Px,{}),e.jsx(kse,{description:p,errorMessage:h})]}))},exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=dse,exports.Tooltip=mfe,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:u,width:c,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g})=>{const m=t.useRef(),[v,y]=t.useState([]),[b,w]=t.useState([]),x={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!st.isEqual(n,m.current)){m.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),y(t)}}),[n,m]),t.useEffect((()=>{r(b)}),[b]);const S=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:y;(n?y:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},k=e=>{const t="select"===e?y:w,n="select"===e?v:b;("select"===e?w:y)((e=>[...e,...n])),t([])},E=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(_fe,{children:t.header}),e.jsx(jfe,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(l&&s);return e.jsxs(xfe,Object.assign({width:c,readOnly:u},x,{children:[i&&e.jsx(Cfe,{children:i}),e.jsxs(Sfe,{children:[!u&&e.jsxs(kfe,{children:[O&&e.jsx(Efe,{children:v.length>0&&!l&&e.jsx($x,{small:!0,outline:!0,onClick:()=>k("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(Ofe,{children:v.map((t=>e.jsxs(Dfe,{onClick:()=>S(t,"select"),color:t.color,children:[E(t),e.jsx(un,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(kfe,{children:[O&&!u&&e.jsx(Efe,{children:b.length>0&&!s&&!u&&e.jsx($x,{small:!0,outline:!0,secondary:!0,onClick:()=>k("remove"),icon:"arrow-left",children:"All"})}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(Ofe,{children:b.map((t=>e.jsxs(Dfe,{onClick:()=>S(t,"remove"),color:t.color,children:[E(t),e.jsx(un,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=Bfe,exports.copyToClipboard=gQ,exports.darkScale=rpe,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,l="relative"===r||!1,s=new Date,u=dQ(n,"EEEE"),c=dQ(n,"MMM d"),d=dQ(n,"MMM d, y"),f=dQ(n,"h:mm aaa"),p=pQ(n),h=function(e){return+sJ(e)>Date.now()}(n),g=function(e){return CJ(e,xJ(e))}(n),m=hQ(n),v=function(e){return CJ(e,cJ(xJ(e),1))}(n),y=OJ(s,n),b=DJ(s,n),w=y>=-10&&y<=10,x=a||l?`, ${f}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(f);if(l){if(0===y)return C("Just now");if(w)return C(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return C(h?`Today${x}`:f)}return C(g?`Today${x}`:m?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${c}${x}`:`${d}${x}`:`${u}${x}`)},exports.lightScale=Ufe,exports.marginProps=an,exports.numberWithCommas=mQ,exports.paddingProps=on,exports.positionProps=ln,exports.theme=hpe,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:u,inputValue:c}={})=>{const[d,f]=t.useState(c||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{l&&"string"==typeof c&&d!==c&&f(c)}),[p]);const m=()=>{null==p||p.resolve(!l||d),g()},v=()=>{null==p||p.resolve(!1),g()};nt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":m();break;case"Escape":v()}}),!!p,[d]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(rue,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(rue.Header,{children:n}),r&&e.jsx(rue.Text,{children:r}),l&&e.jsx(rue.Body,{marginTop:4,marginBottom:8,children:e.jsx(Kle,{autoFocus:!0,label:s,placeholder:u,value:d,onChange:({target:e})=>f(e.value)})}),e.jsxs(rue.Footer,{children:[e.jsx($x,{secondary:!0,marginRight:8,onClick:v,children:o}),e.jsx($x,{negative:a,onClick:m,children:i})]})]})]},exports.useElementObserver=nn,exports.useEventListener=nt,exports.useOnClickOutside=rt,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=ut,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[l,s]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(s(!1),a(!0)):t?(s(!0),a(!1)):(s(!1),a(!1))}),[r]),{list:r,partial:l,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=rn;
|
|
53
|
+
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))o.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}return l}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,l,s,u){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var d;try{r("function"==typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,c,typeof e[c]),d=e[c](n,c,s,l,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",l,c,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=u?u():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?l(e,t):function(e,t,n){return!(10===u(e).length&&!n||i(t))}(e,n,r)?s(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var l=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var l=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+l+i.substring(r)}var s=f(e,i,t,o);return{phoneNumber:d(i),cursorPosition:s}},s=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=c(e,n,t)),a(t)||(o=c(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},c=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=u(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},f=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return d(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var l=/[^0-9]/g;if(a(n)&&l.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&l.test(e[n.start-1]))return n.start-1}var s=e.substring(n.end).match(/[0-9]/g),u=s?s.length:0,c=d(t),f=p(c,u);return c.length-f},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var Ble=zle.exports;const Fle=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(un,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(un,Object.assign({},n,r))},Kle=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:u,description:c,isLoading:d,search:f,phone:p,textOnly:h,iconLeft:g,iconRight:m,invalid:v,borderRadius:y,borderColor:b,backgroundColor:w,fontSize:x,width:C,height:S,margin:k,marginLeft:E,marginRight:O,marginTop:D,marginBottom:_,padding:j,paddingLeft:P,paddingRight:T,paddingTop:M,paddingBottom:A,containerRef:R,value:L,disabled:I,readOnly:N,preventFocus:$,pointer:z,hideControls:B,onChange:F,onClick:K,onClear:V,onFocus:H,onBlur:U}=r,W=l(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:Z,handleFocus:q,handleBlur:G}=ale(H,U,!$&&!N),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:k,marginTop:D,marginBottom:_,marginRight:O,marginLeft:E},ne={padding:j,paddingTop:M,paddingBottom:A,paddingRight:T,paddingLeft:P};t.useLayoutEffect((()=>{if(h&&(null==ee?void 0:ee.current)){const{current:e}=ee;L&&(e.innerHTML=L.toString().replace(/ /g," "));const t=e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,L,s,ee]);const re=h?L||s:L,oe=(!!L||"number"==typeof L)&&V&&!d;t.useEffect((()=>{var e,t;if(p&&"string"==typeof L&&10===L.length&&L===Ble.normalize(L)){const{current:n}=Y;if(n){const r=Ble.format(L),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[L]);const ie=()=>{Z||q()},ae=()=>{Z&&G()},le=()=>{ie(),(null==Y?void 0:Y.current)&&Y.current.select()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:Z,select:le}))),t.useEffect((()=>{var e;Z&&(null===(e=Y.current)||void 0===e||e.focus())}),[Z]);return e.jsxs(sle,Object.assign({ref:R,invalid:v,textOnly:h,borderRadius:y,borderColor:b,backgroundColor:w,width:C,height:S,focused:Z,disabled:I,hasLabel:!!a,onClick:e=>{$||N||ie(),K&&K(e)},pointer:z,readOnly:N},te,ne,{children:[f&&e.jsx(un,{name:"search",marginRight:8,inheritColor:!0}),g&&Fle(g,{marginRight:8}),e.jsxs(ule,{readOnly:N||$,children:[h&&e.jsx(Ule,{ref:ee,fontSize:x,children:re}),a&&!h&&e.jsx(cle,{htmlFor:i||a,filled:lle(L),focused:Z,disabled:I,children:a}),e.jsx(Vle,Object.assign({id:i||a,ref:Y,value:L,placeholder:s,placeholderColor:u,onChange:e=>{if(p){const{value:t}=e.target,n=Ble.normalize(t);if(n.length>10)return;const r=Ble.format(n);F&&F(e,r,n)}else F&&F(e)},onFocus:q,onBlur:G,disabled:I,hide:!(lle(L)||!a||Z||h),width:J,fontSize:x,hideControls:B},W))]}),m&&Fle(m),d&&e.jsx(Px,{}),oe&&e.jsx(Hle,{onClick:V,children:e.jsx(un,{name:"close-circle-outline",color:X.brand})}),c&&e.jsx(dle,{invalid:v,children:c})]}))})),Vle=U.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),Hle=U.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),Ule=U.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Wle=U("div",{shouldForwardProp:e=>fx(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Zle=U("div",{shouldForwardProp:e=>fx(e,["selected","noSelect","contentPosition","color","accented","section"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),qle=({id:n,children:o,containerRef:i,parentSelector:a,width:l,maxHeight:s=200,offsetY:u,offsetX:c,centerY:d,centerX:f,direction:p})=>{const[h,g]=t.useState(),m=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||m;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<s?n:s)+((r?c:u)||4))}}),[i,p]);const v=e.jsx(Gle,{id:n,ref:i||m,offsetX:c,offsetY:u,width:l,maxHeight:s,centerY:d,centerX:f,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(v,e):v}return v};qle.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:u,accented:c,section:d}=t,f=l(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e.jsx(Zle,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:d,noSelect:d||a,contentPosition:s,color:u,accented:c,tabIndex:a?-1:0},f,{children:n}))};const Gle=U(Wle)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Yle=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Xle=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Qle,{children:n.header}),e.jsx(ese,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),Jle=(n,r,o,i,a)=>{const{selected:s}=a,u=((t,n,r,o)=>{if(t&&t.length>0)return Yle(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(qle.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:Xle(t)},t.id)}));return[]})(n,o,i,l(a,["selected"])),c=((e,n,r)=>e?Mle(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Mle([...u,...c]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Qle=U.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),ese=U.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),tse=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),nse=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:u,onBlur:c,onError:d,placeholder:f,placeholderColor:p,value:h,options:g,children:m,borderColor:v,backgroundColor:y,hideIcon:b,clearOnSelect:w,textOnly:x,width:C,height:S,isLoading:k,margin:E,marginTop:O,marginBottom:D,marginRight:_,marginLeft:j,label:P,id:T,name:M,trigger:A,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,fontSize:z,description:B,disabled:F,invalid:K,search:V,filter:H,restrictInput:U,inputRef:W,optionsParent:Z}=r,q=l(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[G,Y]=t.useState(""),[X,J]=t.useState(""),[Q,ee]=t.useState(!1),[te,ne]=t.useState(!1),[re,oe]=t.useState(!1),ie=t.useRef(null),{input:ae}=n.useTheme(),le={margin:E,marginTop:O,marginBottom:D,marginRight:_,marginLeft:j},se=e=>{e&&e.stopPropagation(),!Q&&a&&a(),Q&&s&&s(),ee((e=>!e))};t.useEffect((()=>{var e;if(Q&&V){null===(e=(W||ie).current)||void 0===e||e.focus()}}),[Q,V]),t.useEffect((()=>{d&&d(re)}),[re]),t.useEffect((()=>{i&&i(X)}),[X]);const ue=rt(se,Q,Z?[Z,`${Z} *`]:void 0),ce=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ge().find((t=>{let n=ce(t.label,e);return!n&&"id"in t&&(n=ce(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=ce(t.value,e)),n}));return t},fe=e=>"function"==typeof U?!U(e):U,pe=e=>he(null,e),he=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(fe(e))return de(e)||null;return{id:$le(),label:e,value:e}})(e);const t=fe(e);null===n&&t&&(r=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}Q&&se(t),Y((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?oe(!0):(re&&oe(!1),w&&Y(""),J(""))};t.useEffect((()=>{""!==h&&null!=h||pe()}),[h]);const ge=()=>{const e=Mle(m).map((e=>{const t=e;let n=t.props.displayText||"";return!P&&t.props.children&&(n=tse(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Yle(g||[],{search:V,filter:H,inputText:X}),...e]},me={options:ge(),select:he,open:se,close:se,searchText:V?X:void 0,isOpen:Q,isFocused:te},[ve,ye]=ut(me),be=Jle(g||[],m,he,se,{selected:ve,search:V,filter:H,inputText:X}),we=Q?"caret-up":"caret-down",xe=x&&!F?p||ae.color.default:void 0,Ce=l(q,["onClear","phone"]);return e.jsx(rse,Object.assign({textOnly:x,altTrigger:!!A,width:C,height:S,focused:te,search:V},le,{children:e.jsxs(ose,{ref:ue,children:[A?e.jsx(ise,{id:T,onClick:se,tabIndex:0,onFocus:()=>ne(!0),onBlur:()=>ne(!1),children:A}):e.jsx(lse,{shake:re,children:e.jsx(Kle,Object.assign({},Ce,{ref:W||ie,id:T,name:M,label:P,fontSize:z,pointer:!0,preventFocus:!V,value:X||h||G,placeholder:f||"Select",placeholderColor:xe,iconRight:b||k?void 0:we,borderColor:v,backgroundColor:y,isLoading:k,textOnly:x,description:B,disabled:F,invalid:re||K,onClick:se,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(W||ie).current)||void 0===t?void 0:t.hasFocus;V?(J(n),!Q&&r&&ee(!0),re&&oe(!1)):n||pe(e);const o=de(n),i=fe(n),a=""===n||i&&!r;o&&!(V&&(!i||r))?he(o,e):V&&!a||pe(e)},onFocus:e=>{ne(!0),u&&u(e)},onBlur:e=>{var t;if(ne(!1),c&&c(e),V&&X&&e){const{relatedTarget:n}=e;(null===(t=null==ye?void 0:ye.current)||void 0===t?void 0:t.contains(n))||he(X,e)}}}))}),Q&&be.length>0&&e.jsx(qle,{containerRef:ye,parentSelector:Z,width:!A&&!x||Z?"100%":void 0,centerY:R,centerX:L,offsetY:I,offsetX:N,direction:$,children:be})]})}))};nse.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:u,id:c,section:d})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:c,label:n||tse(i)||"",value:t};r&&r(o,e)};return e.jsx(qle.Item,{id:c,contentPosition:a,color:l,onClick:f,accented:s,section:d,children:i})};const rse=U.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),rn,an),ose=U.div({position:"relative",width:"100%",height:"inherit"}),ise=U.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),ase=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),lse=U.div((({shake:e})=>({"& input":{animation:e?`${ase} .5s linear`:void 0}}))),sse=U.div({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},on,an),use=U.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:u,width:c,height:d})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:l,justifyItems:u,alignContent:a,justifyContent:s,width:c,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),on,an);use.Item=U.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:u,border:c})),on,an);const cse=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f}=t,p=l(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};return e.jsxs(VQ,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(UQ,{children:r}),e.jsx(HQ,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(un,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},dse=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:u,margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h}=n,g=l(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[m,v]=t.useState("toggle-off"),[y,b]=t.useState(a||!1),w="right"===i,x={margin:c,marginTop:d,marginBottom:f,marginRight:p,marginLeft:h};return t.useEffect((()=>{v(y?"toggle-on":"toggle-off")}),[y]),t.useEffect((()=>{b("boolean"==typeof a?a:y)}),[a,y]),e.jsxs(VQ,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(UQ,{children:o}),e.jsx(HQ,Object.assign({id:r,type:"checkbox",checked:y,disabled:s,onChange:()=>{const e=!y;b(e),u(e)}},g)),e.jsx(un,{name:m,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},fse=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=l(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(pse,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&Fle(r,{marginRight:4,size:"small"}),n,o&&Fle(o,{marginLeft:4,size:"small"})]}))},pse=U.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),an),hse=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(gse,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};hse.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,u=l(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(mse,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},hse.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=l(t,["children","inline","align","disabled"]);return e.jsx(vse,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},hse.Input=Kle,hse.Dropdown=nse,hse.Radio=cse,hse.Toggle=dse,hse.Checkbox=WQ,hse.Label=fse;const gse=U(use)({boxSizing:"border-box"}),mse=U(use)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),vse=U.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),an),yse=U.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),bse=U.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),wse=U.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),xse=U.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Cse=U.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),Sse=U(Wb)((({theme:e,placeholderColor:t})=>({outline:"none",borderRadius:4,padding:"0 2px","&[data-focused]":{backgroundColor:e.calendar.background.activeRange},"&[data-placeholder]":{color:t||e.input.color.placeholder}}))),kse=({description:t,errorMessage:n})=>t||n?e.jsxs(Ese,{children:[t&&!n&&e.jsx(Ose,{slot:"description",children:t}),n&&e.jsx(Dse,{children:n})]}):null,Ese=U.div({position:"absolute",left:0,top:"100%"}),Ose=U(Rm)((({theme:e})=>({color:e.input.color.description,fontSize:e.font.size.sm}))),Dse=U(By)((({theme:e})=>({color:e.input.color.descriptionError,fontSize:e.font.size.sm}))),_se=U(kx)((({theme:{input:e,accent:t},isDisabled:n})=>({color:n?e.labelColor.disabled:e.labelColor.default,outline:"none","&[data-focused]":{outline:`${t} solid 1px`}}))),jse=IQ(),Pse=U(Jb)(X1),Tse=U(Hb,q1)({display:"flex"},G1),Mse=IQ(),Ase=n=>{var{startDate:r,endDate:o,onChange:i,preventPast:a,preventFuture:s,noShadow:u}=n,c=l(n,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=t.useRef(r?$Q(r):Mse),{current:f}=t.useRef(o?$Q(o):d),[p,h]=t.useState(d),[g,m]=t.useState(f),{min:v,max:y}=zQ({past:a,future:s,rel:d});return e.jsxs(Rse,Object.assign({value:{start:p,end:g},onChange:e=>{const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:u}=n,c=new zl(r,o,a);h(c);const d=new zl(l,s,u);m(d);const f=NQ(t),p=NQ(n);i&&i(f,p)},minValue:v,maxValue:y,noShadow:u},c,{children:[e.jsx(MQ,{}),e.jsx(DQ,{range:!0})]}))},Rse=U(Oy)(OQ),Lse=IQ(),Ise=U(ew)(X1),Nse=U(Hb,q1)(G1,{display:"flex","&:first-of-type":{marginRight:0}}),$se=U(Sb,q1)((({theme:{input:e,font:t},hide:n,fontSize:r,isDisabled:o})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:o?e.color.disabled:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),zse=U(xw)(X1),Bse=U.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder}))),Fse=U(kx)((({theme:e})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden","&:hover":{backgroundColor:e.scale1},"&:active":{backgroundColor:e.scale0}}))),Kse=U.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),Vse=U(dx)(X1),Hse=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e.jsx(Use,{vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:l,paddingLeft:s,paddingRight:u,border:c,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?Mle(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null}),Use=U.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:u})),on),Wse=U.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),Zse=U.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),qse=U.div({marginLeft:"auto",marginRight:8});Hse.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e.jsx(Wse,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),Hse.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:l,onClick:s,id:u,children:c,indent:d=1,backgroundColor:f})=>{const[p,h]=t.useState(r||i),g=e=>Mle(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:f})}return null})),m=g(c),v=()=>h((e=>!e));return e.jsxs(Zse,{backgroundColor:f,children:[e.jsxs(Wse,{vertical:o,selected:i||!1,disabled:a,contentPosition:l,onClick:e=>{s?(s(e),p||v()):v()},id:u,role:"menuitem",indent:d,children:[n,e.jsx(qse,{onClick:e=>{e.stopPropagation(),v()},children:e.jsx(un,{name:p?"chevron-up":"chevron-down",pointer:!0})})]}),p&&m]})};const Gse=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d,children:f})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:m}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),v={margin:l,marginTop:s,marginBottom:u,marginRight:c,marginLeft:d};return e.jsxs(Jse,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e.jsx(un,{name:h,style:{marginRight:10},color:g}),e.jsx(Qse,{children:r||f}),o&&e.jsx(un,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},Yse=U.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),Xse=U.div((({theme:e})=>({fontWeight:e.font.weight.default})));Gse.Header=Yse,Gse.Body=Xse;const Jse=U.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),an),Qse=U.div({width:"100%"}),eue=U.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),tue=U.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),nue=U.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),rue=({children:n,rootSelector:o,visible:i,width:a,height:l,onClose:s,closeIcon:u,preventOverlayClose:c,overlayBlur:d,overlayColor:f,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:_})=>{const j=rt(c?()=>null:s,i),P={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},T=Mle(n).map((e=>e?t.cloneElement(e,{inline:h}):null)),M=e.jsx(aue,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:x,left:C,zIndex:_,blur:d,children:e.jsxs(oue,Object.assign({ref:j,width:a,height:l,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},P,{children:[T,u&&e.jsx(iue,{inline:h,children:e.jsx(un,{name:"close",onClick:s,pointer:!0})})]}))}),A=document.querySelector(o||"#root");return i&&A?r.createPortal(M,A):null};rue.Header=U.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),rue.Text=U.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),rue.Body=U.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),an),rue.Footer=U.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),an);const oue=U.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),on),iue=U.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),aue=U.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:u,zIndex:c})=>({position:i||"absolute",top:a||(u||l||s?void 0:0),left:u||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:c||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),lue=t.forwardRef(((o,i)=>{var{children:a,options:s,items:u,listLabel:c,listText:d,itemsTitle:f,maxItems:p,placeholder:h,width:g,filter:m,restrictInput:v,disabled:y,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:S,addItem:k,removeItem:E,onTextChange:O,autoFocus:D}=o,_=l(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,P]=t.useState(D||!1),[T,M]=t.useState(!1),[A,R]=t.useState(""),{color:L,font:I,input:N}=n.useTheme(),$=rt((()=>P(!1)),j,w?[w,`${w} *`]:void 0),z=t.useRef(null),B=x&&!!c,F=e=>{e&&k(e)},K=()=>{const{current:e}=z;j||c||P(!0),null==e||e.focus()},V=()=>{const{current:e}=z;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:K,blur:V})));const H=e=>{R(e),O&&O(e)};t.useEffect((()=>{j||V()}),[j]);nt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(u.length>0){e.preventDefault();const t=u[u.length-1];E(t)}}),j&&!A,[u]);const U=s.filter((e=>!u.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${$le()}`),[]),Z=t.useMemo((()=>`multi-select-list-${$le()}`),[]),q=p?u.length>=p:void 0,G=y||!j||q,Y=()=>{const t=e.jsxs(due,{id:Z,expanded:j,padTop:j&&u.length>0,labeled:!!c,children:[d&&e.jsx(fue,{expanded:j,labeled:!!c,children:d}),a?a(j,!!y):u.map((t=>e.jsx(fse,{pill:!0,iconRight:j&&!y?e.jsx(un,{name:"close-circle",onClick:()=>E(t),pointer:!0}):void 0,disabled:y,children:t.label},t.id))),e.jsx(nse,Object.assign({},_,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:m,backgroundColor:"transparent",restrictInput:v,options:U,fontSize:I.size.md,placeholder:y||u.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:z,onChange:F,onTextChange:H,onError:e=>M(e),disabled:G,optionsParent:w?`#${Z}`:`#${W}`,autoFocus:D}))]});if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(sue,{width:g,ref:$,labeled:!!c,disabled:y,collapse:B,onClick:e=>{e.stopPropagation(),K()},children:[e.jsxs(uue,{collapse:B,id:W,expanded:j&&u.length>0,error:T,labeled:!!c,backgroundColor:C,borderless:S,children:[c?e.jsx(cue,{collapse:B,children:c}):Y(),e.jsxs(pue,{children:[p&&!b&&e.jsx(gue,{children:y&&f?e.jsxs(e.Fragment,{children:[u.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(hue,{error:u.length>=p,children:u.length}),"/",p," ",f]})}),u.length>0&&e.jsx(un,{name:j?"chevron-up":"chevron-down",color:L.brand,pointer:!0,onClick:e=>{e.stopPropagation(),P(!j)}})]})]}),c&&j&&Y()]})})),sue=U.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),uue=U.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),cue=U.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),due=U.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),fue=U.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),pue=U.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),hue=U.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),gue=U.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),mue=e=>e?+e:0,vue=U.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),an),yue=U.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),bue=U(yue)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),wue=U(yue)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),xue=U.span((({theme:e})=>({color:e.scale6}))),Cue=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u})=>{const c={margin:i,marginTop:a,marginBottom:l,marginRight:s,marginLeft:u},d=(n-r)/2,f=d*Math.PI*2,p=f-f*t/100,h=n/2;return e.jsxs(Sue,Object.assign({size:n},c,{children:[e.jsx(kue,{cx:h,cy:h,r:d,thickness:r}),e.jsx(Eue,{color:o,cx:h,cy:h,r:d,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:f,complete:p})]}))},Sue=U.svg((({size:e})=>({display:"block",width:e,height:e})),an),kue=U.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),Eue=U(kue)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),Oue=U.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),an),Due=U.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),_ue=n=>{var{backgroundColor:r,children:o,fontSize:i,disabled:a,label:s,options:u,placeholder:c="Select",placeholderColor:d,textOnly:f,value:p,width:h,onChange:g,afterShow:m,afterHide:v}=n,y=l(n,["backgroundColor","children","fontSize","disabled","label","options","placeholder","placeholderColor","textOnly","value","width","onChange","afterShow","afterHide"]);const[b,w]=t.useState(!1),[x,C]=t.useState(p||""),{margin:S,marginTop:k,marginBottom:E,marginRight:O,marginLeft:D}=y,_={margin:S,marginTop:k,marginBottom:E,marginRight:O,marginLeft:D};t.useEffect((()=>{p&&p!==x&&C(p)}),[p,x]);const j=!x&&s;return e.jsxs(Ew,Object.assign({placeholder:c,onOpenChange:e=>{w(e),m&&e&&m(),v&&!e&&v()},onSelectionChange:e=>{C(e),g&&g(e)},isDisabled:a,selectedKey:p?x:void 0},y,{children:[e.jsxs(jue,Object.assign({backgroundColor:r,textOnly:f,width:h,hasLabel:!!s,isDisabled:a,pointer:!0},_,{children:[e.jsxs(J1,{filled:!!x,disabled:a,children:[s,e.jsx(Pue,{fontSize:i,placeholderColor:d,isDisabled:a,style:({isPlaceholder:e})=>e&&j?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),e.jsx(un,{name:b?"caret-up":"caret-down",inheritColor:!0})]})),e.jsx(By,{}),e.jsx(Db,{offset:2,children:e.jsxs(Q1,{autoWidth:f,shouldFocusWrap:!0,children:[null==u?void 0:u.map((t=>e.jsx(e0,Object.assign({},t),t.id||t.value))),o]})})]}))};_ue.Item=e0,_ue.Section=r0;const jue=U(Tm)(X1),Pue=U(_w)((({theme:{input:e,font:t},fontSize:n,placeholderColor:r,isDisabled:o})=>({color:o?e.color.disabled:e.color.default,fontFamily:t.family.default,fontSize:n||t.size.lg,"&[data-placeholder]":{color:r||(o?e.color.disabled:e.color.placeholder)}}))),Tue=U.div(rn),Mue=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,Aue=e=>{const t={top:0,right:0,bottom:0,left:0},{padding:n,paddingTop:r,paddingRight:o,paddingBottom:i,paddingLeft:a}=e;if(n){const e=("string"==typeof n?n:n.toString()).split(" ").map(Mue);switch(e.length){case 1:t.top=t.right=t.bottom=t.left=e[0];break;case 2:t.top=t.bottom=e[0],t.right=t.left=e[1];break;case 3:t.top=e[0],t.right=t.left=e[1],t.bottom=e[2];break;case 4:t.top=e[0],t.right=e[1],t.bottom=e[2],t.left=e[3]}}return void 0!==r&&(t.top=Mue(r)),void 0!==o&&(t.right=Mue(o)),void 0!==i&&(t.bottom=Mue(i)),void 0!==a&&(t.left=Mue(a)),t},Rue=t=>{var{children:n,onClick:r,disabled:o}=t,i=l(t,["children","onClick","disabled"]);return e.jsx(Lue,Object.assign({isDisabled:o,onAction:r&&!o?r:void 0,hoverEffect:!!r&&!o},i,{children:n}))},Lue=U(Ww)((({theme:e,backgroundColor:t,isDisabled:n})=>({color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",opacity:n?.3:1,backgroundColor:t,borderTop:`1px solid ${e.table.borderColor}`,outline:"none",transition:"background-color 0.2s",position:"relative",zIndex:0})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"},"&:focus-visible":{backgroundColor:e.scale1}}),(({theme:e,padding:t="16px 24px",paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i,emphasis:a})=>{const l=Aue({padding:t,paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i}),{top:s,right:u,bottom:c,left:d}=l;let f;return!0===a?f=e.color.brand:"string"==typeof a&&(f=a),{"& > td":{padding:0,outline:"none","&:focus-visible":{outline:`${e.accent} solid 1px`}},"& > td > div":{paddingTop:`${s}px`,paddingBottom:`${c}px`},"& > td:first-of-type > div":{paddingLeft:d-2+"px",borderLeft:"2px solid transparent",borderLeftColor:f},"& > td:last-of-type > div":{paddingRight:`${u}px`}}}),(({height:e})=>({height:e}))),Iue=({spinnerSize:t})=>e.jsx(Rue,{height:"small"===t?49:57,children:e.jsx(Nue,{children:e.jsx(Px,{size:t,center:!0})})}),Nue=U(qw)((({theme:e})=>({color:e.scale6}))),$ue=U(Hw)((({theme:e})=>({"&[data-empty]":{textAlign:"center",color:e.table.color.body,fontSize:e.font.size.sm,borderTop:`1px solid ${e.table.borderColor}`,"& > tr:first-of-type > td:first-of-type":{paddingTop:16}}}))),zue=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},Bue=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:zue(t),alignItems:zue(n),flexDirection:e,gap:r})],Fue=U(qw)((({showDefault:e})=>e&&{opacity:.3}),on),Kue=U.div(Bue),Vue=U(tx)((({theme:e})=>({width:9,height:18,backgroundColor:e.scale4,marginLeft:"auto",backgroundClip:"content-box",border:"4px transparent",borderStyle:"none solid","&[data-resizable-direction=both]":{cursor:"col-resize"},"&[data-resizable-direction=left]":{cursor:"e-resize"},"&[data-resizable-direction=right]":{cursor:"w-resize"},"&[data-focus-visible]":{backgroundColor:e.accent}}))),Hue=({sortDirection:t})=>{const{color:r,scale4:o}=n.useTheme(),i="asc"===t?r.brand:o,a="desc"===t?r.brand:o;return e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M8.71005 14.71L11.3001 17.3C11.6901 17.69 12.3201 17.69 12.7101 17.3L15.3001 14.71C15.9301 14.08 15.4801 13 14.5901 13H9.41005C8.52005 13 8.08005 14.08 8.71005 14.71Z",fill:a}),e.jsx("path",{d:"M8.71005 8.88253L11.3001 6.29253C11.6901 5.90253 12.3201 5.90253 12.7101 6.29253L15.3001 8.88253C15.9301 9.51253 15.4801 10.5925 14.5901 10.5925H9.41005C8.52005 10.5925 8.08005 9.51253 8.71005 8.88253Z",fill:i})]})},Uue=t.createContext({}),Wue=U(Kw)((({theme:e,sorting:t,active:n})=>({textAlign:"left",verticalAlign:"middle",cursor:t?"pointer":void 0,color:n?e.scale10:e.table.color.header,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,"&:hover":{color:t?e.scale8:void 0}})),on),Zue=U.div(Bue),que=U(Bw)((({theme:e,padding:t="8px 24px",paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i,backgroundColor:a})=>{const l=Aue({padding:t,paddingTop:n,paddingRight:r,paddingBottom:o,paddingLeft:i}),{top:s,right:u,bottom:c,left:d}=l;return{"& > tr > th":{padding:0,outline:"none",backgroundColor:a||e.background0,position:"sticky",zIndex:1,top:0,"&:focus-visible":{outline:`${e.accent} solid 1px`}},"& > tr > th > div":{paddingTop:`${s}px`,paddingBottom:`${c}px`},"& > tr > th:first-of-type > div":{paddingLeft:`${d}px`},"& > tr > th:last-of-type > div":{paddingRight:`${u}px`}}})),Gue=n=>{var{children:r,data:o,onScrollEnd:i}=n,a=l(n,["children","data","onScrollEnd"]);const[s,u]=t.useState(o),[c,d]=t.useState(),f=o&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=o;if(c){const{key:t,dir:n}=c;e=lt.orderBy(o,t,n)}lt.isEqual(e,s)||u(e)}),[o,c]);const p=t.useMemo((()=>({activeColumn:c,setActiveColumn:d})),[c,d]);return e.jsx(Uue.Provider,{value:p,children:e.jsx(Yue,{onScroll:e=>{const t=e.target;t.scrollHeight-t.scrollTop===t.clientHeight&&i&&i()},children:e.jsx(Xue,Object.assign({},a,{children:f}))})})};Gue.Header=que,Gue.Column=n=>{var{children:r,sortKey:o,sorted:i,onClick:a,resize:s,direction:u,justify:c,align:d,gap:f}=n,p=l(n,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[h,g]=t.useState(i||"inactive"),{activeColumn:m,setActiveColumn:v}=t.useContext(Uue),y=o||i,b="asc"===h||"desc"===h,w={direction:u,justify:c,align:d,gap:f},x=e=>{if(g(e),v&&o){v("inactive"===e?void 0:{key:o,dir:e})}};return t.useEffect((()=>{!o||"asc"!==i&&"desc"!==i||x(i)}),[]),t.useEffect((()=>{i&&g(i)}),[i]),t.useEffect((()=>{const e=!m&&i;o&&m&&m.key!==o&&"inactive"!==h&&!e&&g("inactive")}),[m,h]),e.jsx(Wue,Object.assign({sorting:!!y,active:b},p,{children:e.jsxs(Zue,Object.assign({onClick:y||a?e=>{o?x("inactive"===h?"asc":"asc"===h?"desc":"inactive"):a&&a(e)}:void 0},w,{children:[e.jsx(sse,{children:r}),y&&e.jsx("span",{"aria-hidden":"true",children:e.jsx(un,{svg:e.jsx(Hue,{sortDirection:h}),marginLeft:-8})}),s&&e.jsx(Vue,{})]}))}))},Gue.Body=({children:t,emptyFallback:n,fetching:r,loading:o})=>e.jsxs($ue,{renderEmptyState:({isEmpty:e})=>e&&n?n:null,children:[o&&e.jsx(Iue,{}),!o&&t,r&&e.jsx(Iue,{spinnerSize:"small"})]}),Gue.Row=Rue,Gue.Cell=t=>{var{children:n,defaultValue:r,direction:o,justify:i,align:a,gap:s}=t,u=l(t,["children","defaultValue","direction","justify","align","gap"]);const c={direction:o,justify:i,align:a,gap:s},d=n||r;return e.jsx(Fue,Object.assign({showDefault:!!r&&!n},u,{children:e.jsx(Kue,Object.assign({},c,{children:"string"==typeof d?e.jsx(sse,{paddingRight:2,children:d}):d}))}))};const Yue=U(Mw)((({theme:e,backgroundColor:t})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:"100%",backgroundColor:t||e.background0}))),Xue=U(Nw)(an,on),Jue=U.div((({gap:e=8})=>({display:"flex",gap:e})),an),Que=U.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"})));const ece="dismissableLayer.update",tce="dismissableLayer.pointerDownOutside",nce="dismissableLayer.focusOutside";let rce;const oce=t.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ice=t.forwardRef(((e,n)=>{var r;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:s,onDismiss:u,...c}=e,d=t.useContext(oce),[f,p]=t.useState(null),h=null!==(r=null==f?void 0:f.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,g]=t.useState({}),m=Y(n,(e=>p(e))),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,C=w>=b,S=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(e),o=t.useRef(!1),i=t.useRef((()=>{}));return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){const t={originalEvent:e};function a(){lce(tce,r,t,{discrete:!0})}"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=a,n.addEventListener("click",i.current,{once:!0})):a()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...d.branches].some((e=>e.contains(t)));C&&!n&&(null==a||a(e),null==s||s(e),e.defaultPrevented||null==u||u())}),h),k=function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(e),o=t.useRef(!1);return t.useEffect((()=>{const e=e=>{if(e.target&&!o.current){lce(nce,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...d.branches].some((e=>e.contains(t)))||(null==l||l(e),null==s||s(e),e.defaultPrevented||null==u||u())}),h);return function(e,n=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=oe(e);t.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)}),[r,n])}((e=>{w===d.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),h),t.useEffect((()=>{if(f)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(rce=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ace(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=rce)}}),[f,h,o,d]),t.useEffect((()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ace())}),[f,d]),t.useEffect((()=>{const e=()=>g({});return document.addEventListener(ece,e),()=>document.removeEventListener(ece,e)}),[]),t.createElement(ae.div,X({},c,{ref:m,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,k.onFocusCapture),onBlurCapture:re(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,S.onPointerDownCapture)}))}));function ace(){const e=new CustomEvent(ece);document.dispatchEvent(e)}function lce(e,t,n,{discrete:o}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?function(e,t){e&&r.flushSync((()=>e.dispatchEvent(t)))}(i,a):i.dispatchEvent(a)}const sce=["top","right","bottom","left"],uce=Math.min,cce=Math.max,dce=Math.round,fce=Math.floor,pce=e=>({x:e,y:e}),hce={left:"right",right:"left",bottom:"top",top:"bottom"},gce={start:"end",end:"start"};function mce(e,t,n){return cce(e,uce(t,n))}function vce(e,t){return"function"==typeof e?e(t):e}function yce(e){return e.split("-")[0]}function bce(e){return e.split("-")[1]}function wce(e){return"x"===e?"y":"x"}function xce(e){return"y"===e?"height":"width"}function Cce(e){return["top","bottom"].includes(yce(e))?"y":"x"}function Sce(e){return wce(Cce(e))}function kce(e){return e.replace(/start|end/g,(e=>gce[e]))}function Ece(e){return e.replace(/left|right|bottom|top/g,(e=>hce[e]))}function Oce(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Dce(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function _ce(e,t,n){let{reference:r,floating:o}=e;const i=Cce(t),a=Sce(t),l=xce(a),s=yce(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(bce(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function jce(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=vce(t,e),h=Oce(p),g=l[f?"floating"===d?"reference":"floating":d],m=Dce(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=Dce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(m.top-w.top+h.top)/b.y,bottom:(w.bottom-m.bottom+h.bottom)/b.y,left:(m.left-w.left+h.left)/b.x,right:(w.right-m.right+h.right)/b.x}}function Pce(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tce(e){return sce.some((t=>e[t]>=0))}const Mce=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=yce(n),l=bce(n),s="y"===Cce(n),u=["left","top"].includes(a)?-1:1,c=i&&s?-1:1,d=vce(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}}};function Ace(e){return Ice(e)?(e.nodeName||"").toLowerCase():"#document"}function Rce(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Lce(e){var t;return null==(t=(Ice(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ice(e){return e instanceof Node||e instanceof Rce(e).Node}function Nce(e){return e instanceof Element||e instanceof Rce(e).Element}function $ce(e){return e instanceof HTMLElement||e instanceof Rce(e).HTMLElement}function zce(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Rce(e).ShadowRoot)}function Bce(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Uce(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Fce(e){return["table","td","th"].includes(Ace(e))}function Kce(e){const t=Vce(),n=Uce(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Vce(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Hce(e){return["html","body","#document"].includes(Ace(e))}function Uce(e){return Rce(e).getComputedStyle(e)}function Wce(e){return Nce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Zce(e){if("html"===Ace(e))return e;const t=e.assignedSlot||e.parentNode||zce(e)&&e.host||Lce(e);return zce(t)?t.host:t}function qce(e){const t=Zce(e);return Hce(t)?e.ownerDocument?e.ownerDocument.body:e.body:$ce(t)&&Bce(t)?t:qce(t)}function Gce(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=qce(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Rce(o);return i?t.concat(a,a.visualViewport||[],Bce(o)?o:[],a.frameElement&&n?Gce(a.frameElement):[]):t.concat(o,Gce(o,[],n))}function Yce(e){const t=Uce(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$ce(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=dce(n)!==i||dce(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Xce(e){return Nce(e)?e:e.contextElement}function Jce(e){const t=Xce(e);if(!$ce(t))return pce(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Yce(t);let a=(i?dce(n.width):n.width)/r,l=(i?dce(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Qce=pce(0);function ede(e){const t=Rce(e);return Vce()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qce}function tde(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Xce(e);let a=pce(1);t&&(r?Nce(r)&&(a=Jce(r)):a=Jce(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Rce(e))&&t}(i,n,r)?ede(i):pce(0);let s=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=Rce(i),t=r&&Nce(r)?Rce(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Jce(o),t=o.getBoundingClientRect(),r=Uce(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=i,u+=a,n=Rce(o),o=n.frameElement}}return Dce({width:c,height:d,x:s,y:u})}const nde=[":popover-open",":modal"];function rde(e){return nde.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ode(e){return tde(Lce(e)).left+Wce(e).scrollLeft}function ide(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Rce(e),r=Lce(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=Vce();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=Lce(e),n=Wce(e),r=e.ownerDocument.body,o=cce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=cce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ode(e);const l=-n.scrollTop;return"rtl"===Uce(r).direction&&(a+=cce(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(Lce(e));else if(Nce(t))r=function(e,t){const n=tde(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$ce(e)?Jce(e):pce(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=ede(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Dce(r)}function ade(e,t){const n=Zce(e);return!(n===t||!Nce(n)||Hce(n))&&("fixed"===Uce(n).position||ade(n,t))}function lde(e,t,n){const r=$ce(t),o=Lce(t),i="fixed"===n,a=tde(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=pce(0);if(r||!r&&!i)if(("body"!==Ace(t)||Bce(o))&&(l=Wce(t)),r){const e=tde(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ode(o));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function sde(e,t){return $ce(e)&&"fixed"!==Uce(e).position?t?t(e):e.offsetParent:null}function ude(e,t){const n=Rce(e);if(!$ce(e)||rde(e))return n;let r=sde(e,t);for(;r&&Fce(r)&&"static"===Uce(r).position;)r=sde(r,t);return r&&("html"===Ace(r)||"body"===Ace(r)&&"static"===Uce(r).position&&!Kce(r))?n:r||function(e){let t=Zce(e);for(;$ce(t)&&!Hce(t);){if(Kce(t))return t;t=Zce(t)}return null}(e)||n}const cde={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Lce(r),l=!!t&&rde(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=pce(1);const c=pce(0),d=$ce(r);if((d||!d&&!i)&&(("body"!==Ace(r)||Bce(a))&&(s=Wce(r)),$ce(r))){const e=tde(r);u=Jce(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:Lce,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Gce(e,[],!1).filter((e=>Nce(e)&&"body"!==Ace(e))),o=null;const i="fixed"===Uce(e).position;let a=i?Zce(e):e;for(;Nce(a)&&!Hce(a);){const t=Uce(a),n=Kce(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Bce(a)&&!n&&ade(e,a))?r=r.filter((e=>e!==a)):o=t,a=Zce(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=ide(t,n,o);return e.top=cce(r.top,e.top),e.right=uce(r.right,e.right),e.bottom=uce(r.bottom,e.bottom),e.left=cce(r.left,e.left),e}),ide(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ude,getElementRects:async function(e){const t=this.getOffsetParent||ude,n=this.getDimensions;return{reference:lde(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Yce(e);return{width:t,height:n}},getScale:Jce,isElement:Nce,isRTL:function(e){return"rtl"===Uce(e).direction}};function dde(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,u=Xce(e),c=o||i?[...u?Gce(u):[],...Gce(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&l?function(e,t){let n,r=null;const o=Lce(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;const p={rootMargin:-fce(c)+"px "+-fce(o.clientWidth-(u+d))+"px "+-fce(o.clientHeight-(c+f))+"px "+-fce(u)+"px",threshold:cce(0,uce(1,s))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),i}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!s&&h.observe(u),h.observe(t));let g=s?tde(e):null;return s&&function t(){const r=tde(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const fde=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=vce(e,t),u={x:n,y:r},c=await jce(t,s),d=Cce(yce(o)),f=wce(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=mce(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=mce(h+c["y"===d?"top":"left"],h,h-c[e])}const g=l.fn({...t,[f]:p,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r}}}}},pde=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=vce(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=yce(o),y=yce(l)===l,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),w=f||(y||!g?[Ece(l)]:function(e){const t=Ece(e);return[kce(e),t,kce(t)]}(l));f||"none"===h||w.push(...function(e,t,n,r){const o=bce(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(yce(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(kce)))),i}(l,g,h,b));const x=[l,...w],C=await jce(t,m),S=[];let k=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=bce(e),o=Sce(e),i=xce(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ece(a)),[a,Ece(a)]}(o,a,b);S.push(C[e[0]],C[e[1]])}if(k=[...k,{placement:o,overflows:S}],!S.every((e=>e<=0))){var E,O;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(O=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=k.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},hde=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...l}=vce(e,t),s=await jce(t,l),u=yce(n),c=bce(n),d="y"===Cce(n),{width:f,height:p}=r.floating;let h,g;"top"===u||"bottom"===u?(h=u,g=c===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,h="end"===c?"top":"bottom");const m=p-s[h],v=f-s[g],y=!t.middlewareData.shift;let b=m,w=v;if(d){const e=f-s.left-s.right;w=c||y?uce(v,e):e}else{const e=p-s.top-s.bottom;b=c||y?uce(m,e):e}if(y&&!c){const e=cce(s.left,0),t=cce(s.right,0),n=cce(s.top,0),r=cce(s.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:cce(s.left,s.right)):b=p-2*(0!==n||0!==r?n+r:cce(s.top,s.bottom))}await a({...t,availableWidth:w,availableHeight:b});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}},gde=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=vce(e,t);switch(r){case"referenceHidden":{const e=Pce(await jce(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Tce(e)}}}case"escaped":{const e=Pce(await jce(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Tce(e)}}}default:return{}}}}},mde=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=vce(e,t)||{};if(null==u)return{};const d=Oce(c),f={x:n,y:r},p=Sce(o),h=xce(p),g=await a.getDimensions(u),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],x=f[p]-i.reference[p],C=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=C?C[b]:0;S&&await(null==a.isElement?void 0:a.isElement(C))||(S=l.floating[b]||i.floating[h]);const k=w/2-x/2,E=S/2-g[h]/2-1,O=uce(d[v],E),D=uce(d[y],E),_=O,j=S-g[h]-D,P=S/2-g[h]/2+k,T=mce(_,P,j),M=!s.arrow&&null!=bce(o)&&P!==T&&i.reference[h]/2-(P<_?O:D)-g[h]/2<0,A=M?P<_?P-_:P-j:0;return{[p]:f[p]+A,data:{[p]:T,centerOffset:P-T-A,...M&&{alignmentOffset:A}},reset:M}}}),vde=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=vce(e,t),c={x:n,y:r},d=Cce(o),f=wce(d);let p=c[f],h=c[d];const g=vce(l,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(s){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;const e="y"===f?"width":"height",t=["top","left"].includes(yce(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},yde=(e,t,n)=>{const r=new Map,o={platform:cde,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=_ce(u,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:m,y:v,data:y,reset:b}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,d=null!=v?v:d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=_ce(u,f,s))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},bde=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?mde({element:n.current,padding:r}).fn(t):{}:n?mde({element:n,padding:r}).fn(t):{};var o}});var wde="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function xde(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!xde(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!xde(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Cde(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sde(e,t){const n=Cde(e);return Math.round(t*n)/n}function kde(e){const t=i.useRef(e);return wde((()=>{t.current=e})),t}const Ede=t.forwardRef(((e,n)=>{const{children:r,width:o=10,height:i=5,...a}=e;return t.createElement(ae.svg,X({},a,{ref:n,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:t.createElement("polygon",{points:"0,0 30,0 15,10"}))}));const Ode="Popper",[Dde,_de]=Z(Ode),[jde,Pde]=Dde(Ode),Tde=t.forwardRef(((e,n)=>{const{__scopePopper:r,virtualRef:o,...i}=e,a=Pde("PopperAnchor",r),l=t.useRef(null),s=Y(n,l);return t.useEffect((()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)})),o?null:t.createElement(ae.div,X({},i,{ref:s}))})),Mde="PopperContent",[Ade,Rde]=Dde(Mde),Lde=t.forwardRef(((e,n)=>{var r,o,l,s,u,c,d,f;const{__scopePopper:p,side:h="bottom",sideOffset:g=0,align:m="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:C="partial",hideWhenDetached:S=!1,updatePositionStrategy:k="optimized",onPlaced:E,...O}=e,D=Pde(Mde,p),[_,j]=t.useState(null),P=Y(n,(e=>j(e))),[T,M]=t.useState(null),A=function(e){const[n,r]=t.useState(void 0);return le((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),n}(T),R=null!==(r=null==A?void 0:A.width)&&void 0!==r?r:0,L=null!==(o=null==A?void 0:A.height)&&void 0!==o?o:0,I=h+("center"!==m?"-"+m:""),N="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},$=Array.isArray(w)?w:[w],z=$.length>0,B={padding:N,boundary:$.filter(zde),altBoundary:z},{refs:F,floatingStyles:K,placement:V,isPositioned:H,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:s}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=i.useState(r);xde(h,r)||g(r);const[m,v]=i.useState(null),[y,b]=i.useState(null),w=i.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),x=i.useCallback((e=>{e!==E.current&&(E.current=e,b(e))}),[]),C=l||m,S=s||y,k=i.useRef(null),E=i.useRef(null),O=i.useRef(f),D=null!=c,_=kde(c),j=kde(o),P=i.useCallback((()=>{if(!k.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};j.current&&(e.platform=j.current),yde(k.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};T.current&&!xde(O.current,t)&&(O.current=t,a.flushSync((()=>{p(t)})))}))}),[h,t,n,j]);wde((()=>{!1===d&&O.current.isPositioned&&(O.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[d]);const T=i.useRef(!1);wde((()=>(T.current=!0,()=>{T.current=!1})),[]),wde((()=>{if(C&&(k.current=C),S&&(E.current=S),C&&S){if(_.current)return _.current(C,S,P);P()}}),[C,S,P,_,D]);const M=i.useMemo((()=>({reference:k,floating:E,setReference:w,setFloating:x})),[w,x]),A=i.useMemo((()=>({reference:C,floating:S})),[C,S]),R=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!A.floating)return e;const t=Sde(A.floating,f.x),r=Sde(A.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...Cde(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,A.floating,f.x,f.y]);return i.useMemo((()=>({...f,update:P,refs:M,elements:A,floatingStyles:R})),[f,P,M,A,R])}({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>dde(...e,{animationFrame:"always"===k}),elements:{reference:D.anchor},middleware:[Mce({mainAxis:g+L,alignmentAxis:v}),b&&fde({mainAxis:!0,crossAxis:!1,limiter:"partial"===C?vde():void 0,...B}),b&&pde({...B}),hde({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),T&&bde({element:T,padding:y}),Bde({arrowWidth:R,arrowHeight:L}),S&&gde({strategy:"referenceHidden",...B})]}),[W,Z]=Fde(V),q=oe(E);le((()=>{H&&(null==q||q())}),[H,q]);const G=null===(l=U.arrow)||void 0===l?void 0:l.x,J=null===(s=U.arrow)||void 0===s?void 0:s.y,Q=0!==(null===(u=U.arrow)||void 0===u?void 0:u.centerOffset),[ee,te]=t.useState();return le((()=>{_&&te(window.getComputedStyle(_).zIndex)}),[_]),t.createElement("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:H?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(c=U.transformOrigin)||void 0===c?void 0:c.x,null===(d=U.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:e.dir},t.createElement(Ade,{scope:p,placedSide:W,onArrowChange:M,arrowX:G,arrowY:J,shouldHideArrow:Q},t.createElement(ae.div,X({"data-side":W,"data-align":Z},O,{ref:P,style:{...O.style,animation:H?void 0:"none",opacity:null!==(f=U.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),Ide="PopperArrow",Nde={top:"bottom",right:"left",bottom:"top",left:"right"},$de=t.forwardRef((function(e,n){const{__scopePopper:r,...o}=e,i=Rde(Ide,r),a=Nde[i.placedSide];return t.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},t.createElement(Ede,X({},o,{ref:n,style:{...o.style,display:"block"}})))}));function zde(e){return null!==e}const Bde=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:l,rects:s,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Fde(l),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?g:`${m}px`,b=-f+"px"):"top"===p?(y=c?g:`${m}px`,b=`${s.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?g:`${v}px`):"left"===p&&(y=`${s.floating.width+f}px`,b=c?g:`${v}px`),{data:{x:y,y:b}}}});function Fde(e){const[t,n="center"]=e.split("-");return[t,n]}const Kde=e=>{const{__scopePopper:n,children:r}=e,[o,i]=t.useState(null);return t.createElement(jde,{scope:n,anchor:o,onAnchorChange:i},r)},Vde=Tde,Hde=Lde,Ude=$de,Wde=t.forwardRef(((e,n)=>{var o;const{container:i=(null===globalThis||void 0===globalThis||null===(o=globalThis.document)||void 0===o?void 0:o.body),...a}=e;return i?r.createPortal(t.createElement(ae.div,X({},a,{ref:n})),i):null})),Zde=t.forwardRef(((e,n)=>t.createElement(ae.span,X({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[qde,Gde]=Z("Tooltip",[_de]),Yde=_de(),Xde=700,Jde="tooltip.open",[Qde,efe]=qde("TooltipProvider"),tfe="Tooltip",[nfe,rfe]=qde(tfe),ofe="TooltipTrigger",ife=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=rfe(ofe,r),a=efe(ofe,r),l=Yde(r),s=Y(n,t.useRef(null),i.onTriggerChange),u=t.useRef(!1),c=t.useRef(!1),d=t.useCallback((()=>u.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),t.createElement(Vde,W({asChild:!0},l),t.createElement(ae.button,W({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:s,onPointerMove:re(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(c.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0))})),onPointerLeave:re(e.onPointerLeave,(()=>{i.onTriggerLeave(),c.current=!1})),onPointerDown:re(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})})),onFocus:re(e.onFocus,(()=>{u.current||i.onOpen()})),onBlur:re(e.onBlur,i.onClose),onClick:re(e.onClick,i.onClose)})))})),afe="TooltipPortal",[lfe,sfe]=qde(afe,{forceMount:void 0}),ufe="TooltipContent",cfe=t.forwardRef(((e,n)=>{const r=sfe(ufe,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,l=rfe(ufe,e.__scopeTooltip);return t.createElement(se,{present:o||l.open},l.disableHoverableContent?t.createElement(hfe,W({side:i},a,{ref:n})):t.createElement(dfe,W({side:i},a,{ref:n})))})),dfe=t.forwardRef(((e,n)=>{const r=rfe(ufe,e.__scopeTooltip),o=efe(ufe,e.__scopeTooltip),i=t.useRef(null),a=Y(n,i),[l,s]=t.useState(null),{trigger:u,onClose:c}=r,d=i.current,{onPointerInTransitChange:f}=o,p=t.useCallback((()=>{s(null),f(!1)}),[f]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);s(a),f(!0)}),[f]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(u&&d){const e=e=>h(e,d),t=e=>h(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}}),[u,d,h,p]),t.useEffect((()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,l);r?p():o&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,d,l,c,p]),t.createElement(hfe,W({},e,{ref:a}))})),[ffe,pfe]=qde(tfe,{isInside:!1}),hfe=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...s}=e,u=rfe(ufe,r),c=Yde(r),{onClose:d}=u;return t.useEffect((()=>(document.addEventListener(Jde,d),()=>document.removeEventListener(Jde,d))),[d]),t.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,d]),t.createElement(ice,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:d},t.createElement(Hde,W({"data-state":u.stateAttribute},c,s,{ref:n,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(ffe,{scope:r,isInside:!0},t.createElement(Zde,{id:u.contentId,role:"tooltip"},i||o))))}));const gfe=e=>{const{__scopeTooltip:n,delayDuration:r=Xde,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[l,s]=t.useState(!0),u=t.useRef(!1),c=t.useRef(0);return t.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),t.createElement(Qde,{scope:n,isOpenDelayed:l,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(c.current),s(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:t.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i},a)},mfe=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:s}=e,u=efe(tfe,e.__scopeTooltip),c=Yde(n),[d,f]=t.useState(null),p=fe(),h=t.useRef(0),g=null!=l?l:u.disableHoverableContent,m=null!=s?s:u.delayDuration,v=t.useRef(!1),[y=!1,b]=ie({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(Jde))):u.onClose(),null==a||a(e)}}),w=t.useMemo((()=>y?v.current?"delayed-open":"instant-open":"closed"),[y]),x=t.useCallback((()=>{window.clearTimeout(h.current),v.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),S=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{v.current=!0,b(!0)}),m)}),[m,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(Kde,c,t.createElement(nfe,{scope:n,contentId:p,open:y,stateAttribute:w,trigger:d,onTriggerChange:f,onTriggerEnter:t.useCallback((()=>{u.isOpenDelayed?S():x()}),[u.isOpenDelayed,S,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},vfe=ife,yfe=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=rfe(afe,n);return t.createElement(lfe,{scope:n,forceMount:r},t.createElement(se,{present:r||a.open},t.createElement(Wde,{asChild:!0,container:i},o)))},bfe=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=Yde(r);return pfe("TooltipArrow",r).isInside?null:t.createElement(Ude,W({},i,o,{ref:n}))})),wfe=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},xfe=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:u,maxWidth:c,textAlign:d,open:f,disabled:p,id:h,bgColor:g,color:m,container:v,afterShow:y,afterHide:b}=t,w=l(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(gfe,{children:e.jsxs(mfe,{delayDuration:0,onOpenChange:e=>{p||(y&&e&&y(),b&&!e&&b())},open:f,children:[e.jsx(vfe,{asChild:!0,children:e.jsx(Sfe,Object.assign({},w,{children:n}))}),e.jsx(yfe,{container:v,children:!p&&e.jsxs(Cfe,{side:wfe(i).side,align:wfe(i).align,sideOffset:a,zIndex:s,width:u,maxWidth:c,textAlign:d,id:h,bgColor:g,textColor:m,children:[o||r,e.jsx(bfe,{className:"tooltip-arrow",width:12,height:8})]})})]})})},Cfe=U(cfe,{shouldForwardProp:e=>fx(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:l,font:s}=e,u=l.background,c=o||u;return{backgroundColor:c,boxShadow:e.elevation1,color:i||l.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:c,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),Sfe=U.div({display:"inline-flex"}),kfe=U.div((({theme:e})=>({color:e.tooltip.color.default}))),Efe=U.div((({theme:e})=>({color:e.tooltip.color.subtext})));xfe.Header=kfe,xfe.Body=Efe;const Ofe=U.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),an),Dfe=U.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),_fe=U.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),jfe=U.div({display:"flex",flexDirection:"column"}),Pfe=U.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Tfe=U.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Mfe=U.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),Afe=U.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Rfe=U.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var Lfe,Ife={exports:{}};Lfe=Ife,function(){function e(e,t,n){return e.call.apply(e.bind,arguments)}function t(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?e:t).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function a(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function l(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function s(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function c(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){c&&o&&s&&(c(u),c=null)}t=a(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,s=!0,u=null,c=n||null;i?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),l(e,"head",t)}function f(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=a(e,"script",{src:t}),l=!1;return i.onload=i.onreadystatechange=function(){l||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(l=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){l||(l=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function p(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,m(e)}}function g(e,t){e.c=t,m(e)}function m(e){0==e.a&&e.c&&(e.c(),e.c=null)}function v(e){this.a=e||"-"}function y(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function b(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function w(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new v("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function k(e){if(e.g){var t=c(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(e.f,n,r)}E(e,"inactive")}function E(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,w(n)):e.h[t]())}function O(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function _(e){l(e.c,"body",e.a)}function j(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+b(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function P(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function T(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=j(e=new y(this.a.c+",serif",w(this.a))),this.g.a.style.cssText=e,e=j(e=new y(this.a.c+",sans-serif",w(this.a))),this.h.a.style.cssText=e,e=j(e=new y("serif",w(this.a))),this.j.a.style.cssText=e,e=j(e=new y("sans-serif",w(this.a))),this.m.a.style.cssText=e,_(this.g),_(this.h),_(this.j),_(this.m)}v.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},P.prototype.start=function(){var e=this.c.o.document,t=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+b(e.c)}(t.a),t.h).then((function(e){1<=e.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var M={D:"serif",C:"sans-serif"},A=null;function R(){if(null===A){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);A=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return A}function L(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[r]])return!0;return!1}function I(e){var t,o=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=o===e.f.serif&&i===e.f["sans-serif"])||(t=R()&&L(e,o,i)),t?r()-e.A>=e.w?R()&&L(e,o,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(n((function(){I(this)}),e),50)}(e):N(e,e.v)}function N(e,t){setTimeout(n((function(){s(this.g.a),s(this.h.a),s(this.j.a),s(this.m.a),t(this.a)}),e),0)}function $(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}T.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),I(this)};var z=null;function B(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),E(e,"active")):k(e.a))}function F(e){this.j=e,this.a=new O,this.h=0,this.f=this.g=!0}function K(e,t,r,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===r.length&&a)k(t.a);else{t.f+=r.length,a&&(t.j=a);var s,c=[];for(s=0;s<r.length;s++){var d=r[s],f=l[d.c],p=t.a,h=d;if(p.g&&u(p.f,[p.a.c("wf",h.c,w(h).toString(),"loading")]),E(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new P(n(t.g,t),n(t.h,t),t.c,d,t.s,f):new T(n(t.g,t),n(t.h,t),t.c,d,t.s,e,f),c.push(p)}for(s=0;s<c.length;s++)c[s].start()}}),0)}function V(e,t){this.c=e,this.a=t}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e||W,this.a=[],this.f=[],this.g=t||""}$.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,w(e).toString(),"active")],[t.a.c("wf",e.c,w(e).toString(),"loading"),t.a.c("wf",e.c,w(e).toString(),"inactive")]),E(t,"fontactive",e),this.m=!0,B(this)},$.prototype.h=function(e){var t=this.a;if(t.g){var n=c(t.f,t.a.c("wf",e.c,w(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,w(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,w(e).toString(),"inactive")),u(t.f,r,o)}E(t,"fontinactive",e),B(this)},F.prototype.load=function(e){this.c=new o(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),E(e,"loading")}(t),r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new $(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},V.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new y(s,n))):a.push(new y(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;f(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},H.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new p;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],h(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),u=0;u<s.length;u+=1)l.push(new y(r[0],s[u]));else l.push(new y(r[0]));g(a,(function(){e(l,i)}))};var W="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Y={i:"i",italic:"i",n:"n",normal:"n"},X=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.c=e,this.a=t}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.c=e,this.a=t}function te(e,t){this.c=e,this.f=t,this.a=[]}J.prototype.load=function(e){var t=new p,n=this.c,r=new U(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new Z(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,u=0;u<s;u++){var c;if((c=l[u]).match(/^[\w-]+$/))if(null==(d=X.exec(c.toLowerCase())))c="";else{if(c=null==(c=d[2])||""==c?"n":Y[c],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));c=[c,d].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=q[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=q[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new y(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),h(t)),g(t,(function(){e(i.a,i.c,Q)}))},ee.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?f(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new y(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},te.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new y(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},f(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ne=new F(window);ne.a.c.custom=function(e,t){return new H(t,e)},ne.a.c.fontdeck=function(e,t){return new te(t,e)},ne.a.c.monotype=function(e,t){return new V(t,e)},ne.a.c.typekit=function(e,t){return new ee(t,e)},ne.a.c.google=function(e,t){return new J(t,e)};var re={load:n(ne.load,ne)};Lfe.exports?Lfe.exports=re:(window.WebFont=re,window.WebFontConfig&&ne.load(window.WebFontConfig))}();var Nfe=it(Ife.exports);const $fe="#0074F4",zfe="#FF6068",Bfe="#FF9900",Ffe="#F0BB00",Kfe="#00C242",Vfe="#001D32",Hfe="#FFFFFF",Ufe={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:$fe,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:ur(.95,$fe),brandTint1:ur(.9,$fe),brandTint2:ur(.8,$fe),brandTint3:ur(.7,$fe),brandTint4:ur(.6,$fe),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:zfe,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:ur(.95,zfe),errorTint1:ur(.9,zfe),errorTint2:ur(.8,zfe),warning:Bfe,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:ur(.95,Bfe),warningTint1:ur(.9,Bfe),warningTint2:ur(.8,Bfe),alert:Ffe,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:ur(.95,Ffe),alertTint1:ur(.9,Ffe),alertTint2:ur(.8,Ffe),success:Kfe,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:ur(.95,Kfe),successTint1:ur(.9,Kfe),successTint2:ur(.8,Kfe),grayscale0:ur(.95,Vfe),grayscale1:ur(.9,Vfe),grayscale2:ur(.8,Vfe),grayscale3:ur(.7,Vfe),grayscale4:ur(.6,Vfe),grayscale5:ur(.5,Vfe),grayscale6:ur(.4,Vfe),grayscale7:ur(.3,Vfe),grayscale8:ur(.2,Vfe),grayscale9:ur(.1,Vfe),grayscale10:Vfe,contrast0:ur(.95,Hfe),contrast1:ur(.9,Hfe),contrast2:ur(.8,Hfe),contrast3:ur(.7,Hfe),contrast4:ur(.6,Hfe),contrast5:ur(.5,Hfe),contrast6:ur(.4,Hfe),contrast7:ur(.3,Hfe),contrast8:ur(.2,Hfe),contrast9:ur(.1,Hfe),contrast10:Hfe};var Wfe={color:Ufe,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:Zfe}=Wfe;var qfe={small:{height:28,iconSize:18,font:Zfe.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:Zfe.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:Zfe.size.lg,padding:14,iconOnlyPadding:6}};const Gfe="#FFFFFF",Yfe={scale0:Ufe.grayscale0,scale1:Ufe.grayscale1,scale2:Ufe.grayscale2,scale3:Ufe.grayscale3,scale4:Ufe.grayscale4,scale5:Ufe.grayscale5,scale6:Ufe.grayscale6,scale7:Ufe.grayscale7,scale8:Ufe.grayscale8,scale9:Ufe.grayscale9,scale10:Ufe.grayscale10,accent:Ufe.brand,accentShade:Ufe.brandShade1,background0:Gfe,background1:Gfe,background2:Gfe,background3:Gfe,background4:Gfe,background5:Gfe},Xfe="#FFFFFF",Jfe=Ufe.grayscale0,Qfe=Ufe.grayscale1,epe=Ufe.grayscale2,tpe=Ufe.grayscale3,npe=Ufe.grayscale4,rpe=Ufe.grayscale6,ope=Ufe.grayscale8,ipe=Ufe.grayscale9,ape=Ufe.grayscale10,lpe=Object.assign(Object.assign(Object.assign({},Wfe),Yfe),{name:"light",button:Object.assign(Object.assign({},qfe),{primary:{color:{default:Xfe,hover:Xfe,active:Xfe},outlineColor:{default:ape,hover:ape,active:ape},background:{default:Ufe.brand,hover:Ufe.brandShade1,active:Ufe.brandShade2},outlineBackground:{default:Ufe.brandTint0,hover:Ufe.brandTint1,active:Ufe.brandTint2},border:{default:Ufe.brand,hover:Ufe.brandShade1,active:Ufe.brandShade2},divider:epe},secondary:{color:{default:ape,hover:ape,active:ape},outlineColor:{default:ape,hover:ape,active:ape},background:{default:Qfe,hover:epe,active:tpe},outlineBackground:{default:Qfe,hover:epe,active:tpe},border:{default:epe,hover:epe,active:epe},divider:epe},positive:{color:{default:Xfe,hover:Xfe,active:Xfe},outlineColor:{default:ape,hover:ape,active:ape},background:{default:Ufe.success,hover:Ufe.successShade1,active:Ufe.successShade2},outlineBackground:{default:Ufe.successTint0,hover:Ufe.successTint1,active:Ufe.successTint2},border:{default:Ufe.success,hover:Ufe.successShade1,active:Ufe.successShade2},divider:epe},negative:{color:{default:Xfe,hover:Xfe,active:Xfe},outlineColor:{default:ape,hover:ape,active:ape},background:{default:Ufe.error,hover:Ufe.errorShade1,active:Ufe.errorShade2},outlineBackground:{default:Ufe.errorTint0,hover:Ufe.errorTint1,active:Ufe.errorTint2},border:{default:Ufe.error,hover:Ufe.errorShade1,active:Ufe.errorShade2},divider:epe},caution:{color:{default:Xfe,hover:Xfe,active:Xfe},outlineColor:{default:ape,hover:ape,active:ape},background:{default:Ufe.warning,hover:Ufe.warningShade1,active:Ufe.warningShade2},outlineBackground:{default:Ufe.warningTint0,hover:Ufe.warningTint1,active:Ufe.warningTint2},border:{default:Ufe.warning,hover:Ufe.warningShade1,active:Ufe.warningShade2},divider:epe},subtle:{color:{default:Ufe.brand,hover:Ufe.brand,active:Ufe.brand},outlineColor:{default:Ufe.brand,hover:Ufe.brand,active:Ufe.brand},secondaryColor:{default:ape,hover:ape,active:ape},positiveColor:{default:Ufe.success,hover:Ufe.success,active:Ufe.success},negativeColor:{default:Ufe.error,hover:Ufe.error,active:Ufe.error},cautionColor:{default:Ufe.warning,hover:Ufe.warning,active:Ufe.warning},background:{default:"transparent",hover:Qfe,active:epe},outlineBackground:{default:"transparent",hover:Qfe,active:epe},border:{default:"transparent",hover:epe,active:epe},divider:epe},link:{color:{default:Ufe.brand,hover:Ufe.brandShade1,active:Ufe.brandShade2},outlineColor:{default:Ufe.brand,hover:Ufe.brandShade1,active:Ufe.brandShade2},secondaryColor:{default:ope,hover:ipe,active:ape},positiveColor:{default:Ufe.success,hover:Ufe.successShade1,active:Ufe.successShade2},negativeColor:{default:Ufe.error,hover:Ufe.errorShade1,active:Ufe.errorShade2},cautionColor:{default:Ufe.warning,hover:Ufe.warningShade1,active:Ufe.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:npe,hover:npe,active:npe},outlineColor:{default:npe,hover:npe,active:npe},background:{default:Qfe,hover:Qfe,active:Qfe},outlineBackground:{default:Jfe,hover:Jfe,active:Jfe},border:{default:Qfe,hover:Qfe,active:Qfe},divider:Qfe},color:{default:Xfe}}),calendar:{background:{container:Ufe.contrast10,hover:Qfe,active:Ufe.brand,activeHover:Ufe.brandShade1,activeRange:Ufe.brandTint4},color:{disabled:npe,default:ape,active:Ufe.contrast10,current:Ufe.brand,outside:rpe,weekday:ope,monthYear:ope,iconDefault:rpe,iconDisabled:epe,iconHover:ape}},defaultBorder:`1px solid ${Qfe}`,formControl:{color:{default:ope,hover:ape,active:Ufe.brand,activeHover:Ufe.brandShade1,disabled:npe}},input:{borderRadius:4,background:{default:Jfe,hover:Qfe,focused:Qfe,disabled:Jfe},color:{default:ape,disabled:npe,placeholder:rpe,description:rpe,descriptionError:Ufe.error},borderColor:{default:rpe,hover:ope,focused:Ufe.brand,disabled:npe,error:Ufe.error},labelColor:{default:ope,hover:ope,filled:rpe,focused:Ufe.brand,disabled:npe}},menu:{background:Xfe},menuItem:{borderColor:Ufe.brand,background:{active:Jfe,hover:Qfe,inactive:"transparent"},color:{active:ape,hover:ape,inactive:rpe}},modal:{background:Ufe.contrast10,color:{header:ape,body:rpe}},options:{background:Ufe.contrast10},optionItem:{background:{active:Qfe,inactive:"transparent"},color:{active:ape,inactive:ape,accent:Ufe.brand}},table:{color:{header:rpe,body:ape},borderColor:Qfe},toast:{color:ape,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:ope,info:Ufe.brand,success:Ufe.success,warning:Ufe.warning,error:Ufe.error}},toggle:{slider:Ufe.contrast10},tooltip:{background:"#FFF",color:{default:ape,subtext:rpe}}}),spe={scale0:Ufe.contrast0,scale1:Ufe.contrast1,scale2:Ufe.contrast2,scale3:Ufe.contrast3,scale4:Ufe.contrast4,scale5:Ufe.contrast5,scale6:Ufe.contrast6,scale7:Ufe.contrast7,scale8:Ufe.contrast8,scale9:Ufe.contrast9,scale10:Ufe.contrast10,accent:Ufe.brandDark,accentShade:Ufe.brandDarkShade1,background0:Ufe.brandBackground0,background1:Ufe.brandBackground1,background2:Ufe.brandBackground2,background3:Ufe.brandBackground3,background4:Ufe.brandBackground4,background5:Ufe.brandBackground5},upe=Ufe.contrast0,cpe=Ufe.contrast1,dpe=Ufe.contrast2,fpe=Ufe.contrast3,ppe=Ufe.contrast4,hpe=Ufe.contrast6,gpe=Ufe.contrast8,mpe=Ufe.contrast9,vpe=Ufe.contrast10,ype=Ufe.brandDark,bpe={light:lpe,dark:Object.assign(Object.assign(Object.assign({},Wfe),spe),{name:"dark",button:Object.assign(Object.assign({},qfe),{primary:{color:{default:vpe,hover:vpe,active:vpe},outlineColor:{default:vpe,hover:vpe,active:vpe},background:{default:Ufe.brand,hover:Ufe.brandShade1,active:Ufe.brandShade2},outlineBackground:{default:Ufe.brandTint0,hover:Ufe.brandTint1,active:Ufe.brandTint2},border:{default:Ufe.brand,hover:Ufe.brandShade1,active:Ufe.brandShade2},divider:dpe},secondary:{color:{default:vpe,hover:vpe,active:vpe},outlineColor:{default:vpe,hover:vpe,active:vpe},background:{default:cpe,hover:dpe,active:fpe},outlineBackground:{default:cpe,hover:dpe,active:fpe},border:{default:dpe,hover:dpe,active:dpe},divider:dpe},positive:{color:{default:vpe,hover:vpe,active:vpe},outlineColor:{default:vpe,hover:vpe,active:vpe},background:{default:Ufe.success,hover:Ufe.successShade1,active:Ufe.successShade2},outlineBackground:{default:Ufe.successTint0,hover:Ufe.successTint1,active:Ufe.successTint2},border:{default:Ufe.success,hover:Ufe.successShade1,active:Ufe.successShade2},divider:dpe},negative:{color:{default:vpe,hover:vpe,active:vpe},outlineColor:{default:vpe,hover:vpe,active:vpe},background:{default:Ufe.error,hover:Ufe.errorShade1,active:Ufe.errorShade2},outlineBackground:{default:Ufe.errorTint0,hover:Ufe.errorTint1,active:Ufe.errorTint2},border:{default:Ufe.error,hover:Ufe.errorShade1,active:Ufe.errorShade2},divider:dpe},caution:{color:{default:vpe,hover:vpe,active:vpe},outlineColor:{default:vpe,hover:vpe,active:vpe},background:{default:Ufe.warning,hover:Ufe.warningShade1,active:Ufe.warningShade2},outlineBackground:{default:Ufe.warningTint0,hover:Ufe.warningTint1,active:Ufe.warningTint2},border:{default:Ufe.warning,hover:Ufe.warningShade1,active:Ufe.warningShade2},divider:dpe},subtle:{color:{default:Ufe.brand,hover:Ufe.brand,active:Ufe.brand},outlineColor:{default:Ufe.brand,hover:Ufe.brand,active:Ufe.brand},secondaryColor:{default:vpe,hover:vpe,active:vpe},positiveColor:{default:Ufe.success,hover:Ufe.success,active:Ufe.success},negativeColor:{default:Ufe.error,hover:Ufe.error,active:Ufe.error},cautionColor:{default:Ufe.warning,hover:Ufe.warning,active:Ufe.warning},background:{default:"transparent",hover:cpe,active:dpe},outlineBackground:{default:"transparent",hover:cpe,active:dpe},border:{default:"transparent",hover:dpe,active:dpe},divider:dpe},link:{color:{default:Ufe.brandShade2,hover:Ufe.brandShade1,active:Ufe.brand},outlineColor:{default:Ufe.brandShade2,hover:Ufe.brandShade1,active:Ufe.brand},secondaryColor:{default:gpe,hover:mpe,active:vpe},positiveColor:{default:Ufe.successShade2,hover:Ufe.successShade1,active:Ufe.success},negativeColor:{default:Ufe.errorShade2,hover:Ufe.errorShade1,active:Ufe.error},cautionColor:{default:Ufe.warningShade2,hover:Ufe.warningShade1,active:Ufe.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:ppe,hover:ppe,active:ppe},outlineColor:{default:ppe,hover:ppe,active:ppe},background:{default:cpe,hover:cpe,active:cpe},outlineBackground:{default:upe,hover:upe,active:upe},border:{default:cpe,hover:cpe,active:cpe},divider:cpe},color:{default:"#FFFFFF"}}),calendar:{background:{container:Ufe.brandBackground3,hover:cpe,active:Ufe.brand,activeHover:Ufe.brandShade1,activeRange:Ufe.brandTint4},color:{disabled:ppe,default:vpe,active:vpe,current:ype,outside:hpe,weekday:gpe,monthYear:gpe,iconDefault:hpe,iconDisabled:dpe,iconHover:vpe}},defaultBorder:`1px solid ${cpe}`,formControl:{color:{default:gpe,hover:vpe,active:Ufe.brand,activeHover:Ufe.brandShade1,disabled:ppe}},input:{borderRadius:4,background:{default:upe,hover:cpe,focused:cpe,disabled:upe},color:{default:vpe,disabled:ppe,placeholder:hpe,description:hpe,descriptionError:Ufe.error},borderColor:{default:hpe,hover:gpe,focused:ype,disabled:ppe,error:Ufe.error},labelColor:{default:gpe,hover:gpe,filled:hpe,focused:ype,disabled:ppe}},menu:{background:Ufe.brandBackground2},menuItem:{borderColor:Ufe.brand,background:{active:upe,hover:cpe,inactive:"transparent"},color:{active:vpe,hover:vpe,inactive:hpe}},modal:{background:Ufe.brandBackground3,color:{header:vpe,body:hpe}},options:{background:Ufe.brandBackground2},optionItem:{background:{active:cpe,inactive:"transparent"},color:{active:vpe,inactive:vpe,accent:ype}},table:{color:{header:hpe,body:vpe},borderColor:cpe},toast:{color:vpe,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:gpe,info:Ufe.brand,success:Ufe.success,warning:Ufe.warning,error:Ufe.error}},toggle:{slider:Ufe.brandBackground0},tooltip:{background:Ufe.brandBackground4,color:{default:vpe,subtext:hpe}}})};exports.Accordion=fn,exports.Audio=Zx,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:u,barSize:c=16,maxBarSize:d,vertical:f=!1,hideYLabels:p,hideXLabels:h,xAxisHeight:g=22,yAxisWidth:m=45}=t,v=l(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:y}=n.useTheme();return e.jsxs(yQ,Object.assign({},v,{children:[e.jsx(vQ,{}),e.jsx(yR,{width:"100%",height:"100%",children:e.jsxs(iJ,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:f?"vertical":"horizontal",barSize:c,maxBarSize:d,barGap:s,barCategoryGap:u,children:[e.jsx(zY,{stroke:y,strokeDasharray:"3 5",vertical:f,horizontal:!f}),e.jsx(oX,{stroke:y,tickMargin:4,tickFormatter:e=>f?aC(e):e,tick:!h&&{},height:h?12:g,dataKey:f?void 0:"name",type:f?"number":"category"}),e.jsx(aX,{stroke:y,tickMargin:4,tickFormatter:e=>f?e:aC(e),tick:!p&&{},width:p?5:m,dataKey:f?"name":void 0,type:f?"category":"number"}),wQ(),o&&e.jsx(eM,{content:e.jsx(xQ,{})}),i.map((({key:t,color:n},r)=>e.jsx(Gq,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]})})]}))},exports.Button=$x,exports.Calendar=FQ,exports.Checkbox=WQ,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:l,noNumbers:s,margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:u,marginTop:c,marginBottom:d,marginRight:f,marginLeft:p},m=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[v,y,b]=m;v=v||a||"",y=y||l||"",b=b||s?"nonumbers":"";let w=v?v.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),S=e=>{if(y){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?st.range(r,o+1):st.rangeRight(o,r+1)}return null})),n=t.flat();return st.compact(n)})(y);return t.some((t=>e===t))}return!1},k=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(F1,{method:x,url:k}):e.jsx($1,{code:k,language:w,theme:"dark"===h?d1.oceanicNext:d1.github,children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(U1,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code",children:[o.map(((n,r,o)=>t.createElement(W1,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:S(r+1)}),o.length>1&&!C&&e.jsx(Z1,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(z1,{content:k})]}))})},exports.ComboBox=o0,exports.DatePicker=n=>{var{value:r,label:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h,preventPast:g,preventFuture:m,onChange:v,afterShow:y,afterHide:b}=n,w=l(n,["value","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[x,C]=t.useState(!1),{current:S}=t.useRef(r?$Q(r):void 0),[k,E]=t.useState(S),O=t.useRef(null),{min:D,max:_}=zQ({past:g,future:m,rel:S||jse}),j=e=>{const{year:t,month:n,day:r}=e,o=new zl(t,n,r);E(o);const i=NQ(e);v&&v(i)},P=!(k||!o);return e.jsxs(Pse,Object.assign({value:k,hasLabel:!!o,isDisabled:f,minValue:D,maxValue:_,onChange:j,onOpenChange:e=>{C(e),y&&e&&y(),b&&!e&&b()},ref:O},w,{children:[a&&Fle(a,{marginRight:8}),e.jsxs(J1,{filled:!!k,disabled:f,children:[o,e.jsx(Tse,{ref:i,hide:P,fontSize:c,placeholderColor:d,isDisabled:f,children:t=>e.jsx(Sse,{placeholderColor:d,segment:t})})]}),e.jsx(_se,{isDisabled:f,children:e.jsx(un,{name:x?"caret-up":"caret-down",inheritColor:!0})}),s&&Fle(s),u&&e.jsx(Px,{}),e.jsx(kse,{description:p,errorMessage:h}),e.jsx(Db,{triggerRef:O,children:e.jsx(Mb,{children:e.jsx(FQ,{date:k?NQ(k):void 0,onChange:e=>{j($Q(e))},preventPast:g,preventFuture:m})})})]}))},exports.DateRangePicker=n=>{var{startValue:r,endValue:o,label:i,inputRef:a,iconLeft:s,iconRight:u,isLoading:c,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=n,x=l(n,["startValue","endValue","label","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const[C,S]=t.useState(!1),{current:k}=t.useRef(r?$Q(r):void 0),{current:E}=t.useRef(o?$Q(o):void 0),[O,D]=t.useState(k),[_,j]=t.useState(E),P=t.useRef(null),{min:T,max:M}=zQ({past:m,future:v,rel:k||Lse}),A=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,u=new zl(r,o,i);D(u);const c=new zl(a,l,s);j(c);const d=NQ(t),f=NQ(n);y&&y(d,f)},R=!(!O&&!_),L=!(R||!i);return e.jsxs(Ise,Object.assign({value:O&&_?{start:O,end:_}:void 0,hasLabel:!!i,isDisabled:p,minValue:T,maxValue:M,onChange:A,onOpenChange:e=>{S(e),b&&e&&b(),w&&!e&&w()},ref:P},x,{children:[s&&Fle(s,{marginRight:8}),e.jsxs(J1,{filled:R,disabled:p,children:[i,e.jsxs($se,{fontSize:d,hide:L,isDisabled:p,children:[e.jsx(Nse,{slot:"start",ref:a,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Sse,{placeholderColor:f,segment:t})}),e.jsx("span",{"aria-hidden":"true",children:"–"}),e.jsx(Nse,{slot:"end",fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e.jsx(Sse,{placeholderColor:f,segment:t})})]})]}),e.jsx(_se,{isDisabled:p,children:e.jsx(un,{name:C?"caret-up":"caret-down",inheritColor:!0})}),u&&Fle(u),c&&e.jsx(Px,{}),e.jsx(kse,{description:h,errorMessage:g}),e.jsx(Db,{triggerRef:P,children:e.jsx(Mb,{children:e.jsx(Ase,{startDate:O?NQ(O):void 0,endDate:_?NQ(_):void 0,onChange:(e,t)=>{const n=$Q(e),r=$Q(t);A({start:n,end:r})},preventPast:m,preventFuture:v})})})]}))},exports.DocTable=a0,exports.DraftEditor=kle,exports.Dropdown=nse,exports.DropdownMenu=Ex,exports.Ellipsis=sse,exports.Form=hse,exports.Grid=use,exports.Icon=un,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:l,maxHeight:s,opacity:u})=>{const[c,d]=t.useState(i),f=rt(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{d(i)}),[i]);const p=()=>d(c>0?c-1:o.length-1),h=()=>c<o.length-1?d(c+1):d(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,c]),n?e.jsxs(yse,{opacity:u,prevNext:o.length>1,children:[e.jsx(bse,{onClick:r,children:e.jsx(un,{name:"close",size:25,color:"white"})}),o.length>1&&e.jsx(wse,{id:"prev",onClick:p,children:e.jsx(un,{name:"chevron-left",size:35,color:"white"})}),e.jsx(xse,{ref:f,src:o[c],alt:a,maxWidth:l,maxHeight:s}),o.length>1&&e.jsx(wse,{next:!0,id:"next",onClick:h,children:e.jsx(un,{name:"chevron-right",size:35,color:"white"})})]}):null},exports.InlineCode=Cse,exports.Input=Kle,exports.InputUtils=fle,exports.Label=fse,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=l(r,["data","legend","keys"]);const[u,c]=t.useState(a),{scale2:d}=n.useTheme();return e.jsxs(yQ,Object.assign({},s,{children:[e.jsx(vQ,{}),e.jsx(yR,{width:"100%",height:"100%",children:e.jsxs(oJ,{margin:{top:8,left:-14,right:5,bottom:-8},data:o,children:[e.jsx(zY,{stroke:d,strokeDasharray:"3 5",vertical:!1}),e.jsx(oX,{stroke:d,dataKey:"name",tickMargin:4}),e.jsx(aX,{stroke:d,tickMargin:4,tickFormatter:e=>aC(e)}),wQ(),i&&e.jsx(eM,{content:e.jsx(xQ,{toggleData:a.length>1?e=>{c((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),u.map((({key:t,color:n,hidden:r},o)=>e.jsx(nX,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},exports.Menu=Hse,exports.Message=Gse,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(nue,{children:[e.jsx(tue,{}),e.jsx(eue,{color:n,style:r,children:t}),e.jsx(tue,{})]}),exports.Modal=rue,exports.MultiSelect=lue,exports.Notification=lJ,exports.NumberInput=t=>{var{value:n,label:r,placeholder:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=t,g=l(t,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return e.jsxs(zse,Object.assign({value:n,hasLabel:!!r,isDisabled:f},g,{children:[a&&Fle(a,{marginRight:8}),e.jsxs(J1,{filled:!!n,disabled:f,children:[r,e.jsx(Y1,{ref:i,placeholder:o,hide:!(n||!r),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&Fle(s),u&&e.jsx(Px,{}),e.jsxs(Bse,{children:[e.jsx(Fse,{slot:"increment",children:e.jsx(un,{size:r?23.5:19.5,name:"caret-up"})}),e.jsx(Kse,{}),e.jsx(Fse,{slot:"decrement",children:e.jsx(un,{size:r?23.5:19.5,name:"caret-down"})})]}),e.jsx(kse,{description:p,errorMessage:h})]}))},exports.Options=qle,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,u=l(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[c,d]=t.useState(mue(o)||1),[f,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,mue(a)||h.length),m=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),d(e),r(e)}},v=0!==f,y=f!==g.length-1;return e.jsxs(vue,Object.assign({width:s},u,{children:[e.jsx(bue,{disabled:1===c,onClick:()=>m(1),children:e.jsx(un,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e.jsx(bue,{disabled:1===c,onClick:()=>m(c-1),children:e.jsx(un,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(xue,{children:"... "}):"",e.jsx(wue,{selected:n===c,onClick:()=>m(n),children:n}),r===o.length-1&&y?e.jsx(xue,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(bue,{disabled:c===i,onClick:()=>m(c+1),children:e.jsx(un,{name:"chevron-right",title:"next",inheritColor:!0})}),e.jsx(bue,{disabled:c===i,onClick:()=>m(i),children:e.jsx(un,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=l(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,u=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,c=n/2-1;return e.jsx(yQ,Object.assign({width:n,height:n},a,{children:e.jsxs(aJ,{width:n,height:n,children:[e.jsx(CZ,{dataKey:"value",data:u,innerRadius:o,outerRadius:c,children:null==u?void 0:u.map((t=>e.jsx(bR,{fill:t.color||"#999"},t.name)))}),s&&wQ()]})}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:u,marginBottom:c,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(Cue,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e.jsx(Oue,Object.assign({width:o,height:i||l},p,{children:e.jsx(Due,{color:n,width:h})}))},exports.Radio=cse,exports.RangeCalendar=Ase,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,Nfe.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Select=_ue,exports.Slider=Hx,exports.Spacer=Tue,exports.Spinner=Px,exports.Table=Gue,exports.Tabs=t=>{var{items:n,activeItem:r,itemWidth:o,itemGap:i,onChange:a}=t,s=l(t,["items","activeItem","itemWidth","itemGap","onChange"]);const u=n.filter((e=>!1!==e.visible));return e.jsx(Jue,Object.assign({gap:i},s,{children:u.map((t=>{const{id:n,label:i,icon:s,iconColor:u,iconPosition:c}=t,d=l(t,["id","label","icon","iconColor","iconPosition"]);return e.jsxs(Que,Object.assign({active:n===r,itemWidth:o,reverse:"right"===c,onClick:()=>(e=>{a(e)})(t),gap:s?4:void 0},d,{children:[s&&e.jsx(un,{name:s,size:"small",color:u,inheritColor:!u}),i]}),n)}))}))},exports.TextInput=t=>{var{value:n,label:r,placeholder:o,inputRef:i,iconLeft:a,iconRight:s,isLoading:u,fontSize:c,placeholderColor:d,disabled:f,description:p,errorMessage:h}=t,g=l(t,["value","label","placeholder","inputRef","iconLeft","iconRight","isLoading","fontSize","placeholderColor","disabled","description","errorMessage"]);return e.jsxs(Vse,Object.assign({value:n,hasLabel:!!r,isDisabled:f},g,{children:[a&&Fle(a,{marginRight:8}),e.jsxs(J1,{filled:!!n,disabled:f,children:[r,e.jsx(Y1,{ref:i,placeholder:o,hide:!(n||!r),fontSize:c,placeholderColor:d,isDisabled:f})]}),s&&Fle(s),u&&e.jsx(Px,{}),e.jsx(kse,{description:p,errorMessage:h})]}))},exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=dse,exports.Tooltip=xfe,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:l,hideRemoveAll:s,readOnly:u,width:c,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g})=>{const m=t.useRef(),[v,y]=t.useState([]),[b,w]=t.useState([]),x={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g},C=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!st.isEqual(n,m.current)){m.current=n;const e=n.filter((e=>e.selected)).map(C),t=n.filter((e=>!e.selected)).map(C);w(e),y(t)}}),[n,m]),t.useEffect((()=>{r(b)}),[b]);const S=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:y;(n?y:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},k=e=>{const t="select"===e?y:w,n="select"===e?v:b;("select"===e?w:y)((e=>[...e,...n])),t([])},E=t=>e.jsxs("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Afe,{children:t.header}),e.jsx(Rfe,{children:t.body})]}):t.label,t.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),O=!(l&&s);return e.jsxs(Ofe,Object.assign({width:c,readOnly:u},x,{children:[i&&e.jsx(Dfe,{children:i}),e.jsxs(_fe,{children:[!u&&e.jsxs(jfe,{children:[O&&e.jsx(Pfe,{children:v.length>0&&!l&&e.jsx($x,{small:!0,outline:!0,onClick:()=>k("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e.jsx(Tfe,{children:v.map((t=>e.jsxs(Mfe,{onClick:()=>S(t,"select"),color:t.color,children:[E(t),e.jsx(un,{name:"chevron-right"})]},t.id)))})]}),e.jsxs(jfe,{children:[O&&!u&&e.jsx(Pfe,{children:b.length>0&&!s&&!u&&e.jsx($x,{small:!0,outline:!0,secondary:!0,onClick:()=>k("remove"),icon:"arrow-left",children:"All"})}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(Tfe,{children:b.map((t=>e.jsxs(Mfe,{onClick:()=>S(t,"remove"),color:t.color,children:[E(t),e.jsx(un,{name:"chevron-left"})]},t.id)))})]})]})]}))},exports.colors=Ufe,exports.copyToClipboard=gQ,exports.darkScale=spe,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,l="relative"===r||!1,s=new Date,u=dQ(n,"EEEE"),c=dQ(n,"MMM d"),d=dQ(n,"MMM d, y"),f=dQ(n,"h:mm aaa"),p=pQ(n),h=function(e){return+sJ(e)>Date.now()}(n),g=function(e){return CJ(e,xJ(e))}(n),m=hQ(n),v=function(e){return CJ(e,cJ(xJ(e),1))}(n),y=OJ(s,n),b=DJ(s,n),w=y>=-10&&y<=10,x=a||l?`, ${f}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(f);if(l){if(0===y)return C("Just now");if(w)return C(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return C(h?`Today${x}`:f)}return C(g?`Today${x}`:m?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${c}${x}`:`${d}${x}`:`${u}${x}`)},exports.lightScale=Yfe,exports.marginProps=an,exports.numberWithCommas=mQ,exports.paddingProps=on,exports.positionProps=ln,exports.theme=bpe,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:l,inputLabel:s,inputPlaceholder:u,inputValue:c}={})=>{const[d,f]=t.useState(c||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{l&&"string"==typeof c&&d!==c&&f(c)}),[p]);const m=()=>{null==p||p.resolve(!l||d),g()},v=()=>{null==p||p.resolve(!1),g()};nt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":m();break;case"Escape":v()}}),!!p,[d]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(rue,{visible:!!p,onClose:g,width:400,children:[n&&e.jsx(rue.Header,{children:n}),r&&e.jsx(rue.Text,{children:r}),l&&e.jsx(rue.Body,{marginTop:4,marginBottom:8,children:e.jsx(Kle,{autoFocus:!0,label:s,placeholder:u,value:d,onChange:({target:e})=>f(e.value)})}),e.jsxs(rue.Footer,{children:[e.jsx($x,{secondary:!0,marginRight:8,onClick:v,children:o}),e.jsx($x,{negative:a,onClick:m,children:i})]})]})]},exports.useElementObserver=nn,exports.useEventListener=nt,exports.useOnClickOutside=rt,exports.usePrevious=e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e}),[e]),n.current},exports.useSelect=ut,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState([]),[i,a]=t.useState(n||!1),[l,s]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(s(!1),a(!0)):t?(s(!0),a(!1)):(s(!1),a(!1))}),[r]),{list:r,partial:l,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=rn;
|
|
54
54
|
//# sourceMappingURL=index.js.map
|