UNPKG

@dolthub/react-components

Version:

A collection of React components for common tasks

20 lines 8.21 MB
import*as t from"react";import r,{forwardRef as e,useState as n,useRef as o,useLayoutEffect as s,useEffect as u,useImperativeHandle as a,createContext as i,useCallback as l,useMemo as f,useContext as b,Component as v,PureComponent as p,Fragment as d}from"react";import C,{createPortal as h}from"react-dom";import{jsxs as y,jsx as L,Fragment as w}from"react/jsx-runtime";import m from"tty";function E(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e}function g(t,r,e,n){return new(e||(e=Promise))((function(o,s){function u(t){try{i(n.next(t))}catch(t){s(t)}}function a(t){try{i(n.throw(t))}catch(t){s(t)}}function i(t){var r;t.done?o(t.value):(r=t.value,r instanceof e?r:new e((function(t){t(r)}))).then(u,a)}i((n=n.apply(t,r||[])).next())}))}function A(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var r=t.default;if("function"==typeof r){var e=function t(){var e=!1;try{e=this instanceof t}catch{}return e?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};e.prototype=r.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}"function"==typeof SuppressedError&&SuppressedError;var T,I={exports:{}}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var S,N=(T||(T=1,S=I,function(){var t={}.hasOwnProperty;function r(){for(var t="",r=0;r<arguments.length;r++){var o=arguments[r];o&&(t=n(t,e(o)))}return t}function e(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var o="";for(var s in e)t.call(e,s)&&e[s]&&(o=n(o,s));return o}function n(t,r){return r?t?t+" "+r:t+r:t}S.exports?(r.default=r,S.exports=r):window.classNames=r}()),I.exports),R=A(N);function O(t,r){void 0===r&&(r={});var e=r.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===e&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var x={btn:"Btn_btn__jx1VJ"};function k(t){var{children:e,className:n}=t,o=E(t,["children","className"]);return r.createElement("button",Object.assign({className:R(x.btn,n),type:"button"},o),e)}O(".Btn_btn__jx1VJ{background-color:transparent;background-image:none}",{insertAt:"top"});var U={button:"Button_button__mradH",small:"Button_small__RQWwC",outlined:"Button_outlined__5NTLM",link:"Button_link__YeweE",dark:"Button_dark__j9xMF",red:"Button_red__Q1j-m",green:"Button_green__b2zzZ",white:"Button_white__ThttD",gradient:"Button_gradient__l36VC",redText:"Button_redText__5C576",greenText:"Button_greenText__c6Lk8",darkText:"Button_darkText__gqyZN",pill:"Button_pill__8p-1a",underlined:"Button_underlined__iD40H",group:"Button_group__zCNDR"};function M(t){var{children:e,className:n,red:o=!1,green:s=!1,dark:u=!1,pill:a=!1,white:i=!1,gradient:l=!1}=t,c=E(t,["children","className","red","green","dark","pill","white","gradient"]);return r.createElement("button",Object.assign({className:R(U.button,{[U.red]:o,[U.green]:s,[U.dark]:u,[U.pill]:a,[U.white]:i,[U.gradient]:l,[U.small]:"small"===c.size},n),type:"button","data-testid":"default-button"},c),e)}O(".Button_button__mradH{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgba(var(--color-button-1),1);background-color:rgba(var(--color-button-1),var(--tw-bg-opacity));border-radius:.25rem;box-shadow:1px 1px 4px 0 hsla(193,9%,62%,.5);color:#fff;color:rgba(255,255,255,var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem;line-height:1.625;outline:2px solid transparent;outline-offset:2px;padding:.25rem 2rem}.Button_button__mradH:hover{--tw-bg-opacity:1;background-color:rgba(var(--color-button-2),1);background-color:rgba(var(--color-button-2),var(--tw-bg-opacity));box-shadow:3px 3px 4px 0 hsla(193,9%,62%,.5)}.Button_button__mradH:focus{box-shadow:0 0 4px 0 #51cbee;outline:2px solid transparent;outline-offset:2px}.Button_button__mradH:disabled{cursor:default}.Button_button__mradH:disabled,.Button_button__mradH:disabled:hover{--tw-bg-opacity:1;background-color:#9c9fb1;background-color:rgba(156,159,177,var(--tw-bg-opacity))}.Button_button__mradH:disabled:hover{box-shadow:1px 1px 4px 0 hsla(193,9%,62%,.5)}.Button_small__RQWwC{padding-left:.75rem;padding-right:.75rem}.Button_outlined__5NTLM{--tw-border-opacity:1;--tw-text-opacity:1;background-color:transparent;border-color:rgba(var(--color-button-1),var(--tw-border-opacity));border-radius:.25rem;border-width:1px;box-shadow:1px 1px 4px 0 hsla(193,9%,62%,.5);color:rgba(var(--color-button-1),1);color:rgba(var(--color-button-1),var(--tw-text-opacity));font-weight:600;line-height:1.625;outline:2px solid transparent;outline-offset:2px;padding:.25rem 3rem}.Button_outlined__5NTLM:hover{--tw-border-opacity:1;--tw-text-opacity:1;border-color:rgba(var(--color-button-2),var(--tw-border-opacity));color:rgba(var(--color-button-2),1);color:rgba(var(--color-button-2),var(--tw-text-opacity))}.Button_outlined__5NTLM:focus{box-shadow:0 0 4px 0 #51cbee;outline:2px solid transparent;outline-offset:2px}.Button_outlined__5NTLM:disabled{cursor:default}.Button_outlined__5NTLM:disabled,.Button_outlined__5NTLM:disabled:hover{--tw-border-opacity:1;--tw-text-opacity:1;border-color:#9c9fb1;border-color:rgba(156,159,177,var(--tw-border-opacity));color:#9c9fb1;color:rgba(156,159,177,var(--tw-text-opacity))}.Button_link__YeweE{--tw-text-opacity:1;background-color:transparent;color:rgba(var(--color-link-1),1);color:rgba(var(--color-link-1),var(--tw-text-opacity));font-size:.875rem;font-weight:600;line-height:1.25rem;line-height:1.625}.Button_link__YeweE:hover{--tw-text-opacity:1;color:rgba(var(--color-link-2),1);color:rgba(var(--color-link-2),var(--tw-text-opacity))}.Button_link__YeweE:focus{box-shadow:0 0 4px 0 #51cbee;outline:2px solid transparent;outline-offset:2px}.Button_link__YeweE:disabled,.Button_link__YeweE:disabled:hover{--tw-text-opacity:1;color:#7a96ab;color:rgba(122,150,171,var(--tw-text-opacity))}.Button_dark__j9xMF{--tw-bg-opacity:1;background-color:rgba(var(--color-primary),1);background-color:rgba(var(--color-primary),var(--tw-bg-opacity))}.Button_dark__j9xMF:hover{--tw-bg-opacity:1;background-color:#072e5a;background-color:rgba(7,46,90,var(--tw-bg-opacity))}.Button_red__Q1j-m{--tw-bg-opacity:1;background-color:#f23c3a;background-color:rgba(242,60,58,var(--tw-bg-opacity))}.Button_red__Q1j-m:hover{--tw-bg-opacity:1;background-color:#d43130;background-color:rgba(212,49,48,var(--tw-bg-opacity))}.Button_green__b2zzZ{--tw-bg-opacity:1;background-color:#149566;background-color:rgba(20,149,102,var(--tw-bg-opacity))}.Button_green__b2zzZ:hover{--tw-bg-opacity:1;background-color:#0f704d;background-color:rgba(15,112,77,var(--tw-bg-opacity))}.Button_white__ThttD{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity));box-shadow:0 0 transparent,0 0 transparent,0 0 transparent;box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow);color:rgba(var(--color-link-1),1);color:rgba(var(--color-link-1),var(--tw-text-opacity))}.Button_white__ThttD:hover{background-color:hsla(0,0%,100%,.7)}.Button_white__ThttD:disabled{--tw-text-opacity:1;color:#fff;color:rgba(255,255,255,var(--tw-text-opacity))}.Button_gradient__l36VC,.Button_gradient__l36VC:disabled{background:linear-gradient(92.21deg,#6db0fc 11.79%,#5deda2 113.81%)}.Button_redText__5C576{--tw-text-opacity:1;color:#f23c3a;color:rgba(242,60,58,var(--tw-text-opacity))}.Button_redText__5C576:hover{--tw-text-opacity:1;color:#d43130;color:rgba(212,49,48,var(--tw-text-opacity))}.Button_greenText__c6Lk8{--tw-text-opacity:1;color:#149566;color:rgba(20,149,102,var(--tw-text-opacity))}.Button_greenText__c6Lk8:hover{--tw-text-opacity:1;color:#0f704d;color:rgba(15,112,77,var(--tw-text-opacity))}.Button_darkText__gqyZN{--tw-text-opacity:1;color:rgba(var(--color-primary),1);color:rgba(var(--color-primary),var(--tw-text-opacity))}.Button_darkText__gqyZN:hover{--tw-text-opacity:1;color:#072e5a;color:rgba(7,46,90,var(--tw-text-opacity))}.Button_pill__8p-1a{border-radius:9999px;font-size:1rem;line-height:1.5rem}.Button_underlined__iD40H{padding-left:.5rem;padding-right:.5rem;text-decoration-line:underline}.Button_group__zCNDR button:not(:last-of-type){margin-right:.75rem}",{insertAt:"top"}),M.Outlined=function(t){var{children:e,className:n,pill:o=!1}=t,s=E(t,["children","className","pill"]);return r.createElement("button",Object.assign({className:R(U.outlined,{[U.pill]:o},n),type:"button"},s),e)},M.Link=function(t){var{children:e,className:n,red:o=!1,green:s=!1,dark:u=!1,underlined:a=!1}=t,i=E(t,["children","className","red","green","dark","underlined"]);return r.createElement("button",Object.assign({className:R(U.link,{[U.redText]:o,[U.greenText]:s,[U.darkText]:u,[U.underlined]:a},n),type:"button"},i),e)},M.Group=function({children:t,className:e}){return r.createElement("div",{className:R(U.group,e),"aria-label":"button-group"},t)};var D={},P={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},F=r.createContext&&r.createContext(P),j=function(){return j=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},j.apply(this,arguments)},G=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e};function H(t){return t&&t.map((function(t,e){return r.createElement(t.tag,j({key:e},t.attr),H(t.child))}))}function B(t){var e=function(e){var n,o=t.attr,s=t.size,u=t.title,a=G(t,["attr","size","title"]),i=s||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),r.createElement("svg",j({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,o,a,{className:n,style:j(j({color:t.color||e.color},e.style),t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),t.children)};return void 0!==F?r.createElement(F.Consumer,null,(function(t){return e(t)})):e(P)}var $,Y=_(Object.freeze({__proto__:null,DefaultContext:P,GenIcon:function(t){return function(e){return r.createElement(B,j({attr:j({},t.attr)},e),H(t.child))}},IconBase:B,IconContext:F,IconsManifest:[{id:"fa",name:"Font Awesome",projectUrl:"https://fontawesome.com/",license:"CC BY 4.0 License",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"},{id:"io",name:"Ionicons 4",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"io5",name:"Ionicons 5",projectUrl:"https://ionicons.com/",license:"MIT",licenseUrl:"https://github.com/ionic-team/ionicons/blob/master/LICENSE"},{id:"md",name:"Material Design icons",projectUrl:"http://google.github.io/material-design-icons/",license:"Apache License Version 2.0",licenseUrl:"https://github.com/google/material-design-icons/blob/master/LICENSE"},{id:"ti",name:"Typicons",projectUrl:"http://s-ings.com/typicons/",license:"CC BY-SA 3.0",licenseUrl:"https://creativecommons.org/licenses/by-sa/3.0/"},{id:"go",name:"Github Octicons icons",projectUrl:"https://octicons.github.com/",license:"MIT",licenseUrl:"https://github.com/primer/octicons/blob/master/LICENSE"},{id:"fi",name:"Feather",projectUrl:"https://feathericons.com/",license:"MIT",licenseUrl:"https://github.com/feathericons/feather/blob/master/LICENSE"},{id:"gi",name:"Game Icons",projectUrl:"https://game-icons.net/",license:"CC BY 3.0",licenseUrl:"https://creativecommons.org/licenses/by/3.0/"},{id:"wi",name:"Weather Icons",projectUrl:"https://erikflowers.github.io/weather-icons/",license:"SIL OFL 1.1",licenseUrl:"http://scripts.sil.org/OFL"},{id:"di",name:"Devicons",projectUrl:"https://vorillaz.github.io/devicons/",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ai",name:"Ant Design Icons",projectUrl:"https://github.com/ant-design/ant-design-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"bs",name:"Bootstrap Icons",projectUrl:"https://github.com/twbs/icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"ri",name:"Remix Icon",projectUrl:"https://github.com/Remix-Design/RemixIcon",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"fc",name:"Flat Color Icons",projectUrl:"https://github.com/icons8/flat-color-icons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"gr",name:"Grommet-Icons",projectUrl:"https://github.com/grommet/grommet-icons",license:"Apache License Version 2.0",licenseUrl:"http://www.apache.org/licenses/"},{id:"hi",name:"Heroicons",projectUrl:"https://github.com/refactoringui/heroicons",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"si",name:"Simple Icons",projectUrl:"https://simpleicons.org/",license:"CC0 1.0 Universal",licenseUrl:"https://creativecommons.org/publicdomain/zero/1.0/"},{id:"im",name:"IcoMoon Free",projectUrl:"https://github.com/Keyamoon/IcoMoon-Free",license:"CC BY 4.0 License"},{id:"bi",name:"BoxIcons",projectUrl:"https://github.com/atisawd/boxicons",license:"CC BY 4.0 License"},{id:"cg",name:"css.gg",projectUrl:"https://github.com/astrit/css.gg",license:"MIT",licenseUrl:"https://opensource.org/licenses/MIT"},{id:"vsc",name:"VS Code Icons",projectUrl:"https://github.com/microsoft/vscode-codicons",license:"CC BY 4.0",licenseUrl:"https://creativecommons.org/licenses/by/4.0/"}]}));function K(){if($)return D;$=1;var t=Y.GenIcon;return D.FaCaretDown=function(r){return t({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"}}]})(r)},D}var W,V=K(),X={};function q(){if(W)return X;W=1;var t=Y.GenIcon;return X.FaCaretUp=function(r){return t({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"}}]})(r)},X}var z=q();function Z(){return Z=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Z.apply(this,arguments)}var J="undefined"!=typeof window?s:u,Q={popupContent:{tooltip:{position:"absolute",zIndex:999},modal:{position:"relative",margin:"auto"}},popupArrow:{height:"8px",width:"16px",position:"absolute",background:"transparent",color:"#FFF",zIndex:-1},overlay:{tooltip:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",zIndex:999},modal:{position:"fixed",top:"0",bottom:"0",left:"0",right:"0",display:"flex",zIndex:999}}},tt=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],rt=function(t,r,e,n,o){var s=o.offsetX,u=o.offsetY,a=n?8:0,i=e.split(" "),l=t.top+t.height/2,c=t.left+t.width/2,f=r.height,b=r.width,v=l-f/2,p=c-b/2,d="",C="0%",h="0%";switch(i[0]){case"top":v-=f/2+t.height/2+a,d="rotate(180deg) translateX(50%)",C="100%",h="50%";break;case"bottom":v+=f/2+t.height/2+a,d="rotate(0deg) translateY(-100%) translateX(-50%)",h="50%";break;case"left":p-=b/2+t.width/2+a,d=" rotate(90deg) translateY(50%) translateX(-25%)",h="100%",C="50%";break;case"right":p+=b/2+t.width/2+a,d="rotate(-90deg) translateY(-150%) translateX(25%)",C="50%"}switch(i[1]){case"top":v=t.top,C=t.height/2+"px";break;case"bottom":v=t.top-f+t.height,C=f-t.height/2+"px";break;case"left":p=t.left,h=t.width/2+"px";break;case"right":p=t.left-b+t.width,h=b-t.width/2+"px"}return{top:v="top"===i[0]?v-u:v+u,left:p="left"===i[0]?p-s:p+s,transform:d,arrowLeft:h,arrowTop:C}},et=function(t,r,e,n,o,s){var u=o.offsetX,a=o.offsetY,i={arrowLeft:"0%",arrowTop:"0%",left:0,top:0,transform:"rotate(135deg)"},l=0,c=function(t){var r={top:0,left:0,width:window.innerWidth,height:window.innerHeight};if("string"==typeof t){var e=document.querySelector(t);if("production"!==process.env.NODE_ENV&&null===e)throw new Error(t+" selector does not exist : keepTooltipInside must be a valid html selector 'class' or 'Id' or a boolean value");null!==e&&(r=e.getBoundingClientRect())}return r}(s),f=Array.isArray(e)?e:[e];for((s||Array.isArray(e))&&(f=[].concat(f,tt));l<f.length;){var b={top:(i=rt(t,r,f[l],n,{offsetX:u,offsetY:a})).top,left:i.left,width:r.width,height:r.height};if(!(b.top<=c.top||b.left<=c.left||b.top+b.height>=c.top+c.height||b.left+b.width>=c.left+c.width))break;l++}return i},nt=0,ot=e((function(t,e){var s=t.trigger,i=void 0===s?null:s,l=t.onOpen,c=void 0===l?function(){}:l,f=t.onClose,b=void 0===f?function(){}:f,v=t.defaultOpen,p=void 0!==v&&v,d=t.open,h=void 0===d?void 0:d,y=t.disabled,L=void 0!==y&&y,w=t.nested,m=void 0!==w&&w,E=t.closeOnDocumentClick,g=void 0===E||E,A=t.repositionOnResize,_=void 0===A||A,T=t.closeOnEscape,I=void 0===T||T,S=t.on,N=void 0===S?["click"]:S,R=t.contentStyle,O=void 0===R?{}:R,x=t.arrowStyle,k=void 0===x?{}:x,U=t.overlayStyle,M=void 0===U?{}:U,D=t.className,P=void 0===D?"":D,F=t.position,j=void 0===F?"bottom center":F,G=t.modal,H=void 0!==G&&G,B=t.lockScroll,$=void 0!==B&&B,Y=t.arrow,K=void 0===Y||Y,W=t.offsetX,V=void 0===W?0:W,X=t.offsetY,q=void 0===X?0:X,z=t.mouseEnterDelay,tt=void 0===z?100:z,rt=t.mouseLeaveDelay,ot=void 0===rt?100:rt,st=t.keepTooltipInside,ut=void 0!==st&&st,at=t.children,it=n(h||p),lt=it[0],ct=it[1],ft=o(null),bt=o(null),vt=o(null),pt=o(null),dt=o("popup-"+ ++nt),Ct=!!H||!i,ht=o(0);J((function(){return lt?(pt.current=document.activeElement,Nt(),Tt(),At()):_t(),function(){clearTimeout(ht.current)}}),[lt]),u((function(){"boolean"==typeof h&&(h?yt():Lt())}),[h,L]);var yt=function(t){lt||L||(ct(!0),setTimeout((function(){return c(t)}),0))},Lt=function(t){var r;lt&&!L&&(ct(!1),Ct&&(null===(r=pt.current)||void 0===r||r.focus()),setTimeout((function(){return b(t)}),0))},wt=function(t){null==t||t.stopPropagation(),lt?Lt(t):yt(t)},mt=function(t){clearTimeout(ht.current),ht.current=setTimeout((function(){return yt(t)}),tt)},Et=function(t){null==t||t.preventDefault(),wt()},gt=function(t){clearTimeout(ht.current),ht.current=setTimeout((function(){return Lt(t)}),ot)},At=function(){Ct&&$&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},_t=function(){Ct&&$&&(document.getElementsByTagName("body")[0].style.overflow="auto")},Tt=function(){var t,r=null==bt||null===(t=bt.current)||void 0===t?void 0:t.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),e=Array.prototype.slice.call(r)[0];null==e||e.focus()};a(e,(function(){return{open:function(){yt()},close:function(){Lt()},toggle:function(){wt()}}}));var It,St,Nt=function(){if(!Ct&&lt&&(null==ft?void 0:ft.current)&&(null==ft?void 0:ft.current)&&(null==bt?void 0:bt.current)){var t,r,e=ft.current.getBoundingClientRect(),n=bt.current.getBoundingClientRect(),o=et(e,n,j,K,{offsetX:V,offsetY:q},ut);if(bt.current.style.top=o.top+window.scrollY+"px",bt.current.style.left=o.left+window.scrollX+"px",K&&vt.current)vt.current.style.transform=o.transform,vt.current.style.setProperty("-ms-transform",o.transform),vt.current.style.setProperty("-webkit-transform",o.transform),vt.current.style.top=(null===(t=k.top)||void 0===t?void 0:t.toString())||o.arrowTop,vt.current.style.left=(null===(r=k.left)||void 0===r?void 0:r.toString())||o.arrowLeft}};void 0===(St=I)&&(St=!0),u((function(){if(St){var t=function(t){"Escape"===t.key&&It(t)};return document.addEventListener("keyup",t),function(){St&&document.removeEventListener("keyup",t)}}}),[It=Lt,St]),function(t,r){void 0===r&&(r=!0),u((function(){if(r){var e=function(r){if(9===r.keyCode){var e,n=null==t||null===(e=t.current)||void 0===e?void 0:e.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]'),o=Array.prototype.slice.call(n);if(1===o.length)return void r.preventDefault();var s=o[0],u=o[o.length-1];r.shiftKey&&document.activeElement===s?(r.preventDefault(),u.focus()):document.activeElement===u&&(r.preventDefault(),s.focus())}};return document.addEventListener("keydown",e),function(){r&&document.removeEventListener("keydown",e)}}}),[t,r])}(bt,lt&&Ct),function(t,r){void 0===r&&(r=!0),u((function(){if(r){var e=function(){t()};return window.addEventListener("resize",e),function(){r&&window.removeEventListener("resize",e)}}}),[t,r])}(Nt,_),function(t,r,e){void 0===e&&(e=!0),u((function(){if(e){var n=function(e){var n=Array.isArray(t)?t:[t],o=!1;n.forEach((function(t){t.current&&!t.current.contains(e.target)||(o=!0)})),e.stopPropagation(),o||r(e)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),function(){e&&(document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n))}}}),[t,r,e])}(i?[bt,ft]:[bt],Lt,g&&!m);var Rt,Ot=function(){return r.createElement("div",Object.assign({},(t=Ct?Q.popupContent.modal:Q.popupContent.tooltip,e={className:"popup-content "+(""!==P?P.split(" ").map((function(t){return t+"-content"})).join(" "):""),style:Z({},t,O,{pointerEvents:"auto"}),ref:bt,onClick:function(t){t.stopPropagation()}},!H&&N.indexOf("hover")>=0&&(e.onMouseEnter=mt,e.onMouseLeave=gt),e),{key:"C",role:Ct?"dialog":"tooltip",id:dt.current}),K&&!Ct&&r.createElement("div",{ref:vt,style:Q.popupArrow},r.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==P?P.split(" ").map((function(t){return t+"-arrow"})).join(" "):""),viewBox:"0 0 32 16",style:Z({position:"absolute"},k)},r.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),at&&"function"==typeof at?at(Lt,lt):at);var t,e},xt=!(N.indexOf("hover")>=0),kt=Ct?Q.overlay.modal:Q.overlay.tooltip,Ut=[xt&&r.createElement("div",{key:"O","data-testid":"overlay","data-popup":Ct?"modal":"tooltip",className:"popup-overlay "+(""!==P?P.split(" ").map((function(t){return t+"-overlay"})).join(" "):""),style:Z({},kt,M,{pointerEvents:g&&m||Ct?"auto":"none"}),onClick:g&&m?Lt:void 0,tabIndex:-1},Ct&&Ot()),!Ct&&Ot()];return r.createElement(r.Fragment,null,function(){for(var t={key:"T",ref:ft,"aria-describedby":dt.current},e=Array.isArray(N)?N:[N],n=0,o=e.length;n<o;n++)switch(e[n]){case"click":t.onClick=wt;break;case"right-click":t.onContextMenu=Et;break;case"hover":t.onMouseEnter=mt,t.onMouseLeave=gt;break;case"focus":t.onFocus=mt,t.onBlur=gt}if("function"==typeof i){var s=i(lt);return!!i&&r.cloneElement(s,t)}return!!i&&r.cloneElement(i,t)}(),lt&&C.createPortal(Ut,(null===(Rt=document.getElementById("popup-root"))&&((Rt=document.createElement("div")).setAttribute("id","popup-root"),document.body.appendChild(Rt)),Rt)))}));function st(t){return r.createElement(ot,Object.assign({},t,{contentStyle:Object.assign({borderRadius:"0.5rem",border:"none",boxShadow:"0 0 4px 0 rgba(145, 164, 168, 0.5)"},t.contentStyle)}),t.children)}O(".popup-content{background:#fff;border:1px solid #d7d7d7;margin:auto;padding:5px;width:50%}[role=tooltip].popup-content{border-radius:5px;box-shadow:0 0 3px rgba(0,0,0,.16);width:200px}.popup-overlay{background:rgba(0,0,0,.5)}[data-popup=tooltip].popup-overlay{background:transparent}.popup-arrow{stroke-width:2px;stroke:#d7d7d7;stroke-dasharray:30px;stroke-dashoffset:-54px;bottom:0;color:#fff;filter:drop-shadow(0 -3px 3px rgba(0,0,0,.16));left:0;right:0;top:0}",{insertAt:"top"});var ut={triggerButton:"ButtonWithPopup_triggerButton__Ene-J",withoutText:"ButtonWithPopup_withoutText__XtBUB",caret:"ButtonWithPopup_caret__Zb7xx",caretWithoutText:"ButtonWithPopup_caretWithoutText__OAZfg"};function at(t){var{children:e,isOpen:n,setIsOpen:o,triggerText:s}=t,u=E(t,["children","isOpen","setIsOpen","triggerText"]);const a=void 0!==n&&void 0!==o?{open:n,onOpen:()=>o(!0),onClose:()=>o(!1)}:{};return r.createElement(st,Object.assign({},a,{position:"bottom right",on:"click",offsetX:s?32:0,contentStyle:{width:"10rem"},closeOnDocumentClick:!0,trigger:t=>function(t,e,n,o){return r.createElement("button",{type:"button",className:R(ut.triggerButton,{[ut.withoutText]:!e},n),"data-cy":o},e,t?r.createElement(z.FaCaretUp,{className:R(ut.caret,{[ut.caretWithoutText]:!e})}):r.createElement(V.FaCaretDown,{className:R(ut.caret,{[ut.caretWithoutText]:!e})}))}(t,s,u.buttonClassName,u["data-cy"])},u),e)}O(".ButtonWithPopup_triggerButton__Ene-J{--tw-border-opacity:1;align-items:center;background-color:transparent;border-color:rgba(var(--color-primary),var(--tw-border-opacity));border-radius:.25rem;border-width:1px;display:flex;font-size:.875rem;font-weight:600;justify-content:center;line-height:1.25rem;padding:.25rem .75rem;white-space:nowrap}.ButtonWithPopup_triggerButton__Ene-J:focus{box-shadow:0 0 4px 0 #51cbee;outline:2px solid transparent;outline-offset:2px}.ButtonWithPopup_withoutText__XtBUB{border-radius:0;border-width:0;display:inline-block;padding:0}.ButtonWithPopup_caret__Zb7xx{font-size:1.125rem;line-height:1.75rem;padding-left:.5rem}.ButtonWithPopup_caretWithoutText__OAZfg{display:inline-block;padding-left:0}",{insertAt:"top"});const it=i({improveErrorMsg:t=>t,renderDifferentComp:()=>null});function lt({children:t,improveErrorMsgFn:e,renderDifferentComp:n}){const o=l((t=>ct(t)?"Request timed out. Please try again.":e?e(t):t),[e]),s=f((()=>({improveErrorMsg:o,renderDifferentComp:n})),[o,n]);return r.createElement(it.Provider,{value:s},t)}function ct(t){return t.includes("upstream request timeout")||t.includes("query error: timeout")||t.includes("Unexpected token 'u'")||t.includes("Unexpected token u in JSON at position 0")||t.includes('Unexpected identifier "upstream"')||t.includes("unexpected character at line 1 column 1 of the JSON data")||t.includes("Failed to fetch")||t.includes("Received status code 504")}var ft={errorMsg:"ErrorMsg_errorMsg__aze93"};function bt({err:t,errString:e,className:n}){const{improveErrorMsg:o,renderDifferentComp:s}=b(it),u=t?o(t.message):e?o(e):null;if(!u)return null;const a=s?s(u):null;if(null!==a)return r.cloneElement(a,{className:R(ft.errorMsg,n)});const i=u.split("\n").filter(Boolean);return r.createElement("div",{className:R(ft.errorMsg,n),"aria-label":"error-msg","data-cy":"error-msg"},i.map((t=>r.createElement("div",{key:t},t))))}O(".ErrorMsg_errorMsg__aze93{--tw-text-opacity:1;color:#f23c3a;color:rgba(242,60,58,var(--tw-text-opacity));font-weight:600;margin-left:auto;margin-right:auto;padding-top:1.5rem}",{insertAt:"top"});var vt="ButtonsWithError_stackedButton__IK5Hd",pt="ButtonsWithError_error__PLgEC",dt="ButtonsWithError_group__mJXwV",Ct="ButtonsWithError_cancel__qZD3V",ht="ButtonsWithError_left__fpz-U",yt="ButtonsWithError_right__q-u5o";function Lt(t){var e,{children:n,onCancel:o,error:s,className:u,left:a=!1,stackedButton:i=!1,right:l=!1}=t,c=E(t,["children","onCancel","error","className","left","stackedButton","right"]);return r.createElement("div",{className:u,"aria-label":"buttons-with-error"},r.createElement(M.Group,{className:R(dt,{[ht]:a,[vt]:i,[yt]:l}),"data-cy":c["data-cy"]},n,!!o&&r.createElement(M.Link,{onClick:o,"data-cy":"cancel-button",className:Ct},null!==(e=c.cancelText)&&void 0!==e?e:"cancel")),r.createElement(bt,{className:R(pt,{[ht]:a,[yt]:l}),err:s}))}function wt(t=1e3,r=[]){const[e,s]=n(!1),a=l((()=>s(!0)),[]),i=l((()=>s(!1)),[]),c=o(null);return u((()=>{if(e){const r=setTimeout((()=>i()),t);return c.current=r,()=>clearTimeout(r)}return c.current&&clearTimeout(c.current),()=>{}}),[e,t,i]),u((()=>{r.some((t=>!!t))&&i()}),[r,i]),f((()=>Object.freeze({active:e,start:a,stop:i})),[e,a,i])}function mt(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var r=t.default;if("function"==typeof r){var e=function t(){var e=!1;try{e=this instanceof t}catch{}return e?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};e.prototype=r.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})})),e}O(".ButtonsWithError_stackedButton__IK5Hd{display:flex;flex-direction:column}.ButtonsWithError_stackedButton__IK5Hd button{height:2.5rem;margin-bottom:1rem}.ButtonsWithError_error__PLgEC{max-width:32rem;text-align:center}.ButtonsWithError_group__mJXwV{margin-top:1rem;text-align:center}.ButtonsWithError_cancel__qZD3V{padding-left:.5rem;padding-right:.5rem}.ButtonsWithError_left__fpz-U{margin-left:0;text-align:left}.ButtonsWithError_right__q-u5o{margin-right:0;text-align:right}",{insertAt:"top"});var Et,gt,At,_t,Tt,It,St,Nt,Rt,Ot,xt,kt,Ut,Mt,Dt,Pt,Ft={exports:{}},jt={exports:{}},Gt={exports:{}},Ht={},Bt={}; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ function $t(){return At||(At=1,"production"===process.env.NODE_ENV?Gt.exports=function(){if(Et)return Ht;Et=1;var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,e=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,i=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,b=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,h=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function L(t){if("object"==typeof t&&null!==t){var b=t.$$typeof;switch(b){case r:switch(t=t.type){case i:case l:case n:case s:case o:case f:return t;default:switch(t=t&&t.$$typeof){case a:case c:case p:case v:case u:return t;default:return b}}case e:return b}}}function w(t){return L(t)===l}return Ht.AsyncMode=i,Ht.ConcurrentMode=l,Ht.ContextConsumer=a,Ht.ContextProvider=u,Ht.Element=r,Ht.ForwardRef=c,Ht.Fragment=n,Ht.Lazy=p,Ht.Memo=v,Ht.Portal=e,Ht.Profiler=s,Ht.StrictMode=o,Ht.Suspense=f,Ht.isAsyncMode=function(t){return w(t)||L(t)===i},Ht.isConcurrentMode=w,Ht.isContextConsumer=function(t){return L(t)===a},Ht.isContextProvider=function(t){return L(t)===u},Ht.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},Ht.isForwardRef=function(t){return L(t)===c},Ht.isFragment=function(t){return L(t)===n},Ht.isLazy=function(t){return L(t)===p},Ht.isMemo=function(t){return L(t)===v},Ht.isPortal=function(t){return L(t)===e},Ht.isProfiler=function(t){return L(t)===s},Ht.isStrictMode=function(t){return L(t)===o},Ht.isSuspense=function(t){return L(t)===f},Ht.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===s||t===o||t===f||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===v||t.$$typeof===u||t.$$typeof===a||t.$$typeof===c||t.$$typeof===C||t.$$typeof===h||t.$$typeof===y||t.$$typeof===d)},Ht.typeOf=L,Ht}():Gt.exports=(gt||(gt=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,e=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,i=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,b=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,p=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,h=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function L(t){if("object"==typeof t&&null!==t){var b=t.$$typeof;switch(b){case r:var d=t.type;switch(d){case i:case l:case n:case s:case o:case f:return d;default:var C=d&&d.$$typeof;switch(C){case a:case c:case p:case v:case u:return C;default:return b}}case e:return b}}}var w=i,m=l,E=a,g=u,A=r,_=c,T=n,I=p,S=v,N=e,R=s,O=o,x=f,k=!1;function U(t){return L(t)===l}Bt.AsyncMode=w,Bt.ConcurrentMode=m,Bt.ContextConsumer=E,Bt.ContextProvider=g,Bt.Element=A,Bt.ForwardRef=_,Bt.Fragment=T,Bt.Lazy=I,Bt.Memo=S,Bt.Portal=N,Bt.Profiler=R,Bt.StrictMode=O,Bt.Suspense=x,Bt.isAsyncMode=function(t){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(t)||L(t)===i},Bt.isConcurrentMode=U,Bt.isContextConsumer=function(t){return L(t)===a},Bt.isContextProvider=function(t){return L(t)===u},Bt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},Bt.isForwardRef=function(t){return L(t)===c},Bt.isFragment=function(t){return L(t)===n},Bt.isLazy=function(t){return L(t)===p},Bt.isMemo=function(t){return L(t)===v},Bt.isPortal=function(t){return L(t)===e},Bt.isProfiler=function(t){return L(t)===s},Bt.isStrictMode=function(t){return L(t)===o},Bt.isSuspense=function(t){return L(t)===f},Bt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===s||t===o||t===f||t===b||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===v||t.$$typeof===u||t.$$typeof===a||t.$$typeof===c||t.$$typeof===C||t.$$typeof===h||t.$$typeof===y||t.$$typeof===d)},Bt.typeOf=L}()),Bt)),Gt.exports} /* object-assign (c) Sindre Sorhus @license MIT */function Yt(){return St?It:(St=1,It="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Kt(){return Rt?Nt:(Rt=1,Nt=Function.call.bind(Object.prototype.hasOwnProperty))}function Wt(){if(Ut)return kt;Ut=1;var t=$t(),r=function(){if(Tt)return _t;Tt=1;var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable;return _t=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var r={},e=0;e<10;e++)r["_"+String.fromCharCode(e)]=e;var n=Object.getOwnPropertyNames(r).map((function(t){return r[t]}));if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(n,o){for(var s,u,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),i=1;i<arguments.length;i++){for(var l in s=Object(arguments[i]))r.call(s,l)&&(a[l]=s[l]);if(t){u=t(s);for(var c=0;c<u.length;c++)e.call(s,u[c])&&(a[u[c]]=s[u[c]])}}return a},_t}(),e=Yt(),n=Kt(),o=function(){if(xt)return Ot;xt=1;var t=function(){};if("production"!==process.env.NODE_ENV){var r=Yt(),e={},n=Kt();t=function(t){var r="Warning: "+t;"undefined"!=typeof console&&console.error(r);try{throw new Error(r)}catch(t){}}}function o(o,s,u,a,i){if("production"!==process.env.NODE_ENV)for(var l in o)if(n(o,l)){var c;try{if("function"!=typeof o[l]){var f=Error((a||"React class")+": "+u+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}c=o[l](s,l,a,u,null,r)}catch(t){c=t}if(!c||c instanceof Error||t((a||"React class")+": type specification of "+u+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in e)){e[c.message]=!0;var b=i?i():"";t("Failed "+u+" type: "+c.message+(null!=b?b:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(e={})},Ot=o}(),s=function(){};function u(){return null}return"production"!==process.env.NODE_ENV&&(s=function(t){var r="Warning: "+t;"undefined"!=typeof console&&console.error(r);try{throw new Error(r)}catch(t){}}),kt=function(a,i){var l="function"==typeof Symbol&&Symbol.iterator,c="<<anonymous>>",f={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:p(u),arrayOf:function(t){return p((function(r,n,o,s,u){if("function"!=typeof t)return new v("Property `"+u+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=r[n];if(!Array.isArray(a))return new v("Invalid "+s+" `"+u+"` of type `"+y(a)+"` supplied to `"+o+"`, expected an array.");for(var i=0;i<a.length;i++){var l=t(a,i,o,s,u+"["+i+"]",e);if(l instanceof Error)return l}return null}))},element:p((function(t,r,e,n,o){var s=t[r];return a(s)?null:new v("Invalid "+n+" `"+o+"` of type `"+y(s)+"` supplied to `"+e+"`, expected a single ReactElement.")})),elementType:p((function(r,e,n,o,s){var u=r[e];return t.isValidElementType(u)?null:new v("Invalid "+o+" `"+s+"` of type `"+y(u)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return p((function(r,e,n,o,s){if(!(r[e]instanceof t)){var u=t.name||c;return new v("Invalid "+o+" `"+s+"` of type `"+((a=r[e]).constructor&&a.constructor.name?a.constructor.name:c)+"` supplied to `"+n+"`, expected instance of `"+u+"`.")}var a;return null}))},node:p((function(t,r,e,n,o){return h(t[r])?null:new v("Invalid "+n+" `"+o+"` supplied to `"+e+"`, expected a ReactNode.")})),objectOf:function(t){return p((function(r,o,s,u,a){if("function"!=typeof t)return new v("Property `"+a+"` of component `"+s+"` has invalid PropType notation inside objectOf.");var i=r[o],l=y(i);if("object"!==l)return new v("Invalid "+u+" `"+a+"` of type `"+l+"` supplied to `"+s+"`, expected an object.");for(var c in i)if(n(i,c)){var f=t(i,c,s,u,a+"."+c,e);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?p((function(r,e,n,o,s){for(var u=r[e],a=0;a<t.length;a++)if(b(u,t[a]))return null;var i=JSON.stringify(t,(function(t,r){return"symbol"===L(r)?String(r):r}));return new v("Invalid "+o+" `"+s+"` of value `"+String(u)+"` supplied to `"+n+"`, expected one of "+i+".")})):("production"!==process.env.NODE_ENV&&s(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),u)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var r=0;r<t.length;r++){var o=t[r];if("function"!=typeof o)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+r+"."),u}return p((function(r,o,s,u,a){for(var i=[],l=0;l<t.length;l++){var c=(0,t[l])(r,o,s,u,a,e);if(null==c)return null;c.data&&n(c.data,"expectedType")&&i.push(c.data.expectedType)}return new v("Invalid "+u+" `"+a+"` supplied to `"+s+"`"+(i.length>0?", expected one of type ["+i.join(", ")+"]":"")+".")}))},shape:function(t){return p((function(r,n,o,s,u){var a=r[n],i=y(a);if("object"!==i)return new v("Invalid "+s+" `"+u+"` of type `"+i+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var c=t[l];if("function"!=typeof c)return C(o,s,u,l,L(c));var f=c(a,l,o,s,u+"."+l,e);if(f)return f}return null}))},exact:function(t){return p((function(o,s,u,a,i){var l=o[s],c=y(l);if("object"!==c)return new v("Invalid "+a+" `"+i+"` of type `"+c+"` supplied to `"+u+"`, expected `object`.");var f=r({},o[s],t);for(var b in f){var p=t[b];if(n(t,b)&&"function"!=typeof p)return C(u,a,i,b,L(p));if(!p)return new v("Invalid "+a+" `"+i+"` key `"+b+"` supplied to `"+u+"`.\nBad object: "+JSON.stringify(o[s],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=p(l,b,u,a,i+"."+b,e);if(d)return d}return null}))}};function b(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}function v(t,r){this.message=t,this.data=r&&"object"==typeof r?r:{},this.stack=""}function p(t){if("production"!==process.env.NODE_ENV)var r={},n=0;function o(o,u,a,l,f,b,p){if(l=l||c,b=b||a,p!==e){if(i){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var C=l+":"+a;!r[C]&&n<3&&(s("You are manually calling a React.PropTypes validation function for the `"+b+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[C]=!0,n++)}}return null==u[a]?o?null===u[a]?new v("The "+f+" `"+b+"` is marked as required in `"+l+"`, but its value is `null`."):new v("The "+f+" `"+b+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(u,a,l,f,b)}var u=o.bind(null,!1);return u.isRequired=o.bind(null,!0),u}function d(t){return p((function(r,e,n,o,s,u){var a=r[e];return y(a)!==t?new v("Invalid "+o+" `"+s+"` of type `"+L(a)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function C(t,r,e,n,o){return new v((t||"React class")+": "+r+" type `"+e+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function h(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||a(t))return!0;var r=function(t){var r=t&&(l&&t[l]||t["@@iterator"]);if("function"==typeof r)return r}(t);if(!r)return!1;var e,n=r.call(t);if(r!==t.entries){for(;!(e=n.next()).done;)if(!h(e.value))return!1}else for(;!(e=n.next()).done;){var o=e.value;if(o&&!h(o[1]))return!1}return!0;default:return!1}}function y(t){var r=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,r){return"symbol"===t||!!r&&("Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol)}(r,t)?"symbol":r}function L(t){if(null==t)return""+t;var r=y(t);if("object"===r){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return r}function w(t){var r=L(t);switch(r){case"array":case"object":return"an "+r;case"boolean":case"date":case"regexp":return"a "+r;default:return r}}return v.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},kt}var Vt=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function(){if(Pt)return jt.exports;if(Pt=1,"production"!==process.env.NODE_ENV){var t=$t();jt.exports=Wt()(t.isElement,!0)}else jt.exports=function(){if(Dt)return Mt;Dt=1;var t=Yt();function r(){}function e(){}return e.resetWarningCache=r,Mt=function(){function n(r,e,n,o,s,u){if(u!==t){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return n}n.isRequired=n;var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:e,resetWarningCache:r};return s.PropTypes=s,s}}()();return jt.exports}());function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function qt(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function zt(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Zt(t,r,e){return r&&zt(t.prototype,r),e&&zt(t,e),t}function Jt(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Qt(){return Qt=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},Qt.apply(this,arguments)}function tr(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{},n=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})))),n.forEach((function(r){Jt(t,r,e[r])}))}return t}function rr(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&nr(t,r)}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},er(t)}function nr(t,r){return nr=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},nr(t,r)}function or(t,r,e){return or=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,r,e){var n=[null];n.push.apply(n,r);var o=new(Function.bind.apply(t,n));return e&&nr(o,e.prototype),o},or.apply(null,arguments)}function sr(t){var r="function"==typeof Map?new Map:void 0;return sr=function(t){if(null===t||(e=t,-1===Function.toString.call(e).indexOf("[native code]")))return t;var e;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return or(t,arguments,er(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),nr(n,t)},sr(t)}function ur(t,r){if(null==t)return{};var e,n,o=function(t,r){if(null==t)return{};var e,n,o={},s=Object.keys(t);for(n=0;n<s.length;n++)e=s[n],r.indexOf(e)>=0||(o[e]=t[e]);return o}(t,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)e=s[n],r.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(o[e]=t[e])}return o}function ar(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ir(t,r){return!r||"object"!=typeof r&&"function"!=typeof r?ar(t):r}function lr(t,r,e){return lr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,r,e){var n=function(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&null!==(t=er(t)););return t}(t,r);if(n){var o=Object.getOwnPropertyDescriptor(n,r);return o.get?o.get.call(e):o.value}},lr(t,r,e||t)}function cr(t){return function(t){if(Array.isArray(t)){for(var r=0,e=new Array(t.length);r<t.length;r++)e[r]=t[r];return e}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function fr(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return t.reduce((function(t,e){return t[e]=r||{value:e},t}),{})}var br={logLevel:"warn",defaultKeyEvent:"keydown",defaultComponent:"div",defaultTabIndex:"-1",ignoreTags:["input","select","textarea"],enableHardSequences:!1,ignoreKeymapAndHandlerChangesByDefault:!0,ignoreEventsCondition:function(t){var r=t.target;if(r&&r.tagName){var e=r.tagName.toLowerCase();return pr.option("_ignoreTagsDict")[e]||r.isContentEditable}return!1},ignoreRepeatedEventsWhenKeyHeldDown:!0,simulateMissingKeyPressEvents:!0,stopEventPropagationAfterHandling:!0,stopEventPropagationAfterIgnoring:!0,allowCombinationSubmatches:!1,customKeyCodes:{}},vr=tr({},br);vr._ignoreTagsDict=fr(vr.ignoreTags,!0);var pr=function(){function t(){qt(this,t)}return Zt(t,null,[{key:"init",value:function(t){var r=this,e=t.ignoreTags,n=t.customKeyCodes;e&&(t._ignoreTagsDict=fr(t.ignoreTags)),n&&(t._customKeyNamesDict=fr(Object.values(t.customKeyCodes))),-1!==["verbose","debug","info"].indexOf(t.logLevel)&&console.warn("React HotKeys: You have requested log level '".concat(t.logLevel,"' but for performance reasons, logging below severity level 'warning' is disabled in produ