@foris/avocado-suite 1.14.0 → 1.14.1
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/dist/avocado-suite.es.js +1 -1
- package/dist/avocado-suite.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/avocado-suite.es.js
CHANGED
|
@@ -11746,7 +11746,7 @@ const PE = ({
|
|
|
11746
11746
|
}, []), {
|
|
11747
11747
|
isMobile: e
|
|
11748
11748
|
};
|
|
11749
|
-
}, FE = "
|
|
11749
|
+
}, FE = "_fileUpload_1v2el_1", VE = "_fileUpload_title_1v2el_4", BE = "_fileUpload_divider_1v2el_7", HE = "_fileUpload_content_1v2el_11", $E = "_loadColumn_1v2el_16", zE = "_help_1v2el_21", WE = "_rulesTitle_1v2el_21", UE = "_rule_1v2el_21", YE = "_helpDivider_1v2el_27", ZE = "_helpTitle_1v2el_30", qE = "_helpDescription_1v2el_33", GE = "_templateLink_1v2el_36", KE = "_fileUpload_notificationMobile_1v2el_40", on = {
|
|
11750
11750
|
fileUpload: FE,
|
|
11751
11751
|
fileUpload_title: VE,
|
|
11752
11752
|
fileUpload_divider: BE,
|
|
@@ -779,7 +779,7 @@ clipRule="evenodd"
|
|
|
779
779
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vk(e){if(Array.isArray(e))return s1(e)}function i6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function a6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i6(Object(n),!0).forEach(function(r){s6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ba(e,t){return $k(e)||Hk(e,t)||l6(e,t)||Bk()}function Bk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
780
780
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function l6(e,t){if(e){if(typeof e=="string")return s1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s1(e,t)}}function s1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function $k(e){if(Array.isArray(e))return e}var zk="file-invalid-type",Wk="file-too-large",Uk="file-too-small",Yk="too-many-files",Zk=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:zk,message:"File type must be ".concat(n)}},c6=function(t){return{code:Wk,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},u6=function(t){return{code:Uk,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},qk={code:Yk,message:"Too many files"};function d6(e,t){var n=e.type==="application/x-moz-file"||jk(e,t);return[n,n?null:Zk(t)]}function f6(e,t,n){if(Mo(e.size))if(Mo(t)&&Mo(n)){if(e.size>n)return[!1,c6(n)];if(e.size<t)return[!1,u6(t)]}else{if(Mo(t)&&e.size<t)return[!1,u6(t)];if(Mo(n)&&e.size>n)return[!1,c6(n)]}return[!0,null]}function Mo(e){return e!=null}function Gk(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(l){var c=d6(l,n),d=ba(c,1),u=d[0],p=f6(l,r,o),f=ba(p,1),h=f[0],g=s?s(l):null;return u&&h&&!g})}function yl(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function bl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function p6(e){e.preventDefault()}function Kk(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Qk(e){return e.indexOf("Edge/")!==-1}function Xk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Kk(e)||Qk(e)}function tr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(s){return!yl(r)&&s&&s.apply(void 0,[r].concat(i)),yl(r)})}}function Jk(){return"showOpenFilePicker"in window}function eS(e){if(Mo(e)){var t=Object.entries(e).filter(function(n){var r=ba(n,2),o=r[0],i=r[1],a=!0;return h6(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(i)||!i.every(m6))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var o=ba(r,2),i=o[0],a=o[1];return a6(a6({},n),{},s6({},i,a))},{});return[{description:"Files",accept:t}]}return e}function tS(e){if(Mo(e))return Object.entries(e).reduce(function(t,n){var r=ba(n,2),o=r[0],i=r[1];return[].concat(o6(t),[o],o6(i))},[]).filter(function(t){return h6(t)||m6(t)}).join(",")}function nS(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function rS(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function h6(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function m6(e){return/^.*\.[\w]+$/.test(e)}var oS=["children"],iS=["open"],aS=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],sS=["refKey","onChange","onClick"];function lS(e){return dS(e)||uS(e)||_6(e)||cS()}function cS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
781
781
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dS(e){if(Array.isArray(e))return c1(e)}function l1(e,t){return hS(e)||pS(e,t)||_6(e,t)||fS()}function fS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
782
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _6(e,t){if(e){if(typeof e=="string")return c1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c1(e,t)}}function c1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function hS(e){if(Array.isArray(e))return e}function g6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g6(Object(n),!0).forEach(function(r){u1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cl(e,t){if(e==null)return{};var n=mS(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mS(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var d1=y.forwardRef(function(e,t){var n=e.children,r=Cl(e,oS),o=y6(r),i=o.open,a=Cl(o,iS);return y.useImperativeHandle(t,function(){return{open:i}},[i]),y.createElement(y.Fragment,null,n(tt(tt({},a),{},{open:i})))});d1.displayName="Dropzone";var v6={disabled:!1,getFilesFromEvent:Sk,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};d1.defaultProps=v6,d1.propTypes={children:H.func,accept:H.objectOf(H.arrayOf(H.string)),multiple:H.bool,preventDropOnDocument:H.bool,noClick:H.bool,noKeyboard:H.bool,noDrag:H.bool,noDragEventsBubbling:H.bool,minSize:H.number,maxSize:H.number,maxFiles:H.number,disabled:H.bool,getFilesFromEvent:H.func,onFileDialogCancel:H.func,onFileDialogOpen:H.func,useFsAccessApi:H.bool,autoFocus:H.bool,onDragEnter:H.func,onDragLeave:H.func,onDragOver:H.func,onDrop:H.func,onDropAccepted:H.func,onDropRejected:H.func,onError:H.func,validator:H.func};var f1={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function y6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=tt(tt({},v6),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,u=t.onDragOver,p=t.onDrop,f=t.onDropAccepted,h=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,m=t.useFsAccessApi,b=t.autoFocus,C=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,T=t.onError,E=t.validator,D=y.useMemo(function(){return tS(n)},[n]),O=y.useMemo(function(){return eS(n)},[n]),N=y.useMemo(function(){return typeof v=="function"?v:b6},[v]),V=y.useMemo(function(){return typeof g=="function"?g:b6},[g]),A=y.useRef(null),I=y.useRef(null),j=y.useReducer(_S,f1),W=l1(j,2),$=W[0],Y=W[1],M=$.isFocused,_e=$.isFileDialogActive,ae=y.useRef(typeof window<"u"&&window.isSecureContext&&m&&Jk()),L=function(){!ae.current&&_e&&setTimeout(function(){if(I.current){var ce=I.current.files;ce.length||(Y({type:"closeDialog"}),V())}},300)};y.useEffect(function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}},[I,_e,V,ae]);var le=y.useRef([]),je=function(ce){A.current&&A.current.contains(ce.target)||(ce.preventDefault(),le.current=[])};y.useEffect(function(){return C&&(document.addEventListener("dragover",p6,!1),document.addEventListener("drop",je,!1)),function(){C&&(document.removeEventListener("dragover",p6),document.removeEventListener("drop",je))}},[A,C]),y.useEffect(function(){return!r&&b&&A.current&&A.current.focus(),function(){}},[A,b,r]);var me=y.useCallback(function(G){T?T(G):console.error(G)},[T]),Le=y.useCallback(function(G){G.preventDefault(),G.persist(),Kt(G),le.current=[].concat(lS(le.current),[G.target]),bl(G)&&Promise.resolve(o(G)).then(function(ce){if(!(yl(G)&&!S)){var R=ce.length,z=R>0&&Gk({files:ce,accept:D,minSize:a,maxSize:i,multiple:s,maxFiles:l,validator:E}),ie=R>0&&!z;Y({isDragAccept:z,isDragReject:ie,isDragActive:!0,type:"setDraggedFiles"}),c&&c(G)}}).catch(function(ce){return me(ce)})},[o,c,me,S,D,a,i,s,l,E]),we=y.useCallback(function(G){G.preventDefault(),G.persist(),Kt(G);var ce=bl(G);if(ce&&G.dataTransfer)try{G.dataTransfer.dropEffect="copy"}catch{}return ce&&u&&u(G),!1},[u,S]),ze=y.useCallback(function(G){G.preventDefault(),G.persist(),Kt(G);var ce=le.current.filter(function(z){return A.current&&A.current.contains(z)}),R=ce.indexOf(G.target);R!==-1&&ce.splice(R,1),le.current=ce,!(ce.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bl(G)&&d&&d(G))},[A,d,S]),We=y.useCallback(function(G,ce){var R=[],z=[];G.forEach(function(ie){var ge=d6(ie,D),Ce=l1(ge,2),bt=Ce[0],Qt=Ce[1],Dt=f6(ie,a,i),Ln=l1(Dt,2),Un=Ln[0],Ct=Ln[1],Mn=E?E(ie):null;if(bt&&Un&&!Mn)R.push(ie);else{var Xt=[Qt,Ct];Mn&&(Xt=Xt.concat(Mn)),z.push({file:ie,errors:Xt.filter(function(ru){return ru})})}}),(!s&&R.length>1||s&&l>=1&&R.length>l)&&(R.forEach(function(ie){z.push({file:ie,errors:[qk]})}),R.splice(0)),Y({acceptedFiles:R,fileRejections:z,type:"setFiles"}),p&&p(R,z,ce),z.length>0&&h&&h(z,ce),R.length>0&&f&&f(R,ce)},[Y,s,D,a,i,l,p,f,h,E]),be=y.useCallback(function(G){G.preventDefault(),G.persist(),Kt(G),le.current=[],bl(G)&&Promise.resolve(o(G)).then(function(ce){yl(G)&&!S||We(ce,G)}).catch(function(ce){return me(ce)}),Y({type:"reset"})},[o,We,me,S]),Q=y.useCallback(function(){if(ae.current){Y({type:"openDialog"}),N();var G={multiple:s,types:O};window.showOpenFilePicker(G).then(function(ce){return o(ce)}).then(function(ce){We(ce,null),Y({type:"closeDialog"})}).catch(function(ce){nS(ce)?(V(ce),Y({type:"closeDialog"})):rS(ce)?(ae.current=!1,I.current?(I.current.value=null,I.current.click()):me(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):me(ce)});return}I.current&&(Y({type:"openDialog"}),N(),I.current.value=null,I.current.click())},[Y,N,V,m,We,me,O,s]),ke=y.useCallback(function(G){!A.current||!A.current.isEqualNode(G.target)||(G.key===" "||G.key==="Enter"||G.keyCode===32||G.keyCode===13)&&(G.preventDefault(),Q())},[A,Q]),pe=y.useCallback(function(){Y({type:"focus"})},[]),Ze=y.useCallback(function(){Y({type:"blur"})},[]),_t=y.useCallback(function(){x||(Xk()?setTimeout(Q,0):Q())},[x,Q]),yt=function(ce){return r?null:ce},gn=function(ce){return w?null:yt(ce)},jt=function(ce){return k?null:yt(ce)},Kt=function(ce){S&&ce.stopPropagation()},Fr=y.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce=G.refKey,R=ce===void 0?"ref":ce,z=G.role,ie=G.onKeyDown,ge=G.onFocus,Ce=G.onBlur,bt=G.onClick,Qt=G.onDragEnter,Dt=G.onDragOver,Ln=G.onDragLeave,Un=G.onDrop,Ct=Cl(G,aS);return tt(tt(u1({onKeyDown:gn(tr(ie,ke)),onFocus:gn(tr(ge,pe)),onBlur:gn(tr(Ce,Ze)),onClick:yt(tr(bt,_t)),onDragEnter:jt(tr(Qt,Le)),onDragOver:jt(tr(Dt,we)),onDragLeave:jt(tr(Ln,ze)),onDrop:jt(tr(Un,be)),role:typeof z=="string"&&z!==""?z:"presentation"},R,A),!r&&!w?{tabIndex:0}:{}),Ct)}},[A,ke,pe,Ze,_t,Le,we,ze,be,w,k,r]),Qo=y.useCallback(function(G){G.stopPropagation()},[]),Xo=y.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce=G.refKey,R=ce===void 0?"ref":ce,z=G.onChange,ie=G.onClick,ge=Cl(G,sS),Ce=u1({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:yt(tr(z,be)),onClick:yt(tr(ie,Qo)),tabIndex:-1},R,I);return tt(tt({},Ce),ge)}},[I,n,s,be,r]);return tt(tt({},$),{},{isFocused:M&&!r,getRootProps:Fr,getInputProps:Xo,rootRef:A,inputRef:I,open:yt(Q)})}function _S(e,t){switch(t.type){case"focus":return tt(tt({},e),{},{isFocused:!0});case"blur":return tt(tt({},e),{},{isFocused:!1});case"openDialog":return tt(tt({},f1),{},{isFileDialogActive:!0});case"closeDialog":return tt(tt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return tt(tt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return tt(tt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return tt({},f1);default:return e}}function b6(){}const Gr={tag:"_tag_xgxyp_1",tag__filled:"_tag__filled_xgxyp_13",tag__active:"_tag__active_xgxyp_17",tag_content:"_tag_content_xgxyp_21",tag_icon:"_tag_icon_xgxyp_24",iconSvg:"_iconSvg_xgxyp_24",tag__outlined:"_tag__outlined_xgxyp_27",tag__disabled:"_tag__disabled_xgxyp_37"},p1={Outlined:"outlined",Filled:"filled"},gS=e=>{const t={[p1.Outlined]:Gr.tag__outlined,[p1.Filled]:Gr.tag__filled};return(t==null?void 0:t[e])??""},C6=e=>{const{type:t=p1.Filled,disabled:n=!1,className:r="",active:o=!1,children:i,icon:a,onClick:s,onIconClick:l}=e,c=[Gr.tag,r&&r,t&&gS(t),n&&Gr.tag__disabled,o&&Gr.tag__active];return _.jsxs("div",{className:P(...c),children:[_.jsx("button",{className:Gr.tag_content,onClick:s,children:i}),!!a&&_.jsx("button",{className:Gr.tag_icon,onClick:l,children:_.jsx(oe,{className:Gr.iconSvg,size:"md",name:a,color:"neutral-70"})})]})},nt={dropzone:"_dropzone_1fvg9_9",dropzone_input:"_dropzone_input_1fvg9_13",dropzone_zone:"_dropzone_zone_1fvg9_21",dropzone_zone__disabled:"_dropzone_zone__disabled_1fvg9_34",dropzone_zone__active:"_dropzone_zone__active_1fvg9_34",dropzone_zone__error:"_dropzone_zone__error_1fvg9_34",dropzone_zone__uploading:"_dropzone_zone__uploading_1fvg9_34",dropzone_inner:"_dropzone_inner_1fvg9_52",dropzone_selectLink:"_dropzone_selectLink_1fvg9_60",dropzone_hint:"_dropzone_hint_1fvg9_66",dropzone_activeContent:"_dropzone_activeContent_1fvg9_70",activeLabel:"_activeLabel_1fvg9_77",dropzone_statusRow:"_dropzone_statusRow_1fvg9_80",loadingIcon:"_loadingIcon_1fvg9_85",statusText:"_statusText_1fvg9_88",dropzone_fileTag:"_dropzone_fileTag_1fvg9_91",dropzone_fileTag__stacked:"_dropzone_fileTag__stacked_1fvg9_94",dropzone_button:"_dropzone_button_1fvg9_97"},w6=({file:e,onRemove:t,stacked:n=!1})=>_.jsx(C6,{className:P(nt.dropzone_fileTag,n&&nt.dropzone_fileTag__stacked),type:"outlined",icon:"close",onIconClick:t,children:e.name}),Mr={link:"_link_1tmxa_1",link__disabled:"_link__disabled_1tmxa_11",link_content:"_link_content_1tmxa_11",link_iconLeft:"_link_iconLeft_1tmxa_27",link_iconRight:"_link_iconRight_1tmxa_34",link__inverse:"_link__inverse_1tmxa_48",link__colored:"_link__colored_1tmxa_64",link__sm:"_link__sm_1tmxa_77",link__darkMode:"_link__darkMode_1tmxa_80"},Ca=({children:e,className:t,disabled:n=!1,iconLeft:r,iconRight:o,inverse:i,size:a="md",colored:s=!1,onClick:l,...c})=>{const{theme:d}=gt();return _.jsxs("a",{...c,className:P(Mr.link,n&&Mr.link__disabled,i&&Mr.link__inverse,a==="sm"&&Mr.link__sm,s===!0&&Mr.link__colored,(d==null?void 0:d.mode)==="dark"&&Mr.link__darkMode,t&&t),onClick:()=>{n||l&&l()},tabIndex:n?-1:0,children:[r&&_.jsx(oe,{name:r,size:a,className:Mr.link_iconLeft}),_.jsx("span",{className:Mr.link_content,children:e}),o&&_.jsx(oe,{name:o,size:a,className:Mr.link_iconRight})]})};Ca.prototype={avocado:"Link"};const vS=({labels:e})=>_.jsxs(_.Fragment,{children:[_.jsx(Ca,{className:nt.dropzone_selectLink,disabled:!0,iconLeft:"upload",children:e.selectLabel}),_.jsx(Se,{className:nt.dropzone_hint,type:"sm",children:e.dropHint})]}),yS=({file:e,labels:t})=>{const n=(e==null?void 0:e.name)??"";return _.jsxs("div",{className:nt.dropzone_statusRow,children:[_.jsx(oe,{className:nt.loadingIcon,name:"loading",size:"md",color:"primary-50"}),_.jsxs(Se,{className:nt.statusText,type:"sm",weight:"medium",children:[t.uploadingLabel,n?` ${n}`:""]})]})},bS=({labels:e})=>_.jsxs("div",{className:nt.dropzone_statusRow,children:[_.jsx(oe,{name:"circle-cross",size:"md",color:"red-50",filled:!0}),_.jsx(Se,{className:nt.statusText,type:"sm",weight:"medium",children:e.uploadErrorLabel})]}),CS=({labels:e})=>_.jsxs("div",{className:nt.dropzone_activeContent,children:[_.jsx(oe,{name:"upload",size:"xl",color:"primary-50"}),_.jsx(Se,{className:nt.activeLabel,type:"sm",weight:"medium",children:e.activeLabel})]}),wS=({labels:e,file:t,showUploadedChip:n,onOpenPicker:r,onRemove:o})=>_.jsxs(_.Fragment,{children:[_.jsx(Ca,{className:nt.dropzone_selectLink,iconLeft:"upload",onClick:r,children:e.selectLabel}),_.jsx(Se,{className:nt.dropzone_hint,type:"sm",children:e.dropHint}),n&&t&&_.jsx(w6,{file:t,onRemove:o})]}),xS=e=>{const{disabled:t,uploadStatus:n,isDragActive:r,labels:o}=e;return t?_.jsx(vS,{labels:o}):n==="uploading"?_.jsx(yS,{file:e.file,labels:o}):n==="error"?_.jsx(bS,{labels:o}):r?_.jsx(CS,{labels:o}):_.jsx(wS,{labels:o,file:e.file,showUploadedChip:e.showUploadedChip,onOpenPicker:e.onOpenPicker,onRemove:e.onRemove})},x6=({selectLabel:e,dropHint:t,activeLabel:n,uploadingLabel:r,uploadErrorLabel:o,buttonLabel:i,file:a,uploadStatus:s="idle",disabled:l=!1,accept:c,display:d="zone",onFileChange:u,onRemove:p,className:f})=>{const h=y.useRef(null),{getRootProps:g,getInputProps:v,isDragActive:m,open:b}=y6({multiple:!1,noClick:!0,accept:c,disabled:l,onDrop:E=>{const D=E[0]??null;D&&u(D)}}),C=y.useCallback(E=>{l||(E==null||E.preventDefault(),E==null||E.stopPropagation(),b())},[l,b]),x=y.useCallback(()=>{l||(h.current&&(h.current.value=""),u(null),p==null||p())},[l,u,p]),w=v({className:nt.dropzone_input,ref:h}),k=a!=null&&s!=="uploading"&&s!=="error",S={selectLabel:e,dropHint:t,activeLabel:n,uploadingLabel:r,uploadErrorLabel:o},T=P(nt.dropzone_zone,l&&nt.dropzone_zone__disabled,m&&!l&&nt.dropzone_zone__active,s==="error"&&!l&&nt.dropzone_zone__error,s==="uploading"&&!l&&nt.dropzone_zone__uploading);return d==="button"?_.jsxs("div",{className:P(nt.dropzone,f),children:[_.jsx("input",{...w}),_.jsx(Cr,{className:nt.dropzone_button,variant:"secondary",leftIcon:"upload",disabled:l,onClick:C,children:i}),k&&a&&_.jsx(w6,{file:a,onRemove:x,stacked:!0})]}):_.jsxs("div",{className:P(nt.dropzone,f),children:[_.jsx("input",{...w}),_.jsx("div",{...g({className:T}),children:_.jsx("div",{className:nt.dropzone_inner,children:_.jsx(xS,{disabled:l,uploadStatus:s,isDragActive:m,file:a,showUploadedChip:k,labels:S,onOpenPicker:C,onRemove:x})})})]})},pi=()=>{const[e,t]=y.useState(!1);return y.useEffect(()=>{const n=window.matchMedia("(max-width: 992px)");t(n.matches);const r=o=>t(o.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),{isMobile:e}},Jt={fileUpload:"_fileUpload_n6j2q_1",fileUpload_title:"_fileUpload_title_n6j2q_4",fileUpload_divider:"_fileUpload_divider_n6j2q_7",fileUpload_content:"_fileUpload_content_n6j2q_11",loadColumn:"_loadColumn_n6j2q_16",help:"_help_n6j2q_21",rulesTitle:"_rulesTitle_n6j2q_21",rule:"_rule_n6j2q_21",helpDivider:"_helpDivider_n6j2q_27",helpTitle:"_helpTitle_n6j2q_30",helpDescription:"_helpDescription_n6j2q_33",templateLink:"_templateLink_n6j2q_36",fileUpload_notificationMobile:"_fileUpload_notificationMobile_n6j2q_40"},kS=({title:e,rulesTitle:t,rules:n,helpTitle:r,helpDescription:o,templateLinkLabel:i,templateHref:a,onTemplateLinkClick:s,selectLabel:l,dropHint:c,activeLabel:d,uploadingLabel:u,uploadErrorLabel:p,buttonLabel:f,file:h,uploadStatus:g,disabled:v,accept:m,onFileChange:b,onRemove:C,notificationVisible:x=!1,notificationTitle:w,notificationDescription:k,notificationState:S="error",className:T})=>{const{isMobile:E}=pi(),D=x&&w&&k?_.jsx(fu,{className:Jt.fileUpload_notification,state:S,title:w,children:k}):null,O=_.jsx(Ca,{className:Jt.templateLink,colored:!0,iconLeft:"download",href:a,onClick:s,children:i}),N=_.jsxs("div",{className:Jt.help,children:[_.jsx(Se,{className:Jt.rulesTitle,type:"sm",weight:"medium",children:t}),n.map((V,A)=>_.jsx(Se,{className:Jt.rule,type:"sm",children:V},A)),_.jsx(qr,{className:Jt.helpDivider}),_.jsx(Se,{className:Jt.helpTitle,type:"sm",weight:"medium",children:r}),_.jsx(Se,{className:Jt.helpDescription,type:"sm",children:o}),O]});return _.jsxs(gp,{className:P(Jt.fileUpload,T),children:[_.jsx(wt,{type:"h3",className:Jt.fileUpload_title,children:e}),_.jsx(qr,{className:Jt.fileUpload_divider}),_.jsxs("section",{className:Jt.fileUpload_content,children:[_.jsxs("div",{className:Jt.loadColumn,children:[_.jsx(x6,{selectLabel:l,dropHint:c,activeLabel:d,uploadingLabel:u,uploadErrorLabel:p,buttonLabel:f,file:h,uploadStatus:g,disabled:v,accept:m,onFileChange:b,onRemove:C,display:E?"button":"zone"}),E?null:D]}),N]}),E?_.jsx("div",{className:Jt.fileUpload_notificationMobile,children:D}):null]})},h1=["var(--color-primitive-palette-1-50)","var(--color-primitive-palette-2-50)","var(--color-primitive-palette-3-50)","var(--color-primitive-palette-4-50)","var(--color-primitive-palette-5-50)","var(--color-primitive-palette-6-50)","var(--color-primitive-palette-7-50)","var(--color-primitive-palette-8-50)","var(--color-primitive-palette-9-50)","var(--color-primitive-palette-10-50)","var(--color-primitive-palette-11-50)","var(--color-primitive-palette-12-50)","var(--color-primitive-palette-13-50)","var(--color-primitive-palette-14-50)","var(--color-primitive-palette-15-50)","var(--color-primitive-palette-16-50)","var(--color-primitive-palette-17-50)"],m1="neutral-70",wl=e=>`var(--color-${e})`,xl=(e,t)=>t?wl(t):h1[e%h1.length],k6=(e,t)=>{const n=e.map(({label:r,color:o},i)=>({label:r,color:xl(i,o),swatch:"square"}));return t?[...n,{label:t.label,color:wl(t.color??m1),swatch:"line"}]:n},kl={chartLegend:"_chartLegend_10i9f_1",chartLegend_item:"_chartLegend_item_10i9f_11",legendSwatch:"_legendSwatch_10i9f_24",legendSwatch__line:"_legendSwatch__line_10i9f_31"},S6=({items:e})=>_.jsx("ul",{className:kl.chartLegend,children:e.map(({label:t,color:n,swatch:r},o)=>_.jsxs("li",{className:kl.chartLegend_item,children:[_.jsx("span",{"aria-hidden":!0,className:P(kl.legendSwatch,r==="line"&&kl.legendSwatch__line),style:{"--chart-legend-color":n}}),t]},`${t}-${o}`))}),wa={chartTooltip:"_chartTooltip_v7lii_1",chartTooltip_category:"_chartTooltip_category_v7lii_13",chartTooltip_row:"_chartTooltip_row_v7lii_18",tooltipSwatch:"_tooltipSwatch_v7lii_25",tooltipValue:"_tooltipValue_v7lii_31"},D6=({active:e,label:t,payload:n,formatX:r,formatValue:o,renderTooltip:i})=>{if(!e||!n.length)return null;const a=i==null?void 0:i(n[0].payload);return _.jsx("div",{className:wa.chartTooltip,role:"status","aria-live":"polite","aria-atomic":"true",children:a??_.jsxs(_.Fragment,{children:[_.jsx("p",{className:wa.chartTooltip_category,children:r?r(t??""):t}),n.map(({dataKey:s,name:l,value:c,color:d})=>_.jsxs("p",{className:wa.chartTooltip_row,children:[_.jsx("span",{"aria-hidden":!0,className:wa.tooltipSwatch,style:{"--chart-tooltip-color":d}}),l," ",_.jsx("span",{className:wa.tooltipValue,children:o?o(Number(c)):c})]},String(s)))]})})},T6=4,L6=2,SS=300,DS=1,TS=24,LS=.5,MS=(e,t,n)=>{const r=e/t*LS,o=Math.floor((r-(n-1)*T6)/n);return Math.min(TS,Math.max(DS,o))},hi={barChart:"_barChart_1x3e3_1",barChart_tick:"_barChart_tick_1x3e3_6",barChart_grid:"_barChart_grid_1x3e3_10",barChart_baseline:"_barChart_baseline_1x3e3_13",barChart_referenceLine:"_barChart_referenceLine_1x3e3_17",barChart_cursor:"_barChart_cursor_1x3e3_20"},ES=({series:e,categoryCount:t})=>{var o;const n=((o=Re.usePlotArea())==null?void 0:o.width)??0,r=MS(n,t,e.length);return y.useMemo(()=>_.jsx(_.Fragment,{children:e.map(({key:i,label:a},s)=>_.jsx(Re.Bar,{dataKey:i,name:a,fill:xl(s),barSize:r,radius:[L6,L6,0,0]},i))}),[e,r])},M6=({data:e,xKey:t,series:n,label:r,height:o=SS,referenceLine:i,showLegend:a=!1,showTooltip:s=!1,showCursor:l=!1,formatValue:c,className:d,renderTooltip:u})=>{const p=y.useCallback(h=>s&&_.jsx(D6,{...h,formatValue:c,renderTooltip:u}),[s,c,u]);if(!e.length||!n.length)return null;const f={className:hi.barChart_tick};return _.jsx("div",{role:"figure","aria-label":r,className:P(hi.barChart,d),children:_.jsx(Re.ResponsiveContainer,{width:"100%",height:o,children:_.jsxs(Re.BarChart,{data:e,barGap:T6,accessibilityLayer:!1,children:[_.jsx(Re.CartesianGrid,{vertical:!1,className:hi.barChart_grid}),_.jsx(Re.XAxis,{dataKey:t,axisLine:!1,tickLine:!1,tick:f}),_.jsx(Re.YAxis,{axisLine:!1,tickLine:!1,tick:f,tickFormatter:c}),_.jsx(Re.ReferenceLine,{y:0,className:hi.barChart_baseline}),(s||l)&&_.jsx(Re.Tooltip,{cursor:l&&{className:hi.barChart_cursor},content:p}),a&&_.jsx(Re.Legend,{content:_.jsx(S6,{items:k6(n,i)})}),_.jsx(ES,{series:n,categoryCount:e.length}),i&&_.jsx(Re.ReferenceLine,{y:i.value,ifOverflow:"extendDomain",stroke:wl(m1),className:hi.barChart_referenceLine})]})})})};M6.prototype={avocado:"BarChart"};const E6=["palette-1-50","palette-2-50","palette-3-50","palette-4-50","palette-5-50","palette-6-50","palette-7-50","palette-8-50"],P6=["info-50","warning-50","warning-50","gray-30"],PS=40,I6=8,IS=160,OS=14,O6=300,_1={xs:40,sm:56,md:96,lg:160},g1=e=>`var(--color-${e})`,N6=({color:e},t)=>e??E6[t%E6.length],v1=({color:e},t)=>e??P6[t%P6.length],A6=e=>e.reduce((t,{value:n})=>t+n,0),j6=(e,t)=>t>0?Math.round(e/t*100):0,NS=(e,t,{maxDiameter:n=1/0,legendReserve:r=0}={})=>{const o=Math.max(PS,Math.min(e,t-r,n));return Math.round(o/I6)*I6},AS=e=>e&&/^\d+(\.\d+)?(px)?$/.test(e.trim())?Number.parseFloat(e):void 0,jS=(e=`${O6}px`,t=`${O6}px`)=>{const n=[e,t].map(AS).filter(r=>r!==void 0);return n.length?Math.min(...n):"auto"},RS=e=>e.map((t,n)=>({label:t.name,value:t.percentage,color:v1(t,n)})),FS=(e,t)=>typeof e=="number"?e:e==="auto"?t??_1.sm:_1[e],VS=(e,t)=>{const n=t?Math.max(80,Math.round(e*.4)):0,r=Math.max(2,Math.round(e/10)),o=e/2;return{containerSize:e+n*2,innerRadius:Math.max(0,o-r),outerRadius:o}},BS=(e,t,n)=>n==="activeSegment"?Math.min(OS,Math.max(10,Math.round(t*.12))):Math.min(Math.max(8,Math.round(e*.2)),Math.round(t*.32)),HS=(e,t)=>j6(e.value,A6(t)),$S=(e,t={})=>{const n=t.interactive??e;return{interactive:n,showCallout:n&&(t.showCallout??e),centerMode:t.centerMode??(e?"activeSegment":"fixed")}},R6=e=>{const t=A6(e);return e.map((n,r)=>({name:n.label,value:n.value,percentage:j6(n.value,t),color:N6(n,r)}))},zS=(e,t)=>{const n=R6(e).map(({name:r,value:o,percentage:i})=>`${r} ${o} (${i}%)`).join(", ");return t?`${t}: ${n}`:n},Kr={donut_center:"_donut_center_gj097_1",label:"_label_gj097_1",value:"_value_gj097_1",donut:"_donut_gj097_1",donut__auto:"_donut__auto_gj097_17",donut__static:"_donut__static_gj097_21",donut_chart:"_donut_chart_gj097_24",calloutLabel:"_calloutLabel_gj097_34"},F6=Math.PI/180,WS=3,y1=6,V6=16,US=12,YS=8,ZS=({cx:e=0,cy:t=0,midAngle:n=0,innerRadius:r=0,outerRadius:o=0,startAngle:i=0,endAngle:a=0,fill:s,percent:l=0,value:c=0})=>{const d=Math.sin(-F6*n),u=Math.cos(-F6*n),p=u>=0?1:-1,f=e+(o+y1)*u,h=t+(o+y1)*d,g=e+(o+V6)*u,v=t+(o+V6)*d,m=g+p*US;return _.jsxs("g",{children:[_.jsx(Re.Sector,{cx:e,cy:t,innerRadius:r,outerRadius:o,startAngle:i,endAngle:a,fill:s}),_.jsx(Re.Sector,{cx:e,cy:t,startAngle:i,endAngle:a,innerRadius:o+WS,outerRadius:o+y1,fill:s}),_.jsx("path",{d:`M${f},${h}L${g},${v}L${m},${v}`,stroke:s,fill:"none"}),_.jsx("circle",{cx:m,cy:v,r:2,fill:s,stroke:"none"}),_.jsxs("text",{className:Kr.calloutLabel,x:m+p*YS,y:v,textAnchor:u>=0?"start":"end",children:[c," (",(l*100).toFixed(0),"%)"]})]})},B6=({className:e,segments:t,data:n,size:r,showCenter:o,children:i,centerMode:a,centerValue:s,centerLabel:l,interactive:c,showCallout:d,chartChildren:u,defaultIndex:p,autoMaxDiameter:f,autoLegendReserve:h,width:g,height:v})=>{const m=y.useRef(null),[b,C]=y.useState(),[x,w]=y.useState(),k=!r&&!!(n??g??v),S=k?jS(g,v):r??"sm",T=S==="auto";y.useLayoutEffect(()=>{const ae=m.current;if(!T||!ae)return;const L=()=>{const je=ae.getBoundingClientRect();C(NS(je.width,je.height,{maxDiameter:f,legendReserve:h}))};L();const le=new ResizeObserver(L);return le.observe(ae),()=>le.disconnect()},[h,f,T]);const E=y.useMemo(()=>t??(n?RS(n):[]),[n,t]),D=FS(S,b),O=$S(!k&&D>=IS,{interactive:c,showCallout:d,centerMode:a}),N=VS(D,O.showCallout),V=N.innerRadius*2,A=O.centerMode==="activeSegment",I=x===void 0?p:x,j=I==null?void 0:E[I],W=O.centerMode==="fixed"&&E.length>0?`${HS(E[0],E)}%`:void 0,$=O.centerMode==="activeSegment"&&j?{value:j.label,label:void 0}:{value:s??W,label:l},Y=(o??!k)&&!!(i??$.value),M=E.length>0,_e={"--donut-container-size":`${N.containerSize}px`,"--donut-hole-size":`${V}px`,"--donut-center-font-size":`${BS(D,V,O.centerMode)}px`};return _.jsxs("div",{ref:m,className:P(Kr.donut,T&&Kr.donut__auto,!O.interactive&&Kr.donut__static,e),style:_e,children:[_.jsx("div",{className:Kr.donut_chart,role:M?"img":void 0,"aria-label":M?zS(E,[s,l].filter(Boolean).join(" ")):void 0,children:_.jsx(Re.ResponsiveContainer,{width:"100%",height:"100%",children:_.jsxs(Re.PieChart,{accessibilityLayer:!1,children:[u,O.showCallout&&_.jsx(Re.Tooltip,{defaultIndex:p,cursor:!1,content:()=>null}),_.jsx(Re.Pie,{data:E,dataKey:"value",nameKey:"label",cx:"50%",cy:"50%",innerRadius:N.innerRadius,outerRadius:N.outerRadius,startAngle:90,endAngle:-270,paddingAngle:0,stroke:"none",isAnimationActive:D>=_1.sm,activeShape:O.showCallout?ZS:!1,onMouseEnter:A?(ae,L)=>w(L):void 0,onMouseLeave:A?()=>w(null):void 0,children:E.map((ae,L)=>_.jsx(Re.Cell,{fill:g1(N6(ae,L))},`${ae.label}-${L}`))})]})})}),Y&&_.jsx("div",{className:Kr.donut_center,"aria-hidden":!i,children:i??_.jsxs(_.Fragment,{children:[_.jsx("span",{className:Kr.value,children:$.value}),$.label&&_.jsx("span",{className:Kr.label,children:$.label})]})})]})};B6.prototype={avocado:"Donut"};const Sl={donutLabels:"_donutLabels_uyrai_1",donutLabels_item:"_donutLabels_item_uyrai_6",donutLabels_item__inverse:"_donutLabels_item__inverse_uyrai_23"},H6=({className:e,data:t})=>{const n=t.reduce((r,o)=>r+(o==null?void 0:o.value),0);return _.jsxs("section",{className:P(Sl.donutLabels,e&&e),children:[t==null?void 0:t.map((r,o)=>{const i=v1(r,o);return _.jsx("div",{className:P(Sl.donutLabels_item,i==="info-50"&&Sl.donutLabels_item__inverse),style:{"--donut-item-color":g1(i)},children:_.jsx("span",{children:r==null?void 0:r.value})},`donut-label-${o}`)}),_.jsx("div",{className:Sl.donutLabels_item,children:_.jsx("span",{children:n})})]})};H6.prototype={avocado:"DonutLabels"};const xa={donutLegend:"_donutLegend_qdzka_1",donutLegend_item:"_donutLegend_item_qdzka_6",itemBox:"_itemBox_qdzka_16"},$6=({className:e,data:t,totalLabel:n="Total",showTotal:r=!0})=>_.jsxs("section",{className:P(xa.donutLegend,e&&e),children:[r&&_.jsxs("div",{className:P(xa.donutLegend_item),children:[_.jsx("div",{className:xa.itemBox})," ",n]}),t==null?void 0:t.map((o,i)=>_.jsxs("div",{className:xa.donutLegend_item,style:{"--donut-item-color":g1(v1(o,i))},children:[_.jsx("div",{className:xa.itemBox}),o==null?void 0:o.name]},`donut-legend-${i}`))]});$6.prototype={avocado:"DonutLegend"};const mi=({ref:e,shouldIgnore:t,onClickOutside:n})=>{let r=!1;const o=l=>{e!=null&&e.current&&!(e!=null&&e.current.contains(l.target))&&!t&&(n==null||n())},i=()=>{document.addEventListener("mousedown",o)},a=()=>{document.removeEventListener("mousedown",o),r=!1},s=()=>{if(!r){i(),r=!0;return}a(),i()};y.useEffect(()=>{if(t){a();return}return s(),()=>{a()}},[e,t])},Qr={dropdown:"_dropdown_iow1b_21",dropdown_button:"_dropdown_button_iow1b_25",chevronIcon:"_chevronIcon_iow1b_32",dropdown_button__ghost:"_dropdown_button__ghost_iow1b_35",dropdown_menu:"_dropdown_menu_iow1b_42",fadeInScale:"_fadeInScale_iow1b_1",menuItem:"_menuItem_iow1b_54",dropdownButton_menu__top:"_dropdownButton_menu__top_iow1b_77",dropdownButton_menu__bottom:"_dropdownButton_menu__bottom_iow1b_81",dropdown_menu__close:"_dropdown_menu__close_iow1b_85",fadeOutScale:"_fadeOutScale_iow1b_1"},z6=({children:e,className:t,disabled:n,items:r,variant:o="primary"})=>{const[i,a]=y.useState(!1),[s,l]=y.useState(!1),[c,d]=y.useState("bottom"),u=y.useRef(null),p=()=>{if(!u.current)return;const m=u.current.getBoundingClientRect(),b=window.innerHeight-(m.y+m.height),C=m.y;d(C>b?"top":"bottom")};mi({ref:u,onClickOutside:()=>h(!1)}),y.useEffect(()=>{p();const m=()=>p();window.addEventListener("resize",m),window.addEventListener("scroll",m);const b=C=>{u.current&&!u.current.contains(C.target)&&h(!1)};return document.addEventListener("mousedown",b),()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",m),document.removeEventListener("mousedown",b)}},[]);const f=()=>{s&&(l(!1),a(!1))},h=m=>{if(!m)return l(!0);a(!0),l(!1)},g={secondary:n?"neutral-50":"neutral-70",ghost:n?"neutral-50":"neutral-70"},v=n?"neutral-50":"gray-00";return _.jsxs("section",{className:P(Qr.dropdown,t&&t),ref:u,children:[_.jsxs(Cr,{className:P(Qr.dropdown_button,o==="ghost"&&Qr.dropdown_button__ghost),disabled:n,variant:o,onClick:()=>h(!i),children:[e,_.jsx(oe,{color:g[o]||v,className:Qr.chevronIcon,name:"chevron-down"})]}),!n&&i&&_.jsx("ul",{onAnimationEnd:f,className:P(Qr.dropdown_menu,Qr[`dropdownButton_menu__${c}`],s&&Qr.dropdown_menu__close),children:r==null?void 0:r.map((m,b)=>_.jsx("li",{className:Qr.menuItem,onClick:()=>{m.onClick(),h(!1)},children:m==null?void 0:m.label},`dropdown-menu-item-${b}`))})]})};z6.prototype={avocado:"DropdownButton"};const W6={lineChartGuide:"_lineChartGuide_15g12_1",lineChartGuide__animated:"_lineChartGuide__animated_15g12_6"};function qS({animate:e=!0,points:t,className:n}){const r=Re.usePlotArea(),o=t==null?void 0:t[0],i=t==null?void 0:t[1];return!r||!o||!i?null:_.jsx("line",{className:P(W6.lineChartGuide,n,{[W6.lineChartGuide__animated]:e}),x1:0,x2:0,y1:o.y,y2:i.y,style:{transform:`translateX(${o.x}px)`},"aria-hidden":"true"},`${r.x}:${r.y}:${r.width}:${r.height}`)}const U6=320,Y6=4,GS=350,KS=2,QS=3,XS=4,JS=24,eD=16,tD={top:12,right:12,bottom:8,left:0},Z6="(prefers-reduced-motion: reduce)";function nD(){const[e,t]=y.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(Z6).matches);return y.useEffect(()=>{if(typeof window.matchMedia!="function")return;const n=window.matchMedia(Z6),r=()=>t(n.matches);return n.addEventListener("change",r),r(),()=>n.removeEventListener("change",r)},[]),e}function rD(e,t,n,r=Y6){if(!Number.isSafeInteger(r)||r<1)return{status:"invalid",reason:"invalid-limit"};if(n.length>r)return{status:"invalid",reason:"series-limit"};if(n.length===0)return{status:"empty",reason:"no-series"};const o=new Set;for(const a of n){if(!a.key||!a.label.trim()||a.key===t)return{status:"invalid",reason:"invalid-series"};if(o.has(a.key))return{status:"invalid",reason:"duplicate-series"};o.add(a.key)}if(e.length===0)return{status:"empty",reason:"no-data"};let i=!1;for(const a of e){if(a===null||typeof a!="object"||Array.isArray(a))return{status:"invalid",reason:"invalid-x"};const s=a[t];if(!(typeof s=="string"&&s.length>0||typeof s=="number"&&Number.isFinite(s)))return{status:"invalid",reason:"invalid-x"};for(const l of n){const c=a[l.key];if(c!=null){if(typeof c!="number"||!Number.isFinite(c))return{status:"invalid",reason:"invalid-value"};i=!0}}}return i?{status:"valid"}:{status:"empty",reason:"no-values"}}function oD(e,t,n=!1){let r=1/0,o=-1/0;for(const a of e)for(const s of t){const l=a[s.key];typeof l=="number"&&Number.isFinite(l)&&(r=Math.min(r,l),o=Math.max(o,l))}if(r===1/0)return[-1,1];if(n&&r===0&&o===0)return[0,1];const i=r===o?Math.max(Math.abs(r)*.05,1):Math.max((o-r)*.05,Number.EPSILON);return n?[r>=0?0:r-i,o<=0?0:o+i]:[r-i,o+i]}function iD(e,t,n){return e!=="auto"?e:n===1?!0:n>1&&t/(n-1)>=JS}const nr={lineChart:"_lineChart_19sr7_1",lineChart_plot:"_lineChart_plot_19sr7_4",activeDot:"_activeDot_19sr7_15",referenceLine:"_referenceLine_19sr7_20",lineChartAxis_grid:"_lineChartAxis_grid_19sr7_25",lineChartAxis_line:"_lineChartAxis_line_19sr7_29",lineChartAxis_tick:"_lineChartAxis_tick_19sr7_32"};function aD({series:e,pointCount:t,curveType:n,showDots:r,showArea:o,inspectable:i,animated:a,areaBaseValue:s,gradientId:l}){var u;const c=((u=Re.usePlotArea())==null?void 0:u.width)??0,d=iD(r,c,t);return y.useMemo(()=>_.jsx(_.Fragment,{children:e.map((p,f)=>{const h=xl(f,p.color),g={name:p.label,dataKey:p.key,type:n,stroke:h,strokeWidth:KS,connectNulls:!1,dot:d?{r:QS,fill:h,strokeWidth:0}:!1,activeDot:i?{r:XS,className:nr.activeDot}:!1,isAnimationActive:a,animationDuration:GS,animationEasing:"ease-out"};return o&&e.length===1?y.createElement(Re.Area,{...g,key:p.key,baseValue:s,fill:`url(#${l})`}):y.createElement(Re.Line,{...g,key:p.key,fill:"none"})})}),[e,n,d,i,a,o,s,l])}function q6({data:e,xKey:t,series:n,label:r,summary:o,includeZero:i=!1,showDots:a="auto",showArea:s=!1,maxSeries:l=Y6,curveType:c="linear",variant:d="full",height:u=U6,formatX:p=String,formatValue:f=String,reference:h,animate:g=!0,showLegend:v=!1,showTooltip:m=!1,showCursor:b=!1,renderTooltip:C,className:x}){var W;const w=y.useId(),k=y.useId(),S=nD(),T=y.useMemo(()=>[...e],[e]),E=y.useMemo(()=>oD(e,n,i),[e,n,i]),D=y.useCallback($=>f(Number($.toPrecision(12))),[f]),O=y.useCallback($=>m&&_.jsx(D6,{...$,formatX:p,formatValue:f,renderTooltip:C}),[m,p,f,C]),N=Number.isFinite(u)&&u>0?u:U6,V=h&&Number.isFinite(h.value)&&h.value>=E[0]&&h.value<=E[1],A=m||b,I=d==="compact",j=xl(0,(W=n[0])==null?void 0:W.color);return rD(e,t,n,l).status!=="valid"?null:_.jsxs("div",{className:P(nr.lineChart,x),children:[o&&_.jsx("span",{id:w,hidden:!0,children:o}),_.jsx("div",{className:nr.lineChart_plot,style:{height:N},children:_.jsx(Re.ResponsiveContainer,{width:"100%",height:"100%",children:_.jsxs(Re.ComposedChart,{data:T,margin:tD,accessibilityLayer:A,"aria-label":r,"aria-describedby":o?w:void 0,children:[_.jsx("defs",{children:_.jsxs("linearGradient",{id:k,x1:"0",y1:"0",x2:"0",y2:"1",children:[_.jsx("stop",{offset:"0%",stopColor:j,stopOpacity:.2}),_.jsx("stop",{offset:"100%",stopColor:j,stopOpacity:0})]})}),!I&&_.jsx(Re.CartesianGrid,{className:nr.lineChartAxis_grid}),_.jsx(Re.XAxis,{dataKey:t,axisLine:{className:nr.lineChartAxis_line},tickLine:{className:nr.lineChartAxis_line},hide:I,tickFormatter:p,tick:{className:nr.lineChartAxis_tick},minTickGap:eD,interval:"preserveStartEnd"}),_.jsx(Re.YAxis,{domain:E,hide:I,width:"auto",tickLine:{className:nr.lineChartAxis_line},tickFormatter:D,tick:{className:nr.lineChartAxis_tick},axisLine:!1}),V&&_.jsx(Re.ReferenceLine,{y:h.value,stroke:wl(h.color??m1),className:nr.referenceLine}),_.jsx(aD,{series:n,pointCount:e.length,curveType:c,showDots:a,showArea:s,inspectable:A,animated:g&&!S,areaBaseValue:E[0],gradientId:k}),A&&_.jsx(Re.Tooltip,{isAnimationActive:!1,cursor:b?_.jsx(qS,{animate:g}):!1,content:O}),v&&_.jsx(Re.Legend,{content:_.jsx(S6,{items:k6(n,V?h:void 0)})})]})})})]})}q6.prototype={avocado:"LineChart"};const G6={spinnerSvg:"_spinnerSvg_1i15l_1"},sD=({size:e="lg"})=>_.jsx(_.Fragment,{children:e==="lg"?_.jsxs("svg",{width:"104",height:"104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G6.spinnerSvg,children:[_.jsx("path",{d:"M100 52a48 48 0 1 1-96.001 0A48 48 0 0 1 100 52Z",stroke:"var(--color-primary-30)",strokeWidth:"8"}),_.jsx("path",{d:"M100 52a48 48 0 0 1-33.167 45.65",stroke:"var(--color-primary-50)",strokeWidth:"8",strokeLinecap:"round"})]}):_.jsxs("svg",{width:"36",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G6.spinnerSvg,children:[_.jsx("circle",{opacity:".5",cx:"18",cy:"18",r:"16",stroke:"var(--color-primary-30)",strokeWidth:"4"}),_.jsx("path",{d:"M18 34C9.163 34 2 26.837 2 18",stroke:"var(--color-primary-50)",strokeWidth:"4"})]})}),_i={cntLoading:"_cntLoading_1suxv_1",cntLoading__inline:"_cntLoading__inline_1suxv_16",cntLoading_content:"_cntLoading_content_1suxv_20",title:"_title_1suxv_28",description:"_description_1suxv_31",cntLoading__darkMode:"_cntLoading__darkMode_1suxv_34"},lD=({className:e,description:t,title:n,size:r,inline:o})=>{const{theme:{mode:i}}=gt();return _.jsxs("section",{className:P(_i.cntLoading,i==="dark"&&_i.cntLoading__darkMode,o&&_i.cntLoading__inline,e&&e),children:[_.jsx(sD,{size:r}),_.jsxs("div",{className:_i.cntLoading_content,children:[n&&_.jsx(wt,{className:_i.title,type:"h1",darkMode:!0,children:n}),t&&_.jsx(Se,{className:_i.description,darkMode:!0,type:"lg",weight:"medium",children:t})]})]})},$t={matrixTable:"_matrixTable_14xck_2",matrixTable_viewport:"_matrixTable_viewport_14xck_5",emptyCell:"_emptyCell_14xck_30",matrixGrid:"_matrixGrid_14xck_34",matrixGrid_group:"_matrixGrid_group_14xck_43",bodyRow:"_bodyRow_14xck_43",bodyRow_cell:"_bodyRow_cell_14xck_43",bodyRow_groupCell:"_bodyRow_groupCell_14xck_46",headRow:"_headRow_14xck_59",headRow_cell:"_headRow_cell_14xck_62",headRow_cell__group:"_headRow_cell__group_14xck_78",headRow_cell__groupEnd:"_headRow_cell__groupEnd_14xck_84",headRow_cell__pinned:"_headRow_cell__pinned_14xck_87",headRow_cell__boundary:"_headRow_cell__boundary_14xck_93",headRow_cell__start:"_headRow_cell__start_14xck_96",headRow_cell__center:"_headRow_cell__center_14xck_99",headRow_cell__end:"_headRow_cell__end_14xck_102",bodyRow_cell__pinned:"_bodyRow_cell__pinned_14xck_118",bodyRow_cell__boundary:"_bodyRow_cell__boundary_14xck_131",bodyRow_cell__start:"_bodyRow_cell__start_14xck_134",bodyRow_cell__center:"_bodyRow_cell__center_14xck_137",bodyRow_cell__end:"_bodyRow_cell__end_14xck_140",bodyRow_groupCell__groupEnd:"_bodyRow_groupCell__groupEnd_14xck_155",bodyRow_groupCell__pinned:"_bodyRow_groupCell__pinned_14xck_158",bodyRow_groupCell__boundary:"_bodyRow_groupCell__boundary_14xck_163",bodyRow_groupCell__start:"_bodyRow_groupCell__start_14xck_166",bodyRow_groupCell__center:"_bodyRow_groupCell__center_14xck_169",bodyRow_groupCell__end:"_bodyRow_groupCell__end_14xck_172"};function cD(e){const t=[];let n=0,r=!0,o=!1,i=-1;return e.forEach((a,s)=>{const l=a.pinned==="start"&&r;a.pinned==="start"&&!r&&(o=!0),a.pinned!=="start"&&(r=!1),t.push({width:a.width,isPinned:l,offset:n,isBoundary:!1}),l&&(n+=a.width,i=s)}),i!==-1&&(t[i].isBoundary=!0),{columns:t,totalWidth:e.reduce((a,{width:s})=>a+s,0),hasNonContiguousPinning:o}}function uD(e,t,n){return e.map(r=>{const o=n(r);return{key:t(r),group:r,rows:o,rowSpan:Math.max(o.length,1),isStructural:o.length===0}})}const dD="--matrix-table-pinned-offset",ka=({width:e,isPinned:t,offset:n})=>({width:e,...t&&{[dD]:`${n}px`}}),Sa=({isPinned:e,isBoundary:t},n,{align:r,className:o})=>P($t[n],e&&$t[`${n}__pinned`],t&&$t[`${n}__boundary`],r&&$t[`${n}__${r}`],o),fD=({groups:e,groupColumns:t,columns:n,getGroupKey:r,getRows:o,getRowKey:i,accessibleLabel:a,emptyContent:s,isBusy:l=!1,className:c,...d},u)=>{const p=[...t,...n],f=cD(p),h=uD(e,r,o),g=h.length===0;y.useRef("");const{hasNonContiguousPinning:v}=f;y.useEffect(()=>{},[n,t,v]);const m=C=>f.columns[C],b=C=>f.columns[t.length+C];return _.jsx("div",{...d,ref:u,className:P($t.matrixTable,c),children:_.jsx("div",{className:$t.matrixTable_viewport,role:"region","aria-label":a,"aria-busy":l,tabIndex:0,children:_.jsxs("table",{className:$t.matrixGrid,style:{width:f.totalWidth},"aria-label":a,children:[_.jsx("colgroup",{children:p.map((C,x)=>_.jsx("col",{style:{width:m(x).width}},C.key))}),_.jsx("thead",{children:_.jsx("tr",{className:$t.headRow,children:p.map((C,x)=>_.jsx("th",{scope:"col",className:P(Sa(m(x),"headRow_cell",C),x<t.length&&$t.headRow_cell__group,x===t.length-1&&$t.headRow_cell__groupEnd),style:ka(m(x)),children:C.header},C.key))})}),g&&s!=null&&_.jsx("tbody",{children:_.jsx("tr",{children:_.jsx("td",{className:$t.emptyCell,colSpan:Math.max(p.length,1),children:s})})}),!g&&h.map(({key:C,group:x,rows:w,rowSpan:k,isStructural:S})=>pD({key:C,group:x,rows:w,rowSpan:k,isStructural:S,groupColumns:t,columns:n,getRowKey:i,layoutOf:m,detailLayoutOf:b}))]})})})};function pD({key:e,group:t,rows:n,rowSpan:r,isStructural:o,groupColumns:i,columns:a,getRowKey:s,layoutOf:l,detailLayoutOf:c}){const d=i.map((u,p)=>_.jsx("th",{scope:"rowgroup",rowSpan:r,className:P(Sa(l(p),"bodyRow_groupCell",u),p===i.length-1&&$t.bodyRow_groupCell__groupEnd),style:ka(l(p)),children:u.renderGroupCell(t,u)},u.key));return _.jsx("tbody",{className:$t.matrixGrid_group,children:o?_.jsxs("tr",{className:$t.bodyRow,children:[d,a.map((u,p)=>_.jsx("td",{className:Sa(c(p),"bodyRow_cell",u),style:ka(c(p))},u.key))]}):n.map((u,p)=>_.jsxs("tr",{className:$t.bodyRow,children:[p===0&&d,a.map((f,h)=>{const g=c(h),v=f.renderCell(u,t,f);return f.isRowHeader?_.jsx("th",{scope:"row",className:Sa(g,"bodyRow_cell",f),style:ka(g),children:v},f.key):_.jsx("td",{className:Sa(g,"bodyRow_cell",f),style:ka(g),children:v},f.key)})]},s(u,t)))},e)}const K6=y.forwardRef(fD);K6.prototype={avocado:"MatrixTable"};const rr={menu:"_menu_1uv1z_21",menu_list:"_menu_list_1uv1z_27",fadeInScale:"_fadeInScale_1uv1z_1",menu_list__left:"_menu_list__left_1uv1z_39",menu_list__right:"_menu_list__right_1uv1z_42",menu_list__close:"_menu_list__close_1uv1z_45",fadeOutScale:"_fadeOutScale_1uv1z_1",listItem:"_listItem_1uv1z_48",listItem_icon:"_listItem_icon_1uv1z_79",menu__small:"_menu__small_1uv1z_85"},b1=({className:e="",closeOnClick:t=!1,disabled:n=!1,forceLightMode:r=!1,items:o=[],listOrigin:i="left",size:a="md",variant:s="secondary",onVisibleChange:l,triggerLabel:c})=>{const[d,u]=y.useState(!1),[p,f]=y.useState(!1),h=y.useRef(null);mi({ref:h,onClickOutside(){v(!1)}});const g=()=>{p&&(f(!1),u(!1))},v=m=>{if(!m)return f(!0);u(!0),f(!1)};return y.useEffect(()=>{l==null||l(d)},[d]),_.jsxs("div",{ref:h,className:P(rr.menu,a==="sm"&&rr.menu__small,e&&e),children:[_.jsx(Vr,{className:rr.menu_trigger,"data-testid":"menu-trigger","aria-label":c,disabled:n,forceLightMode:r,icon:"dots",onClick:()=>{n||v(!d)},size:a,variant:s}),d&&_.jsx("div",{onAnimationEnd:g,"data-testid":"menu-list",className:P(rr.menu_list,rr==null?void 0:rr[`menu_list__${i}`],p&&rr.menu_list__close),children:o==null?void 0:o.map((m,b)=>_.jsxs("button",{className:rr.listItem,onClick:C=>{var x;(x=m==null?void 0:m.onClick)==null||x.call(m,C),t&&v(!1)},children:[!!(m!=null&&m.icon)&&_.jsx(oe,{"data-testid":"menu-item-icon",className:rr.listItem_icon,name:m.icon,size:"md"}),m==null?void 0:m.label]},b))})]})};b1.prototype={avocado:"Menu"};const en={modal__bodyOpen:"_modal__bodyOpen_f8vdo_1",modal:"_modal_f8vdo_1",modal__dark:"_modal__dark_f8vdo_15",modal_overlay:"_modal_overlay_f8vdo_15",modal__isOpen:"_modal__isOpen_f8vdo_18",fadeInOverlay:"_fadeInOverlay_f8vdo_1",content:"_content_f8vdo_21",modalEnter:"_modalEnter_f8vdo_1",modal__isClosing:"_modal__isClosing_f8vdo_24",fadeOutOverlay:"_fadeOutOverlay_f8vdo_1",modalLeave:"_modalLeave_f8vdo_1",modal__danger:"_modal__danger_f8vdo_30",modal__warning:"_modal__warning_f8vdo_33",modal__palette_1_50:"_modal__palette_1_50_f8vdo_36",modal__palette_2_50:"_modal__palette_2_50_f8vdo_39",modal__palette_3_50:"_modal__palette_3_50_f8vdo_42",modal__palette_4_50:"_modal__palette_4_50_f8vdo_45",modal__palette_5_50:"_modal__palette_5_50_f8vdo_48",modal__palette_6_50:"_modal__palette_6_50_f8vdo_51",modal__palette_7_50:"_modal__palette_7_50_f8vdo_54",modal__palette_8_50:"_modal__palette_8_50_f8vdo_57",modal__palette_9_50:"_modal__palette_9_50_f8vdo_60",modal__palette_10_50:"_modal__palette_10_50_f8vdo_63",modal__palette_11_50:"_modal__palette_11_50_f8vdo_66",modal__palette_12_50:"_modal__palette_12_50_f8vdo_69",modal__palette_13_50:"_modal__palette_13_50_f8vdo_72",modal__palette_14_50:"_modal__palette_14_50_f8vdo_75",modal__palette_15_50:"_modal__palette_15_50_f8vdo_78",modal__palette_16_50:"_modal__palette_16_50_f8vdo_81",modal__palette_17_50:"_modal__palette_17_50_f8vdo_84",modal__palette_18_50:"_modal__palette_18_50_f8vdo_87",modal_dialog:"_modal_dialog_f8vdo_100",content_header:"_content_header_f8vdo_120",content_header__bordered:"_content_header__bordered_f8vdo_127",closeBtn:"_closeBtn_f8vdo_131",content_body:"_content_body_f8vdo_139",content_footer:"_content_footer_f8vdo_142"},Q6=e=>{const t=en.modal__bodyOpen;if(e){document.body.classList.add(t);return}document.body.classList.remove(t)},hD=({open:e,disableOverlayClick:t=!1,className:n,header:r,headerStatusColor:o,children:i,actions:a,onClose:s,headerBordered:l=!1})=>{const c=y.useRef(null),[d,u]=y.useState(e),[p,f]=y.useState(!1),{theme:h}=gt(),g=()=>{f(!0),s==null||s()},v=()=>{f(!1),u(!1)};mi({ref:c,onClickOutside:()=>!t&&g()}),y.useEffect(()=>(e?(f(!1),u(!0)):!p&&d&&g(),Q6(e),()=>{Q6(!1)}),[e]);const m=[en.modal,n,d&&en.modal__isOpen,o&&en[`modal__${o}`],p&&en.modal__isClosing,h.mode==="dark"&&en.modal__dark];return d?_.jsxs("div",{className:P(...m),children:[_.jsx("div",{className:en.modal_overlay}),_.jsx("div",{className:en.modal_dialog,children:_.jsxs("div",{ref:c,className:en.content,onAnimationEndCapture:()=>p&&v(),children:[_.jsxs("header",{className:P(en.content_header,l&&en.content_header__bordered),children:[typeof r=="string"?_.jsx(wt,{type:"h2",children:r}):r,_.jsx("button",{type:"button",className:en.closeBtn,onClick:g,children:_.jsx(oe,{name:"close",color:"neutral-70"})})]}),i&&_.jsx("main",{className:en.content_body,children:i}),a&&_.jsx("footer",{className:en.content_footer,children:a})]})})]}):null},un={paginator:"_paginator_ccz8i_1",paginator__mobile:"_paginator__mobile_ccz8i_1",paginator_rowsPerPage:"_paginator_rowsPerPage_ccz8i_9",select:"_select_ccz8i_15",navPager:"_navPager_ccz8i_19",navPager_button:"_navPager_button_ccz8i_24",navPager_button__active:"_navPager_button__active_ccz8i_73",navPager_button__block:"_navPager_button__block_ccz8i_78",navPager_pageLabel:"_navPager_pageLabel_ccz8i_86",navPager_arrowRight:"_navPager_arrowRight_ccz8i_94"},Eo=e=>{const{className:t,disabled:n,icon:r,onClick:o}=e;return _.jsx("button",{"data-testid":"pager-arrow",className:P(un.navPager_button,t&&t),onClick:()=>o(),disabled:n,children:_.jsx(oe,{name:r,color:n?"neutral-30":"neutral-70"})})};Eo.prototype={avocado:"ArrowPager"};const mD=({page:e,hasNextPage:t,classname:n,onChange:r,onPageChange:o})=>{const i=a=>{a!==e&&a!==0&&(o==null||o(a),r==null||r(a))};return!t&&e<=1?null:_.jsx("section",{"data-testid":"pager-global","aria-label":"Pagination",className:P(un.paginator,n==null?void 0:n.global,"container_row","row__center"),children:_.jsxs("nav",{"data-testid":"pager-nav",className:P(un.navPager,n==null?void 0:n.nav),children:[_.jsx(Eo,{icon:"chevron-left","aria-label":"Previous page",disabled:e===1,onClick:()=>i(e-1),className:n==null?void 0:n.arrow}),_.jsx(Se,{type:"sm",weight:"medium",className:un.navPager_pageLabel,children:e}),_.jsx(Eo,{icon:"chevron-right","aria-label":"Next page",disabled:!t,onClick:()=>i(e+1),className:P(n==null?void 0:n.arrow,un.navPager_arrowRight)})]})})},X6=e=>{const{className:t,disabled:n,page:r,currentPage:o,onClick:i,ellipsisAsNumber:a}=e;return _.jsx("button",{"data-testid":"pager-button","aria-label":r===a?"ellipsis":`Page ${r}`,disabled:n,className:P(un.navPager_button,o===r&&un.navPager_button__active,r===a&&un.navPager_button__block,t&&t),onClick:i,children:r!==a?r.toString():"..."})};X6.prototype={avocado:"ButtonPager"};function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}function _D(e,t){if(Po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J6(e){var t=_D(e,"string");return Po(t)=="symbol"?t:t+""}function Da(e,t,n){return(t=J6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(n),!0).forEach(function(r){Da(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gD(e){if(Array.isArray(e))return e}function vD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function C1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function th(e,t){if(e){if(typeof e=="string")return C1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C1(e,t):void 0}}function yD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
782
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _6(e,t){if(e){if(typeof e=="string")return c1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c1(e,t)}}function c1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function hS(e){if(Array.isArray(e))return e}function g6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g6(Object(n),!0).forEach(function(r){u1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cl(e,t){if(e==null)return{};var n=mS(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mS(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var d1=y.forwardRef(function(e,t){var n=e.children,r=Cl(e,oS),o=y6(r),i=o.open,a=Cl(o,iS);return y.useImperativeHandle(t,function(){return{open:i}},[i]),y.createElement(y.Fragment,null,n(tt(tt({},a),{},{open:i})))});d1.displayName="Dropzone";var v6={disabled:!1,getFilesFromEvent:Sk,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};d1.defaultProps=v6,d1.propTypes={children:H.func,accept:H.objectOf(H.arrayOf(H.string)),multiple:H.bool,preventDropOnDocument:H.bool,noClick:H.bool,noKeyboard:H.bool,noDrag:H.bool,noDragEventsBubbling:H.bool,minSize:H.number,maxSize:H.number,maxFiles:H.number,disabled:H.bool,getFilesFromEvent:H.func,onFileDialogCancel:H.func,onFileDialogOpen:H.func,useFsAccessApi:H.bool,autoFocus:H.bool,onDragEnter:H.func,onDragLeave:H.func,onDragOver:H.func,onDrop:H.func,onDropAccepted:H.func,onDropRejected:H.func,onError:H.func,validator:H.func};var f1={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function y6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=tt(tt({},v6),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,u=t.onDragOver,p=t.onDrop,f=t.onDropAccepted,h=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,m=t.useFsAccessApi,b=t.autoFocus,C=t.preventDropOnDocument,x=t.noClick,w=t.noKeyboard,k=t.noDrag,S=t.noDragEventsBubbling,T=t.onError,E=t.validator,D=y.useMemo(function(){return tS(n)},[n]),O=y.useMemo(function(){return eS(n)},[n]),N=y.useMemo(function(){return typeof v=="function"?v:b6},[v]),V=y.useMemo(function(){return typeof g=="function"?g:b6},[g]),A=y.useRef(null),I=y.useRef(null),j=y.useReducer(_S,f1),W=l1(j,2),$=W[0],Y=W[1],M=$.isFocused,_e=$.isFileDialogActive,ae=y.useRef(typeof window<"u"&&window.isSecureContext&&m&&Jk()),L=function(){!ae.current&&_e&&setTimeout(function(){if(I.current){var ce=I.current.files;ce.length||(Y({type:"closeDialog"}),V())}},300)};y.useEffect(function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}},[I,_e,V,ae]);var le=y.useRef([]),je=function(ce){A.current&&A.current.contains(ce.target)||(ce.preventDefault(),le.current=[])};y.useEffect(function(){return C&&(document.addEventListener("dragover",p6,!1),document.addEventListener("drop",je,!1)),function(){C&&(document.removeEventListener("dragover",p6),document.removeEventListener("drop",je))}},[A,C]),y.useEffect(function(){return!r&&b&&A.current&&A.current.focus(),function(){}},[A,b,r]);var me=y.useCallback(function(G){T?T(G):console.error(G)},[T]),Le=y.useCallback(function(G){G.preventDefault(),G.persist(),Kt(G),le.current=[].concat(lS(le.current),[G.target]),bl(G)&&Promise.resolve(o(G)).then(function(ce){if(!(yl(G)&&!S)){var R=ce.length,z=R>0&&Gk({files:ce,accept:D,minSize:a,maxSize:i,multiple:s,maxFiles:l,validator:E}),ie=R>0&&!z;Y({isDragAccept:z,isDragReject:ie,isDragActive:!0,type:"setDraggedFiles"}),c&&c(G)}}).catch(function(ce){return me(ce)})},[o,c,me,S,D,a,i,s,l,E]),we=y.useCallback(function(G){G.preventDefault(),G.persist(),Kt(G);var ce=bl(G);if(ce&&G.dataTransfer)try{G.dataTransfer.dropEffect="copy"}catch{}return ce&&u&&u(G),!1},[u,S]),ze=y.useCallback(function(G){G.preventDefault(),G.persist(),Kt(G);var ce=le.current.filter(function(z){return A.current&&A.current.contains(z)}),R=ce.indexOf(G.target);R!==-1&&ce.splice(R,1),le.current=ce,!(ce.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),bl(G)&&d&&d(G))},[A,d,S]),We=y.useCallback(function(G,ce){var R=[],z=[];G.forEach(function(ie){var ge=d6(ie,D),Ce=l1(ge,2),bt=Ce[0],Qt=Ce[1],Dt=f6(ie,a,i),Ln=l1(Dt,2),Un=Ln[0],Ct=Ln[1],Mn=E?E(ie):null;if(bt&&Un&&!Mn)R.push(ie);else{var Xt=[Qt,Ct];Mn&&(Xt=Xt.concat(Mn)),z.push({file:ie,errors:Xt.filter(function(ru){return ru})})}}),(!s&&R.length>1||s&&l>=1&&R.length>l)&&(R.forEach(function(ie){z.push({file:ie,errors:[qk]})}),R.splice(0)),Y({acceptedFiles:R,fileRejections:z,type:"setFiles"}),p&&p(R,z,ce),z.length>0&&h&&h(z,ce),R.length>0&&f&&f(R,ce)},[Y,s,D,a,i,l,p,f,h,E]),be=y.useCallback(function(G){G.preventDefault(),G.persist(),Kt(G),le.current=[],bl(G)&&Promise.resolve(o(G)).then(function(ce){yl(G)&&!S||We(ce,G)}).catch(function(ce){return me(ce)}),Y({type:"reset"})},[o,We,me,S]),Q=y.useCallback(function(){if(ae.current){Y({type:"openDialog"}),N();var G={multiple:s,types:O};window.showOpenFilePicker(G).then(function(ce){return o(ce)}).then(function(ce){We(ce,null),Y({type:"closeDialog"})}).catch(function(ce){nS(ce)?(V(ce),Y({type:"closeDialog"})):rS(ce)?(ae.current=!1,I.current?(I.current.value=null,I.current.click()):me(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):me(ce)});return}I.current&&(Y({type:"openDialog"}),N(),I.current.value=null,I.current.click())},[Y,N,V,m,We,me,O,s]),ke=y.useCallback(function(G){!A.current||!A.current.isEqualNode(G.target)||(G.key===" "||G.key==="Enter"||G.keyCode===32||G.keyCode===13)&&(G.preventDefault(),Q())},[A,Q]),pe=y.useCallback(function(){Y({type:"focus"})},[]),Ze=y.useCallback(function(){Y({type:"blur"})},[]),_t=y.useCallback(function(){x||(Xk()?setTimeout(Q,0):Q())},[x,Q]),yt=function(ce){return r?null:ce},gn=function(ce){return w?null:yt(ce)},jt=function(ce){return k?null:yt(ce)},Kt=function(ce){S&&ce.stopPropagation()},Fr=y.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce=G.refKey,R=ce===void 0?"ref":ce,z=G.role,ie=G.onKeyDown,ge=G.onFocus,Ce=G.onBlur,bt=G.onClick,Qt=G.onDragEnter,Dt=G.onDragOver,Ln=G.onDragLeave,Un=G.onDrop,Ct=Cl(G,aS);return tt(tt(u1({onKeyDown:gn(tr(ie,ke)),onFocus:gn(tr(ge,pe)),onBlur:gn(tr(Ce,Ze)),onClick:yt(tr(bt,_t)),onDragEnter:jt(tr(Qt,Le)),onDragOver:jt(tr(Dt,we)),onDragLeave:jt(tr(Ln,ze)),onDrop:jt(tr(Un,be)),role:typeof z=="string"&&z!==""?z:"presentation"},R,A),!r&&!w?{tabIndex:0}:{}),Ct)}},[A,ke,pe,Ze,_t,Le,we,ze,be,w,k,r]),Qo=y.useCallback(function(G){G.stopPropagation()},[]),Xo=y.useMemo(function(){return function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ce=G.refKey,R=ce===void 0?"ref":ce,z=G.onChange,ie=G.onClick,ge=Cl(G,sS),Ce=u1({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:yt(tr(z,be)),onClick:yt(tr(ie,Qo)),tabIndex:-1},R,I);return tt(tt({},Ce),ge)}},[I,n,s,be,r]);return tt(tt({},$),{},{isFocused:M&&!r,getRootProps:Fr,getInputProps:Xo,rootRef:A,inputRef:I,open:yt(Q)})}function _S(e,t){switch(t.type){case"focus":return tt(tt({},e),{},{isFocused:!0});case"blur":return tt(tt({},e),{},{isFocused:!1});case"openDialog":return tt(tt({},f1),{},{isFileDialogActive:!0});case"closeDialog":return tt(tt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return tt(tt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return tt(tt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return tt({},f1);default:return e}}function b6(){}const Gr={tag:"_tag_xgxyp_1",tag__filled:"_tag__filled_xgxyp_13",tag__active:"_tag__active_xgxyp_17",tag_content:"_tag_content_xgxyp_21",tag_icon:"_tag_icon_xgxyp_24",iconSvg:"_iconSvg_xgxyp_24",tag__outlined:"_tag__outlined_xgxyp_27",tag__disabled:"_tag__disabled_xgxyp_37"},p1={Outlined:"outlined",Filled:"filled"},gS=e=>{const t={[p1.Outlined]:Gr.tag__outlined,[p1.Filled]:Gr.tag__filled};return(t==null?void 0:t[e])??""},C6=e=>{const{type:t=p1.Filled,disabled:n=!1,className:r="",active:o=!1,children:i,icon:a,onClick:s,onIconClick:l}=e,c=[Gr.tag,r&&r,t&&gS(t),n&&Gr.tag__disabled,o&&Gr.tag__active];return _.jsxs("div",{className:P(...c),children:[_.jsx("button",{className:Gr.tag_content,onClick:s,children:i}),!!a&&_.jsx("button",{className:Gr.tag_icon,onClick:l,children:_.jsx(oe,{className:Gr.iconSvg,size:"md",name:a,color:"neutral-70"})})]})},nt={dropzone:"_dropzone_1fvg9_9",dropzone_input:"_dropzone_input_1fvg9_13",dropzone_zone:"_dropzone_zone_1fvg9_21",dropzone_zone__disabled:"_dropzone_zone__disabled_1fvg9_34",dropzone_zone__active:"_dropzone_zone__active_1fvg9_34",dropzone_zone__error:"_dropzone_zone__error_1fvg9_34",dropzone_zone__uploading:"_dropzone_zone__uploading_1fvg9_34",dropzone_inner:"_dropzone_inner_1fvg9_52",dropzone_selectLink:"_dropzone_selectLink_1fvg9_60",dropzone_hint:"_dropzone_hint_1fvg9_66",dropzone_activeContent:"_dropzone_activeContent_1fvg9_70",activeLabel:"_activeLabel_1fvg9_77",dropzone_statusRow:"_dropzone_statusRow_1fvg9_80",loadingIcon:"_loadingIcon_1fvg9_85",statusText:"_statusText_1fvg9_88",dropzone_fileTag:"_dropzone_fileTag_1fvg9_91",dropzone_fileTag__stacked:"_dropzone_fileTag__stacked_1fvg9_94",dropzone_button:"_dropzone_button_1fvg9_97"},w6=({file:e,onRemove:t,stacked:n=!1})=>_.jsx(C6,{className:P(nt.dropzone_fileTag,n&&nt.dropzone_fileTag__stacked),type:"outlined",icon:"close",onIconClick:t,children:e.name}),Mr={link:"_link_1tmxa_1",link__disabled:"_link__disabled_1tmxa_11",link_content:"_link_content_1tmxa_11",link_iconLeft:"_link_iconLeft_1tmxa_27",link_iconRight:"_link_iconRight_1tmxa_34",link__inverse:"_link__inverse_1tmxa_48",link__colored:"_link__colored_1tmxa_64",link__sm:"_link__sm_1tmxa_77",link__darkMode:"_link__darkMode_1tmxa_80"},Ca=({children:e,className:t,disabled:n=!1,iconLeft:r,iconRight:o,inverse:i,size:a="md",colored:s=!1,onClick:l,...c})=>{const{theme:d}=gt();return _.jsxs("a",{...c,className:P(Mr.link,n&&Mr.link__disabled,i&&Mr.link__inverse,a==="sm"&&Mr.link__sm,s===!0&&Mr.link__colored,(d==null?void 0:d.mode)==="dark"&&Mr.link__darkMode,t&&t),onClick:()=>{n||l&&l()},tabIndex:n?-1:0,children:[r&&_.jsx(oe,{name:r,size:a,className:Mr.link_iconLeft}),_.jsx("span",{className:Mr.link_content,children:e}),o&&_.jsx(oe,{name:o,size:a,className:Mr.link_iconRight})]})};Ca.prototype={avocado:"Link"};const vS=({labels:e})=>_.jsxs(_.Fragment,{children:[_.jsx(Ca,{className:nt.dropzone_selectLink,disabled:!0,iconLeft:"upload",children:e.selectLabel}),_.jsx(Se,{className:nt.dropzone_hint,type:"sm",children:e.dropHint})]}),yS=({file:e,labels:t})=>{const n=(e==null?void 0:e.name)??"";return _.jsxs("div",{className:nt.dropzone_statusRow,children:[_.jsx(oe,{className:nt.loadingIcon,name:"loading",size:"md",color:"primary-50"}),_.jsxs(Se,{className:nt.statusText,type:"sm",weight:"medium",children:[t.uploadingLabel,n?` ${n}`:""]})]})},bS=({labels:e})=>_.jsxs("div",{className:nt.dropzone_statusRow,children:[_.jsx(oe,{name:"circle-cross",size:"md",color:"red-50",filled:!0}),_.jsx(Se,{className:nt.statusText,type:"sm",weight:"medium",children:e.uploadErrorLabel})]}),CS=({labels:e})=>_.jsxs("div",{className:nt.dropzone_activeContent,children:[_.jsx(oe,{name:"upload",size:"xl",color:"primary-50"}),_.jsx(Se,{className:nt.activeLabel,type:"sm",weight:"medium",children:e.activeLabel})]}),wS=({labels:e,file:t,showUploadedChip:n,onOpenPicker:r,onRemove:o})=>_.jsxs(_.Fragment,{children:[_.jsx(Ca,{className:nt.dropzone_selectLink,iconLeft:"upload",onClick:r,children:e.selectLabel}),_.jsx(Se,{className:nt.dropzone_hint,type:"sm",children:e.dropHint}),n&&t&&_.jsx(w6,{file:t,onRemove:o})]}),xS=e=>{const{disabled:t,uploadStatus:n,isDragActive:r,labels:o}=e;return t?_.jsx(vS,{labels:o}):n==="uploading"?_.jsx(yS,{file:e.file,labels:o}):n==="error"?_.jsx(bS,{labels:o}):r?_.jsx(CS,{labels:o}):_.jsx(wS,{labels:o,file:e.file,showUploadedChip:e.showUploadedChip,onOpenPicker:e.onOpenPicker,onRemove:e.onRemove})},x6=({selectLabel:e,dropHint:t,activeLabel:n,uploadingLabel:r,uploadErrorLabel:o,buttonLabel:i,file:a,uploadStatus:s="idle",disabled:l=!1,accept:c,display:d="zone",onFileChange:u,onRemove:p,className:f})=>{const h=y.useRef(null),{getRootProps:g,getInputProps:v,isDragActive:m,open:b}=y6({multiple:!1,noClick:!0,accept:c,disabled:l,onDrop:E=>{const D=E[0]??null;D&&u(D)}}),C=y.useCallback(E=>{l||(E==null||E.preventDefault(),E==null||E.stopPropagation(),b())},[l,b]),x=y.useCallback(()=>{l||(h.current&&(h.current.value=""),u(null),p==null||p())},[l,u,p]),w=v({className:nt.dropzone_input,ref:h}),k=a!=null&&s!=="uploading"&&s!=="error",S={selectLabel:e,dropHint:t,activeLabel:n,uploadingLabel:r,uploadErrorLabel:o},T=P(nt.dropzone_zone,l&&nt.dropzone_zone__disabled,m&&!l&&nt.dropzone_zone__active,s==="error"&&!l&&nt.dropzone_zone__error,s==="uploading"&&!l&&nt.dropzone_zone__uploading);return d==="button"?_.jsxs("div",{className:P(nt.dropzone,f),children:[_.jsx("input",{...w}),_.jsx(Cr,{className:nt.dropzone_button,variant:"secondary",leftIcon:"upload",disabled:l,onClick:C,children:i}),k&&a&&_.jsx(w6,{file:a,onRemove:x,stacked:!0})]}):_.jsxs("div",{className:P(nt.dropzone,f),children:[_.jsx("input",{...w}),_.jsx("div",{...g({className:T}),children:_.jsx("div",{className:nt.dropzone_inner,children:_.jsx(xS,{disabled:l,uploadStatus:s,isDragActive:m,file:a,showUploadedChip:k,labels:S,onOpenPicker:C,onRemove:x})})})]})},pi=()=>{const[e,t]=y.useState(!1);return y.useEffect(()=>{const n=window.matchMedia("(max-width: 992px)");t(n.matches);const r=o=>t(o.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),{isMobile:e}},Jt={fileUpload:"_fileUpload_1v2el_1",fileUpload_title:"_fileUpload_title_1v2el_4",fileUpload_divider:"_fileUpload_divider_1v2el_7",fileUpload_content:"_fileUpload_content_1v2el_11",loadColumn:"_loadColumn_1v2el_16",help:"_help_1v2el_21",rulesTitle:"_rulesTitle_1v2el_21",rule:"_rule_1v2el_21",helpDivider:"_helpDivider_1v2el_27",helpTitle:"_helpTitle_1v2el_30",helpDescription:"_helpDescription_1v2el_33",templateLink:"_templateLink_1v2el_36",fileUpload_notificationMobile:"_fileUpload_notificationMobile_1v2el_40"},kS=({title:e,rulesTitle:t,rules:n,helpTitle:r,helpDescription:o,templateLinkLabel:i,templateHref:a,onTemplateLinkClick:s,selectLabel:l,dropHint:c,activeLabel:d,uploadingLabel:u,uploadErrorLabel:p,buttonLabel:f,file:h,uploadStatus:g,disabled:v,accept:m,onFileChange:b,onRemove:C,notificationVisible:x=!1,notificationTitle:w,notificationDescription:k,notificationState:S="error",className:T})=>{const{isMobile:E}=pi(),D=x&&w&&k?_.jsx(fu,{className:Jt.fileUpload_notification,state:S,title:w,children:k}):null,O=_.jsx(Ca,{className:Jt.templateLink,colored:!0,iconLeft:"download",href:a,onClick:s,children:i}),N=_.jsxs("div",{className:Jt.help,children:[_.jsx(Se,{className:Jt.rulesTitle,type:"sm",weight:"medium",children:t}),n.map((V,A)=>_.jsx(Se,{className:Jt.rule,type:"sm",children:V},A)),_.jsx(qr,{className:Jt.helpDivider}),_.jsx(Se,{className:Jt.helpTitle,type:"sm",weight:"medium",children:r}),_.jsx(Se,{className:Jt.helpDescription,type:"sm",children:o}),O]});return _.jsxs(gp,{className:P(Jt.fileUpload,T),children:[_.jsx(wt,{type:"h3",className:Jt.fileUpload_title,children:e}),_.jsx(qr,{className:Jt.fileUpload_divider}),_.jsxs("section",{className:Jt.fileUpload_content,children:[_.jsxs("div",{className:Jt.loadColumn,children:[_.jsx(x6,{selectLabel:l,dropHint:c,activeLabel:d,uploadingLabel:u,uploadErrorLabel:p,buttonLabel:f,file:h,uploadStatus:g,disabled:v,accept:m,onFileChange:b,onRemove:C,display:E?"button":"zone"}),E?null:D]}),N]}),E?_.jsx("div",{className:Jt.fileUpload_notificationMobile,children:D}):null]})},h1=["var(--color-primitive-palette-1-50)","var(--color-primitive-palette-2-50)","var(--color-primitive-palette-3-50)","var(--color-primitive-palette-4-50)","var(--color-primitive-palette-5-50)","var(--color-primitive-palette-6-50)","var(--color-primitive-palette-7-50)","var(--color-primitive-palette-8-50)","var(--color-primitive-palette-9-50)","var(--color-primitive-palette-10-50)","var(--color-primitive-palette-11-50)","var(--color-primitive-palette-12-50)","var(--color-primitive-palette-13-50)","var(--color-primitive-palette-14-50)","var(--color-primitive-palette-15-50)","var(--color-primitive-palette-16-50)","var(--color-primitive-palette-17-50)"],m1="neutral-70",wl=e=>`var(--color-${e})`,xl=(e,t)=>t?wl(t):h1[e%h1.length],k6=(e,t)=>{const n=e.map(({label:r,color:o},i)=>({label:r,color:xl(i,o),swatch:"square"}));return t?[...n,{label:t.label,color:wl(t.color??m1),swatch:"line"}]:n},kl={chartLegend:"_chartLegend_10i9f_1",chartLegend_item:"_chartLegend_item_10i9f_11",legendSwatch:"_legendSwatch_10i9f_24",legendSwatch__line:"_legendSwatch__line_10i9f_31"},S6=({items:e})=>_.jsx("ul",{className:kl.chartLegend,children:e.map(({label:t,color:n,swatch:r},o)=>_.jsxs("li",{className:kl.chartLegend_item,children:[_.jsx("span",{"aria-hidden":!0,className:P(kl.legendSwatch,r==="line"&&kl.legendSwatch__line),style:{"--chart-legend-color":n}}),t]},`${t}-${o}`))}),wa={chartTooltip:"_chartTooltip_v7lii_1",chartTooltip_category:"_chartTooltip_category_v7lii_13",chartTooltip_row:"_chartTooltip_row_v7lii_18",tooltipSwatch:"_tooltipSwatch_v7lii_25",tooltipValue:"_tooltipValue_v7lii_31"},D6=({active:e,label:t,payload:n,formatX:r,formatValue:o,renderTooltip:i})=>{if(!e||!n.length)return null;const a=i==null?void 0:i(n[0].payload);return _.jsx("div",{className:wa.chartTooltip,role:"status","aria-live":"polite","aria-atomic":"true",children:a??_.jsxs(_.Fragment,{children:[_.jsx("p",{className:wa.chartTooltip_category,children:r?r(t??""):t}),n.map(({dataKey:s,name:l,value:c,color:d})=>_.jsxs("p",{className:wa.chartTooltip_row,children:[_.jsx("span",{"aria-hidden":!0,className:wa.tooltipSwatch,style:{"--chart-tooltip-color":d}}),l," ",_.jsx("span",{className:wa.tooltipValue,children:o?o(Number(c)):c})]},String(s)))]})})},T6=4,L6=2,SS=300,DS=1,TS=24,LS=.5,MS=(e,t,n)=>{const r=e/t*LS,o=Math.floor((r-(n-1)*T6)/n);return Math.min(TS,Math.max(DS,o))},hi={barChart:"_barChart_1x3e3_1",barChart_tick:"_barChart_tick_1x3e3_6",barChart_grid:"_barChart_grid_1x3e3_10",barChart_baseline:"_barChart_baseline_1x3e3_13",barChart_referenceLine:"_barChart_referenceLine_1x3e3_17",barChart_cursor:"_barChart_cursor_1x3e3_20"},ES=({series:e,categoryCount:t})=>{var o;const n=((o=Re.usePlotArea())==null?void 0:o.width)??0,r=MS(n,t,e.length);return y.useMemo(()=>_.jsx(_.Fragment,{children:e.map(({key:i,label:a},s)=>_.jsx(Re.Bar,{dataKey:i,name:a,fill:xl(s),barSize:r,radius:[L6,L6,0,0]},i))}),[e,r])},M6=({data:e,xKey:t,series:n,label:r,height:o=SS,referenceLine:i,showLegend:a=!1,showTooltip:s=!1,showCursor:l=!1,formatValue:c,className:d,renderTooltip:u})=>{const p=y.useCallback(h=>s&&_.jsx(D6,{...h,formatValue:c,renderTooltip:u}),[s,c,u]);if(!e.length||!n.length)return null;const f={className:hi.barChart_tick};return _.jsx("div",{role:"figure","aria-label":r,className:P(hi.barChart,d),children:_.jsx(Re.ResponsiveContainer,{width:"100%",height:o,children:_.jsxs(Re.BarChart,{data:e,barGap:T6,accessibilityLayer:!1,children:[_.jsx(Re.CartesianGrid,{vertical:!1,className:hi.barChart_grid}),_.jsx(Re.XAxis,{dataKey:t,axisLine:!1,tickLine:!1,tick:f}),_.jsx(Re.YAxis,{axisLine:!1,tickLine:!1,tick:f,tickFormatter:c}),_.jsx(Re.ReferenceLine,{y:0,className:hi.barChart_baseline}),(s||l)&&_.jsx(Re.Tooltip,{cursor:l&&{className:hi.barChart_cursor},content:p}),a&&_.jsx(Re.Legend,{content:_.jsx(S6,{items:k6(n,i)})}),_.jsx(ES,{series:n,categoryCount:e.length}),i&&_.jsx(Re.ReferenceLine,{y:i.value,ifOverflow:"extendDomain",stroke:wl(m1),className:hi.barChart_referenceLine})]})})})};M6.prototype={avocado:"BarChart"};const E6=["palette-1-50","palette-2-50","palette-3-50","palette-4-50","palette-5-50","palette-6-50","palette-7-50","palette-8-50"],P6=["info-50","warning-50","warning-50","gray-30"],PS=40,I6=8,IS=160,OS=14,O6=300,_1={xs:40,sm:56,md:96,lg:160},g1=e=>`var(--color-${e})`,N6=({color:e},t)=>e??E6[t%E6.length],v1=({color:e},t)=>e??P6[t%P6.length],A6=e=>e.reduce((t,{value:n})=>t+n,0),j6=(e,t)=>t>0?Math.round(e/t*100):0,NS=(e,t,{maxDiameter:n=1/0,legendReserve:r=0}={})=>{const o=Math.max(PS,Math.min(e,t-r,n));return Math.round(o/I6)*I6},AS=e=>e&&/^\d+(\.\d+)?(px)?$/.test(e.trim())?Number.parseFloat(e):void 0,jS=(e=`${O6}px`,t=`${O6}px`)=>{const n=[e,t].map(AS).filter(r=>r!==void 0);return n.length?Math.min(...n):"auto"},RS=e=>e.map((t,n)=>({label:t.name,value:t.percentage,color:v1(t,n)})),FS=(e,t)=>typeof e=="number"?e:e==="auto"?t??_1.sm:_1[e],VS=(e,t)=>{const n=t?Math.max(80,Math.round(e*.4)):0,r=Math.max(2,Math.round(e/10)),o=e/2;return{containerSize:e+n*2,innerRadius:Math.max(0,o-r),outerRadius:o}},BS=(e,t,n)=>n==="activeSegment"?Math.min(OS,Math.max(10,Math.round(t*.12))):Math.min(Math.max(8,Math.round(e*.2)),Math.round(t*.32)),HS=(e,t)=>j6(e.value,A6(t)),$S=(e,t={})=>{const n=t.interactive??e;return{interactive:n,showCallout:n&&(t.showCallout??e),centerMode:t.centerMode??(e?"activeSegment":"fixed")}},R6=e=>{const t=A6(e);return e.map((n,r)=>({name:n.label,value:n.value,percentage:j6(n.value,t),color:N6(n,r)}))},zS=(e,t)=>{const n=R6(e).map(({name:r,value:o,percentage:i})=>`${r} ${o} (${i}%)`).join(", ");return t?`${t}: ${n}`:n},Kr={donut_center:"_donut_center_gj097_1",label:"_label_gj097_1",value:"_value_gj097_1",donut:"_donut_gj097_1",donut__auto:"_donut__auto_gj097_17",donut__static:"_donut__static_gj097_21",donut_chart:"_donut_chart_gj097_24",calloutLabel:"_calloutLabel_gj097_34"},F6=Math.PI/180,WS=3,y1=6,V6=16,US=12,YS=8,ZS=({cx:e=0,cy:t=0,midAngle:n=0,innerRadius:r=0,outerRadius:o=0,startAngle:i=0,endAngle:a=0,fill:s,percent:l=0,value:c=0})=>{const d=Math.sin(-F6*n),u=Math.cos(-F6*n),p=u>=0?1:-1,f=e+(o+y1)*u,h=t+(o+y1)*d,g=e+(o+V6)*u,v=t+(o+V6)*d,m=g+p*US;return _.jsxs("g",{children:[_.jsx(Re.Sector,{cx:e,cy:t,innerRadius:r,outerRadius:o,startAngle:i,endAngle:a,fill:s}),_.jsx(Re.Sector,{cx:e,cy:t,startAngle:i,endAngle:a,innerRadius:o+WS,outerRadius:o+y1,fill:s}),_.jsx("path",{d:`M${f},${h}L${g},${v}L${m},${v}`,stroke:s,fill:"none"}),_.jsx("circle",{cx:m,cy:v,r:2,fill:s,stroke:"none"}),_.jsxs("text",{className:Kr.calloutLabel,x:m+p*YS,y:v,textAnchor:u>=0?"start":"end",children:[c," (",(l*100).toFixed(0),"%)"]})]})},B6=({className:e,segments:t,data:n,size:r,showCenter:o,children:i,centerMode:a,centerValue:s,centerLabel:l,interactive:c,showCallout:d,chartChildren:u,defaultIndex:p,autoMaxDiameter:f,autoLegendReserve:h,width:g,height:v})=>{const m=y.useRef(null),[b,C]=y.useState(),[x,w]=y.useState(),k=!r&&!!(n??g??v),S=k?jS(g,v):r??"sm",T=S==="auto";y.useLayoutEffect(()=>{const ae=m.current;if(!T||!ae)return;const L=()=>{const je=ae.getBoundingClientRect();C(NS(je.width,je.height,{maxDiameter:f,legendReserve:h}))};L();const le=new ResizeObserver(L);return le.observe(ae),()=>le.disconnect()},[h,f,T]);const E=y.useMemo(()=>t??(n?RS(n):[]),[n,t]),D=FS(S,b),O=$S(!k&&D>=IS,{interactive:c,showCallout:d,centerMode:a}),N=VS(D,O.showCallout),V=N.innerRadius*2,A=O.centerMode==="activeSegment",I=x===void 0?p:x,j=I==null?void 0:E[I],W=O.centerMode==="fixed"&&E.length>0?`${HS(E[0],E)}%`:void 0,$=O.centerMode==="activeSegment"&&j?{value:j.label,label:void 0}:{value:s??W,label:l},Y=(o??!k)&&!!(i??$.value),M=E.length>0,_e={"--donut-container-size":`${N.containerSize}px`,"--donut-hole-size":`${V}px`,"--donut-center-font-size":`${BS(D,V,O.centerMode)}px`};return _.jsxs("div",{ref:m,className:P(Kr.donut,T&&Kr.donut__auto,!O.interactive&&Kr.donut__static,e),style:_e,children:[_.jsx("div",{className:Kr.donut_chart,role:M?"img":void 0,"aria-label":M?zS(E,[s,l].filter(Boolean).join(" ")):void 0,children:_.jsx(Re.ResponsiveContainer,{width:"100%",height:"100%",children:_.jsxs(Re.PieChart,{accessibilityLayer:!1,children:[u,O.showCallout&&_.jsx(Re.Tooltip,{defaultIndex:p,cursor:!1,content:()=>null}),_.jsx(Re.Pie,{data:E,dataKey:"value",nameKey:"label",cx:"50%",cy:"50%",innerRadius:N.innerRadius,outerRadius:N.outerRadius,startAngle:90,endAngle:-270,paddingAngle:0,stroke:"none",isAnimationActive:D>=_1.sm,activeShape:O.showCallout?ZS:!1,onMouseEnter:A?(ae,L)=>w(L):void 0,onMouseLeave:A?()=>w(null):void 0,children:E.map((ae,L)=>_.jsx(Re.Cell,{fill:g1(N6(ae,L))},`${ae.label}-${L}`))})]})})}),Y&&_.jsx("div",{className:Kr.donut_center,"aria-hidden":!i,children:i??_.jsxs(_.Fragment,{children:[_.jsx("span",{className:Kr.value,children:$.value}),$.label&&_.jsx("span",{className:Kr.label,children:$.label})]})})]})};B6.prototype={avocado:"Donut"};const Sl={donutLabels:"_donutLabels_uyrai_1",donutLabels_item:"_donutLabels_item_uyrai_6",donutLabels_item__inverse:"_donutLabels_item__inverse_uyrai_23"},H6=({className:e,data:t})=>{const n=t.reduce((r,o)=>r+(o==null?void 0:o.value),0);return _.jsxs("section",{className:P(Sl.donutLabels,e&&e),children:[t==null?void 0:t.map((r,o)=>{const i=v1(r,o);return _.jsx("div",{className:P(Sl.donutLabels_item,i==="info-50"&&Sl.donutLabels_item__inverse),style:{"--donut-item-color":g1(i)},children:_.jsx("span",{children:r==null?void 0:r.value})},`donut-label-${o}`)}),_.jsx("div",{className:Sl.donutLabels_item,children:_.jsx("span",{children:n})})]})};H6.prototype={avocado:"DonutLabels"};const xa={donutLegend:"_donutLegend_qdzka_1",donutLegend_item:"_donutLegend_item_qdzka_6",itemBox:"_itemBox_qdzka_16"},$6=({className:e,data:t,totalLabel:n="Total",showTotal:r=!0})=>_.jsxs("section",{className:P(xa.donutLegend,e&&e),children:[r&&_.jsxs("div",{className:P(xa.donutLegend_item),children:[_.jsx("div",{className:xa.itemBox})," ",n]}),t==null?void 0:t.map((o,i)=>_.jsxs("div",{className:xa.donutLegend_item,style:{"--donut-item-color":g1(v1(o,i))},children:[_.jsx("div",{className:xa.itemBox}),o==null?void 0:o.name]},`donut-legend-${i}`))]});$6.prototype={avocado:"DonutLegend"};const mi=({ref:e,shouldIgnore:t,onClickOutside:n})=>{let r=!1;const o=l=>{e!=null&&e.current&&!(e!=null&&e.current.contains(l.target))&&!t&&(n==null||n())},i=()=>{document.addEventListener("mousedown",o)},a=()=>{document.removeEventListener("mousedown",o),r=!1},s=()=>{if(!r){i(),r=!0;return}a(),i()};y.useEffect(()=>{if(t){a();return}return s(),()=>{a()}},[e,t])},Qr={dropdown:"_dropdown_iow1b_21",dropdown_button:"_dropdown_button_iow1b_25",chevronIcon:"_chevronIcon_iow1b_32",dropdown_button__ghost:"_dropdown_button__ghost_iow1b_35",dropdown_menu:"_dropdown_menu_iow1b_42",fadeInScale:"_fadeInScale_iow1b_1",menuItem:"_menuItem_iow1b_54",dropdownButton_menu__top:"_dropdownButton_menu__top_iow1b_77",dropdownButton_menu__bottom:"_dropdownButton_menu__bottom_iow1b_81",dropdown_menu__close:"_dropdown_menu__close_iow1b_85",fadeOutScale:"_fadeOutScale_iow1b_1"},z6=({children:e,className:t,disabled:n,items:r,variant:o="primary"})=>{const[i,a]=y.useState(!1),[s,l]=y.useState(!1),[c,d]=y.useState("bottom"),u=y.useRef(null),p=()=>{if(!u.current)return;const m=u.current.getBoundingClientRect(),b=window.innerHeight-(m.y+m.height),C=m.y;d(C>b?"top":"bottom")};mi({ref:u,onClickOutside:()=>h(!1)}),y.useEffect(()=>{p();const m=()=>p();window.addEventListener("resize",m),window.addEventListener("scroll",m);const b=C=>{u.current&&!u.current.contains(C.target)&&h(!1)};return document.addEventListener("mousedown",b),()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",m),document.removeEventListener("mousedown",b)}},[]);const f=()=>{s&&(l(!1),a(!1))},h=m=>{if(!m)return l(!0);a(!0),l(!1)},g={secondary:n?"neutral-50":"neutral-70",ghost:n?"neutral-50":"neutral-70"},v=n?"neutral-50":"gray-00";return _.jsxs("section",{className:P(Qr.dropdown,t&&t),ref:u,children:[_.jsxs(Cr,{className:P(Qr.dropdown_button,o==="ghost"&&Qr.dropdown_button__ghost),disabled:n,variant:o,onClick:()=>h(!i),children:[e,_.jsx(oe,{color:g[o]||v,className:Qr.chevronIcon,name:"chevron-down"})]}),!n&&i&&_.jsx("ul",{onAnimationEnd:f,className:P(Qr.dropdown_menu,Qr[`dropdownButton_menu__${c}`],s&&Qr.dropdown_menu__close),children:r==null?void 0:r.map((m,b)=>_.jsx("li",{className:Qr.menuItem,onClick:()=>{m.onClick(),h(!1)},children:m==null?void 0:m.label},`dropdown-menu-item-${b}`))})]})};z6.prototype={avocado:"DropdownButton"};const W6={lineChartGuide:"_lineChartGuide_15g12_1",lineChartGuide__animated:"_lineChartGuide__animated_15g12_6"};function qS({animate:e=!0,points:t,className:n}){const r=Re.usePlotArea(),o=t==null?void 0:t[0],i=t==null?void 0:t[1];return!r||!o||!i?null:_.jsx("line",{className:P(W6.lineChartGuide,n,{[W6.lineChartGuide__animated]:e}),x1:0,x2:0,y1:o.y,y2:i.y,style:{transform:`translateX(${o.x}px)`},"aria-hidden":"true"},`${r.x}:${r.y}:${r.width}:${r.height}`)}const U6=320,Y6=4,GS=350,KS=2,QS=3,XS=4,JS=24,eD=16,tD={top:12,right:12,bottom:8,left:0},Z6="(prefers-reduced-motion: reduce)";function nD(){const[e,t]=y.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(Z6).matches);return y.useEffect(()=>{if(typeof window.matchMedia!="function")return;const n=window.matchMedia(Z6),r=()=>t(n.matches);return n.addEventListener("change",r),r(),()=>n.removeEventListener("change",r)},[]),e}function rD(e,t,n,r=Y6){if(!Number.isSafeInteger(r)||r<1)return{status:"invalid",reason:"invalid-limit"};if(n.length>r)return{status:"invalid",reason:"series-limit"};if(n.length===0)return{status:"empty",reason:"no-series"};const o=new Set;for(const a of n){if(!a.key||!a.label.trim()||a.key===t)return{status:"invalid",reason:"invalid-series"};if(o.has(a.key))return{status:"invalid",reason:"duplicate-series"};o.add(a.key)}if(e.length===0)return{status:"empty",reason:"no-data"};let i=!1;for(const a of e){if(a===null||typeof a!="object"||Array.isArray(a))return{status:"invalid",reason:"invalid-x"};const s=a[t];if(!(typeof s=="string"&&s.length>0||typeof s=="number"&&Number.isFinite(s)))return{status:"invalid",reason:"invalid-x"};for(const l of n){const c=a[l.key];if(c!=null){if(typeof c!="number"||!Number.isFinite(c))return{status:"invalid",reason:"invalid-value"};i=!0}}}return i?{status:"valid"}:{status:"empty",reason:"no-values"}}function oD(e,t,n=!1){let r=1/0,o=-1/0;for(const a of e)for(const s of t){const l=a[s.key];typeof l=="number"&&Number.isFinite(l)&&(r=Math.min(r,l),o=Math.max(o,l))}if(r===1/0)return[-1,1];if(n&&r===0&&o===0)return[0,1];const i=r===o?Math.max(Math.abs(r)*.05,1):Math.max((o-r)*.05,Number.EPSILON);return n?[r>=0?0:r-i,o<=0?0:o+i]:[r-i,o+i]}function iD(e,t,n){return e!=="auto"?e:n===1?!0:n>1&&t/(n-1)>=JS}const nr={lineChart:"_lineChart_19sr7_1",lineChart_plot:"_lineChart_plot_19sr7_4",activeDot:"_activeDot_19sr7_15",referenceLine:"_referenceLine_19sr7_20",lineChartAxis_grid:"_lineChartAxis_grid_19sr7_25",lineChartAxis_line:"_lineChartAxis_line_19sr7_29",lineChartAxis_tick:"_lineChartAxis_tick_19sr7_32"};function aD({series:e,pointCount:t,curveType:n,showDots:r,showArea:o,inspectable:i,animated:a,areaBaseValue:s,gradientId:l}){var u;const c=((u=Re.usePlotArea())==null?void 0:u.width)??0,d=iD(r,c,t);return y.useMemo(()=>_.jsx(_.Fragment,{children:e.map((p,f)=>{const h=xl(f,p.color),g={name:p.label,dataKey:p.key,type:n,stroke:h,strokeWidth:KS,connectNulls:!1,dot:d?{r:QS,fill:h,strokeWidth:0}:!1,activeDot:i?{r:XS,className:nr.activeDot}:!1,isAnimationActive:a,animationDuration:GS,animationEasing:"ease-out"};return o&&e.length===1?y.createElement(Re.Area,{...g,key:p.key,baseValue:s,fill:`url(#${l})`}):y.createElement(Re.Line,{...g,key:p.key,fill:"none"})})}),[e,n,d,i,a,o,s,l])}function q6({data:e,xKey:t,series:n,label:r,summary:o,includeZero:i=!1,showDots:a="auto",showArea:s=!1,maxSeries:l=Y6,curveType:c="linear",variant:d="full",height:u=U6,formatX:p=String,formatValue:f=String,reference:h,animate:g=!0,showLegend:v=!1,showTooltip:m=!1,showCursor:b=!1,renderTooltip:C,className:x}){var W;const w=y.useId(),k=y.useId(),S=nD(),T=y.useMemo(()=>[...e],[e]),E=y.useMemo(()=>oD(e,n,i),[e,n,i]),D=y.useCallback($=>f(Number($.toPrecision(12))),[f]),O=y.useCallback($=>m&&_.jsx(D6,{...$,formatX:p,formatValue:f,renderTooltip:C}),[m,p,f,C]),N=Number.isFinite(u)&&u>0?u:U6,V=h&&Number.isFinite(h.value)&&h.value>=E[0]&&h.value<=E[1],A=m||b,I=d==="compact",j=xl(0,(W=n[0])==null?void 0:W.color);return rD(e,t,n,l).status!=="valid"?null:_.jsxs("div",{className:P(nr.lineChart,x),children:[o&&_.jsx("span",{id:w,hidden:!0,children:o}),_.jsx("div",{className:nr.lineChart_plot,style:{height:N},children:_.jsx(Re.ResponsiveContainer,{width:"100%",height:"100%",children:_.jsxs(Re.ComposedChart,{data:T,margin:tD,accessibilityLayer:A,"aria-label":r,"aria-describedby":o?w:void 0,children:[_.jsx("defs",{children:_.jsxs("linearGradient",{id:k,x1:"0",y1:"0",x2:"0",y2:"1",children:[_.jsx("stop",{offset:"0%",stopColor:j,stopOpacity:.2}),_.jsx("stop",{offset:"100%",stopColor:j,stopOpacity:0})]})}),!I&&_.jsx(Re.CartesianGrid,{className:nr.lineChartAxis_grid}),_.jsx(Re.XAxis,{dataKey:t,axisLine:{className:nr.lineChartAxis_line},tickLine:{className:nr.lineChartAxis_line},hide:I,tickFormatter:p,tick:{className:nr.lineChartAxis_tick},minTickGap:eD,interval:"preserveStartEnd"}),_.jsx(Re.YAxis,{domain:E,hide:I,width:"auto",tickLine:{className:nr.lineChartAxis_line},tickFormatter:D,tick:{className:nr.lineChartAxis_tick},axisLine:!1}),V&&_.jsx(Re.ReferenceLine,{y:h.value,stroke:wl(h.color??m1),className:nr.referenceLine}),_.jsx(aD,{series:n,pointCount:e.length,curveType:c,showDots:a,showArea:s,inspectable:A,animated:g&&!S,areaBaseValue:E[0],gradientId:k}),A&&_.jsx(Re.Tooltip,{isAnimationActive:!1,cursor:b?_.jsx(qS,{animate:g}):!1,content:O}),v&&_.jsx(Re.Legend,{content:_.jsx(S6,{items:k6(n,V?h:void 0)})})]})})})]})}q6.prototype={avocado:"LineChart"};const G6={spinnerSvg:"_spinnerSvg_1i15l_1"},sD=({size:e="lg"})=>_.jsx(_.Fragment,{children:e==="lg"?_.jsxs("svg",{width:"104",height:"104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G6.spinnerSvg,children:[_.jsx("path",{d:"M100 52a48 48 0 1 1-96.001 0A48 48 0 0 1 100 52Z",stroke:"var(--color-primary-30)",strokeWidth:"8"}),_.jsx("path",{d:"M100 52a48 48 0 0 1-33.167 45.65",stroke:"var(--color-primary-50)",strokeWidth:"8",strokeLinecap:"round"})]}):_.jsxs("svg",{width:"36",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:G6.spinnerSvg,children:[_.jsx("circle",{opacity:".5",cx:"18",cy:"18",r:"16",stroke:"var(--color-primary-30)",strokeWidth:"4"}),_.jsx("path",{d:"M18 34C9.163 34 2 26.837 2 18",stroke:"var(--color-primary-50)",strokeWidth:"4"})]})}),_i={cntLoading:"_cntLoading_1suxv_1",cntLoading__inline:"_cntLoading__inline_1suxv_16",cntLoading_content:"_cntLoading_content_1suxv_20",title:"_title_1suxv_28",description:"_description_1suxv_31",cntLoading__darkMode:"_cntLoading__darkMode_1suxv_34"},lD=({className:e,description:t,title:n,size:r,inline:o})=>{const{theme:{mode:i}}=gt();return _.jsxs("section",{className:P(_i.cntLoading,i==="dark"&&_i.cntLoading__darkMode,o&&_i.cntLoading__inline,e&&e),children:[_.jsx(sD,{size:r}),_.jsxs("div",{className:_i.cntLoading_content,children:[n&&_.jsx(wt,{className:_i.title,type:"h1",darkMode:!0,children:n}),t&&_.jsx(Se,{className:_i.description,darkMode:!0,type:"lg",weight:"medium",children:t})]})]})},$t={matrixTable:"_matrixTable_14xck_2",matrixTable_viewport:"_matrixTable_viewport_14xck_5",emptyCell:"_emptyCell_14xck_30",matrixGrid:"_matrixGrid_14xck_34",matrixGrid_group:"_matrixGrid_group_14xck_43",bodyRow:"_bodyRow_14xck_43",bodyRow_cell:"_bodyRow_cell_14xck_43",bodyRow_groupCell:"_bodyRow_groupCell_14xck_46",headRow:"_headRow_14xck_59",headRow_cell:"_headRow_cell_14xck_62",headRow_cell__group:"_headRow_cell__group_14xck_78",headRow_cell__groupEnd:"_headRow_cell__groupEnd_14xck_84",headRow_cell__pinned:"_headRow_cell__pinned_14xck_87",headRow_cell__boundary:"_headRow_cell__boundary_14xck_93",headRow_cell__start:"_headRow_cell__start_14xck_96",headRow_cell__center:"_headRow_cell__center_14xck_99",headRow_cell__end:"_headRow_cell__end_14xck_102",bodyRow_cell__pinned:"_bodyRow_cell__pinned_14xck_118",bodyRow_cell__boundary:"_bodyRow_cell__boundary_14xck_131",bodyRow_cell__start:"_bodyRow_cell__start_14xck_134",bodyRow_cell__center:"_bodyRow_cell__center_14xck_137",bodyRow_cell__end:"_bodyRow_cell__end_14xck_140",bodyRow_groupCell__groupEnd:"_bodyRow_groupCell__groupEnd_14xck_155",bodyRow_groupCell__pinned:"_bodyRow_groupCell__pinned_14xck_158",bodyRow_groupCell__boundary:"_bodyRow_groupCell__boundary_14xck_163",bodyRow_groupCell__start:"_bodyRow_groupCell__start_14xck_166",bodyRow_groupCell__center:"_bodyRow_groupCell__center_14xck_169",bodyRow_groupCell__end:"_bodyRow_groupCell__end_14xck_172"};function cD(e){const t=[];let n=0,r=!0,o=!1,i=-1;return e.forEach((a,s)=>{const l=a.pinned==="start"&&r;a.pinned==="start"&&!r&&(o=!0),a.pinned!=="start"&&(r=!1),t.push({width:a.width,isPinned:l,offset:n,isBoundary:!1}),l&&(n+=a.width,i=s)}),i!==-1&&(t[i].isBoundary=!0),{columns:t,totalWidth:e.reduce((a,{width:s})=>a+s,0),hasNonContiguousPinning:o}}function uD(e,t,n){return e.map(r=>{const o=n(r);return{key:t(r),group:r,rows:o,rowSpan:Math.max(o.length,1),isStructural:o.length===0}})}const dD="--matrix-table-pinned-offset",ka=({width:e,isPinned:t,offset:n})=>({width:e,...t&&{[dD]:`${n}px`}}),Sa=({isPinned:e,isBoundary:t},n,{align:r,className:o})=>P($t[n],e&&$t[`${n}__pinned`],t&&$t[`${n}__boundary`],r&&$t[`${n}__${r}`],o),fD=({groups:e,groupColumns:t,columns:n,getGroupKey:r,getRows:o,getRowKey:i,accessibleLabel:a,emptyContent:s,isBusy:l=!1,className:c,...d},u)=>{const p=[...t,...n],f=cD(p),h=uD(e,r,o),g=h.length===0;y.useRef("");const{hasNonContiguousPinning:v}=f;y.useEffect(()=>{},[n,t,v]);const m=C=>f.columns[C],b=C=>f.columns[t.length+C];return _.jsx("div",{...d,ref:u,className:P($t.matrixTable,c),children:_.jsx("div",{className:$t.matrixTable_viewport,role:"region","aria-label":a,"aria-busy":l,tabIndex:0,children:_.jsxs("table",{className:$t.matrixGrid,style:{width:f.totalWidth},"aria-label":a,children:[_.jsx("colgroup",{children:p.map((C,x)=>_.jsx("col",{style:{width:m(x).width}},C.key))}),_.jsx("thead",{children:_.jsx("tr",{className:$t.headRow,children:p.map((C,x)=>_.jsx("th",{scope:"col",className:P(Sa(m(x),"headRow_cell",C),x<t.length&&$t.headRow_cell__group,x===t.length-1&&$t.headRow_cell__groupEnd),style:ka(m(x)),children:C.header},C.key))})}),g&&s!=null&&_.jsx("tbody",{children:_.jsx("tr",{children:_.jsx("td",{className:$t.emptyCell,colSpan:Math.max(p.length,1),children:s})})}),!g&&h.map(({key:C,group:x,rows:w,rowSpan:k,isStructural:S})=>pD({key:C,group:x,rows:w,rowSpan:k,isStructural:S,groupColumns:t,columns:n,getRowKey:i,layoutOf:m,detailLayoutOf:b}))]})})})};function pD({key:e,group:t,rows:n,rowSpan:r,isStructural:o,groupColumns:i,columns:a,getRowKey:s,layoutOf:l,detailLayoutOf:c}){const d=i.map((u,p)=>_.jsx("th",{scope:"rowgroup",rowSpan:r,className:P(Sa(l(p),"bodyRow_groupCell",u),p===i.length-1&&$t.bodyRow_groupCell__groupEnd),style:ka(l(p)),children:u.renderGroupCell(t,u)},u.key));return _.jsx("tbody",{className:$t.matrixGrid_group,children:o?_.jsxs("tr",{className:$t.bodyRow,children:[d,a.map((u,p)=>_.jsx("td",{className:Sa(c(p),"bodyRow_cell",u),style:ka(c(p))},u.key))]}):n.map((u,p)=>_.jsxs("tr",{className:$t.bodyRow,children:[p===0&&d,a.map((f,h)=>{const g=c(h),v=f.renderCell(u,t,f);return f.isRowHeader?_.jsx("th",{scope:"row",className:Sa(g,"bodyRow_cell",f),style:ka(g),children:v},f.key):_.jsx("td",{className:Sa(g,"bodyRow_cell",f),style:ka(g),children:v},f.key)})]},s(u,t)))},e)}const K6=y.forwardRef(fD);K6.prototype={avocado:"MatrixTable"};const rr={menu:"_menu_1uv1z_21",menu_list:"_menu_list_1uv1z_27",fadeInScale:"_fadeInScale_1uv1z_1",menu_list__left:"_menu_list__left_1uv1z_39",menu_list__right:"_menu_list__right_1uv1z_42",menu_list__close:"_menu_list__close_1uv1z_45",fadeOutScale:"_fadeOutScale_1uv1z_1",listItem:"_listItem_1uv1z_48",listItem_icon:"_listItem_icon_1uv1z_79",menu__small:"_menu__small_1uv1z_85"},b1=({className:e="",closeOnClick:t=!1,disabled:n=!1,forceLightMode:r=!1,items:o=[],listOrigin:i="left",size:a="md",variant:s="secondary",onVisibleChange:l,triggerLabel:c})=>{const[d,u]=y.useState(!1),[p,f]=y.useState(!1),h=y.useRef(null);mi({ref:h,onClickOutside(){v(!1)}});const g=()=>{p&&(f(!1),u(!1))},v=m=>{if(!m)return f(!0);u(!0),f(!1)};return y.useEffect(()=>{l==null||l(d)},[d]),_.jsxs("div",{ref:h,className:P(rr.menu,a==="sm"&&rr.menu__small,e&&e),children:[_.jsx(Vr,{className:rr.menu_trigger,"data-testid":"menu-trigger","aria-label":c,disabled:n,forceLightMode:r,icon:"dots",onClick:()=>{n||v(!d)},size:a,variant:s}),d&&_.jsx("div",{onAnimationEnd:g,"data-testid":"menu-list",className:P(rr.menu_list,rr==null?void 0:rr[`menu_list__${i}`],p&&rr.menu_list__close),children:o==null?void 0:o.map((m,b)=>_.jsxs("button",{className:rr.listItem,onClick:C=>{var x;(x=m==null?void 0:m.onClick)==null||x.call(m,C),t&&v(!1)},children:[!!(m!=null&&m.icon)&&_.jsx(oe,{"data-testid":"menu-item-icon",className:rr.listItem_icon,name:m.icon,size:"md"}),m==null?void 0:m.label]},b))})]})};b1.prototype={avocado:"Menu"};const en={modal__bodyOpen:"_modal__bodyOpen_f8vdo_1",modal:"_modal_f8vdo_1",modal__dark:"_modal__dark_f8vdo_15",modal_overlay:"_modal_overlay_f8vdo_15",modal__isOpen:"_modal__isOpen_f8vdo_18",fadeInOverlay:"_fadeInOverlay_f8vdo_1",content:"_content_f8vdo_21",modalEnter:"_modalEnter_f8vdo_1",modal__isClosing:"_modal__isClosing_f8vdo_24",fadeOutOverlay:"_fadeOutOverlay_f8vdo_1",modalLeave:"_modalLeave_f8vdo_1",modal__danger:"_modal__danger_f8vdo_30",modal__warning:"_modal__warning_f8vdo_33",modal__palette_1_50:"_modal__palette_1_50_f8vdo_36",modal__palette_2_50:"_modal__palette_2_50_f8vdo_39",modal__palette_3_50:"_modal__palette_3_50_f8vdo_42",modal__palette_4_50:"_modal__palette_4_50_f8vdo_45",modal__palette_5_50:"_modal__palette_5_50_f8vdo_48",modal__palette_6_50:"_modal__palette_6_50_f8vdo_51",modal__palette_7_50:"_modal__palette_7_50_f8vdo_54",modal__palette_8_50:"_modal__palette_8_50_f8vdo_57",modal__palette_9_50:"_modal__palette_9_50_f8vdo_60",modal__palette_10_50:"_modal__palette_10_50_f8vdo_63",modal__palette_11_50:"_modal__palette_11_50_f8vdo_66",modal__palette_12_50:"_modal__palette_12_50_f8vdo_69",modal__palette_13_50:"_modal__palette_13_50_f8vdo_72",modal__palette_14_50:"_modal__palette_14_50_f8vdo_75",modal__palette_15_50:"_modal__palette_15_50_f8vdo_78",modal__palette_16_50:"_modal__palette_16_50_f8vdo_81",modal__palette_17_50:"_modal__palette_17_50_f8vdo_84",modal__palette_18_50:"_modal__palette_18_50_f8vdo_87",modal_dialog:"_modal_dialog_f8vdo_100",content_header:"_content_header_f8vdo_120",content_header__bordered:"_content_header__bordered_f8vdo_127",closeBtn:"_closeBtn_f8vdo_131",content_body:"_content_body_f8vdo_139",content_footer:"_content_footer_f8vdo_142"},Q6=e=>{const t=en.modal__bodyOpen;if(e){document.body.classList.add(t);return}document.body.classList.remove(t)},hD=({open:e,disableOverlayClick:t=!1,className:n,header:r,headerStatusColor:o,children:i,actions:a,onClose:s,headerBordered:l=!1})=>{const c=y.useRef(null),[d,u]=y.useState(e),[p,f]=y.useState(!1),{theme:h}=gt(),g=()=>{f(!0),s==null||s()},v=()=>{f(!1),u(!1)};mi({ref:c,onClickOutside:()=>!t&&g()}),y.useEffect(()=>(e?(f(!1),u(!0)):!p&&d&&g(),Q6(e),()=>{Q6(!1)}),[e]);const m=[en.modal,n,d&&en.modal__isOpen,o&&en[`modal__${o}`],p&&en.modal__isClosing,h.mode==="dark"&&en.modal__dark];return d?_.jsxs("div",{className:P(...m),children:[_.jsx("div",{className:en.modal_overlay}),_.jsx("div",{className:en.modal_dialog,children:_.jsxs("div",{ref:c,className:en.content,onAnimationEndCapture:()=>p&&v(),children:[_.jsxs("header",{className:P(en.content_header,l&&en.content_header__bordered),children:[typeof r=="string"?_.jsx(wt,{type:"h2",children:r}):r,_.jsx("button",{type:"button",className:en.closeBtn,onClick:g,children:_.jsx(oe,{name:"close",color:"neutral-70"})})]}),i&&_.jsx("main",{className:en.content_body,children:i}),a&&_.jsx("footer",{className:en.content_footer,children:a})]})})]}):null},un={paginator:"_paginator_ccz8i_1",paginator__mobile:"_paginator__mobile_ccz8i_1",paginator_rowsPerPage:"_paginator_rowsPerPage_ccz8i_9",select:"_select_ccz8i_15",navPager:"_navPager_ccz8i_19",navPager_button:"_navPager_button_ccz8i_24",navPager_button__active:"_navPager_button__active_ccz8i_73",navPager_button__block:"_navPager_button__block_ccz8i_78",navPager_pageLabel:"_navPager_pageLabel_ccz8i_86",navPager_arrowRight:"_navPager_arrowRight_ccz8i_94"},Eo=e=>{const{className:t,disabled:n,icon:r,onClick:o}=e;return _.jsx("button",{"data-testid":"pager-arrow",className:P(un.navPager_button,t&&t),onClick:()=>o(),disabled:n,children:_.jsx(oe,{name:r,color:n?"neutral-30":"neutral-70"})})};Eo.prototype={avocado:"ArrowPager"};const mD=({page:e,hasNextPage:t,classname:n,onChange:r,onPageChange:o})=>{const i=a=>{a!==e&&a!==0&&(o==null||o(a),r==null||r(a))};return!t&&e<=1?null:_.jsx("section",{"data-testid":"pager-global","aria-label":"Pagination",className:P(un.paginator,n==null?void 0:n.global,"container_row","row__center"),children:_.jsxs("nav",{"data-testid":"pager-nav",className:P(un.navPager,n==null?void 0:n.nav),children:[_.jsx(Eo,{icon:"chevron-left","aria-label":"Previous page",disabled:e===1,onClick:()=>i(e-1),className:n==null?void 0:n.arrow}),_.jsx(Se,{type:"sm",weight:"medium",className:un.navPager_pageLabel,children:e}),_.jsx(Eo,{icon:"chevron-right","aria-label":"Next page",disabled:!t,onClick:()=>i(e+1),className:P(n==null?void 0:n.arrow,un.navPager_arrowRight)})]})})},X6=e=>{const{className:t,disabled:n,page:r,currentPage:o,onClick:i,ellipsisAsNumber:a}=e;return _.jsx("button",{"data-testid":"pager-button","aria-label":r===a?"ellipsis":`Page ${r}`,disabled:n,className:P(un.navPager_button,o===r&&un.navPager_button__active,r===a&&un.navPager_button__block,t&&t),onClick:i,children:r!==a?r.toString():"..."})};X6.prototype={avocado:"ButtonPager"};function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}function _D(e,t){if(Po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J6(e){var t=_D(e,"string");return Po(t)=="symbol"?t:t+""}function Da(e,t,n){return(t=J6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(n),!0).forEach(function(r){Da(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gD(e){if(Array.isArray(e))return e}function vD(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function C1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function th(e,t){if(e){if(typeof e=="string")return C1(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C1(e,t):void 0}}function yD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
783
783
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Er(e,t){return gD(e)||vD(e,t)||th(e,t)||yD()}function bD(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Pr(e,t){if(e==null)return{};var n,r,o=bD(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var CD=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function wD(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,i=e.defaultValue,a=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,d=e.onInputChange,u=e.onMenuClose,p=e.onMenuOpen,f=e.value,h=Pr(e,CD),g=y.useState(s!==void 0?s:n),v=Er(g,2),m=v[0],b=v[1],C=y.useState(l!==void 0?l:o),x=Er(C,2),w=x[0],k=x[1],S=y.useState(f!==void 0?f:a),T=Er(S,2),E=T[0],D=T[1],O=y.useCallback(function($,Y){typeof c=="function"&&c($,Y),D($)},[c]),N=y.useCallback(function($,Y){var M;typeof d=="function"&&(M=d($,Y)),b(M!==void 0?M:$)},[d]),V=y.useCallback(function(){typeof p=="function"&&p(),k(!0)},[p]),A=y.useCallback(function(){typeof u=="function"&&u(),k(!1)},[u]),I=s!==void 0?s:m,j=l!==void 0?l:w,W=f!==void 0?f:E;return de(de({},h),{},{inputValue:I,menuIsOpen:j,onChange:O,onInputChange:N,onMenuClose:A,onMenuOpen:V,value:W})}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(null,arguments)}function xD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J6(r.key),r)}}function kD(e,t,n){return t&&nh(e.prototype,t),n&&nh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function w1(e,t){return w1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},w1(e,t)}function SD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w1(e,t)}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dl(e)}function rh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rh=function(){return!!e})()}function DD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TD(e,t){if(t&&(Po(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DD(e)}function LD(e){var t=rh();return function(){var n,r=Dl(e);if(t){var o=Dl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TD(this,n)}}function MD(e){if(Array.isArray(e))return C1(e)}function ED(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
784
784
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x1(e){return MD(e)||ED(e)||th(e)||PD()}function ID(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function OD(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ND=(function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(OD(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ID(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Pt="-ms-",Tl="-moz-",Ne="-webkit-",oh="comm",k1="rule",S1="decl",AD="@import",ih="@keyframes",jD="@layer",RD=Math.abs,Ll=String.fromCharCode,FD=Object.assign;function VD(e,t){return Tt(e,0)^45?(((t<<2^Tt(e,0))<<2^Tt(e,1))<<2^Tt(e,2))<<2^Tt(e,3):0}function ah(e){return e.trim()}function BD(e,t){return(e=t.exec(e))?e[0]:e}function Ae(e,t,n){return e.replace(t,n)}function D1(e,t){return e.indexOf(t)}function Tt(e,t){return e.charCodeAt(t)|0}function Ta(e,t,n){return e.slice(t,n)}function or(e){return e.length}function T1(e){return e.length}function Ml(e,t){return t.push(e),e}function HD(e,t){return e.map(t).join("")}var El=1,gi=1,sh=0,tn=0,pt=0,vi="";function Pl(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:El,column:gi,length:a,return:""}}function La(e,t){return FD(Pl("",null,null,"",null,null,0),e,{length:-e.length},t)}function $D(){return pt}function zD(){return pt=tn>0?Tt(vi,--tn):0,gi--,pt===10&&(gi=1,El--),pt}function dn(){return pt=tn<sh?Tt(vi,tn++):0,gi++,pt===10&&(gi=1,El++),pt}function ir(){return Tt(vi,tn)}function Il(){return tn}function Ma(e,t){return Ta(vi,e,t)}function Ea(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lh(e){return El=gi=1,sh=or(vi=e),tn=0,[]}function ch(e){return vi="",e}function Ol(e){return ah(Ma(tn-1,L1(e===91?e+2:e===40?e+1:e)))}function WD(e){for(;(pt=ir())&&pt<33;)dn();return Ea(e)>2||Ea(pt)>3?"":" "}function UD(e,t){for(;--t&&dn()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return Ma(e,Il()+(t<6&&ir()==32&&dn()==32))}function L1(e){for(;dn();)switch(pt){case e:return tn;case 34:case 39:e!==34&&e!==39&&L1(pt);break;case 40:e===41&&L1(e);break;case 92:dn();break}return tn}function YD(e,t){for(;dn()&&e+pt!==57;)if(e+pt===84&&ir()===47)break;return"/*"+Ma(t,tn-1)+"*"+Ll(e===47?e:dn())}function ZD(e){for(;!Ea(ir());)dn();return Ma(e,tn)}function qD(e){return ch(Nl("",null,null,null,[""],e=lh(e),0,[0],e))}function Nl(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,g=1,v=1,m=1,b=0,C="",x=o,w=i,k=r,S=C;v;)switch(h=b,b=dn()){case 40:if(h!=108&&Tt(S,u-1)==58){D1(S+=Ae(Ol(b),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:S+=Ol(b);break;case 9:case 10:case 13:case 32:S+=WD(h);break;case 92:S+=UD(Il()-1,7);continue;case 47:switch(ir()){case 42:case 47:Ml(GD(YD(dn(),Il()),t,n),l);break;default:S+="/"}break;case 123*g:s[c++]=or(S)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+d:m==-1&&(S=Ae(S,/\f/g,"")),f>0&&or(S)-u&&Ml(f>32?dh(S+";",r,n,u-1):dh(Ae(S," ","")+";",r,n,u-2),l);break;case 59:S+=";";default:if(Ml(k=uh(S,t,n,c,d,o,s,C,x=[],w=[],u),i),b===123)if(d===0)Nl(S,t,k,k,x,i,u,s,w);else switch(p===99&&Tt(S,3)===110?100:p){case 100:case 108:case 109:case 115:Nl(e,k,k,r&&Ml(uh(e,k,k,0,0,o,s,C,o,x=[],u),w),o,w,u,s,r?x:w);break;default:Nl(S,k,k,k,[""],w,0,s,w)}}c=d=f=0,g=m=1,C=S="",u=a;break;case 58:u=1+or(S),f=h;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&zD()==125)continue}switch(S+=Ll(b),b*g){case 38:m=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(or(S)-1)*m,m=1;break;case 64:ir()===45&&(S+=Ol(dn())),p=ir(),d=u=or(C=S+=ZD(Il())),b++;break;case 45:h===45&&or(S)==2&&(g=0)}}return i}function uh(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,p=o===0?i:[""],f=T1(p),h=0,g=0,v=0;h<r;++h)for(var m=0,b=Ta(e,u+1,u=RD(g=a[h])),C=e;m<f;++m)(C=ah(g>0?p[m]+" "+b:Ae(b,/&\f/g,p[m])))&&(l[v++]=C);return Pl(e,t,n,o===0?k1:s,l,c,d)}function GD(e,t,n){return Pl(e,t,n,oh,Ll($D()),Ta(e,2,-2),0)}function dh(e,t,n,r){return Pl(e,t,n,S1,Ta(e,0,r),Ta(e,r+1,-1),r)}function yi(e,t){for(var n="",r=T1(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function KD(e,t,n,r){switch(e.type){case jD:if(e.children.length)break;case AD:case S1:return e.return=e.return||e.value;case oh:return"";case ih:return e.return=e.value+"{"+yi(e.children,r)+"}";case k1:e.value=e.props.join(",")}return or(n=yi(e.children,r))?e.return=e.value+"{"+n+"}":""}function QD(e){var t=T1(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function XD(e){return function(t){t.root||(t=t.return)&&e(t)}}function JD(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var eT=function(t,n,r){for(var o=0,i=0;o=i,i=ir(),o===38&&i===12&&(n[r]=1),!Ea(i);)dn();return Ma(t,tn)},tT=function(t,n){var r=-1,o=44;do switch(Ea(o)){case 0:o===38&&ir()===12&&(n[r]=1),t[r]+=eT(tn-1,n,r);break;case 2:t[r]+=Ol(o);break;case 4:if(o===44){t[++r]=ir()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ll(o)}while(o=dn());return t},nT=function(t,n){return ch(tT(lh(t),n))},fh=new WeakMap,rT=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!fh.get(r))&&!o){fh.set(t,!0);for(var i=[],a=nT(n,i),s=r.props,l=0,c=0;l<a.length;l++)for(var d=0;d<s.length;d++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},oT=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ph(e,t){switch(VD(e,t)){case 5103:return Ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+Tl+e+Pt+e+e;case 6828:case 4268:return Ne+e+Pt+e+e;case 6165:return Ne+e+Pt+"flex-"+e+e;case 5187:return Ne+e+Ae(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+Pt+"flex-$1$2")+e;case 5443:return Ne+e+Pt+"flex-item-"+Ae(e,/flex-|-self/,"")+e;case 4675:return Ne+e+Pt+"flex-line-pack"+Ae(e,/align-content|flex-|-self/,"")+e;case 5548:return Ne+e+Pt+Ae(e,"shrink","negative")+e;case 5292:return Ne+e+Pt+Ae(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Ae(e,"-grow","")+Ne+e+Pt+Ae(e,"grow","positive")+e;case 4554:return Ne+Ae(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Ae(Ae(Ae(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Ae(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Ae(Ae(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ne+e+e;case 4095:case 3583:case 4068:case 2532:return Ae(e,/(.+)-inline(.+)/,Ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(or(e)-1-t>6)switch(Tt(e,t+1)){case 109:if(Tt(e,t+4)!==45)break;case 102:return Ae(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+Tl+(Tt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~D1(e,"stretch")?ph(Ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Tt(e,t+1)!==115)break;case 6444:switch(Tt(e,or(e)-3-(~D1(e,"!important")&&10))){case 107:return Ae(e,":",":"+Ne)+e;case 101:return Ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(Tt(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(Tt(e,t+11)){case 114:return Ne+e+Pt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Pt+Ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Pt+Ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+Pt+e+e}return e}var iT=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case S1:t.return=ph(t.value,t.length);break;case ih:return yi([La(t,{value:Ae(t.value,"@","@"+Ne)})],o);case k1:if(t.length)return HD(t.props,function(i){switch(BD(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yi([La(t,{props:[Ae(i,/:(read-\w+)/,":"+Tl+"$1")]})],o);case"::placeholder":return yi([La(t,{props:[Ae(i,/:(plac\w+)/,":"+Ne+"input-$1")]}),La(t,{props:[Ae(i,/:(plac\w+)/,":"+Tl+"$1")]}),La(t,{props:[Ae(i,/:(plac\w+)/,Pt+"input-$1")]})],o)}return""})}},aT=[iT],sT=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||aT,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),m=1;m<v.length;m++)i[v[m]]=!0;s.push(g)});var l,c=[rT,oT];{var d,u=[KD,XD(function(g){d.insert(g)})],p=QD(c.concat(o,u)),f=function(v){return yi(qD(v),p)};l=function(v,m,b,C){d=b,f(v?v+"{"+m.styles+"}":m.styles),C&&(h.inserted[m.name]=!0)}}var h={key:n,sheet:new ND({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h},M1,hh;function lT(){if(hh)return M1;hh=1;var e=gk(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function a(h){return e.isMemo(h)?o:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,p=Object.prototype;function f(h,g,v){if(typeof g!="string"){if(p){var m=u(g);m&&m!==p&&f(h,m,v)}var b=l(g);c&&(b=b.concat(c(g)));for(var C=a(h),x=a(g),w=0;w<b.length;++w){var k=b[w];if(!n[k]&&!(v&&v[k])&&!(x&&x[k])&&!(C&&C[k])){var S=d(g,k);try{s(h,k,S)}catch{}}}}return h}return M1=f,M1}lT();var cT=!0;function uT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var mh=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||cT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},dT=function(t,n,r){mh(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function fT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var pT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hT=/[A-Z]|^ms/g,mT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_h=function(t){return t.charCodeAt(1)===45},gh=function(t){return t!=null&&typeof t!="boolean"},E1=JD(function(e){return _h(e)?e:e.replace(hT,"-$&").toLowerCase()}),vh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(mT,function(r,o,i){return ar={name:o,styles:i,next:ar},o})}return pT[t]!==1&&!_h(t)&&typeof n=="number"&&n!==0?n+"px":n};function Pa(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ar={name:o.name,styles:o.styles,next:ar},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ar={name:a.name,styles:a.styles,next:ar},a=a.next;var s=i.styles+";";return s}return _T(e,t,n)}case"function":{if(e!==void 0){var l=ar,c=n(e);return ar=l,Pa(e,t,c)}break}}var d=n;return d}function _T(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Pa(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;gh(s)&&(r+=E1(i)+":"+vh(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)gh(a[l])&&(r+=E1(i)+":"+vh(i,a[l])+";");else{var c=Pa(e,t,a);switch(i){case"animation":case"animationName":{r+=E1(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var yh=/label:\s*([^\s;{]+)\s*(;|$)/g,ar;function bh(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ar=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Pa(n,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Pa(n,t,e[s]),r){var l=i;o+=l[s]}yh.lastIndex=0;for(var c="",d;(d=yh.exec(o))!==null;)c+="-"+d[1];var u=fT(o)+c;return{name:u,styles:o,next:ar}}var gT=function(t){return t()},vT=F.useInsertionEffect?F.useInsertionEffect:!1,yT=vT||gT,Ch=F.createContext(typeof HTMLElement<"u"?sT({key:"css"}):null);Ch.Provider;var bT=function(t){return y.forwardRef(function(n,r){var o=y.useContext(Ch);return t(n,o,r)})},CT=F.createContext({}),P1={}.hasOwnProperty,I1="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wT=function(t,n){var r={};for(var o in n)P1.call(n,o)&&(r[o]=n[o]);return r[I1]=t,r},xT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return mh(n,r,o),yT(function(){return dT(n,r,o)}),null},kT=bT(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[I1],i=[r],a="";typeof e.className=="string"?a=uT(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=bh(i,void 0,F.useContext(CT));a+=t.key+"-"+s.name;var l={};for(var c in e)P1.call(e,c)&&c!=="css"&&c!==I1&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),F.createElement(F.Fragment,null,F.createElement(xT,{cache:t,serialized:s,isStringTag:typeof o=="string"}),F.createElement(o,l))}),ST=kT,se=function(t,n){var r=arguments;if(n==null||!P1.call(n,"css"))return F.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=ST,i[1]=wT(t,n);for(var a=2;a<o;a++)i[a]=r[a];return F.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(se||(se={}));function O1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bh(t)}function DT(){var e=O1.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function TT(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var N1=y.useLayoutEffect,LT=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Al=function(){};function MT(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function ET(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(MT(e,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var wh=function(t){return VT(t)?t.filter(Boolean):Po(t)==="object"&&t!==null?[t]:[]},xh=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Pr(t,LT);return de({},n)},at=function(t,n,r){var o=t.cx,i=t.getStyles,a=t.getClassNames,s=t.className;return{css:i(n,t),className:o(r??{},a(n,t),s)}};function jl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function PT(e){return jl(e)?window.innerHeight:e.clientHeight}function kh(e){return jl(e)?window.pageYOffset:e.scrollTop}function Rl(e,t){if(jl(e)){window.scrollTo(0,t);return}e.scrollTop=t}function IT(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function OT(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Fl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Al,o=kh(e),i=t-o,a=10,s=0;function l(){s+=a;var c=OT(s,o,i,n);Rl(e,c),s<n?window.requestAnimationFrame(l):r(e)}l()}function Sh(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Rl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Rl(e,Math.max(t.offsetTop-o,0))}function NT(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Dh(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function AT(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var Th=!1,jT={get passive(){return Th=!0}},Vl=typeof window<"u"?window:{};Vl.addEventListener&&Vl.removeEventListener&&(Vl.addEventListener("p",Al,jT),Vl.removeEventListener("p",Al,!1));var RT=Th;function FT(e){return e!=null}function VT(e){return Array.isArray(e)}function Bl(e,t,n){return e?t:n}function vee(e){return e}function yee(e){return e}var BT=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(a){var s=Er(a,1),l=s[0];return!r.includes(l)});return i.reduce(function(a,s){var l=Er(s,2),c=l[0],d=l[1];return a[c]=d,a},{})},HT=["children","innerProps"],$T=["children","innerProps"];function zT(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=IT(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d=l.getBoundingClientRect(),u=d.height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,g=p.top,v=n.offsetParent.getBoundingClientRect(),m=v.top,b=a?window.innerHeight:PT(l),C=kh(l),x=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),k=m-w,S=b-g,T=k+C,E=u-C-g,D=f-b+C+x,O=C+g-w,N=160;switch(o){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return i&&Fl(l,D,N),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&S>=r){i&&Fl(l,D,N);var V=a?S-x:E-x;return{placement:"bottom",maxHeight:V}}if(o==="auto"||a){var A=t,I=a?k:T;return I>=r&&(A=Math.min(I-x-s,t)),{placement:"top",maxHeight:A}}if(o==="bottom")return i&&Rl(l,D),{placement:"bottom",maxHeight:t};break;case"top":if(k>=h)return{placement:"top",maxHeight:t};if(T>=h&&!a)return i&&Fl(l,O,N),{placement:"top",maxHeight:t};if(!a&&T>=r||a&&k>=r){var j=t;return(!a&&T>=r||a&&k>=r)&&(j=a?k-w:T-w),i&&Fl(l,O,N),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function WT(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Lh=function(t){return t==="auto"?"bottom":t},UT=function(t,n){var r,o=t.placement,i=t.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return de((r={label:"menu"},Da(r,WT(o),"100%"),Da(r,"position","absolute"),Da(r,"width","100%"),Da(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},Mh=y.createContext(null),YT=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=y.useContext(Mh)||{},d=c.setPortalPlacement,u=y.useRef(null),p=y.useState(o),f=Er(p,2),h=f[0],g=f[1],v=y.useState(null),m=Er(v,2),b=m[0],C=m[1],x=l.spacing.controlHeight;return N1(function(){var w=u.current;if(w){var k=a==="fixed",S=s&&!k,T=zT({maxHeight:o,menuEl:w,minHeight:r,placement:i,shouldScroll:S,isFixedPosition:k,controlHeight:x});g(T.maxHeight),C(T.placement),d==null||d(T.placement)}},[o,i,a,s,r,d,x]),n({ref:u,placerProps:de(de({},t),{},{placement:b||Lh(i),maxHeight:h})})},ZT=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return se("div",he({},at(t,"menu",{menu:!0}),{ref:r},o),n)},qT=ZT,GT=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return de({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},KT=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return se("div",he({},at(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},Eh=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return de({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},QT=Eh,XT=Eh,JT=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Pr(t,HT);return se("div",he({},at(de(de({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},eL=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Pr(t,$T);return se("div",he({},at(de(de({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},tL=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},nL=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=y.useRef(null),c=y.useRef(null),d=y.useState(Lh(a)),u=Er(d,2),p=u[0],f=u[1],h=y.useMemo(function(){return{setPortalPlacement:f}},[]),g=y.useState(null),v=Er(g,2),m=v[0],b=v[1],C=y.useCallback(function(){if(o){var S=NT(o),T=s==="fixed"?0:window.pageYOffset,E=S[p]+T;(E!==(m==null?void 0:m.offset)||S.left!==(m==null?void 0:m.rect.left)||S.width!==(m==null?void 0:m.rect.width))&&b({offset:E,rect:S})}},[o,s,p,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);N1(function(){C()},[C]);var x=y.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&l.current&&(c.current=f0(o,l.current,C,{elementResize:"ResizeObserver"in window}))},[o,C]);N1(function(){x()},[x]);var w=y.useCallback(function(S){l.current=S,x()},[x]);if(!n&&s!=="fixed"||!m)return null;var k=se("div",he({ref:w},at(de(de({},t),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return se(Mh.Provider,{value:h},n?Rt.createPortal(k,n):k)},rL=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},oL=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return se("div",he({},at(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},iL=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return de({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},aL=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return se("div",he({},at(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},sL=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},lL=function(t){var n=t.children,r=t.innerProps;return se("div",he({},at(t,"indicatorsContainer",{indicators:!0}),r),n)},Ph,cL=["size"],uL=["innerProps","isRtl","size"],dL={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Ih=function(t){var n=t.size,r=Pr(t,cL);return se("svg",he({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:dL},r))},A1=function(t){return se(Ih,he({size:20},t),se("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Oh=function(t){return se(Ih,he({size:20},t),se("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Nh=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return de({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},fL=Nh,pL=function(t){var n=t.children,r=t.innerProps;return se("div",he({},at(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||se(Oh,null))},hL=Nh,mL=function(t){var n=t.children,r=t.innerProps;return se("div",he({},at(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||se(A1,null))},_L=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return de({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},gL=function(t){var n=t.innerProps;return se("span",he({},n,at(t,"indicatorSeparator",{"indicator-separator":!0})))},vL=DT(Ph||(Ph=TT([`
|
|
785
785
|
0%, 80%, 100% { opacity: 0; }
|