UNPKG

monday-ui-react-core

Version:

Official monday.com UI resources for application development in React.js

2 lines • 119 kB
/*! For license information please see SplitButtonMenu.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports["monday-style"]=e(require("react")):t["monday-style"]=e(t.react)}(this,(t=>(()=>{var e={2836:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});const r={menu:"components-Menu-Menu-Menu-module__menu--Gpwea",small:"components-Menu-Menu-Menu-module__small--YU7CY",medium:"components-Menu-Menu-Menu-module__medium--RoauJ",large:"components-Menu-Menu-Menu-module__large--sNWcI"}},85498:(t,e,n)=>{"use strict";n.r(e)},52496:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const c=u(n(53373)),a=n(10266),s=i(n(39155)),f=u(n(9327)),l=u(n(58267)),p=u(n(45230)),d=n(35021),v=u(n(92692)),h=u(n(89157)),_=u(n(44088)),y=u(n(88533)),b=u(n(32183)),g=n(64164),m=n(84163),O=u(n(49128)),E=n(34800),A=n(41477),I=n(81521),j=n(77085),T=n(57683),S=n(79787),x=n(43808),M=u(n(2836)),R=(0,s.forwardRef)((({id:t,className:e,classname:n,size:r=R.sizes.MEDIUM,tabIndex:o=0,ariaLabel:i="Menu",ariaDescribedBy:u,children:a,isVisible:E=!0,onClose:w,onItemFocus:N,focusOnMount:P=!1,focusItemIndex:C=-1,focusItemIndexOnMount:B=-1,isSubMenu:k=!1,useDocumentEventListeners:D=!1,shouldScrollMenu:L=!1,"data-testid":W},U)=>{const z=(0,s.useRef)(null),F=(0,f.default)(z,U),K=(0,S.useMenuId)(t),q=(0,s.useRef)(null),Y=(0,d.backwardCompatibilityForProperties)([e,n]),[H,G]=(0,s.useState)(C),[$,V]=(0,s.useState)(!1),X=(0,s.useMemo)((()=>s.default.Children.toArray(a).filter((t=>!!t.type.isMenuChild||(console.error("Menu child must be a menuChild item (such as MenuItem, MenuDivider, MenuTitle, etc). This child is not supported: ",t),!1)))),[a]),Z=(0,s.useCallback)((t=>{var e,n,r;G(t);const o=X[t],i=s.default.isValidElement(o)?(null===(e=null==o?void 0:o.props)||void 0===e?void 0:e.id)||`${K}-item-${t}`:void 0;i?null===(n=null==z?void 0:z.current)||void 0===n||n.setAttribute("aria-activedescendant",i):null===(r=null==z?void 0:z.current)||void 0===r||r.removeAttribute("aria-activedescendant")}),[X,K]),J=(0,s.useCallback)((t=>{N&&N(t),Z(t),V(!1)}),[Z,N]),{setSubMenuIsOpenByIndex:Q,hasOpenSubMenu:tt,openSubMenuIndex:et,setOpenSubMenuIndex:nt,resetOpenSubMenuIndex:rt}=(0,v.default)(),ot=(0,h.default)({setActiveItemIndex:J,setOpenSubMenuIndex:nt,onClose:w});(0,p.default)({ref:z,callback:()=>ot()}),(0,_.default)({hasOpenSubMenu:tt,onCloseMenu:ot,ref:z,onClose:w,isSubMenu:k,useDocumentEventListeners:D});const{getNextSelectableIndex:it,getPreviousSelectableIndex:ut}=(0,g.useAdjacentSelectableMenuIndex)({children:X});(0,y.default)({hasOpenSubMenu:tt,getNextSelectableIndex:it,getPreviousSelectableIndex:ut,activeItemIndex:H,setActiveItemIndex:J,isVisible:E,ref:z,useDocumentEventListeners:D}),(0,b.default)({resetOpenSubMenuIndex:rt,hasOpenSubMenu:tt,ref:z,setActiveItemIndex:J}),(0,T.useFocusOnMount)({focusItemIndexOnMount:B,focusChildOnMount:X[B],getNextSelectableIndex:it,updateActiveItemIndex:Z,setIsInitialFocusSet:V});const ct=(0,s.useCallback)((()=>{V(!0)}),[V]),at=(0,O.default)(tt);(0,s.useEffect)((()=>{var t;tt||D||H>-1&&at&&(null===(t=null==z?void 0:z.current)||void 0===t||t.focus())}),[H,tt,at,D]),(0,l.default)((()=>{P&&!D&&requestAnimationFrame((()=>{z&&z.current&&z.current.focus()}))}),[z,P,D]);const{focusWithinProps:st}=(0,m.useFocusWithin)({onBlurWithin:()=>{ot&&ot()}});return s.default.createElement("ul",{onFocus:null==st?void 0:st.onFocus,onBlur:null==st?void 0:st.onBlur,id:K,"data-testid":W||(0,I.getTestId)(j.ComponentDefaultTestId.MENU,t),className:(0,c.default)(M.default.menu,(0,A.getStyle)(M.default,r),Y),ref:F,tabIndex:o,"aria-label":i,role:"menu","aria-describedby":u,onMouseOver:ct},X&&s.default.Children.map(X,((t,e)=>s.default.isValidElement(t)?s.default.cloneElement(t,Object.assign(Object.assign({},null==t?void 0:t.props),{activeItemIndex:H,index:e,setActiveItemIndex:Z,menuRef:z,resetOpenSubMenuIndex:rt,isParentMenuVisible:E,setSubMenuIsOpenByIndex:Q,hasOpenSubMenu:e===et,closeMenu:ot,id:(0,x.generateMenuItemId)(K,t,e),useDocumentEventListeners:D,isInitialSelectedState:$,shouldScrollMenu:L,getNextSelectableIndex:it,getPreviousSelectableIndex:ut,isUnderSubMenu:k,splitMenuItemIconButtonRef:q})):null)))}));Object.assign(R,{isMenu:!0,supportFocusOnMount:!0}),e.default=(0,E.withStaticProps)(R,{sizes:a.SIZES})},64164:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useAdjacentSelectableMenuIndex=void 0;const r=n(39155),o=n(43808);e.useAdjacentSelectableMenuIndex=({children:t})=>({getNextSelectableIndex:(0,r.useCallback)((e=>{let n;for(let r=1;r<=t.length;r++)if(n=(e+r)%t.length,(0,o.isMenuChildSelectable)(t[n]))return n;return null}),[t]),getPreviousSelectableIndex:(0,r.useCallback)((e=>{let n;for(let r=t.length-1;r>0;r--)if(n=(e+r)%t.length,(0,o.isMenuChildSelectable)(t[n]))return n;return null}),[t])})},44088:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(39155),i=r(n(18680)),u=n(44e3),c=[u.keyCodes.ESCAPE,u.keyCodes.LEFT_ARROW];e.default=function({hasOpenSubMenu:t,onCloseMenu:e,ref:n,onClose:r,isSubMenu:a,useDocumentEventListeners:s}){const f=(0,o.useCallback)((n=>{const o=n.key===u.keyCodes.LEFT_ARROW;if(!o||a){if(t)return!1;e({propagate:!1}),r&&(r({propagate:!1},o?u.keyCodes.LEFT_ARROW:u.keyCodes.ESCAPE),n.preventDefault(),n.stopPropagation())}}),[r,t,e,a]);(0,i.default)({keys:c,callback:f,ref:s?void 0:n})}},57683:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useFocusOnMount=void 0;const r=n(39155),o=n(43808);e.useFocusOnMount=({focusItemIndexOnMount:t,focusChildOnMount:e,getNextSelectableIndex:n,updateActiveItemIndex:i,setIsInitialFocusSet:u})=>{(0,r.useEffect)((()=>{if(-1===t)return;const r=(0,o.isMenuChildSelectable)(e)?t:n(t);null!==r&&requestAnimationFrame((()=>{i(r),u(!0)}))}),[e,t,n,u,i])}},79787:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.useMenuId=e.generateMenuId=void 0;const o=n(39155),i=r(n(58267));let u=0;e.generateMenuId=()=>"menu-"+u++;e.useMenuId=t=>{const[n,r]=(0,o.useState)();return(0,i.default)((()=>{r(t||(0,e.generateMenuId)())}),[t]),n}},88533:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(39155),i=n(1265),u=r(n(18680));e.default=function({hasOpenSubMenu:t,getNextSelectableIndex:e,getPreviousSelectableIndex:n,activeItemIndex:r,setActiveItemIndex:c,isVisible:a,ref:s,useDocumentEventListeners:f}){const l=(0,o.useCallback)((o=>{let u;if(t)return!1;o===i.NavDirections.DOWN?u=e(r):o===i.NavDirections.UP&&(u=n(r)),(u||0===u)&&c(u)}),[r,e,n,t,c]),p=(0,o.useCallback)((()=>{l(i.NavDirections.UP)}),[l]),d=(0,o.useCallback)((()=>{l(i.NavDirections.DOWN)}),[l]),v=(0,o.useCallback)((t=>{a&&-1===r&&c(0)}),[c,r,a]),h=(0,o.useMemo)((()=>{if(!f)return{ref:s,preventDefault:!0,stopPropagation:!0}}),[f,s]);(0,u.default)(Object.assign({keys:i.ARROW_DOWN_KEYS,callback:d},h)),(0,u.default)(Object.assign({keys:i.ARROW_UP_KEYS,callback:p},h)),(0,u.default)(Object.assign({keys:i.ENTER_KEYS,callback:v},h))}},32183:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(n(75893)),i=r(n(49128)),u=r(n(58267));e.default=function({resetOpenSubMenuIndex:t,hasOpenSubMenu:e,ref:n,setActiveItemIndex:r}){const c=(0,o.default)({ref:n}),a=(0,i.default)(c);return(0,u.default)((()=>{c||c!==a&&(e||(t(),r(-1)))}),[t,n,a,c,e,r]),c}},89157:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(39155);e.default=function({setActiveItemIndex:t,setOpenSubMenuIndex:e,onClose:n}){return(0,r.useCallback)(((r={propagate:!1})=>{t(-1),e(null),n&&n(r)}),[n,e,t])}},92692:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(39155);e.default=function(){const[t,e]=(0,r.useState)(null),n="number"==typeof t,o=(0,r.useCallback)(((t,n)=>{e(n?t:null)}),[e]),i=(0,r.useCallback)((()=>{e(null)}),[e]);return{setSubMenuIsOpenByIndex:o,hasOpenSubMenu:n,openSubMenuIndex:t,setOpenSubMenuIndex:e,resetOpenSubMenuIndex:i}}},43808:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateMenuItemId=e.isMenuChildSelectable=void 0,e.isMenuChildSelectable=function(t){return!!t.type.isSelectable&&!t.props.disabled};e.generateMenuItemId=(t,e,n)=>e.props.id||`${t}-item-${n}`},99861:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return o(e,t),e},u=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const a=i(n(39155)),s=c(n(9327)),f=c(n(52496)),l=(0,a.forwardRef)(((t,e)=>{var{children:n}=t,r=u(t,["children"]);const o=(0,a.useRef)(null),i=(0,s.default)(e,o);return a.default.createElement(f.default,Object.assign({focusItemIndexOnMount:0},r,{ref:i}),n)}));e.default=l},92571:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_ARR=void 0,e.EMPTY_ARR=[]},29350:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AnimationType=e.HideShowEvent=e.JustifyType=void 0,function(t){t.START="start",t.CENTER="center",t.END="end"}(e.JustifyType||(e.JustifyType={})),function(t){t.CLICK="click",t.CLICK_OUTSIDE="clickoutside",t.ESCAPE_KEY="esckey",t.TAB_KEY="tab",t.MOUSE_ENTER="mouseenter",t.MOUSE_LEAVE="mouseleave",t.ENTER="enter",t.MOUSE_DOWN="mousedown",t.FOCUS="focus",t.BLUR="blur",t.CONTENT_CLICK="onContentClick",t.CONTEXT_MENU="contextmenu"}(e.HideShowEvent||(e.HideShowEvent={})),function(t){t.OPACITY_AND_SLIDE="opacity-and-slide",t.EXPAND="expand"}(e.AnimationType||(e.AnimationType={}))},44e3:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(29350),e),o(n(26640),e),o(n(10266),e),o(n(92928),e),o(n(92571),e)},92928:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DialogPosition=e.BasePosition=void 0,function(t){t.START="Start",t.CENTER="Center",t.END="End",t.STRETCH="Stretch"}(e.BasePosition||(e.BasePosition={})),function(t){t.LEFT="left",t.LEFT_START="left-start",t.LEFT_END="left-end",t.RIGHT="right",t.RIGHT_START="right-start",t.RIGHT_END="right-end",t.TOP="top",t.TOP_START="top-start",t.TOP_END="top-end",t.BOTTOM="bottom",t.BOTTOM_START="bottom-start",t.BOTTOM_END="bottom-end"}(e.DialogPosition||(e.DialogPosition={}))},10266:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Sizes=e.BaseSizes=e.SIZES=e.BASE_SIZES_WITH_NONE=e.BASE_SIZES=void 0,e.BASE_SIZES={SMALL:"small",MEDIUM:"medium",LARGE:"large"},e.BASE_SIZES_WITH_NONE=Object.assign({NONE:"none"},e.BASE_SIZES),e.SIZES=Object.assign({XXS:"xxs",XS:"xs"},e.BASE_SIZES),function(t){t.SMALL="small",t.MEDIUM="medium",t.LARGE="large"}(e.BaseSizes||(e.BaseSizes={})),function(t){t.XXS="xxs",t.XS="xs",t.SMALL="small",t.MEDIUM="medium",t.LARGE="large"}(e.Sizes||(e.Sizes={}))},35021:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backwardCompatibilityForProperties=void 0,e.backwardCompatibilityForProperties=function(t=[],e){const n=t.find((t=>void 0!==t));return void 0===n?e:n}},41477:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStyle=void 0,e.getStyle=function(t,e){return e&&t[e]?t[e]:""}},58267:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(39155),o=(0,n(69228).isClient)()?r.useLayoutEffect:r.useEffect;e.default=o},45230:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(39155),i=r(n(39819)),u=n(69228);e.default=function({ref:t,callback:e,ignoreClasses:n,eventName:r="click"}){const c=(0,o.useCallback)((r=>{if(!t||!t.current||t.current.contains(r.target))return;n&&r.target instanceof HTMLElement&&r.target.closest(n.join(","))||e(r)}),[t,e,n]),a=(0,o.useRef)((0,u.isClient)()?document.body:null);(0,i.default)({eventName:r,ref:a,callback:c,capture:!0}),(0,i.default)({eventName:"touchend",ref:a,callback:c,capture:!0})}},39819:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(39155);e.default=function({eventName:t,callback:e,ref:n,capture:o=!1}){(0,r.useEffect)((()=>{const r=n&&n.current;if(!r)return;const i={capture:o};return r.addEventListener(t,e,i),()=>{r.removeEventListener(t,e,i)}}),[t,n,e,o])}},84163:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useFocusWithin=void 0;const r=n(39155);e.useFocusWithin=function({onFocusWithin:t,onFocusWithinChange:e,isDisabled:n,onBlurWithin:o}){const i=(0,r.useRef)({isFocusWithin:!1}).current,u=(0,r.useCallback)((n=>{i.isFocusWithin||(t&&t(n),e&&e(!0),i.isFocusWithin=!0)}),[t,e,i]),c=(0,r.useCallback)((t=>{const n=t.currentTarget;i.isFocusWithin&&!n.contains(t.relatedTarget)&&(o&&o(t),e&&e(!1),i.isFocusWithin=!1)}),[o,e,i]),a=(0,r.useMemo)((()=>n?{focusWithinProps:{}}:{}),[n]);return n?a:{focusWithinProps:{onFocus:u,onBlur:c}}}},1265:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ESCAPE_KEYS=e.ENTER_KEYS=e.SELECTION_KEYS=e.ARROW_LEFT_KEYS=e.ARROW_RIGHT_KEYS=e.ARROW_UP_KEYS=e.ARROW_DOWN_KEYS=e.NavDirections=void 0;const o=n(39155),i=n(1018),u=r(n(18680));var c;!function(t){t.UP="up",t.DOWN="down",t.LEFT="left",t.RIGHT="right"}(c=e.NavDirections||(e.NavDirections={})),e.ARROW_DOWN_KEYS=["ArrowDown"],e.ARROW_UP_KEYS=["ArrowUp"],e.ARROW_RIGHT_KEYS=["ArrowRight"],e.ARROW_LEFT_KEYS=["ArrowLeft"],e.SELECTION_KEYS=["Enter"," "],e.ENTER_KEYS=["Enter"],e.ESCAPE_KEYS=["Escape"],e.default=function({ref:t,onSelectionKey:n=i.noop,onArrowNavigation:r=i.noop,onEscape:a=i.noop,useDocumentEventListeners:s=!1,focusOnMount:f=!1}){const l=(0,o.useMemo)((()=>{if(!s)return{ref:t,preventDefault:!0,stopPropagation:!0}}),[s,t]),p=(0,o.useCallback)((()=>r(c.DOWN)),[r]),d=(0,o.useCallback)((()=>r(c.UP)),[r]),v=(0,o.useCallback)((()=>r(c.RIGHT)),[r]),h=(0,o.useCallback)((()=>r(c.LEFT)),[r]);(0,u.default)(Object.assign({keys:e.ARROW_DOWN_KEYS,callback:p},l)),(0,u.default)(Object.assign({keys:e.ARROW_UP_KEYS,callback:d},l)),(0,u.default)(Object.assign({keys:e.ARROW_RIGHT_KEYS,callback:v},l)),(0,u.default)(Object.assign({keys:e.ARROW_LEFT_KEYS,callback:h},l)),(0,u.default)(Object.assign({keys:e.SELECTION_KEYS,callback:n},l)),(0,u.default)(Object.assign({keys:e.ESCAPE_KEYS,callback:a},l)),(0,o.useEffect)((()=>{var e;f&&!s&&(null===(e=null==t?void 0:t.current)||void 0===e||e.focus())}),[f,t,s])}},75893:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(39155),i=r(n(39819));e.default=function({ref:t}){const[e,n]=(0,o.useState)(!1),r=(0,o.useCallback)((e=>{const r=t&&t.current,o=e.target===r;n(o)}),[n,t]),u=(0,o.useCallback)((()=>n(!1)),[n]);return(0,i.default)({eventName:"mouseenter",callback:r,ref:t}),(0,i.default)({eventName:"mouseleave",callback:u,ref:t}),e}},18680:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(39155),i=r(n(39819)),u=n(69228);var c;!function(t){t.ALT="altKey",t.META="metaKey",t.CTRL="ctrlKey",t.SHIFT="shiftKey",t.CTRL_OR_META="ctrlOrMetaKey"}(c||(c={}));function a({keys:t=[],callback:e,modifier:n,withoutAnyModifier:r,ref:s,ignoreDocumentFallback:f=!1,capture:l=!1,preventDefault:p=!1,stopPropagation:d=!1,keyEventName:v="keydown"}){const h=(0,o.useRef)((0,u.isClient)()?document.body:null),_=(0,o.useCallback)((o=>{const{key:i}=o;t.includes(i)&&(n&&!((t,e)=>e===c.CTRL_OR_META?t.ctrlKey||t.metaKey:t[e])(o,n)||r&&!(t=>!Object.values(a.modifiers).some((e=>{if("ctrlOrMetaKey"!==e)return!!t[e]})))(o)||(p&&o.preventDefault(),d&&o.stopPropagation(),e(o)))}),[t,n,r,p,d,e]);let y;y=s||(f?null:h),(0,i.default)({eventName:v,callback:_,ref:y,capture:l})}e.default=a,a.modifiers=c},9327:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(39155),i=r(n(58267));e.default=function(...t){const e=(0,o.useRef)(null);return(0,i.default)((()=>{t.forEach((t=>{t&&("function"==typeof t?t(e.current):t.current=e.current)}))}),[t]),e}},49128:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(39155),i=r(n(58267));e.default=function(t){const e=(0,o.useRef)(void 0);return(0,i.default)((()=>{e.current=t})),e.current}},99348:(t,e,n)=>{"use strict";n(85498)},77085:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NavigationCommand=e.ComponentDefaultTestId=void 0,function(t){t.TRANSITION_VIEW="transition-view",t.TEXT_AREA="text-area",t.EDITABLE_TEXT="editable-text",t.TIPSEEN_MEDIA="tipseen-media",t.INDICATOR="indicator",t.BADGE="badge",t.TITLE="title",t.TEXT="text",t.COMBOBOX="combobox",t.COMBOBOX_CATEGORY="combobox-category",t.COMBOBOX_OPTION="combobox-option",t.COLOR_PICKER="color-picker",t.CHECKBOX="checkbox",t.CHECKBOX_LABEL="checkbox-label",t.CHECKBOX_CHECKBOX="checkbox-checkbox",t.DROPDOWN="dropdown",t.DROPDOWN_OPTION_CONTENT="dropdown-option-content",t.BUTTON="button",t.BUTTON_GROUP="button-group",t.CLICKABLE="clickable",t.VIRTUALIZED_LIST="virtualized-list",t.VIRTUALIZED_GRID="virtualized-grid",t.TEXT_FIELD="text-field",t.TEXT_FIELD_SECONDARY_BUTTON="text-field-secondary-button",t.SEARCH="search",t.CLEAN_SEARCH_BUTTON="clean-search-button",t.COLOR_PICKER_ITEM="color-picker-item",t.ICON_BUTTON="icon-button",t.SVG_ICON="svg-icon",t.CHIP="chip",t.RADIO_BUTTON="radio-button",t.RADIO_BUTTON_LABEL="radio-button-label",t.RADIO_BUTTON_CONTROL="radio-button-control",t.TAB="tab",t.TAB_PANEL="tab-panel",t.TAB_PANELS="tab-panels",t.TAB_LIST="tab-list",t.TABS_CONTEXT="tabs-context",t.ALERT_BANNER="alert-banner",t.ALERT_BANNER_BUTTON="alert-banner-button",t.ALERT_BANNER_LINK="alert-banner-link",t.ALERT_BANNER_TEXT="alert-banner-text",t.ATTENTION_BOX="attention-box",t.AVATAR="avatar",t.AVATAR_BADGE="avatar-badge",t.AVATAR_CONTENT="avatar-content",t.BREADCRUMB_ITEM="breadcrumb-item",t.BREADCRUMBS_BAR="breadcrumbs-bar",t.LINEAR_PROGRESS_BAR="linear-progress-bar",t.BAR="bar",t.BAR_PRIMARY="bar-primary",t.BAR_SECONDARY="bar-secondary",t.COLOR_PICKER_ITEM_COMPONENT="color-picker-item-component",t.COUNTER="counter",t.MENU="menu",t.OPTION="option",t.EXPAND_COLLAPSE="expand-collapse",t.EDITABLE_INPUT="editable-input",t.EDITABLE_HEADING="editable-heading",t.HEADING="heading",t.LABEL="label",t.LINK="link",t.MENU_DIVIDER="menu-divider",t.MENU_ITEM="menu-item",t.MENU_ITEM_BUTTON="menu-item-button",t.MENU_TITLE="menu-title",t.MENU_TITLE_CAPTION="menu-title-caption",t.MENU_GRID_ITEM="menu-grid-item",t.MENU_BUTTON="menu-button",t.STEP_INDICATOR="step-indicator",t.STEPS="steps",t.STEPS_FORWARD_COMMAND="steps-forward-command",t.STEPS_BACKWARD_COMMAND="steps-backward-command",t.MULTI_STEP_INDICATOR="multi-step-indicator",t.SKELETON="skeleton",t.SPLIT_BUTTON="split-button",t.SPLIT_BUTTON_PRIMARY_BUTTON="split-button-primary-button",t.SPLIT_BUTTON_SECONDARY_BUTTON="split-button-secondary-button",t.TEXT_WITH_HIGHLIGHT="text-with-highlight",t.TOAST="toast",t.TOAST_CONTENT="toast-content",t.TOAST_LINK="toast-link",t.TOAST_BUTTON="toast-button",t.TOAST_CLOSE_BUTTON="toast-close-button",t.TOGGLE="toggle",t.TIPSEEN="tipseen",t.TIPSEEN_CONTENT="tipseen-content",t.TIPSEEN_CONTENT_SUBMIT="tipseen-content-submit",t.TIPSEEN_CONTENT_DISMISS="tipseen-content-dismiss",t.TIPSEEN_TITLE="tipseen-title",t.DIVIDER="divider",t.DATEPICKER="date-picker",t.DATEPICKER_HEADER="date-picker-header",t.DATEPICKER_YEAR_SELECTION="date-picker-year-selection",t.LOADER="loader",t.ICON="icon",t.RESPONSIVE_LIST="responsive-list",t.LIST="list",t.MODAL="monday-dialog-container",t.MODAL_OVERLAY="monday-modal-overlay",t.MODAL_CONTENT="modal-content",t.MODAL_HEADER="modal-header",t.MODAL_FOOTER_BUTTONS="modal-footer-buttons",t.FORMATTED_NUMBER="formatted-number",t.HIDDEN_TEXT="hidden-text",t.DIALOG_CONTENT_CONTAINER="dialog-content-container",t.FLEX="flex",t.TOOLTIP="tooltip",t.DIALOG="dialog",t.TABLE="table",t.TABLE_CONTAINER="table-container",t.TABLE_BODY="table-body",t.TABLE_VIRTUALIZED_BODY="table-virtualized-body",t.TABLE_CELL="table-cell",t.TABLE_HEADER="table-header",t.TABLE_HEADER_CELL="table-header-cell",t.TABLE_ROW="table-row",t.TABLE_ROW_MENU="table-row-menu"}(e.ComponentDefaultTestId||(e.ComponentDefaultTestId={})),function(t){t.RIGHT_ARROW="{arrowright}",t.LEFT_ARROW="{arrowleft}",t.UP_ARROW="{arrowup}",t.DOWN_ARROW="{arrowdown}",t.TAB="#TAB#",t.ENTER="{enter}",t.PAGE_UP="{pageup}",t.PAGE_DOWN="{pagedown}"}(e.NavigationCommand||(e.NavigationCommand={}))},81521:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTestId=e.ComponentDefaultTestId=void 0;const r=n(77085);e.ComponentDefaultTestId=r.ComponentDefaultTestId;e.getTestId=(t,e)=>{const n=(null!=e?e:"").toString();return`${t}${n&&`_${n}`}`}},85569:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},731:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},7093:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3487:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},13352:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},831:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},34800:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(831),e),o(n(81296),e),o(n(3487),e),o(n(62884),e),o(n(85569),e),o(n(7093),e),o(n(731),e),o(n(13352),e)},81296:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})},62884:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withStaticProps=void 0;e.withStaticProps=(t,e)=>Object.assign(t,e)},69228:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isServer=e.isClient=void 0;e.isClient=()=>"undefined"!=typeof window;e.isServer=()=>!(0,e.isClient)()},26640:(t,e,n)=>{"use strict";n.r(e),n.d(e,{SELECTION_KEYS:()=>o,UP_DOWN_ARROWS:()=>i,keyCodes:()=>r});var r={ENTER:"Enter",SPACE:" ",ESCAPE:"Escape",DOWN_ARROW:"ArrowDown",UP_ARROW:"ArrowUp",LEFT_ARROW:"ArrowLeft",RIGHT_ARROW:"ArrowRight",TAB:"Tab"},o=[r.ENTER,r.SPACE],i=[r.UP_ARROW,r.DOWN_ARROW]},39155:e=>{"use strict";e.exports=t},53373:(t,e)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=u(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)r.call(t,n)&&t[n]&&(e=u(e,n));return e}function u(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},1018:(t,e,n)=>{"use strict";n.r(e),n.d(e,{add:()=>j,after:()=>W,ary:()=>me,assign:()=>ln,assignIn:()=>yn,assignInWith:()=>gn,assignWith:()=>On,at:()=>gr,attempt:()=>Mr,before:()=>Rr,bind:()=>Nr,bindAll:()=>Pr,bindKey:()=>Br,camelCase:()=>Fo,capitalize:()=>ro,castArray:()=>Ko,ceil:()=>Go,chain:()=>$o,chunk:()=>Zo,clamp:()=>Qo,clone:()=>lu,cloneDeep:()=>pu,cloneDeepWith:()=>du,cloneWith:()=>vu,commit:()=>hu,compact:()=>_u,concat:()=>yu,cond:()=>Zu,conforms:()=>tc,conformsTo:()=>ec,constant:()=>Kt,countBy:()=>pc,create:()=>dc,curry:()=>hc,curryRight:()=>yc,debounce:()=>Oc,deburr:()=>so,default:()=>f_,defaultTo:()=>Ec,defaults:()=>Tc,defaultsDeep:()=>kc,defer:()=>Wc,delay:()=>zc,difference:()=>Yc,differenceBy:()=>$c,differenceWith:()=>Xc,divide:()=>Zc,drop:()=>Jc,dropRight:()=>Qc,dropRightWhile:()=>ea,dropWhile:()=>na,each:()=>oa,eachRight:()=>sa,endsWith:()=>fa,entries:()=>va,entriesIn:()=>ha,eq:()=>Ee,escape:()=>ga,escapeRegExp:()=>Ea,every:()=>ja,extend:()=>yn,extendWith:()=>gn,fill:()=>xa,filter:()=>Ra,find:()=>Ca,findIndex:()=>Pa,findKey:()=>ka,findLast:()=>Ua,findLastIndex:()=>Wa,findLastKey:()=>za,first:()=>Fa,flatMap:()=>Ya,flatMapDeep:()=>Ga,flatMapDepth:()=>$a,flatten:()=>yr,flattenDeep:()=>Xa,flattenDepth:()=>Za,flip:()=>Ja,floor:()=>Qa,flow:()=>es,flowRight:()=>ns,forEach:()=>oa,forEachRight:()=>sa,forIn:()=>rs,forInRight:()=>os,forOwn:()=>is,forOwnRight:()=>us,fromPairs:()=>cs,functions:()=>ss,functionsIn:()=>fs,get:()=>lr,groupBy:()=>ds,gt:()=>_s,gte:()=>ys,has:()=>ms,hasIn:()=>Yu,head:()=>Fa,identity:()=>U,inRange:()=>Is,includes:()=>Ms,indexOf:()=>ws,initial:()=>Ns,intersection:()=>ks,intersectionBy:()=>Ls,intersectionWith:()=>Ws,invert:()=>qs,invertBy:()=>Vs,invoke:()=>Js,invokeMap:()=>tf,isArguments:()=>Ue,isArray:()=>m,isArrayBuffer:()=>rf,isArrayLike:()=>Re,isArrayLikeObject:()=>xc,isBoolean:()=>of,isBuffer:()=>Ye,isDate:()=>af,isElement:()=>sf,isEmpty:()=>lf,isEqual:()=>pf,isEqualWith:()=>df,isError:()=>Sr,isFinite:()=>hf,isFunction:()=>z,isInteger:()=>_f,isLength:()=>Me,isMap:()=>nu,isMatch:()=>yf,isMatchWith:()=>bf,isNaN:()=>mf,isNative:()=>Ef,isNil:()=>Af,isNull:()=>If,isNumber:()=>gf,isObject:()=>R,isObjectLike:()=>_,isPlainObject:()=>Tr,isRegExp:()=>Sf,isSafeInteger:()=>Mf,isSet:()=>iu,isString:()=>js,isSymbol:()=>y,isTypedArray:()=>tn,isUndefined:()=>Rf,isWeakMap:()=>wf,isWeakSet:()=>Nf,iteratee:()=>Pf,join:()=>Bf,kebabCase:()=>Df,keyBy:()=>Wf,keys:()=>an,keysIn:()=>hn,last:()=>Hc,lastIndexOf:()=>Kf,lodash:()=>Pt,lowerCase:()=>Yf,lowerFirst:()=>Hf,lt:()=>$f,lte:()=>Vf,map:()=>qa,mapKeys:()=>Xf,mapValues:()=>Zf,matches:()=>Jf,matchesProperty:()=>Qf,max:()=>el,maxBy:()=>nl,mean:()=>il,meanBy:()=>ul,memoize:()=>er,merge:()=>al,mergeWith:()=>Bc,method:()=>sl,methodOf:()=>fl,min:()=>ll,minBy:()=>pl,mixin:()=>dl,multiply:()=>vl,negate:()=>hl,next:()=>gl,noop:()=>Ot,now:()=>bc,nth:()=>Ol,nthArg:()=>El,omit:()=>Tl,omitBy:()=>Rl,once:()=>wl,orderBy:()=>kl,over:()=>Ll,overArgs:()=>Fl,overEvery:()=>Kl,overSome:()=>ql,pad:()=>pp,padEnd:()=>dp,padStart:()=>vp,parseInt:()=>yp,partial:()=>gp,partialRight:()=>Op,partition:()=>Ap,pick:()=>jp,pickBy:()=>Ml,plant:()=>Tp,property:()=>Vu,propertyOf:()=>Sp,pull:()=>Np,pullAll:()=>wp,pullAllBy:()=>Pp,pullAllWith:()=>Cp,pullAt:()=>Lp,random:()=>Yp,range:()=>Xp,rangeRight:()=>Zp,rearg:()=>Qp,reduce:()=>ed,reduceRight:()=>rd,reject:()=>od,remove:()=>id,repeat:()=>ud,replace:()=>cd,rest:()=>ad,result:()=>sd,reverse:()=>ld,round:()=>pd,sample:()=>hd,sampleSize:()=>gd,set:()=>md,setWith:()=>Od,shuffle:()=>Id,size:()=>jd,slice:()=>Td,snakeCase:()=>xd,some:()=>Rd,sortBy:()=>wd,sortedIndex:()=>kd,sortedIndexBy:()=>Dd,sortedIndexOf:()=>Ld,sortedLastIndex:()=>Wd,sortedLastIndexBy:()=>Ud,sortedLastIndexOf:()=>zd,sortedUniq:()=>Kd,sortedUniqBy:()=>qd,split:()=>Yd,spread:()=>Gd,startCase:()=>Vd,startsWith:()=>Xd,stubArray:()=>hi,stubFalse:()=>ze,stubObject:()=>Zd,stubString:()=>Jd,stubTrue:()=>Qd,subtract:()=>tv,sum:()=>ev,sumBy:()=>nv,tail:()=>rv,take:()=>ov,takeRight:()=>iv,takeRightWhile:()=>uv,takeWhile:()=>cv,tap:()=>av,template:()=>Iv,templateSettings:()=>hv,throttle:()=>jv,thru:()=>Tv,times:()=>Mv,toArray:()=>bl,toFinite:()=>D,toInteger:()=>L,toIterator:()=>Rv,toJSON:()=>Nv,toLength:()=>Ta,toLower:()=>Pv,toNumber:()=>B,toPairs:()=>va,toPairsIn:()=>ha,toPath:()=>Cv,toPlainObject:()=>Rc,toSafeInteger:()=>kv,toString:()=>cr,toUpper:()=>Dv,transform:()=>Lv,trim:()=>zv,trimEnd:()=>Fv,trimStart:()=>qv,truncate:()=>Hv,unary:()=>Gv,unescape:()=>Zv,union:()=>eh,unionBy:()=>rh,unionWith:()=>oh,uniq:()=>ih,uniqBy:()=>uh,uniqWith:()=>ch,uniqueId:()=>sh,unset:()=>fh,unzip:()=>ph,unzipWith:()=>dh,update:()=>hh,updateWith:()=>_h,upperCase:()=>bh,upperFirst:()=>no,value:()=>Nv,valueOf:()=>Nv,values:()=>Ss,valuesIn:()=>gh,without:()=>Oh,words:()=>Lo,wrap:()=>Eh,wrapperAt:()=>Ah,wrapperChain:()=>Ih,wrapperCommit:()=>hu,wrapperLodash:()=>Pt,wrapperNext:()=>gl,wrapperPlant:()=>Tp,wrapperReverse:()=>jh,wrapperToIterator:()=>Rv,wrapperValue:()=>Nv,xor:()=>Sh,xorBy:()=>Mh,xorWith:()=>Rh,zip:()=>wh,zipObject:()=>Ph,zipObjectDeep:()=>Ch,zipWith:()=>kh});const r="object"==typeof global&&global&&global.Object===Object&&global;var o="object"==typeof self&&self&&self.Object===Object&&self;const i=r||o||Function("return this")();const u=i.Symbol;var c=Object.prototype,a=c.hasOwnProperty,s=c.toString,f=u?u.toStringTag:void 0;const l=function(t){var e=a.call(t,f),n=t[f];try{t[f]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(e?t[f]=n:delete t[f]),o};var p=Object.prototype.toString;const d=function(t){return p.call(t)};var v=u?u.toStringTag:void 0;const h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":v&&v in Object(t)?l(t):d(t)};const _=function(t){return null!=t&&"object"==typeof t};const y=function(t){return"symbol"==typeof t||_(t)&&"[object Symbol]"==h(t)};const b=function(t){return"number"==typeof t?t:y(t)?NaN:+t};const g=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o};const m=Array.isArray;var O=u?u.prototype:void 0,E=O?O.toString:void 0;const A=function t(e){if("string"==typeof e)return e;if(m(e))return g(e,t)+"";if(y(e))return E?E.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const I=function(t,e){return function(n,r){var o;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=A(n),r=A(r)):(n=b(n),r=b(r)),o=t(n,r)}return o}};const j=I((function(t,e){return t+e}),0);var T=/\s/;const S=function(t){for(var e=t.length;e--&&T.test(t.charAt(e)););return e};var x=/^\s+/;const M=function(t){return t?t.slice(0,S(t)+1).replace(x,""):t};const R=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var w=/^[-+]0x[0-9a-f]+$/i,N=/^0b[01]+$/i,P=/^0o[0-7]+$/i,C=parseInt;const B=function(t){if("number"==typeof t)return t;if(y(t))return NaN;if(R(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=R(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=M(t);var n=N.test(t);return n||P.test(t)?C(t.slice(2),n?2:8):w.test(t)?NaN:+t};var k=1/0;const D=function(t){return t?(t=B(t))===k||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};const L=function(t){var e=D(t),n=e%1;return e==e?n?e-n:e:0};const W=function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=L(t),function(){if(--t<1)return e.apply(this,arguments)}};const U=function(t){return t};const z=function(t){if(!R(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const F=i["__core-js_shared__"];var K,q=(K=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"";const Y=function(t){return!!q&&q in t};var H=Function.prototype.toString;const G=function(t){if(null!=t){try{return H.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var $=/^\[object .+?Constructor\]$/,V=Function.prototype,X=Object.prototype,Z=V.toString,J=X.hasOwnProperty,Q=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const tt=function(t){return!(!R(t)||Y(t))&&(z(t)?Q:$).test(G(t))};const et=function(t,e){return null==t?void 0:t[e]};const nt=function(t,e){var n=et(t,e);return tt(n)?n:void 0};const rt=nt(i,"WeakMap");const ot=rt&&new rt;var it=ot?function(t,e){return ot.set(t,e),t}:U;const ut=it;var ct=Object.create,at=function(){function t(){}return function(e){if(!R(e))return{};if(ct)return ct(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const st=at;const ft=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=st(t.prototype),r=t.apply(n,e);return R(r)?r:n}};const lt=function(t,e,n){var r=1&e,o=ft(t);return function e(){return(this&&this!==i&&this instanceof e?o:t).apply(r?n:this,arguments)}};const pt=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var dt=Math.max;const vt=function(t,e,n,r){for(var o=-1,i=t.length,u=n.length,c=-1,a=e.length,s=dt(i-u,0),f=Array(a+s),l=!r;++c<a;)f[c]=e[c];for(;++o<u;)(l||o<i)&&(f[n[o]]=t[o]);for(;s--;)f[c++]=t[o++];return f};var ht=Math.max;const _t=function(t,e,n,r){for(var o=-1,i=t.length,u=-1,c=n.length,a=-1,s=e.length,f=ht(i-c,0),l=Array(f+s),p=!r;++o<f;)l[o]=t[o];for(var d=o;++a<s;)l[d+a]=e[a];for(;++u<c;)(p||o<i)&&(l[d+n[u]]=t[o++]);return l};const yt=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r};const bt=function(){};function gt(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}gt.prototype=st(bt.prototype),gt.prototype.constructor=gt;const mt=gt;const Ot=function(){};var Et=ot?function(t){return ot.get(t)}:Ot;const At=Et;const It={};var jt=Object.prototype.hasOwnProperty;const Tt=function(t){for(var e=t.name+"",n=It[e],r=jt.call(It,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e};function St(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}St.prototype=st(bt.prototype),St.prototype.constructor=St;const xt=St;const Mt=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};const Rt=function(t){if(t instanceof mt)return t.clone();var e=new xt(t.__wrapped__,t.__chain__);return e.__actions__=Mt(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e};var wt=Object.prototype.hasOwnProperty;function Nt(t){if(_(t)&&!m(t)&&!(t instanceof mt)){if(t instanceof xt)return t;if(wt.call(t,"__wrapped__"))return Rt(t)}return new xt(t)}Nt.prototype=bt.prototype,Nt.prototype.constructor=Nt;const Pt=Nt;const Ct=function(t){var e=Tt(t),n=Pt[e];if("function"!=typeof n||!(e in mt.prototype))return!1;if(t===n)return!0;var r=At(n);return!!r&&t===r[0]};var Bt=Date.now;const kt=function(t){var e=0,n=0;return function(){var r=Bt(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const Dt=kt(ut);var Lt=/\{\n\/\* \[wrapped with (.+)\] \*/,Wt=/,? & /;const Ut=function(t){var e=t.match(Lt);return e?e[1].split(Wt):[]};var zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Ft=function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(zt,"{\n/* [wrapped with "+e+"] */\n")};const Kt=function(t){return function(){return t}};var qt=function(){try{var t=nt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Yt=qt;var Ht=Yt?function(t,e){return Yt(t,"toString",{configurable:!0,enumerable:!1,value:Kt(e),writable:!0})}:U;const Gt=kt(Ht);const $t=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t};const Vt=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1};const Xt=function(t){return t!=t};const Zt=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1};const Jt=function(t,e,n){return e==e?Zt(t,e,n):Vt(t,Xt,n)};const Qt=function(t,e){return!!(null==t?0:t.length)&&Jt(t,e,0)>-1};var te=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const ee=function(t,e){return $t(te,(function(n){var r="_."+n[0];e&n[1]&&!Qt(t,r)&&t.push(r)})),t.sort()};const ne=function(t,e,n){var r=e+"";return Gt(t,Ft(r,ee(Ut(r),n)))};const re=function(t,e,n,r,o,i,u,c,a,s){var f=8&e;e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4);var l=[t,e,o,f?i:void 0,f?u:void 0,f?void 0:i,f?void 0:u,c,a,s],p=n.apply(void 0,l);return Ct(t)&&Dt(p,l),p.placeholder=r,ne(p,t,e)};const oe=function(t){return t.placeholder};var ie=/^(?:0|[1-9]\d*)$/;const ue=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ie.test(t))&&t>-1&&t%1==0&&t<e};var ce=Math.min;const ae=function(t,e){for(var n=t.length,r=ce(e.length,n),o=Mt(t);r--;){var i=e[r];t[r]=ue(i,n)?o[i]:void 0}return t};var se="__lodash_placeholder__";const fe=function(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var u=t[n];u!==e&&u!==se||(t[n]=se,i[o++]=n)}return i};const le=function t(e,n,r,o,u,c,a,s,f,l){var p=128&n,d=1&n,v=2&n,h=24&n,_=512&n,y=v?void 0:ft(e);return function b(){for(var g=arguments.length,m=Array(g),O=g;O--;)m[O]=arguments[O];if(h)var E=oe(b),A=yt(m,E);if(o&&(m=vt(m,o,u,h)),c&&(m=_t(m,c,a,h)),g-=A,h&&g<l){var I=fe(m,E);return re(e,n,t,b.placeholder,r,m,I,s,f,l-g)}var j=d?r:this,T=v?j[e]:e;return g=m.length,s?m=ae(m,s):_&&g>1&&m.reverse(),p&&f<g&&(m.length=f),this&&this!==i&&this instanceof b&&(T=y||ft(T)),T.apply(j,m)}};const pe=function(t,e,n){var r=ft(t);return function o(){for(var u=arguments.length,c=Array(u),a=u,s=oe(o);a--;)c[a]=arguments[a];var f=u<3&&c[0]!==s&&c[u-1]!==s?[]:fe(c,s);return(u-=f.length)<n?re(t,e,le,o.placeholder,void 0,c,f,void 0,void 0,n-u):pt(this&&this!==i&&this instanceof o?r:t,this,c)}};const de=function(t,e,n,r){var o=1&e,u=ft(t);return function e(){for(var c=-1,a=arguments.length,s=-1,f=r.length,l=Array(f+a),p=this&&this!==i&&this instanceof e?u:t;++s<f;)l[s]=r[s];for(;a--;)l[s++]=arguments[++c];return pt(p,o?n:this,l)}};var ve="__lodash_placeholder__",he=128,_e=Math.min;const ye=function(t,e){var n=t[1],r=e[1],o=n|r,i=o<131,u=r==he&&8==n||r==he&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!i&&!u)return t;1&r&&(t[2]=e[2],o|=1&n?0:4);var c=e[3];if(c){var a=t[3];t[3]=a?vt(a,c,e[4]):c,t[4]=a?fe(t[3],ve):e[4]}return(c=e[5])&&(a=t[5],t[5]=a?_t(a,c,e[6]):c,t[6]=a?fe(t[5],ve):e[6]),(c=e[7])&&(t[7]=c),r&he&&(t[8]=null==t[8]?e[8]:_e(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t};var be=Math.max;const ge=function(t,e,n,r,o,i,u,c){var a=2&e;if(!a&&"function"!=typeof t)throw new TypeError("Expected a function");var s=r?r.length:0;if(s||(e&=-97,r=o=void 0),u=void 0===u?u:be(L(u),0),c=void 0===c?c:L(c),s-=o?o.length:0,64&e){var f=r,l=o;r=o=void 0}var p=a?void 0:At(t),d=[t,e,n,r,o,f,l,i,u,c];if(p&&ye(d,p),t=d[0],e=d[1],n=d[2],r=d[3],o=d[4],!(c=d[9]=void 0===d[9]?a?0:t.length:be(d[9]-s,0))&&24&e&&(e&=-25),e&&1!=e)v=8==e||16==e?pe(t,e,c):32!=e&&33!=e||o.length?le.apply(void 0,d):de(t,e,n,r);else var v=lt(t,e,n);return ne((p?ut:Dt)(v,d),t,e)};const me=function(t,e,n){return e=n?void 0:e,e=t&&null==e?t.length:e,ge(t,128,void 0,void 0,void 0,void 0,e)};const Oe=function(t,e,n){"__proto__"==e&&Yt?Yt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};const Ee=function(t,e){return t===e||t!=t&&e!=e};var Ae=Object.prototype.hasOwnProperty;const Ie=function(t,e,n){var r=t[e];Ae.call(t,e)&&Ee(r,n)&&(void 0!==n||e in t)||Oe(t,e,n)};const je=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,u=e.length;++i<u;){var c=e[i],a=r?r(n[c],t[c],c,n,t):void 0;void 0===a&&(a=t[c]),o?Oe(n,c,a):Ie(n,c,a)}return n};var Te=Math.max;const Se=function(t,e,n){return e=Te(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Te(r.length-e,0),u=Array(i);++o<i;)u[o]=r[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=r[o];return c[e]=n(u),pt(t,this,c)}};const xe=function(t,e){return Gt(Se(t,e,U),t+"")};const Me=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};const Re=function(t){return null!=t&&Me(t.length)&&!z(t)};const we=function(t,e,n){if(!R(n))return!1;var r=typeof e;return!!("number"==r?Re(n)&&ue(e,n.length):"string"==r&&e in n)&&Ee(n[e],t)};const Ne=function(t){return xe((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&we(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,i)}return e}))};var Pe=Object.prototype;const Ce=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Pe)};const Be=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};const ke=function(t){return _(t)&&"[object Arguments]"==h(t)};var De=Object.prototype,Le=De.hasOwnProperty,We=De.propertyIsEnumerable;const Ue=ke(function(){return arguments}())?ke:function(t){return _(t)&&Le.call(t,"callee")&&!We.call(t,"callee")};const ze=function(){return!1};var Fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ke=Fe&&"object"==typeof module&&module&&!module.nodeType&&module,qe=Ke&&Ke.exports===Fe?i.Buffer:void 0;const Ye=(qe?qe.isBuffer:void 0)||ze;var He={};He["[object Float32Array]"]=He["[object Float64Array]"]=He["[object Int8Array]"]=He["[object Int16Array]"]=He["[object Int32Array]"]=He["[object Uint8Array]"]=He["[object Uint8ClampedArray]"]=He["[object Uint16Array]"]=He["[object Uint32Array]"]=!0,He["[object Arguments]"]=He["[object Array]"]=He["[object ArrayBuffer]"]=He["[object Boolean]"]=He["[object DataView]"]=He["[object Date]"]=He["[object Error]"]=He["[object Function]"]=He["[object Map]"]=He["[object Number]"]=He["[object Object]"]=He["[object RegExp]"]=He["[object Set]"]=He["[object String]"]=He["[object WeakMap]"]=!1;const Ge=function(t){return _(t)&&Me(t.length)&&!!He[h(t)]};const $e=function(t){return function(e){return t(e)}};var Ve="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=Ve&&"object"==typeof module&&module&&!module.nodeType&&module,Ze=Xe&&Xe.exports===Ve&&r.process;const Je=function(){try{var t=Xe&&Xe.require&&Xe.require("util").types;return t||Ze&&Ze.binding&&Ze.binding("util")}catch(t){}}();var Qe=Je&&Je.isTypedArray;const tn=Qe?$e(Qe):Ge;var en=Object.prototype.hasOwnProperty;const nn=function(t,e){var n=m(t),r=!n&&Ue(t),o=!n&&!r&&Ye(t),i=!n&&!r&&!o&&tn(t),u=n||r||o||i,c=u?Be(t.length,String):[],a=c.length;for(var s in t)!e&&!en.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ue(s,a))||c.push(s);return c};const rn=function(t,e){return function(n){return t(e(n))}};const on=rn(Object.keys,Object);var un=Object.prototype.hasOwnProperty;const cn=function(t){if(!Ce(t))return on(t);var e=[];for(var n in Object(t))un.call(t,n)&&"constructor"!=n&&e.push(n);return e};const an=function(t){return Re(t)?nn(t):cn(t)};var sn=Object.prototype.hasOwnProperty,fn=Ne((function(t,e){if(Ce(e)||Re(e))je(e,an(e),t);else for(var n in e)sn.call(e,n)&&Ie(t,n,e[n])}));const ln=fn;const pn=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var dn=Object.prototype.hasOwnProperty;const vn=function(t){if(!R(t))return pn(t);var e=Ce(t),n=[];for(var r in t)("constructor"!=r||!e&&dn.call(t,r))&&n.push(r);return n};const hn=function(t){return Re(t)?nn(t,!0):vn(t)};var _n=Ne((function(t,e){je(e,hn(e),t)}));const yn=_n;var bn=Ne((function(t,e,n,r){je(e,hn(e),t,r)}));const gn=bn;var mn=Ne((function(t,e,n,r){je(e,an(e),t,r)}));const On=mn;var En=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,An=/^\w*$/;const In=function(t,e){if(m(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!y(t))||(An.test(t)||!En.test(t)||null!=e&&t in Object(e))};const jn=nt(Object,"create");const Tn=function(){this.__data__=jn?jn(null):{},this.size=0};const Sn=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var xn=Object.prototype.hasOwnProperty;const Mn=function(t){var e=this.__data__;if(jn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xn.call(e,t)?e[t]:void 0};var Rn=Object.prototype.hasOwnProperty;const wn=function(t){var e=this.__data__;return jn?void 0!==e[t]:Rn.call(e,t)};const Nn=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=jn&&void 0===e?"__lodash_hash_undefined__":e,this};function Pn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pn.prototype.clear=Tn,Pn.prototype.delete=Sn,Pn.prototype.get=Mn,Pn.prototype.has=wn,Pn.prototype.set=Nn;const Cn=Pn;const Bn=function(){this.__data__=[],this.size=0};const kn=function(t,e){for(var n=t.length;n--;)if(Ee(t[n][0],e))return n;return-1};var Dn=Array.prototype.splice;const Ln=function(t){var e=this.__data__,n=kn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Dn.call(e,n,1),--this.size,!0)};const Wn=function(t){var e=this.__data__,n=kn(e,t);return n<0?void 0:e[n][1]};const Un=function(t){return kn(this.__data__,t)>-1};const zn=function(t,e){var n=this.__data__,r=kn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Fn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Fn.prototype.clear=Bn,Fn.prototype.delete=Ln,Fn.prototype.get=Wn,Fn.prototype.has=Un,Fn.prototype.set=zn;const Kn=Fn;const qn=nt(i,"Map");const Yn=function(){this.size=0,this.__data__={hash:new Cn,map:new(qn||Kn),string:new Cn}};const Hn=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Gn=function(t,e){var n=t.__data__;return Hn(e)?n["string"==typeof e?"string":"hash"]:n.map};const $n=function(t){var e=Gn(this,t).delete(t);return this.size-=e?1:0,e};const Vn=function(t){return Gn(this,t).get(t)};const Xn=function(t){return Gn(this,t).has(t)};const Zn=function(t,e){var n=Gn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Jn.prototype.clear=Yn,Jn.prototype.delete=$n,Jn.prototype.get=Vn,Jn.prototype.has=Xn,Jn.prototype.set=Zn;const Qn=Jn;function tr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(tr.Cache||Qn),n}tr.Cache=Qn;const er=tr;const nr=function(t){var e=er(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e};var rr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,or=/\\(\\)?/g,ir=nr((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(rr,(function(t,n,r,o){e.push(r?o.replace(or,"$1"):n||t)})),e}));const ur=ir;const cr=function(t){return null==t?"":A(t)};const ar=function(t,e){return m(t)?t:In(t,e)?[t]:ur(cr(t))};const sr=function(t){if("string"==typeof t||y(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};const fr=function(t,e){for(var n=0,r=(e=ar(e,t)).length;null!=t&&n<r;)t=t[sr(e[n++])];return n&&n==r?t:void 0};const lr=function(t,e,n){var r=null==t?void 0:fr(t,e);return void 0===r?n:r};const pr=function(t,e){for(var n=-1,r=e.length,o=Array(r),i=null==t;++n<r;)o[n]=i?void 0:lr(t,e[n]);return o};const dr=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t};var vr=u?u.isConcatSpreadable:void 0;const hr=function(t){return m(t)||Ue(t)||!!(vr&&t&&t[vr])};