UNPKG

@dolthub/react-components

Version:

A collection of React components for common tasks

20 lines โ€ข 8.21 MB
"use strict";var t=require("react"),r=require("react-dom"),e=require("react/jsx-runtime"),n=require("tty");function o(t){var r=Object.create(null);return t&&Object.keys(t).forEach((function(e){if("default"!==e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})}})),r.default=t,Object.freeze(r)}var s=o(t);function u(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 a(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 i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function l(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 f,b={exports:{}}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var v,p=(f||(f=1,v=b,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}v.exports?(r.default=r,v.exports=r):window.classNames=r}()),b.exports),d=i(p);function C(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 h={btn:"Btn_btn__jx1VJ"};function y(r){var{children:e,className:n}=r,o=u(r,["children","className"]);return t.createElement("button",Object.assign({className:d(h.btn,n),type:"button"},o),e)}C(".Btn_btn__jx1VJ{background-color:transparent;background-image:none}",{insertAt:"top"});var L={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 w(r){var{children:e,className:n,red:o=!1,green:s=!1,dark:a=!1,pill:i=!1,white:l=!1,gradient:c=!1}=r,f=u(r,["children","className","red","green","dark","pill","white","gradient"]);return t.createElement("button",Object.assign({className:d(L.button,{[L.red]:o,[L.green]:s,[L.dark]:a,[L.pill]:i,[L.white]:l,[L.gradient]:c,[L.small]:"small"===f.size},n),type:"button","data-testid":"default-button"},f),e)}C(".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"}),w.Outlined=function(r){var{children:e,className:n,pill:o=!1}=r,s=u(r,["children","className","pill"]);return t.createElement("button",Object.assign({className:d(L.outlined,{[L.pill]:o},n),type:"button"},s),e)},w.Link=function(r){var{children:e,className:n,red:o=!1,green:s=!1,dark:a=!1,underlined:i=!1}=r,l=u(r,["children","className","red","green","dark","underlined"]);return t.createElement("button",Object.assign({className:d(L.link,{[L.redText]:o,[L.greenText]:s,[L.darkText]:a,[L.underlined]:i},n),type:"button"},l),e)},w.Group=function({children:r,className:e}){return t.createElement("div",{className:d(L.group,e),"aria-label":"button-group"},r)};var m={},E={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},g=t.createContext&&t.createContext(E),A=function(){return A=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},A.apply(this,arguments)},_=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 T(r){return r&&r.map((function(r,e){return t.createElement(r.tag,A({key:e},r.attr),T(r.child))}))}function I(r){var e=function(e){var n,o=r.attr,s=r.size,u=r.title,a=_(r,["attr","size","title"]),i=s||e.size||"1em";return e.className&&(n=e.className),r.className&&(n=(n?n+" ":"")+r.className),t.createElement("svg",A({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,o,a,{className:n,style:A(A({color:r.color||e.color},e.style),r.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),u&&t.createElement("title",null,u),r.children)};return void 0!==g?t.createElement(g.Consumer,null,(function(t){return e(t)})):e(E)}var S,N=l(Object.freeze({__proto__:null,DefaultContext:E,GenIcon:function(r){return function(e){return t.createElement(I,A({attr:A({},r.attr)},e),T(r.child))}},IconBase:I,IconContext:g,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 R(){if(S)return m;S=1;var t=N.GenIcon;return m.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)},m}var O,x=R(),k={};function U(){if(O)return k;O=1;var t=N.GenIcon;return k.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)},k}var M=U();function D(){return D=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},D.apply(this,arguments)}var P="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,F={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}}},j=["top left","top center","top right","right top","right center","right bottom","bottom left","bottom center","bottom right","left top","left center","left bottom"],G=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}},H=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,j));l<f.length;){var b={top:(i=G(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},B=0,$=t.forwardRef((function(e,n){var o=e.trigger,s=void 0===o?null:o,u=e.onOpen,a=void 0===u?function(){}:u,i=e.onClose,l=void 0===i?function(){}:i,c=e.defaultOpen,f=void 0!==c&&c,b=e.open,v=void 0===b?void 0:b,p=e.disabled,d=void 0!==p&&p,C=e.nested,h=void 0!==C&&C,y=e.closeOnDocumentClick,L=void 0===y||y,w=e.repositionOnResize,m=void 0===w||w,E=e.closeOnEscape,g=void 0===E||E,A=e.on,_=void 0===A?["click"]:A,T=e.contentStyle,I=void 0===T?{}:T,S=e.arrowStyle,N=void 0===S?{}:S,R=e.overlayStyle,O=void 0===R?{}:R,x=e.className,k=void 0===x?"":x,U=e.position,M=void 0===U?"bottom center":U,j=e.modal,G=void 0!==j&&j,$=e.lockScroll,Y=void 0!==$&&$,K=e.arrow,W=void 0===K||K,V=e.offsetX,X=void 0===V?0:V,q=e.offsetY,z=void 0===q?0:q,Z=e.mouseEnterDelay,J=void 0===Z?100:Z,Q=e.mouseLeaveDelay,tt=void 0===Q?100:Q,rt=e.keepTooltipInside,et=void 0!==rt&&rt,nt=e.children,ot=t.useState(v||f),st=ot[0],ut=ot[1],at=t.useRef(null),it=t.useRef(null),lt=t.useRef(null),ct=t.useRef(null),ft=t.useRef("popup-"+ ++B),bt=!!G||!s,vt=t.useRef(0);P((function(){return st?(ct.current=document.activeElement,_t(),Et(),wt()):mt(),function(){clearTimeout(vt.current)}}),[st]),t.useEffect((function(){"boolean"==typeof v&&(v?pt():dt())}),[v,d]);var pt=function(t){st||d||(ut(!0),setTimeout((function(){return a(t)}),0))},dt=function(t){var r;st&&!d&&(ut(!1),bt&&(null===(r=ct.current)||void 0===r||r.focus()),setTimeout((function(){return l(t)}),0))},Ct=function(t){null==t||t.stopPropagation(),st?dt(t):pt(t)},ht=function(t){clearTimeout(vt.current),vt.current=setTimeout((function(){return pt(t)}),J)},yt=function(t){null==t||t.preventDefault(),Ct()},Lt=function(t){clearTimeout(vt.current),vt.current=setTimeout((function(){return dt(t)}),tt)},wt=function(){bt&&Y&&(document.getElementsByTagName("body")[0].style.overflow="hidden")},mt=function(){bt&&Y&&(document.getElementsByTagName("body")[0].style.overflow="auto")},Et=function(){var t,r=null==it||null===(t=it.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()};t.useImperativeHandle(n,(function(){return{open:function(){pt()},close:function(){dt()},toggle:function(){Ct()}}}));var gt,At,_t=function(){if(!bt&&st&&(null==at?void 0:at.current)&&(null==at?void 0:at.current)&&(null==it?void 0:it.current)){var t,r,e=at.current.getBoundingClientRect(),n=it.current.getBoundingClientRect(),o=H(e,n,M,W,{offsetX:X,offsetY:z},et);if(it.current.style.top=o.top+window.scrollY+"px",it.current.style.left=o.left+window.scrollX+"px",W&&lt.current)lt.current.style.transform=o.transform,lt.current.style.setProperty("-ms-transform",o.transform),lt.current.style.setProperty("-webkit-transform",o.transform),lt.current.style.top=(null===(t=N.top)||void 0===t?void 0:t.toString())||o.arrowTop,lt.current.style.left=(null===(r=N.left)||void 0===r?void 0:r.toString())||o.arrowLeft}};gt=dt,void 0===(At=g)&&(At=!0),t.useEffect((function(){if(At){var t=function(t){"Escape"===t.key&&gt(t)};return document.addEventListener("keyup",t),function(){At&&document.removeEventListener("keyup",t)}}}),[gt,At]),function(r,e){void 0===e&&(e=!0),t.useEffect((function(){if(e){var t=function(t){if(9===t.keyCode){var e,n=null==r||null===(e=r.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 t.preventDefault();var s=o[0],u=o[o.length-1];t.shiftKey&&document.activeElement===s?(t.preventDefault(),u.focus()):document.activeElement===u&&(t.preventDefault(),s.focus())}};return document.addEventListener("keydown",t),function(){e&&document.removeEventListener("keydown",t)}}}),[r,e])}(it,st&&bt),function(r,e){void 0===e&&(e=!0),t.useEffect((function(){if(e){var t=function(){r()};return window.addEventListener("resize",t),function(){e&&window.removeEventListener("resize",t)}}}),[r,e])}(_t,m),function(r,e,n){void 0===n&&(n=!0),t.useEffect((function(){if(n){var t=function(t){var n=Array.isArray(r)?r:[r],o=!1;n.forEach((function(r){r.current&&!r.current.contains(t.target)||(o=!0)})),t.stopPropagation(),o||e(t)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),function(){n&&(document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t))}}}),[r,e,n])}(s?[it,at]:[it],dt,L&&!h);var Tt,It=function(){return t.createElement("div",Object.assign({},(r=bt?F.popupContent.modal:F.popupContent.tooltip,e={className:"popup-content "+(""!==k?k.split(" ").map((function(t){return t+"-content"})).join(" "):""),style:D({},r,I,{pointerEvents:"auto"}),ref:it,onClick:function(t){t.stopPropagation()}},!G&&_.indexOf("hover")>=0&&(e.onMouseEnter=ht,e.onMouseLeave=Lt),e),{key:"C",role:bt?"dialog":"tooltip",id:ft.current}),W&&!bt&&t.createElement("div",{ref:lt,style:F.popupArrow},t.createElement("svg",{"data-testid":"arrow",className:"popup-arrow "+(""!==k?k.split(" ").map((function(t){return t+"-arrow"})).join(" "):""),viewBox:"0 0 32 16",style:D({position:"absolute"},N)},t.createElement("path",{d:"M16 0l16 16H0z",fill:"currentcolor"}))),nt&&"function"==typeof nt?nt(dt,st):nt);var r,e},St=!(_.indexOf("hover")>=0),Nt=bt?F.overlay.modal:F.overlay.tooltip,Rt=[St&&t.createElement("div",{key:"O","data-testid":"overlay","data-popup":bt?"modal":"tooltip",className:"popup-overlay "+(""!==k?k.split(" ").map((function(t){return t+"-overlay"})).join(" "):""),style:D({},Nt,O,{pointerEvents:L&&h||bt?"auto":"none"}),onClick:L&&h?dt:void 0,tabIndex:-1},bt&&It()),!bt&&It()];return t.createElement(t.Fragment,null,function(){for(var r={key:"T",ref:at,"aria-describedby":ft.current},e=Array.isArray(_)?_:[_],n=0,o=e.length;n<o;n++)switch(e[n]){case"click":r.onClick=Ct;break;case"right-click":r.onContextMenu=yt;break;case"hover":r.onMouseEnter=ht,r.onMouseLeave=Lt;break;case"focus":r.onFocus=ht,r.onBlur=Lt}if("function"==typeof s){var u=s(st);return!!s&&t.cloneElement(u,r)}return!!s&&t.cloneElement(s,r)}(),st&&r.createPortal(Rt,(null===(Tt=document.getElementById("popup-root"))&&((Tt=document.createElement("div")).setAttribute("id","popup-root"),document.body.appendChild(Tt)),Tt)))}));function Y(r){return t.createElement($,Object.assign({},r,{contentStyle:Object.assign({borderRadius:"0.5rem",border:"none",boxShadow:"0 0 4px 0 rgba(145, 164, 168, 0.5)"},r.contentStyle)}),r.children)}C(".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 K={triggerButton:"ButtonWithPopup_triggerButton__Ene-J",withoutText:"ButtonWithPopup_withoutText__XtBUB",caret:"ButtonWithPopup_caret__Zb7xx",caretWithoutText:"ButtonWithPopup_caretWithoutText__OAZfg"};C(".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 W=t.createContext({improveErrorMsg:t=>t,renderDifferentComp:()=>null});function V(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 X={errorMsg:"ErrorMsg_errorMsg__aze93"};function q({err:r,errString:e,className:n}){const{improveErrorMsg:o,renderDifferentComp:s}=t.useContext(W),u=r?o(r.message):e?o(e):null;if(!u)return null;const a=s?s(u):null;if(null!==a)return t.cloneElement(a,{className:d(X.errorMsg,n)});const i=u.split("\n").filter(Boolean);return t.createElement("div",{className:d(X.errorMsg,n),"aria-label":"error-msg","data-cy":"error-msg"},i.map((r=>t.createElement("div",{key:r},r))))}C(".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 z="ButtonsWithError_stackedButton__IK5Hd",Z="ButtonsWithError_error__PLgEC",J="ButtonsWithError_group__mJXwV",Q="ButtonsWithError_cancel__qZD3V",tt="ButtonsWithError_left__fpz-U",rt="ButtonsWithError_right__q-u5o";function et(r=1e3,e=[]){const[n,o]=t.useState(!1),s=t.useCallback((()=>o(!0)),[]),u=t.useCallback((()=>o(!1)),[]),a=t.useRef(null);return t.useEffect((()=>{if(n){const t=setTimeout((()=>u()),r);return a.current=t,()=>clearTimeout(t)}return a.current&&clearTimeout(a.current),()=>{}}),[n,r,u]),t.useEffect((()=>{e.some((t=>!!t))&&u()}),[e,u]),t.useMemo((()=>Object.freeze({active:n,start:s,stop:u})),[n,s,u])}function nt(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}C(".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 ot,st,ut,at,it,lt,ct,ft,bt,vt,pt,dt,Ct,ht,yt,Lt,wt={exports:{}},mt={exports:{}},Et={exports:{}},gt={},At={}; /** @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 ut||(ut=1,"production"===process.env.NODE_ENV?Et.exports=function(){if(ot)return gt;ot=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 gt.AsyncMode=i,gt.ConcurrentMode=l,gt.ContextConsumer=a,gt.ContextProvider=u,gt.Element=r,gt.ForwardRef=c,gt.Fragment=n,gt.Lazy=p,gt.Memo=v,gt.Portal=e,gt.Profiler=s,gt.StrictMode=o,gt.Suspense=f,gt.isAsyncMode=function(t){return w(t)||L(t)===i},gt.isConcurrentMode=w,gt.isContextConsumer=function(t){return L(t)===a},gt.isContextProvider=function(t){return L(t)===u},gt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},gt.isForwardRef=function(t){return L(t)===c},gt.isFragment=function(t){return L(t)===n},gt.isLazy=function(t){return L(t)===p},gt.isMemo=function(t){return L(t)===v},gt.isPortal=function(t){return L(t)===e},gt.isProfiler=function(t){return L(t)===s},gt.isStrictMode=function(t){return L(t)===o},gt.isSuspense=function(t){return L(t)===f},gt.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)},gt.typeOf=L,gt}():Et.exports=(st||(st=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}At.AsyncMode=w,At.ConcurrentMode=m,At.ContextConsumer=E,At.ContextProvider=g,At.Element=A,At.ForwardRef=_,At.Fragment=T,At.Lazy=I,At.Memo=S,At.Portal=N,At.Profiler=R,At.StrictMode=O,At.Suspense=x,At.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},At.isConcurrentMode=U,At.isContextConsumer=function(t){return L(t)===a},At.isContextProvider=function(t){return L(t)===u},At.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},At.isForwardRef=function(t){return L(t)===c},At.isFragment=function(t){return L(t)===n},At.isLazy=function(t){return L(t)===p},At.isMemo=function(t){return L(t)===v},At.isPortal=function(t){return L(t)===e},At.isProfiler=function(t){return L(t)===s},At.isStrictMode=function(t){return L(t)===o},At.isSuspense=function(t){return L(t)===f},At.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)},At.typeOf=L}()),At)),Et.exports} /* object-assign (c) Sindre Sorhus @license MIT */function Tt(){return ct?lt:(ct=1,lt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function It(){return bt?ft:(bt=1,ft=Function.call.bind(Object.prototype.hasOwnProperty))}function St(){if(Ct)return dt;Ct=1;var t=_t(),r=function(){if(it)return at;it=1;var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable;return at=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},at}(),e=Tt(),n=It(),o=function(){if(pt)return vt;pt=1;var t=function(){};if("production"!==process.env.NODE_ENV){var r=Tt(),e={},n=It();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={})},vt=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){}}),dt=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},dt}var Nt=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function(){if(Lt)return mt.exports;if(Lt=1,"production"!==process.env.NODE_ENV){var t=_t();mt.exports=St()(t.isElement,!0)}else mt.exports=function(){if(yt)return ht;yt=1;var t=Tt();function r(){}function e(){}return e.resetWarningCache=r,ht=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 mt.exports}());function Rt(t){return Rt="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},Rt(t)}function Ot(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function xt(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 kt(t,r,e){return r&&xt(t.prototype,r),e&&xt(t,e),t}function Ut(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Mt(){return Mt=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},Mt.apply(this,arguments)}function Dt(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){Ut(t,r,e[r])}))}return t}function Pt(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&&jt(t,r)}function Ft(t){return Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ft(t)}function jt(t,r){return jt=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},jt(t,r)}function Gt(t,r,e){return Gt=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&&jt(o,e.prototype),o},Gt.apply(null,arguments)}function Ht(t){var r="function"==typeof Map?new Map:void 0;return Ht=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 Gt(t,arguments,Ft(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),jt(n,t)},Ht(t)}function Bt(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 $t(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yt(t,r){return!r||"object"!=typeof r&&"function"!=typeof r?$t(t):r}function Kt(t,r,e){return Kt="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=Ft(t)););return t}(t,r);if(n){var o=Object.getOwnPropertyDescriptor(n,r);return o.get?o.get.call(e):o.value}},Kt(t,r,e||t)}function Wt(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 Vt(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 Xt={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 zt.option("_ignoreTagsDict")[e]||r.isContentEditable}return!1},ignoreRepeatedEventsWhenKeyHeldDown:!0,simulateMissingKeyPressEvents:!0,stopEventPropagationAfterHandling:!0,stopEventPropagationAfterIgnoring:!0,allowCombinationSubmatches:!1,customKeyCodes:{}},qt=Dt({},Xt);qt._ignoreTagsDict=Vt(qt.ignoreTags,!0);var zt=function(){function t(){Ot(this,t)}return kt(t,null,[{key:"init",value:function(t){var r=this,e=t.ignoreTags,n=t.customKeyCodes;e&&(t._ignoreTagsDict=Vt(t.ignoreTags)),n&&(t._customKeyNamesDict=Vt(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 production. Please use the development build for complete logs.")),Object.keys(t).forEach((function(e){r.set(e,t[e])}))}},{key:"set",value:function(t,r){qt[t]=r}},{key:"reset",value:function(t){qt[t]=Xt[t]}},{key:"option",value:function(t){return qt[t]}}]),t}(),Zt=function(){function t(){var r=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"warn";Ot(this,t),Ut(this,"verbose",this.noop),Ut(this,"debug",this.noop),Ut(this,"info",this.noop),Ut(this,"warn",this.noop),Ut(this,"error",this.noop),this.logLevel=this.constructor.levels[e],this.logLevel>=this.constructor.levels.error&&(this.error=console.error,this.logLevel>=this.constructor.levels.warn&&(this.warn=console.warn,["info","debug","verbose"].some((function(t){return!(r.logLevel>=r.constructor.levels[t]&&(r[t]=console.log,1))}))))}return kt(t,[{key:"noop",value:function(){}}]),t}();Ut(Zt,"logIcons",["๐Ÿ“•","๐Ÿ“—","๐Ÿ“˜","๐Ÿ“™"]),Ut(Zt,"componentIcons",["๐Ÿ”บ","โญ๏ธ","๐Ÿ”ท","๐Ÿ”ถ","โฌ›๏ธ"]),Ut(Zt,"eventIcons",["โค๏ธ","๐Ÿ’š","๐Ÿ’™","๐Ÿ’›","๐Ÿ’œ","๐Ÿงก"]),Ut(Zt,"levels",{none:0,error:1,warn:2,info:3,debug:4,verbose:5});var Jt={keydown:0,keypress:1,keyup:2},Qt={Shift:["shiftKey"],Meta:["metaKey"],Control:["ctrlKey"],Alt:["altKey"]},tr={"`":["~"],1:["!"],2:["@",'"'],3:["#","ยฃ"],4:["$"],5:["%"],6:["^"],7:["&"],8:["*"],9:["("],0:[")"],"-":["