!function(){var e={2660:function(e,t,n){"use strict";n.r(t),n.d(t,{AccountSwitcher:function(){return m},AccountSwitcherBadge:function(){return h},AccountSwitcherGroup:function(){return y},AccountSwitcherItem:function(){return v},AccountSwitcherItemRadio:function(){return g},AccountSwitcherSeparator:function(){return b},useAccountSwitcherState:function(){return s.w8}});var r=n(1413),o=n(4925),i=n(8912),a=n(2791),s=n(4086),l=["children","element"],c=["children","element"],u=["children","element"],d=["children","element"],f=["children","element","label"],p=["children","element"],h=a.forwardRef((function(e,t){var n=e.children,s=e.element,c=void 0===s?"ACCOUNT_SWITCHER_BADGE":s,u=(0,o.Z)(e,l);return a.createElement(i.MenuBadge,(0,r.Z)((0,r.Z)({element:c},u),{},{variant:"default",ref:t}),n)}));h.displayName="AccountSwitcherBadge";var m=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"ACCOUNT_SWITCHER":s,u=(0,o.Z)(e,c);return a.createElement(i.Menu,(0,r.Z)((0,r.Z)({element:l},u),{},{ref:t}),n)}));m.displayName="AccountSwitcher";var v=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"ACCOUNT_SWITCHER_ITEM":s,c=(0,o.Z)(e,u);return a.createElement(i.MenuItem,(0,r.Z)((0,r.Z)({element:l},c),{},{ref:t}),n)}));v.displayName="AccountSwitcherItem";var g=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"ACCOUNT_SWITCHER_ITEM_RADIO":s,c=(0,o.Z)(e,d);return a.createElement(i.MenuItemRadio,(0,r.Z)((0,r.Z)({element:l},c),{},{ref:t}),n)}));g.displayName="AccountSwitcherItemRadio";var y=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"ACCOUNT_SWITCHER_GROUP":s,c=e.label,u=(0,o.Z)(e,f);return a.createElement(i.MenuGroup,(0,r.Z)((0,r.Z)({label:c,element:l},u),{},{ref:t}),n)}));y.displayName="AccountSwitcherGroup";var b=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"ACCOUNT_SWITCHER_SEPARATOR":s,c=(0,o.Z)(e,p);return a.createElement(i.MenuSeparator,(0,r.Z)((0,r.Z)({element:l},c),{},{ref:t}),n)}));b.displayName="AccountSwitcherSeparator"},5994:function(e,t,n){"use strict";n.r(t),n.d(t,{AIChatEvent:function(){return H},AIChatLog:function(){return U},AIChatLogger:function(){return K},AIChatMessage:function(){return A},AIChatMessageActionCard:function(){return W},AIChatMessageActionGroup:function(){return M},AIChatMessageAuthor:function(){return z},AIChatMessageBody:function(){return j},AIChatMessageLoading:function(){return F},AIChatMessageSource:function(){return V},AIChatMessageSourceLink:function(){return Y},useAIChatLogger:function(){return G}});var r=n(885),o=n(1413),i=n(4925),a=n(1923),s=n(9628),l=n(2791),c=n(7666),u=n(1585),d=n(8015),f=l.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,c=e.color,u=e.title,f=e.decorative,p="ArtificialIntelligenceIcon-".concat((0,s.Dt)());if(!f&&null==u)throw new Error("[ArtificialIntelligenceIcon]: Missing a title for non-decorative icon.");return l.createElement(d.a,{as:n,display:r,element:i,size:a,color:c,ref:t},l.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":p},u?l.createElement("title",{id:p},u):null,l.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M13.699 2.447c-.01 2.674-1.297 3.917-3.962 3.955-.595.008-.588.899.007.898 2.735-.004 3.928 1.287 3.955 3.957.005.58.868.598.897.017.135-2.699 1.396-3.984 3.953-3.974.594.002.605-.885.012-.898-2.739-.062-3.974-1.345-3.964-3.951.002-.599-.896-.602-.898-.004zm.444 2.432l.06.131c.394.81 1.015 1.41 1.864 1.794l.105.045-.035.016c-.837.387-1.463 1.015-1.873 1.872l-.078.17-.017-.044c-.37-.89-.98-1.547-1.838-1.958l-.155-.07c.837-.37 1.46-.95 1.866-1.743l.101-.213z"}),l.createElement("path",{fill:"currentColor",d:"M4.5 10.132a5.87 5.87 0 015.871-5.868.5.5 0 100-1A6.87 6.87 0 003.5 10.132a6.87 6.87 0 004.417 6.417.5.5 0 00.357-.934A5.87 5.87 0 014.5 10.132zm8.368 5.358a.5.5 0 01.202.96 6.851 6.851 0 01-2.67.55h-.029a.5.5 0 110-1h.024a5.85 5.85 0 002.282-.47.499.499 0 01.191-.04zm3.657-3.628a.5.5 0 01.297.642 6.863 6.863 0 01-1.187 2.043.5.5 0 01-.766-.643 5.86 5.86 0 001.014-1.745.5.5 0 01.642-.297z"})))}));f.displayName="ArtificialIntelligenceIcon";var p=n(9741),h=l.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,c=e.color,u=e.title,f=e.decorative,p="StopIcon-".concat((0,s.Dt)());if(!f&&null==u)throw new Error("[StopIcon]: Missing a title for non-decorative icon.");return l.createElement(d.a,{as:n,display:r,element:i,size:a,color:c,ref:t},l.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 20 20","aria-labelledby":p},u?l.createElement("title",{id:p},u):null,l.createElement("path",{fill:"currentColor",d:"M14.5 4.5h-9a1 1 0 00-1 1v9a1 1 0 001 1h9a1 1 0 001-1v-9a1 1 0 00-1-1z"})))}));h.displayName="StopIcon";var m=n(9643),v=n(7887),g=n(7350),y=n(3512),b=n(4061),x=n(1076),w=["children","element","variant","id"],k=["children","element"],S=["children","size","element","animated","onAnimationEnd","onAnimationStart","timestamp"],_=["children","element","avatarName","avatarIcon","avatarSrc"],E=["children","element"],C=["onStopLoading","i18nStopGeneratingLabel","i18nAIScreenReaderText","element"],T=["children","element","withSeparator"],I=["element","children","size"],B=["aiChats"],O=["children","element"],P=["children","number","url","element"],R=l.createContext({}),A=l.forwardRef((function(e,t){var n=e.children,r=e.element,c=void 0===r?"AI_CHAT_MESSAGE":r,u=e.variant,d=e.id,f=(0,i.Z)(e,w),p=d||(0,s.Dt)();return l.createElement(R.Provider,{value:{variant:u,id:p}},l.createElement(a.Box,(0,o.Z)({role:"listitem",display:"flex",flexDirection:"column",rowGap:"space40",ref:t,element:c,alignItems:"user"===u?"flex-end":"inherit"},(0,a.safelySpreadBoxProps)(f)),n))}));A.displayName="AIChatMessage";var M=l.forwardRef((function(e,t){var n=e.children,r=e.element,s=void 0===r?"AI_CHAT_MESSAGE_ACTION_GROUP":r,c=(0,i.Z)(e,k);return l.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{ref:t,element:s,display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:"space40",fontWeight:"fontWeightMedium"}),n)}));M.displayName="AIChatMessageActionGroup";var N=l.createContext({}),D={default:{fontSize:"fontSize30",lineHeight:"lineHeight30"},fullScreen:{fontSize:"fontSize40",lineHeight:"lineHeight40"}},L=(0,c.iK)(a.Box)((0,c.iv)({"& p:first-of-type":{marginTop:"0"},"& p:last-of-type":{marginBottom:"0"}})),j=l.forwardRef((function(e,t){var n=e.children,s=e.size,c=void 0===s?"default":s,u=e.element,d=void 0===u?"AI_CHAT_MESSAGE_BODY":u,f=e.animated,p=void 0!==f&&f,h=e.onAnimationEnd,m=e.onAnimationStart,v=e.timestamp,g=(0,i.Z)(e,S),y=l.useContext(R),b=y.id,x=y.variant,w=l.useContext(N).size,k=l.useState(p&&void 0!==n),_=(0,r.Z)(k,1)[0],E="fullScreen"===c||"fullScreen"===w,C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=(0,l.useState)(),i=(0,r.Z)(o,2),a=i[0],s=i[1],c=(0,l.useState)(0),u=(0,r.Z)(c,2),d=u[0],f=u[1];(0,l.useEffect)((function(){var e=setInterval((function(){f((function(e){return e+1}))}),t);return function(){return clearInterval(e)}}),[t]);var p=function e(t){var n=0;return l.Children.forEach(t,(function(t){"string"==typeof t?n+=t.length:l.isValidElement(t)&&(n+=e(t.props.children))})),n},h=function e(t,n){var r=n;return l.Children.map(t,(function(t){if("string"==typeof t){if(r>0){var n=t.slice(0,r);return r-=t.length,n}return null}if(l.isValidElement(t)){var o=p(t.props.children);if(r>0){var i=l.cloneElement(t,{},e(t.props.children,r));return r-=o,i}return 0===r&&0===o?t:null}return t}))};return(0,l.useEffect)((function(){if(n){var t=p(e);d<=t&&s(h(e,d))}}),[e,d,n]),{animatedChildren:n?a:e,isAnimating:n&&d<p(e)}}(n,E?8:10,_),T=C.animatedChildren,I=C.isAnimating,B={paddingY:E?"space50":"space30",paddingX:"space40",borderRadius:"borderRadius40",maxWidth:E?"530px":"260px"},O={bot:{backgroundColor:"inherit",padding:"space0",borderRadius:"borderRadius0",maxWidth:"100%"},user:(0,o.Z)((0,o.Z)({},B),{},{backgroundColor:"colorBackgroundWeakElevation"}),agent:(0,o.Z)((0,o.Z)({},B),{},{backgroundColor:"colorBackgroundBody",boxShadow:"shadowElevation05"})};return l.useEffect((function(){m&&p&&I&&m(),p&&!I&&h&&h()}),[I,_]),l.createElement(L,(0,o.Z)((0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(g)),D[w||c]),{},{display:"inline-block",color:"colorText",wordWrap:"break-word",minWidth:0,element:d,ref:t,whiteSpace:"pre-wrap",id:b,marginBottom:E?"space30":"space0"},O[x]),T,v&&l.createElement(a.Box,{fontSize:"fontSize20",color:"colorTextWeak",marginTop:"space30",element:"".concat(d,"_TIMESTAMP"),textAlign:"bot"===x?"left":"right"},v))}));j.displayName="AIChatMessageBody";var z=l.forwardRef((function(e,t){var n=e.children,r=e.element,s=void 0===r?"AI_CHAT_MESSAGE_AUTHOR":r,c=e.avatarName,d=e.avatarIcon,p=e.avatarSrc,h=(0,i.Z)(e,_),m=l.useContext(R).variant,v="fullScreen"===l.useContext(N).size;return l.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(h)),{},{ref:t,"aria-label":h["aria-label"],element:s,display:"flex",alignItems:"center",columnGap:"space40",fontWeight:"fontWeightSemibold",fontSize:v?"fontSize30":"fontSize20",color:"colorTextWeak"}),"bot"===m?l.createElement(u.Avatar,{name:n,size:"sizeIcon30",color:"decorative20",icon:f,element:"".concat(s,"_BOT_AVATAR")}):l.createElement(u.Avatar,{size:"sizeIcon30",color:"decorative30",element:"".concat(s,"_USER_AVATAR"),name:c||n,icon:d,src:p}),n)}));z.displayName="AIChatMessageAuthor";var W=l.forwardRef((function(e,t){var n=e.children,r=e.element,s=void 0===r?"AI_CHAT_MESSAGE_ACTION_CARD":r,c=(0,i.Z)(e,E);return l.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{ref:t,element:s,display:"inline-flex",alignItems:"flex-start",columnGap:"space30",color:"colorTextIcon",lineHeight:"lineHeight30",fontSize:"fontSize30",fontWeight:"fontWeightMedium",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker",borderRadius:"borderRadius30",paddingX:"space30",paddingY:"space20"}),n)}));W.displayName="AIChatMessageActionCard";var Z=function(e,t){return Math.min(Math.max(e,Math.random()*t),t)},F=l.forwardRef((function(e,t){var n=e.onStopLoading,r=e.i18nStopGeneratingLabel,s=void 0===r?"Stop generating":r,c=e.i18nAIScreenReaderText,u=void 0===c?"AI response":c,d=e.element,f=void 0===d?"AI_CHAT_MESSAGE_LOADING":d,g=(0,i.Z)(e,C),y=l.useRef([Z(40,75),Z(65,100),Z(55,80)]).current,b=l.useContext(R).id;return l.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(g)),{},{ref:t,element:f,display:"flex",flexDirection:"column",rowGap:"space40"}),l.createElement(v.SkeletonLoader,{width:"".concat(y[0],"%"),height:"20px",element:"".concat(f,"_SKELETON")}),l.createElement(v.SkeletonLoader,{width:"".concat(y[1],"%"),height:"20px",element:"".concat(f,"_SKELETON")}),l.createElement(v.SkeletonLoader,{width:"".concat(y[2],"%"),height:"20px",element:"".concat(f,"_SKELETON")}),n?l.createElement(a.Box,{display:"flex",justifyContent:"center",element:"".concat(f,"_STOP_LOADING")},l.createElement(p.Button,{variant:"secondary",size:"rounded_small",onClick:n,"aria-controls":b,element:"".concat(f,"_STOP_BUTTON")},l.createElement(h,{decorative:!0}),s," ",l.createElement(m.ScreenReaderOnly,null,u))):null)}));F.displayName="AIChatMessageLoading";var H=l.forwardRef((function(e,t){var n=e.children,r=e.element,s=void 0===r?"AI_CHAT_MESSAGE":r,c=e.withSeparator,u=(0,i.Z)(e,T),d=l.useContext(N).size;return l.createElement(a.Box,(0,o.Z)({display:"flex",justifyContent:"center",columnGap:"space10",alignItems:"center",color:"colorTextWeak",fontSize:"fontSize20",fontWeight:"fontWeightMedium",ref:t,element:s,marginY:"fullScreen"===d?"space50":"space0"},(0,a.safelySpreadBoxProps)(u)),c&&l.createElement(a.Box,{flexGrow:1},l.createElement(g.Separator,{orientation:"horizontal"})),n,c&&l.createElement(a.Box,{flexGrow:1},l.createElement(g.Separator,{orientation:"horizontal"})))}));H.displayName="AIChatEvent";var U=l.forwardRef((function(e,t){var n=e.element,r=void 0===n?"AI_CHAT_LOG":n,s=e.children,c=e.size,u=(0,i.Z)(e,I);return l.createElement(N.Provider,{value:{size:c}},l.createElement(a.Box,(0,o.Z)({role:"log",paddingY:"space70",element:r,ref:t},(0,a.safelySpreadBoxProps)(u)),l.createElement(a.Box,{as:"div",role:"list",margin:"space0",padding:"space0",display:"flex",flexDirection:"column",rowGap:"space70",element:"".concat(r,"_LIST")},s)))}));U.displayName="AIChatLog";var $=function(e){return(0,o.Z)((0,o.Z)({},e),{},{id:e.id||(0,s.hQ)(e.content)})},G=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=l.useMemo((function(){return t.map($)}),[t]),i=l.useState(o),a=(0,r.Z)(i,2),s=a[0],c=a[1],u=l.useCallback((function(e){c((function(t){return t.concat($(e))}))}),[]),d=l.useCallback((function(e){c((function(t){return e?t.filter((function(t){return t.id!==e})):t.slice(0,-1)}))}),[]),f=l.useCallback((function(){return c([])}),[]);return{push:u,pop:d,aiChats:s,clear:f}},q=(0,y.q)(a.Box),K=l.forwardRef((function(e,t){var n=e.aiChats,r=(0,i.Z)(e,B),a=(0,y.Yz)(n,{keys:function(e){return e.id},from:function(){return{opacity:0,x:0}},enter:{opacity:1,x:0},leave:function(){return{opacity:0,x:0}},config:{mass:.7,tension:190,friction:16}}),s=(0,y.JZ)()?n.map((function(e){return l.cloneElement(e.content,{key:e.id})})):a((function(e,t,n){var r=n.key;return l.createElement(q,{as:"div",style:e,key:r},t.content)}));return l.createElement(U,(0,o.Z)((0,o.Z)({},r),{},{ref:t}),s)}));K.displayName="AIChatLogger";var V=l.forwardRef((function(e,t){var n=e.children,r=e.element,s=void 0===r?"AI_CHAT_MESSAGE_SOURCE":r,c=(0,i.Z)(e,O);return l.createElement(a.Box,(0,o.Z)({as:"span",ref:t,element:s,paddingX:"space10"},(0,a.safelySpreadBoxProps)(c)),l.createElement(b.Footnote,{element:"".concat(s,"_FOOTNOTE")},n))}));V.displayName="AIChatMessageSource";var Y=l.forwardRef((function(e,t){var n=e.children,r=e.number,s=e.url,c=e.element,u=void 0===c?"AI_CHAT_MESSAGE_SOURCE_LINK":c,d=(0,i.Z)(e,P);return l.createElement(a.Box,(0,o.Z)({ref:t,element:u,verticalAlign:"inherit",fontSize:"inherit",color:"colorTextWeak"},(0,a.safelySpreadBoxProps)(d)),"[",r,"]"," ",l.createElement(a.Box,{as:"span",marginLeft:"space10"},n),l.createElement(x.Anchor,{href:s,showExternal:!0,marginLeft:"space20"},"Source with url"))}));Y.displayName="AIChatMessageSourceLink"},86:function(e,t,n){"use strict";n.r(t),n.d(t,{AlertDialog:function(){return k}});var r=n(1413),o=n(4925),i=n(3512),a=n(1923),s=n(9700),l=n(9628),c=n(2791),u=n(7666),d=n(9741),f=n(1543),p=n(6373),h=["bodyID","children","element"],m=["destructive","element","onConfirm","onConfirmLabel","onDismiss","onDismissLabel","onConfirmDisabled","isConfirmDisabled"],v=["children","element","headingID"],g=["children","destructive","element","heading","isOpen","onConfirm","onConfirmLabel","onDismiss","onDismissLabel","onConfirmDisabled","isConfirmDisabled"],y=c.forwardRef((function(e,t){var n=e.bodyID,i=e.children,s=e.element,l=void 0===s?"ALERT_DIALOG_BODY":s,u=(0,o.Z)(e,h);return c.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(u)),{},{as:"div",overflowY:"auto",padding:"space90",paddingTop:"space0",element:l,id:n,ref:t}),i)}));y.displayName="AlertDialogBody";var b=(0,u.iK)(s.ModalDialogContent)((function(){return(0,u.iv)({maxWidth:"size40"})}));b.displayName="AlertDialogContent";var x=c.forwardRef((function(e,t){var n=e.destructive,i=e.element,s=void 0===i?"ALERT_DIALOG_FOOTER":i,l=e.onConfirm,u=e.onConfirmLabel,p=e.onDismiss,h=e.onDismissLabel,v=e.onConfirmDisabled,g=e.isConfirmDisabled,y=void 0===g?v||!1:g,b=(0,o.Z)(e,m),x=n?"destructive":"primary";return c.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(b)),{},{as:"div",flexShrink:0,display:"flex",padding:"space90",paddingTop:"space0",border:"none",element:s,justifyContent:"flex-end",ref:t}),c.createElement(f.Stack,{orientation:"horizontal",spacing:"space50"},c.createElement(d.Button,{variant:"secondary",onClick:p},h),c.createElement(d.Button,{variant:x,onClick:l,disabled:n&&(y||v)},u)))}));x.displayName="AlertDialogFooter";var w=c.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"ALERT_DIALOG_HEADER":i,l=e.headingID,u=(0,o.Z)(e,v);return c.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(u)),{},{as:"div",padding:"space90",flexShrink:0,border:"none",element:"".concat(s,"_WRAPPER"),ref:t}),c.createElement(p.Heading,{as:"h3",element:s,marginBottom:"space0",variant:"heading30",id:l},n))}));w.displayName="AlertDialogHeader";var k=c.forwardRef((function(e,t){var n=e.children,u=e.destructive,d=e.element,f=void 0===d?"ALERT_DIALOG":d,p=e.heading,h=e.isOpen,m=e.onConfirm,v=e.onConfirmLabel,k=e.onDismiss,S=e.onDismissLabel,_=e.onConfirmDisabled,E=e.isConfirmDisabled,C=(0,o.Z)(e,g),T=(0,i.Yz)(h,{from:{opacity:0,transform:"scale(0.675)"},enter:{opacity:1,transform:"scale(1)"},leave:{opacity:0,transform:"scale(0.675)"},config:{mass:.5,tension:370,friction:26}}),I=(0,l.Dt)(),B=(0,l.Dt)();return c.createElement(c.Fragment,null,T((function(e,o){return o&&c.createElement(s.ModalDialogOverlay,{isOpen:h,style:{opacity:e.opacity}},c.createElement(a.Box,(0,r.Z)((0,r.Z)({as:b},(0,a.safelySpreadBoxProps)(C)),{},{"aria-labelledby":I,"aria-describedby":B,element:f,ref:t,role:"alertdialog",style:e}),c.createElement(w,{headingID:I,element:"".concat(f,"_HEADER")},p),c.createElement(y,{bodyID:B,element:"".concat(f,"_BODY")},n),c.createElement(x,{destructive:u,element:"".concat(f,"_FOOTER"),onDismiss:k,onDismissLabel:S,onConfirm:m,onConfirmLabel:v,isConfirmDisabled:E||_})))})))}));k.displayName="AlertDialog"},7380:function(e,t,n){"use strict";n.r(t),n.d(t,{Alert:function(){return w}});var r=n(1413),o=n(4925),i=n(1923),a=n(9741),s=n(8045),l=n(7088),c=n(8295),u=n(428),d=n(1631),f=n(9643),p=n(2791),h=["children","onDismiss","variant","role","element","i18nDismissLabel","i18nErrorLabel","i18nNeutralLabel","i18nWarningLabel"],m={ERROR:"alert",NEUTRAL:"status",WARNING:"alert"},v="error",g="warning",y={ERROR:"colorBackgroundErrorWeakest",NEUTRAL:"colorBackgroundNeutralWeakest",WARNING:"colorBackgroundWarningWeakest"},b={ERROR:"colorBorderErrorWeaker",NEUTRAL:"colorBorderNeutralWeaker",WARNING:"colorBorderWarningWeaker"},x={ERROR:"colorTextError",NEUTRAL:"colorTextNeutral",WARNING:"colorTextWarningStrong"},w=p.forwardRef((function(e,t){var n=e.children,w=e.onDismiss,k=e.variant,S=e.role,_=e.element,E=void 0===_?"ALERT":_,C=e.i18nDismissLabel,T=void 0===C?"Dismiss alert":C,I=e.i18nErrorLabel,B=void 0===I?"(error)":I,O=e.i18nNeutralLabel,P=void 0===O?"(information)":O,R=e.i18nWarningLabel,A=void 0===R?"(warning)":R,M=(0,o.Z)(e,h),N={error:B,neutral:P,warning:A};return p.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(M)),{},{backgroundColor:y[k.toUpperCase()],borderColor:b[k.toUpperCase()],borderStyle:"solid",borderWidth:"borderWidth10",borderRadius:"borderRadius30",padding:"space50",element:E,variant:k,ref:t,role:null!==S&&void 0!==S?S:m[k.toUpperCase()]}),p.createElement(d.MediaObject,{as:"div"},p.createElement(d.MediaFigure,{as:"div",spacing:"space30"},function(e,t,n){switch(e){case v:return p.createElement(l.P,{element:"".concat(t,"_ICON"),color:"colorTextIconError",decorative:!1,title:n,size:"sizeIcon20"});case g:return p.createElement(u.a,{element:"".concat(t,"_ICON"),color:"colorTextIconWarning",decorative:!1,title:n,size:"sizeIcon20"});default:return p.createElement(c.$,{element:"".concat(t,"_ICON"),color:"colorTextIconNeutral",decorative:!1,title:n,size:"sizeIcon20"})}}(k,E,N[k])),p.createElement(d.MediaBody,{as:"div"},p.createElement(i.Box,{color:x[k.toUpperCase()]},n)),w&&"function"==typeof w&&p.createElement(d.MediaFigure,{align:"end",spacing:"space60"},p.createElement(a.Button,{onClick:w,variant:"secondary_icon",size:"reset",element:"".concat(E,"_DISMISS_BUTTON")},p.createElement(s.T,{element:"".concat(E,"_DISMISS_ICON"),color:"colorTextIcon",decorative:!0,size:"sizeIcon20"}),p.createElement(f.ScreenReaderOnly,null,T)))))}));w.displayName="Alert"},1076:function(e,t,n){"use strict";n.r(t),n.d(t,{Anchor:function(){return m},isExternalUrl:function(){return p},secureExternalLink:function(){return h}});var r=n(4925),o=n(1413),i=n(1923),a=n(7258),s=n(2791),l=["element","variant","showExternal","display","height","minHeight","maxHeight","width","minWidth","maxWidth","size","margin","marginBottom","marginLeft","marginRight","marginTop","marginX","marginY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","paddingX","paddingY","verticalAlign","i18nExternalLinkLabel"],c=s.forwardRef((function(e,t){return s.createElement(i.Box,(0,o.Z)((0,o.Z)({},e),{},{as:"a",color:"colorTextLink",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref:t,textDecoration:"underline",_active:{color:"colorTextLinkStrongest",textDecoration:"none"},_focus:{boxShadow:"shadowFocus",color:"colorTextLink",textDecoration:"underline",borderRadius:"borderRadius20"},_hover:{color:"colorTextLinkStronger",textDecoration:"none"}}),e.children)}));c.displayName="DefaultAnchor";var u=s.forwardRef((function(e,t){return s.createElement(i.Box,(0,o.Z)((0,o.Z)({},e),{},{as:"a",color:"colorTextInverse",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref:t,textDecoration:"underline",_active:{color:"colorTextInverse",textDecoration:"none"},_focus:{boxShadow:"shadowFocusInverse",color:"colorTextInverse",textDecoration:"underline",borderRadius:"borderRadius20"},_hover:{color:"colorTextInverse",textDecoration:"none"}}),e.children)}));u.displayName="InverseAnchor";var d={inverse:u,default:c},f=/^(https?:)\S*$/,p=function(e){return f.test(e)},h=function(e){if(p(e))return{rel:"noreferrer noopener",target:"_blank"}},m=s.forwardRef((function(e,t){var n=e.element,c=void 0===n?"ANCHOR":n,u=e.variant,f=void 0===u?"default":u,p=e.showExternal,m=e.display,v=e.height,g=e.minHeight,y=e.maxHeight,b=e.width,x=e.minWidth,w=e.maxWidth,k=e.size,S=e.margin,_=e.marginBottom,E=e.marginLeft,C=e.marginRight,T=e.marginTop,I=e.marginX,B=void 0===I?null:I,O=e.marginY,P=void 0===O?null:O,R=e.padding,A=e.paddingBottom,M=e.paddingLeft,N=e.paddingRight,D=e.paddingTop,L=e.paddingX,j=void 0===L?null:L,z=e.paddingY,W=void 0===z?null:z,Z=e.verticalAlign,F=e.i18nExternalLinkLabel,H=void 0===F?"(link takes you to an external page)":F,U=(0,r.Z)(e,l),$=d[f];return s.createElement($,(0,o.Z)((0,o.Z)((0,o.Z)({href:U.href,ref:t,variant:f},h(U.href)),(0,i.safelySpreadBoxProps)(U)),{},{element:c,display:m,height:v,minHeight:g,maxHeight:y,width:b,minWidth:x,maxWidth:w,size:k,margin:S,marginBottom:_,marginLeft:E,marginRight:C,marginTop:T,marginX:B,marginY:P,padding:R,paddingBottom:A,paddingLeft:M,paddingRight:N,paddingTop:D,paddingX:j,paddingY:W,verticalAlign:Z}),p?s.createElement(i.Box,{as:"span"},U.children,s.createElement(i.Box,{as:"span",display:"inline-block",flexShrink:0,verticalAlign:"middle"},s.createElement(a.P,{decorative:!1,title:H}))):U.children)}));m.displayName="Anchor"},3512:function(e,t,n){"use strict";n.d(t,{OH:function(){return q},q:function(){return vr},JZ:function(){return br},q_:function(){return Vn},Yz:function(){return Yn}});var r=n(7326),o=n(4925),i=n(2963),a=n(1120),s=n(9611);var l=n(8814);function c(e,t,n){return c=(0,l.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,s.Z)(o,n.prototype),o},c.apply(null,arguments)}function u(e){var t="function"===typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,(0,a.Z)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,s.Z)(r,e)},u(e)}var d=n(4165),f=n(5861),p=n(7762),h=n(1752),m=n(136),v=n(9388),g=n(1413),y=n(885),b=n(3144),x=n(5671),w=n(2982),k=n(2791),S=n(4164),_=["children"],E=["className","style","children","scrollTop","scrollLeft","viewBox"],C=["x","y","z"],T=["scrollTop","scrollLeft"],I=U(),B=function(e){return W(e,I)},O=U();B.write=function(e){return W(e,O)};var P=U();B.onStart=function(e){return W(e,P)};var R=U();B.onFrame=function(e){return W(e,R)};var A=U();B.onFinish=function(e){return W(e,A)};var M=[];B.setTimeout=function(e,t){var n=B.now()+t,r={time:n,handler:e,cancel:function e(){var t=M.findIndex((function(t){return t.cancel==e}));~t&&M.splice(t,1),j-=~t?1:0}};return M.splice(N(n),0,r),j+=1,Z(),r};var N=function(e){return~(~M.findIndex((function(t){return t.time>e}))||~M.length)};B.cancel=function(e){P.delete(e),R.delete(e),A.delete(e),I.delete(e),O.delete(e)},B.sync=function(e){z=!0,B.batchedUpdates(e),z=!1},B.throttle=function(e){var t;function n(){try{e.apply(void 0,(0,w.Z)(t))}finally{t=null}}function r(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=r,B.onStart(n)}return r.handler=e,r.cancel=function(){P.delete(n),t=null},r};var D=typeof window<"u"?window.requestAnimationFrame:function(){};B.use=function(e){return D=e},B.now=typeof performance<"u"?function(){return performance.now()}:Date.now,B.batchedUpdates=function(e){return e()},B.catch=console.error,B.frameLoop="always",B.advance=function(){"demand"!==B.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):H()};var L=-1,j=0,z=!1;function W(e,t){z?(t.delete(e),e(0)):(t.add(e),Z())}function Z(){L<0&&(L=0,"demand"!==B.frameLoop&&D(F))}function F(){~L&&(D(F),B.batchedUpdates(H))}function H(){var e=L;L=B.now();var t=N(L);t&&($(M.splice(0,t),(function(e){return e.handler()})),j-=t),j?(P.flush(),I.flush(e?Math.min(64,L-e):16.667),R.flush(),O.flush(),A.flush()):L=-1}function U(){var e=new Set,t=e;return{add:function(n){j+=t!=e||e.has(n)?0:1,e.add(n)},delete:function(n){return j-=t==e&&e.has(n)?1:0,e.delete(n)},flush:function(n){t.size&&(e=new Set,j-=t.size,$(t,(function(t){return t(n)&&e.add(t)})),j+=e.size,t=e)}}}function $(e,t){e.forEach((function(e){try{t(e)}catch(n){B.catch(n)}}))}var G=Object.defineProperty,q={};function K(){}!function(e,t){for(var n in t)G(e,n,{get:t[n],enumerable:!0})}(q,{assign:function(){return le},colors:function(){return ie},createStringInterpolator:function(){return te},skipAnimation:function(){return ae},to:function(){return ne},willAdvance:function(){return se}});var V={arr:Array.isArray,obj:function(e){return!!e&&"Object"===e.constructor.name},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e}};function Y(e,t){if(V.arr(e)){if(!V.arr(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var X=function(e,t){return e.forEach(t)};function J(e,t,n){if(V.arr(e))for(var r=0;r<e.length;r++)t.call(n,e[r],"".concat(r));else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}var Q=function(e){return V.und(e)?[]:V.arr(e)?e:[e]};function ee(e,t){if(e.size){var n=Array.from(e);e.clear(),X(n,t)}}var te,ne,re=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ee(e,(function(e){return e.apply(void 0,n)}))},oe=function(){return typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)},ie=null,ae=!1,se=K,le=function(e){e.to&&(ne=e.to),e.now&&(B.now=e.now),void 0!==e.colors&&(ie=e.colors),null!=e.skipAnimation&&(ae=e.skipAnimation),e.createStringInterpolator&&(te=e.createStringInterpolator),e.requestAnimationFrame&&B.use(e.requestAnimationFrame),e.batchedUpdates&&(B.batchedUpdates=e.batchedUpdates),e.willAdvance&&(se=e.willAdvance),e.frameLoop&&(B.frameLoop=e.frameLoop)},ce=new Set,ue=[],de=[],fe=0,pe={get idle(){return!ce.size&&!ue.length},start:function(e){fe>e.priority?(ce.add(e),B.onStart(he)):(me(e),B(ge))},advance:ge,sort:function(e){if(fe)B.onFrame((function(){return pe.sort(e)}));else{var t=ue.indexOf(e);~t&&(ue.splice(t,1),ve(e))}},clear:function(){ue=[],ce.clear()}};function he(){ce.forEach(me),ce.clear(),B(ge)}function me(e){ue.includes(e)||ve(e)}function ve(e){ue.splice(function(e,t){var n=e.findIndex(t);return n<0?e.length:n}(ue,(function(t){return t.priority>e.priority})),0,e)}function ge(e){for(var t=de,n=0;n<ue.length;n++){var r=ue[n];fe=r.priority,r.idle||(se(r),r.advance(e),r.idle||t.push(r))}return fe=0,(de=ue).length=0,(ue=t).length>0}var ye=function(e,t,n){return Math.min(Math.max(n,e),t)},be="[-+]?\\d*\\.?\\d+",xe=be+"%";function we(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ke=new RegExp("rgb"+we(be,be,be)),Se=new RegExp("rgba"+we(be,be,be,be)),_e=new RegExp("hsl"+we(be,xe,xe)),Ee=new RegExp("hsla"+we(be,xe,xe,be)),Ce=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Te=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ie=/^#([0-9a-fA-F]{6})$/,Be=/^#([0-9a-fA-F]{8})$/;function Oe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Pe(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Oe(o,r,e+1/3),a=Oe(o,r,e),s=Oe(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Re(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function Ae(e){return(parseFloat(e)%360+360)%360/360}function Me(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ne(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function De(e){var t=function(e){var t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ie.exec(e))?parseInt(t[1]+"ff",16)>>>0:ie&&void 0!==ie[e]?ie[e]:(t=ke.exec(e))?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|255)>>>0:(t=Se.exec(e))?(Re(t[1])<<24|Re(t[2])<<16|Re(t[3])<<8|Me(t[4]))>>>0:(t=Ce.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Be.exec(e))?parseInt(t[1],16)>>>0:(t=Te.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=_e.exec(e))?(255|Pe(Ae(t[1]),Ne(t[2]),Ne(t[3])))>>>0:(t=Ee.exec(e))?(Pe(Ae(t[1]),Ne(t[2]),Ne(t[3]))|Me(t[4]))>>>0:null}(e);if(null===t)return e;var n=(16711680&(t=t||0))>>>16,r=(65280&t)>>>8,o=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(r,", ").concat(o,")")}var Le=function e(t,n,r){if(V.fun(t))return t;if(V.arr(t))return e({range:t,output:n,extrapolate:r});if(V.str(t.output[0]))return te(t);var o=t,i=o.output,a=o.range||[0,1],s=o.extrapolateLeft||o.extrapolate||"extend",l=o.extrapolateRight||o.extrapolate||"extend",c=o.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,i,a,s,l){var c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r,c)}(e,a[t],a[t+1],i[t],i[t+1],c,s,l,o.map)}};var je=1.70158,ze=1.525*je,We=je+1,Ze=2*Math.PI/3,Fe=2*Math.PI/4.5,He=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},Ue={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-Math.pow(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-Math.pow(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-Math.pow(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},easeInSine:function(e){return 1-Math.cos(e*Math.PI/2)},easeOutSine:function(e){return Math.sin(e*Math.PI/2)},easeInOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*e-10)},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},easeInCirc:function(e){return 1-Math.sqrt(1-Math.pow(e,2))},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},easeInBack:function(e){return We*e*e*e-je*e*e},easeOutBack:function(e){return 1+We*Math.pow(e-1,3)+je*Math.pow(e-1,2)},easeInOutBack:function(e){return e<.5?Math.pow(2*e,2)*(7.189819*e-ze)/2:(Math.pow(2*e-2,2)*((ze+1)*(2*e-2)+ze)+2)/2},easeInElastic:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ze)},easeOutElastic:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ze)+1},easeInOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Fe)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Fe)/2+1},easeInBounce:function(e){return 1-He(1-e)},easeOutBounce:He,easeInOutBounce:function(e){return e<.5?(1-He(1-2*e))/2:(1+He(2*e-1))/2},steps:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(n){var r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return ye(0,1,o/e)}}},$e=Symbol.for("FluidValue.get"),Ge=Symbol.for("FluidValue.observers"),qe=function(e){return Boolean(e&&e[$e])},Ke=function(e){return e&&e[$e]?e[$e]():e},Ve=function(e){return e[Ge]||null};function Ye(e,t){var n=e[Ge];n&&n.forEach((function(e){!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Xe=(0,b.Z)((function e(t){if((0,x.Z)(this,e),!t&&!(t=this.get))throw Error("Unknown getter");Je(this,t)})),Je=function(e,t){return nt(e,$e,t)};function Qe(e,t){if(e[$e]){var n=e[Ge];n||nt(e,Ge,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function et(e,t){var n=e[Ge];if(n&&n.has(t)){var r=n.size-1;r?n.delete(t):e[Ge]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var tt,nt=function(e,t,n){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})},rt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ot=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,it=new RegExp("(".concat(rt.source,")(%|[a-z]+)"),"i"),at=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,st=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,lt=function e(t){var n=ct(t),r=(0,y.Z)(n,2),o=r[0],i=r[1];if(!o||oe())return t;var a=window.getComputedStyle(document.documentElement).getPropertyValue(o);return a?a.trim():i&&i.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(i)||t:i&&st.test(i)?e(i):i||t},ct=function(e){var t=st.exec(e);if(!t)return[,];var n=(0,y.Z)(t,3);return[n[1],n[2]]},ut=function(e,t,n,r,o){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(o,")")},dt=function(e){tt||(tt=ie?new RegExp("(".concat(Object.keys(ie).join("|"),")(?!\\w)"),"g"):/^\b$/);var t=e.output.map((function(e){return Ke(e).replace(st,lt).replace(ot,De).replace(tt,De)})),n=t.map((function(e){return e.match(rt).map(Number)})),r=n[0].map((function(e,t){return n.map((function(e){if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]}))})).map((function(t){return Le((0,g.Z)((0,g.Z)({},e),{},{output:t}))}));return function(e){var n,o=!it.test(t[0])&&(null===(n=t.find((function(e){return it.test(e)})))||void 0===n?void 0:n.replace(rt,"")),i=0;return t[0].replace(rt,(function(){return"".concat(r[i++](e)).concat(o||"")})).replace(at,ut)}},ft="react-spring: ",pt=function(e){var t=e,n=!1;if("function"!=typeof t)throw new TypeError("".concat(ft,"once requires a function parameter"));return function(){n||(t.apply(void 0,arguments),n=!0)}},ht=pt(console.warn);function mt(){ht("".concat(ft,'The "interpolate" function is deprecated in v9 (use "to" instead)'))}var vt=pt(console.warn);function gt(e){return V.str(e)&&("#"==e[0]||/\d/.test(e)||!oe()&&st.test(e)||e in(ie||{}))}var yt=oe()?k.useEffect:k.useLayoutEffect;function bt(){var e=(0,k.useState)()[1],t=function(){var e=(0,k.useRef)(!1);return yt((function(){return e.current=!0,function(){e.current=!1}}),[]),e}();return function(){t.current&&e(Math.random())}}var xt=function(e){return(0,k.useEffect)(e,wt)},wt=[];function kt(e){var t=(0,k.useRef)();return(0,k.useEffect)((function(){t.current=e})),t.current}var St=Symbol.for("Animated:node"),_t=function(e){return e&&e[St]},Et=function(e,t){return n=e,r=St,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},Ct=function(e){return e&&e[St]&&e[St].getPayload()},Tt=function(){function e(){(0,x.Z)(this,e),Et(this,this)}return(0,b.Z)(e,[{key:"getPayload",value:function(){return this.payload||[]}}]),e}(),It=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this))._value=e,r.done=!0,r.durationProgress=0,V.num(r._value)&&(r.lastPosition=r._value),r}return(0,b.Z)(n,[{key:"getPayload",value:function(){return[this]}},{key:"getValue",value:function(){return this._value}},{key:"setValue",value:function(e,t){return V.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}},{key:"reset",value:function(){var e=this.done;this.done=!1,V.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(Tt),Bt=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this,0))._string=null,r._toString=Le({output:[e,e]}),r}return(0,b.Z)(n,[{key:"getValue",value:function(){var e=this._string;return null!==e&&void 0!==e?e:this._string=this._toString(this._value)}},{key:"setValue",value:function(e){if(V.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!(0,h.Z)((0,a.Z)(n.prototype),"setValue",this).call(this,e))return!1;this._string=null}return!0}},{key:"reset",value:function(e){e&&(this._toString=Le({output:[this.getValue(),e]})),this._value=0,(0,h.Z)((0,a.Z)(n.prototype),"reset",this).call(this)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(It),Ot={dependencies:null},Pt=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){var r;return(0,x.Z)(this,n),(r=t.call(this)).source=e,r.setValue(e),r}return(0,b.Z)(n,[{key:"getValue",value:function(e){var t={};return J(this.source,(function(n,r){var o;(o=n)&&o[St]===o?t[r]=n.getValue(e):qe(n)?t[r]=Ke(n):e||(t[r]=n)})),t}},{key:"setValue",value:function(e){this.source=e,this.payload=this._makePayload(e)}},{key:"reset",value:function(){this.payload&&X(this.payload,(function(e){return e.reset()}))}},{key:"_makePayload",value:function(e){if(e){var t=new Set;return J(e,this._addToPayload,t),Array.from(t)}}},{key:"_addToPayload",value:function(e){var t=this;Ot.dependencies&&qe(e)&&Ot.dependencies.add(e);var n=Ct(e);n&&X(n,(function(e){return t.add(e)}))}}]),n}(Tt),Rt=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){return(0,x.Z)(this,n),t.call(this,e)}return(0,b.Z)(n,[{key:"getValue",value:function(){return this.source.map((function(e){return e.getValue()}))}},{key:"setValue",value:function(e){var t=this.getPayload();return e.length==t.length?t.map((function(t,n){return t.setValue(e[n])})).some(Boolean):((0,h.Z)((0,a.Z)(n.prototype),"setValue",this).call(this,e.map(At)),!0)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(Pt);function At(e){return(gt(e)?Bt:It).create(e)}function Mt(e){var t=_t(e);return t?t.constructor:V.arr(e)?Rt:gt(e)?Bt:It}var Nt=function(e,t){var n=!V.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,k.forwardRef)((function(r,o){var i=(0,k.useRef)(null),a=n&&(0,k.useCallback)((function(e){i.current=function(e,t){return e&&(V.fun(e)?e(t):e.current=t),t}(o,e)}),[o]),s=function(e,t){var n=new Set;return Ot.dependencies=n,e.style&&(e=(0,g.Z)((0,g.Z)({},e),{},{style:t.createAnimatedStyle(e.style)})),e=new Pt(e),Ot.dependencies=null,[e,n]}(r,t),l=(0,y.Z)(s,2),c=l[0],u=l[1],d=bt(),f=function(){var e=i.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&d()},p=new Dt(f,u),h=(0,k.useRef)();yt((function(){return h.current=p,X(u,(function(e){return Qe(e,p)})),function(){h.current&&(X(h.current.deps,(function(e){return et(e,h.current)})),B.cancel(h.current.update))}})),(0,k.useEffect)(f,[]),xt((function(){return function(){var e=h.current;X(e.deps,(function(t){return et(t,e)}))}}));var m=t.getComponentProps(c.getValue());return k.createElement(e,(0,g.Z)((0,g.Z)({},m),{},{ref:a}))}))},Dt=function(){function e(t,n){(0,x.Z)(this,e),this.update=t,this.deps=n}return(0,b.Z)(e,[{key:"eventObserved",value:function(e){"change"==e.type&&B.write(this.update)}}]),e}();var Lt=Symbol.for("AnimatedComponent"),jt=function(e){return V.str(e)?e:e&&V.str(e.displayName)?e.displayName:V.fun(e)&&e.name||null};function zt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return V.fun(e)?e.apply(void 0,n):e}var Wt=function(e,t){return!0===e||!!(t&&e&&(V.fun(e)?e(t):Q(e).includes(t)))},Zt=function(e,t){return V.obj(e)?t&&e[t]:e},Ft=function(e,t){return!0===e.default?e[t]:e.default?e.default[t]:void 0},Ht=function(e){return e},Ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht,n=$t;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));var r,o={},i=(0,p.Z)(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=t(e[a],a);V.und(s)||(o[a]=s)}}catch(l){i.e(l)}finally{i.f()}return o},$t=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Gt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function qt(e){var t=function(e){var t={},n=0;if(J(e,(function(e,r){Gt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){var n={to:t};return J(e,(function(e,r){return r in t||(n[r]=e)})),n}return(0,g.Z)({},e)}function Kt(e){return e=Ke(e),V.arr(e)?e.map(Kt):gt(e)?q.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Vt(e){for(var t in e)return!0;return!1}function Yt(e){return V.fun(e)||V.arr(e)&&V.obj(e[0])}function Xt(e,t){var n;null!==(n=e.ref)&&void 0!==n&&n.delete(e),null===t||void 0===t||t.delete(e)}function Jt(e,t){var n;t&&e.ref!==t&&(null!==(n=e.ref)&&void 0!==n&&n.delete(e),t.add(e),e.ref=t)}var Qt=(0,g.Z)((0,g.Z)({},{tension:170,friction:26}),{},{mass:1,damping:1,easing:Ue.linear,clamp:!1}),en=(0,b.Z)((function e(){(0,x.Z)(this,e),this.velocity=0,Object.assign(this,Qt)}));function tn(e,t){if(V.und(t.decay)){var n=!V.und(t.tension)||!V.und(t.friction);(n||!V.und(t.frequency)||!V.und(t.damping)||!V.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var nn=[],rn=(0,b.Z)((function e(){(0,x.Z)(this,e),this.changed=!1,this.values=nn,this.toValues=null,this.fromValues=nn,this.config=new en,this.immediate=!1}));function on(e,t){var n=t.key,r=t.props,o=t.defaultProps,i=t.state,a=t.actions;return new Promise((function(t,s){var l,c,u,d=Wt(null!==(l=r.cancel)&&void 0!==l?l:null===o||void 0===o?void 0:o.cancel,n);if(d)m();else{V.und(r.pause)||(i.paused=Wt(r.pause,n));var f=null===o||void 0===o?void 0:o.pause;!0!==f&&(f=i.paused||Wt(f,n)),c=zt(r.delay||0,n),f?(i.resumeQueue.add(h),a.pause()):(a.resume(),h())}function p(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),c=u.time-B.now()}function h(){c>0&&!q.skipAnimation?(i.delayed=!0,u=B.setTimeout(m,c),i.pauseQueue.add(p),i.timeouts.add(u)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(p),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{a.start((0,g.Z)((0,g.Z)({},r),{},{callId:e,cancel:d}),t)}catch(n){s(n)}}}))}var an=function(e,t){return 1==t.length?t[0]:t.some((function(e){return e.cancelled}))?cn(e.get()):t.every((function(e){return e.noop}))?sn(e.get()):ln(e.get(),t.every((function(e){return e.finished})))},sn=function(e){return{value:e,noop:!0,finished:!0,cancelled:!1}},ln=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{value:e,finished:t,cancelled:n}},cn=function(e){return{value:e,cancelled:!0,finished:!1}};function un(e,t,n,r){var o=t.callId,i=t.parentId,a=t.onRest,s=n.asyncTo,l=n.promise;return i||e!==s||t.reset?n.promise=(0,f.Z)((0,d.Z)().mark((function c(){var u,h,m,v,y,b,x,w;return(0,d.Z)().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(n.asyncId=o,n.asyncTo=e,u=Ut(t,(function(e,t){return"onRest"===t?void 0:e})),v=new Promise((function(e,t){return h=e,m=t})),y=function(e){var t=o<=(n.cancelId||0)&&cn(r)||o!==n.asyncId&&ln(r,!1);if(t)throw e.result=t,m(e),e},b=function(e,t){var i=new fn,a=new pn;return(0,f.Z)((0,d.Z)().mark((function s(){var l,c;return(0,d.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!q.skipAnimation){s.next=2;break}throw dn(n),a.result=ln(r,!1),m(a),a;case 2:return y(i),(l=V.obj(e)?(0,g.Z)({},e):(0,g.Z)((0,g.Z)({},t),{},{to:e})).parentId=o,J(u,(function(e,t){V.und(l[t])&&(l[t]=e)})),s.next=7,r.start(l);case 7:if(c=s.sent,y(i),s.t0=n.paused,!s.t0){s.next=13;break}return s.next=13,new Promise((function(e){n.resumeQueue.add(e)}));case 13:return s.abrupt("return",c);case 14:case"end":return s.stop()}}),s)})))()},!q.skipAnimation){c.next=4;break}return c.abrupt("return",(dn(n),ln(r,!1)));case 4:return c.prev=4,w=V.arr(e)?function(){var e=(0,f.Z)((0,d.Z)().mark((function e(t){var n,r,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=(0,p.Z)(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return o=r.value,e.next=7,b(o);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})));return function(t){return e.apply(this,arguments)}}()(e):Promise.resolve(e(b,r.stop.bind(r))),c.next=8,Promise.all([w.then(h),v]);case 8:x=ln(r.get(),!0,!1),c.next=22;break;case 11:if(c.prev=11,c.t0=c.catch(4),!(c.t0 instanceof fn)){c.next=17;break}x=c.t0.result,c.next=22;break;case 17:if(!(c.t0 instanceof pn)){c.next=21;break}x=c.t0.result,c.next=22;break;case 21:throw c.t0;case 22:return c.prev=22,o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0),c.finish(22);case 25:return c.abrupt("return",(V.fun(a)&&B.batchedUpdates((function(){a(x,r,r.item)})),x));case 26:case"end":return c.stop()}}),c,null,[[4,11,22,25]])})))():l}function dn(e,t){ee(e.timeouts,(function(e){return e.cancel()})),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var fn=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,x.Z)(this,n),t.call(this,"An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}return(0,b.Z)(n)}(u(Error)),pn=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,x.Z)(this,n),t.call(this,"SkipAnimationSignal")}return(0,b.Z)(n)}(u(Error)),hn=function(e){return e instanceof vn},mn=1,vn=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){var e;return(0,x.Z)(this,n),(e=t.apply(this,arguments)).id=mn++,e._priority=0,e}return(0,b.Z)(n,[{key:"priority",get:function(){return this._priority},set:function(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}},{key:"get",value:function(){var e=_t(this);return e&&e.getValue()}},{key:"to",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return q.to(this,t)}},{key:"interpolate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mt(),q.to(this,t)}},{key:"toJSON",value:function(){return this.get()}},{key:"observerAdded",value:function(e){1==e&&this._attach()}},{key:"observerRemoved",value:function(e){0==e&&this._detach()}},{key:"_attach",value:function(){}},{key:"_detach",value:function(){}},{key:"_onChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ye(this,{type:"change",parent:this,value:e,idle:t})}},{key:"_onPriorityChange",value:function(e){this.idle||pe.sort(this),Ye(this,{type:"priority",parent:this,priority:e})}}]),n}(Xe),gn=Symbol.for("SpringPhase"),yn=function(e){return(1&e[gn])>0},bn=function(e){return(2&e[gn])>0},xn=function(e){return(4&e[gn])>0},wn=function(e,t){return t?e[gn]|=3:e[gn]&=-3},kn=function(e,t){return t?e[gn]|=4:e[gn]&=-5},Sn=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var o;if((0,x.Z)(this,n),(o=t.call(this)).animation=new rn,o.defaultProps={},o._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},o._pendingCalls=new Set,o._lastCallId=0,o._lastToId=0,o._memoizedDuration=0,!V.und(e)||!V.und(r)){var a=V.obj(e)?(0,g.Z)({},e):(0,g.Z)((0,g.Z)({},r),{},{from:e});V.und(a.default)&&(a.default=!0),o.start(a)}return(0,i.Z)(o)}return(0,b.Z)(n,[{key:"idle",get:function(){return!(bn(this)||this._state.asyncTo)||xn(this)}},{key:"goal",get:function(){return Ke(this.animation.to)}},{key:"velocity",get:function(){var e=_t(this);return e instanceof It?e.lastVelocity||0:e.getPayload().map((function(e){return e.lastVelocity||0}))}},{key:"hasAnimated",get:function(){return yn(this)}},{key:"isAnimating",get:function(){return bn(this)}},{key:"isPaused",get:function(){return xn(this)}},{key:"isDelayed",get:function(){return this._state.delayed}},{key:"advance",value:function(e){var t=this,n=!0,r=!1,o=this.animation,i=o.toValues,a=o.config,s=Ct(o.to);!s&&qe(o.to)&&(i=Q(Ke(o.to))),o.values.forEach((function(l,c){if(!l.done){var u=l.constructor==Bt?1:s?s[c].lastPosition:i[c],d=o.immediate,f=u;if(!d){if(f=l.lastPosition,a.tension<=0)return void(l.done=!0);var p,h=l.elapsedTime+=e,m=o.fromValues[c],v=null!=l.v0?l.v0:l.v0=V.arr(a.velocity)?a.velocity[c]:a.velocity,g=a.precision||(m==u?.005:Math.min(1,.001*Math.abs(u-m)));if(V.und(a.duration))if(a.decay){var y=!0===a.decay?.998:a.decay,b=Math.exp(-(1-y)*h);f=m+v/(1-y)*(1-b),d=Math.abs(l.lastPosition-f)<=g,p=v*b}else{p=null==l.lastVelocity?v:l.lastVelocity;for(var x=a.restVelocity||g/10,w=a.clamp?0:a.bounce,k=!V.und(w),S=m==u?l.v0>0:m<u,_=Math.ceil(e/1),E=0;E<_&&(Math.abs(p)>x||!(d=Math.abs(u-f)<=g));++E){k&&((f==u||f>u==S)&&(p=-p*w,f=u)),f+=1*(p+=1*((1e-6*-a.tension*(f-u)+.001*-a.friction*p)/a.mass))}}else{var C=1;a.duration>0&&(t._memoizedDuration!==a.duration&&(t._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,h=l.elapsedTime+=e)),C=(C=(a.progress||0)+h/t._memoizedDuration)>1?1:C<0?0:C,l.durationProgress=C),p=((f=m+a.easing(C)*(u-m))-l.lastPosition)/e,d=1==C}l.lastVelocity=p,Number.isNaN(f)&&(console.warn("Got NaN while animating:",t),d=!0)}s&&!s[c].done&&(d=!1),d?l.done=!0:n=!1,l.setValue(f,a.round)&&(r=!0)}}));var l=_t(this),c=l.getValue();if(n){var u=Ke(o.to);c===u&&!r||a.decay?r&&a.decay&&this._onChange(c):(l.setValue(u),this._onChange(u)),this._stop()}else r&&this._onChange(c)}},{key:"set",value:function(e){var t=this;return B.batchedUpdates((function(){t._stop(),t._focus(e),t._set(e)})),this}},{key:"pause",value:function(){this._update({pause:!0})}},{key:"resume",value:function(){this._update({pause:!1})}},{key:"finish",value:function(){var e=this;if(bn(this)){var t=this.animation,n=t.to,r=t.config;B.batchedUpdates((function(){e._onStart(),r.decay||e._set(n,!1),e._stop()}))}return this}},{key:"update",value:function(e){return(this.queue||(this.queue=[])).push(e),this}},{key:"start",value:function(e,t){var n,r=this;return V.und(e)?(n=this.queue||[],this.queue=[]):n=[V.obj(e)?e:(0,g.Z)((0,g.Z)({},t),{},{to:e})],Promise.all(n.map((function(e){return r._update(e)}))).then((function(e){return an(r,e)}))}},{key:"stop",value:function(e){var t=this,n=this.animation.to;return this._focus(this.get()),dn(this._state,e&&this._lastCallId),B.batchedUpdates((function(){return t._stop(n,e)})),this}},{key:"reset",value:function(){this._update({reset:!0})}},{key:"eventObserved",value:function(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}},{key:"_prepareNode",value:function(e){var t,n=this.key||"",r=e.to,o=e.from;(null==(r=V.obj(r)?r[n]:r)||Yt(r))&&(r=void 0),null==(o=V.obj(o)?o[n]:o)&&(o=void 0);var i={to:r,from:o};return yn(this)||(e.reverse&&(r=(t=[o,r])[0],o=t[1]),o=Ke(o),V.und(o)?_t(this)||this._set(r):this._set(o)),i}},{key:"_update",value:function(e,t){var n=this,r=Object.assign({},e),o=this.key,i=this.defaultProps;r.default&&Object.assign(i,Ut(r,(function(e,t){return/^on/.test(t)?Zt(e,o):e}))),On(this,r,"onProps"),Pn(this,"onProps",r,this);var a=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");var s=this._state;return on(++this._lastCallId,{key:o,props:r,defaultProps:i,state:s,actions:{pause:function(){xn(n)||(kn(n,!0),re(s.pauseQueue),Pn(n,"onPause",ln(n,_n(n,n.animation.to)),n))},resume:function(){xn(n)&&(kn(n,!1),bn(n)&&n._resume(),re(s.resumeQueue),Pn(n,"onResume",ln(n,_n(n,n.animation.to)),n))},start:this._merge.bind(this,a)}}).then((function(e){if(r.loop&&e.finished&&(!t||!e.noop)){var o=En(r);if(o)return n._update(o,!0)}return e}))}},{key:"_merge",value:function(e,t,n){var r,o=this;if(t.cancel)return this.stop(!0),n(cn(this));var i=!V.und(e.to),a=!V.und(e.from);if(i||a){if(!(t.callId>this._lastToId))return n(cn(this));this._lastToId=t.callId}var s=this.key,l=this.defaultProps,c=this.animation,u=c.to,d=c.from,f=e.to,p=void 0===f?u:f,h=e.from,m=void 0===h?d:h;a&&!i&&(!t.default||V.und(p))&&(p=m),t.reverse&&(p=(r=[m,p])[0],m=r[1]);var v=!Y(m,d);v&&(c.from=m),m=Ke(m);var y=!Y(p,u);y&&this._focus(p);var b=Yt(t.to),x=c.config,w=x.decay,k=x.velocity;(i||a)&&(x.velocity=0),t.config&&!b&&function(e,t,n){for(var r in n&&(tn(n=(0,g.Z)({},n),t),t=(0,g.Z)((0,g.Z)({},n),t)),tn(e,t),Object.assign(e,t),Qt)null==e[r]&&(e[r]=Qt[r]);var o=e.frequency,i=e.damping,a=e.mass;V.und(o)||(o<.01&&(o=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/o,2)*a,e.friction=4*Math.PI*i*a/o)}(x,zt(t.config,s),t.config!==l.config?zt(l.config,s):void 0);var S=_t(this);if(!S||V.und(p))return n(ln(this,!0));var _=V.und(t.reset)?a&&!t.default:!V.und(m)&&Wt(t.reset,s),E=_?m:this.get(),C=Kt(p),T=V.num(C)||V.arr(C)||gt(C),I=!b&&(!T||Wt(l.immediate||t.immediate,s));if(y){var O=Mt(p);if(O!==S.constructor){if(!I)throw Error("Cannot animate between ".concat(S.constructor.name," and ").concat(O.name,', as the "to" prop suggests'));S=this._set(C)}}var P=S.constructor,R=qe(p),A=!1;if(!R){var M=_||!yn(this)&&v;(y||M)&&(R=!(A=Y(Kt(E),C))),(!Y(c.immediate,I)&&!I||!Y(x.decay,w)||!Y(x.velocity,k))&&(R=!0)}if(A&&bn(this)&&(c.changed&&!_?R=!0:R||this._stop(u)),!b&&((R||qe(u))&&(c.values=S.getPayload(),c.toValues=qe(p)?null:P==Bt?[1]:Q(C)),c.immediate!=I&&(c.immediate=I,!I&&!_&&this._set(u)),R)){var N=c.onRest;X(Bn,(function(e){return On(o,t,e)}));var D=ln(this,_n(this,u));re(this._pendingCalls,D),this._pendingCalls.add(n),c.changed&&B.batchedUpdates((function(){var e;c.changed=!_,null!==N&&void 0!==N&&N(D,o),_?zt(l.onRest,D):null===(e=c.onStart)||void 0===e||e.call(c,D,o)}))}_&&this._set(E),b?n(un(t.to,t,this._state,this)):R?this._start():bn(this)&&!y?this._pendingCalls.add(n):n(sn(E))}},{key:"_focus",value:function(e){var t=this.animation;e!==t.to&&(Ve(this)&&this._detach(),t.to=e,Ve(this)&&this._attach())}},{key:"_attach",value:function(){var e=0,t=this.animation.to;qe(t)&&(Qe(t,this),hn(t)&&(e=t.priority+1)),this.priority=e}},{key:"_detach",value:function(){var e=this.animation.to;qe(e)&&et(e,this)}},{key:"_set",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Ke(e);if(!V.und(r)){var o=_t(this);if(!o||!Y(r,o.getValue())){var i=Mt(r);o&&o.constructor==i?o.setValue(r):Et(this,i.create(r)),o&&B.batchedUpdates((function(){t._onChange(r,n)}))}}return _t(this)}},{key:"_onStart",value:function(){var e=this.animation;e.changed||(e.changed=!0,Pn(this,"onStart",ln(this,_n(this,e.to)),this))}},{key:"_onChange",value:function(e,t){t||(this._onStart(),zt(this.animation.onChange,e,this)),zt(this.defaultProps.onChange,e,this),(0,h.Z)((0,a.Z)(n.prototype),"_onChange",this).call(this,e,t)}},{key:"_start",value:function(){var e=this.animation;_t(this).reset(Ke(e.to)),e.immediate||(e.fromValues=e.values.map((function(e){return e.lastPosition}))),bn(this)||(wn(this,!0),xn(this)||this._resume())}},{key:"_resume",value:function(){q.skipAnimation?this.finish():pe.start(this)}},{key:"_stop",value:function(e,t){if(bn(this)){wn(this,!1);var n=this.animation;X(n.values,(function(e){e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ye(this,{type:"idle",parent:this});var r=t?cn(this.get()):ln(this.get(),_n(this,null!==e&&void 0!==e?e:n.to));re(this._pendingCalls,r),n.changed&&(n.changed=!1,Pn(this,"onRest",r,this))}}}]),n}(vn);function _n(e,t){var n=Kt(t);return Y(Kt(e.get()),n)}function En(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.loop,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.to,r=zt(t);if(r){var o=!0!==r&&qt(r),i=(o||e).reverse,a=!o||o.reset;return Cn((0,g.Z)((0,g.Z)({},e),{},{loop:t,default:!1,pause:void 0,to:!i||Yt(n)?n:void 0,from:a?e.from:void 0,reset:a},o))}}function Cn(e){var t=e=qt(e),n=t.to,r=t.from,o=new Set;return V.obj(n)&&In(n,o),V.obj(r)&&In(r,o),e.keys=o.size?Array.from(o):null,e}function Tn(e){var t=Cn(e);return V.und(t.default)&&(t.default=Ut(t)),t}function In(e,t){J(e,(function(e,n){return null!=e&&t.add(n)}))}var Bn=["onStart","onRest","onChange","onPause","onResume"];function On(e,t,n){e.animation[n]=t[n]!==Ft(t,n)?Zt(t[n],e.key):void 0}function Pn(e,t){for(var n,r,o,i,a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];null!==(n=(r=e.animation)[t])&&void 0!==n&&n.call.apply(n,[r].concat(s)),null===(o=(i=e.defaultProps)[t])||void 0===o||o.call.apply(o,[i].concat(s))}var Rn=["onStart","onChange","onRest"],An=1,Mn=function(){function e(t,n){(0,x.Z)(this,e),this.id=An++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),n&&(this._flush=n),t&&this.start((0,g.Z)({default:!0},t))}return(0,b.Z)(e,[{key:"idle",get:function(){return!this._state.asyncTo&&Object.values(this.springs).every((function(e){return e.idle&&!e.isDelayed&&!e.isPaused}))}},{key:"item",get:function(){return this._item},set:function(e){this._item=e}},{key:"get",value:function(){var e={};return this.each((function(t,n){return e[n]=t.get()})),e}},{key:"set",value:function(e){for(var t in e){var n=e[t];V.und(n)||this.springs[t].set(n)}}},{key:"update",value:function(e){return e&&this.queue.push(Cn(e)),this}},{key:"start",value:function(e){var t=this.queue;return e?t=Q(e).map(Cn):this.queue=[],this._flush?this._flush(this,t):(Fn(this,t),Nn(this,t))}},{key:"stop",value:function(e,t){if(e!==!!e&&(t=e),t){var n=this.springs;X(Q(t),(function(t){return n[t].stop(!!e)}))}else dn(this._state,this._lastAsyncId),this.each((function(t){return t.stop(!!e)}));return this}},{key:"pause",value:function(e){if(V.und(e))this.start({pause:!0});else{var t=this.springs;X(Q(e),(function(e){return t[e].pause()}))}return this}},{key:"resume",value:function(e){if(V.und(e))this.start({pause:!1});else{var t=this.springs;X(Q(e),(function(e){return t[e].resume()}))}return this}},{key:"each",value:function(e){J(this.springs,e)}},{key:"_onFrame",value:function(){var e=this,t=this._events,n=t.onStart,r=t.onChange,o=t.onRest,i=this._active.size>0,a=this._changed.size>0;(i&&!this._started||a&&!this._started)&&(this._started=!0,ee(n,(function(t){var n=(0,y.Z)(t,2),r=n[0],o=n[1];o.value=e.get(),r(o,e,e._item)})));var s=!i&&this._started,l=a||s&&o.size?this.get():null;a&&r.size&&ee(r,(function(t){var n=(0,y.Z)(t,2),r=n[0],o=n[1];o.value=l,r(o,e,e._item)})),s&&(this._started=!1,ee(o,(function(t){var n=(0,y.Z)(t,2),r=n[0],o=n[1];o.value=l,r(o,e,e._item)})))}},{key:"eventObserved",value:function(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}B.onFrame(this._onFrame)}}]),e}();function Nn(e,t){return Promise.all(t.map((function(t){return Dn(e,t)}))).then((function(t){return an(e,t)}))}function Dn(e,t,n){return Ln.apply(this,arguments)}function Ln(){return(Ln=(0,f.Z)((0,d.Z)().mark((function e(t,n,r){var o,i,a,s,l,c,u,f,p,h,m,v,g;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.keys,i=n.to,a=n.from,s=n.loop,l=n.onRest,c=n.onResolve,u=V.obj(n.default)&&n.default,s&&(n.loop=!1),!1===i&&(n.to=null),!1===a&&(n.from=null),(f=V.arr(i)||V.fun(i)?i:void 0)?(n.to=void 0,n.onRest=void 0,u&&(u.onRest=void 0)):X(Rn,(function(e){var r=n[e];if(V.fun(r)){var o=t._events[e];n[e]=function(e){var t=e.finished,n=e.cancelled,i=o.get(r);i?(t||(i.finished=!1),n&&(i.cancelled=!0)):o.set(r,{value:null,finished:t||!1,cancelled:n||!1})},u&&(u[e]=n[e])}})),p=t._state,n.pause===!p.paused?(p.paused=n.pause,re(n.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(n.pause=!0),h=(o||Object.keys(t.springs)).map((function(e){return t.springs[e].start(n)})),m=!0===n.cancel||!0===Ft(n,"cancel"),(f||m&&p.asyncId)&&h.push(on(++t._lastAsyncId,{props:n,state:p,actions:{pause:K,resume:K,start:function(e,n){m?(dn(p,t._lastAsyncId),n(cn(t))):(e.onRest=l,n(un(f,e,p,t)))}}})),e.t0=p.paused,!e.t0){e.next=12;break}return e.next=12,new Promise((function(e){p.resumeQueue.add(e)}));case 12:return e.t1=an,e.t2=t,e.next=16,Promise.all(h);case 16:if(e.t3=e.sent,v=(0,e.t1)(e.t2,e.t3),!s||!v.finished||r&&v.noop){e.next=22;break}if(!(g=En(n,s,i))){e.next=22;break}return e.abrupt("return",(Fn(t,[g]),Dn(t,g,!0)));case 22:return e.abrupt("return",(c&&B.batchedUpdates((function(){return c(v,t,t.item)})),v));case 23:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function jn(e,t){var n=(0,g.Z)({},e.springs);return t&&X(Q(t),(function(e){V.und(e.keys)&&(e=Cn(e)),V.obj(e.to)||(e=(0,g.Z)((0,g.Z)({},e),{},{to:void 0})),Zn(n,e,(function(e){return Wn(e)}))})),zn(e,n),n}function zn(e,t){J(t,(function(t,n){e.springs[n]||(e.springs[n]=t,Qe(t,e))}))}function Wn(e,t){var n=new Sn;return n.key=e,t&&Qe(n,t),n}function Zn(e,t,n){t.keys&&X(t.keys,(function(r){(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Fn(e,t){X(t,(function(t){Zn(e.springs,t,(function(t){return Wn(t,e)}))}))}var Hn,Un,$n=function(e){var t=e.children,n=(0,o.Z)(e,_),r=(0,k.useContext)(Gn),i=n.pause||!!r.pause,a=n.immediate||!!r.immediate;n=function(e,t){var n=(0,k.useState)((function(){return{inputs:t,result:e()}})),r=(0,y.Z)(n,1)[0],o=(0,k.useRef)(),i=o.current,a=i;return a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=r,(0,k.useEffect)((function(){o.current=a,i==r&&(r.inputs=r.result=void 0)}),[a]),a.result}((function(){return{pause:i,immediate:a}}),[i,a]);var s=Gn.Provider;return k.createElement(s,{value:n},t)},Gn=(Hn=$n,Un={},Object.assign(Hn,k.createContext(Un)),Hn.Provider._context=Hn,Hn.Consumer._context=Hn,Hn);$n.Provider=Gn.Provider,$n.Consumer=Gn.Consumer;var qn=function(){var e=[],t=function(t){vt("".concat(ft,'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions'));var r=[];return X(e,(function(e,o){if(V.und(t))r.push(e.start());else{var i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){var n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){var t=arguments;return X(e,(function(e){return e.pause.apply(e,(0,w.Z)(t))})),this},t.resume=function(){var t=arguments;return X(e,(function(e){return e.resume.apply(e,(0,w.Z)(t))})),this},t.set=function(t){X(e,(function(e,n){var r=V.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){var n=this,r=[];return X(e,(function(e,o){if(V.und(t))r.push(e.start());else{var i=n._getProps(t,e,o);i&&r.push(e.start(i))}})),r},t.stop=function(){var t=arguments;return X(e,(function(e){return e.stop.apply(e,(0,w.Z)(t))})),this},t.update=function(t){var n=this;return X(e,(function(e,r){return e.update(n._getProps(t,e,r))})),this};var n=function(e,t,n){return V.fun(e)?e(n,t):e};return t._getProps=n,t};function Kn(e,t,n){var r=arguments,o=V.fun(t)&&t;o&&!n&&(n=[]);var i=(0,k.useMemo)((function(){return o||3==r.length?qn():void 0}),[]),a=(0,k.useRef)(0),s=bt(),l=(0,k.useMemo)((function(){return{ctrls:[],queue:[],flush:function(e,t){var n=jn(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((function(t){return!e.springs[t]}))?Nn(e,t):new Promise((function(r){zn(e,n),l.queue.push((function(){r(Nn(e,t))})),s()}))}}}),[]),c=(0,k.useRef)((0,w.Z)(l.ctrls)),u=[],d=kt(e)||0;function f(e,n){for(var r=e;r<n;r++){var i=c.current[r]||(c.current[r]=new Mn(null,l.flush)),a=o?o(r,i):t[r];a&&(u[r]=Tn(a))}}(0,k.useMemo)((function(){X(c.current.slice(e,d),(function(e){Xt(e,i),e.stop(!0)})),c.current.length=e,f(d,e)}),[e]),(0,k.useMemo)((function(){f(0,Math.min(d,e))}),n);var p=c.current.map((function(e,t){return jn(e,u[t])})),h=(0,k.useContext)($n),m=kt(h),v=h!==m&&Vt(h);yt((function(){a.current++,l.ctrls=c.current;var e=l.queue;e.length&&(l.queue=[],X(e,(function(e){return e()}))),X(c.current,(function(e,t){null!==i&&void 0!==i&&i.add(e),v&&e.start({default:h});var n=u[t];n&&(Jt(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),xt((function(){return function(){X(l.ctrls,(function(e){return e.stop(!0)}))}}));var y=p.map((function(e){return(0,g.Z)({},e)}));return i?[y,i]:y}function Vn(e,t){var n=V.fun(e),r=Kn(1,n?e:[e],n?t||[]:t),o=(0,y.Z)(r,2),i=(0,y.Z)(o[0],1),a=i[0],s=o[1];return n||2==arguments.length?[a,s]:a}function Yn(e,t,n){var r=arguments,o=V.fun(t)&&t,i=o?o():t,a=i.reset,s=i.sort,l=i.trail,c=void 0===l?0:l,u=i.expires,d=void 0===u||u,f=i.exitBeforeEnter,p=void 0!==f&&f,h=i.onDestroyed,m=i.ref,v=i.config,y=(0,k.useMemo)((function(){return o||3==r.length?qn():void 0}),[]),b=Q(e),x=[],w=(0,k.useRef)(null),S=a?null:w.current;yt((function(){w.current=x})),xt((function(){return X(x,(function(e){null!==y&&void 0!==y&&y.add(e.ctrl),e.ctrl.ref=y})),function(){X(w.current,(function(e){e.expired&&clearTimeout(e.expirationId),Xt(e.ctrl,y),e.ctrl.stop(!0)}))}}));var _=Jn(b,o?o():t,S),E=a&&w.current||[];yt((function(){return X(E,(function(e){var t=e.ctrl,n=e.item,r=e.key;Xt(t,y),zt(h,n,r)}))}));var C=[];if(S&&X(S,(function(e,t){e.expired?(clearTimeout(e.expirationId),E.push(e)):~(t=C[t]=_.indexOf(e.key))&&(x[t]=e)})),X(b,(function(e,t){x[t]||(x[t]={key:_[t],item:e,phase:"mount",ctrl:new Mn},x[t].ctrl.item=e)})),C.length){var T=-1,I=o?o():t,B=I.leave;X(C,(function(e,t){var n=S[t];~e?(T=x.indexOf(n),x[T]=(0,g.Z)((0,g.Z)({},n),{},{item:b[e]})):B&&x.splice(++T,0,n)}))}V.fun(s)&&x.sort((function(e,t){return s(e.item,t.item)}));var O=-c,P=bt(),R=Ut(t),A=new Map,M=(0,k.useRef)(new Map),N=(0,k.useRef)(!1);X(x,(function(e,n){var r,i,a=e.key,s=e.phase,l=o?o():t,u=zt(l.delay||0,a);if("mount"==s)r=l.enter,i="enter";else{var f=_.indexOf(a)<0;if("leave"!=s)if(f)r=l.leave,i="leave";else{if(!(r=l.update))return;i="update"}else{if(f)return;r=l.enter,i="enter"}}if(r=zt(r,e.item,n),!(r=V.obj(r)?qt(r):{to:r}).config){var h=v||R.config;r.config=zt(h,e.item,n,i)}O+=c;var y=(0,g.Z)((0,g.Z)({},R),{},{delay:u+O,ref:m,immediate:l.immediate,reset:!1},r);if("enter"==i&&V.und(y.from)){var b=o?o():t,x=V.und(b.initial)||S?b.from:b.initial;y.from=zt(x,e.item,n)}var k=y.onResolve;y.onResolve=function(e){zt(k,e);var t=w.current,n=t.find((function(e){return e.key===a}));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){var r=t.every((function(e){return e.ctrl.idle}));if("leave"==n.phase){var o=zt(d,n.item);if(!1!==o){var i=!0===o?0:o;if(n.expired=!0,!r&&i>0)return void(i<=2147483647&&(n.expirationId=setTimeout(P,i)))}}r&&t.some((function(e){return e.expired}))&&(M.current.delete(n),p&&(N.current=!0),P())}};var E=jn(e.ctrl,y);"leave"===i&&p?M.current.set(e,{phase:i,springs:E,payload:y}):A.set(e,{phase:i,springs:E,payload:y})}));var D=(0,k.useContext)($n),L=kt(D),j=D!==L&&Vt(D);yt((function(){j&&X(x,(function(e){e.ctrl.start({default:D})}))}),[D]),X(A,(function(e,t){if(M.current.size){var n=x.findIndex((function(e){return e.key===t.key}));x.splice(n,1)}})),yt((function(){X(M.current.size?M.current:A,(function(e,t){var n=e.phase,r=e.payload,o=t.ctrl;t.phase=n,null!==y&&void 0!==y&&y.add(o),j&&"enter"==n&&o.start({default:D}),r&&(Jt(o,r.ref),!o.ref&&!y||N.current?(o.start(r),N.current&&(N.current=!1)):o.update(r))}))}),a?void 0:n);var z=function(e){return k.createElement(k.Fragment,null,x.map((function(t,n){var r=(A.get(t)||t.ctrl).springs,o=e((0,g.Z)({},r),t.item,t,n);return o&&o.type?k.createElement(o.type,(0,g.Z)((0,g.Z)({},o.props),{},{key:V.str(t.key)||V.num(t.key)?t.key:t.ctrl.id,ref:o.ref})):o})))};return y?[z,y]:z}var Xn=1;function Jn(e,t,n){var r=t.key,o=t.keys,i=void 0===o?r:o;if(null===i){var a=new Set;return e.map((function(e){var t=n&&n.find((function(t){return t.item===e&&"leave"!==t.phase&&!a.has(t)}));return t?(a.add(t),t.key):Xn++}))}return V.und(i)?e:V.fun(i)?e.map(i):Q(i)}var Qn=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,o){var i;(0,x.Z)(this,n),(i=t.call(this)).source=e,i.idle=!0,i._active=new Set,i.calc=Le.apply(void 0,(0,w.Z)(o));var a=i._get(),s=Mt(a);return Et((0,r.Z)(i),s.create(a)),i}return(0,b.Z)(n,[{key:"advance",value:function(e){var t=this._get();Y(t,this.get())||(_t(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&tr(this._active)&&nr(this)}},{key:"_get",value:function(){var e=V.arr(this.source)?this.source.map(Ke):Q(Ke(this.source));return this.calc.apply(this,(0,w.Z)(e))}},{key:"_start",value:function(){var e=this;this.idle&&!tr(this._active)&&(this.idle=!1,X(Ct(this),(function(e){e.done=!1})),q.skipAnimation?(B.batchedUpdates((function(){return e.advance()})),nr(this)):pe.start(this))}},{key:"_attach",value:function(){var e=this,t=1;X(Q(this.source),(function(n){qe(n)&&Qe(n,e),hn(n)&&(n.idle||e._active.add(n),t=Math.max(t,n.priority+1))})),this.priority=t,this._start()}},{key:"_detach",value:function(){var e=this;X(Q(this.source),(function(t){qe(t)&&et(t,e)})),this._active.clear(),nr(this)}},{key:"eventObserved",value:function(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Q(this.source).reduce((function(e,t){return Math.max(e,(hn(t)?t.priority:0)+1)}),0))}}]),n}(vn);function er(e){return!1!==e.idle}function tr(e){return!e.size||Array.from(e).every(er)}function nr(e){e.idle||(e.idle=!0,X(Ct(e),(function(e){e.done=!0})),Ye(e,{type:"idle",parent:e}))}q.assign({createStringInterpolator:dt,to:function(e,t){return new Qn(e,t)}});pe.advance;var rr=/^--/;function or(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||rr.test(e)||ar.hasOwnProperty(e)&&ar[e]?(""+t).trim():t+"px"}var ir={};var ar={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},sr=["Webkit","Ms","Moz","O"];ar=Object.keys(ar).reduce((function(e,t){return sr.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ar);var lr=/^(matrix|translate|scale|rotate|skew)/,cr=/^(translate)/,ur=/^(rotate|skew)/,dr=function(e,t){return V.num(e)&&0!==e?e+t:e},fr=function e(t,n){return V.arr(t)?t.every((function(t){return e(t,n)})):V.num(t)?t===n:parseFloat(t)===n},pr=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){var r=e.x,i=e.y,a=e.z,s=(0,o.Z)(e,C);(0,x.Z)(this,n);var l=[],c=[];return(r||i||a)&&(l.push([r||0,i||0,a||0]),c.push((function(e){return["translate3d(".concat(e.map((function(e){return dr(e,"px")})).join(","),")"),fr(e,0)]}))),J(s,(function(e,t){if("transform"===t)l.push([e||""]),c.push((function(e){return[e,""===e]}));else if(lr.test(t)){if(delete s[t],V.und(e))return;var n=cr.test(t)?"px":ur.test(t)?"deg":"";l.push(Q(e)),c.push("rotate3d"===t?function(e){var t=(0,y.Z)(e,4),r=t[0],o=t[1],i=t[2],a=t[3];return["rotate3d(".concat(r,",").concat(o,",").concat(i,",").concat(dr(a,n),")"),fr(a,0)]}:function(e){return["".concat(t,"(").concat(e.map((function(e){return dr(e,n)})).join(","),")"),fr(e,t.startsWith("scale")?1:0)]})}})),l.length&&(s.transform=new hr(l,c)),t.call(this,s)}return(0,b.Z)(n)}(Pt),hr=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var o;return(0,x.Z)(this,n),(o=t.call(this)).inputs=e,o.transforms=r,o._value=null,o}return(0,b.Z)(n,[{key:"get",value:function(){return this._value||(this._value=this._get())}},{key:"_get",value:function(){var e=this,t="",n=!0;return X(this.inputs,(function(r,o){var i=Ke(r[0]),a=e.transforms[o](V.arr(i)?i:r.map(Ke)),s=(0,y.Z)(a,2),l=s[0],c=s[1];t+=" "+l,n=n&&c})),n?"none":t}},{key:"observerAdded",value:function(e){var t=this;1==e&&X(this.inputs,(function(e){return X(e,(function(e){return qe(e)&&Qe(e,t)}))}))}},{key:"observerRemoved",value:function(e){var t=this;0==e&&X(this.inputs,(function(e){return X(e,(function(e){return qe(e)&&et(e,t)}))}))}},{key:"eventObserved",value:function(e){"change"==e.type&&(this._value=null),Ye(this,e)}}]),n}(Xe);q.assign({batchedUpdates:S.unstable_batchedUpdates,createStringInterpolator:dt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var mr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.applyAnimatedValues,r=void 0===n?function(){return!1}:n,o=t.createAnimatedStyle,i=void 0===o?function(e){return new Pt(e)}:o,a=t.getComponentProps,s=void 0===a?function(e){return e}:a,l={applyAnimatedValues:r,createAnimatedStyle:i,getComponentProps:s},c=function e(t){var n=jt(t)||"Anonymous";return(t=V.str(t)?e[t]||(e[t]=Nt(t,l)):t[Lt]||(t[Lt]=Nt(t,l))).displayName="Animated(".concat(n,")"),t};return J(e,(function(t,n){V.arr(e)&&(n=jt(t)),c[n]=c(t)})),{animated:c}}(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;var n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t.className,i=t.style,a=t.children,s=t.scrollTop,l=t.scrollLeft,c=t.viewBox,u=(0,o.Z)(t,E),d=Object.values(u),f=Object.keys(u).map((function(t){return n||e.hasAttribute(t)?t:ir[t]||(ir[t]=t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})))}));for(var p in void 0!==a&&(e.textContent=a),i)if(i.hasOwnProperty(p)){var h=or(p,i[p]);rr.test(p)?e.style.setProperty(p,h):e.style[p]=h}f.forEach((function(t,n){e.setAttribute(t,d[n])})),void 0!==r&&(e.className=r),void 0!==s&&(e.scrollTop=s),void 0!==l&&(e.scrollLeft=l),void 0!==c&&e.setAttribute("viewBox",c)},createAnimatedStyle:function(e){return new pr(e)},getComponentProps:function(e){e.scrollTop,e.scrollLeft;return(0,o.Z)(e,T)}}),vr=mr.animated,gr=typeof window>"u"||!window.location||!window.location.href||!window.matchMedia,yr=function(){return gr?{matches:!0,addListener:function(){},removeListener:function(){}}:window.matchMedia("(prefers-reduced-motion: reduce)")};function br(){var e=k.useState(yr().matches),t=(0,y.Z)(e,2),n=t[0],r=t[1];return k.useEffect((function(){var e=yr(),t=function(){r(e.matches)};return e.addListener(t),function(){e.removeListener(t)}}),[]),n}},5026:function(e,t,n){"use strict";n.r(t),n.d(t,{AspectRatio:function(){return d}});var r,o=n(168),i=n(1923),a=n(7666),s=n(2791),l=/^(\d+:\d*)$/,c=function(e){var t=e.ratio;if(null==t||""===t)throw new Error("[Paste: AspectRatio] Missing 'ratio' prop.");if(!function(e){return l.test(e)}(t))throw new Error("[Paste: AspectRatio] 'ratio' is invalid. Use a colon-separated number pattern (4:3).")},u=a.iK.div(r||(r=(0,o.Z)(["\n  position: relative;\n\n  embed,\n  iframe,\n  object,\n  video {\n    position: absolute;\n    top: 0;\n    left: 0;\n    height: 100%;\n    width: 100%;\n  }\n"]))),d=s.forwardRef((function(e,t){c(e);var n=e.ratio.split(":").map(Number),r=n[1]/n[0]*100;return s.createElement(u,{ref:t,style:{paddingBottom:"".concat(r,"%")}},s.createElement(i.Box,{position:"absolute",top:0,right:0,bottom:0,left:0},e.children))}));d.displayName="AspectRatio"},1585:function(e,t,n){"use strict";n.r(t),n.d(t,{Avatar:function(){return M},AvatarGroup:function(){return B}});var r,o,i,a=n(1413),s=n(4925),l=n(7762),c=n(1923),u=n(9132),d=n(2791),f=n(1543),p=["name","size","element","src","icon","color","variant"],h=Object.create,m=Object.defineProperty,v=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,x=function(e,t){return function(){return t||(0,e[g(e)[0]])((t={exports:{}}).exports,t),t.exports}},w=x({"../../../../node_modules/react-is/cjs/react-is.production.min.js":function(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.for("react.module.reference");function v(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case f:case a:return e;default:return h}}case n:return h}}}e.ContextConsumer=s,e.ContextProvider=a,e.Element=t,e.ForwardRef=c,e.Fragment=r,e.Lazy=p,e.Memo=f,e.Portal=n,e.Profiler=i,e.StrictMode=o,e.Suspense=u,e.SuspenseList=d,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return v(e)===s},e.isContextProvider=function(e){return v(e)===a},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},e.isForwardRef=function(e){return v(e)===c},e.isFragment=function(e){return v(e)===r},e.isLazy=function(e){return v(e)===p},e.isMemo=function(e){return v(e)===f},e.isPortal=function(e){return v(e)===n},e.isProfiler=function(e){return v(e)===i},e.isStrictMode=function(e){return v(e)===o},e.isSuspense=function(e){return v(e)===u},e.isSuspenseList=function(e){return v(e)===d},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===o||e===u||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===m||void 0!==e.getModuleId)},e.typeOf=v}}),k=x({"../../../../node_modules/react-is/index.js":function(e,t){t.exports=w()}}),S=(r=k(),i=null!=r?h(y(r)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(g(t));try{var a=function(){var i=o.value;!b.call(e,i)&&i!==n&&m(e,i,{get:function(){return t[i]},enumerable:!(r=v(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!o&&r&&r.__esModule?i:m(i,"default",{value:r,enumerable:!0}),r)),_=function(e){if("string"==typeof e&&e.includes("sizeIcon"))return e.replace("sizeIcon","lineHeight");throw new Error("[Avatar]: size must be of type IconSizeOptions.")},E=function(e){if("string"==typeof e&&e.includes("sizeIcon"))switch(e){case"sizeIcon10":case"sizeIcon20":case"sizeIcon30":case"sizeIcon40":case"sizeIcon50":case"sizeIcon60":default:return"fontSize10";case"sizeIcon70":return"fontSize20";case"sizeIcon80":return"fontSize30";case"sizeIcon90":return"fontSize40";case"sizeIcon100":return"fontSize60";case"sizeIcon110":return"fontSize70"}throw new Error("[Avatar]: size must be of type IconSizeOptions.")},C=function(e){if("string"==typeof e&&e.includes("sizeIcon"))switch(e){case"sizeIcon10":case"sizeIcon20":case"sizeIcon30":case"sizeIcon40":default:return"sizeIcon10";case"sizeIcon50":case"sizeIcon60":return"sizeIcon20";case"sizeIcon70":return"sizeIcon30";case"sizeIcon80":return"sizeIcon40";case"sizeIcon90":return"sizeIcon50";case"sizeIcon100":return"sizeIcon70";case"sizeIcon110":return"sizeIcon80"}throw new Error("[Avatar]: size must be of type IconSizeOptions.")},T=function(e,t){if("user"===t)switch(e){case"sizeIcon10":case"sizeIcon20":case"sizeIcon30":return"spaceNegative10";case"sizeIcon40":case"sizeIcon50":case"sizeIcon60":case"sizeIcon70":return"spaceNegative20";case"sizeIcon80":case"sizeIcon90":return"spaceNegative30";case"sizeIcon100":return"spaceNegative40";case"sizeIcon110":return"spaceNegative50"}switch(e){case"sizeIcon10":case"sizeIcon20":case"sizeIcon30":return"spaceNegative10";default:return"spaceNegative20"}},I=d.createContext({}),B=d.forwardRef((function(e,t){var n=e.variant,r=e.size,o=e.children,i=e.element,a=void 0===i?"AVATAR_GROUP":i;return d.createElement(I.Provider,{value:{variant:n,size:r}},d.createElement(f.Stack,{orientation:"horizontal",spacing:T(r,n),element:a,ref:t},o))}));B.displayName="AvatarGroup";var O="sizeIcon70",P=function(e){var t=e.name,n=e.size,r=void 0===n?O:n,o=e.src,i=e.icon,a=function(e){if("string"==typeof e)return{lineHeight:_(e),fontSize:E(e),iconSize:C(e)};if(Array.isArray(e))return{lineHeight:e.map((function(e){return null!=e?_(e):null})),fontSize:e.map((function(e){return null!=e?E(e):null})),iconSize:e.map((function(e){return null!=e?C(e):null}))};throw new Error("[Avatar]: size must be a string or an array")}(d.useContext(I).size||r);if(null!=o)return d.createElement(c.Box,{as:"img",alt:t,maxWidth:"100%",boxShadow:"shadowBorderWeaker",src:o,size:r,title:t});if(null!=i){if(!(0,S.isValidElementType)(i)||"string"!=typeof i.displayName||!i.displayName.includes("Icon"))throw new Error("[Paste Avatar]: icon prop expected to be a Paste icon only.");return d.createElement(c.Box,{maxWidth:"100%",size:r,display:"flex",alignItems:"center",justifyContent:"center"},d.createElement(i,{decorative:!1,title:t,size:a.iconSize}))}return d.createElement(u.Text,{as:"abbr",display:"inline-block",fontSize:a.fontSize,fontWeight:"fontWeightSemibold",lineHeight:a.lineHeight,verticalAlign:"top",textDecoration:"none",title:t,color:"inherit"},t.split(" ").map((function(e){return e.slice(0,1)})).reduce((function(e,t,n,r){return 0===n||n===r.length-1?"".concat(e).concat(t):e}),""))};P.displayName="AvatarContents";var R={default:{backgroundColor:"colorBackgroundUser",boxShadow:"shadowBorderUser",color:"colorTextUser"},decorative10:{backgroundColor:"colorBackgroundDecorative10Weakest",boxShadow:"shadowBorderDecorative10Weaker",color:"colorTextDecorative10"},decorative20:{backgroundColor:"colorBackgroundDecorative20Weakest",boxShadow:"shadowBorderDecorative20Weaker",color:"colorTextDecorative20"},decorative30:{backgroundColor:"colorBackgroundDecorative30Weakest",boxShadow:"shadowBorderDecorative30Weaker",color:"colorTextDecorative30"},decorative40:{backgroundColor:"colorBackgroundDecorative40Weakest",boxShadow:"shadowBorderDecorative40Weaker",color:"colorTextDecorative40"}},A={user:{borderRadius:"borderRadiusCircle"},entity:{borderRadius:"borderRadius30"}},M=d.forwardRef((function(e,t){var n=e.name,r=e.size,o=void 0===r?O:r,i=e.element,l=void 0===i?"AVATAR":i,u=e.src,f=e.icon,h=e.color,m=void 0===h?"default":h,v=e.variant,g=void 0===v?"user":v,y=(0,s.Z)(e,p);void 0===n&&console.error("[Paste Avatar]: name prop is required");var b=d.useContext(I),x=b.variant,w=b.size;return d.createElement(c.Box,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},(0,c.safelySpreadBoxProps)(y)),{},{as:"div",element:l,overflow:"hidden",textAlign:"center",flexShrink:0,ref:t,size:w||o},R[m]),A[x||g]),u&&{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"}),d.createElement(P,{name:n,size:w||o,icon:f,src:u}))}));M.displayName="Avatar"},6431:function(e,t,n){"use strict";n.r(t),n.d(t,{Badge:function(){return y},BadgeVariants:function(){return g},badgeBaseStyles:function(){return f},badgeButtonStyles:function(){return h},badgeVariantStyles:function(){return p},getBadgeButtonStyles:function(){return v},useResizeChildIcons:function(){return d}});var r=n(4925),o=n(1413),i=n(9628),a=n(2791),s=n(1076),l=n(1923),c=n(7088),u=["as","href","variant","size","children","element"],d=function(e){var t=(0,i.Hb)();return Array.isArray(e)?a.Children.map(e,(function(e){var n,r;return"object"==typeof e&&!Array.isArray(e)&&"string"==typeof(null===e||void 0===e||null===(n=e.type)||void 0===n?void 0:n.displayName)&&null!==e&&void 0!==e&&null!==(r=e.type)&&void 0!==r&&r.displayName.includes("Icon")?a.cloneElement(e,(0,o.Z)((0,o.Z)({},e.props),{},{key:t(e),size:"sizeIcon10"})):a.createElement(a.Fragment,{key:t(e)},e)})):e},f={alignItems:"center",border:"unset",borderRadius:"borderRadius20",columnGap:"space20",display:"flex",fontSize:"fontSize20",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight10",maxWidth:"max-content",appearance:"none",background:"none",outline:"none",fontFamily:"inherit",position:"relative"},p={success:{backgroundColor:"colorBackgroundSuccessWeakest",color:"colorTextSuccess",boxShadow:"shadowBorderSuccessWeaker"},error:{backgroundColor:"colorBackgroundErrorWeakest",color:"colorTextError",boxShadow:"shadowBorderErrorWeaker"},warning:{backgroundColor:"colorBackgroundWarningWeakest",color:"colorTextWarning",boxShadow:"shadowBorderWarningWeaker"},new:{backgroundColor:"colorBackgroundNewWeakest",color:"colorTextNew",boxShadow:"shadowBorderNewWeaker"},neutral:{backgroundColor:"colorBackgroundNeutralWeakest",color:"colorTextNeutral",boxShadow:"shadowBorderNeutralWeaker"},subaccount:{backgroundColor:"colorBackgroundSubaccount",color:"colorTextSubaccount",boxShadow:"shadowBorderSubaccount"},decorative10:{backgroundColor:"colorBackgroundDecorative10Weakest",color:"colorTextDecorative10",boxShadow:"shadowBorderDecorative10Weaker"},decorative20:{backgroundColor:"colorBackgroundDecorative20Weakest",color:"colorTextDecorative20",boxShadow:"shadowBorderDecorative20Weaker"},decorative30:{backgroundColor:"colorBackgroundDecorative30Weakest",color:"colorTextDecorative30",boxShadow:"shadowBorderDecorative30Weaker"},decorative40:{backgroundColor:"colorBackgroundDecorative40Weakest",color:"colorTextDecorative40",boxShadow:"shadowBorderDecorative40Weaker"},brand10:{backgroundColor:"colorBackgroundBrand10",color:"colorTextBrand",boxShadow:"shadowBorderBrand10"},brand20:{backgroundColor:"colorBackgroundBrand20",color:"colorTextBrand",boxShadow:"shadowBorderBrand20"},brand30:{backgroundColor:"colorBackgroundBrand30",color:"colorTextBrand",boxShadow:"shadowBorderBrand30"},neutral_counter:{backgroundColor:"colorBackgroundNeutralWeakest",color:"colorTextNeutral",borderRadius:"borderRadiusPill",boxShadow:"shadowBorderNeutralWeaker"},error_counter:{backgroundColor:"colorBackgroundErrorWeakest",color:"colorTextError",borderRadius:"borderRadiusPill",boxShadow:"shadowBorderErrorWeaker"},default:{backgroundColor:"colorBackgroundBody",color:"colorText",boxShadow:"shadowBorderWeaker"},notification_counter:{borderRadius:"borderRadiusPill",backgroundColor:"colorBackgroundNotification",color:"colorTextInverse",boxShadow:"shadowBorderNotification"},info:{backgroundColor:"colorBackgroundNeutralWeakest",color:"colorTextNeutral",boxShadow:"shadowBorderNeutralWeaker"}},h={success:{boxShadow:"shadowBorderBottomSuccessWeaker"},error:{boxShadow:"shadowBorderBottomErrorWeaker"},warning:{boxShadow:"shadowBorderBottomWarningWeaker"},new:{boxShadow:"shadowBorderBottomNewWeaker"},neutral:{boxShadow:"shadowBorderBottomNeutralWeaker"},subaccount:{boxShadow:"shadowBorderBottomSubaccount"},decorative10:{boxShadow:"shadowBorderBottomDecorative10Weaker"},decorative20:{boxShadow:"shadowBorderBottomDecorative20Weaker"},decorative30:{boxShadow:"shadowBorderBottomDecorative30Weaker"},decorative40:{boxShadow:"shadowBorderBottomDecorative40Weaker"},brand10:{boxShadow:"shadowBorderBottomBrand10Strong"},brand20:{boxShadow:"shadowBorderBottomBrand20Strong"},brand30:{boxShadow:"shadowBorderBottomBrand30Strong"},neutral_counter:{boxShadow:"shadowBorderBottomNeutralWeaker"},error_counter:{boxShadow:"shadowBorderBottomErrorWeaker"},notification_counter:{boxShadow:"shadowBorderBottomNotificationStronger"},default:{boxShadow:"shadowBorderBottomDecorative10Weaker"},info:{boxShadow:"shadowBorderBottomNeutralWeaker"}},m={textDecoration:"underline",cursor:"pointer",_hover:{textDecoration:"none"},_focus:{textDecoration:"none",boxShadow:"shadowFocus"}},v=function(e){return(0,o.Z)((0,o.Z)({},h[e]),{},{cursor:"pointer",_hover:{top:"1px",boxShadow:"none"},_focus:{top:"1px",boxShadow:"shadowFocus"}})},g=["neutral","warning","error","success","new","subaccount","decorative10","decorative20","decorative30","decorative40","brand10","brand20","brand30","neutral_counter","error_counter","default","notification_counter","info"],y=a.forwardRef((function(e,t){var n=e.as,i=e.href,h=e.variant,g=e.size,y=void 0===g?"default":g,b=e.children,x=e.element,w=void 0===x?"BADGE":x,k=(0,r.Z)(e,u),S=d(b),_=(0,o.Z)((0,o.Z)({},f),p[h]);return"a"===n&&(_=(0,o.Z)((0,o.Z)({},_),m)),"button"===n&&(_=(0,o.Z)((0,o.Z)({},_),v(h))),a.createElement(l.Box,(0,o.Z)((0,o.Z)((0,o.Z)({},(0,l.safelySpreadBoxProps)(k)),i?(0,s.secureExternalLink)(i):{}),{},{href:i,as:n,element:w,paddingX:"small"===y?"space20":"space30",paddingY:"small"===y?"space10":"space20",minWidth:"small"===y?"sizeBase50":"size0",justifyContent:"center",variant:h,ref:t},_),"error_counter"===h?a.createElement(c.P,{element:"".concat(w,"_ICON"),decorative:!0,size:"sizeIcon10"}):null,S)}));y.displayName="Badge"},7549:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseRadioCheckboxControl:function(){return h},BaseRadioCheckboxHelpText:function(){return g},BaseRadioCheckboxLabel:function(){return m},BaseRadioCheckboxLabelText:function(){return v}});var r=n(1413),o=n(4925),i=n(1923),a=n(324),s=n(9114),l=n(4562),c=n(9132),u=n(2791),d=["children","disabled","applyHoverStyles","element"],f=["children"],p=["children","element"],h=u.forwardRef((function(e,t){var n=e.children,i=e.disabled,a=e.applyHoverStyles,s=void 0!==a&&a,c=e.element,f=void 0===c?"BASE_RADIO_CHECKBOX_CONTROL":c,p=(0,o.Z)(e,d);return u.createElement(l.SiblingBox,(0,r.Z)({as:"span",ref:t,display:"flex",element:f,backgroundColor:"colorBackgroundBody",borderColor:s?"colorBorderPrimaryStronger":"colorBorder",borderStyle:"solid",borderWidth:"borderWidth10",height:"sizeSquare50",marginRight:"space20",marginY:"space10",width:"sizeSquare50",color:"colorTextWeakest",_hoverSibling:{borderColor:"colorBorderPrimaryStronger",color:"colorTextWeakest"},_focusSibling:{borderColor:"colorBorder",boxShadow:"shadowFocus",color:"colorTextInverse"},_activeSibling:i?void 0:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger",color:"colorTextWeakest"},_checkedSibling:{borderColor:"colorBorderPrimary",backgroundColor:"colorBackgroundPrimary",color:"colorTextInverse"},_disabledSibling:{borderColor:"colorBorderWeak",backgroundColor:"colorBackground"},_invalidSibling:{borderColor:"colorBorderError"},_invalidAndHoverSibling:{borderColor:"colorBorderErrorStronger"},_invalidAndDisabledSibling:{borderColor:"colorBorderWeak"},_checkedAndHoverSibling:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger",color:"colorTextWeakest"},_checkedAndFocusSibling:{borderColor:"colorBorderPrimary",backgroundColor:"colorBackgroundPrimary",color:"colorTextInverse"},_checkedAndActiveSibling:i?void 0:{borderColor:"colorBorderPrimaryStronger",backgroundColor:"colorBackgroundPrimaryStronger"},_checkedAndDisabledSibling:{borderColor:"colorBorderWeak",backgroundColor:"colorBackground",color:"colorTextWeaker"},_checkedAndInvalidSibling:{borderColor:"colorBorderError",backgroundColor:"colorBackgroundError",color:"colorTextInverse"},_checkedAndInvalidAndHoverSibling:{borderColor:"colorBorderErrorStronger",backgroundColor:"colorBackgroundErrorStronger"},_checkedAndInvalidAndDisabledSibling:{borderColor:"colorBorderWeak",backgroundColor:"colorBackground",color:"colorTextWeaker"}},p),n)}));h.displayName="BaseRadioCheckboxControl";var m=u.forwardRef((function(e,t){var n=e.children,a=(0,o.Z)(e,f);return u.createElement(s.Label,(0,r.Z)((0,r.Z)({},a),{},{marginBottom:"space0",ref:t}),u.createElement(i.Box,{as:"span",display:"flex"},n))}));m.displayName="BaseRadioCheckboxLabel";var v=u.forwardRef((function(e,t){var n=e.children,i=e.element,a=void 0===i?"BASE_RADIO_CHECKBOX_LABEL_TEXT":i,s=(0,o.Z)(e,p);return u.createElement(c.Text,(0,r.Z)({as:"span",color:"currentColor",marginLeft:"space20",element:a,ref:t},s),n)}));v.displayName="BaseRadioCheckboxLabelText";var g=u.forwardRef((function(e,t){var n=e.children,r=e.helpTextId,o=e.element,s=void 0===o?"BASE_RADIO_CHECKBOX_HELP_TEXT_WRAPPER":o;return u.createElement(i.Box,{as:"span",display:"block",element:s,marginLeft:"space70",ref:t},u.createElement(a.HelpText,{id:r,marginTop:"space0"},n))}));g.displayName="BaseRadioCheckboxHelpText"},4056:function(e,t,n){"use strict";n.r(t),n.d(t,{Blockquote:function(){return v},BlockquoteCitation:function(){return y},BlockquoteContent:function(){return g}});var r=n(1413),o=n(4925),i=n(1923),a=n(9628),s=n(2791),l=n(8015),c=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,c=e.size,u=e.color,d=e.title,f=e.decorative,p="BlockquoteIcon-".concat((0,a.Dt)());if(!f&&null==d)throw new Error("[BlockquoteIcon]: Missing a title for non-decorative icon.");return s.createElement(l.a,{as:n,display:r,element:i,size:c,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M15.865 16.305a44.92 44.92 0 01-1.698.028c-.707 0-1.264-.011-1.699-.028-1.018-.039-1.754-.819-1.781-1.824a62.15 62.15 0 01-.02-1.67V9.646c0-3.19 2.12-5.165 4.585-5.926.335-.103.765-.073 1.061.236.224.232.378.5.484.738.267.605-.107 1.181-.552 1.454-.707.433-1.218.918-1.554 1.48-.29.485-.459 1.044-.498 1.705.635 0 1.148.007 1.56.017 1.065.025 1.87.833 1.896 1.897a65.173 65.173 0 01-.002 3.234c-.028 1.005-.764 1.785-1.782 1.824zm-8.333 0a44.92 44.92 0 01-1.699.028c-.706 0-1.263-.011-1.698-.028-1.018-.039-1.754-.819-1.782-1.824-.011-.432-.02-.981-.02-1.67V9.646c0-3.19 2.12-5.164 4.585-5.925.336-.104.765-.074 1.062.235.224.232.378.5.483.738.268.606-.106 1.182-.552 1.454-.707.434-1.217.918-1.553 1.48-.29.485-.459 1.044-.499 1.705.636 0 1.149.007 1.56.017 1.065.025 1.87.833 1.897 1.897.01.415.017.93.017 1.564 0 .689-.008 1.238-.02 1.67-.027 1.005-.764 1.785-1.78 1.824z"})))}));c.displayName="BlockquoteIcon";var u=n(1076),d=n(9132),f=["children","element","url","marginBottom"],p=["children","element"],h=["element","author","source"],m=s.createContext({}),v=s.forwardRef((function(e,t){var n=e.children,a=e.element,l=void 0===a?"BLOCKQUOTE":a,u=e.url,d=e.marginBottom,p=void 0===d?"space70":d,h=(0,o.Z)(e,f);return s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(h)),{},{ref:t,display:"flex",columnGap:"space50",alignItems:"flex-start",lineHeight:"lineHeight30",fontSize:"fontSize30",marginBottom:p,element:l}),s.createElement(c,{element:"".concat(l,"_ICON"),decorative:!0,color:"colorTextIcon"}),s.createElement(m.Provider,{value:{url:u}},s.createElement(i.Box,{element:"INNER_".concat(l)},n)))}));v.displayName="Blockquote";var g=s.forwardRef((function(e,t){var n=e.children,a=e.element,l=void 0===a?"BLOCKQUOTE_CONTENT":a,c=(0,o.Z)(e,p),u=s.useContext(m).url;return s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{as:"blockquote",margin:"space0",ref:t,element:l,cite:u}),n)}));g.displayName="BlockquoteContent";var y=s.forwardRef((function(e,t){var n=e.element,a=void 0===n?"BLOCKQUOTE_CITATION":n,l=e.author,c=e.source,f=(0,o.Z)(e,h),p=s.useContext(m).url;return s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(f)),{},{marginTop:"space30",marginBottom:"space0",as:"p",element:a,ref:t}),"\u2014"," ",s.createElement(d.Text,{as:"span",fontWeight:"fontWeightSemibold",element:"".concat(a,"_AUTHOR")},l),c?s.createElement(s.Fragment,null,","," ",s.createElement(i.Box,{as:"cite",fontStyle:"normal",element:"".concat(a,"_CITE")},p?s.createElement(u.Anchor,{href:p,showExternal:!0,element:"".concat(a,"_ANCHOR")},c):s.createElement(d.Text,{as:"span",element:"".concat(a,"_TEXT")},c))):null)}));y.displayName="BlockquoteCitation"},1923:function(e,t,n){"use strict";n.r(t),n.d(t,{BOX_PROPS_TO_BLOCK:function(){return O},Box:function(){return B},getCustomElementStyles:function(){return E},safelySpreadBoxProps:function(){return P}});var r,o,i=n(1413),a=n(2982),s=n(4925),l=n(7762),c=n(7666),u=n(2791),d=n(2393),f=["variants"],p=["children","element"],h=Object.create,m=Object.defineProperty,v=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,x=(r={"../../../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}},function(){return o||(0,r[g(r)[0]])((o={exports:{}}).exports,o),o.exports}),w={color:{property:"color",scale:"textColors"},backgroundColor:{property:"backgroundColor",scale:"backgroundColors"},borderColor:{property:"borderColor",scale:"borderColors"},borderBottomColor:{property:"borderBottomColor",scale:"borderColors"},borderLeftColor:{property:"borderLeftColor",scale:"borderColors"},borderRightColor:{property:"borderRightColor",scale:"borderColors"},borderTopColor:{property:"borderTopColor",scale:"borderColors"},content:!0,cursor:!0,appearance:!0,transition:!0,transitionDelay:!0,transform:!0,animation:!0,transformOrigin:!0,visibility:!0,userSelect:!0,pointerEvents:!0,boxSizing:!0,resize:!0,listStyleType:!0,listStylePosition:!0,listStyleImage:!0,objectFit:!0,objectPosition:!0,outline:!0,float:!0,willChange:!0,clip:!0,backgroundAttachment:!0,textAlign:!0,textTransform:!0,textDecoration:!0,textOverflow:!0,whiteSpace:!0,wordBreak:!0,wordWrap:!0,overflowWrap:!0,opacity:!0,borderCollapse:!0,borderSpacing:!0,tableLayout:!0,fontVariantNumeric:!0,inset:!0,columnGap:{property:"columnGap",scale:"space"},rowGap:{property:"rowGap",scale:"space"},"-moz-appearance":!0},k={_hover:"&:hover",_active:"&:active, &[data-active=true]",_focus:"&:focus",_focus_hover:"&:focus:hover",_focus_placeholder:"&:focus::placeholder",_visited:"&:visited",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_disabled:"&:disabled, &:disabled:focus, &:disabled:hover, &[aria-disabled=true], &[aria-disabled=true]:focus, &[aria-disabled=true]:hover",_disabled_focus:"&:disabled:focus,&[aria-disabled=true]:focus",_checked:"&:checked, &[aria-checked=true]",_checked_hover:"&:checked:hover, &[aria-checked=true]:hover",_mixed:"&:indeterminate, &[aria-checked=mixed]",_selected:"&[aria-selected=true]",_selected_hover:"&[aria-selected=true]:hover",_selected_focus:"&[aria-selected=true]:focus",_selected_focusVisible:"&[aria-selected=true]:focus-visible",_invalid:"&:invalid, &[aria-invalid=true]",_pressed:"&[aria-pressed=true]",_pressed_focus:"&[aria-pressed=true]:focus",_pressed_hover:"&[aria-pressed=true]:hover",_pressed_active:"&[aria-pressed=true]:active, &[aria-pressed=true][data-active=true]",_pressed_disabled:"&[aria-pressed=true]:disabled, &[aria-pressed=true][aria-disabled=true]",_readOnly:"&[aria-readonly=true], &[readonly]",_first:"&:first-of-type",_last:"&:last-of-type",_expanded:"&[aria-expanded=true]",_grabbed:"&[aria-grabbed=true]",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_groupHover:"[role=group]:hover &",_before:"&:before",_after:"&:after",_selected_after:"&[aria-selected=true]:after",_focus_selected_after:"&[aria-selected=true]:focus:after",_selected_hover_after:"&[aria-selected=true]:hover:after",_focus_selected_hover_after:"&[aria-selected=true]:focus:hover:after",_disabled_focus_after:"&:disabled:focus:after, &[aria-disabled=true]:focus:after",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible",_placeholder:"&::placeholder",__moz_focus_inner:"&::-moz-focus-inner",__webkit_datetime_edit:"&::-webkit-datetime-edit",__webkit_calendar_picker_indicator_hover:"&::-webkit-calendar-picker-indicator:hover",__webkit_inner_spin_button:"&::-webkit-inner-spin-button",__webkit_outer_spin_button:"&::-webkit-outer-spin-button"},S=function(e,t,n){return n=null!=e?h(y(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(g(t));try{var a=function(){var i=o.value;!b.call(e,i)&&i!==n&&m(e,i,{get:function(){return t[i]},enumerable:!(r=v(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:m(n,"default",{value:e,enumerable:!0}),e)}(x()),_=(0,c.By)(w),E=function(e){if(null!=e&&null!=e.theme&&null!=e.theme.elements){var t=e.theme.elements,n=e["data-paste-element"];if(null!=t[n]){var r=t[n],o=(0,c.iv)(r)(e),i=o.variants,a=(0,s.Z)(o,f),l={};return null!=e.variant&&null!=i&&null!=i[e.variant]&&(l=i[e.variant]),function(){return(0,S.default)(a,l)}}}return{}},C=c.NQ.filter((function(e){return"size"!==e})),T=(0,c.MS)([].concat((0,a.Z)(C),(0,a.Z)(Object.keys((0,i.Z)((0,i.Z)({},w),k))))),I=(0,c.iK)("div",{shouldForwardProp:T})({boxSizing:"border-box"},(0,c.qC)(c.Dh,c.bK,c.GQ,c.eC,c.Oq,c.Cg,c.Wn,c.FK,c.cp,_),(function(e){var t=Object.keys(e).filter((function(e){return e.startsWith("_")}));if(0===t.length)return{};var n={};return t.forEach((function(t){null!=k[t]&&(n[k[t]]=e[t])})),(0,c.iv)(n)}),E),B=u.forwardRef((function(e,t){var n=e.children,r=e.element,o=void 0===r?"BOX":r,a=(0,s.Z)(e,p);return u.createElement(I,(0,i.Z)({"data-paste-element":o,"data-paste-core-version":"21.4.0",ref:t},a),n)}));B.displayName="Box";var O=[].concat((0,a.Z)(d.Tu),(0,a.Z)(d.bu),(0,a.Z)(d.S$),(0,a.Z)(d.BV),(0,a.Z)(d.Dk),(0,a.Z)(d.jU),(0,a.Z)(d.pZ),(0,a.Z)(d.B_),(0,a.Z)(d.eD),(0,a.Z)(Object.keys(k)),["style"]),P=function(e){return Object.keys(e).reduce((function(t,n){return O.includes(n)||(t[n]=e[n]),t}),{})}},1398:function(e,t,n){"use strict";n.r(t),n.d(t,{Breadcrumb:function(){return v},BreadcrumbItem:function(){return m}});var r=n(885),o=n(1413),i=n(4925),a=n(1076),s=n(1923),l=n(9132),c=n(9628),u=n(2791),d=["children","element","parentElement","href","last"],f=["children","element"],p=function(e){var t=e.element;return u.createElement(l.Text,{as:"span",color:"colorTextWeak",fontSize:"fontSize20",lineHeight:"lineHeight20",paddingLeft:"space20",paddingRight:"space20",role:"presentation",element:"".concat(t,"_SEPARATOR")},"/")};p.displayName="BreadcrumbSeparator";var h="BREADCRUMB",m=u.forwardRef((function(e,t){var n=e.children,r=e.element,c=e.parentElement,f=e.href,m=e.last,v=(0,i.Z)(e,d),g=r||c||h;return u.createElement(s.Box,{alignItems:"center",as:"li",display:"inline-flex",element:"".concat(g,"_ITEM"),fontSize:"fontSize20",lineHeight:"lineHeight20"},f?u.createElement(a.Anchor,(0,o.Z)((0,o.Z)({},v),{},{element:"".concat(g,"_ANCHOR"),href:f,ref:t}),n):u.createElement(l.Text,(0,o.Z)((0,o.Z)({},(0,l.safelySpreadTextProps)(v)),{},{"aria-current":"page",as:"span",color:"colorTextWeak",element:"".concat(g,"_TEXT"),fontSize:"fontSize20",lineHeight:"lineHeight20",ref:t}),n),!m&&u.createElement(p,{element:g}))}));m.displayName="BreadcrumbItem";var v=u.forwardRef((function(e,t){var n=e.children,a=e.element,l=void 0===a?h:a,d=(0,i.Z)(e,f),p=u.useMemo((function(){return[u.Children.count(n),u.Children.toArray(n).filter((function(e){return u.isValidElement(e)||"string"==typeof e}))]}),[n]),m=(0,r.Z)(p,2),v=m[0],g=m[1],y=(0,c.Hb)();return u.createElement(s.Box,(0,o.Z)((0,o.Z)({"aria-label":"breadcrumb"},(0,s.safelySpreadBoxProps)(d)),{},{as:"nav",element:l,ref:t}),u.createElement(s.Box,{alignItems:"center",as:"ol",display:"inline-flex",listStyleType:"none",margin:"space0",padding:"space0"},g.map((function(e,t){return u.cloneElement(e,{last:v===t+1,key:y("breadcrumb-".concat(t)),parentElement:l})}))))}));v.displayName="Breadcrumb"},6134:function(e,t,n){"use strict";n.r(t),n.d(t,{ButtonGroup:function(){return d}});var r=n(1413),o=n(4925),i=n(1923),a=n(7666),s=n(2791),l=["element","children","attached","justifyContent"],c=a.iK.span((0,a.iv)({"& > button":{zIndex:1},"& > button:hover, & > button[aria-pressed=true]":{zIndex:2},"& > button:focus":{zIndex:3},"& > button:disabled":{zIndex:0},"& > button:first-of-type":{borderTopRightRadius:0,borderBottomRightRadius:0},"& > button:not(:first-of-type):not(:last-of-type)":{borderRadius:0,marginLeft:"1px"},"& > button:last-of-type":{marginLeft:"1px",borderTopLeftRadius:0,borderBottomLeftRadius:0}})),u=a.iK.span((0,a.iv)({display:"flex",columnGap:"space40"})),d=s.forwardRef((function(e,t){var n=e.element,a=void 0===n?"BUTTON_GROUP":n,d=e.children,f=e.attached,p=void 0!==f&&f,h=e.justifyContent,m=void 0===h?"flex-start":h,v=(0,o.Z)(e,l);return s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(v)),{},{as:p?c:u,ref:t,element:a,display:"inline-flex",flexWrap:p?"nowrap":"wrap",justifyContent:p?"flex-start":m,rowGap:"space40",role:"group"}),d)}));d.displayName="ButtonGroup"},9741:function(e,t,n){"use strict";n.r(t),n.d(t,{Button:function(){return He},ButtonToggleStyles:function(){return H},DestructiveSecondaryButtonToggleStyles:function(){return U}});var r,o,i=n(885),a=n(1413),s=n(4925),l=n(7762),c=n(1076),u=n(3512),d=n(1923),f=n(9348),p=n(7258),h=n(7295),m=n(2791),v=["size","buttonState","fullWidth","as"],g=["size","buttonState","fullWidth","as"],y=["size","buttonState","fullWidth","as"],b=["size","buttonState","fullWidth","pressed","as"],x=["size","buttonState","fullWidth","as"],w=["size","buttonState","fullWidth","as"],k=["size","buttonState","fullWidth","as"],S=["size","buttonState","fullWidth","as"],_=["size","buttonState","fullWidth","as"],E=["size","buttonState","fullWidth","as"],C=["size","buttonState","fullWidth","pressed","as"],T=["size","buttonState","fullWidth","pressed","as"],I=["element","i18nExternalLinkLabel","as","fullWidth","disabled","loading","variant","type"],B=["size","children"],O=Object.create,P=Object.defineProperty,R=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty,D=function(e,t,n){return n=null!=e?O(M(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(A(t));try{var a=function(){var i=o.value;!N.call(e,i)&&i!==n&&P(e,i,{get:function(){return t[i]},enumerable:!(r=R(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:P(n,"default",{value:e,enumerable:!0}),e)},L=(r={"../../../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}},function(){return o||(0,r[A(r)[0]])((o={exports:{}}).exports,o),o.exports}),j=D(L()),z=D(L()),W={appearance:"none",background:"none",display:"inline-block",border:"none",outline:"none",transition:"background-color 100ms ease-in, box-shadow 100ms ease-in, color 100ms ease-in",fontFamily:"inherit",fontWeight:"fontWeightSemibold",textDecoration:"none",position:"relative",margin:"space0",borderRadius:"borderRadius20",_hover:{textDecoration:"none"},_focus:{textDecoration:"none",boxShadow:"shadowFocus"},_active:{textDecoration:"none"}},Z={default:(0,z.default)(W,{cursor:"pointer",_active:{boxShadow:"none"}}),disabled:(0,z.default)(W,{cursor:"not-allowed"}),loading:(0,z.default)(W,{cursor:"wait"})},F={default:{paddingTop:"space30",paddingBottom:"space30",paddingLeft:"space40",paddingRight:"space40",borderRadius:"borderRadius30",fontSize:"fontSize30",lineHeight:"lineHeight20"},small:{paddingTop:"space20",paddingBottom:"space20",paddingLeft:"space30",paddingRight:"space30",borderRadius:"borderRadius30",fontSize:"fontSize30",lineHeight:"lineHeight20"},icon:{padding:"space30",borderRadius:"borderRadius30"},icon_small:{padding:"space20",borderRadius:"borderRadius30"},reset:{paddingTop:"space0",paddingRight:"space0",paddingBottom:"space0",paddingLeft:"space0",borderWidth:"borderWidth0",fontSize:"inherit"},rounded_small:{borderRadius:"borderRadiusPill",paddingTop:"space20",paddingBottom:"space20",paddingLeft:"space30",paddingRight:"space30",fontSize:"fontSize30",lineHeight:"lineHeight20"},circle:{padding:"space30",borderRadius:"borderRadiusCircle"},circle_small:{padding:"space20",borderRadius:"borderRadiusCircle"}},H={transition:"background-color 150ms ease-in, box-shadow 150ms ease-in, color 150ms ease-in",color:"colorText",backgroundColor:"colorBackgroundBody",_disabled:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker",color:"colorTextWeaker"},_hover:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderPrimary",color:"colorTextPrimary"},_active:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderPrimaryStrongest",color:"colorTextPrimaryStrongest"},_pressed:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimary",color:"colorTextPrimary"},_pressed_hover:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStronger",color:"colorTextPrimaryStronger"},_pressed_active:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStrongest",color:"colorTextPrimaryStrongest"},_pressed_focus:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowFocusShadowBorder",color:"colorTextPrimary"},_pressed_disabled:{backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker",color:"colorTextWeakest"}},U={transition:"background-color 150ms ease-in, box-shadow 150ms ease-in, color 150ms ease-in",color:"colorTextError",backgroundColor:"colorBackgroundBody",_disabled:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker",color:"colorTextWeaker"},_hover:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderError",color:"colorTextError"},_active:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderErrorStrongest",color:"colorTextErrorStrongest"},_pressed:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderError",color:"colorTextError"},_pressed_hover:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderErrorStronger",color:"colorTextErrorStronger"},_pressed_active:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderError",color:"colorTextError"},_pressed_focus:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowFocusShadowBorder",color:"colorTextError"},_pressed_disabled:{backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker",color:"colorTextWeakest"}},$={transition:"background-color 150ms ease-in, box-shadow 150ms ease-in, color 150ms ease-in",color:"colorTextIcon",backgroundColor:"colorBackgroundBody",_hover:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderPrimary",color:"colorTextPrimaryStronger"},_active:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderPrimaryStrongest",color:"colorTextPrimaryStrongest"},_disabled:{backgroundColor:"colorBackgroundBody",color:"colorTextWeaker"},_pressed:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimary",color:"colorTextPrimary"},_pressed_hover:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStronger",color:"colorTextPrimaryStronger"},_pressed_focus:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowFocusShadowBorder",color:"colorTextPrimary"},_pressed_disabled:{backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker",color:"colorTextWeakest"}},G={default:(0,j.default)(Z.default,{color:"colorTextInverse",backgroundColor:"colorBackgroundDestructive",boxShadow:"shadowBorderDestructive",_hover:{color:"colorTextDestructive",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderDestructive"},_focus:{boxShadow:"shadowFocus"},_active:{color:"colorTextDestructive",backgroundColor:"colorBackgroundDestructiveWeakest",boxShadow:"shadowBorderDestructive"}}),loading:(0,j.default)(Z.loading,{color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"}),disabled:(0,j.default)(Z.disabled,{color:"colorTextWeakest",backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker"})},q=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"button":i,c=(0,s.Z)(e,v);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:l},c))),G[r]),F[n]))}));q.displayName="DestructiveButton";var K=D(L()),V={default:(0,K.default)(Z.default,{color:"colorTextDestructive",_hover:{color:"colorTextDestructiveStrongest"},_active:{color:"colorTextDestructiveStrongest"}}),loading:(0,K.default)(Z.loading,{color:"colorTextWeaker"}),disabled:(0,K.default)(Z.disabled,{color:"colorTextWeaker"})},Y=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"button":i,c=(0,s.Z)(e,g);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:l},c))),V[r]),F[n]))}));Y.displayName="DestructiveIconButton";var X=D(L()),J=(0,X.default)(Z.default,{color:"colorTextLinkDestructive",textAlign:"left",transition:"none",_hover:{color:"colorTextLinkDestructiveStrongest",textDecoration:"underline"},_active:{color:"colorTextLinkDestructiveStrongest",textDecoration:"underline"}}),Q=(0,X.default)(Z.loading,{color:"colorTextWeaker",textAlign:"left",_hover:{color:"colorTextWeaker"},_active:{color:"colorTextWeaker"},_focus:{color:"colorTextWeaker"}}),ee=(0,X.default)(Z.disabled,{color:"colorTextWeaker",textAlign:"left",_hover:{color:"colorTextLinkDestructiveWeak"},_active:{color:"colorTextLinkDestructiveWeak"},_focus:{color:"colorTextLinkDestructiveWeak"}}),te={default:J,loading:Q,disabled:ee},ne=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"a":i,c=(0,s.Z)(e,y);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:l},c))),te[r]),function(e){return(0,X.default)(F[e],{borderRadius:"borderRadius20"})}(n)))}));ne.displayName="DestructiveLinkButton";var re=D(L()),oe={color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"},ie={color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"},ae={default:(0,re.default)(Z.default,{color:"colorTextDestructive",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderWeak",_hover:{color:"colorTextDestructive",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderDestructive"},_focus:{boxShadow:"shadowFocusShadowBorder"},_active:{color:"colorTextDestructive",backgroundColor:"colorBackgroundDestructiveWeakest",boxShadow:"shadowBorderDestructive"}}),loading:(0,re.default)(Z.loading,(0,a.Z)((0,a.Z)({},oe),{},{_hover:oe,_active:oe,_focus:oe})),disabled:(0,re.default)(Z.disabled,(0,a.Z)((0,a.Z)({},ie),{},{_hover:ie,_active:ie,_focus:ie}))},se=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.pressed,l=e.as,c=void 0===l?"button":l,u=(0,s.Z)(e,b),f=void 0===i?{}:U;return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto","aria-pressed":i},(0,d.safelySpreadBoxProps)((0,a.Z)({as:c},u))),ae[r]),f),F[n]))}));se.displayName="DestructiveSecondaryButton";var le=D(L()),ce={default:(0,le.default)(Z.default,{color:"colorTextInverse",backgroundColor:"colorBackgroundInverse",boxShadow:"shadowBorderInverseWeaker",_hover:{color:"colorTextInverse",backgroundColor:"colorBackgroundInverseStrong",boxShadow:"shadowBorderInverseStronger"},_focus:{boxShadow:"shadowFocusInverse"},_active:{color:"colorTextInverse",backgroundColor:"colorBackgroundInverseStrong",boxShadow:"shadowBorderInverseStrongest"}}),loading:(0,le.default)(Z.loading,{color:"colorTextInverseWeakest",backgroundColor:"colorBackgroundInverseStrong",boxShadow:"shadowBorderInverseWeakest"}),disabled:(0,le.default)(Z.disabled,{color:"colorTextInverseWeakest",backgroundColor:"colorBackgroundInverseStrong",boxShadow:"shadowBorderInverseWeakest"})},ue=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"button":i,c=(0,s.Z)(e,x);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:l},c))),ce[r]),F[n]))}));ue.displayName="InverseButton";var de=D(L()),fe=(0,de.default)(Z.default,{color:"colorTextInverse",textAlign:"left",transition:"none",_hover:{color:"colorTextInverseWeaker",textDecoration:"underline"},_focus:{boxShadow:"shadowFocusInverse"},_active:{color:"colorTextInverseWeaker",textDecoration:"underline"}}),pe=(0,de.default)(Z.loading,{color:"colorTextInverseWeakest",textAlign:"left"}),he=(0,de.default)(Z.disabled,{color:"colorTextInverseWeakest",textAlign:"left"}),me={default:fe,loading:pe,disabled:he},ve=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"a":i,c=(0,s.Z)(e,w);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:l},c))),me[r]),function(e){return(0,de.default)(F[e],{borderRadius:"borderRadius20"})}(n)))}));ve.displayName="InverseLinkButton";var ge=D(L()),ye=(0,ge.default)(Z.default,{color:"colorTextPrimary",textAlign:"left",transition:"none",_hover:{color:"colorTextPrimaryStrongest",textDecoration:"underline"},_active:{color:"colorTextPrimaryStrongest",textDecoration:"underline"}}),be=(0,ge.default)(Z.loading,{color:"colorTextWeaker",textAlign:"left"}),xe=(0,ge.default)(Z.disabled,{color:"colorTextWeaker",textAlign:"left"}),we={default:ye,loading:be,disabled:xe},ke=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"a":i,c=(0,s.Z)(e,k);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:l},c))),we[r]),function(e){return(0,ge.default)(F[e],{borderRadius:"borderRadius20"})}(n)))}));ke.displayName="LinkButton";var Se=D(L()),_e={default:(0,Se.default)(Z.default,{color:"colorTextInverse",backgroundColor:"colorBackgroundPrimary",boxShadow:"shadowBorderPrimary",_hover:{color:"colorTextPrimary",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderPrimary"},_focus:{boxShadow:"shadowFocus"},_active:{color:"colorTextPrimaryStrong",backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStrong"}}),loading:(0,Se.default)(Z.loading,{color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"}),disabled:(0,Se.default)(Z.disabled,{color:"colorTextWeakest",backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker"})},Ee=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"button":i,c=(0,s.Z)(e,S);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:l},c))),_e[r]),F[n]))}));Ee.displayName="PrimaryButton";var Ce=D(L()),Te={default:(0,Ce.default)(Z.default,{color:"colorTextPrimary",_hover:{color:"colorTextPrimaryStrongest"},_active:{color:"colorTextPrimaryStrongest"}}),loading:(0,Ce.default)(Z.loading,{color:"colorTextWeaker"}),disabled:(0,Ce.default)(Z.disabled,{color:"colorTextWeaker"})},Ie=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"button":i,c=(0,s.Z)(e,_);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:l},c))),Te[r]),F[n]))}));Ie.displayName="PrimaryIconButton";var Be=D(L()),Oe={default:(0,Be.default)(Z.default,{fontWeight:"inherit",color:"inherit"}),loading:(0,Be.default)(Z.loading,{fontSize:"inherit",fontWeight:"inherit"}),disabled:(0,Be.default)(Z.disabled,{fontSize:"inherit",fontWeight:"inherit"})},Pe=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.as,l=void 0===i?"button":i,c=(0,s.Z)(e,E);return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto"},Oe[r]),F[n]),{},{as:l},c))}));Pe.displayName="ResetButton";var Re=D(L()),Ae={color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"},Me={color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"},Ne={default:(0,Re.default)(Z.default,{color:"colorText",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderWeak",_hover:{color:"colorTextPrimary",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderPrimary"},_focus:{boxShadow:"shadowFocusShadowBorder"},_active:{color:"colorTextPrimaryStrong",backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStrong"}}),loading:(0,Re.default)(Z.loading,(0,a.Z)((0,a.Z)({},Ae),{},{_hover:Ae,_active:Ae,_focus:Ae})),disabled:(0,Re.default)(Z.disabled,(0,a.Z)((0,a.Z)({},Me),{},{_hover:Me,_active:Me,_focus:Me,_pressed:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeak",boxShadow:"none"},_pressed_hover:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeak",boxShadow:"none"}}))},De=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.pressed,l=e.as,c=void 0===l?"button":l,u=(0,s.Z)(e,C),f=void 0===i?{}:H;return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({ref:t,width:o?"100%":"auto","aria-pressed":i},(0,d.safelySpreadBoxProps)((0,a.Z)({as:c},u))),Ne[r]),f),F[n]))}));De.displayName="SecondaryButton";var Le=D(L()),je={default:(0,Le.default)(Z.default,{color:"colorTextIcon",_hover:{color:"colorTextPrimaryStrongest"},_active:{color:"colorTextPrimaryStrongest"}}),loading:(0,Le.default)(Z.loading,{color:"colorTextWeaker"}),disabled:(0,Le.default)(Z.disabled,{color:"colorTextWeaker",_pressed:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeak"},_pressed_hover:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeak"}})},ze=m.forwardRef((function(e,t){var n=e.size,r=e.buttonState,o=e.fullWidth,i=e.pressed,l=e.as,c=void 0===l?"button":l,u=(0,s.Z)(e,T),f=void 0===i?{}:$;return m.createElement(d.Box,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({ref:t,"aria-pressed":i,width:o?"100%":"auto"},(0,d.safelySpreadBoxProps)((0,a.Z)({as:c},u))),f),je[r]),F[n]))}));ze.displayName="SecondaryIconButton";var We=(0,u.q)(d.Box),Ze=new Set(["link","destructive_link","inverse_link","reset"]),Fe=function(e){var t=e.buttonState,n=e.children,r=e.showLoading,o=e.variant,i=o&&Ze.has(o);return m.createElement(m.Fragment,null,m.createElement(d.Box,{as:"span",display:"flex",textDecoration:"inherit",opacity:"loading"===t?"0":"1",justifyContent:i?null:"center",columnGap:"space20",alignItems:"center",width:"100%"},n),r?m.createElement(d.Box,{as:"span",position:"absolute",top:0,right:0,bottom:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"lineHeight30"},m.createElement(h.Spinner,{decorative:!0,delay:0})):null)};Fe.displayName="ButtonContents";var He=m.forwardRef((function(e,t){var n=e.element,r=void 0===n?"BUTTON":n,o=e.i18nExternalLinkLabel,l=void 0===o?"(link takes you to an external page)":o,d=e.as,h=void 0===d?"button":d,v=e.fullWidth,g=void 0!==v&&v,y=e.disabled,b=void 0!==y&&y,x=e.loading,w=void 0!==x&&x,k=e.variant,S=void 0===k?"primary":k,_=e.type,E=void 0===_?"button":_,C=(0,s.Z)(e,I),T=C.size,O=C.children,P=(0,s.Z)(C,B),R=m.useState(!1),A=(0,i.Z)(R,2),M=A[0],N=A[1],D=(0,u.q_)({translateX:M?"4px":"0px",config:{mass:.1,tension:275,friction:16}}),L=m.useMemo((function(){return function(e,t,n){var r="default";return null!=n?r=n:"link"===e||"destructive_link"===e||"reset"===e?r="reset":1===m.Children.count(t)&&m.Children.forEach(t,(function(e){m.isValidElement(e)&&"string"==typeof e.type.displayName&&e.type.displayName.includes("Icon")&&(r="icon")})),r}(S,O,T)}),[T,S,O]);!function(e){var t=e.as,n=e.href,r=e.tabIndex,o=e.variant,i=e.size,a=e.fullWidth,s=e.children,l=e.disabled,c=e.loading,u=e.pressed,d=null!=n&&""!==n,f=null!=r;if("a"!==t&&d)throw new Error("[Paste: Button] You cannot pass href into a button without the 'a' tag.  Use 'as=\"a\"'.");if("a"===t){if(!d)throw new Error("[Paste: Button] Missing href prop for link button.");if("link"===o||"inverse_link"===o)throw new Error("[Paste: Button] Using Button component as an Anchor. Use the Paste Anchor component instead.");if("primary"!==o&&"secondary"!==o&&"reset"!==o&&"inverse"!==o)throw new Error('[Paste: Button] <Button as="a"> only works with the following variants: primary and secondary.');if(l||c)throw new Error('[Paste: Button] <Button as="a"> cannot be disabled or loading.')}if("reset"===o&&"reset"!==i)throw new Error('[Paste: Button] The "RESET" variant can only be used with the "RESET" size.');if(("icon"===i||"icon_small"===i||"circle"===i||"circle_small"===i)&&a)throw new Error("[Paste: Button] Icon buttons should not be fullWidth.");if(null==s)throw new Error("[Paste: Button] Must have non-null children.");if(f&&0!==r&&-1!==r)throw console.error("tabIndex",r),new Error("[Paste: Button] tabIndex must be 0 or -1.");if(u&&"secondary"!==o&&"secondary_icon"!==o&&"destructive_secondary"!==o)throw console.error("variant",o,"pressed",u),new Error('[Paste: Button] pressed can only be used with "secondary" and "secondary_icon" and "destructive_secondary" variants.')}((0,a.Z)((0,a.Z)({},C),{},{as:h,children:O,fullWidth:g,disabled:b,loading:w,type:E,variant:S,size:L}));var j=function(e,t){return e?"disabled":t?"loading":"default"}(b,w),z="loading"===j,W="default"!==j,Z=function(e){switch(e){case"primary_icon":return Ie;case"secondary":return De;case"secondary_icon":return ze;case"destructive":return q;case"destructive_icon":return Y;case"destructive_secondary":return se;case"link":return ke;case"destructive_link":return ne;case"reset":return Pe;case"inverse":return ue;case"inverse_link":return ve;default:return Ee}}(S),F=null!=C.href?(0,c.secureExternalLink)(C.href):null,H=O;return"a"===h&&null!=C.href&&"string"==typeof O&&"reset"!==S&&(H=m.createElement(m.Fragment,null,O,null!=F?m.createElement(p.P,{decorative:!1,title:l}):m.createElement(We,{style:D},m.createElement(f.m,{decorative:!0})))),m.createElement(Z,(0,a.Z)((0,a.Z)((0,a.Z)({},F),P),{},{onMouseEnter:function(e){"function"==typeof P.onMouseEnter&&P.onMouseEnter(e),N(!0)},onMouseLeave:function(e){"function"==typeof P.onMouseLeave&&P.onMouseLeave(e),N(!1)},buttonState:j,disabled:W,element:r,variant:S,size:L,"aria-busy":"loading"===j?"true":"false",as:h,type:E,fullWidth:g,ref:t}),m.createElement(Fe,{buttonState:j,showLoading:z,variant:S},H))}));He.displayName="Button"},9647:function(e,t,n){"use strict";n.r(t),n.d(t,{Callout:function(){return C},CalloutHeading:function(){return T},CalloutList:function(){return I},CalloutListItem:function(){return B},CalloutText:function(){return O}});var r=n(1413),o=n(4925),i=n(1923),a=n(9741),s=n(8045),l=n(7088),c=n(8295),u=n(9628),d=n(2791),f=n(8015),p=d.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,c=e.decorative,p="NewIcon-".concat((0,u.Dt)());if(!c&&null==l)throw new Error("[NewIcon]: Missing a title for non-decorative icon.");return d.createElement(f.a,{as:n,display:r,element:i,size:a,color:s,ref:t},d.createElement("svg",{role:"img","aria-hidden":c,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},l?d.createElement("title",{id:p},l):null,d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.991 7.507c.003-.679 1.021-.675 1.019.004-.012 2.956 1.388 4.41 4.492 4.48.673.016.66 1.021-.013 1.019-2.898-.011-4.327 1.446-4.48 4.506-.033.658-1.01.639-1.018-.02-.03-3.027-1.382-4.49-4.481-4.486-.675 0-.682-1.009-.008-1.019 3.02-.042 4.478-1.452 4.49-4.484zm.505 2.757l-.115.242c-.459.9-1.166 1.558-2.115 1.976l.176.08c.973.465 1.664 1.211 2.083 2.22l.02.05.088-.192c.464-.973 1.173-1.685 2.123-2.124l.039-.018-.118-.05c-.963-.435-1.667-1.117-2.113-2.034l-.068-.15zm10.357-8.12c.174.17.194.434.058.625l-.058.068-1.954 1.905 1.954 1.908a.482.482 0 010 .694.512.512 0 01-.641.056l-.07-.056-1.954-1.908-1.954 1.908a.511.511 0 01-.71 0 .482.482 0 01-.058-.626l.058-.068 1.954-1.908-1.954-1.905a.482.482 0 010-.693.512.512 0 01.64-.057l.07.057 1.954 1.905 1.954-1.905a.511.511 0 01.71 0z"})))}));p.displayName="NewIcon";var h=n(8306),m=n(428),v=n(9643),g=n(9132),y=["children","variant","element","i18nLabel","marginY","onDismiss","i18nDismissLabel"],b=["element","children","as"],x=["element","children","as"],w=["element","children"],k=["element","children"],S={success:{backgroundColor:"colorBackgroundBodyElevation",color:"colorTextSuccess",borderColor:"colorBorderSuccessWeak"},error:{backgroundColor:"colorBackgroundErrorWeakest",color:"colorTextError",borderColor:"colorBorderErrorWeak"},warning:{backgroundColor:"colorBackgroundBodyElevation",color:"colorTextWarningStrong",borderColor:"colorBorderWarningWeak"},new:{backgroundColor:"colorBackgroundBodyElevation",color:"colorTextNew",borderColor:"colorBorderNewWeak"},neutral:{backgroundColor:"colorBackgroundBodyElevation",color:"colorTextNeutral",borderColor:"colorBorderNeutralWeak"}},_={success:d.createElement(h.t,{decorative:!0,color:"colorTextIconSuccess"}),error:d.createElement(l.P,{decorative:!0,color:"colorTextIconError"}),warning:d.createElement(m.a,{decorative:!0,color:"colorTextIconWarning"}),new:d.createElement(p,{decorative:!0,color:"colorTextIconNew"}),neutral:d.createElement(c.$,{decorative:!0,color:"colorTextIconNeutral"})},E={success:"(success)",error:"(error)",warning:"(warning)",new:"(new)",neutral:"(information)"},C=d.forwardRef((function(e,t){var n=e.children,l=e.variant,c=e.element,u=void 0===c?"CALLOUT":c,f=e.i18nLabel,p=e.marginY,h=e.onDismiss,m=e.i18nDismissLabel,g=void 0===m?"Dismiss callout":m,b=(0,o.Z)(e,y),x=_[l],w=f||E[l];return d.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(b)),{},{ref:t,element:u,display:"flex",marginY:p,padding:"space70",borderLeftStyle:"solid",borderLeftWidth:"borderWidth20",variant:l,alignItems:"start",columnGap:"space50"},S[l]),d.createElement(i.Box,{element:"".concat(u,"_ICON")},x,d.createElement(v.ScreenReaderOnly,null,w)),d.createElement(i.Box,{display:"flex",flexDirection:"column",rowGap:"space30",flex:"1"},n),h&&"function"==typeof h&&d.createElement(a.Button,{onClick:h,variant:"secondary_icon",size:"reset",element:"".concat(u,"_DISMISS_BUTTON")},d.createElement(s.T,{element:"".concat(u,"_DISMISS_ICON"),decorative:!0,size:"sizeIcon20"}),d.createElement(v.ScreenReaderOnly,null,g)))}));C.displayName="Callout";var T=d.forwardRef((function(e,t){var n=e.element,i=void 0===n?"CALLOUT_HEADING":n,a=e.children,s=e.as,l=void 0===s?"h3":s,c=(0,o.Z)(e,b);return d.createElement(g.Text,(0,r.Z)((0,r.Z)({},(0,g.safelySpreadTextProps)(c)),{},{as:l,ref:t,element:i,color:"currentColor",fontWeight:"fontWeightSemibold"}),a)}));T.displayName="CalloutHeading";var I=d.forwardRef((function(e,t){var n=e.element,a=void 0===n?"CALLOUT_LIST":n,s=e.children,l=e.as,c=(0,o.Z)(e,x);return d.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{element:a,ref:t,as:l,margin:"space0",display:"flex",flexDirection:"column",rowGap:"space30",paddingLeft:"space60"}),s)}));I.displayName="CalloutList";var B=d.forwardRef((function(e,t){var n=e.element,i=void 0===n?"CALLOUT_LIST_ITEM":n,a=e.children,s=(0,o.Z)(e,w);return d.createElement(g.Text,(0,r.Z)((0,r.Z)({},(0,g.safelySpreadTextProps)(s)),{},{element:i,ref:t,as:"li",color:"currentColor"}),a)}));B.displayName="CalloutListItem";var O=d.forwardRef((function(e,t){var n=e.element,i=void 0===n?"CALLOUT_TEXT":n,a=e.children,s=(0,o.Z)(e,k);return d.createElement(g.Text,(0,r.Z)((0,r.Z)({},(0,g.safelySpreadTextProps)(s)),{},{as:"p",ref:t,element:i,color:"currentColor"}),a)}));O.displayName="CalloutText"},7874:function(e,t,n){"use strict";n.r(t),n.d(t,{Card:function(){return l}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["children","element","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","fillHeight","fillWidth"],l=a.forwardRef((function(e,t){var n=e.children,l=e.element,c=void 0===l?"CARD":l,u=e.padding,d=void 0===u?"space100":u,f=e.paddingBottom,p=e.paddingLeft,h=e.paddingRight,m=e.paddingTop,v=e.fillHeight,g=e.fillWidth,y=(0,o.Z)(e,s);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(y)),{},{ref:t,as:"article",borderWidth:"borderWidth10",borderColor:"colorBorderWeaker",borderStyle:"solid",borderRadius:"borderRadius30",element:c,padding:d,paddingBottom:f,paddingLeft:p,paddingRight:h,paddingTop:m,backgroundColor:"colorBackgroundWeakest",height:v?"100%":void 0,width:g?"100%":void 0}),n)}));l.displayName="Card"},4137:function(e,t,n){"use strict";n.r(t),n.d(t,{ChartContext:function(){return B},ChartProvider:function(){return O}});var r,o,i=n(1413),a=n(885),s=n(4925),l=n(1923),c=n(7762),u=n(2791),d=n(7666),f=n(9718),p=n.n(f),h=["title","subtitle","isXTimeAxis","showLegend","zoomingType","panningType","chart","type","yAxisTitle","xAxisTitle","xAxisCategories","pointFormatter","enableCredits","isAnimated","accessibility"],m=["series","type","zoomingType","panningType"],v=["chart","series","type","stackingType","showDataLabels"],g=["yAxis"],y=["series","type","zoomingType","panningType"],b=["chart","series","type"],x=Object.create,w=Object.defineProperty,k=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,_=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,C=(function(e,t,n){n=null!=e?x(_(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,c.Z)(S(t));try{var a=function(){var i=o.value;!E.call(e,i)&&i!==n&&w(e,i,{get:function(){return t[i]},enumerable:!(r=k(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}}(!t&&e&&e.__esModule?n:w(n,"default",{value:e,enumerable:!0}),e)}((r={"../../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}},function(){return o||(0,r[S(r)[0]])((o={exports:{}}).exports,o),o.exports})()),function(e){var t,n=e.title,r=e.subtitle,o=e.isXTimeAxis,a=e.showLegend,l=void 0===a||a,c=e.zoomingType,f=e.panningType,p=e.chart,m=e.type,v=e.yAxisTitle,g=e.xAxisTitle,y=e.xAxisCategories,b=e.pointFormatter,x=e.enableCredits,w=void 0!==x&&x,k=e.isAnimated,S=void 0===k||k,_=e.accessibility,E=(0,s.Z)(e,h),C=u.useContext(d.Ni);return(0,i.Z)({accessibility:(0,i.Z)({enabled:!0},_),chart:(0,i.Z)({resetZoomButton:{theme:{style:{display:"block",fontFamily:C.fonts.fontFamilyText}}},type:m,zoomType:c,panKey:"shift",panning:{enabled:Boolean(f),type:f},animation:S},p),title:{text:null===n||void 0===n?void 0:n.text,style:{display:null!==n&&void 0!==n&&n.hide?"none":"block"}},subtitle:{text:null===r||void 0===r?void 0:r.text,style:{display:null!==n&&void 0!==n&&n.hide?"none":"block"}},xAxis:{type:o?"datetime":void 0,title:{text:null===g||void 0===g?void 0:g.text,style:{display:null!==g&&void 0!==g&&g.hide?"none":"block"}},categories:y},yAxis:{title:{text:null===v||void 0===v?void 0:v.text,style:{display:null!==v&&void 0!==v&&v.hide?"none":"block"}}},legend:{enabled:l},tooltip:{backgroundColor:C.backgroundColors.colorBackgroundBodyInverse,borderColor:C.borderColors.colorBorderInverse,borderWidth:C.borderWidths.borderWidth10,borderRadius:null===(t=C.radii.borderRadius30)||void 0===t?void 0:t.replace("px",""),padding:12,useHTML:Boolean(b),style:{fontFamily:C.fonts.fontFamilyText,color:C.textColors.colorTextInverse,fontSize:C.fontSizes.fontSize30},pointFormatter:b?function(){return b(this)}:void 0},credits:{enabled:w,style:{fontFamily:C.fonts.fontFamilyText,color:C.textColors.colorTextWeak,fontSize:C.fontSizes.fontSize10}}},E)}),T=function(e){switch(e.type){case"line":return function(e){var t=e.series,n=e.type,r=e.zoomingType,o=e.panningType,a=(0,s.Z)(e,y);return(0,i.Z)({series:t.map((function(e){return(0,i.Z)((0,i.Z)({},e),{},{type:n})})),plotOptions:{series:{stickyTracking:!1}}},C((0,i.Z)((0,i.Z)({},a),{},{type:n,zoomingType:r,panningType:o})))}(e);case"area":return function(e){var t=e.series,n=e.type,r=e.zoomingType,o=e.panningType,a=(0,s.Z)(e,m);return(0,i.Z)({series:t.map((function(e){return(0,i.Z)((0,i.Z)({},e),{},{type:n})})),plotOptions:{series:{stickyTracking:!1}}},C((0,i.Z)((0,i.Z)({},a),{},{type:n,zoomingType:r,panningType:o})))}(e);case"column":return function(e){e.chart;var t=e.series,n=e.type,r=e.stackingType,o=e.showDataLabels,a=(0,s.Z)(e,v),l=C((0,i.Z)((0,i.Z)({},a),{},{type:n})),c=l.yAxis,u=(0,s.Z)(l,g);return(0,i.Z)({series:t.map((function(e){return(0,i.Z)((0,i.Z)({},e),{},{type:n})})),plotOptions:{column:{stacking:r,dataLabels:{enabled:o},borderRadius:2}},yAxis:p().merge({stackLabels:{enabled:o}},c)},u)}(e);default:return function(e){e.chart;var t=e.series,n=e.type,r=(0,s.Z)(e,b);return(0,i.Z)({series:t.map((function(e){return(0,i.Z)((0,i.Z)({},e),{},{type:n})}))},C((0,i.Z)((0,i.Z)({},r),{},{type:n})))}(e)}},I=["element","children","highchartsOptions","options"],B=u.createContext({options:{},setChart:function(){console.error("setChart not implemented. Is this component wrapped in the ChartProvider component?")},setChartRef:function(){console.error("setChartRef not implemented. Is this component wrapped in the ChartProvider component?")}}),O=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"CHART_PROVIDER":n,o=e.children,c=e.highchartsOptions,d=e.options,f=(0,s.Z)(e,I),p=u.useState(),h=(0,a.Z)(p,2),m=h[0],v=h[1],g=u.useState(),y=(0,a.Z)(g,2),b=y[0],x=y[1];if(c&&!d)return u.createElement(l.Box,(0,i.Z)((0,i.Z)({},(0,l.safelySpreadBoxProps)(f)),{},{ref:t,element:r,position:"relative"}),u.createElement(B.Provider,{value:{chart:m,setChart:v,chartRef:b,setChartRef:x,options:c}},o));var w=T(d);return u.createElement(l.Box,(0,i.Z)((0,i.Z)({},(0,l.safelySpreadBoxProps)(f)),{},{ref:t,element:r,position:"relative"}),u.createElement(B.Provider,{value:{chart:m,setChart:v,chartRef:b,setChartRef:x,options:w}},o))}));O.displayName="ChartProvider"},9479:function(e,t,n){"use strict";n.r(t),n.d(t,{ChatComposer:function(){return Tn},ChatComposerActionGroup:function(){return In},ChatComposerActionRow:function(){return Yo},ChatComposerAttachmentCard:function(){return Po},ChatComposerAttachmentDescription:function(){return qo},ChatComposerAttachmentGroup:function(){return Bn},ChatComposerAttachmentLink:function(){return Vo},ChatComposerContainer:function(){return Pn}});var r=n(2982),o=n(1413),i=n(4925),a=n(168),s=n(885),l=n(7762),c=n(1923),u=n(4165),d=n(5861),f=n(1752),p=n(1120),h=n(136),m=n(9388),v=n(5671),g=n(3144),y=n(2791),b=n.t(y,2),x=n(4164),w=n.t(x,2),k=["ariaActiveDescendant","ariaAutoComplete","ariaControls","ariaDescribedBy","ariaExpanded","ariaLabel","ariaLabelledBy","ariaMultiline","ariaOwns","ariaRequired","autoCapitalize","className","id","role","spellCheck","style","tabIndex","data-testid"],S=Object.create,_=Object.defineProperty,E=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyNames,T=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,B=function(e,t){return function(){return e&&(t=(0,e[C(e)[0]])(e=0)),t}},O=function(e,t){return function(){return t||(0,e[C(e)[0]])((t={exports:{}}).exports,t),t.exports}},P=function(e,t){for(var n in t)_(e,n,{get:t[n],enumerable:!0})},R=function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(C(t));try{var a=function(){var i=o.value;!I.call(e,i)&&i!==n&&_(e,i,{get:function(){return t[i]},enumerable:!(r=E(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e},A=function(e,t,n){return R(e,t,"default"),n&&R(n,t,"default")},M=function(e,t,n){return n=null!=e?S(T(e)):{},R(!t&&e&&e.__esModule?n:_(n,"default",{value:e,enumerable:!0}),e)},N=function(e){return R(_({},"__esModule",{value:!0}),e)},D={};P(D,{default:function(){return b}});var L=B({"esm-externals:react":function(){A(D,b)}}),j=O({"../../../node_modules/@lexical/react/LexicalErrorBoundary.prod.js":function(e,t){var n=(L(),N(D));function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}var o={error:null},i=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state=o,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}(function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)})(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var i=t.prototype;return i.reset=function(){this.setState(o)},i.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},i.componentDidUpdate=function(e,t){var n,r,o=this.props.resetKeys;null!==this.state.error&&null!==t.error&&function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))}(e.resetKeys,o)&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,o),this.reset())},i.render=function(){var e=this.state.error,t=this.props,r=t.fallbackRender,o=t.FallbackComponent;if(t=t.fallback,null!==e){if(e={error:e,resetErrorBoundary:this.resetErrorBoundary},n.isValidElement(t))return t;if("function"==typeof r)return r(e);if(o)return n.createElement(o,e);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(n.Component);t.exports=function(e){var t=e.children,r=e.onError;return n.createElement(i,{fallback:n.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:r},t)}}}),z=O({"../../../node_modules/@lexical/react/LexicalErrorBoundary.js":function(e,t){var n=j();t.exports=n}}),W=O({"../../../node_modules/lexical/Lexical.prod.js":function(e){var t={},n={},i={},a={},c={},u={},d={},y={},b={},x={},w={},k={},S={},_={},E={},C={},T={},I={},B={},O={},P={},R={},A={},M={},N={},D={},L={},j={},z={},W={},Z={},F={},H={},U={},$={},G={};function q(e){var t=new URLSearchParams;t.append("code",e);for(var n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error("Minified Lexical error #".concat(e,"; visit https://lexical.dev/docs/error?").concat(t," for the full message or use the non-minified dev environment for full errors and additional helpful warnings."))}var K=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",V=K&&"documentMode"in document?document.documentMode:null,Y=K&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),X=K&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),J=!(!K||!("InputEvent"in window)||V)&&"getTargetRanges"in new window.InputEvent("input"),Q=K&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ee=K&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,te=K&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ne=K&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!te,re=Q||ee||ne?"\xa0":"\u200b",oe=X?"\xa0":re,ie=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,ae=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,se={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},le={directionless:1,unmergeable:2},ce={center:2,end:6,justify:4,left:1,right:3,start:5},ue={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},de={normal:0,segmented:2,token:1},fe={0:"normal",2:"segmented",1:"token"},pe=!1,he=0;function me(e){he=e.timeStamp}function ve(e,t,n){return t.__lexicalLineBreak===e||void 0!==e["__lexicalKey_".concat(n._key)]}function ge(e,t,n){pe=!0;var r=100<performance.now()-he;try{Nr(e,(function(){for(var o=ur()||function(e){return e.getEditorState().read((function(){var e=ur();return null!==e?e.clone():null}))}(e),i=new Map,a=e.getRootElement(),c=e._editorState,u=e._blockCursorElement,d=!1,f="",p=0;p<t.length;p++){var h=t[p],m=h.type,v=h.target,g=Ze(v,c);if(!(null===g&&v!==a||Lr(g)))if("characterData"===m){if(h=r&&zn(g))e:{m=v;var y=g;if(Kn(h=o)){var b=h.anchor.getNode();if(b.is(y)&&h.format!==b.getFormat()){h=!1;break e}}h=3===m.nodeType&&y.isAttached()}h&&(m=h=null,null!==(y=mt(e._window))&&y.anchorNode===v&&(h=y.anchorOffset,m=y.focusOffset),null!==(v=v.nodeValue)&&Xe(g,v,h,m,!1))}else if("childList"===m){for(d=!0,m=h.addedNodes,y=0;y<m.length;y++){var x=We(b=m[y]),w=b.parentNode;null==w||b===u||null!==x||"BR"===b.nodeName&&ve(b,w,e)||(X&&(x=b.innerText||b.nodeValue)&&(f+=x),w.removeChild(b))}if(0<(m=(h=h.removedNodes).length)){for(y=0,b=0;b<m;b++)("BR"===(w=h[b]).nodeName&&ve(w,v,e)||u===w)&&(v.appendChild(w),y++);m!==y&&(v===a&&(g=c._nodeMap.get("root")),i.set(v,g))}}}if(0<i.size){var k,S=(0,l.Z)(i);try{for(S.s();!(k=S.n()).done;){var _=(0,s.Z)(k.value,2),E=_[0],C=_[1];if(zr(C))for(i=C.getChildrenKeys(),a=E.firstChild,c=0;c<i.length;c++)null!==(u=e.getElementByKey(i[c]))&&(null==a?(E.appendChild(u),a=u):a!==u&&E.replaceChild(u,a),a=a.nextSibling);else zn(C)&&C.markDirty()}}catch(T){S.e(T)}finally{S.f()}}if(0<(i=n.takeRecords()).length){for(a=0;a<i.length;a++)for(c=(u=i[a]).addedNodes,u=u.target,p=0;p<c.length;p++)null==(v=(g=c[p]).parentNode)||"BR"!==g.nodeName||ve(g,u,e)||v.removeChild(g);n.takeRecords()}null!==o&&(d&&(o.dirty=!0,$e(o)),X&&nt(e)&&o.insertRawText(f))}))}finally{pe=!1}}function ye(e){var t=e._observer;null!==t&&ge(e,t.takeRecords(),t)}function be(e){0===he&&st(e).addEventListener("textInput",me,!0),e._observer=new MutationObserver((function(t,n){ge(e,t,n)}))}function xe(e,t){var n=e.__mode,r=e.__format;e=e.__style;var o=t.__mode,i=t.__format;return t=t.__style,(null===n||n===o)&&(null===r||r===i)&&(null===e||e===t)}function we(e,t){var n=e.mergeWithSibling(t),r=Cr()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function ke(e){if(""===e.__text&&e.isSimpleText()&&!e.isUnmergeable())e.remove();else{for(var t;null!==(t=e.getPreviousSibling())&&zn(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){xe(t,e)&&(e=we(t,e));break}t.remove()}for(var n;null!==(n=e.getNextSibling())&&zn(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){xe(e,n)&&we(e,n);break}n.remove()}}}function Se(e){return _e(e.anchor),_e(e.focus),e}function _e(e){for(;"element"===e.type;){var t=e.getNode(),n=e.offset;if(n===t.getChildrenSize()?(t=t.getChildAtIndex(n-1),n=!0):(t=t.getChildAtIndex(n),n=!1),zn(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!zr(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}var Ee=1,Ce="function"==typeof queueMicrotask?queueMicrotask:function(e){Promise.resolve().then(e)};function Te(e){var t=document.activeElement;if(null===t)return!1;var n=t.nodeName;return Lr(Ze(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function Ie(e,t,n){var r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!Te(t)&&Be(t)===e}catch(o){return!1}}function Be(e){for(;null!=e;){var t=e.__lexicalEditor;if(null!=t)return t;e=it(e)}return null}function Oe(e){return e.isToken()||e.isSegmented()}function Pe(e){for(;null!=e;){if(3===e.nodeType)return e;e=e.firstChild}return null}function Re(e,t,n){return e&(t=se[t])&&(null===n||0===(n&t))?e^t:null===n||n&t?e|t:e}function Ae(e){return zn(e)||Sn(e)||Lr(e)}function Me(e,t){if(null!=t)e.__key=t;else{_r(),99<wr&&q(14),t=Cr();var n=Er(),r=""+Ee++;n._nodeMap.set(r,e),zr(e)?t._dirtyElements.set(r,!0):t._dirtyLeaves.add(r),t._cloneNotNeeded.add(r),t._dirtyType=1,e.__key=r}}function Ne(e){var t=e.getParent();if(null!==t){var n=e.getWritable();t=t.getWritable();var r=e.getPreviousSibling();if(e=e.getNextSibling(),null===r)if(null!==e){var o=e.getWritable();t.__first=e.__key,o.__prev=null}else t.__first=null;else{if(o=r.getWritable(),null!==e){var i=e.getWritable();i.__prev=o.__key,o.__next=i.__key}else o.__next=null;n.__prev=null}null===e?null!==r?(e=r.getWritable(),t.__last=r.__key,e.__next=null):t.__last=null:(e=e.getWritable(),null!==r?((r=r.getWritable()).__next=e.__key,e.__prev=r.__key):e.__prev=null,n.__next=null),t.__size--,n.__parent=null}}function De(e){99<wr&&q(14);var t=e.getLatest(),n=t.__parent,r=Er(),o=Cr(),i=r._nodeMap;if(r=o._dirtyElements,null!==n)e:for(;null!==n&&!r.has(n);){var a=i.get(n);if(void 0===a)break;r.set(n,!1),n=a.__parent}t=t.__key,o._dirtyType=1,zr(e)?r.set(t,!0):o._dirtyLeaves.add(t)}function Le(e){_r();var t=Cr(),n=t._compositionKey;e!==n&&(t._compositionKey=e,null!==n&&(null!==(t=ze(n))&&t.getWritable()),null!==e&&(null!==(e=ze(e))&&e.getWritable()))}function je(){return Sr()?null:Cr()._compositionKey}function ze(e,t){return void 0===(e=(t||Er())._nodeMap.get(e))?null:e}function We(e,t){var n=Cr();return void 0!==(e=e["__lexicalKey_".concat(n._key)])?ze(e,t):null}function Ze(e,t){for(;null!=e;){var n=We(e,t);if(null!==n)return n;e=it(e)}return null}function Fe(e){var t=Object.assign({},e._decorators);return e._pendingDecorators=t}function He(e){return e.read((function(){return Ue().getTextContent()}))}function Ue(){return Er()._nodeMap.get("root")}function $e(e){_r();var t=Er();null!==e&&(e.dirty=!0,e._cachedNodes=null),t._selection=e}function Ge(e){var t,n=Cr();e:{for(t=e;null!=t;){var r=t["__lexicalKey_".concat(n._key)];if(void 0!==r){t=r;break e}t=it(t)}t=null}return null===t?e===(n=n.getRootElement())?ze("root"):null:ze(t)}function qe(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function Ke(e){for(var t=[];null!==e;)t.push(e),e=e._parentEditor;return t}function Ve(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Ye(e,t,n){if(null!==(t=mt(t._window))){var r=t.anchorNode,o=t,i=o.anchorOffset,a=o.focusOffset;if(null!==r&&(t=3===r.nodeType?r.nodeValue:null,r=Ze(r),null!==t&&zn(r))){if(t===re&&n)t=n,a=i=n.length;null!==t&&Xe(r,t,i,a,e)}}}function Xe(e,t,n,r,o){var i=e;if(i.isAttached()&&(o||!i.isDirty())){var a=i.isComposing(),s=t;if((a||o)&&t[t.length-1]===re&&(s=t.slice(0,-1)),t=i.getTextContent(),o||s!==t)if(""===s)if(Le(null),Q||ee||ne)i.remove();else{var l=Cr();setTimeout((function(){l.update((function(){i.isAttached()&&i.remove()}))}),20)}else{o=i.getParent(),t=dr();var c=i.getTextContentSize(),u=je(),d=i.getKey();i.isToken()||null!==u&&d===u&&!a||Kn(t)&&(null!==o&&!o.canInsertTextBefore()&&0===t.anchor.offset||t.anchor.key===e.__key&&0===t.anchor.offset&&!i.canInsertTextBefore()||t.focus.key===e.__key&&t.focus.offset===c&&!i.canInsertTextAfter())?i.markDirty():(Kn(e=ur())&&null!==n&&null!==r&&(e.setTextNodeRange(i,n,i,r),i.isSegmented()&&(n=jn(n=i.getTextContent()),i.replace(n),i=n)),i.setTextContent(s))}}}function Je(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});var n=e.__lexicalClassNameCache,r=n[t];return void 0!==r?r:"string"==typeof(e=e[t])?(e=e.split(" "),n[t]=e):e}function Qe(e,t,n,r,o){0!==n.size&&(n=r.__type,r=r.__key,void 0===(t=t.get(n))&&q(33,n),n=t.klass,void 0===(t=e.get(n))&&(t=new Map,e.set(n,t)),n="destroyed"===(e=t.get(r))&&"created"===o,(void 0===e||n)&&t.set(r,n?"updated":o))}function et(e,t,n){var r=e.getParent(),o=n;return null!==r&&(t&&0===n?(o=e.getIndexWithinParent(),e=r):t||n!==e.getChildrenSize()||(o=e.getIndexWithinParent()+1,e=r)),e.getChildAtIndex(t?o-1:o)}function tt(e,t){var n=e.offset;return"element"===e.type?et(e=e.getNode(),t,n):(e=e.getNode(),t&&0===n||!t&&n===e.getTextContentSize()?null===(n=t?e.getPreviousSibling():e.getNextSibling())?et(e.getParentOrThrow(),t,e.getIndexWithinParent()+(t?0:1)):n:null)}function nt(e){return"insertFromPaste"===(e=(e=st(e).event)&&e.inputType)||"insertFromPasteAsQuotation"===e}function rt(e){return!Fr(e)&&!e.isLastChild()&&!e.isInline()}function ot(e,t){return void 0===(e=e._keyToDOMMap.get(t))&&q(75,t),e}function it(e){return null!==(e=e.assignedSlot||e.parentElement)&&11===e.nodeType?e.host:e}function at(e,t){for(e=e.getParent();null!==e;){if(e.is(t))return!0;e=e.getParent()}return!1}function st(e){return null===(e=e._window)&&q(78),e}function lt(e){for(e=e.getParentOrThrow();null!==e&&!ct(e);)e=e.getParentOrThrow();return e}function ct(e){return Fr(e)||zr(e)&&e.isShadowRoot()}function ut(e){return Me(e=e.constructor.clone(e),null),e}function dt(e){var t=Cr(),n=e.constructor.getType();return void 0===(t=t._nodes.get(n))&&q(97),null!==(t=t.replace)?((t=t(e))instanceof e.constructor||q(98),t):e}function ft(e,t){!Fr(e=e.getParent())||zr(t)||Lr(t)||q(99)}function pt(e){return(Lr(e)||zr(e)&&!e.canBeEmpty())&&!e.isInline()}function ht(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null,null!==(t=e.parentElement)&&t.removeChild(e)}function mt(e){return K?(e||window).getSelection():null}function vt(e,t){var n=e.getChildAtIndex(t);null==n&&(n=e),ct(e)&&q(102);var o=function e(t){var o=t.getParentOrThrow(),i=ct(o),a=t!==n||i?ut(t):t;if(i)return t.insertAfter(a),[t,a,a];var l=e(o),c=(0,s.Z)(l,3),u=c[0],d=c[1],f=c[2];return t=t.getNextSiblings(),f.append.apply(f,[a].concat((0,r.Z)(t))),[u,d,a]}(n),i=(0,s.Z)(o,2);return[i[0],i[1]]}function gt(e,t){for(;e!==Ue()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function yt(e){for(var t=[],n=[e];0<n.length;){var o=n.pop();void 0===o&&q(112),zr(o)&&n.unshift.apply(n,(0,r.Z)(o.getChildren())),o!==e&&t.push(o)}return t}function bt(e,t,n,r,o,i){for(e=e.getFirstChild();null!==e;){var a=e.__key;e.__parent===t&&(zr(e)&&bt(e,a,n,r,o,i),n.has(a)||i.delete(a),o.push(a)),e=e.getNextSibling()}}var xt,wt,kt,St,_t,Et,Ct,Tt,It,Bt,Ot="",Pt="",Rt="",At=!1,Mt=!1,Nt=null;function Dt(e,t){var n=Ct.get(e);if(null!==t){var r=Yt(e);r.parentNode===t&&t.removeChild(r)}Tt.has(e)||wt._keyToDOMMap.delete(e),zr(n)&&Lt(e=Gt(n,Ct),0,e.length-1,null),void 0!==n&&Qe(Bt,kt,St,n,"destroyed")}function Lt(e,t,n,r){for(;t<=n;++t){var o=e[t];void 0!==o&&Dt(o,r)}}function jt(e,t){e.setProperty("text-align",t)}function zt(e,t){var n=xt.theme.indent;if("string"==typeof n){var r=e.classList.contains(n);0<t&&!r?e.classList.add(n):1>t&&r&&e.classList.remove(n)}n=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px",e.style.setProperty("padding-inline-start",0===t?"":"calc(".concat(t," * ").concat(n,")"))}function Wt(e,t){e=e.style,0===t?jt(e,""):1===t?jt(e,"left"):2===t?jt(e,"center"):3===t?jt(e,"right"):4===t?jt(e,"justify"):5===t?jt(e,"start"):6===t&&jt(e,"end")}function Zt(e,t,n){var r=Tt.get(e);void 0===r&&q(60);var o=r.createDOM(xt,wt),i=wt._keyToDOMMap;if(o["__lexicalKey_"+wt._key]=e,i.set(e,o),zn(r)?o.setAttribute("data-lexical-text","true"):Lr(r)&&o.setAttribute("data-lexical-decorator","true"),zr(r)){if(e=r.__indent,i=r.__size,0!==e&&zt(o,e),0!==i){--i,e=Gt(r,Tt);var a=Pt;Pt="",Ft(e,r,0,i,o,null),$t(r,o),Pt=a}0!==(e=r.__format)&&Wt(o,e),r.isInline()||Ut(null,r,o),rt(r)&&(Ot+="\n\n",Rt+="\n\n")}else i=r.getTextContent(),Lr(r)?(null!==(a=r.decorate(wt,xt))&&Kt(e,a),o.contentEditable="false"):zn(r)&&(r.isDirectionless()||(Pt+=i)),Ot+=i,Rt+=i;return null!==t&&(null!=n?t.insertBefore(o,n):null!=(n=t.__lexicalLineBreak)?t.insertBefore(o,n):t.appendChild(o)),Qe(Bt,kt,St,r,"created"),o}function Ft(e,t,n,r,o,i){var a=Ot;for(Ot="";n<=r;++n)Zt(e[n],o,i);rt(t)&&(Ot+="\n\n"),o.__lexicalTextContent=Ot,Ot=a+Ot}function Ht(e,t){return Sn(e=t.get(e))||Lr(e)&&e.isInline()}function Ut(e,t,n){e=null!==e&&(0===e.__size||Ht(e.__last,Ct)),t=0===t.__size||Ht(t.__last,Tt),e?t||(null!=(t=n.__lexicalLineBreak)&&n.removeChild(t),n.__lexicalLineBreak=null):t&&(t=document.createElement("br"),n.__lexicalLineBreak=t,n.appendChild(t))}function $t(e,t){var n=t.__lexicalDir;if(t.__lexicalDirTextContent!==Pt||n!==Nt){var o=""===Pt;if(o)var i=Nt;else i=Pt,i=ie.test(i)?"rtl":ae.test(i)?"ltr":null;if(i!==n){var a=t.classList,s=xt.theme,l=null!==n?s[n]:void 0,c=null!==i?s[i]:void 0;void 0!==l&&("string"==typeof l&&(l=l.split(" "),l=s[n]=l),a.remove.apply(a,(0,r.Z)(l))),null===i||o&&"ltr"===i?t.removeAttribute("dir"):(void 0!==c&&("string"==typeof c&&(n=c.split(" "),c=s[i]=n),void 0!==c&&a.add.apply(a,(0,r.Z)(c))),t.dir=i),Mt||(e.getWritable().__dir=i)}Nt=i,t.__lexicalDirTextContent=Pt,t.__lexicalDir=i}}function Gt(e,t){var n=[];for(e=e.__first;null!==e;){var r=t.get(e);void 0===r&&q(101),n.push(e),e=r.__next}return n}function qt(e,t){var n=Ct.get(e),r=Tt.get(e);void 0!==n&&void 0!==r||q(61);var o=At||Et.has(e)||_t.has(e),i=ot(wt,e);if(n===r&&!o)return zr(n)?(void 0!==(r=i.__lexicalTextContent)&&(Ot+=r,Rt+=r),void 0!==(r=i.__lexicalDirTextContent)&&(Pt+=r)):(r=n.getTextContent(),zn(n)&&!n.isDirectionless()&&(Pt+=r),Rt+=r,Ot+=r),i;if(n!==r&&o&&Qe(Bt,kt,St,r,"updated"),r.updateDOM(n,i,xt))return r=Zt(e,null,null),null===t&&q(62),t.replaceChild(r,i),Dt(e,null),r;if(zr(n)&&zr(r)){if((e=r.__indent)!==n.__indent&&zt(i,e),(e=r.__format)!==n.__format&&Wt(i,e),o){e=r,o=Pt,Pt="",t=Ot;var a=n.__size,s=e.__size;if(Ot="",1===a&&1===s){var l=n.__first,c=e.__first;if(l===c)qt(l,i);else{var u=Yt(l);c=Zt(c,null,null),i.replaceChild(c,u),Dt(l,null)}}else{c=Gt(n,Ct);var d=Gt(e,Tt);if(0===a)0!==s&&Ft(d,e,0,s-1,i,null);else if(0===s)0!==a&&(Lt(c,0,a-1,(l=null==i.__lexicalLineBreak)?null:i),l&&(i.textContent=""));else{var f=c;c=d,d=a-1,a=s-1;var p=i.firstChild,h=0;for(s=0;h<=d&&s<=a;){var m=f[h],v=c[s];if(m===v)p=Vt(qt(v,i)),h++,s++;else{void 0===l&&(l=new Set(f)),void 0===u&&(u=new Set(c));var g=u.has(m),y=l.has(v);g?(y?((m=ot(wt,v))===p?p=Vt(qt(v,i)):(null!=p?i.insertBefore(m,p):i.appendChild(m),qt(v,i)),h++):Zt(v,i,p),s++):(p=Vt(Yt(m)),Dt(m,i),h++)}}u=s>a,(l=h>d)&&!u?Ft(c,e,s,a,i,l=void 0===(l=c[a+1])?null:wt.getElementByKey(l)):u&&!l&&Lt(f,h,d,i)}}rt(e)&&(Ot+="\n\n"),i.__lexicalTextContent=Ot,Ot=t+Ot,$t(e,i),Pt=o,Fr(r)||r.isInline()||Ut(n,r,i)}rt(r)&&(Ot+="\n\n",Rt+="\n\n")}else n=r.getTextContent(),Lr(r)?null!==(o=r.decorate(wt,xt))&&Kt(e,o):zn(r)&&!r.isDirectionless()&&(Pt+=n),Ot+=n,Rt+=n;return!Mt&&Fr(r)&&r.__cachedText!==Rt&&((r=r.getWritable()).__cachedText=Rt),i}function Kt(e,t){var n=wt._pendingDecorators,r=wt._decorators;if(null===n){if(r[e]===t)return;n=Fe(wt)}n[e]=t}function Vt(e){return null!==(e=e.nextSibling)&&e===wt._blockCursorElement&&(e=e.nextSibling),e}function Yt(e){var t=It.get(e);return void 0===t&&q(75,e),t}var Xt=Object.freeze({}),Jt=[["keydown",function(e,t){if(Qt=e.timeStamp,en=e.keyCode,!t.isComposing()){var n=e.keyCode,r=e.shiftKey,o=e.ctrlKey,s=e.metaKey,l=e.altKey;if(!Rr(t,_,e)){if(39!==n||o||s||l)if(39!==n||l||r||!o&&!s)if(37!==n||o||s||l)if(37!==n||l||r||!o&&!s)if(38!==n||o||s)if(40!==n||o||s)if(13===n&&r)sn=!0,Rr(t,P,e);else if(32===n)Rr(t,R,e);else if(Y&&o&&79===n)e.preventDefault(),sn=!0,Rr(t,a,!0);else if(13!==n||r){var c=Y?!l&&!s&&(8===n||72===n&&o):!(o||l||s)&&8===n;c?8===n?Rr(t,A,e):(e.preventDefault(),Rr(t,i,!0)):27===n?Rr(t,M,e):(c=Y?!(r||l||s)&&(46===n||68===n&&o):!(o||l||s)&&46===n)?46===n?Rr(t,N,e):(e.preventDefault(),Rr(t,i,!1)):8===n&&(Y?l:o)?(e.preventDefault(),Rr(t,b,!0)):46===n&&(Y?l:o)?(e.preventDefault(),Rr(t,b,!1)):Y&&s&&8===n?(e.preventDefault(),Rr(t,x,!0)):Y&&s&&46===n?(e.preventDefault(),Rr(t,x,!1)):66===n&&!l&&(Y?s:o)?(e.preventDefault(),Rr(t,w,"bold")):85===n&&!l&&(Y?s:o)?(e.preventDefault(),Rr(t,w,"underline")):73===n&&!l&&(Y?s:o)?(e.preventDefault(),Rr(t,w,"italic")):9!==n||l||o||s?90===n&&!r&&(Y?s:o)?(e.preventDefault(),Rr(t,k,void 0)):(c=Y?90===n&&s&&r:89===n&&o||90===n&&o&&r)?(e.preventDefault(),Rr(t,S,void 0)):Jn(t._editorState._selection)?(c=!r&&(67===n&&(Y?s:o)))?(e.preventDefault(),Rr(t,Z,e)):(c=!r&&(88===n&&(Y?s:o)))?(e.preventDefault(),Rr(t,F,e)):65===n&&(Y?s:o)&&(e.preventDefault(),Rr(t,H,e)):!X&&65===n&&(Y?s:o)&&(e.preventDefault(),Rr(t,H,e)):Rr(t,D,e)}else sn=!1,Rr(t,P,e);else Rr(t,O,e);else Rr(t,B,e);else Rr(t,I,e);else Rr(t,T,e);else Rr(t,C,e);else Rr(t,E,e);(o||r||l||s)&&Rr(t,G,e)}}}],["pointerdown",function(e,t){var n=e.target;e=e.pointerType,n instanceof Node&&"touch"!==e&&Nr(t,(function(){Lr(Ze(n))||(an=!0)}))}],["compositionstart",function(e,t){Nr(t,(function(){var n=ur();if(Kn(n)&&!t.isComposing()){var r=n.anchor,o=n.anchor.getNode();Le(r.key),(e.timeStamp<Qt+30||"element"===r.type||!n.isCollapsed()||o.getFormat()!==n.format||o.getStyle()!==n.style)&&Rr(t,u,oe)}}))}],["compositionend",function(e,t){X?ln=!0:Nr(t,(function(){hn(t,e.data)}))}],["input",function(e,t){e.stopPropagation(),Nr(t,(function(){var n=ur(),r=e.data,o=pn(e);if(null!=r&&Kn(n)&&un(n,o,r,e.timeStamp,!1)){ln&&(hn(t,r),ln=!1);var i=n.anchor,a=i.getNode();if(null===(o=mt(t._window)))return;var s=i.offset;(i=J&&!n.isCollapsed()&&zn(a)&&null!==o.anchorNode)&&(i=(a=a.getTextContent().slice(0,s)+r+a.getTextContent().slice(s+n.focus.offset))===(3===(o=o.anchorNode).nodeType?o.nodeValue:null)),i||Rr(t,u,r),r=r.length,X&&1<r&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=r),Q||ee||ne||!t.isComposing()||(Qt=0,Le(null))}else Ye(!1,t,null!==r?r:void 0),ln&&(hn(t,r||void 0),ln=!1);_r(),ye(n=Cr())})),nn=null}],["click",function(e,t){Nr(t,(function(){var r=ur(),o=mt(t._window),i=dr();if(o)if(Kn(r)){var a=r.anchor,s=a.getNode();"element"===a.type&&0===a.offset&&r.isCollapsed()&&!Fr(s)&&1===Ue().getChildrenSize()&&s.getTopLevelElementOrThrow().isEmpty()&&null!==i&&r.is(i)?(o.removeAllRanges(),r.dirty=!0):3!==e.detail||r.isCollapsed()||s!==(o=r.focus.getNode())&&(zr(s)?s.select(0):s.getParentOrThrow().select(0))}else"touch"===e.pointerType&&(null!==(s=o.anchorNode)&&(1===(s=s.nodeType)||3===s))&&$e(o=cr(i,o,t));Rr(t,n,e)}))}],["cut",Xt],["copy",Xt],["dragstart",Xt],["dragover",Xt],["dragend",Xt],["paste",Xt],["focus",Xt],["blur",Xt],["drop",Xt]];J&&Jt.push(["beforeinput",function(e,t){return function(e,t){var n=e.inputType,r=pn(e);"deleteCompositionText"===n||X&&nt(t)||"insertCompositionText"!==n&&Nr(t,(function(){var o=ur();if("deleteContentBackward"===n){if(null===o){var s=dr();if(!Kn(s))return;$e(s.clone())}if(Kn(o))return void(229===en&&e.timeStamp<Qt+30&&t.isComposing()&&o.anchor.key===o.focus.key?(Le(null),Qt=0,setTimeout((function(){Nr(t,(function(){Le(null)}))}),30),Kn(o)&&(s=o.anchor.getNode(),s.markDirty(),o.format=s.getFormat(),o.style=s.getStyle())):(e.preventDefault(),Rr(t,i,!0)))}if(Kn(o)){s=e.data,null!==nn&&Ye(!1,t,nn),o.dirty&&null===nn||!o.isCollapsed()||Fr(o.anchor.getNode())||null===r||o.applyDOMRange(r),nn=null;var l=o.focus,f=o.anchor.getNode();if(l=l.getNode(),"insertText"===n||"insertTranspose"===n)"\n"===s?(e.preventDefault(),Rr(t,a,!1)):"\n\n"===s?(e.preventDefault(),Rr(t,c,void 0)):null==s&&e.dataTransfer?(s=e.dataTransfer.getData("text/plain"),e.preventDefault(),o.insertRawText(s)):null!=s&&un(o,r,s,e.timeStamp,!0)?(e.preventDefault(),Rr(t,u,s)):nn=s,tn=e.timeStamp;else switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Rr(t,u,e);break;case"insertFromComposition":Le(null),Rr(t,u,e);break;case"insertLineBreak":Le(null),Rr(t,a,!1);break;case"insertParagraph":Le(null),sn&&!ee?(sn=!1,Rr(t,a,!1)):Rr(t,c,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Rr(t,d,e);break;case"deleteByComposition":(function(e,t){return e!==t||zr(e)||zr(t)||!e.isToken()||!t.isToken()})(f,l)&&Rr(t,y,e);break;case"deleteByDrag":case"deleteByCut":Rr(t,y,e);break;case"deleteContent":Rr(t,i,!1);break;case"deleteWordBackward":Rr(t,b,!0);break;case"deleteWordForward":Rr(t,b,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Rr(t,x,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Rr(t,x,!1);break;case"formatStrikeThrough":Rr(t,w,"strikethrough");break;case"formatBold":Rr(t,w,"bold");break;case"formatItalic":Rr(t,w,"italic");break;case"formatUnderline":Rr(t,w,"underline");break;case"historyUndo":Rr(t,k,void 0);break;case"historyRedo":Rr(t,S,void 0)}}}))}(e,t)}]);var Qt=0,en=0,tn=0,nn=null,rn=0,on=!1,an=!1,sn=!1,ln=!1,cn=[0,"",0,"root",0];function un(e,t,n,r,o){var i=e.anchor,a=e.focus,s=i.getNode(),l=Cr(),c=mt(l._window),u=null!==c?c.anchorNode:null,d=i.key;l=l.getElementByKey(d);var f=n.length;return d!==a.key||!zn(s)||(!o&&(!J||tn<r+50)||s.isDirty()&&2>f||qe(n))&&i.offset!==a.offset&&!s.isComposing()||Oe(s)||s.isDirty()&&1<f||(o||!J)&&null!==l&&!s.isComposing()&&u!==Pe(l)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||s.getFormat()!==e.format||s.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;e=e.anchor.offset;var n=t.getParentOrThrow(),r=t.isToken();return 0===e?((e=!t.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=(zn(t=t.getPreviousSibling())||zr(t)&&t.isInline())&&!t.canInsertTextAfter()),e):e===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()||r)}(e,s)}function dn(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function fn(e,n,r){var o=e.anchorNode,i=e.anchorOffset,a=e.focusNode,l=e.focusOffset;on&&(on=!1,dn(o,i)&&dn(a,l))||Nr(n,(function(){if(r){if(Ie(n,o,a)){var i=ur();if(Kn(i)){var l=i.anchor,c=l.getNode();if(i.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(i.dirty=!0);var u=st(n).event;u=u?u.timeStamp:performance.now();var d=cn,f=(0,s.Z)(d,5),p=f[0],h=f[1],m=f[2],v=f[3];u<f[4]+200&&l.offset===m&&l.key===v?(i.format=p,i.style=h):"text"===l.type?(i.format=c.getFormat(),i.style=c.getStyle()):"element"===l.type&&(i.format=0,i.style="")}else{l=255,c=!1;for(var g=(u=i.getNodes()).length,y=0;y<g;y++){var b=u[y];if(zn(b)&&(c=!0,0===(l&=b.getFormat())))break}i.format=c?l:0}}Rr(n,t,void 0)}}else $e(null)}))}function pn(e){return e.getTargetRanges?0===(e=e.getTargetRanges()).length?null:e[0]:null}function hn(e,t){var n=e._compositionKey;if(Le(null),null!==n&&null!=t){if(""===t)return t=ze(n),void(null!==(e=Pe(e.getElementByKey(n)))&&null!==e.nodeValue&&zn(t)&&Xe(t,e.nodeValue,null,null,!0));if("\n"===t[t.length-1]&&Kn(n=ur()))return t=n.focus,n.anchor.set(t.key,t.offset,t.type),void Rr(e,P,null)}Ye(!0,e,t)}function mn(e){var t=e.__lexicalEventHandles;return void 0===t&&(t=[],e.__lexicalEventHandles=t),t}var vn=new Map;function gn(e){var t=mt(null==(e=e.target)?null:9===e.nodeType?e.defaultView:e.ownerDocument.defaultView);if(null!==t){var n=Be(t.anchorNode);if(null!==n){an&&(an=!1,Nr(n,(function(){var e=dr(),r=t.anchorNode;null!==r&&(1===(r=r.nodeType)||3===r)&&$e(e=cr(e,t,n))})));var r=(e=(e=Ke(n))[e.length-1])._key,o=vn.get(r),i=o||e;i!==n&&fn(t,i,!1),fn(t,n,!0),n!==e?vn.set(r,n):o&&vn.delete(r)}}}function yn(e,t,n){_r();var r=e.__key,o=e.getParent();if(null!==o){var i=ur();if(Kn(i)&&zr(e)){var a=i,s=a.anchor,l=a.focus,c=s.getNode(),u=l.getNode();at(c,e)&&s.set(e.__key,0,"element"),at(u,e)&&l.set(e.__key,0,"element")}if(u=!1,Kn(c=i)&&t){i=c.anchor;var d=c.focus;i.key===r&&(hr(i,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0),d.key===r&&(hr(d,e,o,e.getPreviousSibling(),e.getNextSibling()),u=!0)}else Jn(c)&&t&&e.isSelected()&&e.selectPrevious();Kn(c)&&t&&!u?(r=e.getIndexWithinParent(),Ne(e),fr(c,o,r,-1)):Ne(e),n||ct(o)||o.canBeEmpty()||!o.isEmpty()||yn(o,t),t&&Fr(o)&&o.isEmpty()&&o.selectEnd()}}var bn=function(){function e(t){(0,v.Z)(this,e),this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,Me(this,t)}return(0,g.Z)(e,[{key:"getType",value:function(){return this.__type}},{key:"isAttached",value:function(){for(var e=this.__key;null!==e;){if("root"===e)return!0;if(null===(e=ze(e)))break;e=e.__parent}return!1}},{key:"isSelected",value:function(e){var t=this;if(null==(e=e||ur()))return!1;var n=e.getNodes().some((function(e){return e.__key===t.__key}));return(zn(this)||!Kn(e)||"element"!==e.anchor.type||"element"!==e.focus.type||e.anchor.key!==e.focus.key||e.anchor.offset!==e.focus.offset)&&n}},{key:"getKey",value:function(){return this.__key}},{key:"getIndexWithinParent",value:function(){var e=this.getParent();if(null===e)return-1;e=e.getFirstChild();for(var t=0;null!==e;){if(this.is(e))return t;t++,e=e.getNextSibling()}return-1}},{key:"getParent",value:function(){var e=this.getLatest().__parent;return null===e?null:ze(e)}},{key:"getParentOrThrow",value:function(){var e=this.getParent();return null===e&&q(66,this.__key),e}},{key:"getTopLevelElement",value:function(){for(var e=this;null!==e;){var t=e.getParent();if(ct(t))return e;e=t}return null}},{key:"getTopLevelElementOrThrow",value:function(){var e=this.getTopLevelElement();return null===e&&q(67,this.__key),e}},{key:"getParents",value:function(){for(var e=[],t=this.getParent();null!==t;)e.push(t),t=t.getParent();return e}},{key:"getParentKeys",value:function(){for(var e=[],t=this.getParent();null!==t;)e.push(t.__key),t=t.getParent();return e}},{key:"getPreviousSibling",value:function(){var e=this.getLatest().__prev;return null===e?null:ze(e)}},{key:"getPreviousSiblings",value:function(){var e=[],t=this.getParent();if(null===t)return e;for(t=t.getFirstChild();null!==t&&!t.is(this);)e.push(t),t=t.getNextSibling();return e}},{key:"getNextSibling",value:function(){var e=this.getLatest().__next;return null===e?null:ze(e)}},{key:"getNextSiblings",value:function(){for(var e=[],t=this.getNextSibling();null!==t;)e.push(t),t=t.getNextSibling();return e}},{key:"getCommonAncestor",value:function(e){var t=this.getParents(),n=e.getParents();zr(this)&&t.unshift(this),zr(e)&&n.unshift(e),e=t.length;var r=n.length;if(0===e||0===r||t[e-1]!==n[r-1])return null;for(n=new Set(n),r=0;r<e;r++){var o=t[r];if(n.has(o))return o}return null}},{key:"is",value:function(e){return null!=e&&this.__key===e.__key}},{key:"isBefore",value:function(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;for(var t=this.getCommonAncestor(e),n=this;;){var r=n.getParentOrThrow();if(r===t){r=n.getIndexWithinParent();break}n=r}for(n=e;;){if((e=n.getParentOrThrow())===t){t=n.getIndexWithinParent();break}n=e}return r<t}},{key:"isParentOf",value:function(e){var t=this.__key;if(t===e.__key)return!1;for(;null!==e;){if(e.__key===t)return!0;e=e.getParent()}return!1}},{key:"getNodesBetween",value:function(e){for(var t=this.isBefore(e),n=[],r=new Set,o=this;;){var i=o.__key;if(r.has(i)||(r.add(i),n.push(o)),o===e)break;if(null!==(i=zr(o)?t?o.getFirstChild():o.getLastChild():null))o=i;else if(null!==(i=t?o.getNextSibling():o.getPreviousSibling()))o=i;else{if(o=o.getParentOrThrow(),r.has(o.__key)||n.push(o),o===e)break;i=o;do{null===i&&q(68),o=t?i.getNextSibling():i.getPreviousSibling(),null!==(i=i.getParent())&&(null!==o||r.has(i.__key)||n.push(i))}while(null===o)}}return t||n.reverse(),n}},{key:"isDirty",value:function(){var e=Cr()._dirtyLeaves;return null!==e&&e.has(this.__key)}},{key:"getLatest",value:function(){var e=ze(this.__key);return null===e&&q(113),e}},{key:"getWritable",value:function(){_r();var e=Er(),t=Cr();e=e._nodeMap;var n=this.__key,r=this.getLatest(),o=r.__parent;t=t._cloneNotNeeded;var i=ur();return null!==i&&(i._cachedNodes=null),t.has(n)?(De(r),r):((i=r.constructor.clone(r)).__parent=o,i.__next=r.__next,i.__prev=r.__prev,zr(r)&&zr(i)?(i.__first=r.__first,i.__last=r.__last,i.__size=r.__size,i.__indent=r.__indent,i.__format=r.__format,i.__dir=r.__dir):zn(r)&&zn(i)&&(i.__format=r.__format,i.__style=r.__style,i.__mode=r.__mode,i.__detail=r.__detail),t.add(n),i.__key=n,De(i),e.set(n,i),i)}},{key:"getTextContent",value:function(){return""}},{key:"getTextContentSize",value:function(){return this.getTextContent().length}},{key:"createDOM",value:function(){q(70)}},{key:"updateDOM",value:function(){q(71)}},{key:"exportDOM",value:function(e){return{element:this.createDOM(e._config,e)}}},{key:"exportJSON",value:function(){q(72)}},{key:"remove",value:function(e){yn(this,!0,e)}},{key:"replace",value:function(e,t){_r();var n=ur();null!==n&&(n=n.clone()),ft(this,e);var r=this.getLatest(),o=this.__key,i=e.__key,a=e.getWritable(),s=(e=this.getParentOrThrow().getWritable()).__size;Ne(a);var l=r.getPreviousSibling(),c=r.getNextSibling(),u=r.__prev,d=r.__next,f=r.__parent;return yn(r,!1,!0),null===l?e.__first=i:l.getWritable().__next=i,a.__prev=u,null===c?e.__last=i:c.getWritable().__prev=i,a.__next=d,a.__parent=f,e.__size=s,t&&this.getChildren().forEach((function(e){a.append(e)})),Kn(n)&&($e(n),t=n.anchor,n=n.focus,t.key===o&&Un(t,a),n.key===o&&Un(n,a)),je()===o&&Le(i),a}},{key:"insertAfter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_r(),ft(this,e);var n=this.getWritable(),r=e.getWritable(),o=r.getParent(),i=ur(),a=!1,s=!1;if(null!==o){var l=e.getIndexWithinParent();Ne(r),Kn(i)&&(s=o.__key,a=i.anchor,o=i.focus,a="element"===a.type&&a.key===s&&a.offset===l+1,s="element"===o.type&&o.key===s&&o.offset===l+1)}o=this.getNextSibling(),l=this.getParentOrThrow().getWritable();var c=r.__key,u=n.__next;return null===o?l.__last=c:o.getWritable().__prev=c,l.__size++,n.__next=c,r.__next=u,r.__prev=n.__key,r.__parent=n.__parent,t&&Kn(i)&&(fr(i,l,(t=this.getIndexWithinParent())+1),n=l.__key,a&&i.anchor.set(n,t+2,"element"),s&&i.focus.set(n,t+2,"element")),e}},{key:"insertBefore",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_r(),ft(this,e);var n=this.getWritable(),r=e.getWritable(),o=r.__key;Ne(r);var i=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();return null===i?a.__first=o:i.getWritable().__next=o,a.__size++,n.__prev=o,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent,n=ur(),t&&Kn(n)&&fr(n,t=this.getParentOrThrow(),l),e}},{key:"isParentRequired",value:function(){return!1}},{key:"createParentElementNode",value:function(){return Kr()}},{key:"selectPrevious",value:function(e,t){_r();var n=this.getPreviousSibling(),r=this.getParentOrThrow();return null===n?r.select(0,0):zr(n)?n.select():zn(n)?n.select(e,t):(e=n.getIndexWithinParent()+1,r.select(e,e))}},{key:"selectNext",value:function(e,t){_r();var n=this.getNextSibling(),r=this.getParentOrThrow();return null===n?r.select():zr(n)?n.select(0,0):zn(n)?n.select(e,t):(e=n.getIndexWithinParent(),r.select(e,e))}},{key:"markDirty",value:function(){this.getWritable()}}],[{key:"getType",value:function(){q(64,this.name)}},{key:"clone",value:function(){q(65,this.name)}},{key:"importJSON",value:function(){q(18,this.name)}},{key:"transform",value:function(){return null}}]),e}(),xn=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e){return(0,v.Z)(this,n),t.call(this,e)}return(0,g.Z)(n,[{key:"getTextContent",value:function(){return"\n"}},{key:"createDOM",value:function(){return document.createElement("br")}},{key:"updateDOM",value:function(){return!1}},{key:"exportJSON",value:function(){return{type:"linebreak",version:1}}}],[{key:"getType",value:function(){return"linebreak"}},{key:"clone",value:function(e){return new n(e.__key)}},{key:"importDOM",value:function(){return{br:function(e){var t,n,r=e.parentElement;return null!==r&&((t=r.firstChild)===e||t.nextSibling===e&&3===t.nodeType&&null!==(t.textContent||"").match(/^(|\t|\r?\n)+$/))&&((n=r.lastChild)===e||n.previousSibling===e&&3===n.nodeType&&null!==(n.textContent||"").match(/^(|\t|\r?\n)+$/))?null:{conversion:wn,priority:0}}}}},{key:"importJSON",value:function(){return kn()}}]),n}(bn);function wn(){return{node:kn()}}function kn(){return dt(new xn)}function Sn(e){return e instanceof xn}function _n(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function En(e,t){return 1&t?"strong":2&t?"em":"span"}function Cn(e,t,n,o,i){var a,s,l;e=o.classList,void 0!==(o=Je(i,"base"))&&(a=e).add.apply(a,(0,r.Z)(o)),o=Je(i,"underlineStrikethrough");var c=!1,u=8&t&&4&t,d=8&n&&4&n;for(var f in void 0!==o&&(d?(c=!0,u||(s=e).add.apply(s,(0,r.Z)(o))):u&&(l=e).remove.apply(l,(0,r.Z)(o))),se){var p,h,m;d=se[f],void 0!==(o=Je(i,f))&&(n&d?!c||"underline"!==f&&"strikethrough"!==f?(0===(t&d)||u&&"underline"===f||"strikethrough"===f)&&(p=e).add.apply(p,(0,r.Z)(o)):t&d&&(h=e).remove.apply(h,(0,r.Z)(o)):t&d&&(m=e).remove.apply(m,(0,r.Z)(o)))}}function Tn(e,t,n){var r=t.firstChild;if(e+=(n=n.isComposing())?re:"",null==r)t.textContent=e;else if((t=r.nodeValue)!==e)if(n||X){n=t.length;for(var o=e.length,i=0,a=0;i<n&&i<o&&t[i]===e[i];)i++;for(;a+i<n&&a+i<o&&t[n-a-1]===e[o-a-1];)a++;var l=e=[i,n-i-a,e.slice(i,o-a)],c=(0,s.Z)(l,3),u=c[0],d=c[1],f=c[2];0!==d&&r.deleteData(u,d),r.insertData(u,f)}else r.nodeValue=e}function In(e,t){return(t=document.createElement(t)).appendChild(e),t}var Bn=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e,r){var o;return(0,v.Z)(this,n),(o=t.call(this,r)).__text=e,o.__format=0,o.__style="",o.__detail=o.__mode=0,o}return(0,g.Z)(n,[{key:"getFormat",value:function(){return this.getLatest().__format}},{key:"getDetail",value:function(){return this.getLatest().__detail}},{key:"getMode",value:function(){var e=this.getLatest();return fe[e.__mode]}},{key:"getStyle",value:function(){return this.getLatest().__style}},{key:"isToken",value:function(){return 1===this.getLatest().__mode}},{key:"isComposing",value:function(){return this.__key===je()}},{key:"isSegmented",value:function(){return 2===this.getLatest().__mode}},{key:"isDirectionless",value:function(){return 0!==(1&this.getLatest().__detail)}},{key:"isUnmergeable",value:function(){return 0!==(2&this.getLatest().__detail)}},{key:"hasFormat",value:function(e){return e=se[e],0!==(this.getFormat()&e)}},{key:"isSimpleText",value:function(){return"text"===this.__type&&0===this.__mode}},{key:"getTextContent",value:function(){return this.getLatest().__text}},{key:"getFormatFlags",value:function(e,t){return Re(this.getLatest().__format,e,t)}},{key:"createDOM",value:function(e){var t=this.__format,n=_n(0,t),r=En(0,t),o=document.createElement(null===n?r:n),i=o;return null!==n&&(i=document.createElement(r),o.appendChild(i)),n=i,Tn(this.__text,n,this),void 0!==(e=e.theme.text)&&Cn(r,0,t,n,e),""!==(t=this.__style)&&(o.style.cssText=t),o}},{key:"updateDOM",value:function(e,t,n){var r=this.__text,o=e.__format,i=this.__format,a=_n(0,o),s=_n(0,i),l=En(0,o),c=En(0,i);return(null===a?l:a)!==(null===s?c:s)||(a===s&&l!==c?(null==(o=t.firstChild)&&q(48),Tn(r,e=a=document.createElement(c),this),void 0!==(n=n.theme.text)&&Cn(c,0,i,e,n),t.replaceChild(a,o),!1):(l=t,null!==s&&null!==a&&(null==(l=t.firstChild)&&q(49)),Tn(r,l,this),void 0!==(n=n.theme.text)&&o!==i&&Cn(c,o,i,l,n),i=this.__style,e.__style!==i&&(t.style.cssText=i),!1))}},{key:"exportDOM",value:function(e){return null!==(e=(0,f.Z)((0,p.Z)(n.prototype),"exportDOM",this).call(this,e).element)&&(this.hasFormat("bold")&&(e=In(e,"b")),this.hasFormat("italic")&&(e=In(e,"i")),this.hasFormat("strikethrough")&&(e=In(e,"s")),this.hasFormat("underline")&&(e=In(e,"u"))),{element:e}}},{key:"exportJSON",value:function(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}},{key:"selectionTransform",value:function(){}},{key:"setFormat",value:function(e){var t=this.getWritable();return t.__format="string"==typeof e?se[e]:e,t}},{key:"setDetail",value:function(e){var t=this.getWritable();return t.__detail="string"==typeof e?le[e]:e,t}},{key:"setStyle",value:function(e){var t=this.getWritable();return t.__style=e,t}},{key:"toggleFormat",value:function(e){return e=se[e],this.setFormat(this.getFormat()^e)}},{key:"toggleDirectionless",value:function(){var e=this.getWritable();return e.__detail^=1,e}},{key:"toggleUnmergeable",value:function(){var e=this.getWritable();return e.__detail^=2,e}},{key:"setMode",value:function(e){if(e=de[e],this.__mode===e)return this;var t=this.getWritable();return t.__mode=e,t}},{key:"setTextContent",value:function(e){if(this.__text===e)return this;var t=this.getWritable();return t.__text=e,t}},{key:"select",value:function(e,t){_r();var n=ur(),r=this.getTextContent(),o=this.__key;return"string"==typeof r?(r=r.length,void 0===e&&(e=r),void 0===t&&(t=r)):t=e=0,Kn(n)?((r=je())!==n.anchor.key&&r!==n.focus.key||Le(o),n.setTextNodeRange(this,e,this,t),n):sr(o,e,o,t,"text","text")}},{key:"spliceText",value:function(e,t,n,r){var o=this.getWritable(),i=o.__text,a=n.length,s=e;0>s&&(0>(s=a+s)&&(s=0));var l=ur();return r&&Kn(l)&&(e+=a,l.setTextNodeRange(o,e,o,e)),t=i.slice(0,s)+n+i.slice(s+t),o.__text=t,o}},{key:"canInsertTextBefore",value:function(){return!0}},{key:"canInsertTextAfter",value:function(){return!0}},{key:"splitText",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_r();var r=this.getLatest(),o=r.getTextContent(),i=r.__key,a=je(),s=new Set(t);t=[];for(var l=o.length,c="",u=0;u<l;u++)""!==c&&s.has(u)&&(t.push(c),c=""),c+=o[u];if(""!==c&&t.push(c),0===(s=t.length))return[];if(t[0]===o)return[r];var d=t[0];o=r.getParentOrThrow(),u=r.getFormat();var f=r.getStyle(),p=r.__detail;l=!1,r.isSegmented()?((c=jn(d)).__format=u,c.__style=f,c.__detail=p,l=!0):(c=r.getWritable()).__text=d,r=ur(),c=[c],d=d.length;for(var h=1;h<s;h++){var m=t[h],v=m.length;(m=jn(m).getWritable()).__format=u,m.__style=f,m.__detail=p;var g=m.__key;if(v=d+v,Kn(r)){var y=r.anchor,b=r.focus;y.key===i&&"text"===y.type&&y.offset>d&&y.offset<=v&&(y.key=g,y.offset-=d,r.dirty=!0),b.key===i&&"text"===b.type&&b.offset>d&&b.offset<=v&&(b.key=g,b.offset-=d,r.dirty=!0)}a===i&&Le(g),d=v,c.push(m)}return i=this.getPreviousSibling(),a=this.getNextSibling(),null!==i&&De(i),null!==a&&De(a),i=o.getWritable(),a=this.getIndexWithinParent(),l?(i.splice(a,0,c),this.remove()):i.splice(a,1,c),Kn(r)&&fr(r,o,a,s-1),c}},{key:"mergeWithSibling",value:function(e){var t=e===this.getPreviousSibling();t||e===this.getNextSibling()||q(50);var n=this.__key,r=e.__key,o=this.__text,i=o.length;je()===r&&Le(n);var a=ur();if(Kn(a)){var s=a.anchor,l=a.focus;null!==s&&s.key===r&&(mr(s,t,n,e,i),a.dirty=!0),null!==l&&l.key===r&&(mr(l,t,n,e,i),a.dirty=!0)}return n=e.__text,this.setTextContent(t?n+o:o+n),t=this.getWritable(),e.remove(),t}},{key:"isTextEntity",value:function(){return!1}}],[{key:"getType",value:function(){return"text"}},{key:"clone",value:function(e){return new n(e.__text,e.__key)}},{key:"importDOM",value:function(){return{"#text":function(){return{conversion:An,priority:0}},b:function(){return{conversion:Pn,priority:0}},code:function(){return{conversion:Ln,priority:0}},em:function(){return{conversion:Ln,priority:0}},i:function(){return{conversion:Ln,priority:0}},s:function(){return{conversion:Ln,priority:0}},span:function(){return{conversion:On,priority:0}},strong:function(){return{conversion:Ln,priority:0}},sub:function(){return{conversion:Ln,priority:0}},sup:function(){return{conversion:Ln,priority:0}},u:function(){return{conversion:Ln,priority:0}}}}},{key:"importJSON",value:function(e){var t=jn(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}}]),n}(bn);function On(e){var t="700"===e.style.fontWeight,n="line-through"===e.style.textDecoration,r="italic"===e.style.fontStyle,o="underline"===e.style.textDecoration,i=e.style.verticalAlign;return{forChild:function(e){return zn(e)&&(t&&e.toggleFormat("bold"),n&&e.toggleFormat("strikethrough"),r&&e.toggleFormat("italic"),o&&e.toggleFormat("underline"),"sub"===i&&e.toggleFormat("subscript"),"super"===i&&e.toggleFormat("superscript")),e},node:null}}function Pn(e){var t="normal"===e.style.fontWeight;return{forChild:function(e){return zn(e)&&!t&&e.toggleFormat("bold"),e},node:null}}var Rn=new WeakMap;function An(e){null===e.parentElement&&q(129);for(var t,n=e.textContent||"",r=e.parentNode,o=[e];null!==r&&void 0===(t=Rn.get(r))&&!("PRE"===r.nodeName||1===r.nodeType&&r.style.whiteSpace.startsWith("pre"));)o.push(r),r=r.parentNode;for(t=void 0===t?r:t,r=0;r<o.length;r++)Rn.set(o[r],t);if(null!==t){for(e=[],o=(n=n.split(/(\r?\n|\t)/)).length,t=0;t<o;t++)"\n"===(r=n[t])||"\r\n"===r?e.push(kn()):"\t"===r?e.push(Zn()):""!==r&&e.push(jn(r));return{node:e}}if(""===(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===n[0]){for(o=e,t=!0;null!==o&&null!==(o=Nn(o,!1));)if(0<(r=o.textContent||"").length){/[ \t\n]$/.test(r)&&(n=n.slice(1)),t=!1;break}t&&(n=n.slice(1))}if(" "===n[n.length-1]){for(o=!0;null!==e&&null!==(e=Nn(e,!0));)if(0<(e.textContent||"").replace(/^(|\t|\r?\n)+/,"").length){o=!1;break}o&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:jn(n)}}var Mn=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function Nn(e,t){for(;;){for(var n=void 0;null===(n=t?e.nextSibling:e.previousSibling);)if(null===(e=e.parentElement))return null;if(1===(e=n).nodeType&&(""===(n=e.style.display)&&null===e.nodeName.match(Mn)||""!==n&&!n.startsWith("inline")))return null;for(;null!==(n=t?e.firstChild:e.lastChild);)e=n;if(3===e.nodeType)return e;if("BR"===e.nodeName)return null}}var Dn={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Ln(e){var t=Dn[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:function(e){return zn(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e},node:null}}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return dt(new Bn(e))}function zn(e){return e instanceof Bn}var Wn=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e){var r;return(0,v.Z)(this,n),(r=t.call(this,"\t",e)).__detail=2,r}return(0,g.Z)(n,[{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(n.prototype),"exportJSON",this).call(this)),{},{type:"tab",version:1})}},{key:"setTextContent",value:function(){q(126)}},{key:"setDetail",value:function(){q(127)}},{key:"setMode",value:function(){q(128)}},{key:"canInsertTextBefore",value:function(){return!1}},{key:"canInsertTextAfter",value:function(){return!1}}],[{key:"getType",value:function(){return"tab"}},{key:"clone",value:function(e){var t=new n(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}},{key:"importDOM",value:function(){return null}},{key:"importJSON",value:function(e){var t=Zn();return t.setFormat(e.format),t.setStyle(e.style),t}}]),n}(Bn);function Zn(){return dt(new Wn)}var Fn=function(){function e(t,n,r){(0,v.Z)(this,e),this._selection=null,this.key=t,this.offset=n,this.type=r}return(0,g.Z)(e,[{key:"is",value:function(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}},{key:"isBefore",value:function(e){var t,n=this.getNode(),r=e.getNode(),o=this.offset;if(e=e.offset,zr(n)){var i,a=n.getDescendantByIndex(o);n=null!==(i=a)&&void 0!==i?i:n}return zr(r)&&(a=r.getDescendantByIndex(e),r=null!==(t=a)&&void 0!==t?t:r),n===r?o<e:n.isBefore(r)}},{key:"getNode",value:function(){var e=ze(this.key);return null===e&&q(20),e}},{key:"set",value:function(e,t,n){var r=this._selection,o=this.key;this.key=e,this.offset=t,this.type=n,Sr()||(je()===o&&Le(e),null!==r&&(r._cachedNodes=null,r.dirty=!0))}}]),e}();function Hn(e,t){var n=t.__key,r=e.offset,o="element";if(zn(t))o="text",r>(t=t.getTextContentSize())&&(r=t);else if(!zr(t)){var i=t.getNextSibling();zn(i)?(n=i.__key,r=0,o="text"):(i=t.getParent())&&(n=i.__key,r=t.getIndexWithinParent()+1)}e.set(n,r,o)}function Un(e,t){if(zr(t)){var n=t.getLastDescendant();zr(n)||zn(n)?Hn(e,n):Hn(e,t)}else Hn(e,t)}function $n(e,t,n,r){var o=e.getNode(),i=o.getChildAtIndex(e.offset),a=jn(),s=Fr(o)?Kr().append(a):a;a.setFormat(n),a.setStyle(r),null===i?o.append(s):(i.insertBefore(s),"element"===t.type&&t.key===e.key&&t.offset!==e.offset&&t.set(t.key,t.offset+1,"element")),e.is(t)&&t.set(a.__key,0,"text"),e.set(a.__key,0,"text")}function Gn(e,t,n,r){e.key=t,e.offset=n,e.type=r}var qn=function(){function e(t){(0,v.Z)(this,e),this.dirty=!1,this._nodes=t,this._cachedNodes=null}return(0,g.Z)(e,[{key:"is",value:function(e){if(!Jn(e))return!1;var t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every((function(e){return n.has(e)}))}},{key:"add",value:function(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}},{key:"delete",value:function(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}},{key:"clear",value:function(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}},{key:"has",value:function(e){return this._nodes.has(e)}},{key:"clone",value:function(){return new e(new Set(this._nodes))}},{key:"extract",value:function(){return this.getNodes()}},{key:"insertRawText",value:function(){}},{key:"insertText",value:function(){}},{key:"insertNodes",value:function(e,t){var n=this.getNodes(),r=n.length,o=n[r-1];if(zn(o))o=o.select();else{var i=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(i,i)}for(o.insertNodes(e,t),e=0;e<r;e++)n[e].remove();return!0}},{key:"getNodes",value:function(){var e=this._cachedNodes;if(null!==e)return e;var t=this._nodes;e=[];var n,r=(0,l.Z)(t);try{for(r.s();!(n=r.n()).done;){null!==(t=ze(n.value))&&e.push(t)}}catch(o){r.e(o)}finally{r.f()}return Sr()||(this._cachedNodes=e),e}},{key:"getTextContent",value:function(){for(var e=this.getNodes(),t="",n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}]),e}();function Kn(e){return e instanceof Xn}var Vn=function(){function e(t,n,r){(0,v.Z)(this,e),this.gridKey=t,this.anchor=n,this.focus=r,this.dirty=!1,this._cachedNodes=null,n._selection=this,r._selection=this}return(0,g.Z)(e,[{key:"is",value:function(e){return!!Yn(e)&&(this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus))}},{key:"set",value:function(e,t,n){this.dirty=!0,this.gridKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}},{key:"clone",value:function(){return new e(this.gridKey,this.anchor,this.focus)}},{key:"isCollapsed",value:function(){return!1}},{key:"isBackward",value:function(){return this.focus.isBefore(this.anchor)}},{key:"getCharacterOffsets",value:function(){return er(this)}},{key:"extract",value:function(){return this.getNodes()}},{key:"insertRawText",value:function(){}},{key:"insertText",value:function(){}},{key:"insertNodes",value:function(e,t){var n=this.focus.getNode();return Se(n.select(0,n.getChildrenSize())).insertNodes(e,t)}},{key:"getShape",value:function(){var e=ze(this.anchor.key);null===e&&q(21);var t=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var n=ze(this.focus.key);null===n&&q(22);var r=n.getIndexWithinParent(),o=n.getParentOrThrow().getIndexWithinParent();return n=Math.min(t,r),t=Math.max(t,r),r=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(n,t),fromY:Math.min(r,e),toX:Math.max(n,t),toY:Math.max(r,e)}}},{key:"getNodes",value:function(){function e(e){var t=e.cell,n=e.startColumn,r=e.startRow;d=Math.min(d,n),f=Math.min(f,r),p=Math.max(p,n+t.__colSpan-1),h=Math.max(h,r+t.__rowSpan-1)}var t=this._cachedNodes;if(null!==t)return t;var n=this.anchor.getNode();t=this.focus.getNode(),n=gt(n,Jr);var o=gt(t,Jr);Jr(n)||q(103),Jr(o)||q(104),no(t=n.getParent())||q(105),eo(t=t.getParent())||q(106);var i=vr(t,n,o),a=(0,s.Z)(i,3),l=a[0],c=a[1],u=a[2],d=Math.min(c.startColumn,u.startColumn),f=Math.min(c.startRow,u.startRow),p=Math.max(c.startColumn+c.cell.__colSpan-1,u.startColumn+u.cell.__colSpan-1),h=Math.max(c.startRow+c.cell.__rowSpan-1,u.startRow+u.cell.__rowSpan-1);n=d,o=f;for(var m=d,v=f;d<n||f<o||p>m||h>v;){if(d<n){var g=v-o;--n;for(var y=0;y<=g;y++)e(l[o+y][n])}if(f<o)for(g=m-n,--o,y=0;y<=g;y++)e(l[o][n+y]);if(p>m)for(g=v-o,m+=1,y=0;y<=g;y++)e(l[o+y][m]);if(h>v)for(g=m-n,v+=1,y=0;y<=g;y++)e(l[v][n+y])}for(t=[t],n=null,o=f;o<=h;o++)for(m=d;m<=p;m++){var b;no(g=(v=l[o][m].cell).getParent())||q(107),g!==n&&t.push(g),(b=t).push.apply(b,[v].concat((0,r.Z)(yt(v)))),n=g}return Sr()||(this._cachedNodes=t),t}},{key:"getTextContent",value:function(){for(var e=this.getNodes(),t="",n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}]),e}();function Yn(e){return e instanceof Vn}var Xn=function(){function e(t,n,r,o){(0,v.Z)(this,e),this.anchor=t,this.focus=n,this.dirty=!1,this.format=r,this.style=o,this._cachedNodes=null,t._selection=this,n._selection=this}return(0,g.Z)(e,[{key:"is",value:function(e){return!!Kn(e)&&(this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style)}},{key:"isBackward",value:function(){return this.focus.isBefore(this.anchor)}},{key:"isCollapsed",value:function(){return this.anchor.is(this.focus)}},{key:"getNodes",value:function(){var e,t,n=this._cachedNodes;if(null!==n)return n;n=this.anchor;var r=this.focus,o=n.isBefore(r),i=o?n:r;o=o?r:n,n=i.getNode(),r=o.getNode();var a=i.offset;return i=o.offset,zr(n)&&(o=n.getDescendantByIndex(a),n=null!==(e=o)&&void 0!==e?e:n),zr(r)&&(null!==(o=r.getDescendantByIndex(i))&&o!==n&&r.getChildAtIndex(i)===o&&(o=o.getPreviousSibling()),r=null!==(t=o)&&void 0!==t?t:r),n=n.is(r)?zr(n)&&0<n.getChildrenSize()?[]:[n]:n.getNodesBetween(r),Sr()||(this._cachedNodes=n),n}},{key:"setTextNodeRange",value:function(e,t,n,r){Gn(this.anchor,e.__key,t,"text"),Gn(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}},{key:"getTextContent",value:function(){var e=this.getNodes();if(0===e.length)return"";for(var t=e[0],n=e[e.length-1],r=this.anchor,o=this.focus,i=r.isBefore(o),a=er(this),l=(0,s.Z)(a,2),c=l[0],u=l[1],d="",f=!0,p=0;p<e.length;p++){var h=e[p];if(zr(h)&&!h.isInline())f||(d+="\n"),f=!h.isEmpty();else if(f=!1,zn(h)){var m=h.getTextContent();h===t?h===n?("element"!==r.type||"element"!==o.type||o.offset===r.offset)&&(m=c<u?m.slice(c,u):m.slice(u,c)):m=i?m.slice(c):m.slice(u):h===n&&(m=i?m.slice(0,u):m.slice(0,c)),d+=m}else!Lr(h)&&!Sn(h)||h===n&&this.isCollapsed()||(d+=h.getTextContent())}return d}},{key:"applyDOMRange",value:function(e){var t=Cr(),n=t.getEditorState()._selection;if(null!==(e=ir(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n))){var r=e,o=(0,s.Z)(r,2),i=o[0],a=o[1];Gn(this.anchor,i.key,i.offset,i.type),Gn(this.focus,a.key,a.offset,a.type),this._cachedNodes=null}}},{key:"clone",value:function(){var t=this.anchor,n=this.focus;return new e(new Fn(t.key,t.offset,t.type),new Fn(n.key,n.offset,n.type),this.format,this.style)}},{key:"toggleFormat",value:function(e){this.format=Re(this.format,e,null),this.dirty=!0}},{key:"setStyle",value:function(e){this.style=e,this.dirty=!0}},{key:"hasFormat",value:function(e){return 0!==(this.format&se[e])}},{key:"insertRawText",value:function(e){for(var t=[],n=(e=e.split(/(\r?\n|\t)/)).length,r=0;r<n;r++){var o=e[r];"\n"===o||"\r\n"===o?t.push(kn()):"\t"===o?t.push(Zn()):t.push(jn(o))}this.insertNodes(t)}},{key:"insertText",value:function(e){var t=this.anchor,n=this.focus,o=this.isCollapsed()||t.isBefore(n),i=this.format,a=this.style;o&&"element"===t.type?$n(t,n,i,a):o||"element"!==n.type||$n(n,t,i,a);var l=this.getNodes(),c=l.length,u=o?n:t;n=(o?t:n).offset;var d=u.offset;zn(t=l[0])||q(26),o=t.getTextContent().length;var f=t.getParentOrThrow(),p=l[c-1];if(this.isCollapsed()&&n===o&&(t.isSegmented()||t.isToken()||!t.canInsertTextAfter()||!f.canInsertTextAfter()&&null===t.getNextSibling())){var h=t.getNextSibling();if(zn(h)&&h.canInsertTextBefore()&&!Oe(h)||((h=jn()).setFormat(i),f.canInsertTextAfter()?t.insertAfter(h):f.insertAfter(h)),h.select(0,0),t=h,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===n&&(t.isSegmented()||t.isToken()||!t.canInsertTextBefore()||!f.canInsertTextBefore()&&null===t.getPreviousSibling())){if((!zn(h=t.getPreviousSibling())||Oe(h))&&((h=jn()).setFormat(i),f.canInsertTextBefore()?t.insertBefore(h):f.insertBefore(h)),h.select(),t=h,""!==e)return void this.insertText(e)}else if(t.isSegmented()&&n!==o)(f=jn(t.getTextContent())).setFormat(i),t.replace(f),t=f;else if(!(this.isCollapsed()||""===e||(h=p.getParent(),f.canInsertTextBefore()&&f.canInsertTextAfter()&&(!zr(h)||h.canInsertTextBefore()&&h.canInsertTextAfter()))))return this.insertText(""),or(this.anchor,this.focus,null),void this.insertText(e);if(1===c)if(t.isToken())(e=jn(e)).select(),t.replace(e);else{if(l=t.getFormat(),c=t.getStyle(),n===d&&(l!==i||c!==a)){var m;if(""!==t.getTextContent())return(l=jn(e)).setFormat(i),l.setStyle(a),l.select(),0===n?t.insertBefore(l,!1):(m=t.splitText(n),(c=(0,s.Z)(m,1)[0]).insertAfter(l,!1)),void(l.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length));t.setFormat(i),t.setStyle(a)}""===(t=t.spliceText(n,d-n,e,!0)).getTextContent()?t.remove():"text"===this.anchor.type&&(t.isComposing()?this.anchor.offset-=e.length:(this.format=l,this.style=c))}else{if(i=new Set([].concat((0,r.Z)(t.getParentKeys()),(0,r.Z)(p.getParentKeys()))),h=zr(t)?t:t.getParentOrThrow(),a=zr(p)?p:p.getParentOrThrow(),f=p,!h.is(a)&&a.isInline())do{f=a,a=a.getParentOrThrow()}while(a.isInline());"text"===u.type&&(0!==d||""===p.getTextContent())||"element"===u.type&&p.getIndexWithinParent()<d?zn(p)&&!p.isToken()&&d!==p.getTextContentSize()?(p.isSegmented()&&(u=jn(p.getTextContent()),p.replace(u),p=u),p=p.spliceText(0,d,""),i.add(p.__key)):(u=p.getParentOrThrow()).canBeEmpty()||1!==u.getChildrenSize()?p.remove():u.remove():i.add(p.__key),u=a.getChildren(),d=new Set(l),p=h.is(a),h=h.isInline()&&null===t.getNextSibling()?h:t;for(var v=u.length-1;0<=v;v--){var g=u[v];if(g.is(t)||zr(g)&&g.isParentOf(t))break;g.isAttached()&&(!d.has(g)||g.is(f)?p||h.insertAfter(g,!1):g.remove())}if(!p)for(u=a,d=null;null!==u;)(0===(p=(a=u.getChildren()).length)||a[p-1].is(d))&&(i.delete(u.__key),d=u),u=u.getParent();for(t.isToken()?n===o?t.select():((e=jn(e)).select(),t.replace(e)):""===(t=t.spliceText(n,o-n,e,!0)).getTextContent()?t.remove():t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length),e=1;e<c;e++)t=l[e],i.has(t.__key)||t.remove()}}},{key:"removeText",value:function(){this.insertText("")}},{key:"formatText",value:function(e){if(this.isCollapsed())this.toggleFormat(e),Le(null);else{var t,n=this.getNodes(),r=[],o=(0,l.Z)(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;zn(i)&&r.push(i)}}catch(x){o.e(x)}finally{o.f()}var a=r.length;if(0===a)this.toggleFormat(e),Le(null);else{i=this.anchor;var c=this.focus,u=this.isBackward();n=u?c:i,i=u?i:c;var d=0,f=r[0];if(c="element"===n.type?0:n.offset,"text"===n.type&&c===f.getTextContentSize()&&(d=1,f=r[1],c=0),null!=f){u=f.getFormatFlags(e,null);var p=a-1,h=r[p];if(a="text"===i.type?i.offset:h.getTextContentSize(),f.is(h))c!==a&&(0===c&&a===f.getTextContentSize()?f.setFormat(u):(e=f.splitText(c,a),(e=0===c?e[0]:e[1]).setFormat(u),"text"===n.type&&n.set(e.__key,0,"text"),"text"===i.type&&i.set(e.__key,a-c,"text")),this.format=u);else{var m;0!==c&&(m=f.splitText(c),f=(0,s.Z)(m,2)[1],c=0),f.setFormat(u);var v=h.getFormatFlags(e,u);for(0<a&&(a!==h.getTextContentSize()&&(g=h.splitText(a),h=(0,s.Z)(g,1)[0]),h.setFormat(v)),d+=1;d<p;d++){var g,y=r[d];if(!y.isToken()){var b=y.getFormatFlags(e,v);y.setFormat(b)}}"text"===n.type&&n.set(f.__key,c,"text"),"text"===i.type&&i.set(h.__key,a,"text"),this.format=u|v}}}}}},{key:"insertNodes",value:function(e,t){var n;if(!this.isCollapsed()){var o=this.isBackward()?this.anchor:this.focus,i=o.getNode().getNextSibling();if(i=i?i.getKey():null,o=(o=o.getNode().getPreviousSibling())?o.getKey():null,this.removeText(),this.isCollapsed()&&"element"===this.focus.type){if(this.focus.key===i&&0===this.focus.offset){var a=jn();this.focus.getNode().insertBefore(a)}else this.focus.key===o&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(a=jn(),this.focus.getNode().insertAfter(a));a&&(this.focus.set(a.__key,0,"text"),this.anchor.set(a.__key,0,"text"))}}o=(a=this.anchor).offset;var l=a.getNode();i=l,"element"===a.type&&(i=null===(i=(a=a.getNode()).getChildAtIndex(o-1))?a:i),a=[];var c=l.getNextSiblings(),u=ct(l)?null:l.getTopLevelElementOrThrow();if(zn(l))if(i=l.getTextContent().length,0===o&&0!==i)i=null!==(i=l.getPreviousSibling())?i:l.getParentOrThrow(),a.push(l);else if(o===i)i=l;else{var d,f;if(l.isToken())return!1;d=l.splitText(o),i=(f=(0,s.Z)(d,2))[0],l=f[1],a.push(l)}l=i,(n=a).push.apply(n,(0,r.Z)(c)),c=e[0];for(var p=!1,h=null,m=0;m<e.length;m++){var v,g,y=e[m];if(ct(i)||Lr(i)||!zr(y)||y.isInline())p&&!zr(y)&&!Lr(y)&&ct(i.getParent())&&q(28);else{if(y.is(c)){if(zr(i)&&i.isEmpty()&&i.canReplaceWith(y)){i.replace(y),i=y,p=!0;continue}if(Ae(p=y.getFirstDescendant())){for(var b=p.getParentOrThrow();b.isInline();)b=b.getParentOrThrow();if(p=(h=b.getChildren()).length,zr(i))for(var x=i.getFirstChild(),w=0;w<p;w++){var k=h[w];null===x?i.append(k):x.insertAfter(k),x=k}else{for(x=p-1;0<=x;x--)i.insertAfter(h[x]);i=i.getParentOrThrow()}if(h=h[p-1],b.remove(),p=!0,b.is(y))continue}}zn(i)&&(null===u&&q(27),i=u)}p=!1,zr(i)&&!i.isInline()?(h=y,Lr(y)&&!y.isInline()?i=1===e.length&&i.canBeEmpty()&&i.isEmpty()?i.insertBefore(y,!1):i.insertAfter(y,!1):zr(y)?(y.canBeEmpty()||!y.isEmpty())&&(Fr(i)?(null!==(b=i.getChildAtIndex(o))?b.insertBefore(y):i.append(y),i=y):y.isInline()?(i.append(y),i=y):i=i.insertAfter(y,!1)):(null!==(b=i.getFirstChild())?b.insertBefore(y):i.append(y),i=y)):!zr(y)||zr(y)&&y.isInline()||Lr(i)&&!i.isInline()?(h=y,Kn(this)&&Lr(y)&&(zr(i)||zn(i))&&!y.isInline()?(zn(i)?(b=i.getParentOrThrow(),v=i.splitText(o),i=(i=(0,s.Z)(v,1)[0]).getIndexWithinParent()+1):(b=i,i=o),g=vt(b,i),i=(i=(0,s.Z)(g,2)[1]).insertBefore(y)):i=i.insertAfter(y,!1)):(y=i.getParentOrThrow(),Sn(i)&&i.remove(),i=y,m--)}if(t&&(zn(l)?l.select():zn(e=i.getPreviousSibling())?e.select():(e=i.getIndexWithinParent(),i.getParentOrThrow().select(e,e))),zr(i)){if(e=zn(h)?h:zr(h)&&h.isInline()?h.getLastDescendant():i.getLastDescendant(),t||(null===e?i.select():zn(e)?""===e.getTextContent()?e.selectPrevious():e.select():e.selectNext()),0!==a.length)for(t=i,e=a.length-1;0<=e;e--)u=(o=a[e]).getParentOrThrow(),!zr(i)||ar(o)||Lr(o)&&(!o.isInline()||o.isIsolated())?zr(i)||ar(o)?zr(o)&&!o.canInsertAfter(i)?(zr(l=u.constructor.clone(u))||q(29),l.append(o),i.insertAfter(l)):i.insertAfter(o):(i.insertBefore(o),i=o):(t===i?i.append(o):i.insertBefore(o),i=o),u.isEmpty()&&!u.canBeEmpty()&&u.remove()}else t||(zn(i)?i.select():(t=i.getParentOrThrow(),e=i.getIndexWithinParent()+1,t.select(e,e)));return!0}},{key:"insertParagraph",value:function(){this.isCollapsed()||this.removeText();var e=this.anchor,t=e.offset,n=[];if("text"===e.type){var r,o=e.getNode(),i=o.getNextSiblings().reverse(),a=o.getParentOrThrow(),l=a.isInline(),c=l?a.getTextContentSize():o.getTextContentSize();0===t?i.push(o):(l&&(n=a.getNextSiblings()),t===c||l&&t===o.getTextContentSize()||(r=o.splitText(t),o=(0,s.Z)(r,2)[1],i.push(o)))}else{if(ct(a=e.getNode()))return i=Kr(),n=a.getChildAtIndex(t),i.select(),void(null!==n?n.insertBefore(i,!1):a.append(i));i=a.getChildren().slice(t).reverse()}if(o=i.length,0===t&&0<o&&a.isInline()){if(zr(i=(n=a.getParentOrThrow()).insertNewAfter(this,!1)))for(n=n.getChildren(),a=0;a<n.length;a++)i.append(n[a])}else if(null===(l=a.insertNewAfter(this,!1)))this.insertLineBreak();else if(zr(l))if(c=a.getFirstChild(),0===t&&(a.is(e.getNode())||c&&c.is(e.getNode()))&&0<o)a.insertBefore(l);else{if(a=null,t=n.length,e=l.getParentOrThrow(),0<t)for(c=0;c<t;c++)e.append(n[c]);if(0!==o)for(n=0;n<o;n++)t=i[n],null===a?l.append(t):a.insertBefore(t),a=t;l.canBeEmpty()||0!==l.getChildrenSize()?l.selectStart():(l.selectPrevious(),l.remove())}}},{key:"insertLineBreak",value:function(e){var t=kn(),n=this.anchor;"element"===n.type&&(Fr(n=n.getNode())&&this.insertParagraph()),e?this.insertNodes([t],!0):this.insertNodes([t])&&t.selectNext(0,0)}},{key:"getCharacterOffsets",value:function(){return er(this)}},{key:"extract",value:function(){var e,t,n=this.getNodes(),r=n.length,o=r-1,i=this.anchor,a=this.focus,l=n[0],c=n[o],u=er(this),d=(0,s.Z)(u,2),f=d[0],p=d[1];return 0===r?[]:1===r?zn(l)&&!this.isCollapsed()?(n=f>p?p:f,o=l.splitText(n,f>p?f:p),null!=(n=0===n?o[0]:o[1])?[n]:[]):[l]:(r=i.isBefore(a),zn(l)&&((i=r?f:p)===l.getTextContentSize()?n.shift():0!==i&&(e=l.splitText(i),l=(0,s.Z)(e,2)[1],n[0]=l)),zn(c)&&(l=c.getTextContent().length,0===(r=r?p:f)?n.pop():r!==l&&(t=c.splitText(r),c=(0,s.Z)(t,1)[0],n[o]=c)),n)}},{key:"modify",value:function(e,t,n){var r=this.focus,o=this.anchor,i="move"===e,a=tt(r,t);if(Lr(a)&&!a.isIsolated())i&&a.isKeyboardSelectable()?((t=lr()).add(a.__key),$e(t)):zn(e=t?a.getPreviousSibling():a.getNextSibling())?(a=e.__key,t=t?e.getTextContent().length:0,r.set(a,t,"text"),i&&o.set(a,t,"text")):(n=a.getParentOrThrow(),zr(e)?(n=e.__key,a=t?e.getChildrenSize():0):(a=a.getIndexWithinParent(),n=n.__key,t||a++),r.set(n,a,"element"),i&&o.set(n,a,"element"));else if(r=mt((o=Cr())._window)){var s=o._blockCursorElement,l=o._rootElement;if(null===l||null===s||!zr(a)||a.isInline()||a.canBeEmpty()||ht(s,o,l),r.modify(e,t?"backward":"forward",n),0<r.rangeCount&&(a=r.getRangeAt(0),o=Fr(o=this.anchor.getNode())?o:lt(o),this.applyDOMRange(a),this.dirty=!0,!i)){for(i=this.getNodes(),e=[],n=!1,s=0;s<i.length;s++)at(l=i[s],o)?e.push(l):n=!0;n&&0<e.length&&(t?zr(t=e[0])?t.selectStart():t.getParentOrThrow().selectStart():zr(t=e[e.length-1])?t.selectEnd():t.getParentOrThrow().selectEnd()),(r.anchorNode!==a.startContainer||r.anchorOffset!==a.startOffset)&&(t=this.focus,r=(i=this.anchor).key,a=i.offset,o=i.type,Gn(i,t.key,t.offset,t.type),Gn(t,r,a,o),this._cachedNodes=null)}}}},{key:"deleteCharacter",value:function(e){var n=this.isCollapsed();if(this.isCollapsed()){var r=this.anchor,o=this.focus,i=r.getNode();if(!e&&("element"===r.type&&zr(i)&&r.offset===i.getChildrenSize()||"text"===r.type&&r.offset===i.getTextContentSize())){var a=i.getParent();if(zr(a=i.getNextSibling()||(null===a?null:a.getNextSibling()))&&a.isShadowRoot())return}if(Lr(a=tt(o,e))&&!a.isIsolated())return void(a.isKeyboardSelectable()&&zr(i)&&0===i.getChildrenSize()?(i.remove(),e=lr(),e.add(a.__key),$e(e)):(a.remove(),Cr().dispatchCommand (t,void 0)));if(!e&&zr(a)&&zr(i)&&i.isEmpty())return i.remove(),void a.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===r.offset&&("element"===r.type?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(a="text"===o.type?o.getNode():null,i="text"===r.type?r.getNode():null,null!==a&&a.isSegmented()){if(r=o.offset,o=a.getTextContentSize(),a.is(i)||e&&r!==o||!e&&0!==r)return void tr(a,e,r)}else if(null!==i&&i.isSegmented()&&(r=r.offset,o=i.getTextContentSize(),i.is(a)||e&&0!==r||!e&&r!==o))return void tr(i,e,r);if(i=this.anchor,a=this.focus,(r=i.getNode())===(o=a.getNode())&&"text"===i.type&&"text"===a.type){var s=i.offset,l=a.offset,c=s<l;(o=c?s:l)!==(s=(l=c?l:s)-1)&&(qe(r=r.getTextContent().slice(o,l))||(e?a.offset=s:i.offset=s))}}}this.removeText(),e&&!n&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset&&((e=this.anchor.getNode()).isEmpty()&&Fr(e.getParent())&&0===e.getIndexWithinParent()&&e.collapseAtStart(this))}},{key:"deleteLine",value:function(e){this.isCollapsed()&&("text"===this.anchor.type&&this.modify("extend",e,"lineboundary"),0===(e?this.focus:this.anchor).offset&&this.modify("extend",e,"character")),this.removeText()}},{key:"deleteWord",value:function(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}]),e}();function Jn(e){return e instanceof qn}function Qn(e){var t=e.offset;return"text"===e.type?t:t===(e=e.getNode()).getChildrenSize()?e.getTextContent().length:0}function er(e){var t=e.anchor;return e=e.focus,"element"===t.type&&"element"===e.type&&t.key===e.key&&t.offset===e.offset?[0,0]:[Qn(t),Qn(e)]}function tr(e,t,n){for(var r=e.getTextContent().split(/(?=\s)/g),o=r.length,i=0,a=0,s=0;s<o;s++){var l=s===o-1;if(a=i,i+=r[s].length,t&&i===n||i>n||l){r.splice(s,1),l&&(a=void 0);break}}""===(t=r.join("").trim())?e.remove():(e.setTextContent(t),e.select(a,a))}function nr(e,t,n,r){var o=t;if(1===e.nodeType){var i=!1,a=e.childNodes,s=a.length;o===s&&(i=!0,o=s-1);var l=a[o];if(s=!1,l===r._blockCursorElement?(l=a[o+1],s=!0):null!==r._blockCursorElement&&o--,zn(r=Ge(l)))o=i?r.getTextContentSize():0;else{if(null===(a=Ge(e)))return null;if(zr(a)?((t=zr(e=a.getChildAtIndex(o)))&&(t=e.getParent(),t=null===n||null===t||!t.canBeEmpty()||t!==n.getNode()),t&&(null===(n=i?e.getLastDescendant():e.getFirstDescendant())?(a=e,o=0):a=zr(e=n)?e:e.getParentOrThrow()),zn(e)?(r=e,a=null,o=i?e.getTextContentSize():0):e!==a&&i&&!s&&o++):(o=a.getIndexWithinParent(),o=0===t&&Lr(a)&&Ge(e)===a?o:o+1,a=a.getParentOrThrow()),zr(a))return new Fn(a.__key,o,"element")}}else r=Ge(e);return zn(r)?new Fn(r.__key,o,"text"):null}function rr(e,t,n){var r=e.offset,o=e.getNode();0===r?(r=o.getPreviousSibling(),o=o.getParent(),t?(n||!t)&&null===r&&zr(o)&&o.isInline()&&(zn(t=o.getPreviousSibling())&&(e.key=t.__key,e.offset=t.getTextContent().length)):zr(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):zn(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)):r===o.getTextContent().length&&(r=o.getNextSibling(),o=o.getParent(),t&&zr(r)&&r.isInline()?(e.key=r.__key,e.offset=0,e.type="element"):(n||t)&&null===r&&zr(o)&&o.isInline()&&!o.canInsertTextAfter()&&(zn(t=o.getNextSibling())&&(e.key=t.__key,e.offset=0)))}function or(e,t,n){if("text"===e.type&&"text"===t.type){var r=e.isBefore(t),o=e.is(t);rr(e,r,o),rr(t,!r,o),o&&(t.key=e.key,t.offset=e.offset,t.type=e.type),(r=Cr()).isComposing()&&r._compositionKey!==e.key&&Kn(n)&&(r=n.anchor,n=n.focus,Gn(e,r.key,r.offset,r.type),Gn(t,n.key,n.offset,n.type))}}function ir(e,t,n,r,o,i){return null===e||null===n||!Ie(o,e,n)||null===(t=nr(e,t,Kn(i)?i.anchor:null,o))||(null===(r=nr(n,r,Kn(i)?i.focus:null,o))||"element"===t.type&&"element"===r.type&&(e=Ge(e),n=Ge(n),Lr(e)&&Lr(n)))?null:(or(t,r,i),[t,r])}function ar(e){return zr(e)&&!e.isInline()}function sr(e,t,n,r,o,i){var a=Er();return(e=new Xn(new Fn(e,t,o),new Fn(n,r,i),0,"")).dirty=!0,a._selection=e}function lr(){return new qn(new Set)}function cr(e,t,n){var r=n._window;if(null===r)return null;var o,i=r.event,a=i?i.type:void 0;if(r="selectionchange"===a,i=!pe&&(r||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&i&&3===i.detail||"drop"===a||void 0===a),Kn(e)&&!i)return e.clone();if(null===t)return null;if(i=t.anchorNode,a=t.focusNode,o=t.anchorOffset,t=t.focusOffset,r&&Kn(e)&&!Ie(n,i,a))return e.clone();if(null===(n=ir(i,o,a,t,n,e)))return null;var l=n,c=(0,s.Z)(l,2),u=c[0],d=c[1];return new Xn(u,d,Kn(e)?e.format:0,Kn(e)?e.style:"")}function ur(){return Er()._selection}function dr(){return Cr()._editorState._selection}function fr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=e.anchor,i=e.focus,a=o.getNode(),s=i.getNode();if(t.is(a)||t.is(s)){if(a=t.__key,e.isCollapsed())(n<=(t=o.offset)&&0<r||n<t&&0>r)&&(n=Math.max(0,t+r),o.set(a,n,"element"),i.set(a,n,"element"),pr(e));else{var l=e.isBackward(),c=(s=l?i:o).getNode();i=(o=l?o:i).getNode(),t.is(c)&&((n<=(c=s.offset)&&0<r||n<c&&0>r)&&s.set(a,Math.max(0,c+r),"element")),t.is(i)&&((n<=(t=o.offset)&&0<r||n<t&&0>r)&&o.set(a,Math.max(0,t+r),"element"))}pr(e)}}function pr(e){var t=e.anchor,n=t.offset,r=e.focus,o=r.offset,i=t.getNode(),a=r.getNode();if(e.isCollapsed())zr(i)&&(zn(a=(o=n>=(a=i.getChildrenSize()))?i.getChildAtIndex(a-1):i.getChildAtIndex(n))&&(n=0,o&&(n=a.getTextContentSize()),t.set(a.__key,n,"text"),r.set(a.__key,n,"text")));else{if(zr(i)){var s=i.getChildrenSize();zn(n=(e=n>=s)?i.getChildAtIndex(s-1):i.getChildAtIndex(n))&&(i=0,e&&(i=n.getTextContentSize()),t.set(n.__key,i,"text"))}zr(a)&&(zn(o=(t=o>=(n=a.getChildrenSize()))?a.getChildAtIndex(n-1):a.getChildAtIndex(o))&&(a=0,t&&(a=o.getTextContentSize()),r.set(o.__key,a,"text")))}}function hr(e,t,n,r,o){var i=null,a=0,s=null;null!==r?(i=r.__key,zn(r)?(a=r.getTextContentSize(),s="text"):zr(r)&&(a=r.getChildrenSize(),s="element")):null!==o&&(i=o.__key,zn(o)?s="text":zr(o)&&(s="element")),null!==i&&null!==s?e.set(i,a,s):(-1===(a=t.getIndexWithinParent())&&(a=n.getChildrenSize()),e.set(n.__key,a,"element"))}function mr(e,t,n,r,o){"text"===e.type?(e.key=n,t||(e.offset+=o)):e.offset>r.getIndexWithinParent()&&--e.offset}function vr(e,t,n){var r=[],o=null,i=null;e=e.getChildren();for(var a=0;a<e.length;a++){var s=e[a];no(s)||q(108);var c=s.getChildren();s=0;var u,d=(0,l.Z)(c);try{for(d.s();!(u=d.n()).done;){var f=u.value;for(Jr(f)||q(109);void 0!==r[a]&&void 0!==r[a][s];)s++;for(var p=s,h=f,m={cell:h,startColumn:p,startRow:c=a},v=h.__rowSpan,g=h.__colSpan,y=0;y<v;y++){void 0===r[c+y]&&(r[c+y]=[]);for(var b=0;b<g;b++)r[c+y][p+b]=m}t.is(h)&&(o=m),n.is(h)&&(i=m),s+=f.__colSpan}}catch(x){d.e(x)}finally{d.f()}}return null===o&&q(110),null===i&&q(111),[r,o,i]}var gr=null,yr=null,br=!1,xr=!1,wr=0,kr={characterData:!0,childList:!0,subtree:!0};function Sr(){return br||null!==gr&&gr._readOnly}function _r(){br&&q(13)}function Er(){return null===gr&&q(15),gr}function Cr(){return null===yr&&q(16),yr}function Tr(e,t,n){var r=t.__type,o=e._nodes.get(r);for(void 0===o&&q(30,r),void 0===(e=n.get(r))&&(e=Array.from(o.transforms),n.set(r,e)),n=e.length,r=0;r<n&&(e[r](t),t.isAttached());r++);}function Ir(e,t){var n=e.type,r=t.get(n);if(void 0===r&&q(17,n),n=r.klass,e.type!==n.getType()&&q(18,n.name),n=n.importJSON(e),e=e.children,zr(n)&&Array.isArray(e))for(r=0;r<e.length;r++){var o=Ir(e[r],t);n.append(o)}return n}function Br(e,t){var n=gr,r=br,o=yr;gr=e,br=!0,yr=null;try{return t()}finally{gr=n,br=r,yr=o}}function Or(e,n){var o=e._pendingEditorState,i=e._rootElement,a=e._headless||null===i;if(null!==o){var l=e._editorState,c=l._selection,u=o._selection,d=0!==e._dirtyType,f=gr,p=br,h=yr,m=e._updating,v=e._observer,g=null;if(e._pendingEditorState=null,e._editorState=o,!a&&d&&null!==v){yr=e,gr=o,br=!1,e._updating=!0;try{var y=e._dirtyType,b=e._dirtyElements,x=e._dirtyLeaves;v.disconnect();var w=b,k=x;Pt=Rt=Ot="",At=2===y,Nt=null,wt=e,xt=e._config,kt=e._nodes,St=wt._listeners.mutation,_t=w,Et=k,Ct=l._nodeMap,Tt=o._nodeMap,Mt=o._readOnly,It=new Map(e._keyToDOMMap);var S=new Map;Bt=S,qt("root",null),Bt=It=xt=Tt=Ct=Et=_t=kt=wt=void 0,g=S}catch(y){if(y instanceof Error&&e._onError(y),xr)throw y;return Vr(e,null,i,o),be(e),e._dirtyType=2,xr=!0,Or(e,l),void(xr=!1)}finally{v.observe(i,kr),e._updating=m,gr=f,br=p,yr=h}}o._readOnly||(o._readOnly=!0);var _=e._dirtyLeaves,E=e._dirtyElements,C=e._normalizedNodes,T=e._updateTags,I=e._deferred;d&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set);var B,O=e._decorators,P=e._pendingDecorators||O,R=o._nodeMap;for(B in P)R.has(B)||(P===O&&(P=Fe(e)),delete P[B]);var A=a?null:mt(e._window);if(e._editable&&null!==A&&(d||null===u||u.dirty)){yr=e,gr=o;try{if(null!==v&&v.disconnect(),d||null===u||u.dirty){var M=e._blockCursorElement;null!==M&&ht(M,e,i);e:{var N=A.anchorNode,D=A.focusNode,L=A.anchorOffset,j=A.focusOffset,z=document.activeElement;if(!(T.has("collaboration")&&z!==i||null!==z&&Te(z)))if(Kn(u)){var W=u.anchor,Z=u.focus,F=W.key,H=Z.key,U=ot(e,F),$=ot(e,H),G=W.offset,q=Z.offset,K=u.format,V=u.style,Y=u.isCollapsed(),X=U,J=$,Q=!1;if("text"===W.type){X=Pe(U);var ee=W.getNode();Q=ee.getFormat()!==K||ee.getStyle()!==V}else Kn(c)&&"text"===c.anchor.type&&(Q=!0);if("text"===Z.type&&(J=Pe($)),null!==X&&null!==J){if(Y&&(null===c||Q||Kn(c)&&(c.format!==K||c.style!==V))){var te=performance.now();cn=[K,V,G,F,te]}if(L===G&&j===q&&N===X&&D===J&&("Range"!==A.type||!Y)&&(null!==z&&i.contains(z)||i.focus({preventScroll:!0}),"element"!==W.type))break e;try{A.setBaseAndExtent(X,G,J,q)}catch(tt){}if(!T.has("skip-scroll-into-view")&&u.isCollapsed()&&null!==i&&i===document.activeElement){var ne=u instanceof Xn&&"element"===u.anchor.type?X.childNodes[G]||null:0<A.rangeCount?A.getRangeAt(0):null;if(null!==ne){var re;if(ne instanceof Text){var oe=document.createRange();oe.selectNode(ne),re=oe.getBoundingClientRect()}else re=ne.getBoundingClientRect();var ie=i.ownerDocument,ae=ie.defaultView;if(null!==ae)for(var se,le,ce=re,ue=ce.top,de=ce.bottom,fe=i;null!==fe;){var pe=fe===ie.body;if(pe)se=0,le=st(e).innerHeight;else{var he=fe.getBoundingClientRect();se=he.top,le=he.bottom}var me=0;if(ue<se?me=-(se-ue):de>le&&(me=de-le),0!==me)if(pe)ae.scrollBy(0,me);else{var ve=fe.scrollTop;fe.scrollTop+=me;var ge=fe.scrollTop-ve;ue-=ge,de-=ge}if(pe)break;fe=it(fe)}}}on=!0}}else null!==c&&Ie(e,N,D)&&A.removeAllRanges()}}e:{var ye=e._blockCursorElement;if(Kn(u)&&u.isCollapsed()&&"element"===u.anchor.type&&i.contains(document.activeElement)){var xe=u.anchor,we=xe.getNode(),ke=xe.offset,Se=we.getChildrenSize(),_e=!1,Ee=null;if(ke===Se){pt(we.getChildAtIndex(ke-1))&&(_e=!0)}else{var Ce=we.getChildAtIndex(ke);if(pt(Ce)){var Be=Ce.getPreviousSibling();(null===Be||pt(Be))&&(_e=!0,Ee=e.getElementByKey(Ce.__key))}}if(_e){var Oe=e.getElementByKey(we.__key);if(null===ye){var Re=e._config.theme,Ae=document.createElement("div");Ae.contentEditable="false",Ae.setAttribute("data-lexical-cursor","true");var Me=Re.blockCursor;if(void 0!==Me){var Ne;if("string"==typeof Me){var De=Me.split(" ");Me=Re.blockCursor=De}void 0!==Me&&(Ne=Ae.classList).add.apply(Ne,(0,r.Z)(Me))}e._blockCursorElement=ye=Ae}i.style.caretColor="transparent",null===Ee?Oe.appendChild(ye):Oe.insertBefore(ye,Ee);break e}}null!==ye&&ht(ye,e,i)}null!==v&&v.observe(i,kr)}finally{yr=h,gr=f}}if(null!==g)for(var Le=g,je=Array.from(e._listeners.mutation),ze=je.length,We=0;We<ze;We++){var Ze=(0,s.Z)(je[We],2),Ue=Ze[0],$e=Ze[1],Ge=Le.get($e);void 0!==Ge&&Ue(Ge,{dirtyLeaves:_,prevEditorState:l,updateTags:T})}Kn(u)||null===u||null!==c&&c.is(u)||e.dispatchCommand (t,void 0);var qe=e._pendingDecorators;null!==qe&&(e._decorators=qe,e._pendingDecorators=null,Pr("decorator",e,!0,qe));var Ke=He(n||l),Ve=He(o);if(Ke!==Ve&&Pr("textcontent",e,!0,Ve),Pr("update",e,!0,{dirtyElements:E,dirtyLeaves:_,editorState:o,normalizedNodes:C,prevEditorState:n||l,tags:T}),e._deferred=[],0!==I.length){var Ye=e._updating;e._updating=!0;try{for(var Xe=0;Xe<I.length;Xe++)I[Xe]()}finally{e._updating=Ye}}var Je=e._updates;if(0!==Je.length){var Qe=Je.shift();if(Qe){var et=(0,s.Z)(Qe,2);Mr(e,et[0],et[1])}}}}function Pr(e,t,n){var r=t._updating;t._updating=n;try{for(var o=Array.from(t._listeners[e]),i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];for(e=0;e<o.length;e++)o[e].apply(null,a)}finally{t._updating=r}}function Rr(e,t,n){if(!1===e._updating||yr!==e){var r=!1;return e.update((function(){r=Rr(e,t,n)})),r}for(var o=Ke(e),i=4;0<=i;i--)for(var a=0;a<o.length;a++){var s=o[a]._commands.get(t);if(void 0!==s&&void 0!==(s=s[i]))for(var l=(s=Array.from(s)).length,c=0;c<l;c++)if(!0===s[c](n,e))return!0}return!1}function Ar(e,t){var n=e._updates;for(t=t||!1;0!==n.length;){var r=n.shift();if(r){var o=r,i=(0,s.Z)(o,2),a=i[0],l=i[1],c=void 0;void 0!==l&&(r=l.onUpdate,c=l.tag,l.skipTransforms&&(t=!0),r&&e._deferred.push(r),c&&e._updateTags.add(c)),a()}}return t}function Mr(e,t,n){var r,o=e._updateTags,i=r=!1;if(void 0!==n){var a=n.onUpdate;null!=(r=n.tag)&&o.add(r),r=n.skipTransforms||!1,i=n.discrete||!1}a&&e._deferred.push(a),n=e._editorState;var c=!1;(null===(a=e._pendingEditorState)||a._readOnly)&&(a=e._pendingEditorState=new $r(new Map((a||n)._nodeMap)),c=!0),a._flushSync=i,i=gr;var u=br,d=yr,f=e._updating;gr=a,br=!1,e._updating=!0,yr=e;try{c&&(e._headless?null!=n._selection&&(a._selection=n._selection.clone()):a._selection=function(e){var t=e.getEditorState()._selection,n=mt(e._window);return Jn(t)||Yn(t)?t.clone():cr(t,n,e)}(e));var p=e._compositionKey;t(),r=Ar(e,r),function(e,t){if(t=t.getEditorState()._selection,Kn(e=e._selection)){var n,r=e.anchor,o=e.focus;"text"===r.type&&(n=r.getNode()).selectionTransform(t,e),"text"===o.type&&n!==(r=o.getNode())&&r.selectionTransform(t,e)}}(a,e),0!==e._dirtyType&&(r?function(e,t){t=t._dirtyLeaves,e=e._nodeMap;var n,r=(0,l.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;zn(t=e.get(o))&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&ke(t)}}catch(i){r.e(i)}finally{r.f()}}(a,e):function(e,t){var n=t._dirtyLeaves,r=t._dirtyElements;e=e._nodeMap;for(var o=je(),i=new Map,a=n,s=a.size,c=r,u=c.size;0<s||0<u;){if(0<s){t._dirtyLeaves=new Set;var d,f=(0,l.Z)(a);try{for(f.s();!(d=f.n()).done;){var p=d.value;zn(a=e.get(p))&&a.isAttached()&&a.isSimpleText()&&!a.isUnmergeable()&&ke(a),void 0!==a&&void 0!==a&&a.__key!==o&&a.isAttached()&&Tr(t,a,i),n.add(p)}}catch(g){f.e(g)}finally{f.f()}if(0<(s=(a=t._dirtyLeaves).size)){wr++;continue}}t._dirtyLeaves=new Set,t._dirtyElements=new Map;var h,m=(0,l.Z)(c);try{for(m.s();!(h=m.n()).done;){var v=h.value;c=v[0],u=v[1],("root"===c||u)&&(void 0!==(a=e.get(c))&&void 0!==a&&a.__key!==o&&a.isAttached()&&Tr(t,a,i),r.set(c,u))}}catch(g){m.e(g)}finally{m.f()}s=(a=t._dirtyLeaves).size,u=(c=t._dirtyElements).size,wr++}t._dirtyLeaves=n,t._dirtyElements=r}(a,e),Ar(e),function(e,t,n,r){e=e._nodeMap,t=t._nodeMap;var o,i=[],a=(0,l.Z)(r);try{for(a.s();!(o=a.n()).done;){var c=(0,s.Z)(o.value,1)[0],u=t.get(c);void 0===u||u.isAttached()||(zr(u)&&bt(u,c,e,t,i,r),e.has(c)||r.delete(c),i.push(c))}}catch(g){a.e(g)}finally{a.f()}for(var d=0,f=i;d<f.length;d++){var p=f[d];t.delete(p)}var h,m=(0,l.Z)(n);try{for(m.s();!(h=m.n()).done;){var v=h.value;void 0===(r=t.get(v))||r.isAttached()||(e.has(v)||n.delete(v),t.delete(v))}}catch(g){m.e(g)}finally{m.f()}}(n,a,e._dirtyLeaves,e._dirtyElements)),p!==e._compositionKey&&(a._flushSync=!0);var h=a._selection;if(Kn(h)){var m=a._nodeMap,v=h.focus.key;void 0!==m.get(h.anchor.key)&&void 0!==m.get(v)||q(19)}else Jn(h)&&0===h._nodes.size&&(a._selection=null)}catch(p){return p instanceof Error&&e._onError(p),e._pendingEditorState=n,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void Or(e)}finally{gr=i,br=u,yr=d,e._updating=f,wr=0}0!==e._dirtyType||function(e,t){if(t=t.getEditorState()._selection,null!==(e=e._selection)){if(e.dirty||!e.is(t))return!0}else if(null!==t)return!0;return!1}(a,e)?a._flushSync?(a._flushSync=!1,Or(e)):c&&Ce((function(){Or(e)})):(a._flushSync=!1,c&&(o.clear(),e._deferred=[],e._pendingEditorState=null))}function Nr(e,t,n){e._updating?e._updates.push([t,n]):Mr(e,t,n)}var Dr=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e){return(0,v.Z)(this,n),t.call(this,e)}return(0,g.Z)(n,[{key:"decorate",value:function(){q(47)}},{key:"isIsolated",value:function(){return!1}},{key:"isInline",value:function(){return!0}},{key:"isKeyboardSelectable",value:function(){return!0}}]),n}(bn);function Lr(e){return e instanceof Dr}var jr=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e){var r;return(0,v.Z)(this,n),(r=t.call(this,e)).__last=r.__first=null,r.__indent=r.__format=r.__size=0,r.__dir=null,r}return(0,g.Z)(n,[{key:"getFormat",value:function(){return this.getLatest().__format}},{key:"getFormatType",value:function(){var e=this.getFormat();return ue[e]||""}},{key:"getIndent",value:function(){return this.getLatest().__indent}},{key:"getChildren",value:function(){for(var e=[],t=this.getFirstChild();null!==t;)e.push(t),t=t.getNextSibling();return e}},{key:"getChildrenKeys",value:function(){for(var e=[],t=this.getFirstChild();null!==t;)e.push(t.__key),t=t.getNextSibling();return e}},{key:"getChildrenSize",value:function(){return this.getLatest().__size}},{key:"isEmpty",value:function(){return 0===this.getChildrenSize()}},{key:"isDirty",value:function(){var e=Cr()._dirtyElements;return null!==e&&e.has(this.__key)}},{key:"isLastChild",value:function(){var e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}},{key:"getAllTextNodes",value:function(){for(var e=[],t=this.getFirstChild();null!==t;){if(zn(t)&&e.push(t),zr(t)){var n=t.getAllTextNodes();e.push.apply(e,(0,r.Z)(n))}t=t.getNextSibling()}return e}},{key:"getFirstDescendant",value:function(){for(var e=this.getFirstChild();null!==e;){if(zr(e)){var t=e.getFirstChild();if(null!==t){e=t;continue}}break}return e}},{key:"getLastDescendant",value:function(){for(var e=this.getLastChild();null!==e;){if(zr(e)){var t=e.getLastChild();if(null!==t){e=t;continue}}break}return e}},{key:"getDescendantByIndex",value:function(e){var t=this.getChildren(),n=t.length;return e>=n?zr(e=t[n-1])&&e.getLastDescendant()||e||null:zr(e=t[e])&&e.getFirstDescendant()||e||null}},{key:"getFirstChild",value:function(){var e=this.getLatest().__first;return null===e?null:ze(e)}},{key:"getFirstChildOrThrow",value:function(){var e=this.getFirstChild();return null===e&&q(45,this.__key),e}},{key:"getLastChild",value:function(){var e=this.getLatest().__last;return null===e?null:ze(e)}},{key:"getLastChildOrThrow",value:function(){var e=this.getLastChild();return null===e&&q(96,this.__key),e}},{key:"getChildAtIndex",value:function(e){var t,n=this.getChildrenSize();if(e<n/2){for(t=this.getFirstChild(),n=0;null!==t&&n<=e;){if(n===e)return t;t=t.getNextSibling(),n++}return null}for(t=this.getLastChild(),--n;null!==t&&n>=e;){if(n===e)return t;t=t.getPreviousSibling(),n--}return null}},{key:"getTextContent",value:function(){for(var e="",t=this.getChildren(),n=t.length,r=0;r<n;r++){var o=t[r];e+=o.getTextContent(),zr(o)&&r!==n-1&&!o.isInline()&&(e+="\n\n")}return e}},{key:"getTextContentSize",value:function(){for(var e=0,t=this.getChildren(),n=t.length,r=0;r<n;r++){var o=t[r];e+=o.getTextContentSize(),zr(o)&&r!==n-1&&!o.isInline()&&(e+=2)}return e}},{key:"getDirection",value:function(){return this.getLatest().__dir}},{key:"hasFormat",value:function(e){return""!==e&&(e=ce[e],0!==(this.getFormat()&e))}},{key:"select",value:function(e,t){_r();var n=ur(),r=e,o=t,i=this.getChildrenSize();if(!this.canBeEmpty())if(0===e&&0===t){if(zn(e=this.getFirstChild())||zr(e))return e.select(0,0)}else if(!(void 0!==e&&e!==i||void 0!==t&&t!==i)&&(zn(e=this.getLastChild())||zr(e)))return e.select();return void 0===r&&(r=i),void 0===o&&(o=i),i=this.__key,Kn(n)?(n.anchor.set(i,r,"element"),n.focus.set(i,o,"element"),n.dirty=!0,n):sr(i,r,i,o,"element","element")}},{key:"selectStart",value:function(){var e=this.getFirstDescendant();return zr(e)||zn(e)?e.select(0,0):null!==e?e.selectPrevious():this.select(0,0)}},{key:"selectEnd",value:function(){var e=this.getLastDescendant();return zr(e)||zn(e)?e.select():null!==e?e.selectNext():this.select()}},{key:"clear",value:function(){var e=this.getWritable();return this.getChildren().forEach((function(e){return e.remove()})),e}},{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.splice(this.getChildrenSize(),0,t)}},{key:"setDirection",value:function(e){var t=this.getWritable();return t.__dir=e,t}},{key:"setFormat",value:function(e){return this.getWritable().__format=""!==e?ce[e]:0,this}},{key:"setIndent",value:function(e){return this.getWritable().__indent=e,this}},{key:"splice",value:function(e,t,n){var r=n.length,o=this.getChildrenSize(),i=this.getWritable(),a=i.__key,s=[],l=[],c=this.getChildAtIndex(e+t),u=null,d=o-t+r;if(0!==e)if(e===o)u=this.getLastChild();else{var f=this.getChildAtIndex(e);null!==f&&(u=f.getPreviousSibling())}if(0<t){var p=null===u?this.getFirstChild():u.getNextSibling();for(f=0;f<t;f++){null===p&&q(100);var h=p.getNextSibling(),m=p.__key;Ne(p=p.getWritable()),l.push(m),p=h}}for(f=u,h=0;h<r;h++){m=n[h],null!==f&&m.is(f)&&(u=f=f.getPreviousSibling()),(p=m.getWritable()).__parent===a&&d--,Ne(p);var v=m.__key;null===f?(i.__first=v,p.__prev=null):((f=f.getWritable()).__next=v,p.__prev=f.__key),m.__key===a&&q(76),p.__parent=a,s.push(v),f=m}if(e+t===o?null!==f&&(f.getWritable().__next=null,i.__last=f.__key):null!==c&&(e=c.getWritable(),null!==f?(t=f.getWritable(),e.__prev=f.__key,t.__next=c.__key):e.__prev=null),i.__size=d,l.length&&Kn(e=ur())){l=new Set(l),s=new Set(s);var g=e,y=g.anchor,b=g.focus;Wr(y,l,s)&&hr(y,y.getNode(),this,u,c),Wr(b,l,s)&&hr(b,b.getNode(),this,u,c),0!==d||this.canBeEmpty()||ct(this)||this.remove()}return i}},{key:"exportJSON",value:function(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}},{key:"insertNewAfter",value:function(){return null}},{key:"canIndent",value:function(){return!0}},{key:"collapseAtStart",value:function(){return!1}},{key:"excludeFromCopy",value:function(){return!1}},{key:"canExtractContents",value:function(){return!0}},{key:"canReplaceWith",value:function(){return!0}},{key:"canInsertAfter",value:function(){return!0}},{key:"canBeEmpty",value:function(){return!0}},{key:"canInsertTextBefore",value:function(){return!0}},{key:"canInsertTextAfter",value:function(){return!0}},{key:"isInline",value:function(){return!1}},{key:"isShadowRoot",value:function(){return!1}},{key:"canMergeWith",value:function(){return!1}},{key:"extractWithChild",value:function(){return!1}}]),n}(bn);function zr(e){return e instanceof jr}function Wr(e,t,n){for(e=e.getNode();e;){var r=e.__key;if(t.has(r)&&!n.has(r))return!0;e=e.getParent()}return!1}var Zr=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(){var e;return(0,v.Z)(this,n),(e=t.call(this,"root")).__cachedText=null,e}return(0,g.Z)(n,[{key:"getTopLevelElementOrThrow",value:function(){q(51)}},{key:"getTextContent",value:function(){var e=this.__cachedText;return!Sr()&&0!==Cr()._dirtyType||null===e?(0,f.Z)((0,p.Z)(n.prototype),"getTextContent",this).call(this):e}},{key:"remove",value:function(){q(52)}},{key:"replace",value:function(){q(53)}},{key:"insertBefore",value:function(){q(54)}},{key:"insertAfter",value:function(){q(55)}},{key:"updateDOM",value:function(){return!1}},{key:"append",value:function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];for(var i=0;i<r.length;i++){var a=r[i];zr(a)||Lr(a)||q(56)}return(e=(0,f.Z)((0,p.Z)(n.prototype),"append",this)).call.apply(e,[this].concat(r))}},{key:"exportJSON",value:function(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}},{key:"collapseAtStart",value:function(){return!0}}],[{key:"getType",value:function(){return"root"}},{key:"clone",value:function(){return new n}},{key:"importJSON",value:function(e){var t=Ue();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}}]),n}(jr);function Fr(e){return e instanceof Zr}function Hr(){return new $r(new Map([["root",new Zr]]))}function Ur(e){var t=e.exportJSON(),n=e.constructor;t.type!==n.getType()&&q(130,n.name);var r=t.children;if(zr(e))for(Array.isArray(r)||q(59,n.name),e=e.getChildren(),n=0;n<e.length;n++){var o=Ur(e[n]);r.push(o)}return t}var $r=function(){function e(t,n){(0,v.Z)(this,e),this._nodeMap=t,this._selection=n||null,this._readOnly=this._flushSync=!1}return(0,g.Z)(e,[{key:"isEmpty",value:function(){return 1===this._nodeMap.size&&null===this._selection}},{key:"read",value:function(e){return Br(this,e)}},{key:"clone",value:function(t){return(t=new e(this._nodeMap,void 0===t?this._selection:t))._readOnly=!0,t}},{key:"toJSON",value:function(){return Br(this,(function(){return{root:Ur(Ue())}}))}}]),e}(),Gr=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n,[{key:"createDOM",value:function(e){var t,n=document.createElement("p");return void 0!==(e=Je(e.theme,"paragraph"))&&(t=n.classList).add.apply(t,(0,r.Z)(e)),n}},{key:"updateDOM",value:function(){return!1}},{key:"exportDOM",value:function(e){if((e=(0,f.Z)((0,p.Z)(n.prototype),"exportDOM",this).call(this,e).element)&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t),0<(t=this.getIndent())&&(e.style.textIndent="".concat(20*t,"px"))}return{element:e}}},{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(n.prototype),"exportJSON",this).call(this)),{},{type:"paragraph",version:1})}},{key:"insertNewAfter",value:function(e,t){e=Kr();var n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}},{key:"collapseAtStart",value:function(){var e=this.getChildren();if(0===e.length||zn(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}],[{key:"getType",value:function(){return"paragraph"}},{key:"clone",value:function(e){return new n(e.__key)}},{key:"importDOM",value:function(){return{p:function(){return{conversion:qr,priority:0}}}}},{key:"importJSON",value:function(e){var t=Kr();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}}]),n}(jr);function qr(e){var t=Kr();return e.style&&(t.setFormat(e.style.textAlign),0<(e=parseInt(e.style.textIndent,10)/20)&&t.setIndent(e)),{node:t}}function Kr(){return dt(new Gr)}function Vr(e,t,n,r){var o=e._keyToDOMMap;o.clear(),e._editorState=Hr(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null,null!==(r=e._observer)&&(r.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",o.set("root",n))}var Yr=function(){function e(t,n,r,o,i,a,s){(0,v.Z)(this,e),this._parentEditor=n,this._rootElement=null,this._editorState=t,this._compositionKey=this._pendingEditorState=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=o,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Ve(),this._onError=i,this._htmlConversions=a,this._editable=s,this._headless=null!==n&&n._headless,this._blockCursorElement=this._window=null}return(0,g.Z)(e,[{key:"isComposing",value:function(){return null!=this._compositionKey}},{key:"registerUpdateListener",value:function(e){var t=this._listeners.update;return t.add(e),function(){t.delete(e)}}},{key:"registerEditableListener",value:function(e){var t=this._listeners.editable;return t.add(e),function(){t.delete(e)}}},{key:"registerDecoratorListener",value:function(e){var t=this._listeners.decorator;return t.add(e),function(){t.delete(e)}}},{key:"registerTextContentListener",value:function(e){var t=this._listeners.textcontent;return t.add(e),function(){t.delete(e)}}},{key:"registerRootListener",value:function(e){var t=this,n=this._listeners.root;return e(this._rootElement,null),n.add(e),function(){e(null,t._rootElement),n.delete(e)}}},{key:"registerCommand",value:function(e,t,n){void 0===n&&q(35);var r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);var o=r.get(e);void 0===o&&q(36,String(e));var i=o[n];return i.add(t),function(){i.delete(t),o.every((function(e){return 0===e.size}))&&r.delete(e)}}},{key:"registerMutationListener",value:function(e,t){void 0===this._nodes.get(e.getType())&&q(37,e.name);var n=this._listeners.mutation;return n.set(t,e),function(){n.delete(t)}}},{key:"registerNodeTransformToKlass",value:function(e,t){var n=e.getType();return void 0===(n=this._nodes.get(n))&&q(37,e.name),n.transforms.add(t),n}},{key:"registerNodeTransform",value:function(e,t){var n=this.registerNodeTransformToKlass(e,t),r=[n];return null!=(n=n.replaceWithKlass)&&(n=this.registerNodeTransformToKlass(n,t),r.push(n)),function(e,t){Nr(e,(function(){var e=Er();if(!e.isEmpty())if("root"===t)Ue().markDirty();else{e=e._nodeMap;var n,r=(0,l.Z)(e);try{for(r.s();!(n=r.n()).done;)(0,s.Z)(n.value,2)[1].markDirty()}catch(o){r.e(o)}finally{r.f()}}}),null===e._pendingEditorState?{tag:"history-merge"}:void 0)}(this,e.getType()),function(){r.forEach((function(e){return e.transforms.delete(t)}))}}},{key:"hasNode",value:function(e){return this._nodes.has(e.getType())}},{key:"hasNodes",value:function(e){return e.every(this.hasNode.bind(this))}},{key:"dispatchCommand",value:function(e,t){return Rr(this,e,t)}},{key:"getDecorators",value:function(){return this._decorators}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getKey",value:function(){return this._key}},{key:"setRootElement",value:function(e){var t=this._rootElement;if(e!==t){var n,o=Je(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,Vr(this,t,e,i),null!==t){var a;if(!this._config.disableEvents){0!==rn&&(0===--rn&&t.ownerDocument.removeEventListener("selectionchange",gn));var l=t.__lexicalEditor;if(null!=l){if(null!==l._parentEditor){var c=Ke(l);c=c[c.length-1]._key,vn.get(c)===l&&vn.delete(c)}else vn.delete(l._key);t.__lexicalEditor=null}for(l=mn(t),c=0;c<l.length;c++)l[c]();t.__lexicalEventHandles=[]}null!=o&&(a=t.classList).remove.apply(a,(0,r.Z)(o))}null!==e?(i=(i=e.ownerDocument)&&i.defaultView||null,(l=e.style).userSelect="text",l.whiteSpace="pre-wrap",l.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,be(this),this._updateTags.add("history-merge"),Or(this),this._config.disableEvents||function(e,t){0===rn&&e.ownerDocument.addEventListener("selectionchange",gn),rn++,e.__lexicalEditor=t;for(var n=mn(e),r=function(r){var o=(0,s.Z)(Jt[r],2),i=o[0],a=o[1],l="function"==typeof a?function(e){!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()&&a(e,t))}:function(e){if(!0!==e._lexicalHandled&&(e._lexicalHandled=!0,t.isEditable()))switch(i){case"cut":return Rr(t,F,e);case"copy":return Rr(t,Z,e);case"paste":return Rr(t,d,e);case"dragstart":return Rr(t,j,e);case"dragover":return Rr(t,z,e);case"dragend":return Rr(t,W,e);case"focus":return Rr(t,U,e);case"blur":return Rr(t,$,e);case"drop":return Rr(t,L,e)}};e.addEventListener(i,l),n.push((function(){e.removeEventListener(i,l)}))},o=0;o<Jt.length;o++)r(o)}(e,this),null!=o&&(n=e.classList).add.apply(n,(0,r.Z)(o))):(this._editorState=i,this._window=this._pendingEditorState=null),Pr("root",this,!1,e,t)}}},{key:"getElementByKey",value:function(e){return this._keyToDOMMap.get(e)||null}},{key:"getEditorState",value:function(){return this._editorState}},{key:"setEditorState",value:function(e,t){e.isEmpty()&&q(38),ye(this);var n=this._pendingEditorState,r=this._updateTags;t=void 0!==t?t.tag:null,null===n||n.isEmpty()||(null!=t&&r.add(t),Or(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=t&&r.add(t),Or(this)}},{key:"parseEditorState",value:function(e,t){e="string"==typeof e?JSON.parse(e):e;var n=Hr(),r=gr,o=br,i=yr,a=this._dirtyElements,s=this._dirtyLeaves,l=this._cloneNotNeeded,c=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,gr=n,br=!1,yr=this;try{Ir(e.root,this._nodes),t&&t(),n._readOnly=!0}catch(u){u instanceof Error&&this._onError(u)}finally{this._dirtyElements=a,this._dirtyLeaves=s,this._cloneNotNeeded=l,this._dirtyType=c,gr=r,br=o,yr=i}return n}},{key:"update",value:function(e,t){Nr(this,e,t)}},{key:"focus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),Nr(this,(function(){var e=ur(),n=Ue();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:function(){n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}},{key:"blur",value:function(){var e=this._rootElement;null!==e&&e.blur(),null!==(e=mt(this._window))&&e.removeAllRanges()}},{key:"isEditable",value:function(){return this._editable}},{key:"setEditable",value:function(e){this._editable!==e&&(this._editable=e,Pr("editable",this,!0,e))}},{key:"toJSON",value:function(){return{editorState:this._editorState.toJSON()}}}]),e}(),Xr=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e,r){var o;return(0,v.Z)(this,n),(o=t.call(this,r)).__colSpan=e,o.__rowSpan=1,o}return(0,g.Z)(n,[{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(n.prototype),"exportJSON",this).call(this)),{},{colSpan:this.__colSpan,rowSpan:this.__rowSpan})}},{key:"getColSpan",value:function(){return this.__colSpan}},{key:"setColSpan",value:function(e){return this.getWritable().__colSpan=e,this}},{key:"getRowSpan",value:function(){return this.__rowSpan}},{key:"setRowSpan",value:function(e){return this.getWritable().__rowSpan=e,this}}]),n}(jr);function Jr(e){return e instanceof Xr}var Qr=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n)}(jr);function eo(e){return e instanceof Qr}var to=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(){return(0,v.Z)(this,n),t.apply(this,arguments)}return(0,g.Z)(n)}(jr);function no(e){return e instanceof to}e.$addUpdateTag=function(e){_r(),Cr()._updateTags.add(e)},e.$applyNodeReplacement=dt,e.$copyNode=ut,e.$createLineBreakNode=kn,e.$createNodeSelection=lr,e.$createParagraphNode=Kr,e.$createRangeSelection=function(){var e=new Fn("root",0,"element"),t=new Fn("root",0,"element");return new Xn(e,t,0,"")},e.$createTabNode=Zn,e.$createTextNode=jn,e.$getAdjacentNode=tt,e.$getNearestNodeFromDOMNode=Ze,e.$getNearestRootOrShadowRoot=lt,e.$getNodeByKey=ze,e.$getPreviousSelection=dr,e.$getRoot=Ue,e.$getSelection=ur,e.$getTextContent=function(){var e=ur();return null===e?"":e.getTextContent()},e.$hasAncestor=at,e.$hasUpdateTag=function(e){return Cr()._updateTags.has(e)},e.$insertNodes=function(e,t){var n=ur()||dr();return null===n&&(n=Ue().selectEnd()),n.insertNodes(e,t)},e.$isBlockElementNode=ar,e.$isDecoratorNode=Lr,e.$isElementNode=zr,e.$isInlineElementOrDecoratorNode=function(e){return zr(e)&&e.isInline()||Lr(e)&&e.isInline()},e.$isLeafNode=Ae,e.$isLineBreakNode=Sn,e.$isNodeSelection=Jn,e.$isParagraphNode=function(e){return e instanceof Gr},e.$isRangeSelection=Kn,e.$isRootNode=Fr,e.$isRootOrShadowRoot=ct,e.$isTabNode=function(e){return e instanceof Wn},e.$isTextNode=zn,e.$nodesOfType=function(e){var t=Er(),n=t._readOnly,r=e.getType();t=t._nodeMap;var o,i=[],a=(0,l.Z)(t);try{for(a.s();!(o=a.n()).done;){var c=(0,s.Z)(o.value,2)[1];c instanceof e&&c.__type===r&&(n||c.isAttached())&&i.push(c)}}catch(u){a.e(u)}finally{a.f()}return i},e.$normalizeSelection__EXPERIMENTAL=Se,e.$parseSerializedNode=function(e){return Ir(e,Cr()._nodes)},e.$selectAll=function(){var e=Ue();$e(Se(e=e.select(0,e.getChildrenSize())))},e.$setCompositionKey=Le,e.$setSelection=$e,e.$splitNode=vt,e.BLUR_COMMAND=$,e.CAN_REDO_COMMAND={},e.CAN_UNDO_COMMAND={},e.CLEAR_EDITOR_COMMAND={},e.CLEAR_HISTORY_COMMAND={},e.CLICK_COMMAND=n,e.COMMAND_PRIORITY_CRITICAL=4,e.COMMAND_PRIORITY_EDITOR=0,e.COMMAND_PRIORITY_HIGH=3,e.COMMAND_PRIORITY_LOW=1,e.COMMAND_PRIORITY_NORMAL=2,e.CONTROLLED_TEXT_INSERTION_COMMAND=u,e.COPY_COMMAND=Z,e.CUT_COMMAND=F,e.DELETE_CHARACTER_COMMAND=i,e.DELETE_LINE_COMMAND=x,e.DELETE_WORD_COMMAND=b,e.DEPRECATED_$computeGridMap=vr,e.DEPRECATED_$createGridSelection=function(){var e=new Fn("root",0,"element"),t=new Fn("root",0,"element");return new Vn("root",e,t)},e.DEPRECATED_$getNodeTriplet=function(e){e instanceof Xr||(e instanceof bn?Jr(e=gt(e,Jr))||q(114):Jr(e=gt(e.getNode(),Jr))||q(114));var t=e.getParent();no(t)||q(115);var n=t.getParent();return eo(n)||q(116),[e,t,n]},e.DEPRECATED_$isGridCellNode=Jr,e.DEPRECATED_$isGridNode=eo,e.DEPRECATED_$isGridRowNode=no,e.DEPRECATED_$isGridSelection=Yn,e.DEPRECATED_GridCellNode=Xr,e.DEPRECATED_GridNode=Qr,e.DEPRECATED_GridRowNode=to,e.DRAGEND_COMMAND=W,e.DRAGOVER_COMMAND=z,e.DRAGSTART_COMMAND=j,e.DROP_COMMAND=L,e.DecoratorNode=Dr,e.ElementNode=jr,e.FOCUS_COMMAND=U,e.FORMAT_ELEMENT_COMMAND={},e.FORMAT_TEXT_COMMAND=w,e.INDENT_CONTENT_COMMAND={},e.INSERT_LINE_BREAK_COMMAND=a,e.INSERT_PARAGRAPH_COMMAND=c,e.INSERT_TAB_COMMAND={},e.KEY_ARROW_DOWN_COMMAND=O,e.KEY_ARROW_LEFT_COMMAND=T,e.KEY_ARROW_RIGHT_COMMAND=E,e.KEY_ARROW_UP_COMMAND=B,e.KEY_BACKSPACE_COMMAND=A,e.KEY_DELETE_COMMAND=N,e.KEY_DOWN_COMMAND=_,e.KEY_ENTER_COMMAND=P,e.KEY_ESCAPE_COMMAND=M,e.KEY_MODIFIER_COMMAND=G,e.KEY_SPACE_COMMAND=R,e.KEY_TAB_COMMAND=D,e.LineBreakNode=xn,e.MOVE_TO_END=C,e.MOVE_TO_START=I,e.OUTDENT_CONTENT_COMMAND={},e.PASTE_COMMAND=d,e.ParagraphNode=Gr,e.REDO_COMMAND=S,e.REMOVE_TEXT_COMMAND=y,e.RootNode=Zr,e.SELECTION_CHANGE_COMMAND=t,e.SELECT_ALL_COMMAND=H,e.TabNode=Wn,e.TextNode=Bn,e.UNDO_COMMAND=k,e.createCommand=function(){return{}},e.createEditor=function(e){var t=e||{},n=yr,o=t.theme||{},i=void 0===e?n:t.parentEditor||null,a=t.disableEvents||!1,s=Hr(),l=t.namespace||(null!==i?i._config.namespace:Ve()),c=t.editorState,u=[Zr,Bn,xn,Wn,Gr].concat((0,r.Z)(t.nodes||[])),d=t.onError;if(t=void 0===t.editable||t.editable,void 0===e&&null!==n)e=n._nodes;else for(e=new Map,n=0;n<u.length;n++){var f=u[n],p=null,h=null;"function"!=typeof f&&(f=(h=f).replace,p=h.with,h=h.withKlass?h.withKlass:null);var m=f.getType(),v=f.transform(),g=new Set;null!==v&&g.add(v),e.set(m,{klass:f,replace:p,replaceWithKlass:h,transforms:g})}return o=new Yr(s,i,e,{disableEvents:a,namespace:l,theme:o},d||console.error,function(e){var t=new Map,n=new Set;return e.forEach((function(e){if(null!=(e=null!=e.klass.importDOM?e.klass.importDOM.bind(e.klass):null)&&!n.has(e)){n.add(e);var r=e();null!==r&&Object.keys(r).forEach((function(e){var n=t.get(e);void 0===n&&(n=[],t.set(e,n)),n.push(r[e])}))}})),t}(e),t),void 0!==c&&(o._pendingEditorState=c,o._dirtyType=2),o},e.getNearestEditorFromDOMNode=Be,e.isSelectionCapturedInDecoratorInput=Te,e.isSelectionWithinEditor=Ie}}),Z=O({"../../../node_modules/lexical/Lexical.js":function(e,t){var n=W();t.exports=n}}),F=O({"../../../node_modules/@lexical/selection/LexicalSelection.prod.js":function(e){var t=Z(),n=new Map;function r(e){for(;null!=e;){if(e.nodeType===Node.TEXT_NODE)return e;e=e.firstChild}return null}function i(e){var t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function a(e){var t={};e=e.split(";");var n,r=(0,l.Z)(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(""!==o){var i=o.split(/:([^]+)/),a=(0,s.Z)(i,2),c=a[0],u=a[1];t[c.trim()]=u.trim()}}}catch(d){r.e(d)}finally{r.f()}return t}function c(e){var t=n.get(e);return void 0===t&&(t=a(e),n.set(e,t)),t}function u(e,t){var r=c("getStyle"in e?e.getStyle():e.style);t=Object.entries(t).reduce((function(e,t){var n=(0,s.Z)(t,2),r=n[0],o=n[1];return null===o?delete e[r]:e[r]=o,e}),(0,o.Z)({},r)),r=function(e){var t="";for(var n in e)n&&(t+="".concat(n,": ").concat(e[n],";"));return t}(t),e.setStyle(r),n.set(r,t)}function d(e){for(;null!==e&&!t.$isRootOrShadowRoot(e);){var n=e.getLatest(),r=e.getParent();0===n.getChildrenSize()&&e.remove(!0),e=r}}function f(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(0!==n.length){var a=n[0],s=new Map,l=[];(a=t.$isElementNode(a)?a:a.getParentOrThrow()).isInline()&&(a=a.getParentOrThrow());for(var c=!1;null!==a;){var u=a.getPreviousSibling();if(null!==u){a=u,c=!0;break}if(a=a.getParentOrThrow(),t.$isRootOrShadowRoot(a))break}u=new Set;for(var f=0;f<r;f++){var p=n[f];t.$isElementNode(p)&&0===p.getChildrenSize()&&u.add(p.getKey())}var h=new Set;for(f=0;f<r;f++){var m=(p=n[f]).getParent();null!==m&&m.isInline()&&(m=m.getParent()),null!==m&&t.$isLeafNode(p)&&!h.has(p.getKey())?(p=m.getKey(),void 0===s.get(p)&&function(){var e=o();e.setFormat(m.getFormatType()),e.setIndent(m.getIndent()),l.push(e),s.set(p,e),m.getChildren().forEach((function(n){e.append(n),h.add(n.getKey()),t.$isElementNode(n)&&n.getChildrenKeys().forEach((function(e){return h.add(e)}))})),d(m)}()):u.has(p.getKey())&&((m=o()).setFormat(p.getFormatType()),m.setIndent(p.getIndent()),l.push(m),p.remove(!0))}if(null!==i)for(n=0;n<l.length;n++)i.append(l[n]);if(n=null,t.$isRootOrShadowRoot(a))if(c)if(null!==i)a.insertAfter(i);else for(i=l.length-1;0<=i;i--)a.insertAfter(l[i]);else if(c=a.getFirstChild(),t.$isElementNode(c)&&(a=c),null===c)if(i)a.append(i);else for(i=0;i<l.length;i++)c=l[i],a.append(c),n=c;else if(null!==i)c.insertBefore(i);else for(a=0;a<l.length;a++)i=l[a],c.insertBefore(i),n=i;else if(i)a.insertAfter(i);else for(i=l.length-1;0<=i;i--)c=l[i],a.insertAfter(c),n=c;l=t.$getPreviousSelection(),t.$isRangeSelection(l)&&l.anchor.getNode().isAttached()&&l.focus.getNode().isAttached()?t.$setSelection(l.clone()):null!==n?n.selectEnd():e.dirty=!0}}function p(e,t,n,r){e.modify(t?"extend":"move",n,r)}function h(e){return e=e.anchor.getNode(),"rtl"===(t.$isRootNode(e)?e:e.getParentOrThrow()).getDirection()}e.$addNodeStyle=function(e){var t=a(e=e.getStyle());n.set(e,t)},e.$cloneWithProperties=function(e){var n=(e=e.getLatest()).constructor.clone(e);return n.__parent=e.__parent,n.__next=e.__next,n.__prev=e.__prev,t.$isElementNode(e)&&t.$isElementNode(n)?(n.__first=e.__first,n.__last=e.__last,n.__size=e.__size,n.__format=e.__format,n.__indent=e.__indent,n.__dir=e.__dir,n):(t.$isTextNode(e)&&t.$isTextNode(n)&&(n.__format=e.__format,n.__style=e.__style,n.__mode=e.__mode,n.__detail=e.__detail),n)},e.$getSelectionStyleValueForProperty=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=null,i=e.getNodes(),a=e.anchor,s=e.focus,l=e.isBackward(),u=l?s.offset:a.offset;if(a=l?s.getNode():a.getNode(),""!==e.style&&(null!==(e=c(e.style))&&n in e))return e[n];for(e=0;e<i.length;e++){var d=i[e];if((0===e||0!==u||!d.is(a))&&t.$isTextNode(d))if(s=n,l=r,s=null!==(d=c(d=d.getStyle()))&&d[s]||l,null===o)o=s;else if(o!==s){o="";break}}return null===o?r:o},e.$isAtNodeEnd=function(e){return"text"===e.type?e.offset===e.getNode().getTextContentSize():e.offset===e.getNode().getChildrenSize()},e.$isParentElementRTL=h,e.$moveCaretSelection=p,e.$moveCharacter=function(e,t,n){var r=h(e);p(e,t,n?!r:r,"character")},e.$patchStyleText=function(e,n){var r=e.getNodes(),o=r.length-1,i=r[0],a=r[o];if(e.isCollapsed())u(e,n);else{var l=e.anchor,c=e.focus,d=i.getTextContent().length,f=c.offset,p=l.offset,h=l.isBefore(c),m=h?p:f;e=h?f:p;var v=h?l.type:c.type,g=h?c.type:l.type;if(l=h?c.key:l.key,t.$isTextNode(i)&&m===d&&(c=i.getNextSibling(),t.$isTextNode(c)&&(m=p=0,i=c)),1===r.length)t.$isTextNode(i)&&((m="element"===v?0:p>f?f:p)!==(e="element"===g?d:p>f?p:f)&&(0===m&&e===d?(u(i,n),i.select(m,e)):(r=i.splitText(m,e),u(r=0===m?r[0]:r[1],n),r.select(0,e-m))));else for(t.$isTextNode(i)&&m<i.getTextContentSize()&&(0!==m&&(i=i.splitText(m)[1]),u(i,n)),t.$isTextNode(a)&&(m=a.getTextContent().length,a.__key!==l&&0!==e&&(e=m),e!==m&&(y=a.splitText(e),a=(0,s.Z)(y,1)[0]),0!==e&&u(a,n)),e=1;e<o;e++){var y;d=(m=r[e]).getKey(),t.$isTextNode(m)&&d!==i.getKey()&&d!==a.getKey()&&!m.isToken()&&u(m,n)}}},e.$selectAll=function(e){var n=e.anchor;e=e.focus;var r=n.getNode().getTopLevelElementOrThrow().getParentOrThrow(),o=r.getFirstDescendant();r=r.getLastDescendant();var i="element",a="element",s=0;t.$isTextNode(o)?i="text":t.$isElementNode(o)||null===o||(o=o.getParentOrThrow()),t.$isTextNode(r)?(a="text",s=r.getTextContentSize()):t.$isElementNode(r)||null===r||(r=r.getParentOrThrow()),o&&r&&(n.set(o.getKey(),0,i),e.set(r.getKey(),s,a))},e.$setBlocksType=function(e,n){if("root"===e.anchor.key){n=n();var r=t.$getRoot();(e=r.getFirstChild())?e.replace(n,!0):r.append(n)}else for(r=e.getNodes(),e=e.anchor.getNode().getParentOrThrow(),-1===r.indexOf(e)&&r.push(e),e.isInline()&&(e=e.getParentOrThrow(),-1===r.indexOf(e)&&r.push(e)),e=0;e<r.length;e++){var o=r[e],i=o;if(!t.$isElementNode(i)||t.$isRootOrShadowRoot(i))i=!1;else{var a=i.getFirstChild();a=null===a||t.$isLineBreakNode(a)||t.$isTextNode(a)||a.isInline(),i=!i.isInline()&&!1!==i.canBeEmpty()&&a}i&&((i=n()).setFormat(o.getFormatType()),i.setIndent(o.getIndent()),o.replace(i,!0))}},e.$shouldOverrideDefaultCharacterSelection=function(e,n){return e=t.$getAdjacentNode(e.focus,n),t.$isDecoratorNode(e)&&!e.isIsolated()||t.$isElementNode(e)&&!e.isInline()&&!e.canBeEmpty()},e.$sliceSelectedTextNodeContent=function(e,n){if(n.isSelected()&&!n.isSegmented()&&!n.isToken()&&(t.$isRangeSelection(e)||t.DEPRECATED_$isGridSelection(e))){var r=e.anchor.getNode(),o=e.focus.getNode(),i=n.is(r),a=n.is(o);if(i||a){i=e.isBackward();var l,c=e.getCharacterOffsets(),u=(0,s.Z)(c,2),d=u[0],f=u[1];e=r.is(o),a=n.is(i?o:r),o=n.is(i?r:o),r=0,e?(r=d>f?f:d,l=d>f?d:f):a?(r=i?f:d,l=void 0):o&&(r=0,l=i=i?d:f),n.__text=n.__text.slice(r,l)}}return n},e.$wrapNodes=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=e.getNodes(),i=o.length,a=e.anchor;if(0===i||1===i&&"element"===a.type&&0===a.getNode().getChildrenSize()){o=(e="text"===a.type?a.getNode().getParentOrThrow():a.getNode()).getChildren();var s=n();s.setFormat(e.getFormatType()),s.setIndent(e.getIndent()),o.forEach((function(e){return s.append(e)})),r&&(s=r.append(s)),e.replace(s)}else{a=null;for(var l=[],c=0;c<i;c++){var u=o[c];t.$isRootOrShadowRoot(u)?(f(e,l,l.length,n,r),l=[],a=u):null===a||null!==a&&t.$hasAncestor(u,a)?l.push(u):(f(e,l,l.length,n,r),l=[u])}f(e,l,l.length,n,r)}},e.createDOMRange=function(e,n,o,a,l){var c,u,d,f,p=n.getKey(),h=a.getKey(),m=document.createRange(),v=e.getElementByKey(p);if(e=e.getElementByKey(h),t.$isTextNode(n)&&(v=r(v)),t.$isTextNode(a)&&(e=r(e)),void 0===n||void 0===a||null===v||null===e)return null;"BR"===v.nodeName&&(c=i(v),v=(u=(0,s.Z)(c,2))[0],o=u[1]),"BR"===e.nodeName&&(d=i(e),e=(f=(0,s.Z)(d,2))[0],l=f[1]),n=v.firstChild,v===e&&null!=n&&"BR"===n.nodeName&&0===o&&0===l&&(l=1);try{m.setStart(v,o),m.setEnd(e,l)}catch(g){return null}return!m.collapsed||o===l&&p===h||(m.setStart(e,l),m.setEnd(v,o)),m},e.createRectsFromDOMRange=function(e,t){var n=e.getRootElement();if(null===n)return[];e=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);var r,o=(t=Array.from(t.getClientRects())).length;t.sort((function(e,t){var n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n}));for(var i=0;i<o;i++){var a=t[i],s=a.width+n===e.width;r&&r.top<=a.top&&r.top+r.height>a.top&&r.left+r.width>a.left||s?(t.splice(i--,1),o--):r=a}return t},e.getStyleObjectFromCSS=c,e.trimTextContentFromAnchor=function(e,n,r){var o=n.getNode();if(t.$isElementNode(o)){var i=o.getDescendantByIndex(n.offset);null!==i&&(o=i)}for(;0<r&&null!==o;){var a=o.getPreviousSibling(),l=0;if(null===a){for(var c=(i=o.getParentOrThrow()).getPreviousSibling();null===c;){if(null===(i=i.getParent())){a=null;break}c=i.getPreviousSibling()}null!==i&&(l=i.isInline()?0:2,a=t.$isElementNode(c)?c.getLastDescendant():c)}""===(c=o.getTextContent())&&t.$isElementNode(o)&&!o.isInline()&&(c="\n\n"),i=o.getTextContentSize(),!t.$isTextNode(o)||r>=i?(c=o.getParent(),o.remove(),null==c||0!==c.getChildrenSize()||t.$isRootNode(c)||c.remove(),r-=i+l,o=a):function(u,d,f,p){var h=o.getKey();l=e.getEditorState().read((function(){var e=t.$getNodeByKey(h);return t.$isTextNode(e)&&e.isSimpleText()?e.getTextContent():null})),a=i-r;var m=c.slice(0,a);null!==l&&l!==c?(r=t.$getPreviousSelection(),i=o,o.isSimpleText()?o.setTextContent(l):(i=t.$createTextNode(l),o.replace(i)),t.$isRangeSelection(r)&&r.isCollapsed()&&(r=r.anchor.offset,i.select(r,r))):o.isSimpleText()?(l=n.key===h,(c=n.offset)<r&&(c=i),r=l?c-r:0,i=l?c:a,l&&0===r?(u=o.splitText(r,i),d=(0,s.Z)(u,1),(r=d[0]).remove()):(f=o.splitText(r,i),p=(0,s.Z)(f,2),(r=p[1]).remove())):(r=t.$createTextNode(m),o.replace(r)),r=0}()}}}}),H=O({"../../../node_modules/@lexical/selection/LexicalSelection.js":function(e,t){var n=F();t.exports=n}}),U=O({"../../../node_modules/@lexical/utils/LexicalUtils.prod.js":function(e){var t=H(),n=Z();function o(e,t){var n,r=(0,l.Z)(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(e.type.startsWith(o))return!0}}catch(i){r.e(i)}finally{r.f()}return!1}function i(e,t){for(;e!==n.$getRoot()&&null!=e;){if(t(e))return e;e=e.getParent()}return null}function a(e){return 1===e.nodeType}e.$splitNode=n.$splitNode,e.$dfs=function(e,t){var r=[];e=(e||n.$getRoot()).getLatest(),t=t||(n.$isElementNode(e)?e.getLastDescendant():e);for(var o=e,i=0;null!==(o=o.getParent());)i++;for(o=i;null!==e&&!e.is(t);)if(r.push({depth:o,node:e}),n.$isElementNode(e)&&0<e.getChildrenSize())e=e.getFirstChild(),o++;else for(i=null;null===i&&null!==e;)null===(i=e.getNextSibling())?(e=e.getParent(),o--):e=i;return null!==e&&e.is(t)&&r.push({depth:o,node:e}),r},e.$findMatchingParent=i,e.$getNearestBlockElementAncestorOrThrow=function(e){var t=i(e,(function(e){return n.$isElementNode(e)&&!e.isInline()}));return n.$isElementNode(t)||function(e){var t=new URLSearchParams;t.append("code",e);for(var n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error("Minified Lexical error #".concat(e,"; visit https://lexical.dev/docs/error?").concat(t," for the full message or use the non-minified dev environment for full errors and additional helpful warnings."))}(4,e.__key),t},e.$getNearestNodeOfType=function(e,t){for(;null!=e;){if(e instanceof t)return e;e=e.getParent()}return null},e.$insertNodeToNearestRoot=function(e){var t=n.$getSelection()||n.$getPreviousSelection();if(n.$isRangeSelection(t)){var r,o,i,a=t.focus;if(t=a.getNode(),a=a.offset,n.$isRootOrShadowRoot(t))null==(a=t.getChildAtIndex(a))?t.append(e):a.insertBefore(e),e.selectNext();else n.$isTextNode(t)?(o=t.getParentOrThrow(),i=t.getIndexWithinParent(),0<a&&(i+=1,t.splitText(a))):(o=t,i=a),r=n.$splitNode(o,i),(t=(0,s.Z)(r,2)[1]).insertBefore(e),t.selectStart()}else n.$isNodeSelection(t)||n.DEPRECATED_$isGridSelection(t)?(t=t.getNodes())[t.length-1].getTopLevelElementOrThrow().insertAfter(e):n.$getRoot().append(e),t=n.$createParagraphNode(),e.insertAfter(t),t.select();return e.getLatest()},e.$restoreEditorState=function(e,r){var o,i=new Map,a=e._pendingEditorState,c=(0,l.Z)(r._nodeMap);try{for(c.s();!(o=c.n()).done;){var u=(0,s.Z)(o.value,2),d=u[0],f=u[1],p=t.$cloneWithProperties(f);n.$isTextNode(p)&&(p.__text=f.__text),i.set(d,p)}}catch(h){c.e(h)}finally{c.f()}a&&(a._nodeMap=i),e._dirtyType=2,e=r._selection,n.$setSelection(null===e?null:e.clone())},e.$wrapNodeInElement=function(e,t){return t=t(),e.replace(t),t.append(e),t},e.addClassNamesToElement=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];n.forEach((function(t){var n;"string"==typeof t&&(t=t.split(" ").filter((function(e){return""!==e})),(n=e.classList).add.apply(n,(0,r.Z)(t)))}))},e.isHTMLAnchorElement=function(e){return a(e)&&"A"===e.tagName},e.isHTMLElement=a,e.isMimeType=o,e.mediaFileReader=function(e,t){var n=e[Symbol.iterator]();return new Promise((function(e,r){var i=[];!function a(){var s=n.next(),l=s.done,c=s.value;if(l)return e(i);var u=new FileReader;u.addEventListener("error",r),u.addEventListener("load",(function(){var e=u.result;"string"==typeof e&&i.push({file:c,result:e}),a()})),o(c,t)?u.readAsDataURL(c):a()}()}))},e.mergeRegister=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach((function(e){return e()}))}},e.objectKlassEquals=function(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name},e.registerNestedElementResolver=function(e,t,n,r){return e.registerNodeTransform(t,(function(e){e:{for(var o=e.getChildren(),i=0;i<o.length;i++)if(o[i]instanceof t){o=null;break e}for(o=e;null!==o;)if(i=o,(o=o.getParent())instanceof t){o={child:i,parent:o};break e}o=null}if(null!==o){var a=o,s=a.child,l=a.parent;if(s.is(e)){if(r(l,e),o=(e=s.getNextSiblings()).length,l.insertAfter(s),0!==o){i=n(l),s.insertAfter(i);for(var c=0;c<o;c++)i.append(e[c])}l.canBeEmpty()||0!==l.getChildrenSize()||l.remove()}}}))},e.removeClassNamesFromElement=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];n.forEach((function(t){var n;"string"==typeof t&&(n=e.classList).remove.apply(n,(0,r.Z)(t.split(" ")))}))}}}),$=O({"../../../node_modules/@lexical/utils/LexicalUtils.js":function(e,t){var n=U();t.exports=n}}),G=O({"../../../node_modules/@lexical/link/LexicalLink.prod.js":function(e){var t=$(),n=Z(),r=new Set(["http:","https:","mailto:","sms:","tel:"]),i=function(e){(0,h.Z)(l,e);var i=(0,m.Z)(l);function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;(0,v.Z)(this,l),t=i.call(this,r);var o=n.target,a=void 0===o?null:o,s=n.rel,c=void 0===s?null:s,u=n.title,d=void 0===u?null:u;return t.__url=e,t.__target=a,t.__rel=c,t.__title=d,t}return(0,g.Z)(l,[{key:"createDOM",value:function(e){var n=document.createElement("a");return n.href=this.sanitizeUrl(this.__url),null!==this.__target&&(n.target=this.__target),null!==this.__rel&&(n.rel=this.__rel),null!==this.__title&&(n.title=this.__title),t.addClassNamesToElement(n,e.theme.link),n}},{key:"updateDOM",value:function(e,t){var n=this.__url,r=this.__target,o=this.__rel,i=this.__title;return n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),o!==e.__rel&&(o?t.rel=o:t.removeAttribute("rel")),i!==e.__title&&(i?t.title=i:t.removeAttribute("title")),!1}},{key:"sanitizeUrl",value:function(e){try{var t=new URL(e);if(!r.has(t.protocol))return"about:blank"}catch(n){}return e}},{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(l.prototype),"exportJSON",this).call(this)),{},{rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1})}},{key:"getURL",value:function(){return this.getLatest().__url}},{key:"setURL",value:function(e){this.getWritable().__url=e}},{key:"getTarget",value:function(){return this.getLatest().__target}},{key:"setTarget",value:function(e){this.getWritable().__target=e}},{key:"getRel",value:function(){return this.getLatest().__rel}},{key:"setRel",value:function(e){this.getWritable().__rel=e}},{key:"getTitle",value:function(){return this.getLatest().__title}},{key:"setTitle",value:function(e){this.getWritable().__title=e}},{key:"insertNewAfter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=this.getParentOrThrow().insertNewAfter(e,t),n.$isElementNode(e)?(t=s(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(t),t):null}},{key:"canInsertTextBefore",value:function(){return!1}},{key:"canInsertTextAfter",value:function(){return!1}},{key:"canBeEmpty",value:function(){return!1}},{key:"isInline",value:function(){return!0}},{key:"extractWithChild",value:function(e,t){if(!n.$isRangeSelection(t))return!1;e=t.anchor.getNode();var r=t.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<t.getTextContent().length}}],[{key:"getType",value:function(){return"link"}},{key:"clone",value:function(e){return new l(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}},{key:"importDOM",value:function(){return{a:function(){return{conversion:a,priority:1}}}}},{key:"importJSON",value:function(e){var t=s(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}}]),l}(n.ElementNode);function a(e){var n=null;if(t.isHTMLAnchorElement(e)){var r=e.textContent;null!==r&&""!==r&&(n=s(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:n}}function s(e,t){return n.$applyNodeReplacement(new i(e,t))}function l(e){return e instanceof i}var c=function(e){(0,h.Z)(r,e);var t=(0,m.Z)(r);function r(){return(0,v.Z)(this,r),t.apply(this,arguments)}return(0,g.Z)(r,[{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(r.prototype),"exportJSON",this).call(this)),{},{type:"autolink",version:1})}},{key:"insertNewAfter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=this.getParentOrThrow().insertNewAfter(e,t),n.$isElementNode(e)?(t=u(this.__url,{rel:this._rel,target:this.__target,title:this.__title}),e.append(t),t):null}}],[{key:"getType",value:function(){return"autolink"}},{key:"clone",value:function(e){return new r(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}},{key:"importJSON",value:function(e){var t=u(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}},{key:"importDOM",value:function(){return null}}]),r}(i);function u(e,t){return n.$applyNodeReplacement(new c(e,t))}var d=n.createCommand ("TOGGLE_LINK_COMMAND");function y(e,t){for(;null!==e&&null!==(e=e.getParent())&&!t(e););return e}e.$createAutoLinkNode=u,e.$createLinkNode=s,e.$isAutoLinkNode=function(e){return e instanceof c},e.$isLinkNode=l,e.AutoLinkNode=c,e.LinkNode=i,e.TOGGLE_LINK_COMMAND=d,e.toggleLink=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t,o=r.target,i=r.title,a=void 0===t.rel?"noreferrer":t.rel;if(t=n.$getSelection(),n.$isRangeSelection(t))if(t=t.extract(),null===e)t.forEach((function(e){if(l(e=e.getParent())){for(var t=e.getChildren(),n=0;n<t.length;n++)e.insertBefore(t[n]);e.remove()}}));else{if(1===t.length){var c=t[0];if(null!==(c=l(c)?c:y(c,l)))return c.setURL(e),void 0!==o&&c.setTarget(o),null!==a&&c.setRel(a),void(void 0!==i&&c.setTitle(i))}var u=null,d=null;t.forEach((function(t){var r=t.getParent();if(r!==d&&null!==r&&(!n.$isElementNode(t)||t.isInline()))if(l(r))d=r,r.setURL(e),void 0!==o&&r.setTarget(o),null!==a&&d.setRel(a),void 0!==i&&d.setTitle(i);else if(r.is(u)||(u=r,d=s(e,{rel:a,target:o}),l(r)?null===t.getPreviousSibling()?r.insertBefore(d):r.insertAfter(d):t.insertBefore(d)),l(t)){if(!t.is(d)){if(null!==d){r=t.getChildren();for(var c=0;c<r.length;c++)d.append(r[c])}t.remove()}}else null!==d&&d.append(t)}))}}}}),q=O({"../../../node_modules/@lexical/link/LexicalLink.js":function(e,t){var n=G();t.exports=n}}),K=O({"../../../node_modules/@lexical/react/LexicalComposerContext.prod.js":function(e){var t=(L(),N(D));var n=t.createContext(null);e.LexicalComposerContext=n,e.createLexicalComposerContext=function(e,t){var n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!==t&&void 0!==t?t:null!=n?n.getTheme():null}}},e.useLexicalComposerContext=function(){var e=t.useContext(n);return null==e&&function(e){var t=new URLSearchParams;t.append("code",e);for(var n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error("Minified Lexical error #".concat(e,"; visit https://lexical.dev/docs/error?").concat(t," for the full message or use the non-minified dev environment for full errors and additional helpful warnings."))}(8),e}}}),V=O({"../../../node_modules/@lexical/react/LexicalComposerContext.js":function(e,t){var n=K();t.exports=n}}),Y=O({"../../../node_modules/@lexical/react/LexicalComposer.prod.js":function(e){var t=V(),n=Z(),r=(L(),N(D)),o=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",i=o?r.useLayoutEffect:r.useEffect,a={tag:"history-merge"};e.LexicalComposer=function(e){var l=e.initialConfig,c=e.children,u=r.useMemo((function(){var e=l.theme,r=l.namespace,i=l.editor__DEPRECATED,s=l.nodes,c=l.onError,u=l.editorState,d=t.createLexicalComposerContext(null,e),f=i||null;if(null===f){var p=n.createEditor({editable:l.editable,namespace:r,nodes:s,onError:function(e){return c(e,p)},theme:e});(function(e,t){if(null!==t)if(void 0===t)e.update((function(){var t=n.$getRoot();if(t.isEmpty()){var r=n.$createParagraphNode();t.append(r),t=o?document.activeElement:null,(null!==n.$getSelection()||null!==t&&t===e.getRootElement())&&r.select()}}),a);else if(null!==t)switch(typeof t){case"string":var r=e.parseEditorState(t);e.setEditorState(r,a);break;case"object":e.setEditorState(t,a);break;case"function":e.update((function(){n.$getRoot().isEmpty()&&t(e)}),a)}})(p,u),f=p}return[f,d]}),[]);return i((function(){var e=l.editable;(0,s.Z)(u,1)[0].setEditable(void 0===e||e)}),[]),r.createElement(t.LexicalComposerContext.Provider,{value:u},c)}}}),X=O({"../../../node_modules/@lexical/react/LexicalComposer.js":function(e,t){var n=Y();t.exports=n}}),J=O({"../../../node_modules/@lexical/react/useLexicalEditable.prod.js":function(e,t){var n=V(),r=(L(),N(D)),o=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?r.useLayoutEffect:r.useEffect;function i(e){return{initialValueFn:function(){return e.isEditable()},subscribe:function(t){return e.registerEditableListener(t)}}}t.exports=function(){return function(e){var t=n.useLexicalComposerContext(),i=(0,s.Z)(t,1)[0],a=r.useMemo((function(){return e(i)}),[i,e]),l=r.useRef(a.initialValueFn()),c=r.useState(l.current),u=(0,s.Z)(c,2),d=u[0],f=u[1];return o((function(){var e=a.initialValueFn,t=a.subscribe,n=e();return l.current!==n&&(l.current=n,f(n)),t((function(e){l.current=e,f(e)}))}),[a,e]),d}(i)}}}),Q=O({"../../../node_modules/@lexical/react/useLexicalEditable.js":function(e,t){var n=J();t.exports=n}}),ee=O({"../../../node_modules/@lexical/text/LexicalText.prod.js":function(e){var t=Z();function n(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!e&&(e=r(),t&&(e=e.trim()),""===e)}function r(){return t.$getRoot().getTextContent()}function o(e){if(!n(e,!1))return!1;var r=(e=t.$getRoot().getChildren()).length;if(1<r)return!1;for(var o=0;o<r;o++){var i=e[o];if(t.$isDecoratorNode(i))return!1;if(t.$isElementNode(i)){if(!t.$isParagraphNode(i)||0!==i.__indent)return!1;for(var a=(i=i.getChildren()).length,s=0;s<a;s++)if(!t.$isTextNode(i[o]))return!1}}return!0}e.$canShowPlaceholder=o,e.$canShowPlaceholderCurry=function(e){return function(){return o(e)}},e.$findTextIntersectionFromCharacters=function(e,n){var r=e.getFirstChild();e=0;e:for(;null!==r;){if(t.$isElementNode(r)){var o=r.getFirstChild();if(null!==o){r=o;continue}}else if(t.$isTextNode(r)){if(e+(o=r.getTextContentSize())>n)return{node:r,offset:n-e};e+=o}if(null===(o=r.getNextSibling())){for(r=r.getParent();null!==r;){if(null!==(o=r.getNextSibling())){r=o;continue e}r=r.getParent()}break}r=o}return null},e.$isRootTextContentEmpty=n,e.$isRootTextContentEmptyCurry=function(e,t){return function(){return n(e,t)}},e.$rootTextContent=r,e.registerLexicalTextEntity=function(e,n,r,o){var i=function(e){var n=t.$createTextNode(e.getTextContent());n.setFormat(e.getFormat()),e.replace(n)},a=e.registerNodeTransform(t.TextNode,(function(e){if(e.isSimpleText()){var a=e.getPreviousSibling(),l=e.getTextContent(),c=e;if(t.$isTextNode(a)){var u=a.getTextContent(),d=n(u+l);if(a instanceof r){if(null===d||0!==a.getLatest().__mode)return void i(a);if(0<(d=d.end-u.length))return c=u+(c=l.slice(0,d)),a.select(),a.setTextContent(c),void(d===l.length?e.remove():(a=l.slice(d),e.setTextContent(a)))}else if(null===d||d.start<u.length)return}for(;;){var f,p,h,m;if(l=d=null===(e=n(l))?"":l.slice(e.end),""===d){if(u=c.getNextSibling(),t.$isTextNode(u)){if(d=c.getTextContent()+u.getTextContent(),null===(d=n(d))){u instanceof r?i(u):u.markDirty();break}if(0!==d.start)break}}else if(null!==(u=n(d))&&0===u.start)break;if(null===e)break;if(0!==e.start||!t.$isTextNode(a)||!a.isTextEntity()){var v=void 0;if(0===e.start?(f=c.splitText(e.end),v=(p=(0,s.Z)(f,2))[0],c=p[1]):(h=c.splitText(e.start,e.end),v=(m=(0,s.Z)(h,3))[1],c=m[2]),(e=o(v)).setFormat(v.getFormat()),v.replace(e),null==c)break}}}}));return e=e.registerNodeTransform(r,(function(e){var o=e.getTextContent(),a=n(o);null===a||0!==a.start?i(e):o.length>a.end?e.splitText(a.end):(o=e.getPreviousSibling(),t.$isTextNode(o)&&o.isTextEntity()&&(i(o),i(e)),o=e.getNextSibling(),t.$isTextNode(o)&&o.isTextEntity()&&(i(o),e instanceof r&&i(e)))})),[a,e]}}}),te=O({"../../../node_modules/@lexical/text/LexicalText.js":function(e,t){var n=ee();t.exports=n}}),ne={};P(ne,{default:function(){return w}});var re,oe,ie,ae,se,le,ce=B({"esm-externals:react-dom":function(){A(ne,w)}}),ue=O({"../../../node_modules/@lexical/dragon/LexicalDragon.prod.js":function(e){var t=Z();e.registerDragonSupport=function(e){var n=window.location.origin,r=function(r){if(r.origin===n){var o=e.getRootElement();if(document.activeElement===o&&"string"==typeof(o=r.data)){try{var i=JSON.parse(o)}catch(h){return}if(i&&"nuanria_messaging"===i.protocol&&"request"===i.type&&(i=i.payload)&&"makeChanges"===i.functionId&&(i=i.args)){var a=i,l=(0,s.Z)(a,5),c=l[0],u=l[1],d=l[2],f=l[3],p=l[4];e.update((function(){var e=t.$getSelection();if(t.$isRangeSelection(e)){var n=e.anchor,o=n.getNode(),i=0,a=0;t.$isTextNode(o)&&0<=c&&0<=u&&(i=c,a=c+u,e.setTextNodeRange(o,i,o,a)),(i!==a||""!==d)&&(e.insertRawText(d),o=n.getNode()),t.$isTextNode(o)&&(a=f+p,i=(i=f)>(n=o.getTextContentSize())?n:i,a=a>n?n:a,e.setTextNodeRange(o,i,o,a)),r.stopImmediatePropagation()}}))}}}};return window.addEventListener("message",r,!0),function(){window.removeEventListener("message",r,!0)}}}}),de=O({"../../../node_modules/@lexical/dragon/LexicalDragon.js":function(e,t){var n=ue();t.exports=n}}),fe=O({"../../../node_modules/@lexical/html/LexicalHtml.prod.js":function(e){var t=H(),n=Z();function o(e,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=null==a||r.isSelected(a),l=n.$isElementNode(r)&&r.excludeFromCopy("html"),c=r;null!==a&&(c=t.$cloneWithProperties(r),c=n.$isTextNode(c)&&null!=a?t.$sliceSelectedTextNodeContent(a,c):c);var u=n.$isElementNode(c)?c.getChildren():[],d=c.exportDOM(e),f=d.element,p=d.after;if(!f)return!1;for(var h=document.createDocumentFragment(),m=0;m<u.length;m++){var v=u[m],g=o(e,v,h,a);!s&&n.$isElementNode(r)&&g&&r.extractWithChild(v,a,"html")&&(s=!0)}return s&&!l?(f.append(h),i.append(f),p&&(e=p.call(c,f))&&f.replaceWith(e)):i.append(h),s}var i=new Set(["STYLE","SCRIPT"]);function a(e,t){var o,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map,u=arguments.length>3?arguments[3]:void 0,d=[];if(i.has(e.nodeName))return d;var f,p=null,h=e,m=h.nodeName,v=t._htmlConversions.get(m.toLowerCase());if(m=null,void 0!==v){var g,y=(0,l.Z)(v);try{for(y.s();!(g=y.n()).done;)null!==(v=(f=g.value)(e))&&(null===m||m.priority<v.priority)&&(m=v)}catch(E){y.e(E)}finally{y.f()}}if(m=(f=null!==m?m.conversion:null)?f(e):null,f=null,null!==m){if(f=m.after,v=m.node,null!==(p=Array.isArray(v)?v[v.length-1]:v)){var b,x,w=(0,l.Z)(c);try{for(w.s();!(x=w.n()).done;){var k=(0,s.Z)(x.value,2),S=k[1];if(!(p=S(p,u)))break}}catch(E){w.e(E)}finally{w.f()}p&&(b=d).push.apply(b,(0,r.Z)(Array.isArray(v)?v:[p]))}null!=m.forChild&&c.set(e.nodeName,m.forChild)}for(e=e.childNodes,u=[],S=0;S<e.length;S++){var _;(_=u).push.apply(_,(0,r.Z)(a(e[S],t,new Map(c),p)))}return null!=f&&(u=f(u)),null==p?d=d.concat(u):n.$isElementNode(p)&&(o=p).append.apply(o,(0,r.Z)(u)),d}e.$generateHtmlFromNodes=function(e,t){if(typeof document>"u"||typeof window>"u")throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");for(var r=document.createElement("div"),i=n.$getRoot().getChildren(),a=0;a<i.length;a++)o(e,i[a],r,t);return r.innerHTML},e.$generateNodesFromDOM=function(e,t){t=t.body?t.body.childNodes:[];for(var n=[],r=0;r<t.length;r++){var o=t[r];i.has(o.nodeName)||null!==(o=a(o,e))&&(n=n.concat(o))}return n}}}),pe=O({"../../../node_modules/@lexical/html/LexicalHtml.js":function(e,t){var n=fe();t.exports=n}}),he=O({"../../../node_modules/@lexical/clipboard/LexicalClipboard.prod.js":function(e){var t=pe(),n=H(),r=$(),o=Z();function i(e){var t=new URLSearchParams;t.append("code",e);for(var n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error("Minified Lexical error #".concat(e,"; visit https://lexical.dev/docs/error?").concat(t," for the full message or use the non-minified dev environment for full errors and additional helpful warnings."))}var a=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s(e){var n=o.$getSelection();if(null==n)throw Error("Expected valid LexicalSelection");return o.$isRangeSelection(n)&&n.isCollapsed()||0===n.getNodes().length?"":t.$generateHtmlFromNodes(e,n)}function l(e){var t=o.$getSelection();if(null==t)throw Error("Expected valid LexicalSelection");return o.$isRangeSelection(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(p(e,t))}function c(e,t,n){(o.DEPRECATED_$isGridSelection(n)||null!==r.$findMatchingParent(n.anchor.getNode(),(function(e){return o.DEPRECATED_$isGridCellNode(e)}))&&null!==r.$findMatchingParent(n.focus.getNode(),(function(e){return o.DEPRECATED_$isGridCellNode(e)})))&&1===t.length&&o.DEPRECATED_$isGridNode(t[0])?function(e,t,n,a){1===e.length&&o.DEPRECATED_$isGridNode(e[0])||i(42);var s=e[0];e=s.getChildren(),n=s.getFirstChildOrThrow().getChildrenSize();var l=s.getChildrenSize(),c=r.$findMatchingParent(t.anchor.getNode(),(function(e){return o.DEPRECATED_$isGridCellNode(e)}));t=(s=c&&r.$findMatchingParent(c,(function(e){return o.DEPRECATED_$isGridRowNode(e)})))&&r.$findMatchingParent(s,(function(e){return o.DEPRECATED_$isGridNode(e)})),o.DEPRECATED_$isGridCellNode(c)&&o.DEPRECATED_$isGridRowNode(s)&&o.DEPRECATED_$isGridNode(t)||i(43);var u,d,f=s.getIndexWithinParent(),p=Math.min(t.getChildrenSize()-1,f+l-1);l=c.getIndexWithinParent(),c=Math.min(s.getChildrenSize()-1,l+n-1),n=Math.min(l,c),s=Math.min(f,p),l=Math.max(l,c),f=Math.max(f,p),p=t.getChildren(),c=0;for(var h=s;h<=f;h++){var m=p[h];o.DEPRECATED_$isGridRowNode(m)||i(24);var v=e[c];o.DEPRECATED_$isGridRowNode(v)||i(24),m=m.getChildren(),v=v.getChildren();for(var g=0,y=function(e){var t=m[e];o.DEPRECATED_$isGridCellNode(t)||i(25);var r=v[g];o.DEPRECATED_$isGridCellNode(r)||i(25),h===s&&e===n?u=t.getKey():h===f&&e===l&&(d=t.getKey());var a=t.getChildren();r.getChildren().forEach((function(e){o.$isTextNode(e)&&o.$createParagraphNode().append(e),t.append(e)})),a.forEach((function(e){return e.remove()})),g++},b=n;b<=l;b++)y(b);c++}u&&d&&((e=o.DEPRECATED_$createGridSelection()).set(t.getKey(),u,d),o.$setSelection(e),a.dispatchCommand (o.SELECTION_CHANGE_COMMAND,void 0))}(t,n,!1,e):function(e,t){for(var n,r=[],a=null,s=0;s<e.length;s++){var l=e[s],c=o.$isLineBreakNode(l);if(c||o.$isDecoratorNode(l)&&l.isInline()||o.$isElementNode(l)&&l.isInline()||o.$isTextNode(l)||l.isParentRequired()){if(null===a&&(a=l.createParentElementNode(),r.push(a),c))continue;null!==a&&a.append(l)}else r.push(l),a=null}o.$isRangeSelection(t)?t.insertNodes(r):o.DEPRECATED_$isGridSelection(t)&&(e=t.anchor.getNode(),o.DEPRECATED_$isGridCellNode(e)||i(41),(n=e).append.apply(n,r))}(t,n)}function f(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=null==t||r.isSelected(t),l=o.$isElementNode(r)&&r.excludeFromCopy("html"),c=r;if(null!==t){var u=n.$cloneWithProperties(r);c=u=o.$isTextNode(u)&&null!=t?n.$sliceSelectedTextNodeContent(t,u):u}var d=o.$isElementNode(c)?c.getChildren():[],p=c;u=p.exportJSON();var h=p.constructor;u.type!==h.getType()&&i(58,h.name);var m=u.children;for(o.$isElementNode(p)&&(Array.isArray(m)||i(59,h.name)),o.$isTextNode(c)&&(0<(c=c.__text).length?u.text=c:s=!1),c=0;c<d.length;c++)h=f(e,t,p=d[c],u.children),!s&&o.$isElementNode(r)&&h&&r.extractWithChild(p,t,"clone")&&(s=!0);if(s&&!l)a.push(u);else if(Array.isArray(u.children))for(e=0;e<u.children.length;e++)a.push(u.children[e]);return s}function p(e,t){for(var n=[],r=o.$getRoot().getChildren(),i=0;i<r.length;i++)f(e,t,r[i],n);return{namespace:e._config.namespace,nodes:n}}function h(e){for(var t=[],r=0;r<e.length;r++){var i=o.$parseSerializedNode(e[r]);o.$isTextNode(i)&&n.$addNodeStyle(i),t.push(i)}return t}var m=null;function v(e,t){var n=a?(e._window||window).getSelection():null;if(!n)return!1;var r=n.anchorNode;if(n=n.focusNode,null!==r&&null!==n&&!o.isSelectionWithinEditor(e,r,n)||(t.preventDefault(),t=t.clipboardData,r=o.$getSelection(),null===t||null===r))return!1;n=s(e),e=l(e);var i="";return null!==r&&(i=r.getTextContent()),null!==n&&t.setData("text/html",n),null!==e&&t.setData("application/x-lexical-editor",e),t.setData("text/plain",i),!0}e.$generateJSONFromSelectedNodes=p,e.$generateNodesFromSerializedNodes=h,e.$getHtmlContent=s,e.$getLexicalContent=l,e.$insertDataTransferForPlainText=function(e,t){null!=(e=e.getData("text/plain")||e.getData("text/uri-list"))&&t.insertRawText(e)},e.$insertDataTransferForRichText=function(e,n,r){var i=e.getData("application/x-lexical-editor");if(i)try{var a=JSON.parse(i);if(a.namespace===r._config.namespace&&Array.isArray(a.nodes))return c(r,h(a.nodes),n)}catch(u){}if(i=e.getData("text/html"))try{var s=(new DOMParser).parseFromString(i,"text/html"),l=t.$generateNodesFromDOM(r,s);return c(r,l,n)}catch(d){}if(null!=(e=e.getData("text/plain")||e.getData("text/uri-list")))if(o.$isRangeSelection(n))for(r=(e=e.split(/(\r?\n|\t)/)).length,s=0;s<r;s++)"\n"===(l=e[s])||"\r\n"===l?n.insertParagraph():"\t"===l?n.insertNodes([o.$createTabNode()]):n.insertText(l);else n.insertRawText(e)},e.$insertGeneratedNodes=c,e.copyToClipboard=function(){var e=(0,d.Z)((0,u.Z)().mark((function e(t,n){var i,s,l,c;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===m){e.next=2;break}return e.abrupt("return",!1);case 2:if(null===n){e.next=4;break}return e.abrupt("return",new Promise((function(e){t.update((function(){e(v(t,n))}))})));case 4:if(i=t.getRootElement(),s=null==t._window?window.document:t._window.document,l=a?(t._window||window).getSelection():null,null!==i&&null!==l){e.next=8;break}return e.abrupt("return",!1);case 8:return c=s.createElement("span"),e.abrupt("return",(c.style.cssText="position: fixed; top: -1000px;",c.append(s.createTextNode("#")),i.append(c),(i=new Range).setStart(c,0),i.setEnd(c,1),l.removeAllRanges(),l.addRange(i),new Promise((function(e){var n=t.registerCommand (o.COPY_COMMAND,(function(o){return r.objectKlassEquals(o,ClipboardEvent)&&(n(),null!==m&&(window.clearTimeout(m),m=null),e(v(t,o))),!0}),o.COMMAND_PRIORITY_CRITICAL);m=window.setTimeout((function(){n(),m=null,e(!1)}),50),s.execCommand ("copy"),c.remove()}))));case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}}),me=O({"../../../node_modules/@lexical/clipboard/LexicalClipboard.js":function(e,t){var n=he();t.exports=n}}),ve=O({"../../../node_modules/@lexical/plain-text/LexicalPlainText.prod.js":function(e){var t=me(),n=H(),r=$(),o=Z(),i=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",a=i&&"documentMode"in document?document.documentMode:null;i&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),i&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);var s=!(!i||!("InputEvent"in window)||a)&&"getTargetRanges"in new window.InputEvent("input"),l=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),c=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,u=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),d=i&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!u;function f(e,n){n.update((function(){if(null!==e){var r=e instanceof KeyboardEvent?null:e.clipboardData,i=o.$getSelection();if(null!==i&&null!=r){e.preventDefault();var a=t.$getHtmlContent(n);null!==a&&r.setData("text/html",a),r.setData("text/plain",i.getTextContent())}}}))}e.registerPlainText=function(e){return r.mergeRegister(e.registerCommand (o.DELETE_CHARACTER_COMMAND,(function(e){var t=o.$getSelection();return!!o.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.DELETE_WORD_COMMAND,(function(e){var t=o.$getSelection();return!!o.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.DELETE_LINE_COMMAND,(function(e){var t=o.$getSelection();return!!o.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.CONTROLLED_TEXT_INSERTION_COMMAND,(function(e){var n=o.$getSelection();if(!o.$isRangeSelection(n))return!1;if("string"==typeof e)n.insertText(e);else{var r=e.dataTransfer;null!=r?t.$insertDataTransferForPlainText(r,n):(e=e.data)&&n.insertText(e)}return!0}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.REMOVE_TEXT_COMMAND,(function(){var e=o.$getSelection();return!!o.$isRangeSelection(e)&&(e.removeText(),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.INSERT_LINE_BREAK_COMMAND,(function(e){var t=o.$getSelection();return!!o.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.INSERT_PARAGRAPH_COMMAND,(function(){var e=o.$getSelection();return!!o.$isRangeSelection(e)&&(e.insertLineBreak(),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.KEY_ARROW_LEFT_COMMAND,(function(e){var t=o.$getSelection();if(!o.$isRangeSelection(t))return!1;var r=e.shiftKey;return!!n.$shouldOverrideDefaultCharacterSelection(t,!0)&&(e.preventDefault(),n.$moveCharacter(t,r,!0),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.KEY_ARROW_RIGHT_COMMAND,(function(e){var t=o.$getSelection();if(!o.$isRangeSelection(t))return!1;var r=e.shiftKey;return!!n.$shouldOverrideDefaultCharacterSelection(t,!1)&&(e.preventDefault(),n.$moveCharacter(t,r,!1),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.KEY_BACKSPACE_COMMAND,(function(t){var n=o.$getSelection();return!!o.$isRangeSelection(n)&&(t.preventDefault(),e.dispatchCommand (o.DELETE_CHARACTER_COMMAND,!0))}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.KEY_DELETE_COMMAND,(function(t){var n=o.$getSelection();return!!o.$isRangeSelection(n)&&(t.preventDefault(),e.dispatchCommand (o.DELETE_CHARACTER_COMMAND,!1))}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.KEY_ENTER_COMMAND,(function(t){var n=o.$getSelection();if(!o.$isRangeSelection(n))return!1;if(null!==t){if((c||l||d)&&s)return!1;t.preventDefault()}return e.dispatchCommand (o.INSERT_LINE_BREAK_COMMAND,!1)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.SELECT_ALL_COMMAND,(function(){return o.$selectAll(),!0}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.COPY_COMMAND,(function(t){var n=o.$getSelection();return!!o.$isRangeSelection(n)&&(f(t,e),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.CUT_COMMAND,(function(t){var n=o.$getSelection();return!!o.$isRangeSelection(n)&&(function(e,t){f(e,t),t.update((function(){var e=o.$getSelection();o.$isRangeSelection(e)&&e.removeText()}))}(t,e),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.PASTE_COMMAND,(function(n){var r=o.$getSelection();return!!o.$isRangeSelection(r)&&(function(e,n){e.preventDefault(),n.update((function(){var n=o.$getSelection(),r=e.clipboardData;null!=r&&o.$isRangeSelection(n)&&t.$insertDataTransferForPlainText(r,n)}),{tag:"paste"})}(n,e),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.DROP_COMMAND,(function(e){var t=o.$getSelection();return!!o.$isRangeSelection(t)&&(e.preventDefault(),!0)}),o.COMMAND_PRIORITY_EDITOR),e.registerCommand (o.DRAGSTART_COMMAND,(function(e){var t=o.$getSelection();return!!o.$isRangeSelection(t)&&(e.preventDefault(),!0)}),o.COMMAND_PRIORITY_EDITOR))}}}),ge=O({"../../../node_modules/@lexical/plain-text/LexicalPlainText.js":function(e,t){var n=ve();t.exports=n}}),ye=O({"../../../node_modules/@lexical/react/LexicalPlainTextPlugin.prod.js":function(e){var t=V(),n=Q(),r=(L(),N(D)),o=te(),i=$(),a=(ce(),N(ne)),l=de(),c=ge(),u=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?r.useLayoutEffect:r.useEffect;function d(e){return e.getEditorState().read(o.$canShowPlaceholderCurry(e.isComposing()))}function f(e){var o=e.content,a=t.useLexicalComposerContext(),l=(0,s.Z)(a,1)[0];l=function(e){var t=r.useState((function(){return d(e)})),n=(0,s.Z)(t,2),o=n[0],a=n[1];return u((function(){function t(){var t=d(e);a(t)}return t(),i.mergeRegister(e.registerUpdateListener((function(){t()})),e.registerEditableListener((function(){t()})))}),[e]),o}(l);var c=n();return l?"function"==typeof o?o(c):o:null}e.PlainTextPlugin=function(e){var n=e.contentEditable,o=e.placeholder,d=e.ErrorBoundary,p=t.useLexicalComposerContext(),h=(0,s.Z)(p,1)[0];return d=function(e,t){var n=r.useState((function(){return e.getDecorators()})),o=(0,s.Z)(n,2),i=o[0],l=o[1];return u((function(){return e.registerDecoratorListener((function(e){a.flushSync((function(){l(e)}))}))}),[e]),r.useEffect((function(){l(e.getDecorators())}),[e]),r.useMemo((function(){for(var n=[],o=Object.keys(i),s=0;s<o.length;s++){var l=o[s],c=r.createElement(t,{onError:function(t){return e._onError(t)}},r.createElement(r.Suspense,{fallback:null},i[l])),u=e.getElementByKey(l);null!==u&&n.push(a.createPortal(c,u,l))}return n}),[t,i,e])}(h,d),function(e){u((function(){return i.mergeRegister(c.registerPlainText(e),l.registerDragonSupport(e))}),[e])}(h),r.createElement(r.Fragment,null,n,r.createElement(f,{content:o}),d)}}}),be=O({"../../../node_modules/@lexical/react/LexicalPlainTextPlugin.js":function(e,t){var n=ye();t.exports=n}}),xe=O({"../../../node_modules/@lexical/react/LexicalContentEditable.prod.js":function(e){var t=V(),n=(L(),N(D));function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}var o=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?n.useLayoutEffect:n.useEffect;e.ContentEditable=function(e){var a=e.ariaActiveDescendant,l=e.ariaAutoComplete,c=e.ariaControls,u=e.ariaDescribedBy,d=e.ariaExpanded,f=e.ariaLabel,p=e.ariaLabelledBy,h=e.ariaMultiline,m=e.ariaOwns,v=e.ariaRequired,g=e.autoCapitalize,y=e.className,b=e.id,x=e.role,w=void 0===x?"textbox":x,S=e.spellCheck,_=void 0===S||S,E=e.style,C=e.tabIndex,T=e["data-testid"],I=(0,i.Z)(e,k),B=t.useLexicalComposerContext(),O=(0,s.Z)(B,1)[0],P=n.useState(!1),R=(0,s.Z)(P,2),A=R[0],M=R[1],N=n.useCallback((function(e){O.setRootElement(e)}),[O]);return o((function(){return M(O.isEditable()),O.registerEditableListener((function(e){M(e)}))}),[O]),n.createElement("div",r({},I,{"aria-activedescendant":A?a:void 0,"aria-autocomplete":A?l:"none","aria-controls":A?c:void 0,"aria-describedby":u,"aria-expanded":A&&"combobox"===w?!!d:void 0,"aria-label":f,"aria-labelledby":p,"aria-multiline":h,"aria-owns":A?m:void 0,"aria-readonly":!A||void 0,"aria-required":v,autoCapitalize:g,className:y,contentEditable:A,"data-testid":T,id:b,ref:N,role:w,spellCheck:_,style:E,tabIndex:C}))}}}),we=O({"../../../node_modules/@lexical/react/LexicalContentEditable.js":function(e,t){var n=xe();t.exports=n}}),ke=O({"../../../node_modules/@lexical/history/LexicalHistory.prod.js":function(e){var t=$(),n=Z();function r(e,t){var r=Date.now(),o=0;return function(i,a,c,u,d,f){var p=Date.now();if(f.has("historic"))return o=0,r=p,2;var h=function(e,t,r,o,i){if(null===e||0===r.size&&0===o.size&&!i)return 0;var a=t._selection,c=e._selection;if(i)return 1;if(!(n.$isRangeSelection(a)&&n.$isRangeSelection(c)&&c.isCollapsed()&&a.isCollapsed()))return 0;i=t._nodeMap;var u,d=[],f=(0,l.Z)(r);try{for(f.s();!(u=f.n()).done;){var p=u.value;void 0!==(r=i.get(p))&&d.push(r)}}catch(y){f.e(y)}finally{f.f()}var h,m=(0,l.Z)(o);try{for(m.s();!(h=m.n()).done;){var v=(0,s.Z)(h.value,2),g=v[0];v[1]&&(void 0===(o=i.get(g))||n.$isRootNode(o)||d.push(o))}}catch(y){m.e(y)}finally{m.f()}return 0===d.length?0:1<d.length?(t=(o=t._nodeMap).get(a.anchor.key),c=o.get(c.anchor.key),t&&c&&!e._nodeMap.has(t.__key)&&n.$isTextNode(t)&&1===t.__text.length&&1===a.anchor.offset?2:0):(t=d[0],e=e._nodeMap.get(t.__key),n.$isTextNode(e)&&n.$isTextNode(t)&&e.__mode===t.__mode&&(e=e.__text)!==(t=t.__text)&&(a=a.anchor,c=c.anchor,a.key===c.key&&"text"===a.type)?(a=a.offset,c=c.offset,1===(e=t.length-e.length)&&c===a-1?2:-1===e&&c===a+1?3:-1===e&&c===a?4:0):0)}(i,a,u,d,e.isComposing()),m=function(){var s=null===c||c.editor===e,l=f.has("history-push");if(!l&&s&&f.has("history-merge"))return 0;if(null===i)return 1;var m=a._selection;if(!(0<u.size||0<d.size))return null!==m?0:2;if(!1===l&&0!==h&&h===o&&p<r+t&&s)return 0;if(1===u.size){l=Array.from(u)[0],s=i._nodeMap.get(l),l=a._nodeMap.get(l),m=i._selection;var v=a._selection,g=!1;if(n.$isRangeSelection(m)&&n.$isRangeSelection(v)&&(g="element"===m.anchor.type&&"element"===m.focus.type&&"text"===v.anchor.type&&"text"===v.focus.type),s=!(g||!n.$isTextNode(s)||!n.$isTextNode(l))&&(s.__type===l.__type&&s.__text===l.__text&&s.__mode===l.__mode&&s.__detail===l.__detail&&s.__style===l.__style&&s.__format===l.__format&&s.__parent===l.__parent))return 0}return 1}();return r=p,o=h,m}}e.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},e.registerHistory=function(e,i,a){var s=r(e,a);a=function(t){var r=t.editorState,a=t.prevEditorState,l=t.dirtyLeaves,c=t.dirtyElements,u=t.tags,d=i.current,f=i.redoStack,p=i.undoStack,h=null===d?null:d.editorState;if(null===d||r!==h){if(1===(a=s(a,r,d,l,c,u)))0!==f.length&&(i.redoStack=[],e.dispatchCommand (n.CAN_REDO_COMMAND,!1)),null!==d&&(p.push((0,o.Z)({},d)),e.dispatchCommand (n.CAN_UNDO_COMMAND,!0));else if(2===a)return;i.current={editor:e,editorState:r}}};var l=t.mergeRegister(e.registerCommand (n.UNDO_COMMAND,(function(){var t=i.redoStack,r=i.undoStack;if(0!==r.length){var o=i.current,a=r.pop();null!==o&&(t.push(o),e.dispatchCommand (n.CAN_REDO_COMMAND,!0)),0===r.length&&e.dispatchCommand (n.CAN_UNDO_COMMAND,!1),i.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:"historic"})}return!0}),n.COMMAND_PRIORITY_EDITOR),e.registerCommand (n.REDO_COMMAND,(function(){var t=i.redoStack,r=i.undoStack;if(0!==t.length){var o=i.current;null!==o&&(r.push(o),e.dispatchCommand (n.CAN_UNDO_COMMAND,!0)),r=t.pop(),0===t.length&&e.dispatchCommand (n.CAN_REDO_COMMAND,!1),i.current=r||null,r&&r.editor.setEditorState(r.editorState,{tag:"historic"})}return!0}),n.COMMAND_PRIORITY_EDITOR),e.registerCommand (n.CLEAR_EDITOR_COMMAND,(function(){return i.undoStack=[],i.redoStack=[],i.current=null,!1}),n.COMMAND_PRIORITY_EDITOR),e.registerCommand (n.CLEAR_HISTORY_COMMAND,(function(){return i.undoStack=[],i.redoStack=[],i.current=null,e.dispatchCommand (n.CAN_REDO_COMMAND,!1),e.dispatchCommand (n.CAN_UNDO_COMMAND,!1),!0}),n.COMMAND_PRIORITY_EDITOR),e.registerUpdateListener(a)),c=e.registerUpdateListener(a);return function(){l(),c()}}}}),Se=O({"../../../node_modules/@lexical/history/LexicalHistory.js":function(e,t){var n=ke();t.exports=n}}),_e=O({"../../../node_modules/@lexical/react/LexicalHistoryPlugin.prod.js":function(e){var t=V(),n=Se(),r=(L(),N(D));e.createEmptyHistoryState=n.createEmptyHistoryState,e.HistoryPlugin=function(e){var o=e.externalHistoryState,i=t.useLexicalComposerContext();return function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=r.useMemo((function(){return t||n.createEmptyHistoryState()}),[t]);r.useEffect((function(){return n.registerHistory(e,i,o)}),[o,e,i])}((0,s.Z)(i,1)[0],o),null}}}),Ee=O({"../../../node_modules/@lexical/react/LexicalHistoryPlugin.js":function(e,t){var n=_e();t.exports=n}}),Ce=O({"../../../node_modules/@lexical/rich-text/LexicalRichText.prod.js":function(e){var t=me(),n=H(),r=$(),i=Z();function a(e,t){return typeof document.caretRangeFromPoint<"u"?null===(e=document.caretRangeFromPoint(e,t))?null:{node:e.startContainer,offset:e.startOffset}:"undefined"!==document.caretPositionFromPoint?null===(e=document.caretPositionFromPoint(e,t))?null:{node:e.offsetNode,offset:e.offset}:null}var c=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=c&&"documentMode"in document?document.documentMode:null;c&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),c&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);var b=!(!c||!("InputEvent"in window)||y)&&"getTargetRanges"in new window.InputEvent("input"),x=c&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),w=c&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,k=c&&/^(?=.*Chrome).*/i.test(navigator.userAgent),S=c&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!k,_=i.createCommand ("DRAG_DROP_PASTE_FILE"),E=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e){return(0,v.Z)(this,n),t.call(this,e)}return(0,g.Z)(n,[{key:"createDOM",value:function(e){var t=document.createElement("blockquote");return r.addClassNamesToElement(t,e.theme.quote),t}},{key:"updateDOM",value:function(){return!1}},{key:"exportDOM",value:function(e){if((e=(0,f.Z)((0,p.Z)(n.prototype),"exportDOM",this).call(this,e).element)&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}},{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(n.prototype),"exportJSON",this).call(this)),{},{type:"quote"})}},{key:"insertNewAfter",value:function(e,t){e=i.$createParagraphNode();var n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}},{key:"collapseAtStart",value:function(){var e=i.$createParagraphNode();return this.getChildren().forEach((function(t){return e.append(t)})),this.replace(e),!0}}],[{key:"getType",value:function(){return"quote"}},{key:"clone",value:function(e){return new n(e.__key)}},{key:"importDOM",value:function(){return{blockquote:function(){return{conversion:O,priority:0}}}}},{key:"importJSON",value:function(e){var t=C();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}}]),n}(i.ElementNode);function C(){return i.$applyNodeReplacement(new E)}var T=function(e){(0,h.Z)(n,e);var t=(0,m.Z)(n);function n(e,r){var o;return(0,v.Z)(this,n),(o=t.call(this,r)).__tag=e,o}return(0,g.Z)(n,[{key:"getTag",value:function(){return this.__tag}},{key:"createDOM",value:function(e){var t=this.__tag,n=document.createElement(t);return void 0!==(e=e.theme.heading)&&r.addClassNamesToElement(n,e[t]),n}},{key:"updateDOM",value:function(){return!1}},{key:"exportDOM",value:function(e){if((e=(0,f.Z)((0,p.Z)(n.prototype),"exportDOM",this).call(this,e).element)&&this.isEmpty()&&e.append(document.createElement("br")),e){var t=this.getFormatType();e.style.textAlign=t,(t=this.getDirection())&&(e.dir=t)}return{element:e}}},{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(n.prototype),"exportJSON",this).call(this)),{},{tag:this.getTag(),type:"heading",version:1})}},{key:"insertNewAfter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e=0<(e=e?e.anchor.offset:0)&&e<this.getTextContentSize()?P(this.getTag()):i.$createParagraphNode();var n=this.getDirection();return e.setDirection(n),this.insertAfter(e,t),e}},{key:"collapseAtStart",value:function(){var e=this.isEmpty()?i.$createParagraphNode():P(this.getTag());return this.getChildren().forEach((function(t){return e.append(t)})),this.replace(e),!0}},{key:"extractWithChild",value:function(){return!0}}],[{key:"getType",value:function(){return"heading"}},{key:"clone",value:function(e){return new n(e.__tag,e.__key)}},{key:"importDOM",value:function(){return{h1:function(){return{conversion:B,priority:0}},h2:function(){return{conversion:B,priority:0}},h3:function(){return{conversion:B,priority:0}},h4:function(){return{conversion:B,priority:0}},h5:function(){return{conversion:B,priority:0}},h6:function(){return{conversion:B,priority:0}},p:function(e){return null!==(e=e.firstChild)&&I(e)?{conversion:function(){return{node:null}},priority:3}:null},span:function(e){return I(e)?{conversion:function(){return{node:P("h1")}},priority:3}:null}}}},{key:"importJSON",value:function(e){var t=P(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}}]),n}(i.ElementNode);function I(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function B(e){var t=e.nodeName.toLowerCase(),n=null;return("h1"===t||"h2"===t||"h3"===t||"h4"===t||"h5"===t||"h6"===t)&&(n=P(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function O(e){var t=C();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function P(e){return i.$applyNodeReplacement(new T(e))}function R(){return R=(0,d.Z)((0,u.Z)().mark((function e(n,o){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.copyToClipboard(o,r.objectKlassEquals(n,ClipboardEvent)?n:null);case 2:o.update((function(){var e=i.$getSelection();i.$isRangeSelection(e)?e.removeText():i.$isNodeSelection(e)&&e.getNodes().forEach((function(e){return e.remove()}))}));case 3:case"end":return e.stop()}}),e)}))),R.apply(this,arguments)}function A(e){var t=null;if(e instanceof DragEvent?t=e.dataTransfer:e instanceof ClipboardEvent&&(t=e.clipboardData),null===t)return[!1,[],!1];var n=t.types;return e=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[e,Array.from(t.files),n]}function M(e){var t=i.$getSelection();if(!i.$isRangeSelection(t))return!1;var n=new Set;t=t.getNodes();for(var o=0;o<t.length;o++){var a=t[o],s=a.getKey();n.has(s)||(s=(a=r.$getNearestBlockElementAncestorOrThrow(a)).getKey(),a.canIndent()&&!n.has(s)&&(n.add(s),e(a)))}return 0<n.size}function N(e){return e=i.$getNearestNodeFromDOMNode(e),i.$isDecoratorNode(e)}e.$createHeadingNode=P,e.$createQuoteNode=C,e.$isHeadingNode=function(e){return e instanceof T},e.$isQuoteNode=function(e){return e instanceof E},e.DRAG_DROP_PASTE=_,e.HeadingNode=T,e.QuoteNode=E,e.eventFiles=A,e.registerRichText=function(e){return r.mergeRegister(e.registerCommand (i.CLICK_COMMAND,(function(){var e=i.$getSelection();return!!i.$isNodeSelection(e)&&(e.clear(),!0)}),0),e.registerCommand (i.DELETE_CHARACTER_COMMAND,(function(e){var t=i.$getSelection();return!!i.$isRangeSelection(t)&&(t.deleteCharacter(e),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.DELETE_WORD_COMMAND,(function(e){var t=i.$getSelection();return!!i.$isRangeSelection(t)&&(t.deleteWord(e),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.DELETE_LINE_COMMAND,(function(e){var t=i.$getSelection();return!!i.$isRangeSelection(t)&&(t.deleteLine(e),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.CONTROLLED_TEXT_INSERTION_COMMAND,(function(n){var r=i.$getSelection();if("string"==typeof n)i.$isRangeSelection(r)?r.insertText(n):i.DEPRECATED_$isGridSelection(r);else{if(!i.$isRangeSelection(r)&&!i.DEPRECATED_$isGridSelection(r))return!1;var o=n.dataTransfer;null!=o?t.$insertDataTransferForRichText(o,r,e):i.$isRangeSelection(r)&&(n=n.data)&&r.insertText(n)}return!0}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.REMOVE_TEXT_COMMAND,(function(){var e=i.$getSelection();return!!i.$isRangeSelection(e)&&(e.removeText(),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.FORMAT_TEXT_COMMAND,(function(e){var t=i.$getSelection();return!!i.$isRangeSelection(t)&&(t.formatText(e),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.FORMAT_ELEMENT_COMMAND,(function(e){var t=i.$getSelection();if(!i.$isRangeSelection(t)&&!i.$isNodeSelection(t))return!1;t=t.getNodes();var n,o=(0,l.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==(t=r.$findMatchingParent(a,(function(e){return i.$isElementNode(e)&&!e.isInline()})))&&t.setFormat(e)}}catch(s){o.e(s)}finally{o.f()}return!0}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.INSERT_LINE_BREAK_COMMAND,(function(e){var t=i.$getSelection();return!!i.$isRangeSelection(t)&&(t.insertLineBreak(e),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.INSERT_PARAGRAPH_COMMAND,(function(){var e=i.$getSelection();return!!i.$isRangeSelection(e)&&(e.insertParagraph(),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.INSERT_TAB_COMMAND,(function(){return i.$insertNodes([i.$createTabNode()]),!0}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.INDENT_CONTENT_COMMAND,(function(){return M((function(e){var t=e.getIndent();e.setIndent(t+1)}))}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.OUTDENT_CONTENT_COMMAND,(function(){return M((function(e){var t=e.getIndent();0<t&&e.setIndent(t-1)}))}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.KEY_ARROW_UP_COMMAND,(function(e){var t=i.$getSelection();if(i.$isNodeSelection(t)&&!N(e.target)){if(0<(e=t.getNodes()).length)return e[0].selectPrevious(),!0}else if(i.$isRangeSelection(t)&&(t=i.$getAdjacentNode(t.focus,!0),!e.shiftKey&&i.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline()))return t.selectPrevious(),e.preventDefault(),!0;return!1}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.KEY_ARROW_DOWN_COMMAND,(function(e){var t=i.$getSelection();if(i.$isNodeSelection(t)){if(0<(e=t.getNodes()).length)return e[0].selectNext(0,0),!0}else if(i.$isRangeSelection(t)){var n=t.focus;if("root"===n.key&&n.offset===i.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(t=i.$getAdjacentNode(t.focus,!1),!e.shiftKey&&i.$isDecoratorNode(t)&&!t.isIsolated()&&!t.isInline())return t.selectNext(),e.preventDefault(),!0}return!1}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.KEY_ARROW_LEFT_COMMAND,(function(e){var t=i.$getSelection();if(i.$isNodeSelection(t)){var r=t.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectPrevious(),!0}return!(!i.$isRangeSelection(t)||!n.$shouldOverrideDefaultCharacterSelection(t,!0))&&(r=e.shiftKey,e.preventDefault(),n.$moveCharacter(t,r,!0),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.KEY_ARROW_RIGHT_COMMAND,(function(e){var t=i.$getSelection();if(i.$isNodeSelection(t)&&!N(e.target)){var r=t.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectNext(0,0),!0}return!!i.$isRangeSelection(t)&&(r=e.shiftKey,!!n.$shouldOverrideDefaultCharacterSelection(t,!1)&&(e.preventDefault(),n.$moveCharacter(t,r,!1),!0))}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.KEY_BACKSPACE_COMMAND,(function(t){if(N(t.target))return!1;var n=i.$getSelection();if(!i.$isRangeSelection(n))return!1;t.preventDefault();var o=(t=n.anchor).getNode();return n.isCollapsed()&&0===t.offset&&!i.$isRootNode(o)&&0<r.$getNearestBlockElementAncestorOrThrow(o).getIndent()?e.dispatchCommand (i.OUTDENT_CONTENT_COMMAND,void 0):e.dispatchCommand (i.DELETE_CHARACTER_COMMAND,!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.KEY_DELETE_COMMAND,(function(t){if(N(t.target))return!1;var n=i.$getSelection();return!!i.$isRangeSelection(n)&&(t.preventDefault(),e.dispatchCommand (i.DELETE_CHARACTER_COMMAND,!1))}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.KEY_ENTER_COMMAND,(function(t){var n=i.$getSelection();if(!i.$isRangeSelection(n))return!1;if(null!==t){if((w||x||S)&&b)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand (i.INSERT_LINE_BREAK_COMMAND,!1)}return e.dispatchCommand (i.INSERT_PARAGRAPH_COMMAND,void 0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.KEY_ESCAPE_COMMAND,(function(){var t=i.$getSelection();return!!i.$isRangeSelection(t)&&(e.blur(),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.DROP_COMMAND,(function(t){var n=A(t),r=(0,s.Z)(n,2)[1];if(0<r.length){var o=a(t.clientX,t.clientY);if(null!==o){var l=o,c=l.offset,u=l.node,d=i.$getNearestNodeFromDOMNode(u);if(null!==d){if(o=i.$createRangeSelection(),i.$isTextNode(d))o.anchor.set(d.getKey(),c,"text"),o.focus.set(d.getKey(),c,"text");else{var f=d.getParentOrThrow().getKey();d=d.getIndexWithinParent()+1,o.anchor.set(f,d,"element"),o.focus.set(f,d,"element")}o=i.$normalizeSelection__EXPERIMENTAL(o),i.$setSelection(o)}e.dispatchCommand (_,r)}return t.preventDefault(),!0}return t=i.$getSelection(),!!i.$isRangeSelection(t)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.DRAGSTART_COMMAND,(function(e){var t=A(e);e=(0,s.Z)(t,1)[0];var n=i.$getSelection();return!(e&&!i.$isRangeSelection(n))}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.DRAGOVER_COMMAND,(function(e){var t=A(e),n=(0,s.Z)(t,1)[0],r=i.$getSelection();return!(n&&!i.$isRangeSelection(r))&&(null!==(n=a(e.clientX,e.clientY))&&(n=i.$getNearestNodeFromDOMNode(n.node),i.$isDecoratorNode(n)&&e.preventDefault()),!0)}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.SELECT_ALL_COMMAND,(function(){return i.$selectAll(),!0}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.COPY_COMMAND,(function(n){return t.copyToClipboard(e,r.objectKlassEquals(n,ClipboardEvent)?n:null),!0}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.CUT_COMMAND,(function(t){return function(e,t){R.apply(this,arguments)}(t,e),!0}),i.COMMAND_PRIORITY_EDITOR),e.registerCommand (i.PASTE_COMMAND,(function(n){var r=A(n),o=(0,s.Z)(r,3),a=o[1],l=o[2];if(0<a.length&&!l)return e.dispatchCommand (_,a),!0;if(i.isSelectionCapturedInDecoratorInput(n.target))return!1;var c=i.$getSelection();return!(!i.$isRangeSelection(c)&&!i.DEPRECATED_$isGridSelection(c))&&(function(e,n){e.preventDefault(),n.update((function(){var r=i.$getSelection(),o=e instanceof InputEvent||e instanceof KeyboardEvent?null:e.clipboardData;null!=o&&(i.$isRangeSelection(r)||i.DEPRECATED_$isGridSelection(r))&&t.$insertDataTransferForRichText(o,r,n)}),{tag:"paste"})}(n,e),!0)}),i.COMMAND_PRIORITY_EDITOR))}}}),Te=O({"../../../node_modules/@lexical/rich-text/LexicalRichText.js":function(e,t){var n=Ce();t.exports=n}}),Ie=O({"../../../node_modules/@lexical/react/LexicalRichTextPlugin.prod.js":function(e){var t=V(),n=Q(),r=(L(),N(D)),o=te(),i=$(),a=(ce(),N(ne)),l=de(),c=Te(),u=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?r.useLayoutEffect:r.useEffect;function d(e){return e.getEditorState().read(o.$canShowPlaceholderCurry(e.isComposing()))}function f(e){var o=e.content,a=t.useLexicalComposerContext(),l=(0,s.Z)(a,1)[0];l=function(e){var t=r.useState((function(){return d(e)})),n=(0,s.Z)(t,2),o=n[0],a=n[1];return u((function(){function t(){var t=d(e);a(t)}return t(),i.mergeRegister(e.registerUpdateListener((function(){t()})),e.registerEditableListener((function(){t()})))}),[e]),o}(l);var c=n();return l?"function"==typeof o?o(c):o:null}e.RichTextPlugin=function(e){var n=e.contentEditable,o=e.placeholder,d=e.ErrorBoundary,p=t.useLexicalComposerContext(),h=(0,s.Z)(p,1)[0];return d=function(e,t){var n=r.useState((function(){return e.getDecorators()})),o=(0,s.Z)(n,2),i=o[0],l=o[1];return u((function(){return e.registerDecoratorListener((function(e){a.flushSync((function(){l(e)}))}))}),[e]),r.useEffect((function(){l(e.getDecorators())}),[e]),r.useMemo((function(){for(var n=[],o=Object.keys(i),s=0;s<o.length;s++){var l=o[s],c=r.createElement(t,{onError:function(t){return e._onError(t)}},r.createElement(r.Suspense,{fallback:null},i[l])),u=e.getElementByKey(l);null!==u&&n.push(a.createPortal(c,u,l))}return n}),[t,i,e])}(h,d),function(e){u((function(){return i.mergeRegister(c.registerRichText(e),l.registerDragonSupport(e))}),[e])}(h),r.createElement(r.Fragment,null,n,r.createElement(f,{content:o}),d)}}}),Be=O({"../../../node_modules/@lexical/react/LexicalRichTextPlugin.js":function(e,t){var n=Ie();t.exports=n}}),Oe=O({"../../../node_modules/@lexical/react/LexicalOnChangePlugin.prod.js":function(e){var t=V(),n=(L(),N(D)),r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?n.useLayoutEffect:n.useEffect;e.OnChangePlugin=function(e){var n=e.ignoreHistoryMergeTagChange,o=void 0===n||n,i=e.ignoreSelectionChange,a=void 0!==i&&i,l=e.onChange,c=t.useLexicalComposerContext(),u=(0,s.Z)(c,1)[0];return r((function(){if(l)return u.registerUpdateListener((function(e){var t=e.editorState,n=e.dirtyElements,r=e.dirtyLeaves,i=e.prevEditorState,s=e.tags;a&&0===n.size&&0===r.size||o&&s.has("history-merge")||i.isEmpty()||l(t,u,s)}))}),[u,o,a,l]),null}}}),Pe=O({"../../../node_modules/@lexical/react/LexicalOnChangePlugin.js":function(e,t){var n=Oe();t.exports=n}}),Re=O({"../../../node_modules/@lexical/list/LexicalList.prod.js":function(e){var t=Z(),n=$();function i(e){var t=new URLSearchParams;t.append("code",e);for(var n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error("Minified Lexical error #".concat(e,"; visit https://lexical.dev/docs/error?").concat(t," for the full message or use the non-minified dev environment for full errors and additional helpful warnings."))}function a(e){var t=1;for(e=e.getParent();null!=e;){if(B(e)){if(D(e=e.getParent())){t++,e=e.getParent();continue}i(40)}break}return t}function s(e){D(e=e.getParent())||i(40);for(var t=e;null!==t;)D(t=t.getParent())&&(e=t);return e}function c(e){var t=[];e=e.getChildren().filter(B);for(var n=0;n<e.length;n++){var r=e[n],o=r.getFirstChild();D(o)?t=t.concat(c(o)):t.push(r)}return t}function u(e){return B(e)&&D(e.getFirstChild())}function d(e){return I().append(e)}function y(e,t){return B(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function b(e,t){e.splice(e.getChildrenSize(),0,t)}function x(e,t){if(D(e))return e;var n=e.getPreviousSibling(),r=e.getNextSibling(),o=I();return o.setFormat(e.getFormatType()),o.setIndent(e.getIndent()),b(o,e.getChildren()),D(n)&&t===n.getListType()?(n.append(o),e.remove(),D(r)&&t===r.getListType()&&(b(n,r.getChildren()),r.remove()),n):D(r)&&t===r.getListType()?(r.getFirstChildOrThrow().insertBefore(o),e.remove(),r):((t=N(t)).append(o),e.replace(t),k(t),t)}function w(e,t){var n=e.getLastChild(),o=t.getFirstChild();n&&o&&u(n)&&u(o)&&(w(n.getFirstChild(),o.getFirstChild()),o.remove()),0<(n=t.getChildren()).length&&(e.append.apply(e,(0,r.Z)(n)),k(e)),t.remove()}function k(e,t){if(void 0!==(e=t||e.getChildren()))for(t=0;t<e.length;t++){var n=e[t];if(B(n)){var r=n.getValue(),o=n,a=o.getParent(),s=1;for(null!=a&&(D(a)?s=a.getStart():i(44)),o=o.getPreviousSiblings(),a=0;a<o.length;a++){var l=o[a];B(l)&&!D(l.getFirstChild())&&s++}r!==s&&n.setValue(s)}}}function S(e){if(!u(e)){var t=e.getParent(),n=t?t.getParent():void 0,r=n?n.getParent():void 0;if(D(r)&&B(n)&&D(t)){var o=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(o))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{var a=t.getListType();o=I();var s=N(a);o.append(s),e.getPreviousSiblings().forEach((function(e){return s.append(e)})),i=I(),a=N(a),i.append(a),b(a,e.getNextSiblings()),n.insertBefore(o),n.insertAfter(i),n.replace(e)}k(t),k(r)}}}var _=function(e){(0,h.Z)(a,e);var n=(0,m.Z)(a);function a(e,t,r){var o;return(0,v.Z)(this,a),(o=n.call(this,r)).__value=void 0===e?1:e,o.__checked=t,o}return(0,g.Z)(a,[{key:"createDOM",value:function(e){var t=document.createElement("li"),n=this.getParent();return D(n)&&"check"===n.getListType()&&C(t,this,null),t.value=this.__value,E(t,e.theme,this),t}},{key:"updateDOM",value:function(e,t,n){var r=this.getParent();return D(r)&&"check"===r.getListType()&&C(t,this,e),t.value=this.__value,E(t,n.theme,this),!1}},{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(a.prototype),"exportJSON",this).call(this)),{},{checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1})}},{key:"append",value:function(){for(var e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];if(t.$isElementNode(n)&&this.canMergeWith(n)){var o=n.getChildren();this.append.apply(this,(0,r.Z)(o)),n.remove()}else(0,f.Z)((0,p.Z)(a.prototype),"append",this).call(this,n)}return this}},{key:"replace",value:function(e,t){if(B(e))return(0,f.Z)((0,p.Z)(a.prototype),"replace",this).call(this,e);this.setIndent(0);var n=this.getParentOrThrow();if(!D(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{for(var r=N(n.getListType()),o=this.getNextSibling();o;){var i=o;o=o.getNextSibling(),r.append(i)}n.insertAfter(e),e.insertAfter(r)}return t&&this.getChildren().forEach((function(t){e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}},{key:"insertAfter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getParentOrThrow();D(n)||i(39);var r=this.getNextSiblings();if(B(e))return t=(0,f.Z)((0,p.Z)(a.prototype),"insertAfter",this).call(this,e,t),D(e=e.getParentOrThrow())&&k(e),t;if(D(e)){for(n=e,r=(e=e.getChildren()).length-1;0<=r;r--)n=e[r],this.insertAfter(n,t);return n}if(n.insertAfter(e,t),0!==r.length){var o=N(n.getListType());r.forEach((function(e){return o.append(e)})),e.insertAfter(o,t)}return e}},{key:"remove",value:function(e){var t=this.getPreviousSibling(),n=this.getNextSibling();(0,f.Z)((0,p.Z)(a.prototype),"remove",this).call(this,e),t&&n&&u(t)&&u(n)?(w(t.getFirstChild(),n.getFirstChild()),n.remove()):n&&(D(e=n.getParent())&&k(e))}},{key:"insertNewAfter",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=I(null==this.__checked&&void 0),this.insertAfter(e,t),e}},{key:"collapseAtStart",value:function(e){var n=t.$createParagraphNode();this.getChildren().forEach((function(e){return n.append(e)}));var r=this.getParentOrThrow(),o=r.getParentOrThrow(),i=B(o);return 1===r.getChildrenSize()?i?(r.remove(),o.select()):(r.insertBefore(n),r.remove(),r=e.anchor,e=e.focus,o=n.getKey(),"element"===r.type&&r.getNode().is(this)&&r.set(o,r.offset,"element"),"element"===e.type&&e.getNode().is(this)&&e.set(o,e.offset,"element")):(r.insertBefore(n),this.remove()),!0}},{key:"getValue",value:function(){return this.getLatest().__value}},{key:"setValue",value:function(e){this.getWritable().__value=e}},{key:"getChecked",value:function(){return this.getLatest().__checked}},{key:"setChecked",value:function(e){this.getWritable().__checked=e}},{key:"toggleChecked",value:function(){this.setChecked(!this.__checked)}},{key:"getIndent",value:function(){var e=this.getParent();if(null===e)return this.getLatest().__indent;e=e.getParentOrThrow();for(var t=0;B(e);)e=e.getParentOrThrow().getParentOrThrow(),t++;return t}},{key:"setIndent",value:function(e){"number"==typeof e&&-1<e||i(117);for(var t=this.getIndent();t!==e;)if(t<e){var n=new Set;if(!u(this)&&!n.has(this.getKey())){var r=this.getParent(),o=this.getNextSibling(),a=this.getPreviousSibling();if(u(o)&&u(a)){if(D(a=a.getFirstChild())){a.append(this);var s=o.getFirstChild();D(s)&&(b(a,s=s.getChildren()),o.remove(),n.add(o.getKey())),k(a)}}else u(o)?D(o=o.getFirstChild())&&(null!==(n=o.getFirstChild())&&n.insertBefore(this),k(o)):u(a)?D(o=a.getFirstChild())&&(o.append(this),k(o)):D(r)&&(n=I(),s=N(r.getListType()),n.append(s),s.append(this),a?a.insertAfter(n):o?o.insertBefore(n):r.append(n),k(s));D(r)&&k(r)}t++}else S(this),t--;return this}},{key:"insertBefore",value:function(e){if(B(e)){var t=this.getParentOrThrow();if(D(t))k(t,this.getNextSiblings())}return(0,f.Z)((0,p.Z)(a.prototype),"insertBefore",this).call(this,e)}},{key:"canInsertAfter",value:function(e){return B(e)}},{key:"canReplaceWith",value:function(e){return B(e)}},{key:"canMergeWith",value:function(e){return t.$isParagraphNode(e)||B(e)}},{key:"extractWithChild",value:function(e,n){if(!t.$isRangeSelection(n))return!1;e=n.anchor.getNode();var r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}},{key:"isParentRequired",value:function(){return!0}},{key:"createParentElementNode",value:function(){return N("bullet")}}],[{key:"getType",value:function(){return"listitem"}},{key:"clone",value:function(e){return new a(e.__value,e.__checked,e.__key)}},{key:"transform",value:function(){return function(e){var t=e.getParent();D(t)&&(k(t),"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0))}}},{key:"importDOM",value:function(){return{li:function(){return{conversion:T,priority:0}}}}},{key:"importJSON",value:function(e){var t=I();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}}]),a}(t.ElementNode);function E(e,t,o){var i=[],a=[],s=(t=t.list)?t.listitem:void 0;if(t&&t.nested)var l=t.nested.listitem;if(void 0!==s&&(s=s.split(" "),i.push.apply(i,(0,r.Z)(s))),t){s=D(s=o.getParent())&&"check"===s.getListType();var c=o.getChecked();s&&!c||a.push(t.listitemUnchecked),s&&c||a.push(t.listitemChecked),s&&i.push(c?t.listitemChecked:t.listitemUnchecked)}void 0!==l&&(l=l.split(" "),o.getChildren().some((function(e){return D(e)}))?i.push.apply(i,(0,r.Z)(l)):a.push.apply(a,(0,r.Z)(l))),0<a.length&&n.removeClassNamesFromElement.apply(n,[e].concat(a)),0<i.length&&n.addClassNamesToElement.apply(n,[e].concat(i))}function C(e,t,n){D(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}function T(e){return{node:I(e=n.isHTMLElement(e)&&"true"===e.getAttribute("aria-checked"))}}function I(e){return t.$applyNodeReplacement(new _(void 0,e))}function B(e){return e instanceof _}var O=function(e){(0,h.Z)(r,e);var n=(0,m.Z)(r);function r(e,t,o){var i;return(0,v.Z)(this,r),(i=n.call(this,o)).__listType=e=M[e]||e,i.__tag="number"===e?"ol":"ul",i.__start=t,i}return(0,g.Z)(r,[{key:"getTag",value:function(){return this.__tag}},{key:"setListType",value:function(e){var t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}},{key:"getListType",value:function(){return this.__listType}},{key:"getStart",value:function(){return this.__start}},{key:"createDOM",value:function(e){var t=document.createElement(this.__tag);return 1!==this.__start&&t.setAttribute("start",String(this.__start)),t.__lexicalListType=this.__listType,P(t,e.theme,this),t}},{key:"updateDOM",value:function(e,t,n){return e.__tag!==this.__tag||(P(t,n.theme,this),!1)}},{key:"exportDOM",value:function(e){return(e=(0,f.Z)((0,p.Z)(r.prototype),"exportDOM",this).call(this,e).element)&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}},{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(r.prototype),"exportJSON",this).call(this)),{},{listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1})}},{key:"canBeEmpty",value:function(){return!1}},{key:"canIndent",value:function(){return!1}},{key:"append",value:function(){for(var e=0;e<arguments.length;e++){var n=e<0||arguments.length<=e?void 0:arguments[e];if(B(n))(0,f.Z)((0,p.Z)(r.prototype),"append",this).call(this,n);else{var o=I();D(n)||t.$isElementNode(n)&&(n=t.$createTextNode(n.getTextContent())),o.append(n),(0,f.Z)((0,p.Z)(r.prototype),"append",this).call(this,o)}}return k(this),this}},{key:"extractWithChild",value:function(e){return B(e)}}],[{key:"getType",value:function(){return"list"}},{key:"clone",value:function(e){return new r(e.__listType||M[e.__tag],e.__start,e.__key)}},{key:"importDOM",value:function(){return{ol:function(){return{conversion:A,priority:0}},ul:function(){return{conversion:A,priority:0}}}}},{key:"importJSON",value:function(e){var t=N(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}}]),r}(t.ElementNode);function P(e,t,o){var i=[],s=[],l=t.list;if(void 0!==l){var c,u=l["".concat(o.__tag,"Depth")]||[],d=(t=a(o)-1)%u.length,f=u[d],p=l[o.__tag];if(void 0!==(l=l.nested)&&l.list&&(c=l.list),void 0!==p&&i.push(p),void 0!==f)for(f=f.split(" "),i.push.apply(i,(0,r.Z)(f)),f=0;f<u.length;f++)f!==d&&s.push(o.__tag+f);void 0!==c&&(o=c.split(" "),1<t?i.push.apply(i,(0,r.Z)(o)):s.push.apply(s,(0,r.Z)(o)))}0<s.length&&n.removeClassNamesFromElement.apply(n,[e].concat(s)),0<i.length&&n.addClassNamesToElement.apply(n,[e].concat(i))}function R(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];B(r)?(t.push(r),1<(r=r.getChildren()).length&&r.forEach((function(e){D(e)&&t.push(d(e))}))):t.push(d(r))}return t}function A(e){var t=e.nodeName.toLowerCase(),r=null;return"ol"===t?r=N("number",e.start):"ul"===t&&(r=n.isHTMLElement(e)&&"check"===e.getAttribute("__lexicallisttype")?N("check"):N("bullet")),{after:R,node:r}}var M={ol:"number",ul:"bullet"};function N(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.$applyNodeReplacement(new O(e,n))}function D(e){return e instanceof O}var L=t.createCommand ("INSERT_UNORDERED_LIST_COMMAND"),j=t.createCommand ("INSERT_ORDERED_LIST_COMMAND"),z=t.createCommand ("INSERT_CHECK_LIST_COMMAND"),W=t.createCommand ("REMOVE_LIST_COMMAND");e.$createListItemNode=I,e.$createListNode=N,e.$getListDepth=a,e.$handleListInsertParagraph=function(){var e=t.$getSelection();if(!t.$isRangeSelection(e)||!e.isCollapsed()||(!B(e=e.anchor.getNode())||""!==e.getTextContent()))return!1;var n=s(e),r=e.getParent();D(r)||i(40);var o,a=r.getParent();if(t.$isRootOrShadowRoot(a))o=t.$createParagraphNode(),n.insertAfter(o);else{if(!B(a))return!1;o=I(),a.insertAfter(o)}if(o.select(),0<(n=e.getNextSiblings()).length){var l=N(r.getListType());t.$isParagraphNode(o)?o.insertAfter(l):((r=I()).append(l),o.insertAfter(r)),n.forEach((function(e){e.remove(),l.append(e)}))}return function(e){for(;null==e.getNextSibling()&&null==e.getPreviousSibling();){var t=e.getParent();if(null==t||!B(e)&&!D(e))break;e=t}e.remove()}(e),!0},e.$isListItemNode=B,e.$isListNode=D,e.INSERT_CHECK_LIST_COMMAND=z,e.INSERT_ORDERED_LIST_COMMAND=j,e.INSERT_UNORDERED_LIST_COMMAND=L,e.ListItemNode=_,e.ListNode=O,e.REMOVE_LIST_COMMAND=W,e.insertList=function(e,n){e.update((function(){var e=t.$getSelection();if(t.$isRangeSelection(e)||t.DEPRECATED_$isGridSelection(e)){var r=e.getNodes(),o=(e=e.anchor.getNode()).getParent();if(y(e,r))r=N(n),t.$isRootOrShadowRoot(o)?(e.replace(r),o=I(),t.$isElementNode(e)&&(o.setFormat(e.getFormatType()),o.setIndent(e.getIndent())),r.append(o)):B(e)&&(b(r,(e=e.getParentOrThrow()).getChildren()),e.replace(r));else for(e=new Set,o=0;o<r.length;o++){var i=r[o];if(t.$isElementNode(i)&&i.isEmpty()&&!e.has(i.getKey()))x(i,n);else if(t.$isLeafNode(i))for(i=i.getParent();null!=i;){var a=i.getKey();if(D(i)){if(!e.has(a)){var s=N(n);b(s,i.getChildren()),i.replace(s),k(s),e.add(a)}break}if(s=i.getParent(),t.$isRootOrShadowRoot(s)&&!e.has(a)){e.add(a),x(i,n);break}i=s}}}}))},e.removeList=function(e){e.update((function(){var e=t.$getSelection();if(t.$isRangeSelection(e)){var r=new Set,o=e.getNodes(),i=e.anchor.getNode();if(y(i,o))r.add(s(i));else for(i=0;i<o.length;i++){var a=o[i];t.$isLeafNode(a)&&(null!=(a=n.$getNearestNodeOfType(a,_))&&r.add(s(a)))}var u,d=(0,l.Z)(r);try{for(d.s();!(u=d.n()).done;){var f=u.value;r=f,o=c(f);var p,h=(0,l.Z)(o);try{for(h.s();!(p=h.n()).done;){var m=p.value;b(o=t.$createParagraphNode(),m.getChildren()),r.insertAfter(o),r=o,m.__key===e.anchor.key&&e.anchor.set(o.getKey(),0,"element"),m.__key===e.focus.key&&e.focus.set(o.getKey(),0,"element"),m.remove()}}catch(v){h.e(v)}finally{h.f()}f.remove()}}catch(v){d.e(v)}finally{d.f()}}}))}}}),Ae=O({"../../../node_modules/@lexical/list/LexicalList.js":function(e,t){var n=Re();t.exports=n}}),Me=O({"../../../node_modules/@lexical/react/LexicalListPlugin.prod.js":function(e){var t=Ae(),n=V(),r=(L(),N(D)),o=$(),i=Z();e.ListPlugin=function(){var e=n.useLexicalComposerContext(),a=(0,s.Z)(e,1)[0];return r.useEffect((function(){if(!a.hasNodes([t.ListNode,t.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[a]),function(e){r.useEffect((function(){return o.mergeRegister(e.registerCommand (t.INSERT_ORDERED_LIST_COMMAND,(function(){return t.insertList(e,"number"),!0}),i.COMMAND_PRIORITY_LOW),e.registerCommand (t.INSERT_UNORDERED_LIST_COMMAND,(function(){return t.insertList(e,"bullet"),!0}),i.COMMAND_PRIORITY_LOW),e.registerCommand (t.REMOVE_LIST_COMMAND,(function(){return t.removeList(e),!0}),i.COMMAND_PRIORITY_LOW),e.registerCommand (i.INSERT_PARAGRAPH_COMMAND,(function(){return!!t.$handleListInsertParagraph()}),i.COMMAND_PRIORITY_LOW))}),[e])}(a),null}}}),Ne=O({"../../../node_modules/@lexical/react/LexicalListPlugin.js":function(e,t){var n=Me();t.exports=n}}),De=O({"../../../node_modules/@lexical/react/LexicalCheckListPlugin.prod.js":function(e){var t=Ae(),n=V(),r=$(),o=Z(),i=(L(),N(D));function a(e,t){var n=e.target;if(null!==n&&r.isHTMLElement(n)){var o=n.firstChild;(null==o||!r.isHTMLElement(o)||"UL"!==o.tagName&&"OL"!==o.tagName)&&(o=n.parentNode)&&"check"===o.__lexicalListType&&(e=e.pageX,o=n.getBoundingClientRect(),("rtl"===n.dir?e<o.right&&e>o.right-20:e>o.left&&e<o.left+20)&&t())}}function l(e){a(e,(function(){var n=e.target,r=function(e){for(;e;){if(e.__lexicalEditor)return e.__lexicalEditor;e=e.parentNode}return null}(n);null!=r&&r.isEditable()&&r.update((function(){if(e.target){var r=o.$getNearestNodeFromDOMNode(n);t.$isListItemNode(r)&&(n.focus(),r.toggleChecked())}}))}))}function c(e){a(e,(function(){e.preventDefault()}))}function u(){var e=document.activeElement;return null!=e&&"LI"===e.tagName&&null!=e.parentNode&&"check"===e.parentNode.__lexicalListType?e:null}function d(e,n,r){var i=u();return null!=i&&n.update((function(){var a=o.$getNearestNodeFromDOMNode(i);if(t.$isListItemNode(a)&&(a=function(e,n){for(var r=n?e.getPreviousSibling():e.getNextSibling();null==r&&t.$isListItemNode(e);)null!=(e=e.getParentOrThrow().getParent())&&(r=n?e.getPreviousSibling():e.getNextSibling());for(;t.$isListItemNode(r);){if(e=n?r.getLastChild():r.getFirstChild(),!t.$isListNode(e))return r;r=n?e.getLastChild():e.getFirstChild()}return null}(a,r),null!=a)){a.selectStart();var s=n.getElementByKey(a.__key);null!=s&&(e.preventDefault(),setTimeout((function(){s.focus()}),0))}})),!1}e.CheckListPlugin=function(){var e=n.useLexicalComposerContext(),a=(0,s.Z)(e,1)[0];return i.useEffect((function(){return r.mergeRegister(a.registerCommand (t.INSERT_CHECK_LIST_COMMAND,(function(){return t.insertList(a,"check"),!0}),o.COMMAND_PRIORITY_LOW),a.registerCommand (o.KEY_ARROW_DOWN_COMMAND,(function(e){return d(e,a,!1)}),o.COMMAND_PRIORITY_LOW),a.registerCommand (o.KEY_ARROW_UP_COMMAND,(function(e){return d(e,a,!0)}),o.COMMAND_PRIORITY_LOW),a.registerCommand (o.KEY_ESCAPE_COMMAND,(function(){if(null!=u()){var e=a.getRootElement();return null!==e&&void 0!==e&&e.focus(),!0}return!1}),o.COMMAND_PRIORITY_LOW),a.registerCommand (o.KEY_SPACE_COMMAND,(function(e){var n=u();return!(null==n||!a.isEditable())&&(a.update((function(){var r=o.$getNearestNodeFromDOMNode(n);t.$isListItemNode(r)&&(e.preventDefault(),r.toggleChecked())})),!0)}),o.COMMAND_PRIORITY_LOW),a.registerCommand (o.KEY_ARROW_LEFT_COMMAND,(function(e){return a.getEditorState().read((function(){var n=o.$getSelection();if(o.$isRangeSelection(n)&&n.isCollapsed()){var i=n.anchor;if((n="element"===i.type)||0===i.offset){i=i.getNode();var s=r.$findMatchingParent(i,(function(e){return o.$isElementNode(e)&&!e.isInline()}));if(t.$isListItemNode(s)){var l=s.getParent();if(t.$isListNode(l)&&"check"===l.getListType()&&(n||s.getFirstDescendant()===i)&&(null!=(n=a.getElementByKey(s.__key))&&document.activeElement!==n))return n.focus(),e.preventDefault(),!0}}}return!1}))}),o.COMMAND_PRIORITY_LOW),a.registerRootListener((function(e,t){null!==e&&(e.addEventListener("click",l),e.addEventListener("pointerdown",c)),null!==t&&(t.removeEventListener("click",l),t.removeEventListener("pointerdown",c))})))})),null}}}),Le=O({"../../../node_modules/@lexical/react/LexicalCheckListPlugin.js":function(e,t){var n=De();t.exports=n}}),je=O({"../../../node_modules/@lexical/react/LexicalLinkPlugin.prod.js":function(e){var t=q(),n=V(),r=$(),o=Z(),i=(L(),N(D));e.LinkPlugin=function(e){var a=e.validateUrl,l=n.useLexicalComposerContext(),c=(0,s.Z)(l,1)[0];return i.useEffect((function(){if(!c.hasNodes([t.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return r.mergeRegister(c.registerCommand (t.TOGGLE_LINK_COMMAND,(function(e){if(null===e)return t.toggleLink(e),!0;if("string"==typeof e)return!(void 0!==a&&!a(e))&&(t.toggleLink(e),!0);var n=e.url,r=e.target,o=e.rel,i=e.title;return t.toggleLink(n,{rel:o,target:r,title:i}),!0}),o.COMMAND_PRIORITY_LOW),void 0!==a?c.registerCommand (o.PASTE_COMMAND,(function(e){var n=o.$getSelection();if(!o.$isRangeSelection(n)||n.isCollapsed()||!(e instanceof ClipboardEvent)||null==e.clipboardData)return!1;var r=e.clipboardData.getData("text");return!!a(r)&&(!n.getNodes().some((function(e){return o.$isElementNode(e)}))&&(c.dispatchCommand (t.TOGGLE_LINK_COMMAND,r),e.preventDefault(),!0))}),o.COMMAND_PRIORITY_LOW):function(){})}),[c,a]),null}}}),ze=O({"../../../node_modules/@lexical/react/LexicalLinkPlugin.js":function(e,t){var n=je();t.exports=n}}),We=O({"../../../node_modules/@lexical/table/LexicalTable.prod.js":function(e){var t=Z(),n=$(),i=/^(\d+(?:\.\d+)?)px$/,a={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1},l=function(e){(0,h.Z)(r,e);var t=(0,m.Z)(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.NO_STATUS,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;return(0,v.Z)(this,r),(e=t.call(this,o,s)).__headerState=n,e.__width=i,e.__backgroundColor=null,e}return(0,g.Z)(r,[{key:"createDOM",value:function(e){var t=document.createElement(this.getTag());return this.__width&&(t.style.width="".concat(this.__width,"px")),1<this.__colSpan&&(t.colSpan=this.__colSpan),1<this.__rowSpan&&(t.rowSpan=this.__rowSpan),null!==this.__backgroundColor&&(t.style.backgroundColor=this.__backgroundColor),n.addClassNamesToElement(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}},{key:"exportDOM",value:function(e){if(e=(0,f.Z)((0,p.Z)(r.prototype),"exportDOM",this).call(this,e).element){var t=this.getParentOrThrow().getChildrenSize();e.style.border="1px solid black",1<this.__colSpan&&(e.colSpan=this.__colSpan),1<this.__rowSpan&&(e.rowSpan=this.__rowSpan),e.style.width="".concat(this.getWidth()||Math.max(90,700/t),"px"),e.style.verticalAlign="top",e.style.textAlign="start",null!==(t=this.getBackgroundColor())?e.style.backgroundColor=t:this.hasHeader()&&(e.style.backgroundColor="#f2f3f5")}return{element:e}}},{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(r.prototype),"exportJSON",this).call(this)),{},{backgroundColor:this.getBackgroundColor(),headerState:this.__headerState,type:"tablecell",width:this.getWidth()})}},{key:"getTag",value:function(){return this.hasHeader()?"th":"td"}},{key:"setHeaderStyles",value:function(e){return this.getWritable().__headerState=e,this.__headerState}},{key:"getHeaderStyles",value:function(){return this.getLatest().__headerState}},{key:"setWidth",value:function(e){return this.getWritable().__width=e,this.__width}},{key:"getWidth",value:function(){return this.getLatest().__width}},{key:"getBackgroundColor",value:function(){return this.getLatest().__backgroundColor}},{key:"setBackgroundColor",value:function(e){this.getWritable().__backgroundColor=e}},{key:"toggleHeaderStyle",value:function(e){var t=this.getWritable();return t.__headerState=(t.__headerState&e)===e?t.__headerState-e:t.__headerState+e,t}},{key:"hasHeaderState",value:function(e){return(this.getHeaderStyles()&e)===e}},{key:"hasHeader",value:function(){return this.getLatest().__headerState!==a.NO_STATUS}},{key:"updateDOM",value:function(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor}},{key:"isShadowRoot",value:function(){return!0}},{key:"collapseAtStart",value:function(){return!0}},{key:"canBeEmpty",value:function(){return!1}},{key:"canIndent",value:function(){return!1}}],[{key:"getType",value:function(){return"tablecell"}},{key:"clone",value:function(e){var t=new r(e.__headerState,e.__colSpan,e.__width,e.__key);return t.__rowSpan=e.__rowSpan,t.__backgroundColor=e.__backgroundColor,t}},{key:"importDOM",value:function(){return{td:function(){return{conversion:c,priority:0}},th:function(){return{conversion:c,priority:0}}}}},{key:"importJSON",value:function(e){var t=e.rowSpan||1,n=u(e.headerState,e.colSpan||1,e.width||void 0);return n.__rowSpan=t,n.__backgroundColor=e.backgroundColor||null,n}}]),r}(t.DEPRECATED_GridCellNode);function c(e){var n,r=e.nodeName.toLowerCase();return i.test(e.style.width)&&(n=parseFloat(e.style.width)),(r=u("th"===r?a.ROW:a.NO_STATUS,e.colSpan,n)).__rowSpan=e.rowSpan,""!==(e=e.style.backgroundColor)&&(r.__backgroundColor=e),{forChild:function(e,n){return d(n)&&!t.$isElementNode(e)?(n=t.$createParagraphNode(),t.$isLineBreakNode(e)&&"\n"===e.getTextContent()?null:(n.append(e),n)):e},node:r}}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;return t.$applyNodeReplacement(new l(e,n,r))}function d(e){return e instanceof l}var y=function(e){(0,h.Z)(r,e);var t=(0,m.Z)(r);function r(e,n){var o;return(0,v.Z)(this,r),(o=t.call(this,n)).__height=e,o}return(0,g.Z)(r,[{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(r.prototype),"exportJSON",this).call(this)),{},{type:"tablerow",version:1})}},{key:"createDOM",value:function(e){var t=document.createElement("tr");return this.__height&&(t.style.height="".concat(this.__height,"px")),n.addClassNamesToElement(t,e.theme.tableRow),t}},{key:"isShadowRoot",value:function(){return!0}},{key:"setHeight",value:function(e){return this.getWritable().__height=e,this.__height}},{key:"getHeight",value:function(){return this.getLatest().__height}},{key:"updateDOM",value:function(e){return e.__height!==this.__height}},{key:"canBeEmpty",value:function(){return!1}},{key:"canIndent",value:function(){return!1}}],[{key:"getType",value:function(){return"tablerow"}},{key:"clone",value:function(e){return new r(e.__height,e.__key)}},{key:"importDOM",value:function(){return{tr:function(){return{conversion:b,priority:0}}}}},{key:"importJSON",value:function(e){return x(e.height)}}]),r}(t.DEPRECATED_GridRowNode);function b(e){var t;return i.test(e.style.height)&&(t=parseFloat(e.style.height)),{node:x(t)}}function x(e){return t.$applyNodeReplacement(new y(e))}function w(e){return e instanceof y}function k(e){var t=new URLSearchParams;t.append("code",e);for(var n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error("Minified Lexical error #".concat(e,"; visit https://lexical.dev/docs/error?").concat(t," for the full message or use the non-minified dev environment for full errors and additional helpful warnings."))}var S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_=function(){function e(t,n){(0,v.Z)(this,e),this.isHighlightingCells=!1,this.focusY=this.focusX=this.anchorY=this.anchorX=-1,this.listenersToRemove=new Set,this.tableNodeKey=n,this.editor=t,this.grid={cells:[],columns:0,rows:0},this.focusCell=this.anchorCell=this.focusCellNodeKey=this.anchorCellNodeKey=this.gridSelection=null,this.hasHijackedSelectionStyles=!1,this.trackTableGrid()}return(0,g.Z)(e,[{key:"getGrid",value:function(){return this.grid}},{key:"removeListeners",value:function(){Array.from(this.listenersToRemove).forEach((function(e){return e()}))}},{key:"trackTableGrid",value:function(){var e=this,t=new MutationObserver((function(t){e.editor.update((function(){for(var n=!1,r=0;r<t.length;r++){var o=t[r].target.nodeName;if("TABLE"===o||"TR"===o){n=!0;break}}if(n){if(!(n=e.editor.getElementByKey(e.tableNodeKey)))throw Error("Expected to find TableElement in DOM");e.grid=C(n)}}))}));this.editor.update((function(){var n=e.editor.getElementByKey(e.tableNodeKey);if(!n)throw Error("Expected to find TableElement in DOM");e.grid=C(n),t.observe(n,{childList:!0,subtree:!0})}))}},{key:"clearHighlight",value:function(){var e=this,n=this.editor;this.isHighlightingCells=!1,this.focusY=this.focusX=this.anchorY=this.anchorX=-1,this.focusCell=this.anchorCell=this.focusCellNodeKey=this.anchorCellNodeKey=this.gridSelection=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),n.update((function(){var r=t.$getNodeByKey(e.tableNodeKey);if(!F(r))throw Error("Expected TableNode.");if(!(r=n.getElementByKey(e.tableNodeKey)))throw Error("Expected to find TableElement in DOM");r=C(r),T(n,r,null),t.$setSelection(null),n.dispatchCommand (t.SELECTION_CHANGE_COMMAND,void 0)}))}},{key:"enableHighlightStyle",value:function(){var e=this,t=this.editor;t.update((function(){var r=t.getElementByKey(e.tableNodeKey);if(!r)throw Error("Expected to find TableElement in DOM");n.removeClassNamesFromElement(r,t._config.theme.tableSelection),r.classList.remove("disable-selection"),e.hasHijackedSelectionStyles=!1}))}},{key:"disableHighlightStyle",value:function(){var e=this,t=this.editor;t.update((function(){var r=t.getElementByKey(e.tableNodeKey);if(!r)throw Error("Expected to find TableElement in DOM");n.addClassNamesToElement(r,t._config.theme.tableSelection),e.hasHijackedSelectionStyles=!0}))}},{key:"updateTableGridSelection",value:function(e){if(null!=e&&e.gridKey===this.tableNodeKey){var t=this.editor;this.gridSelection=e,this.isHighlightingCells=!0,this.disableHighlightStyle(),T(t,this.grid,this.gridSelection)}else null==e&&this.clearHighlight()}},{key:"setFocusCellForSelection",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.editor;o.update((function(){var i=t.$getNodeByKey(n.tableNodeKey);if(!F(i))throw Error("Expected TableNode.");if(!o.getElementByKey(n.tableNodeKey))throw Error("Expected to find TableElement in DOM");i=e.x;var a=e.y;if(n.focusCell=e,null!==n.anchorCell){var s=S?(o._window||window).getSelection():null;s&&s.setBaseAndExtent(n.anchorCell.elem,0,n.focusCell.elem,0)}if(n.isHighlightingCells||n.anchorX===i&&n.anchorY===a&&!r){if(i===n.focusX&&a===n.focusY)return}else n.isHighlightingCells=!0,n.disableHighlightStyle();n.focusX=i,n.focusY=a,n.isHighlightingCells&&(i=t.$getNearestNodeFromDOMNode(e.elem),null!=n.gridSelection&&null!=n.anchorCellNodeKey&&d(i)&&(i=i.getKey(),n.gridSelection=n.gridSelection.clone()||t.DEPRECATED_$createGridSelection(),n.focusCellNodeKey=i,n.gridSelection.set(n.tableNodeKey,n.anchorCellNodeKey,n.focusCellNodeKey),t.$setSelection(n.gridSelection),o.dispatchCommand (t.SELECTION_CHANGE_COMMAND,void 0),T(o,n.grid,n.gridSelection)))}))}},{key:"setAnchorCellForSelection",value:function(e){var n=this;this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.editor.update((function(){var r=t.$getNearestNodeFromDOMNode(e.elem);d(r)&&(r=r.getKey(),n.gridSelection=t.DEPRECATED_$createGridSelection(),n.anchorCellNodeKey=r)}))}},{key:"formatCells",value:function(e){var n=this;this.editor.update((function(){var r=t.$getSelection();t.DEPRECATED_$isGridSelection(r)||k(11);var o=t.$createRangeSelection(),i=o.anchor,a=o.focus;r.getNodes().forEach((function(t){d(t)&&0!==t.getTextContentSize()&&(i.set(t.getKey(),0,"element"),a.set(t.getKey(),t.getChildrenSize(),"element"),o.formatText(e))})),t.$setSelection(r),n.editor.dispatchCommand (t.SELECTION_CHANGE_COMMAND,void 0)}))}},{key:"clearText",value:function(){var e=this,n=this.editor;n.update((function(){var r=t.$getNodeByKey(e.tableNodeKey);if(!F(r))throw Error("Expected TableNode.");var o=t.$getSelection();t.DEPRECATED_$isGridSelection(o)||k(11),(o=o.getNodes().filter(d)).length===e.grid.columns*e.grid.rows?(r.selectPrevious(),r.remove(),t.$getRoot().selectStart()):(o.forEach((function(e){if(t.$isElementNode(e)){var n=t.$createParagraphNode(),r=t.$createTextNode();n.append(r),e.append(n),e.getChildren().forEach((function(e){e!==n&&e.remove()}))}})),T(n,e.grid,null),t.$setSelection(null),n.dispatchCommand (t.SELECTION_CHANGE_COMMAND,void 0))}))}}]),e}();function E(e){for(;null!=e;){var t=e.nodeName;if("TD"===t||"TH"===t){if(void 0===(e=e._cell))break;return e}e=e.parentNode}return null}function C(e){var t=[],n={cells:t,columns:0,rows:0},r=e.firstChild,o=e=0;for(t.length=0;null!=r;){var i=r.nodeName;if("TD"===i||"TH"===i)i={elem:i=r,hasBackgroundColor:""!==i.style.backgroundColor,highlighted:!1,x:e,y:o},r._cell=i,void 0===t[o]&&(t[o]=[]),t[o][e]=i;else if(null!=(i=r.firstChild)){r=i;continue}if(null!=(i=r.nextSibling))e++,r=i;else if(null!=(i=r.parentNode)){if(null==(r=i.nextSibling))break;o++,e=0}}return n.columns=e+1,n.rows=o+1,n}function T(e,t,n){var r=new Set(n?n.getNodes():[]);I(t,(function(t,n){var o=t.elem;r.has(n)?(t.highlighted=!0,R(e,t)):(t.highlighted=!1,A(e,t),o.getAttribute("style")||o.removeAttribute("style"))}))}function I(e,n){e=e.cells;for(var r=0;r<e.length;r++)for(var o=e[r],i=0;i<o.length;i++){var a=o[i],s=t.$getNearestNodeFromDOMNode(a.elem);null!==s&&n(a,s,{x:i,y:r})}}function B(e,t){t.disableHighlightStyle(),I(t.grid,(function(t){t.highlighted=!0,R(e,t)}))}var O=function(e,t,n,r,o){var i="forward"===o;switch(o){case"backward":case"forward":return n!==(i?e.grid.columns-1:0)?(e=t.getCellNodeFromCordsOrThrow(n+(i?1:-1),r,e.grid),i?e.selectStart():e.selectEnd()):r!==(i?e.grid.rows-1:0)?(e=t.getCellNodeFromCordsOrThrow(i?0:e.grid.columns-1,r+(i?1:-1),e.grid),i?e.selectStart():e.selectEnd()):i?t.selectNext():t.selectPrevious(),!0;case"up":return 0!==r?t.getCellNodeFromCordsOrThrow(n,r-1,e.grid).selectEnd():t.selectPrevious(),!0;case"down":return r!==e.grid.rows-1?t.getCellNodeFromCordsOrThrow(n,r+1,e.grid).selectStart():t.selectNext(),!0;default:return!1}};function P(e,n){if(t.$isRangeSelection(e)||t.DEPRECATED_$isGridSelection(e)){var r=n.isParentOf(e.anchor.getNode());return e=n.isParentOf(e.focus.getNode()),r&&e}return!1}function R(e,n){e=n.elem,d(n=t.$getNearestNodeFromDOMNode(e))||k(131),null===n.getBackgroundColor()?e.style.setProperty("background-color","rgb(172,206,247)"):e.style.setProperty("background-image","linear-gradient(to right, rgba(172,206,247,0.85), rgba(172,206,247,0.85))"),e.style.setProperty("caret-color","transparent")}function A(e,n){e=n.elem,d(n=t.$getNearestNodeFromDOMNode(e))||k(131),null===n.getBackgroundColor()&&e.style.removeProperty("background-color"),e.style.removeProperty("background-image"),e.style.removeProperty("caret-color")}function M(e){return d(e=n.$findMatchingParent(e,d))?e:null}function N(e){return F(e=n.$findMatchingParent(e,F))?e:null}function D(e,r,o,i,a){var s=t.$getSelection();if(!P(s,i))return!1;if(t.$isRangeSelection(s)&&s.isCollapsed()){if("backward"===o||"forward"===o)return!1;var l=s,c=l.anchor,u=l.focus;s=n.$findMatchingParent(c.getNode(),d);var f=n.$findMatchingParent(u.getNode(),d);if(!d(s)||!s.is(f))return!1;f=e.getElementByKey(s.__key);var p=e.getElementByKey(c.key);if(null==p||null==f)return!1;if("element"===c.type)f=p.getBoundingClientRect();else{if(null===(f=window.getSelection())||0===f.rangeCount)return!1;f=f.getRangeAt(0).getBoundingClientRect()}if(null==(p="up"===o?s.getFirstChild():s.getLastChild())||null==(e=e.getElementByKey(p.__key)))return!1;if(e=e.getBoundingClientRect(),"up"===o?e.top>f.top-f.height:f.bottom+f.height>e.bottom)return L(r),s=i.getCordsFromCellNode(s,a.grid),r.shiftKey?(o=i.getCellFromCordsOrThrow(s.x,s.y,a.grid),a.setAnchorCellForSelection(o),a.setFocusCellForSelection(o,!0),!0):O(a,i,s.x,s.y,o)}else if(t.DEPRECATED_$isGridSelection(s)){var h=s,m=h.anchor,v=h.focus;return s=n.$findMatchingParent(m.getNode(),d),e=n.$findMatchingParent(v.getNode(),d),!(!d(s)||!d(e))&&(L(r),r.shiftKey?(r=i.getCordsFromCellNode(e,a.grid),function(e,t,n,r,o){var i="forward"===o;switch(o){case"backward":case"forward":return n!==(i?e.grid.columns-1:0)&&e.setFocusCellForSelection(t.getCellFromCordsOrThrow(n+(i?1:-1),r,e.grid)),!0;case"up":return 0!==r&&(e.setFocusCellForSelection(t.getCellFromCordsOrThrow(n,r-1,e.grid)),!0);case"down":return r!==e.grid.rows-1&&(e.setFocusCellForSelection(t.getCellFromCordsOrThrow(n,r+1,e.grid)),!0);default:return!1}}(a,i,r.x,r.y,o)):(e.selectEnd(),!0))}return!1}function L(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}var j=function(e){(0,h.Z)(a,e);var i=(0,m.Z)(a);function a(e){return(0,v.Z)(this,a),i.call(this,e)}return(0,g.Z)(a,[{key:"exportJSON",value:function(){return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(a.prototype),"exportJSON",this).call(this)),{},{type:"table",version:1})}},{key:"createDOM",value:function(e){var t=document.createElement("table");return n.addClassNamesToElement(t,e.theme.table),t}},{key:"updateDOM",value:function(){return!1}},{key:"exportDOM",value:function(e){var t=this;return(0,o.Z)((0,o.Z)({},(0,f.Z)((0,p.Z)(a.prototype),"exportDOM",this).call(this,e)),{},{after:function(e){if(e){var n=e.cloneNode(),o=document.createElement("colgroup"),i=document.createElement("tbody");if(i.append.apply(i,(0,r.Z)(e.children)),!w(e=t.getFirstChildOrThrow()))throw Error("Expected to find row node.");e=e.getChildrenSize();for(var a=0;a<e;a++){var s=document.createElement("col");o.append(s)}return n.replaceChildren(o,i),n}}})}},{key:"canExtractContents",value:function(){return!1}},{key:"canBeEmpty",value:function(){return!1}},{key:"isShadowRoot",value:function(){return!0}},{key:"getCordsFromCellNode",value:function(e,n){var r=n,o=r.rows,i=r.cells;for(n=0;n<o;n++){var a=i[n];if(null==a)throw Error("Row not found at y:".concat(n));if(-1!==(a=a.findIndex((function(n){var r=n.elem;return t.$getNearestNodeFromDOMNode(r)===e}))))return{x:a,y:n}}throw Error("Cell not found in table.")}},{key:"getCellFromCords",value:function(e,t,n){var r;return null==(t=(n=n.cells)[t])?null:null!==(r=e=t[e])&&void 0!==r?r:null}},{key:"getCellFromCordsOrThrow",value:function(e,t,n){if(!(e=this.getCellFromCords(e,t,n)))throw Error("Cell not found at cords.");return e}},{key:"getCellNodeFromCords",value:function(e,n,r){return null==(e=this.getCellFromCords(e,n,r))?null:d(e=t.$getNearestNodeFromDOMNode(e.elem))?e:null}},{key:"getCellNodeFromCordsOrThrow",value:function(e,t,n){if(!(e=this.getCellNodeFromCords(e,t,n)))throw Error("Node at cords not TableCellNode.");return e}},{key:"canSelectBefore",value:function(){return!0}},{key:"canIndent",value:function(){return!1}}],[{key:"getType",value:function(){return"table"}},{key:"clone",value:function(e){return new a(e.__key)}},{key:"importDOM",value:function(){return{table:function(){return{conversion:z,priority:1}}}}},{key:"importJSON",value:function(){return W()}}]),a}(t.DEPRECATED_GridNode);function z(){return{node:W()}}function W(){return t.$applyNodeReplacement(new j)}function F(e){return e instanceof j}function H(e){if(e=n.$findMatchingParent(e,(function(e){return w(e)})),w(e))return e;throw Error("Expected table cell to be inside of table row.")}function U(e){if(e=n.$findMatchingParent(e,(function(e){return F(e)})),F(e))return e;throw Error("Expected table cell to be inside of table.")}function G(e,t){var n=U(e),r=n.getCordsFromCellNode(e,t),o=r.x,i=r.y;return{above:n.getCellNodeFromCords(o,i-1,t),below:n.getCellNodeFromCords(o,i+1,t),left:n.getCellNodeFromCords(o-1,i,t),right:n.getCellNodeFromCords(o+1,i,t)}}function q(e){null===(e=e.getFirstDescendant())&&k(124),e.getParentOrThrow().selectStart()}function K(e,t){var n=e.getFirstChild();null!==n?n.insertBefore(t):e.append(t)}var V=t.createCommand ("INSERT_TABLE_COMMAND");e.$createTableCellNode=u,e.$createTableNode=W,e.$createTableNodeWithDimensions=function(e,n){for(var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=W(),i=0;i<e;i++){for(var s=x(),l=0;l<n;l++){var c=a.NO_STATUS;"object"==typeof r?(0===i&&r.rows&&(c|=a.ROW),0===l&&r.columns&&(c|=a.COLUMN)):r&&(0===i&&(c|=a.ROW),0===l&&(c|=a.COLUMN)),c=u(c);var d=t.$createParagraphNode();d.append(t.$createTextNode()),c.append(d),s.append(c)}o.append(s)}return o},e.$createTableRowNode=x,e.$deleteTableColumn=function(e,t){for(var n=e.getChildren(),r=0;r<n.length;r++){var o=n[r];if(w(o)){if(t>=(o=o.getChildren()).length||0>t)throw Error("Table column target index out of range");o[t].remove()}}return e},e.$deleteTableColumn__EXPERIMENTAL=function(){var e=t.$getSelection();t.$isRangeSelection(e)||t.DEPRECATED_$isGridSelection(e)||k(118);var n=e.anchor.getNode();e=e.focus.getNode();var r=t.DEPRECATED_$getNodeTriplet(n),o=(0,s.Z)(r,3),i=o[0],a=o[2],l=t.DEPRECATED_$getNodeTriplet(e);n=(0,s.Z)(l,1)[0];var c=t.DEPRECATED_$computeGridMap(a,i,n),u=(0,s.Z)(c,3),d=u[0],f=u[1],p=u[2],h=f.startColumn,m=p.startRow,v=p.startColumn;e=Math.min(h,v);var g=(h=Math.max(h+i.__colSpan-1,v+n.__colSpan-1))-e+1;if(d[0].length===h-e+1)a.selectPrevious(),a.remove();else{for(var y=d.length,b=0;b<y;b++)for(var x=e;x<=h;x++){var w=d[b][x],S=w.cell,_=w.startColumn;_<e?x===e&&S.setColSpan(S.__colSpan-Math.min(g,S.__colSpan-(e-_))):_+S.__colSpan-1>h?x===h&&S.setColSpan(S.__colSpan-(h-_+1)):S.remove()}void 0!==(n=(e=d[m])[v+n.__colSpan])?q(n=n.cell):q(n=e[v-1].cell)}},e.$deleteTableRow__EXPERIMENTAL=function(){var e=t.$getSelection();t.$isRangeSelection(e)||t.DEPRECATED_$isGridSelection(e)||k(118);var n=e.anchor.getNode();e=e.focus.getNode();var r=t.DEPRECATED_$getNodeTriplet(n),o=(0,s.Z)(r,3),i=o[0],a=o[2],l=t.DEPRECATED_$getNodeTriplet(e);e=(0,s.Z)(l,1)[0];var c=t.DEPRECATED_$computeGridMap(a,i,e),u=(0,s.Z)(c,3),d=u[0],f=u[1],p=u[2];n=f.startRow;var h=p.startRow;if(e=h+e.__rowSpan-1,d.length===e-n+1)a.remove();else{h=d[0].length;for(var m=d[e+1],v=a.getChildAtIndex(e+1),g=e;g>=n;g--){for(var y=h-1;0<=y;y--){var b=d[g][y],x=b.cell,w=b.startRow;if(b.startColumn===y&&(g===n&&w<n&&x.setRowSpan(x.__rowSpan-(w-n)),w>=n&&w+x.__rowSpan-1>e))if(x.setRowSpan(x.__rowSpan-(e-w+1)),null===v&&k(122),0===y)K(v,x);else{m[y-1].cell.insertAfter(x)}}y=a.getChildAtIndex(g),t.DEPRECATED_$isGridRowNode(y)||k(123,String(g)),y.remove()}void 0!==m?q(n=m[0].cell):q(n=d[n-1][0].cell)}},e.$getElementGridForTableNode=function(e,t){if(null==(e=e.getElementByKey(t.getKey())))throw Error("Table Element Not Found");return C(e)},e.$getTableCellNodeFromLexicalNode=function(e){return e=n.$findMatchingParent(e,(function(e){return d(e)})),d(e)?e:null},e.$getTableColumnIndexFromTableCellNode=function(e){return H(e).getChildren().findIndex((function(t){return t.is(e)}))},e.$getTableNodeFromLexicalNodeOrThrow=U,e.$getTableRowIndexFromTableCellNode=function(e){var t=H(e);return U(t).getChildren().findIndex((function(e){return e.is(t)}))},e.$getTableRowNodeFromTableCellNodeOrThrow=H,e.$insertTableColumn=function(e,n){for(var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=e.getChildren(),l=0;l<s.length;l++){var c=s[l];if(w(c))for(var f=0;f<o;f++){var p=c.getChildren();if(n>=p.length||0>n)throw Error("Table column target index out of range");d(p=p[n])||k(12);var h=G(p,i),m=h.left,v=h.right,g=a.NO_STATUS;(m&&m.hasHeaderState(a.ROW)||v&&v.hasHeaderState(a.ROW))&&(g|=a.ROW),(g=u(g)).append(t.$createParagraphNode()),r?p.insertAfter(g):p.insertBefore(g)}}return e},e.$insertTableColumn__EXPERIMENTAL=function(){var e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];function r(){var e=u(a.NO_STATUS).append(t.$createParagraphNode());return null===y&&(y=e),e}var o=t.$getSelection();t.$isRangeSelection(o)||t.DEPRECATED_$isGridSelection(o)||k(118);var i=o.anchor.getNode();o=o.focus.getNode(),e=t.DEPRECATED_$getNodeTriplet(i),i=(0,s.Z)(e,1)[0];var l=t.DEPRECATED_$getNodeTriplet(o),c=(0,s.Z)(l,3),d=c[0],f=c[2],p=t.DEPRECATED_$computeGridMap(f,d,i),h=(0,s.Z)(p,3),m=h[0],v=h[1],g=h[2];i=m.length,o=n?Math.max(v.startColumn,g.startColumn):Math.min(v.startColumn,g.startColumn),n=n?o+d.__colSpan-1:o-1,o=f.getFirstChild(),t.DEPRECATED_$isGridRowNode(o)||k(120);var y=null,b=o;e:for(o=0;o<i;o++){0!==o&&(b=b.getNextSibling(),t.DEPRECATED_$isGridRowNode(b)||k(121));var x=m[o];if(0>n)K(b,r());else{var w=x[n],S=w.cell,_=w.startColumn,E=w.startRow;if(_+S.__colSpan-1<=n){for(var C=S,T=E,I=n;T!==o&&1<C.__rowSpan;){if(!(0<=(I-=S.__colSpan))){b.append(r());continue e}var B=x[I],O=B.cell,P=B.startRow;C=O,T=P}C.insertAfter(r())}else S.setColSpan(S.__colSpan+1)}}null!==y&&q(y)},e.$insertTableRow=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=e.getChildren();if(n>=s.length||0>n)throw Error("Table row target index out of range");if(!w(n=s[n]))throw Error("Row before insertion index does not exist.");for(s=0;s<o;s++){for(var l=n.getChildren(),c=l.length,f=x(),p=0;p<c;p++){var h=l[p];d(h)||k(12);var m=G(h,i),v=m.above,g=m.below;h=a.NO_STATUS;var y=v&&v.getWidth()||g&&g.getWidth()||void 0;(v&&v.hasHeaderState(a.COLUMN)||g&&g.hasHeaderState(a.COLUMN))&&(h|=a.COLUMN),(h=u(h,1,y)).append(t.$createParagraphNode()),f.append(h)}r?n.insertAfter(f):n.insertBefore(f)}return e},e.$insertTableRow__EXPERIMENTAL=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=t.$getSelection();t.$isRangeSelection(n)||t.DEPRECATED_$isGridSelection(n)||k(118),n=n.focus.getNode();var r=t.DEPRECATED_$getNodeTriplet(n),o=(0,s.Z)(r,3),i=o[0],l=o[2],c=t.DEPRECATED_$computeGridMap(l,i,i),d=(0,s.Z)(c,2),f=d[0],p=d[1];n=f[0].length;var h=p.startRow;if(e){var m=f[e=h+i.__rowSpan-1];h=x();for(var v=0;v<n;v++){var g=m[v],y=g.cell,b=g.startRow;b+y.__rowSpan-1<=e?h.append(u(a.NO_STATUS)):y.setRowSpan(y.__rowSpan+1)}n=l.getChildAtIndex(e),t.DEPRECATED_$isGridRowNode(n)||k(119),n.insertAfter(h)}else{for(m=f[h],e=x(),v=0;v<n;v++){var w=m[v],S=w.cell,_=w.startRow;_===h?e.append(u(a.NO_STATUS)):S.setRowSpan(S.__rowSpan+1)}n=l.getChildAtIndex(h),t.DEPRECATED_$isGridRowNode(n)||k(119),n.insertBefore(e)}},e.$isTableCellNode=d,e.$isTableNode=F,e.$isTableRowNode=w,e.$removeTableRowAtIndex=function(e,t){var n=e.getChildren();if(t>=n.length||0>t)throw Error("Expected table cell to be inside of table row.");return n[t].remove(),e},e.$unmergeCell=function(){var e=t.$getSelection();t.$isRangeSelection(e)||t.DEPRECATED_$isGridSelection(e)||k(118),e=e.anchor.getNode();var n=t.DEPRECATED_$getNodeTriplet(e),r=(0,s.Z)(n,3),o=r[0],i=r[1],l=r[2];e=o.__colSpan;var c=o.__rowSpan;if(1<e){for(var d=1;d<e;d++)o.insertAfter(u(a.NO_STATUS));o.setColSpan(1)}if(1<c){var f=t.DEPRECATED_$computeGridMap(l,o,o),p=(0,s.Z)(f,2),h=p[0],m=p[1],v=m.startColumn,g=m.startRow;for(d=1;d<c;d++){var y=g+d,b=h[y],x=i.getNextSibling();t.DEPRECATED_$isGridRowNode(x)||k(125);for(var w=null,S=0;S<v;S++){var _=b[S],E=_.cell;_.startRow===y&&(w=E),1<E.__colSpan&&(S+=E.__colSpan-1)}if(null===w)for(w=0;w<e;w++)K(x,u(a.NO_STATUS));else for(x=0;x<e;x++)w.insertAfter(u(a.NO_STATUS))}o.setRowSpan(1)}},e.INSERT_TABLE_COMMAND=V,e.TableCellHeaderStates=a,e.TableCellNode=l,e.TableNode=j,e.TableRowNode=y,e.TableSelection=_,e.applyTableHandlers=function(e,r,o,i){function a(t){return t=e.getCordsFromCellNode(t,l.grid),e.getCellFromCordsOrThrow(t.x,t.y,l.grid)}var s=o.getRootElement();if(null===s)throw Error("No root element.");var l=new _(o,e.getKey()),c=o._window||window;r.__lexicalTableSelection=l,r.addEventListener("mousedown",(function(e){setTimeout((function(){if(0===e.button&&c){var t=E(e.target);null!==t&&(L(e),l.setAnchorCellForSelection(t));var n=function(e){var t=E(e.target);null===t||l.anchorX===t.x&&l.anchorY===t.y||(e.preventDefault(),l.setFocusCellForSelection(t))};c.addEventListener("mouseup",(function e(){c.removeEventListener("mouseup",e),c.removeEventListener("mousemove",n)})),c.addEventListener("mousemove",n)}}),0)}));var u=function(e){0===e.button&&o.update((function(){var n=t.$getSelection(),r=e.target;t.DEPRECATED_$isGridSelection(n)&&n.gridKey===l.tableNodeKey&&s.contains(r)&&l.clearHighlight()}))};c.addEventListener("mousedown",u),l.listenersToRemove.add((function(){return c.removeEventListener("mousedown",u)})),l.listenersToRemove.add(o.registerCommand (t.KEY_ARROW_DOWN_COMMAND,(function(t){return D(o,t,"down",e,l)}),t.COMMAND_PRIORITY_HIGH)),l.listenersToRemove.add(o.registerCommand (t.KEY_ARROW_UP_COMMAND,(function(t){return D(o,t,"up",e,l)}),t.COMMAND_PRIORITY_HIGH)),l.listenersToRemove.add(o.registerCommand (t.KEY_ARROW_LEFT_COMMAND,(function(t){return D(o,t,"backward",e,l)}),t.COMMAND_PRIORITY_HIGH)),l.listenersToRemove.add(o.registerCommand (t.KEY_ARROW_RIGHT_COMMAND,(function(t){return D(o,t,"forward",e,l)}),t.COMMAND_PRIORITY_HIGH)),l.listenersToRemove.add(o.registerCommand (t.KEY_ESCAPE_COMMAND,(function(e){var r=t.$getSelection();return!(!t.DEPRECATED_$isGridSelection(r)||(r=n.$findMatchingParent(r.focus.getNode(),d),!d(r)))&&(L(e),r.selectEnd(),!0)}),t.COMMAND_PRIORITY_HIGH));return[t.DELETE_WORD_COMMAND,t.DELETE_LINE_COMMAND,t.DELETE_CHARACTER_COMMAND].forEach((function(r){l.listenersToRemove.add(o.registerCommand (r,function(r){return function(){var o=t.$getSelection();if(!P(o,e))return!1;if(t.DEPRECATED_$isGridSelection(o))return l.clearText(),!0;if(t.$isRangeSelection(o)){var i=n.$findMatchingParent(o.anchor.getNode(),(function(e){return d(e)}));if(!d(i))return!1;var a=o.anchor.getNode(),s=o.focus.getNode();if(a=e.isParentOf(a),s=e.isParentOf(s),a&&!s||s&&!a)return l.clearText(),!0;if(a=(s=n.$findMatchingParent(o.anchor.getNode(),(function(e){return t.$isElementNode(e)})))&&n.$findMatchingParent(s,(function(e){return t.$isElementNode(e)&&d(e.getParent())})),!t.$isElementNode(a)||!t.$isElementNode(s))return!1;if(r===t.DELETE_LINE_COMMAND&&null===a.getPreviousSibling())return!0;if((r===t.DELETE_CHARACTER_COMMAND||r===t.DELETE_WORD_COMMAND)&&o.isCollapsed()&&0===o.anchor.offset&&s!==a){o=s.getChildren();var c=t.$createParagraphNode();return o.forEach((function(e){return c.append(e)})),s.replace(c),s.getWritable().__parent=i.getKey(),!0}}return!1}}(r),t.COMMAND_PRIORITY_CRITICAL))})),r=function(r){var o=t.$getSelection();return!!P(o,e)&&(t.DEPRECATED_$isGridSelection(o)?(r.preventDefault(),r.stopPropagation(),l.clearText(),!0):(t.$isRangeSelection(o)&&(r=n.$findMatchingParent(o.anchor.getNode(),(function(e){return d(e)})),d(r)),!1))},l.listenersToRemove.add(o.registerCommand (t.KEY_BACKSPACE_COMMAND,r,t.COMMAND_PRIORITY_CRITICAL)),l.listenersToRemove.add(o.registerCommand (t.KEY_DELETE_COMMAND,r,t.COMMAND_PRIORITY_CRITICAL)),l.listenersToRemove.add(o.registerCommand (t.FORMAT_TEXT_COMMAND,(function(r){var o=t.$getSelection();return!!P(o,e)&&(t.DEPRECATED_$isGridSelection(o)?(l.formatCells(r),!0):(t.$isRangeSelection(o)&&(r=n.$findMatchingParent(o.anchor.getNode(),(function(e){return d(e)})),d(r)),!1))}),t.COMMAND_PRIORITY_CRITICAL)),l.listenersToRemove.add(o.registerCommand (t.CONTROLLED_TEXT_INSERTION_COMMAND,(function(){var r=t.$getSelection();return P(r,e)&&(t.DEPRECATED_$isGridSelection(r)?l.clearHighlight():t.$isRangeSelection(r)&&(r=n.$findMatchingParent(r.anchor.getNode(),(function(e){return d(e)})),d(r))),!1}),t.COMMAND_PRIORITY_CRITICAL)),i&&l.listenersToRemove.add(o.registerCommand (t.KEY_TAB_COMMAND,(function(n){var r=t.$getSelection();return!!(t.$isRangeSelection(r)&&r.isCollapsed()&&P(r,e)&&(r=M(r.anchor.getNode()),null!==r))&&(L(n),r=e.getCordsFromCellNode(r,l.grid),O(l,e,r.x,r.y,n.shiftKey?"backward":"forward"),!0)}),t.COMMAND_PRIORITY_CRITICAL)),l.listenersToRemove.add(o.registerCommand (t.FOCUS_COMMAND,(function(){return e.isSelected()}),t.COMMAND_PRIORITY_HIGH)),l.listenersToRemove.add(o.registerCommand (t.SELECTION_CHANGE_COMMAND,(function(){var n=t.$getSelection(),r=t.$getPreviousSelection();if(t.$isRangeSelection(n)){var i=n.anchor,s=n.focus,c=i.getNode(),u=s.getNode();c=M(c),u=M(u);var d=c&&e.is(N(c)),f=u&&e.is(N(u)),p=d!==f;f=d&&f,d=n.isBackward(),p?((c=n.clone()).focus.set(e.getKey(),d?0:e.getChildrenSize(),"element"),t.$setSelection(c),B(o,l)):f&&!c.is(u)&&(l.setAnchorCellForSelection(a(c)),l.setFocusCellForSelection(a(u),!0))}return n&&!n.is(r)&&(t.DEPRECATED_$isGridSelection(n)||t.DEPRECATED_$isGridSelection(r))&&l.gridSelection&&!l.gridSelection.is(r)?(t.DEPRECATED_$isGridSelection(n)&&n.gridKey===l.tableNodeKey?l.updateTableGridSelection(n):!t.DEPRECATED_$isGridSelection(n)&&t.DEPRECATED_$isGridSelection(r)&&r.gridKey===l.tableNodeKey&&l.updateTableGridSelection(null),!1):(l.hasHijackedSelectionStyles&&!e.isSelected()?function(e,t){t.enableHighlightStyle(),I(t.grid,(function(t){var n=t.elem;t.highlighted=!1,A(e,t),n.getAttribute("style")||n.removeAttribute("style")}))}(o,l):!l.hasHijackedSelectionStyles&&e.isSelected()&&B(o,l),!1)}),t.COMMAND_PRIORITY_CRITICAL)),l},e.getCellFromTarget=E,e.getTableSelectionFromTableElement=function(e){return e.__lexicalTableSelection}}}),Ze=O({"../../../node_modules/@lexical/table/LexicalTable.js":function(e,t){var n=We();t.exports=n}}),Fe=O({"../../../node_modules/@lexical/react/LexicalTablePlugin.prod.js":function(e){var t=V(),n=Ze(),r=$(),o=Z(),i=(L(),N(D));e.TablePlugin=function(e){var a=e.hasCellMerge,c=void 0===a||a,u=e.hasCellBackgroundColor,d=void 0===u||u,f=e.hasTabHandler,p=void 0===f||f,h=t.useLexicalComposerContext(),m=(0,s.Z)(h,1)[0];return i.useEffect((function(){return m.hasNodes([n.TableNode,n.TableCellNode,n.TableRowNode])||function(e){var t=new URLSearchParams;t.append("code",e);for(var n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error("Minified Lexical error #".concat(e,"; visit https://lexical.dev/docs/error?").concat(t," for the full message or use the non-minified dev environment for full errors and additional helpful warnings."))}(10),m.registerCommand (n.INSERT_TABLE_COMMAND,(function(e){var t=e.columns,i=e.rows,a=e.includeHeaders;return t=n.$createTableNodeWithDimensions(Number(i),Number(t),a),r.$insertNodeToNearestRoot(t),t=t.getFirstDescendant(),o.$isTextNode(t)&&t.select(),!0}),o.COMMAND_PRIORITY_EDITOR)}),[m]),i.useEffect((function(){var e=new Map,t=function(t){var r=t.getKey(),o=m.getElementByKey(r);o&&!e.has(r)&&(t=n.applyTableHandlers(t,o,m,p),e.set(r,t))};m.getEditorState().read((function(){var e,r=o.$nodesOfType(n.TableNode),i=(0,l.Z)(r);try{for(i.s();!(e=i.n()).done;){var a=e.value;n.$isTableNode(a)&&t(a)}}catch(s){i.e(s)}finally{i.f()}}));var r=m.registerMutationListener(n.TableNode,(function(r){var i,a=(0,l.Z)(r);try{var c=function(){var a=(0,s.Z)(i.value,2),l=a[0],c=a[1];"created"===c?m.getEditorState().read((function(){var e=o.$getNodeByKey(l);n.$isTableNode(e)&&t(e)})):"destroyed"===c&&(void 0!==(r=e.get(l))&&(r.removeListeners(),e.delete(l)))};for(a.s();!(i=a.n()).done;)c()}catch(u){a.e(u)}finally{a.f()}}));return function(){r();var t,n=(0,l.Z)(e);try{for(n.s();!(t=n.n()).done;){(0,s.Z)(t.value,2)[1].removeListeners()}}catch(o){n.e(o)}finally{n.f()}}}),[m,p]),i.useEffect((function(){if(!c)return m.registerNodeTransform(n.TableCellNode,(function(e){if(1<e.getColSpan()||1<e.getRowSpan()){var t=o.DEPRECATED_$getNodeTriplet(e),r=(0,s.Z)(t,3)[2],i=o.DEPRECATED_$computeGridMap(r,e,e),a=(e=(0,s.Z)(i,1)[0]).length,l=e[0].length;if(r=r.getFirstChild(),!o.DEPRECATED_$isGridRowNode(r))throw Error("Expected TableNode first child to be a RowNode");for(var c=[],u=0;u<a;u++){if(0!==u&&(r=r.getNextSibling(),!o.DEPRECATED_$isGridRowNode(r)))throw Error("Expected TableNode first child to be a RowNode");for(var d=null,f=0;f<l;f++){var p=e[u][f],h=p.cell;if(p.startRow===u&&p.startColumn===f)d=h,c.push(h);else if(1<h.getColSpan()||1<h.getRowSpan())if(h=n.$createTableCellNode(h.__headerState),null!==d)d.insertAfter(h);else{var m=(p=r).getFirstChild();null!==m?m.insertBefore(h):p.append(h)}}}for(var v=0,g=c;v<g.length;v++){var y=g[v];y.setColSpan(1),y.setRowSpan(1)}}}))}),[m,c]),i.useEffect((function(){if(!d)return m.registerNodeTransform(n.TableCellNode,(function(e){null!==e.getBackgroundColor()&&e.setBackgroundColor(null)}))}),[m,d,c]),null}}}),He=O({"../../../node_modules/@lexical/react/LexicalTablePlugin.js":function(e,t){var n=Fe();t.exports=n}}),Ue=O({"../../../node_modules/@lexical/react/LexicalAutoLinkPlugin.prod.js":function(e){var t=q(),n=V(),r=$(),o=Z(),i=(L(),N(D));function a(e,t){for(var n=0;n<t.length;n++){var r=t[n](e);if(r)return r}return null}var l=/[.,;\s]/;function c(e){var t;return e=e.getPreviousSibling(),o.$isElementNode(e)&&(e=e.getLastDescendant()),!(t=null===e||o.$isLineBreakNode(e))&&(t=o.$isTextNode(e))&&(e=e.getTextContent(),t=l.test(e[e.length-1])),t}function u(e){return e=e.getNextSibling(),o.$isElementNode(e)&&(e=e.getFirstDescendant()),null===e||o.$isLineBreakNode(e)||o.$isTextNode(e)&&l.test(e.getTextContent()[0])}function d(e,t,n){for(var r=e.getChildren(),i=r.length,s=0;s<i;s++){var l=r[s];if(!o.$isTextNode(l)||!l.isSimpleText())return f(e),void n(null,e.getURL())}null===(t=a(r=e.getTextContent(),t))||t.text!==r?(f(e),n(null,e.getURL())):c(e)&&u(e)?((r=e.getURL())!==t.url&&(e.setURL(t.url),n(t.url,r)),t.attributes&&((r=e.getRel())!==t.attributes.rel&&(e.setRel(t.attributes.rel||null),n(t.attributes.rel||null,r)),(r=e.getTarget())!==t.attributes.target&&(e.setTarget(t.attributes.target||null),n(t.attributes.target||null,r)))):(f(e),n(null,e.getURL()))}function f(e){var t=e.getChildren(),n=t.length;for(--n;0<=n;n--)e.insertAfter(t[n]);return e.remove(),t.map((function(e){return e.getLatest()}))}function p(e,n,p){i.useEffect((function(){e.hasNodes([t.AutoLinkNode])||function(e){var t=new URLSearchParams;t.append("code",e);for(var n=1;n<arguments.length;n++)t.append("v",arguments[n]);throw Error("Minified Lexical error #".concat(e,"; visit https://lexical.dev/docs/error?").concat(t," for the full message or use the non-minified dev environment for full errors and additional helpful warnings."))}(77);var i=function(e,t){p&&p(e,t)};return r.mergeRegister(e.registerNodeTransform(o.TextNode,(function(e){var r=e.getParentOrThrow(),h=e.getPreviousSibling();if(t.$isAutoLinkNode(r))d(r,n,i);else if(!t.$isLinkNode(r)){if(e.isSimpleText()&&(l.test(e.getTextContent()[0])||!t.$isAutoLinkNode(h))){h=r=e.getTextContent();for(var m,v=0,g=e;(m=a(h,n))&&null!==m;){var y=m.index,b=m.length,x=y+b,w=v+y,k=v+x,S=r,_=e;if((0<w?l.test(S[w-1]):c(_))&&(k<S.length?l.test(S[k]):u(_))){var E,C,T,I,B=void 0;v+y===0?(E=g.splitText(v+b),B=(C=(0,s.Z)(E,2))[0],g=C[1]):(T=g.splitText(v+y,v+y+b),B=(I=(0,s.Z)(T,3))[1],g=I[2]),w=t.$createAutoLinkNode(m.url,m.attributes),(k=o.$createTextNode(m.text)).setFormat(B.getFormat()),k.setDetail(B.getDetail()),w.append(k),B.replace(w),p&&p(m.url,null),v=0}else v+=x;h=h.substring(x)}}r=e.getPreviousSibling(),m=e.getNextSibling(),B=e.getTextContent(),t.$isAutoLinkNode(r)&&!l.test(B[0])&&(r.append(e),d(r,n,i),e=r.getURL(),p&&p(null,e)),t.$isAutoLinkNode(m)&&!l.test(B[B.length-1])&&(f(m),d(m,n,i),e=m.getURL(),p&&p(null,e))}})))}),[e,n,p])}e.AutoLinkPlugin=function(e){var t=e.matchers,r=e.onChange,o=n.useLexicalComposerContext();return p((0,s.Z)(o,1)[0],t,r),null},e.createLinkMatcherWithRegExp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return function(n){var r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(n)}}}}}),$e=O({"../../../node_modules/@lexical/react/LexicalAutoLinkPlugin.js":function(e,t){var n=Ue();t.exports=n}}),Ge=O({"../../../node_modules/@lexical/react/LexicalAutoFocusPlugin.prod.js":function(e){var t=V(),n=(L(),N(D));e.AutoFocusPlugin=function(e){var r=e.defaultSelection,o=t.useLexicalComposerContext(),i=(0,s.Z)(o,1)[0];return n.useEffect((function(){i.focus((function(){var e=document.activeElement,t=i.getRootElement();null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})}),{defaultSelection:r})}),[r,i]),null}}}),qe=O({"../../../node_modules/@lexical/react/LexicalAutoFocusPlugin.js":function(e,t){var n=Ge();t.exports=n}}),Ke=O({"../../../node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js":function(e){var t=V(),n=Z(),r=(L(),N(D)),o=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?r.useLayoutEffect:r.useEffect;e.ClearEditorPlugin=function(e){var r=e.onClear,i=t.useLexicalComposerContext(),a=(0,s.Z)(i,1)[0];return o((function(){return a.registerCommand (n.CLEAR_EDITOR_COMMAND,(function(){return a.update((function(){if(null==r){var e=n.$getRoot(),t=n.$getSelection(),o=n.$createParagraphNode();e.clear(),e.append(o),null!==t&&o.select()}else r()})),!0}),n.COMMAND_PRIORITY_EDITOR)}),[a,r]),null}}}),Ve=O({"../../../node_modules/@lexical/react/LexicalClearEditorPlugin.js":function(e,t){var n=Ke();t.exports=n}}),Ye=O({"../../../node_modules/@lexical/react/LexicalEditorRefPlugin.prod.js":function(e){var t=V();e.EditorRefPlugin=function(e){var n=e.editorRef,r=t.useLexicalComposerContext(),o=(0,s.Z)(r,1)[0];return"function"==typeof n?n(o):"object"==typeof n&&(n.current=o),null}}}),Xe=O({"../../../node_modules/@lexical/react/LexicalEditorRefPlugin.js":function(e,t){var n=Ye();t.exports=n}}),Je=O({"../../../node_modules/@lexical/react/LexicalTypeaheadMenuPlugin.prod.js":function(e){var t=V(),n=Z(),r=(L(),N(D)),o=$(),i=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?r.useLayoutEffect:r.useEffect,a=function(){function e(t){(0,v.Z)(this,e),this.key=t,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}return(0,g.Z)(e,[{key:"setRefElement",value:function(e){this.ref={current:e}}}]),e}(),l=function(e){var t=document.getElementById("typeahead-menu");if(t){var n=t.getBoundingClientRect();n.top+n.height>window.innerHeight&&t.scrollIntoView({block:"center"}),0>n.top&&t.scrollIntoView({block:"center"}),e.scrollIntoView({block:"nearest"})}};function c(e,t){return e=e.getBoundingClientRect(),t=t.getBoundingClientRect(),e.top>t.top&&e.top<t.bottom}function u(e,n,o,i){var a=t.useLexicalComposerContext(),l=(0,s.Z)(a,1)[0];r.useEffect((function(){if(null!=n&&null!=e){var t=l.getRootElement(),r=null!=t?function(e,t){var n=getComputedStyle(e),r="absolute"===n.position;if(t=t?/(auto|scroll|hidden)/:/(auto|scroll)/,"fixed"===n.position)return document.body;for(;e=e.parentElement;)if(n=getComputedStyle(e),(!r||"static"!==n.position)&&t.test(n.overflow+n.overflowY+n.overflowX))return e;return document.body}(t,!1):document.body,a=!1,s=c(n,r),u=function(){a||(window.requestAnimationFrame((function(){o(),a=!1})),a=!0);var e=c(n,r);e!==s&&(s=e,null===i||void 0===i||i(e))},d=new ResizeObserver(o);return window.addEventListener("resize",o),document.addEventListener("scroll",u,{capture:!0,passive:!0}),d.observe(n),function(){d.unobserve(n),window.removeEventListener("resize",o),document.removeEventListener("scroll",u)}}}),[n,l,i,o,e])}var d=n.createCommand ("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function f(e){var t=e.close,a=e.editor,c=e.anchorElementRef,u=e.resolution,f=e.options,p=e.menuRenderFn,h=e.onSelectOption,m=e.shouldSplitNodeWithQuery,v=void 0!==m&&m,g=r.useState(null),y=(0,s.Z)(g,2),b=y[0],x=y[1];r.useEffect((function(){x(0)}),[u.match&&u.match.matchingString]);var w=r.useCallback((function(e){a.update((function(){var r=null!=u.match&&v?function(e){var t,r,o=n.$getSelection();if(!n.$isRangeSelection(o)||!o.isCollapsed())return null;var i=o.anchor;if("text"!==i.type||!(o=i.getNode()).isSimpleText())return null;i=i.offset;for(var a,l=o.getTextContent().slice(0,i),c=e.matchingString,u=e=e.replaceableString.length;u<=c.length;u++)l.substr(-u)===c.substr(0,u)&&(e=u);return 0>(e=i-e)?null:(0===e?(t=o.splitText(i),a=(0,s.Z)(t,1)[0]):(r=o.splitText(e,i),a=(0,s.Z)(r,2)[1]),a)}(u.match):null;h(e,r,t,u.match?u.match.matchingString:"")}))}),[a,v,u.match,h,t]),k=r.useCallback((function(e){var t=a.getRootElement();null!==t&&(t.setAttribute("aria-activedescendant","typeahead-item-"+e),x(e))}),[a]);return r.useEffect((function(){return function(){var e=a.getRootElement();null!==e&&e.removeAttribute("aria-activedescendant")}}),[a]),i((function(){null===f?x(null):null===b&&k(0)}),[f,b,k]),r.useEffect((function(){return o.mergeRegister(a.registerCommand (d,(function(e){var t=e.option;return!(!t.ref||null==t.ref.current)&&(l(t.ref.current),!0)}),n.COMMAND_PRIORITY_LOW))}),[a,k]),r.useEffect((function(){return o.mergeRegister(a.registerCommand (n.KEY_ARROW_DOWN_COMMAND,(function(e){if(null!==f&&f.length&&null!==b){var t=b!==f.length-1?b+1:0;k(t);var n=f[t];null!=n.ref&&n.ref.current&&a.dispatchCommand (d,{index:t,option:n}),e.preventDefault(),e.stopImmediatePropagation()}return!0}),n.COMMAND_PRIORITY_LOW),a.registerCommand (n.KEY_ARROW_UP_COMMAND,(function(e){if(null!==f&&f.length&&null!==b){var t=0!==b?b-1:f.length-1;k(t),null!=(t=f[t]).ref&&t.ref.current&&l(t.ref.current),e.preventDefault(),e.stopImmediatePropagation()}return!0}),n.COMMAND_PRIORITY_LOW),a.registerCommand (n.KEY_ESCAPE_COMMAND,(function(e){return e.preventDefault(),e.stopImmediatePropagation(),t(),!0}),n.COMMAND_PRIORITY_LOW),a.registerCommand (n.KEY_TAB_COMMAND,(function(e){return null!==f&&null!==b&&null!=f[b]&&(e.preventDefault(),e.stopImmediatePropagation(),w(f[b]),!0)}),n.COMMAND_PRIORITY_LOW),a.registerCommand (n.KEY_ENTER_COMMAND,(function(e){return null!==f&&null!==b&&null!=f[b]&&(null!==e&&(e.preventDefault(),e.stopImmediatePropagation()),w(f[b]),!0)}),n.COMMAND_PRIORITY_LOW))}),[w,t,a,f,b,k]),p(c,r.useMemo((function(){return{options:f,selectOptionAndCleanUp:w,selectedIndex:b,setHighlightedIndex:x}}),[w,b,f]),u.match?u.match.matchingString:"")}function p(e,t){var n=getComputedStyle(e),r="absolute"===n.position;if(t=t?/(auto|scroll|hidden)/:/(auto|scroll)/,"fixed"===n.position)return document.body;for(;e=e.parentElement;)if(n=getComputedStyle(e),(!r||"static"!==n.position)&&t.test(n.overflow+n.overflowY+n.overflowX))return e;return document.body}function h(e,t){return e=e.getBoundingClientRect(),t=t.getBoundingClientRect(),e.top>t.top&&e.top<t.bottom}var m=n.createCommand ("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");e.LexicalTypeaheadMenuPlugin=function(e){var o=e.options,i=e.onQueryChange,a=e.onSelectOption,l=e.onOpen,c=e.onClose,d=e.menuRenderFn,p=e.triggerFn,h=e.anchorClassName,m=t.useLexicalComposerContext(),v=(0,s.Z)(m,1)[0],g=r.useState(null),y=(0,s.Z)(g,2),b=y[0],x=y[1];h=function(e,n,o){var i=t.useLexicalComposerContext(),a=(0,s.Z)(i,1)[0],l=r.useRef(document.createElement("div")),c=r.useCallback((function(){var t=a.getRootElement(),n=l.current,r=n.firstChild;if(null!==t&&null!==e){var i=e.getRect(),s=i.left,c=i.top,u=i.width,d=i.height;if(n.style.top="".concat(c+window.pageYOffset,"px"),n.style.left="".concat(s+window.pageXOffset,"px"),n.style.height="".concat(d,"px"),n.style.width="".concat(u,"px"),null!==r){var f=r.getBoundingClientRect();r=f.height,f=f.width;var p=t.getBoundingClientRect();s+f>p.right&&(n.style.left="".concat(p.right-f+window.pageXOffset,"px")),(c+r>window.innerHeight||c+r>p.bottom)&&c-p.top>r&&(n.style.top="".concat(c-r+window.pageYOffset-(d+10),"px"))}n.isConnected||(null!=o&&(n.className=o),n.setAttribute("aria-label","Typeahead menu"),n.setAttribute("id","typeahead-menu"),n.setAttribute("role","listbox"),n.style.display="block",n.style.position="absolute",document.body.append(n)),l.current=n,t.setAttribute("aria-controls","typeahead-menu")}}),[a,e,o]);r.useEffect((function(){var t=a.getRootElement();if(null!==e)return c(),function(){null!==t&&t.removeAttribute("aria-controls");var e=l.current;null!==e&&e.isConnected&&e.remove()}}),[a,c,e]);var d=r.useCallback((function(t){null!==e&&(t||n(null))}),[e,n]);return u(e,l.current,c,d),l}(b,x,h);var w=r.useCallback((function(){x(null),null!=c&&null!==b&&c()}),[c,b]),k=r.useCallback((function(e){x(e),null!=l&&null===b&&l(e)}),[l,b]);return r.useEffect((function(){var e=v.registerUpdateListener((function(){v.getEditorState().read((function(){var e=document.createRange(),t=n.$getSelection(),o=function(e){var t=null;return e.getEditorState().read((function(){var e=n.$getSelection();if(n.$isRangeSelection(e)){var r=e.anchor;"text"!==r.type?t=null:(e=r.getNode()).isSimpleText()?(r=r.offset,t=e.getTextContent().slice(0,r)):t=null}})),t}(v);if(n.$isRangeSelection(t)&&t.isCollapsed()&&null!==o&&null!==e){var a=p(o,v);i(a?a.matchingString:null),null===a||function(e,t){return 0===t&&e.getEditorState().read((function(){var e=n.$getSelection();return!!n.$isRangeSelection(e)&&(e=e.anchor.getNode().getPreviousSibling(),n.$isTextNode(e)&&e.isTextEntity())}))}(v,a.leadOffset)||null===function(e,t){var n=window.getSelection();if(null===n||!n.isCollapsed)return!1;var r=n.anchorNode;if(n=n.anchorOffset,null==r||null==n)return!1;try{t.setStart(r,e),t.setEnd(r,n)}catch(o){return!1}return!0}(a.leadOffset,e)?w():function(e){r.startTransition?r.startTransition(e):e()}((function(){return k({getRect:function(){return e.getBoundingClientRect()},match:a})}))}else w()}))}));return function(){e()}}),[v,p,i,b,w,k]),null===b||null===v?null:r.createElement(f,{close:w,resolution:b,editor:v,anchorElementRef:h,options:o,menuRenderFn:d,shouldSplitNodeWithQuery:!0,onSelectOption:a})},e.MenuOption=a,e.PUNCTUATION="\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;",e.SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND=m,e.getScrollParent=p,e.useBasicTypeaheadTriggerMatch=function(e,t){var n=t.minLength,o=void 0===n?1:n,i=t.maxLength,a=void 0===i?75:i;return r.useCallback((function(t){if(null!==(t=new RegExp("(^|\\s|\\()(["+e+"]((?:[^"+e+"\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;\\s]){0,"+a+"}))$").exec(t))){var n=t[1],r=t[3];if(r.length>=o)return{leadOffset:t.index+n.length,matchingString:r,replaceableString:t[2]}}return null}),[a,o,e])},e.useDynamicPositioning=function(e,n,o,i){var a=t.useLexicalComposerContext(),l=(0,s.Z)(a,1)[0];r.useEffect((function(){if(null!=n&&null!=e){var t=l.getRootElement(),r=null!=t?p(t,!1):document.body,a=!1,s=h(n,r),c=function(){a||(window.requestAnimationFrame((function(){o(),a=!1})),a=!0);var e=h(n,r);e!==s&&(s=e,null===i||void 0===i||i(e))},u=new ResizeObserver(o);return window.addEventListener("resize",o),document.addEventListener("scroll",c,{capture:!0,passive:!0}),u.observe(n),function(){u.unobserve(n),window.removeEventListener("resize",o),document.removeEventListener("scroll",c)}}}),[n,l,i,o,e])}}}),Qe=O({"../../../node_modules/@lexical/react/LexicalTypeaheadMenuPlugin.js":function(e,t){var n=Je();t.exports=n}}),et=M(z()),tt=M(Z()),nt=M(q()),rt=M(X()),ot=M(be()),it=M(we()),at=M(Ee()),st=M(Be()),lt=M(Pe()),ct=M(Ne()),ut=M(Le()),dt=M(ze()),ft=M(He()),pt=M($e()),ht=M(qe()),mt=M(Ve()),vt=M(Xe()),gt=M(V()),yt=M(Qe()),bt=(tt.$addUpdateTag,tt.$applyNodeReplacement,tt.$copyNode,tt.$createLineBreakNode,tt.$createParagraphNode),xt=(tt.$createRangeSelection,tt.$createTextNode),wt=(tt.$getAdjacentNode,tt.$getNearestNodeFromDOMNode,tt.$getNearestRootOrShadowRoot,tt.$getNodeByKey,tt.$getPreviousSelection,tt.$getRoot),kt=(tt.$getSelection,tt.$getTextContent,tt.$hasAncestor,tt.$hasUpdateTag,tt.$insertNodes,tt.$isBlockElementNode,tt.$isDecoratorNode,tt.$isElementNode,tt.$isInlineElementOrDecoratorNode,tt.$isLeafNode,tt.$isLineBreakNode,tt.$isNodeSelection,tt.$isParagraphNode,tt.$isRangeSelection,tt.$isRootOrShadowRoot,tt.$nodesOfType,tt.$parseSerializedNode,tt.$selectAll,tt.$setCompositionKey,tt.$setSelection,tt.$splitNode,ht.AutoFocusPlugin,nt.AutoLinkNode),St=pt.AutoLinkPlugin,_t=(tt.BLUR_COMMAND,tt.CAN_REDO_COMMAND,tt.CAN_UNDO_COMMAND,tt.CLEAR_EDITOR_COMMAND,tt.CLEAR_HISTORY_COMMAND,tt.CLICK_COMMAND,tt.COMMAND_PRIORITY_CRITICAL,tt.COMMAND_PRIORITY_EDITOR,tt.COMMAND_PRIORITY_HIGH,tt.COMMAND_PRIORITY_LOW,tt.COMMAND_PRIORITY_NORMAL,tt.CONTROLLED_TEXT_INSERTION_COMMAND,tt.COPY_COMMAND,tt.CUT_COMMAND,ut.CheckListPlugin,mt.ClearEditorPlugin,it.ContentEditable),Et=(tt.DELETE_CHARACTER_COMMAND,tt.DELETE_LINE_COMMAND,tt.DELETE_WORD_COMMAND,tt.DRAGEND_COMMAND,tt.DRAGOVER_COMMAND,tt.DRAGSTART_COMMAND,tt.DROP_COMMAND,vt.EditorRefPlugin),Ct=et.default,Tt=(tt.FOCUS_COMMAND,tt.FORMAT_ELEMENT_COMMAND,tt.FORMAT_TEXT_COMMAND,at.HistoryPlugin),It=(tt.INDENT_CONTENT_COMMAND,tt.INSERT_LINE_BREAK_COMMAND,tt.INSERT_PARAGRAPH_COMMAND,tt.INSERT_TAB_COMMAND,tt.KEY_ARROW_DOWN_COMMAND,tt.KEY_ARROW_LEFT_COMMAND,tt.KEY_ARROW_RIGHT_COMMAND,tt.KEY_ARROW_UP_COMMAND,tt.KEY_BACKSPACE_COMMAND,tt.KEY_DELETE_COMMAND,tt.KEY_DOWN_COMMAND,tt.KEY_ENTER_COMMAND,tt.KEY_ESCAPE_COMMAND,tt.KEY_MODIFIER_COMMAND,tt.KEY_SPACE_COMMAND,tt.KEY_TAB_COMMAND,rt.LexicalComposer),Bt=(yt.LexicalTypeaheadMenuPlugin,dt.LinkPlugin,ct.ListPlugin,tt.MOVE_TO_END,tt.MOVE_TO_START,tt.OUTDENT_CONTENT_COMMAND,lt.OnChangePlugin),Ot=(tt.PASTE_COMMAND,ot.PlainTextPlugin,tt.REDO_COMMAND,tt.REMOVE_TEXT_COMMAND,st.RichTextPlugin),Pt=(tt.SELECTION_CHANGE_COMMAND,tt.SELECT_ALL_COMMAND,ft.TablePlugin,tt.UNDO_COMMAND,tt.createCommand,gt.useLexicalComposerContext),Rt=n(7666),At=n(3512),Mt=n(2714),Nt=n(2393),Dt=["children","element","onChange","autoLink","placeholder","initialValue","config","maxHeight","disabled","fontSize","lineHeight","editorInstanceRef"],Lt=["element","children"],jt=["element","columns","children"],zt=["variant","element","maxHeight","children"],Wt=["element","variant","showExternal","display","height","minHeight","maxHeight","width","minWidth","maxWidth","size","margin","marginBottom","marginLeft","marginRight","marginTop","marginX","marginY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","paddingX","paddingY","verticalAlign","i18nExternalLinkLabel"],Zt=["size","buttonState","fullWidth","as"],Ft=["size","buttonState","fullWidth","as"],Ht=["size","buttonState","fullWidth","as"],Ut=["size","buttonState","fullWidth","pressed","as"],$t=["size","buttonState","fullWidth","as"],Gt=["size","buttonState","fullWidth","as"],qt=["size","buttonState","fullWidth","as"],Kt=["size","buttonState","fullWidth","as"],Vt=["size","buttonState","fullWidth","as"],Yt=["size","buttonState","fullWidth","as"],Xt=["size","buttonState","fullWidth","pressed","as"],Jt=["size","buttonState","fullWidth","pressed","as"],Qt=["element","i18nExternalLinkLabel","as","fullWidth","disabled","loading","variant","type"],en=["size","children"],tn=["as","children"],nn=["children","orientation","spacing","element"],rn=["children","onDismiss","i18nDismissLabel","element","attachmentIcon"],on=["variants"],an=["children","color","fontSize","lineHeight","element"],sn=["children","element"],ln=["children"],cn=["children","href","element"],un=["element","children"],dn=Object.create,fn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,hn=Object.getOwnPropertyNames,mn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty,gn=function(e,t,n){return n=null!=e?dn(mn(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(hn(t));try{var a=function(){var i=o.value;!vn.call(e,i)&&i!==n&&fn(e,i,{get:function(){return t[i]},enumerable:!(r=pn(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:fn(n,"default",{value:e,enumerable:!0}),e)}((se={"../../../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}},function(){return le||(0,se[hn(se)[0]])((le={exports:{}}).exports,le),le.exports})()),yn=/(?:(?:https?:\/\/(?:www\.)?)|(?:www\.))[\w#%+.:=@~-]{1,256}\.[\d()A-Za-z]{1,6}\b[\w#%&()+./:=?@~-]*/,bn=/(?:(?:[^\s"(),.:;<>@[\\\]]+(?:\.[^\s"(),.:;<>@[\\\]]+)*)|(?:".+"))@(?:(?:\[(?:\d{1,3}\.){3}\d{1,3}])|(?:(?:[\dA-Za-z\-]+\.)+[A-Za-z]{2,}))/,xn=[function(e){var t=yn.exec(e);return t&&{index:t.index,length:t[0].length,text:t[0],url:t[0]}},function(e){var t=bn.exec(e);return t&&{index:t.index,length:t[0].length,text:t[0],url:"mailto:".concat(t[0])}}],wn=function(){return y.createElement(St,{matchers:xn})};wn.displayName="AutoLinkPlugin";var kn=y.createContext({isDisabled:!1}),Sn=function(e){var t=e.placeholder,n=e.element,r=y.useContext(kn).isDisabled;return y.createElement(c.Box,{position:"absolute",top:"space30",left:"space40",right:"space40",display:"flex",alignItems:"center",color:r?"colorTextWeaker":"colorTextWeak",pointerEvents:"none",userSelect:"none",fontStyle:"italic",element:n},t)};Sn.displayName="PlaceholderWrapper";var _n=function(e){var t=e.disabled,n=Pt(),r=(0,s.Z)(n,1)[0],o=y.useContext(kn).setIsDisabled;return y.useEffect((function(){void 0!==t&&(void 0!==o&&o(t),r.setEditable(!t))}),[t]),null};_n.displayName="ToggleEditablePlugin";var En={theme:{paragraph:"paste-chat-composer-paragraph"},nodes:[kt]},Cn=(0,Rt.RD)(re||(re=(0,a.Z)(["\n.paste-chat-composer-paragraph {\n  margin: 0;\n  position: relative;\n}\n\n.paste-chat-composer-content-editable:focus {\n  outline: none;\n}\n"]))),Tn=y.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"CHAT_COMPOSER":r,s=e.onChange,l=e.autoLink,u=void 0===l||l,d=e.placeholder,f=void 0===d?"":d,p=e.initialValue,h=e.config,m=e.maxHeight,v=void 0===m?"size30":m,g=e.disabled,b=e.fontSize,x=e.lineHeight,w=e.editorInstanceRef,k=(0,i.Z)(e,Dt),S=y.useContext(kn).setIsDisabled,_=(0,o.Z)((0,o.Z)({},En),{},{editable:!g,editorState:p?function(){return function(e){var t=wt();if(null===t.getFirstChild()){var n=bt();n.append(xt(e)),t.append(n)}}(p)}:void 0}),E=y.useCallback((function(){return void 0!==S?{}:{color:"colorTextWeaker",backgroundColor:"colorBackground"}}),[Boolean(S)]);return y.createElement(c.Box,{flexGrow:1,ref:t,element:a,position:"relative",transition:"background-color 100ms ease-in,box-shadow 100ms ease-in,color 100ms ease-in",paddingY:"space30",paddingX:"space40",borderRadius:"borderRadius20",_focusWithin:{boxShadow:"shadowFocus"},overflowY:"auto",maxHeight:v,disabled:g,"aria-disabled":g,_disabled:E(),fontSize:b,lineHeight:x,gridArea:"1/1"},y.createElement(Rt.TL,{styles:Cn}),y.createElement(It,{initialConfig:(0,gn.default)(_,h)},y.createElement(y.Fragment,null,y.createElement(Ot,{contentEditable:y.createElement(_t,(0,o.Z)((0,o.Z)({},k),{},{className:"paste-chat-composer-content-editable"})),placeholder:y.createElement(Sn,{element:"".concat(a,"_PLACEHOLDER_WRAPPER"),placeholder:f}),ErrorBoundary:Ct}),s&&y.createElement(Bt,{onChange:s}),y.createElement(Tt,null),u&&y.createElement(wn,null),y.createElement(_n,{disabled:g}),w&&y.createElement(Et,{editorRef:w}),n)))}));Tn.displayName="ChatComposer";var In=y.forwardRef((function(e,t){var n=e.element,r=void 0===n?"CHAT_COMPOSER_ACTION_GROUP":n,a=e.children,s=(0,i.Z)(e,Lt);return y.createElement(c.Box,(0,o.Z)((0,o.Z)({},(0,c.safelySpreadBoxProps)(s)),{},{element:r,ref:t,gridArea:"1/2",display:"inline-flex",alignSelf:"end",role:"group",columnGap:"space30",marginBottom:"space30",marginLeft:"space30",marginRight:"space20"}),a)}));In.displayName="ChatComposerActionGroup";var Bn=y.forwardRef((function(e,t){var n=e.element,r=void 0===n?"CHAT_COMPOSER_ATTACHMENT_GROUP":n,a=e.columns,s=void 0===a?2:a,l=e.children,u=(0,i.Z)(e,jt);return y.createElement(c.Box,(0,o.Z)((0,o.Z)({},(0,c.safelySpreadBoxProps)(u)),{},{element:r,ref:t,gridRow:"3",gridColumn:"1/-1",role:"group",display:"grid",gridTemplateColumns:Array.isArray(s)?s.map((function(e){return"repeat(".concat(e,", minmax(0,1fr))")})):"repeat(".concat(s,", 1fr)"),flexWrap:"wrap",columnGap:"space40",paddingBottom:"space30",paddingX:"space10",rowGap:"space40",marginTop:"space50"}),l)}));Bn.displayName="ChatComposerAttachmentGroup";var On={default:{backgroundColor:"colorBackgroundWeaker"},contained:{borderRadius:"borderRadius30",boxShadow:"shadowElevation10",backgroundColor:"colorBackgroundWeaker"}},Pn=y.forwardRef((function(e,t){var n=e.variant,r=void 0===n?"default":n,a=e.element,l=void 0===a?"CHAT_COMPOSER_CONTAINER":a,u=e.maxHeight,d=void 0===u?"size40":u,f=e.children,p=(0,i.Z)(e,zt),h=y.useState(!1),m=(0,s.Z)(h,2),v=m[0],g=m[1];return y.createElement(kn.Provider,{value:{isDisabled:v,setIsDisabled:g}},y.createElement(c.Box,(0,o.Z)((0,o.Z)({},(0,c.safelySpreadBoxProps)(p)),{},{element:l,ref:t,display:"grid",gridTemplateRows:"auto-fit",gridAutoColumns:"1fr auto",disabled:v,"aria-disabled":v,_disabled:{color:"colorTextWeaker",backgroundColor:"colorBackground"},padding:"space30",maxHeight:d,overflowY:"auto",width:"100%"},On[r]),f))}));Pn.displayName="ChatComposerContainer";var Rn=function(){var e=1,t=new WeakMap;return function n(r,o){return"number"==typeof r||"string"==typeof r?o?"idx-".concat(o):"val-".concat(r):t.has(r)?"uid"+t.get(r):(t.set(r,e++),n(r))}},An=(Rn(),function(e){return void 0===e&&(e=""),{value:1,prefix:e,uid:Rn()}}),Mn=An(),Nn=y.createContext(An()),Dn=function(){var e=(0,y.useContext)(Nn),t=(0,y.useState)((function(){return function(e){var t,n=e||Mn,r=(t=n)?t.prefix:"",o=function(e){return e.value++}(n),i=r+o;return{uid:i,gen:function(e){return i+n.uid(e)}}}(e)}))[0];return t},Ln=y.useId,jn=void 0!==Ln?Ln:function(){return Dn().uid},zn=void 0!==Ln?function(){var e=Ln();return function(t){return"".concat(e,"-").concat(t)}}:function(){return Dn().gen},Wn=Object.defineProperty,Zn=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,Gn=function(e,t,n){return t in e?Wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},qn=y.forwardRef((function(e,t){var n=e,r=n.as,o=void 0===r?"span":r,i=n.color,a=void 0===i?"currentColor":i,s=n.display,u=void 0===s?"block":s,d=n.element,f=void 0===d?"ICON":d,p=n.size,h=void 0===p?"sizeIcon30":p,m=function(e,t){var n={};for(var r in e)Un.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Hn){var o,i=(0,l.Z)(Hn(e));try{for(i.s();!(o=i.n()).done;)r=o.value,t.indexOf(r)<0&&$n.call(e,r)&&(n[r]=e[r])}catch(a){i.e(a)}finally{i.f()}}return n}(n,["as","color","display","element","size"]);return y.createElement(c.Box,function(e,t){return Zn(e,Fn(t))}(function(e,t){for(var n in t||(t={}))Un.call(t,n)&&Gn(e,n,t[n]);if(Hn){var r,o=(0,l.Z)(Hn(t));try{for(o.s();!(r=o.n()).done;)n=r.value,$n.call(t,n)&&Gn(e,n,t[n])}catch(i){o.e(i)}finally{o.f()}}return e}({},(0,c.safelySpreadBoxProps)(m)),{as:o,element:f,lineHeight:"lineHeight0",display:u,color:a,size:h,ref:t,flexShrink:0}))}));qn.displayName="IconWrapper";var Kn=y.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,c=e.decorative,u="LinkExternalIcon-".concat(jn());if(!c&&null==l)throw new Error("[LinkExternalIcon]: Missing a title for non-decorative icon.");return y.createElement(qn,{as:n,display:r,element:i,size:a,color:s,ref:t},y.createElement("svg",{role:"img","aria-hidden":c,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":u},l?y.createElement("title",{id:u},l):null,y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.4 4.5a.5.5 0 01.5.5v.1a.5.5 0 01-.5.5H5.6v8.8h8.8v-2.8a.5.5 0 01.41-.492l.09-.008h.1a.5.5 0 01.492.41l.008.09V15a.5.5 0 01-.41.492L15 15.5H5a.5.5 0 01-.492-.41L4.5 15V5a.5.5 0 01.41-.492L5 4.5h3.4zm6.6 0a.5.5 0 01.5.5v.1l-.001.01.001 3.29a.5.5 0 01-.5.5h-.1a.5.5 0 01-.5-.5l-.001-1.935-3.967 3.967a.611.611 0 01-.78.07l-.084-.07a.611.611 0 01-.07-.78l.07-.084L13.534 5.6H11.6a.5.5 0 01-.5-.5V5a.5.5 0 01.5-.5H15z"})))}));Kn.displayName="LinkExternalIcon";var Vn=y.forwardRef((function(e,t){return y.createElement(c.Box,(0,o.Z)((0,o.Z)({},e),{},{as:"a",color:"colorTextLink",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref:t,textDecoration:"underline",_active:{color:"colorTextLinkStrongest",textDecoration:"none"},_focus:{boxShadow:"shadowFocus",color:"colorTextLink",textDecoration:"underline",borderRadius:"borderRadius20"},_hover:{color:"colorTextLinkStronger",textDecoration:"none"}}),e.children)}));Vn.displayName="DefaultAnchor";var Yn=y.forwardRef((function(e,t){return y.createElement(c.Box,(0,o.Z)((0,o.Z)({},e),{},{as:"a",color:"colorTextInverse",fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",outline:"none",ref:t,textDecoration:"underline",_active:{color:"colorTextInverse",textDecoration:"none"},_focus:{boxShadow:"shadowFocusInverse",color:"colorTextInverse",textDecoration:"underline",borderRadius:"borderRadius20"},_hover:{color:"colorTextInverse",textDecoration:"none"}}),e.children)}));Yn.displayName="InverseAnchor";var Xn={inverse:Yn,default:Vn},Jn=/^(https?:)\S*$/,Qn=function(e){if(t=e,Jn.test(t))return{rel:"noreferrer noopener",target:"_blank"};var t},er=y.forwardRef((function(e,t){var n=e.element,r=void 0===n?"ANCHOR":n,a=e.variant,s=void 0===a?"default":a,l=e.showExternal,u=e.display,d=e.height,f=e.minHeight,p=e.maxHeight,h=e.width,m=e.minWidth,v=e.maxWidth,g=e.size,b=e.margin,x=e.marginBottom,w=e.marginLeft,k=e.marginRight,S=e.marginTop,_=e.marginX,E=void 0===_?null:_,C=e.marginY,T=void 0===C?null:C,I=e.padding,B=e.paddingBottom,O=e.paddingLeft,P=e.paddingRight,R=e.paddingTop,A=e.paddingX,M=void 0===A?null:A,N=e.paddingY,D=void 0===N?null:N,L=e.verticalAlign,j=e.i18nExternalLinkLabel,z=void 0===j?"(link takes you to an external page)":j,W=(0,i.Z)(e,Wt),Z=Xn[s];return y.createElement(Z,(0,o.Z)((0,o.Z)((0,o.Z)({href:W.href,ref:t,variant:s},Qn(W.href)),(0,c.safelySpreadBoxProps)(W)),{},{element:r,display:u,height:d,minHeight:f,maxHeight:p,width:h,minWidth:m,maxWidth:v,size:g,margin:b,marginBottom:x,marginLeft:w,marginRight:k,marginTop:S,marginX:E,marginY:T,padding:I,paddingBottom:B,paddingLeft:O,paddingRight:P,paddingTop:R,paddingX:M,paddingY:D,verticalAlign:L}),l?y.createElement(c.Box,{as:"span"},W.children,y.createElement(c.Box,{as:"span",display:"inline-block",flexShrink:0,verticalAlign:"middle"},y.createElement(Kn,{decorative:!1,title:z}))):W.children)}));er.displayName="Anchor";var tr=y.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,c=e.decorative,u="ArrowForwardIcon-".concat(jn());if(!c&&null==l)throw new Error("[ArrowForwardIcon]: Missing a title for non-decorative icon.");return y.createElement(qn,{as:n,display:r,element:i,size:a,color:s,ref:t},y.createElement("svg",{role:"img","aria-hidden":c,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":u},l?y.createElement("title",{id:u},l):null,y.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.991 9.91l.007.05v.08l-.01.07-.01.029a.489.489 0 01-.205.272l-3.832 3.444a.596.596 0 01-.78 0 .459.459 0 01-.063-.632l.063-.069 2.957-2.659H5.513A.504.504 0 015 10a.5.5 0 01.42-.488l.093-.008h7.604l-2.956-2.658a.459.459 0 01-.063-.632l.063-.069a.598.598 0 01.704-.057l.076.057 3.832 3.444c.098.064.172.16.206.272l.012.049z"})))}));tr.displayName="ArrowForwardIcon";var nr={cx:50,cy:50,r:45},rr=2*Math.PI*45,or=(0,Rt.F4)(oe||(oe=(0,a.Z)(["\n  0%,\n  15% {\n    stroke-dashoffset: ",";\n    transform: rotate(0);\n  }\n\n  50%,\n  75% {\n    stroke-dashoffset: ",";\n    transform: rotate(45deg);\n  }\n\n  100% {\n    stroke-dashoffset: ",";\n    transform: rotate(360deg);\n  }\n"])),.9999*rr,.2*rr,.9999*rr),ir=(0,Rt.F4)(ie||(ie=(0,a.Z)(["\n  0% {\n    transform: rotateZ(0deg);\n  }\n  100% {\n    transform: rotateZ(360deg);\n  }\n"]))),ar=(0,Rt.F4)(ae||(ae=(0,a.Z)(["\n  0%,\n  75% {\n    stroke-dashoffset: 90%;\n  }\n\n  100% {\n    stroke-dashoffset: 90%;\n    transform: rotate(360deg);\n  }\n"]))),sr=Rt.iK.circle({transformOrigin:"center",opacity:.25}),lr=Rt.iK.circle((function(e){var t=e.show;return{transformOrigin:"center",animation:e.isSafari?"none":"1.5s ease-in-out infinite both ".concat(ir),strokeDasharray:rr,opacity:t?1:0}})),cr=Rt.iK.svg((function(e){return{height:"100%",width:"100%",display:"block",animation:e.isSafari?"1s infinite linear ".concat(ar):"4.25s linear infinite both ".concat(or)}})),ur=y.forwardRef((function(e,t){var n=e.size,r=e.color,i=void 0===r?"currentColor":r,a=e.title,l=e.as,c=e.display,u=e.decorative,d=e.delay,f=void 0===d?250:d,p=e.element,h=void 0===p?"SPINNER":p,m="spinner-".concat(jn()),v=(0,Mt.Fg)().borderWidths.borderWidth40,g=y.useState(0===f),b=(0,s.Z)(g,2),x=b[0],w=b[1];if(!u&&null==a)throw new Error("[Spinner]: Missing a title for non-decorative icon.");y.useEffect((function(){if(0!==f){var e=setTimeout((function(){return w(!0)}),f);return function(){return clearTimeout(e)}}}),[f]);var k=y.useState(null),S=(0,s.Z)(k,2),_=S[0],E=S[1];return y.useEffect((function(){E(navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))}),[]),null==_?null:y.createElement(qn,{as:l,element:h,display:c,size:n,color:i,"aria-hidden":u,ref:t},y.createElement(cr,{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":m,isSafari:_},a?y.createElement("title",{id:m},a):null,y.createElement("g",{strokeWidth:v,stroke:"currentColor",strokeLinecap:"round",fill:"transparent"},y.createElement(sr,(0,o.Z)({},nr)),y.createElement(lr,(0,o.Z)((0,o.Z)({show:x},nr),{},{isSafari:_})))))}));ur.displayName="Spinner";var dr=Object.create,fr=Object.defineProperty,pr=Object.getOwnPropertyDescriptor,hr=Object.getOwnPropertyNames,mr=Object.getPrototypeOf,vr=Object.prototype.hasOwnProperty,gr=function(e,t,n){return n=null!=e?dr(mr(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(hr(t));try{var a=function(){var i=o.value;!vr.call(e,i)&&i!==n&&fr(e,i,{get:function(){return t[i]},enumerable:!(r=pr(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:fr(n,"default",{value:e,enumerable:!0}),e)},yr=function(e,t){return function(){return t||(0,e[hr(e)[0]])((t={exports:{}}).exports,t),t.exports}}({"../../../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}}),br=gr(yr()),xr=gr(yr()),wr={appearance:"none",background:"none",display:"inline-block",border:"none",outline:"none",transition:"background-color 100ms ease-in, box-shadow 100ms ease-in, color 100ms ease-in",fontFamily:"inherit",fontWeight:"fontWeightSemibold",textDecoration:"none",position:"relative",margin:"space0",borderRadius:"borderRadius20",_hover:{textDecoration:"none"},_focus:{textDecoration:"none",boxShadow:"shadowFocus"},_active:{textDecoration:"none"}},kr={default:(0,xr.default)(wr,{cursor:"pointer",_active:{boxShadow:"none"}}),disabled:(0,xr.default)(wr,{cursor:"not-allowed"}),loading:(0,xr.default)(wr,{cursor:"wait"})},Sr={default:{paddingTop:"space30",paddingBottom:"space30",paddingLeft:"space40",paddingRight:"space40",borderRadius:"borderRadius30",fontSize:"fontSize30",lineHeight:"lineHeight20"},small:{paddingTop:"space20",paddingBottom:"space20",paddingLeft:"space30",paddingRight:"space30",borderRadius:"borderRadius30",fontSize:"fontSize30",lineHeight:"lineHeight20"},icon:{padding:"space30",borderRadius:"borderRadius30"},icon_small:{padding:"space20",borderRadius:"borderRadius30"},reset:{paddingTop:"space0",paddingRight:"space0",paddingBottom:"space0",paddingLeft:"space0",borderWidth:"borderWidth0",fontSize:"inherit"},rounded_small:{borderRadius:"borderRadiusPill",paddingTop:"space20",paddingBottom:"space20",paddingLeft:"space30",paddingRight:"space30",fontSize:"fontSize30",lineHeight:"lineHeight20"},circle:{padding:"space30",borderRadius:"borderRadiusCircle"},circle_small:{padding:"space20",borderRadius:"borderRadiusCircle"}},_r={transition:"background-color 150ms ease-in, box-shadow 150ms ease-in, color 150ms ease-in",color:"colorText",backgroundColor:"colorBackgroundBody",_disabled:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker",color:"colorTextWeaker"},_hover:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderPrimary",color:"colorTextPrimary"},_active:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderPrimaryStrongest",color:"colorTextPrimaryStrongest"},_pressed:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimary",color:"colorTextPrimary"},_pressed_hover:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStronger",color:"colorTextPrimaryStronger"},_pressed_active:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStrongest",color:"colorTextPrimaryStrongest"},_pressed_focus:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowFocusShadowBorder",color:"colorTextPrimary"},_pressed_disabled:{backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker",color:"colorTextWeakest"}},Er={transition:"background-color 150ms ease-in, box-shadow 150ms ease-in, color 150ms ease-in",color:"colorTextError",backgroundColor:"colorBackgroundBody",_disabled:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker",color:"colorTextWeaker"},_hover:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderError",color:"colorTextError"},_active:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderErrorStrongest",color:"colorTextErrorStrongest"},_pressed:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderError",color:"colorTextError"},_pressed_hover:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderErrorStronger",color:"colorTextErrorStronger"},_pressed_active:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderError",color:"colorTextError"},_pressed_focus:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowFocusShadowBorder",color:"colorTextError"},_pressed_disabled:{backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker",color:"colorTextWeakest"}},Cr={transition:"background-color 150ms ease-in, box-shadow 150ms ease-in, color 150ms ease-in",color:"colorTextIcon",backgroundColor:"colorBackgroundBody",_hover:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderPrimary",color:"colorTextPrimaryStronger"},_active:{backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderPrimaryStrongest",color:"colorTextPrimaryStrongest"},_disabled:{backgroundColor:"colorBackgroundBody",color:"colorTextWeaker"},_pressed:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimary",color:"colorTextPrimary"},_pressed_hover:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStronger",color:"colorTextPrimaryStronger"},_pressed_focus:{backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowFocusShadowBorder",color:"colorTextPrimary"},_pressed_disabled:{backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker",color:"colorTextWeakest"}},Tr={default:(0,br.default)(kr.default,{color:"colorTextInverse",backgroundColor:"colorBackgroundDestructive",boxShadow:"shadowBorderDestructive",_hover:{color:"colorTextDestructive",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderDestructive"},_focus:{boxShadow:"shadowFocus"},_active:{color:"colorTextDestructive",backgroundColor:"colorBackgroundDestructiveWeakest",boxShadow:"shadowBorderDestructive"}}),loading:(0,br.default)(kr.loading,{color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"}),disabled:(0,br.default)(kr.disabled,{color:"colorTextWeakest",backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker"})},Ir=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"button":s,u=(0,i.Z)(e,Zt);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:l},u))),Tr[r]),Sr[n]))}));Ir.displayName="DestructiveButton";var Br=gr(yr()),Or={default:(0,Br.default)(kr.default,{color:"colorTextDestructive",_hover:{color:"colorTextDestructiveStrongest"},_active:{color:"colorTextDestructiveStrongest"}}),loading:(0,Br.default)(kr.loading,{color:"colorTextWeaker"}),disabled:(0,Br.default)(kr.disabled,{color:"colorTextWeaker"})},Pr=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"button":s,u=(0,i.Z)(e,Ft);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:l},u))),Or[r]),Sr[n]))}));Pr.displayName="DestructiveIconButton";var Rr=gr(yr()),Ar=(0,Rr.default)(kr.default,{color:"colorTextLinkDestructive",textAlign:"left",transition:"none",_hover:{color:"colorTextLinkDestructiveStrongest",textDecoration:"underline"},_active:{color:"colorTextLinkDestructiveStrongest",textDecoration:"underline"}}),Mr=(0,Rr.default)(kr.loading,{color:"colorTextWeaker",textAlign:"left",_hover:{color:"colorTextWeaker"},_active:{color:"colorTextWeaker"},_focus:{color:"colorTextWeaker"}}),Nr=(0,Rr.default)(kr.disabled,{color:"colorTextWeaker",textAlign:"left",_hover:{color:"colorTextLinkDestructiveWeak"},_active:{color:"colorTextLinkDestructiveWeak"},_focus:{color:"colorTextLinkDestructiveWeak"}}),Dr={default:Ar,loading:Mr,disabled:Nr},Lr=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"a":s,u=(0,i.Z)(e,Ht);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:l},u))),Dr[r]),function(e){return(0,Rr.default)(Sr[e],{borderRadius:"borderRadius20"})}(n)))}));Lr.displayName="DestructiveLinkButton";var jr=gr(yr()),zr={color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"},Wr={color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"},Zr={default:(0,jr.default)(kr.default,{color:"colorTextDestructive",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderWeak",_hover:{color:"colorTextDestructive",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderDestructive"},_focus:{boxShadow:"shadowFocusShadowBorder"},_active:{color:"colorTextDestructive",backgroundColor:"colorBackgroundDestructiveWeakest",boxShadow:"shadowBorderDestructive"}}),loading:(0,jr.default)(kr.loading,(0,o.Z)((0,o.Z)({},zr),{},{_hover:zr,_active:zr,_focus:zr})),disabled:(0,jr.default)(kr.disabled,(0,o.Z)((0,o.Z)({},Wr),{},{_hover:Wr,_active:Wr,_focus:Wr}))},Fr=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.pressed,l=e.as,u=void 0===l?"button":l,d=(0,i.Z)(e,Ut),f=void 0===s?{}:Er;return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto","aria-pressed":s},(0,c.safelySpreadBoxProps)((0,o.Z)({as:u},d))),Zr[r]),f),Sr[n]))}));Fr.displayName="DestructiveSecondaryButton";var Hr=gr(yr()),Ur={default:(0,Hr.default)(kr.default,{color:"colorTextInverse",backgroundColor:"colorBackgroundInverse",boxShadow:"shadowBorderInverseWeaker",_hover:{color:"colorTextInverse",backgroundColor:"colorBackgroundInverseStrong",boxShadow:"shadowBorderInverseStronger"},_focus:{boxShadow:"shadowFocusInverse"},_active:{color:"colorTextInverse",backgroundColor:"colorBackgroundInverseStrong",boxShadow:"shadowBorderInverseStrongest"}}),loading:(0,Hr.default)(kr.loading,{color:"colorTextInverseWeakest",backgroundColor:"colorBackgroundInverseStrong",boxShadow:"shadowBorderInverseWeakest"}),disabled:(0,Hr.default)(kr.disabled,{color:"colorTextInverseWeakest",backgroundColor:"colorBackgroundInverseStrong",boxShadow:"shadowBorderInverseWeakest"})},$r=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"button":s,u=(0,i.Z)(e,$t);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:l},u))),Ur[r]),Sr[n]))}));$r.displayName="InverseButton";var Gr=gr(yr()),qr=(0,Gr.default)(kr.default,{color:"colorTextInverse",textAlign:"left",transition:"none",_hover:{color:"colorTextInverseWeaker",textDecoration:"underline"},_focus:{boxShadow:"shadowFocusInverse"},_active:{color:"colorTextInverseWeaker",textDecoration:"underline"}}),Kr=(0,Gr.default)(kr.loading,{color:"colorTextInverseWeakest",textAlign:"left"}),Vr=(0,Gr.default)(kr.disabled,{color:"colorTextInverseWeakest",textAlign:"left"}),Yr={default:qr,loading:Kr,disabled:Vr},Xr=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"a":s,u=(0,i.Z)(e,Gt);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:l},u))),Yr[r]),function(e){return(0,Gr.default)(Sr[e],{borderRadius:"borderRadius20"})}(n)))}));Xr.displayName="InverseLinkButton";var Jr=gr(yr()),Qr=(0,Jr.default)(kr.default,{color:"colorTextPrimary",textAlign:"left",transition:"none",_hover:{color:"colorTextPrimaryStrongest",textDecoration:"underline"},_active:{color:"colorTextPrimaryStrongest",textDecoration:"underline"}}),eo=(0,Jr.default)(kr.loading,{color:"colorTextWeaker",textAlign:"left"}),to=(0,Jr.default)(kr.disabled,{color:"colorTextWeaker",textAlign:"left"}),no={default:Qr,loading:eo,disabled:to},ro=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"a":s,u=(0,i.Z)(e,qt);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:l},u))),no[r]),function(e){return(0,Jr.default)(Sr[e],{borderRadius:"borderRadius20"})}(n)))}));ro.displayName="LinkButton";var oo=gr(yr()),io={default:(0,oo.default)(kr.default,{color:"colorTextInverse",backgroundColor:"colorBackgroundPrimary",boxShadow:"shadowBorderPrimary",_hover:{color:"colorTextPrimary",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderPrimary"},_focus:{boxShadow:"shadowFocus"},_active:{color:"colorTextPrimaryStrong",backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStrong"}}),loading:(0,oo.default)(kr.loading,{color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"}),disabled:(0,oo.default)(kr.disabled,{color:"colorTextWeakest",backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker"})},ao=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"button":s,u=(0,i.Z)(e,Kt);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:l},u))),io[r]),Sr[n]))}));ao.displayName="PrimaryButton";var so=gr(yr()),lo={default:(0,so.default)(kr.default,{color:"colorTextPrimary",_hover:{color:"colorTextPrimaryStrongest"},_active:{color:"colorTextPrimaryStrongest"}}),loading:(0,so.default)(kr.loading,{color:"colorTextWeaker"}),disabled:(0,so.default)(kr.disabled,{color:"colorTextWeaker"})},co=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"button":s,u=(0,i.Z)(e,Vt);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:l},u))),lo[r]),Sr[n]))}));co.displayName="PrimaryIconButton";var uo=gr(yr()),fo={default:(0,uo.default)(kr.default,{fontWeight:"inherit",color:"inherit"}),loading:(0,uo.default)(kr.loading,{fontSize:"inherit",fontWeight:"inherit"}),disabled:(0,uo.default)(kr.disabled,{fontSize:"inherit",fontWeight:"inherit"})},po=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.as,l=void 0===s?"button":s,u=(0,i.Z)(e,Yt);return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto"},fo[r]),Sr[n]),{},{as:l},u))}));po.displayName="ResetButton";var ho=gr(yr()),mo={color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"},vo={color:"colorTextWeaker",backgroundColor:"colorBackgroundBody",boxShadow:"shadowBorderWeaker"},go={default:(0,ho.default)(kr.default,{color:"colorText",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderWeak",_hover:{color:"colorTextPrimary",backgroundColor:"colorBackgroundWeakest",boxShadow:"shadowBorderPrimary"},_focus:{boxShadow:"shadowFocusShadowBorder"},_active:{color:"colorTextPrimaryStrong",backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryStrong"}}),loading:(0,ho.default)(kr.loading,(0,o.Z)((0,o.Z)({},mo),{},{_hover:mo,_active:mo,_focus:mo})),disabled:(0,ho.default)(kr.disabled,(0,o.Z)((0,o.Z)({},vo),{},{_hover:vo,_active:vo,_focus:vo,_pressed:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeak",boxShadow:"none"},_pressed_hover:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeak",boxShadow:"none"}}))},yo=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.pressed,l=e.as,u=void 0===l?"button":l,d=(0,i.Z)(e,Xt),f=void 0===s?{}:_r;return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({ref:t,width:a?"100%":"auto","aria-pressed":s},(0,c.safelySpreadBoxProps)((0,o.Z)({as:u},d))),go[r]),f),Sr[n]))}));yo.displayName="SecondaryButton";var bo=gr(yr()),xo={default:(0,bo.default)(kr.default,{color:"colorTextIcon",_hover:{color:"colorTextPrimaryStrongest"},_active:{color:"colorTextPrimaryStrongest"}}),loading:(0,bo.default)(kr.loading,{color:"colorTextWeaker"}),disabled:(0,bo.default)(kr.disabled,{color:"colorTextWeaker",_pressed:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeak"},_pressed_hover:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeak"}})},wo=y.forwardRef((function(e,t){var n=e.size,r=e.buttonState,a=e.fullWidth,s=e.pressed,l=e.as,u=void 0===l?"button":l,d=(0,i.Z)(e,Jt),f=void 0===s?{}:Cr;return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({ref:t,"aria-pressed":s,width:a?"100%":"auto"},(0,c.safelySpreadBoxProps)((0,o.Z)({as:u},d))),f),xo[r]),Sr[n]))}));wo.displayName="SecondaryIconButton";var ko=(0,At.q)(c.Box),So=new Set(["link","destructive_link","inverse_link","reset"]),_o=function(e){var t=e.buttonState,n=e.children,r=e.showLoading,o=e.variant,i=o&&So.has(o);return y.createElement(y.Fragment,null,y.createElement(c.Box,{as:"span",display:"flex",textDecoration:"inherit",opacity:"loading"===t?"0":"1",justifyContent:i?null:"center",columnGap:"space20",alignItems:"center",width:"100%"},n),r?y.createElement(c.Box,{as:"span",position:"absolute",top:0,right:0,bottom:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"lineHeight30"},y.createElement(ur,{decorative:!0,delay:0})):null)};_o.displayName="ButtonContents";var Eo=y.forwardRef((function(e,t){var n=e.element,r=void 0===n?"BUTTON":n,a=e.i18nExternalLinkLabel,l=void 0===a?"(link takes you to an external page)":a,c=e.as,u=void 0===c?"button":c,d=e.fullWidth,f=void 0!==d&&d,p=e.disabled,h=void 0!==p&&p,m=e.loading,v=void 0!==m&&m,g=e.variant,b=void 0===g?"primary":g,x=e.type,w=void 0===x?"button":x,k=(0,i.Z)(e,Qt),S=k.size,_=k.children,E=(0,i.Z)(k,en),C=y.useState(!1),T=(0,s.Z)(C,2),I=T[0],B=T[1],O=(0,At.q_)({translateX:I?"4px":"0px",config:{mass:.1,tension:275,friction:16}}),P=y.useMemo((function(){return function(e,t,n){var r="default";return null!=n?r=n:"link"===e||"destructive_link"===e||"reset"===e?r="reset":1===y.Children.count(t)&&y.Children.forEach(t,(function(e){y.isValidElement(e)&&"string"==typeof e.type.displayName&&e.type.displayName.includes("Icon")&&(r="icon")})),r}(b,_,S)}),[S,b,_]);!function(e){var t=e.as,n=e.href,r=e.tabIndex,o=e.variant,i=e.size,a=e.fullWidth,s=e.children,l=e.disabled,c=e.loading,u=e.pressed,d=null!=n&&""!==n,f=null!=r;if("a"!==t&&d)throw new Error("[Paste: Button] You cannot pass href into a button without the 'a' tag.  Use 'as=\"a\"'.");if("a"===t){if(!d)throw new Error("[Paste: Button] Missing href prop for link button.");if("link"===o||"inverse_link"===o)throw new Error("[Paste: Button] Using Button component as an Anchor. Use the Paste Anchor component instead.");if("primary"!==o&&"secondary"!==o&&"reset"!==o&&"inverse"!==o)throw new Error('[Paste: Button] <Button as="a"> only works with the following variants: primary and secondary.');if(l||c)throw new Error('[Paste: Button] <Button as="a"> cannot be disabled or loading.')}if("reset"===o&&"reset"!==i)throw new Error('[Paste: Button] The "RESET" variant can only be used with the "RESET" size.');if(("icon"===i||"icon_small"===i||"circle"===i||"circle_small"===i)&&a)throw new Error("[Paste: Button] Icon buttons should not be fullWidth.");if(null==s)throw new Error("[Paste: Button] Must have non-null children.");if(f&&0!==r&&-1!==r)throw console.error("tabIndex",r),new Error("[Paste: Button] tabIndex must be 0 or -1.");if(u&&"secondary"!==o&&"secondary_icon"!==o&&"destructive_secondary"!==o)throw console.error("variant",o,"pressed",u),new Error('[Paste: Button] pressed can only be used with "secondary" and "secondary_icon" and "destructive_secondary" variants.')}((0,o.Z)((0,o.Z)({},k),{},{as:u,children:_,fullWidth:f,disabled:h,loading:v,type:w,variant:b,size:P}));var R=function(e,t){return e?"disabled":t?"loading":"default"}(h,v),A="loading"===R,M="default"!==R,N=function(e){switch(e){case"primary_icon":return co;case"secondary":return yo;case"secondary_icon":return wo;case"destructive":return Ir;case"destructive_icon":return Pr;case"destructive_secondary":return Fr;case"link":return ro;case"destructive_link":return Lr;case"reset":return po;case"inverse":return $r;case"inverse_link":return Xr;default:return ao}}(b),D=null!=k.href?Qn(k.href):null,L=_;return"a"===u&&null!=k.href&&"string"==typeof _&&"reset"!==b&&(L=y.createElement(y.Fragment,null,_,null!=D?y.createElement(Kn,{decorative:!1,title:l}):y.createElement(ko,{style:O},y.createElement(tr,{decorative:!0})))),y.createElement(N,(0,o.Z)((0,o.Z)((0,o.Z)({},D),E),{},{onMouseEnter:function(e){"function"==typeof E.onMouseEnter&&E.onMouseEnter(e),B(!0)},onMouseLeave:function(e){"function"==typeof E.onMouseLeave&&E.onMouseLeave(e),B(!1)},buttonState:R,disabled:M,element:r,variant:b,size:P,"aria-busy":"loading"===R?"true":"false",as:u,type:w,fullWidth:f,ref:t}),y.createElement(_o,{buttonState:R,showLoading:A,variant:b},L))}));Eo.displayName="Button";var Co=y.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,c=e.decorative,u="ClearIcon-".concat(jn());if(!c&&null==l)throw new Error("[ClearIcon]: Missing a title for non-decorative icon.");return y.createElement(qn,{as:n,display:r,element:i,size:a,color:s,ref:t},y.createElement("svg",{role:"img","aria-hidden":c,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none","aria-labelledby":u},l?y.createElement("title",{id:u},l):null,y.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10 16.5a6.5 6.5 0 100-13 6.5 6.5 0 000 13zm.897-6.5l1.917 1.917a.635.635 0 01-.897.897L10 10.897l-1.917 1.917a.635.635 0 01-.897-.897L9.103 10 7.186 8.083a.635.635 0 01.897-.897L10 9.103l1.917-1.917a.635.635 0 01.897.897L10.897 10z"})))}));Co.displayName="ClearIcon";var To=y.forwardRef((function(e,t){var n=e.as,r=void 0===n?"span":n,a=e.children,s=(0,i.Z)(e,tn);return y.createElement(c.Box,(0,o.Z)((0,o.Z)({},s),{},{as:r,border:"none",clip:"rect(0 0 0 0)",height:"1px",margin:"spaceNegative10",overflow:"hidden",padding:"space0",position:"absolute",ref:t,textTransform:"none",whiteSpace:"nowrap",width:"1px"}),a)}));To.displayName="ScreenReaderOnly";var Io=function(e){return Array.isArray(e)?e.map((function(e){return"horizontal"===e?"flex":"block"})):"horizontal"===e?"flex":"block"},Bo=y.forwardRef((function(e,t){var n=e.children,r=e.orientation,a=e.spacing,l=e.element,u=void 0===l?"STACK":l,d=(0,i.Z)(e,nn),f=y.useMemo((function(){var e=y.Children.toArray(n).filter((function(e){return y.isValidElement(e)||"string"==typeof e}));return[e.length,e]}),[n]),p=(0,s.Z)(f,2),h=p[0],m=p[1],v=y.useMemo((function(){return function(e){return{display:Io(e),alignItems:"center",flexWrap:"wrap"}}(r)}),[r]),g=y.useMemo((function(){return function(e,t){var n={};if(Array.isArray(e)){var r=[],o=[];e.forEach((function(e,n){r[n]="horizontal"===e?t:"space0",o[n]="horizontal"===e?"space0":t})),n={marginRight:r,marginBottom:o}}return"horizontal"===e&&(n={marginRight:t}),"vertical"===e&&(n={marginBottom:t}),n}(r,a)}),[r,a]),b=zn();return y.createElement(c.Box,(0,o.Z)((0,o.Z)((0,o.Z)({element:u},(0,c.safelySpreadBoxProps)(d)),v),{},{ref:t}),m.map((function(e,t){return y.createElement(c.Box,(0,o.Z)((0,o.Z)({element:"".concat(u,"_CHILD")},h!==t+1?g:null),{},{key:b("stack-".concat(t))}),e)})))}));Bo.displayName="Stack";var Oo={backgroundColor:"colorBackgroundBody",borderRadius:"borderRadiusCircle",width:"12px",height:"12px",display:"flex",justifyContent:"center",alignItems:"center"},Po=y.forwardRef((function(e,t){var n=e.children,r=e.onDismiss,a=e.i18nDismissLabel,s=void 0===a?"Remove attachment":a,l=e.element,u=void 0===l?"CHAT_COMPOSER_ATTACHMENT_CARD":l,d=e.attachmentIcon,f=(0,i.Z)(e,rn),p=y.useContext(kn).isDisabled;return y.createElement(c.Box,(0,o.Z)((0,o.Z)({},(0,c.safelySpreadBoxProps)(f)),{},{ref:t,padding:"space40",borderRadius:"borderRadius30",backgroundColor:"colorBackgroundWeakerElevation",position:"relative",display:"inline-flex",columnGap:"space30",alignItems:"center",width:"100%",element:u}),d&&y.createElement(c.Box,{color:"colorTextIcon",element:"".concat(u,"_ICON")},d),y.createElement(Bo,{orientation:"vertical",spacing:"space10"},n),r&&y.createElement(c.Box,(0,o.Z)({position:"absolute",top:"space0",right:"space0",transform:"translate(50%, -50%)"},Oo),y.createElement(Eo,{"aria-disabled":p,disabled:p,element:"".concat(u,"_REMOVE_BUTTON"),variant:"secondary_icon",size:"reset",onClick:r},y.createElement(Co,{decorative:!0}),y.createElement(To,null,s))))}));Po.displayName="ChatComposerAttachmentCard";var Ro=Object.create,Ao=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,No=Object.getOwnPropertyNames,Do=Object.getPrototypeOf,Lo=Object.prototype.hasOwnProperty,jo=function(e,t){return function(){return t||(0,e[No(e)[0]])((t={exports:{}}).exports,t),t.exports}}({"../../../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}}),zo={color:{property:"color",scale:"textColors"},cursor:!0,outline:!0,transition:!0,transitionDelay:!0,textDecoration:!0,textTransform:!0,whiteSpace:!0,wordBreak:!0,wordWrap:!0,fontVariantNumeric:!0,textOverflow:!0,overflowWrap:!0,listStyleType:!0,listStylePosition:!0,listStyleImage:!0},Wo={_hover:"&:hover",_active:"&:active, &[data-active=true]",_focus:"&:focus",_visited:"&:visited",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_disabled:"&:disabled, &:disabled:focus, &:disabled:hover, &[aria-disabled=true], &[aria-disabled=true]:focus, &[aria-disabled=true]:hover",_checked:"&:checked, &[aria-checked=true]",_mixed:"&:indeterminate, &[aria-checked=mixed]",_selected:"&[aria-selected=true]",_selected_hover:"&[aria-selected=true]:hover",_selected_focus:"&[aria-selected=true]:focus",_selected_focusVisible:"&[aria-selected=true]:focus-visible",_invalid:"&:invalid, &[aria-invalid=true]",_pressed:"&[aria-pressed=true]",_readOnly:"&[aria-readonly=true], &[readonly]",_first:"&:first-of-type",_last:"&:last-of-type",_expanded:"&[aria-expanded=true]",_grabbed:"&[aria-grabbed=true]",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_before:"&:before",_after:"&:after",_focusWithin:"&:focus-within"},Zo=function(e,t,n){return n=null!=e?Ro(Do(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(No(t));try{var a=function(){var i=o.value;!Lo.call(e,i)&&i!==n&&Ao(e,i,{get:function(){return t[i]},enumerable:!(r=Mo(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:Ao(n,"default",{value:e,enumerable:!0}),e)}(jo()),Fo=(0,Rt.By)(zo),Ho=[].concat((0,r.Z)(Nt.Dk),(0,r.Z)(Nt.bu),(0,r.Z)(Nt.eD),(0,r.Z)(Nt.C8),(0,r.Z)(Object.keys(Wo)),["display","verticalAlign","className","style"]),Uo=(0,Rt.MS)([].concat((0,r.Z)(Rt.NQ),(0,r.Z)(Object.keys((0,o.Z)((0,o.Z)({},zo),Wo))))),$o=(0,Rt.iK)("div",{shouldForwardProp:Uo})({margin:0,padding:0},(0,Rt.qC)(Rt.Wn,Rt.jf,Rt.tx,Rt.FK,Rt.Dh,Rt.cp,Rt.Lo,Fo),(function(e){var t=Object.keys(e).filter((function(e){return e.startsWith("_")}));if(0===t.length)return{};var n={};return t.forEach((function(t){null!=Wo[t]&&(n[Wo[t]]=e[t])})),(0,Rt.iv)(n)}),(function(e){if(null!=e&&null!=e.theme&&null!=e.theme.elements){var t=e.theme.elements,n=e["data-paste-element"];if(null!=t[n]){var r=t[n],o=(0,Rt.iv)(r)(e),a=o.variants,s=(0,i.Z)(o,on),l={};return null!=e.variant&&null!=a&&null!=a[e.variant]&&(l=a[e.variant]),function(){return(0,Zo.default)(s,l)}}}return{}})),Go=y.forwardRef((function(e,t){var n=e.children,r=e.color,a=void 0===r?"colorText":r,s=e.fontSize,l=void 0===s?"fontSize30":s,c=e.lineHeight,u=void 0===c?"lineHeight30":c,d=e.element,f=void 0===d?"TEXT":d,p=(0,i.Z)(e,an);return y.createElement($o,(0,o.Z)({"data-paste-element":f,"data-paste-core-version":"21.4.0",ref:t,color:a,fontSize:l,lineHeight:u},p),n)}));Go.displayName="Text";var qo=y.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"CHAT_COMPOSER_ATTACHMENT_DESCRIPTION":r,s=(0,i.Z)(e,sn);return y.createElement(Go,(0,o.Z)((0,o.Z)({},function(e){return Object.keys(e).reduce((function(t,n){return Ho.includes(n)||(t[n]=e[n]),t}),{})}(s)),{},{element:a,ref:t,as:"div",fontSize:"fontSize20",color:"colorTextWeak",lineHeight:"lineHeight20"}),n)}));qo.displayName="ChatComposerAttachmentDescription";var Ko=y.forwardRef((function(e,t){var n=e.children,r=(0,i.Z)(e,ln);return y.createElement(c.Box,(0,o.Z)((0,o.Z)({},r),{},{as:"span",display:"inline-block",verticalAlign:"bottom",textDecoration:"inherit",maxWidth:"100%",overflow:"hidden",ref:t,textOverflow:"ellipsis",whiteSpace:"nowrap"}),n)}));Ko.displayName="Truncate";var Vo=y.forwardRef((function(e,t){var n=e.children,r=e.href,a=e.element,s=void 0===a?"CHAT_COMPOSER_ATTACHMENT_LINK":a,l=(0,i.Z)(e,cn);return y.createElement(er,(0,o.Z)({href:r,ref:t,element:s,variant:"default"},l),y.createElement(Ko,{title:n},n))}));Vo.displayName="ChatComposerAttachmentLink";var Yo=y.forwardRef((function(e,t){var n=e.element,r=void 0===n?"CHAT_COMPOSER_ACTION_ROW":n,a=e.children,s=(0,i.Z)(e,un);return y.createElement(c.Box,(0,o.Z)((0,o.Z)({},(0,c.safelySpreadBoxProps)(s)),{},{element:r,ref:t,gridRow:"2",gridColumn:"1/-1",display:"inline-flex",alignSelf:"end",role:"group",columnGap:"space30",padding:"space30",paddingRight:"space20"}),a)}));Yo.displayName="ChatComposerActionRow"},2594:function(e,t,n){"use strict";n.r(t),n.d(t,{ChatAttachment:function(){return F},ChatAttachmentDescription:function(){return U},ChatAttachmentLink:function(){return H},ChatBookend:function(){return $},ChatBookendItem:function(){return G},ChatBubble:function(){return M},ChatEvent:function(){return q},ChatLog:function(){return z},ChatLogger:function(){return Y},ChatMessage:function(){return D},ChatMessageMeta:function(){return L},ChatMessageMetaItem:function(){return j},ComposerAttachmentCard:function(){return Z},useChatLogger:function(){return J}});var r=n(885),o=n(1413),i=n(4925),a=n(1923),s=n(2791),l=n(9741),c=n(9628),u=n(8015),d=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,l=e.color,d=e.title,f=e.decorative,p="ClearIcon-".concat((0,c.Dt)());if(!f&&null==d)throw new Error("[ClearIcon]: Missing a title for non-decorative icon.");return s.createElement(u.a,{as:n,display:r,element:i,size:a,color:l,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10 16.5a6.5 6.5 0 100-13 6.5 6.5 0 000 13zm.897-6.5l1.917 1.917a.635.635 0 01-.897.897L10 10.897l-1.917 1.917a.635.635 0 01-.897-.897L9.103 10 7.186 8.083a.635.635 0 01.897-.897L10 9.103l1.917-1.917a.635.635 0 01.897.897L10.897 10z"})))}));d.displayName="ClearIcon";var f=n(9643),p=n(1631),h=n(1543),m=n(1076),v=n(6091),g=n(9132),y=n(3512),b=["children","element"],x=["children","variant","element"],w=["children","element"],k=["children","element"],S=["children","element"],_=["children","onDismiss","i18nDismissLabel","element"],E=["children","element","attachmentIcon"],C=["children","href","element"],T=["children","element"],I=["children","element"],B=["children","element"],O=["children","element"],P=["chats"],R=s.createContext("inbound"),A={inbound:{backgroundColor:"colorBackgroundElevation",alignSelf:"flex-start"},outbound:{backgroundColor:"colorBackgroundInverseStrongerElevation",alignSelf:"flex-end",color:"colorTextInverse"}},M=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"CHAT_BUBBLE":r,c=(0,i.Z)(e,b),u=s.useContext(R);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({display:"inline-block",fontSize:"fontSize30",lineHeight:"lineHeight20",borderRadius:"borderRadius20",paddingY:"space30",paddingX:"space40",marginBottom:"space30",wordWrap:"break-word",maxWidth:"100%",minWidth:0,element:l,ref:t,variant:u,whiteSpace:"pre-wrap"},A[u]),(0,a.safelySpreadBoxProps)(c)),n)}));M.displayName="ChatBubble";var N={inbound:{marginRight:"space70"},outbound:{marginLeft:"space70"}},D=s.forwardRef((function(e,t){var n=e.children,r=e.variant,l=e.element,c=void 0===l?"CHAT_MESSAGE":l,u=(0,i.Z)(e,x);return s.createElement(R.Provider,{value:r},s.createElement(a.Box,(0,o.Z)((0,o.Z)({role:"listitem",display:"flex",flexDirection:"column",ref:t,element:c,variant:r},N[r]),(0,a.safelySpreadBoxProps)(u)),n))}));D.displayName="ChatMessage";var L=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"CHAT_MESSAGE_META":r,c=(0,i.Z)(e,w),u=s.useContext(R);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{ref:t,element:l,display:"flex",justifyContent:"inbound"===u?"flex-start":"flex-end",textAlign:"outbound"===u?"right":"left",alignItems:"center",variant:u,columnGap:"space30",fontWeight:"fontWeightMedium"}),n)}));L.displayName="ChatMessageMeta";var j=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"CHAT_MESSAGE_META_ITEM":r,c=(0,i.Z)(e,k);return s.createElement(a.Box,(0,o.Z)({ref:t,element:l,display:"flex",alignItems:"flex-start",columnGap:"space30",color:"colorTextWeak",lineHeight:"lineHeight20",fontSize:"fontSize20"},(0,a.safelySpreadBoxProps)(c)),n)}));j.displayName="ChatMessageMetaItem";var z=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"CHAT_LOG":r,c=(0,i.Z)(e,S);return s.createElement(a.Box,(0,o.Z)({role:"log",padding:"space70",element:l,ref:t},(0,a.safelySpreadBoxProps)(c)),s.createElement(a.Box,{as:"div",role:"list",margin:"space0",padding:"space0",display:"flex",flexDirection:"column",rowGap:"space80"},n))}));z.displayName="ChatLog";var W={backgroundColor:"colorBackgroundBody",borderRadius:"borderRadiusCircle",width:"12px",height:"12px",display:"flex",justifyContent:"center",alignItems:"center"},Z=s.forwardRef((function(e,t){var n=e.children,r=e.onDismiss,c=e.i18nDismissLabel,u=void 0===c?"Remove attachment":c,p=e.element,h=void 0===p?"COMPOSER_ATTACHMENT_CARD":p,m=(0,i.Z)(e,_);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(m)),{},{ref:t,paddingY:"space30",paddingX:"space40",borderRadius:"borderRadius30",backgroundColor:"colorBackgroundBodyElevation",position:"relative",display:"inline-block",width:"100%",element:h}),n,r&&s.createElement(a.Box,(0,o.Z)({position:"absolute",top:"space0",right:"space0",transform:"translate(50%, -50%)"},W),s.createElement(l.Button,{element:"".concat(h,"_REMOVE_BUTTON"),variant:"secondary_icon",size:"icon",onClick:r},s.createElement(d,{decorative:!0}),s.createElement(f.ScreenReaderOnly,null,u))))}));Z.displayName="ComposerAttachmentCard";var F=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"CHAT_ATTACHMENT":r,c=e.attachmentIcon,u=(0,i.Z)(e,E),d=s.useContext(R);return s.createElement(p.MediaObject,(0,o.Z)((0,o.Z)({},u),{},{as:"div",ref:t,verticalAlign:"center",element:l}),s.createElement(p.MediaFigure,{as:"div",spacing:"space30"},s.createElement(a.Box,{color:"inbound"===d?"colorTextIcon":"colorTextInverse",element:"".concat(l,"_ICON")},c)),s.createElement(p.MediaBody,{as:"div",element:"".concat(l,"_BODY")},s.createElement(h.Stack,{orientation:"vertical",spacing:"space10"},n)))}));F.displayName="ChatAttachment";var H=s.forwardRef((function(e,t){var n=e.children,r=e.href,a=e.element,l=void 0===a?"CHAT_ATTACHMENT_LINK":a,c=(0,i.Z)(e,C),u=s.useContext(R);return s.createElement(m.Anchor,(0,o.Z)({href:r,ref:t,element:l,variant:"inbound"===u?"default":"inverse"},c),s.createElement(v.Truncate,{title:n},n))}));H.displayName="ChatAttachmentLink";var U=s.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"CHAT_ATTACHMENT_DESCRIPTION":r,l=(0,i.Z)(e,T),c=s.useContext(R);return s.createElement(g.Text,(0,o.Z)((0,o.Z)({},(0,g.safelySpreadTextProps)(l)),{},{element:a,ref:t,as:"div",fontSize:"fontSize20",color:"inbound"===c?"colorTextWeak":"colorTextInverse",lineHeight:"lineHeight20"}),n)}));U.displayName="ChatAttachmentDescription";var $=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"CHAT_BOOKEND":r,c=(0,i.Z)(e,I);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{as:"div",role:"listitem",color:"colorTextWeak",element:l,textAlign:"center",marginBottom:"space20",lineHeight:"lineHeight20",fontSize:"fontSize20",fontWeight:"fontWeightMedium",ref:t}),n)}));$.displayName="ChatBookend";var G=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"CHAT_BOOKEND_ITEM":r,c=(0,i.Z)(e,B);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{as:"div",element:l,ref:t}),n)}));G.displayName="ChatBookendItem";var q=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"CHAT_EVENT":r,c=(0,i.Z)(e,O);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{as:"div",role:"listitem",color:"colorTextWeak",element:l,textAlign:"center",lineHeight:"lineHeight20",fontSize:"fontSize20",fontWeight:"fontWeightMedium",ref:t}),n)}));q.displayName="ChatEvent";var K=(0,y.q)(a.Box),V=function(e){return"inbound"===e.variant?-100:"outbound"===e.variant?100:0},Y=s.forwardRef((function(e,t){var n=e.chats,r=(0,i.Z)(e,P),a=(0,y.Yz)(n,{keys:function(e){return e.id},from:function(e){return{opacity:0,x:V(e)}},enter:{opacity:1,x:0},leave:function(e){return{opacity:0,x:V(e)}},config:{mass:.7,tension:190,friction:16}}),l=(0,y.JZ)()?n.map((function(e){return s.cloneElement(e.content,{key:e.id})})):a((function(e,t,n){var r=n.key;return s.createElement(K,{as:"div",style:e,key:r},t.content)}));return s.createElement(z,(0,o.Z)((0,o.Z)({},r),{},{ref:t}),l)}));Y.displayName="ChatLogger";var X=function(e){return(0,o.Z)((0,o.Z)({},e),{},{id:e.id||(0,c.hQ)(e.content)})},J=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=s.useMemo((function(){return t.map(X)}),[t]),i=s.useState(o),a=(0,r.Z)(i,2),l=a[0],c=a[1],u=s.useCallback((function(e){c((function(t){return t.concat(X(e))}))}),[]),d=s.useCallback((function(e){c((function(t){return e?t.filter((function(t){return t.id!==e})):t.slice(0,-1)}))}),[]),f=s.useCallback((function(){return c([])}),[]);return{push:u,pop:d,chats:l,clear:f}}},5234:function(e,t,n){"use strict";n.r(t),n.d(t,{Checkbox:function(){return C},CheckboxDisclaimer:function(){return I},CheckboxGroup:function(){return T},CheckboxIcon:function(){return E},HiddenCheckbox:function(){return _}});var r=n(885),o=n(4925),i=n(1413),a=n(7549),s=n(1923),l=n(9628),c=n(2791),u=n(8015),d=c.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,d=e.title,f=e.decorative,p="CheckboxCheckIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[CheckboxCheckIcon]: Missing a title for non-decorative icon.");return c.createElement(u.a,{as:n,display:r,element:i,size:a,color:s,ref:t},c.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?c.createElement("title",{id:p},d):null,c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.59 5.916a1.386 1.386 0 00-1.98 0l-5.04 5.138L6.39 8.83a1.38 1.38 0 00-1.98 0 1.448 1.448 0 000 2.018l3.171 3.233a1.382 1.382 0 001.98 0l6.03-6.148a1.448 1.448 0 000-2.018z"})))}));d.displayName="CheckboxCheckIcon";var f=n(1350),p=n(9114),h=n(1631),m=n(463),v=n(324),g=["checked","defaultChecked","element","children","helpText","id","indeterminate","isSelectAll","isSelectAllChild","required","onChange"],y=["children","element","disabled","errorText","isSelectAll","name","onChange","orientation","i18nRequiredLabel"],b=["children","element","errorText"],x=c.createContext({disabled:!1,name:void 0,hasError:void 0,onChange:function(){}}),w={paddingTop:"space20",paddingRight:"space30",paddingBottom:"space20",paddingLeft:"space30",borderRadius:"borderRadius20",backgroundColor:"colorBackground"},k=(0,i.Z)((0,i.Z)({},w),{},{backgroundColor:"colorBackground"}),S={paddingLeft:"space30",paddingRight:"space30"},_=c.forwardRef((function(e,t){return c.createElement(s.Box,(0,i.Z)((0,i.Z)({},e),{},{ref:t,as:"input",type:"checkbox",size:"size0",border:"none",overflow:"hidden",padding:"space0",margin:"space0",whiteSpace:"nowrap",textTransform:"none",position:"absolute",clip:"rect(0 0 0 0)"}))}));_.displayName="HiddenCheckbox";var E=function(e){var t=e.checked,n=e.element;return e.indeterminate?c.createElement(f.V,{element:n,decorative:!0,color:"inherit",size:"sizeIcon10"}):c.createElement(d,{element:n,display:t?"block":"none",decorative:!0,color:"inherit",size:"sizeIcon10"})};E.displayName="CheckboxIcon";var C=c.forwardRef((function(e,t){var n=e.checked,u=e.defaultChecked,d=e.element,f=void 0===d?"CHECKBOX":d,m=e.children,v=e.helpText,y=e.id,b=e.indeterminate,C=e.isSelectAll,T=e.isSelectAllChild,I=e.required,B=e.onChange,O=(0,o.Z)(e,g);if(null!=n&&null!=u)throw new Error('[Paste Checkbox] Do not provide both "defaultChecked" and "checked" to Checkbox at the same time. Please consider if you want this component to be controlled or uncontrolled.');var P=c.useState(u),R=(0,r.Z)(P,2),A=R[0],M=R[1],N=c.useContext(x),D=(0,l.Dt)(),L=y||(0,l.Dt)(),j=c.useMemo((function(){return void 0!==n}),[]),z=j?n:A,W=c.useCallback((function(e){j?B?B(e):N.onChange(e):M(e.target.checked)}),[B,N.onChange]),Z=null!=O.disabled?O.disabled:N.disabled,F=null!=O.name?O.name:N.name,H=null!=O.hasError?O.hasError:N.hasError,U={};return C&&(U=Z||!z&&!b?w:k),T&&(U=S),c.createElement(s.Box,(0,i.Z)({element:f,display:"inline-flex",position:"relative",flexDirection:"column"},U),c.createElement(_,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(O)),{},{checked:n,defaultChecked:u,disabled:Z,name:F,onChange:W,"aria-describedby":D,"aria-checked":b?"mixed":n,"aria-invalid":H,id:L,required:I,ref:t})),c.createElement(a.BaseRadioCheckboxLabel,{disabled:Z,htmlFor:L},c.createElement(a.BaseRadioCheckboxControl,{alignItems:"center",borderRadius:"borderRadius20",element:"".concat(f,"_CONTROL"),disabled:Z,position:"relative",type:"checkbox"},c.createElement(E,{element:"".concat(f,"_ICON"),checked:z,indeterminate:b})),c.createElement(a.BaseRadioCheckboxLabelText,{element:"".concat(f,"_LABEL_TEXT"),fontWeight:C?null:"fontWeightMedium"},c.createElement(h.MediaObject,{verticalAlign:"top"},I&&c.createElement(h.MediaFigure,{spacing:"space20"},c.createElement(p.RequiredDot,null)),c.createElement(h.MediaBody,null,m)))),v&&c.createElement(a.BaseRadioCheckboxHelpText,{element:"".concat(f,"_HELP_TEXT_WRAPPER"),helpTextId:D},v))}));C.displayName="Checkbox";var T=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"CHECKBOX_GROUP":r,s=e.disabled,l=void 0!==s&&s,u=e.errorText,d=e.isSelectAll,f=void 0!==d&&d,p=e.name,h=e.onChange,v=e.orientation,g=void 0===v?"vertical":v,b=e.i18nRequiredLabel,w=void 0===b?"(required)":b,k=(0,o.Z)(e,y),S=c.useCallback((function(e){null===h||void 0===h||h(e.target.checked)}),[h]),_=c.useMemo((function(){return{disabled:l,name:p,onChange:S,hasError:!!u||void 0}}),[l,p,S]);return c.createElement(x.Provider,{value:_},c.createElement(m.InlineControlGroup,(0,i.Z)((0,i.Z)({},k),{},{element:a,disabled:l,errorText:u,name:p,orientation:g,ref:t,i18nRequiredLabel:w}),c.Children.map(n,(function(e,t){return c.isValidElement(e)?c.cloneElement(e,{isSelectAll:f&&0===t,isSelectAllChild:f&&"vertical"===g&&0!==t}):e}))))}));T.displayName="CheckboxGroup";var I=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"CHECKBOX_DISCLAIMER":r,l=e.errorText,u=(0,o.Z)(e,b);return c.createElement(c.Fragment,null,c.createElement(s.Box,{element:a,backgroundColor:"colorBackground",borderRadius:"borderRadius20",padding:"space50"},c.createElement(C,(0,i.Z)((0,i.Z)({},u),{},{hasError:null!=l,ref:t}),n)),l&&c.createElement(s.Box,{marginTop:"space30",element:"".concat(a,"_ERROR_TEXT_WRAPPER"),marginLeft:"space50"},c.createElement(v.HelpText,{variant:"error"},l)))}));I.displayName="CheckboxDisclaimer"},3955:function(e,t,n){"use strict";n.r(t),n.d(t,{CodeBlock:function(){return ln},CodeBlockHeader:function(){return cn},CodeBlockTab:function(){return un},CodeBlockTabList:function(){return mn},CodeBlockTabPanel:function(){return vn},CodeBlockWrapper:function(){return gn}});var r=n(1413),o=n(885),i=n(4925),a=n(1923),s=n(7762),l=n(2791),c=n.t(l,2),u=Object.create,d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,h=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,v=function(e,t){return function(){return t||(0,e[p(e)[0]])((t={exports:{}}).exports,t),t.exports}},g=function(e,t,n){return n=null!=e?u(h(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,s.Z)(p(t));try{var a=function(){var i=o.value;!m.call(e,i)&&i!==n&&d(e,i,{get:function(){return t[i]},enumerable:!(r=f(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(l){i.e(l)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:d(n,"default",{value:e,enumerable:!0}),e)},y=v({"../../../node_modules/xtend/immutable.js":function(e,t){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty}}),b=v({"../../../node_modules/property-information/lib/util/schema.js":function(e,t){t.exports=r;var n=r.prototype;function r(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}n.space=null,n.normal={},n.property={}}}),x=v({"../../../node_modules/property-information/lib/util/merge.js":function(e,t){var n=y(),r=b();t.exports=function(e){for(var t,o,i=e.length,a=[],s=[],l=-1;++l<i;)t=e[l],a.push(t.property),s.push(t.normal),o=t.space;return new r(n.apply(null,a),n.apply(null,s),o)}}}),w=v({"../../../node_modules/property-information/normalize.js":function(e,t){t.exports=function(e){return e.toLowerCase()}}}),k=v({"../../../node_modules/property-information/lib/util/info.js":function(e,t){t.exports=r;var n=r.prototype;function r(e,t){this.property=e,this.attribute=t}n.space=null,n.attribute=null,n.property=null,n.boolean=!1,n.booleanish=!1,n.overloadedBoolean=!1,n.number=!1,n.commaSeparated=!1,n.spaceSeparated=!1,n.commaOrSpaceSeparated=!1,n.mustUseProperty=!1,n.defined=!1}}),S=v({"../../../node_modules/property-information/lib/util/types.js":function(e){var t=0;function n(){return Math.pow(2,++t)}e.boolean=n(),e.booleanish=n(),e.overloadedBoolean=n(),e.number=n(),e.spaceSeparated=n(),e.commaSeparated=n(),e.commaOrSpaceSeparated=n()}}),_=v({"../../../node_modules/property-information/lib/util/defined-info.js":function(e,t){var n=k(),r=S();t.exports=a,a.prototype=new n,a.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=o.length;function a(e,t,a,l){var c,u=-1;for(s(this,"space",l),n.call(this,e,t);++u<i;)s(this,c=o[u],(a&r[c])===r[c])}function s(e,t,n){n&&(e[t]=n)}}}),E=v({"../../../node_modules/property-information/lib/util/create.js":function(e,t){var n=w(),r=b(),o=_();t.exports=function(e){var t,i,a=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},f={};for(t in c)i=new o(t,u(l,t),c[t],a),-1!==s.indexOf(t)&&(i.mustUseProperty=!0),d[t]=i,f[n(t)]=t,f[n(i.attribute)]=t;return new r(d,f,a)}}}),C=v({"../../../node_modules/property-information/lib/xlink.js":function(e,t){var n=E();t.exports=n({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}})}}),T=v({"../../../node_modules/property-information/lib/xml.js":function(e,t){var n=E();t.exports=n({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}})}}),I=v({"../../../node_modules/property-information/lib/util/case-sensitive-transform.js":function(e,t){t.exports=function(e,t){return t in e?e[t]:t}}}),B=v({"../../../node_modules/property-information/lib/util/case-insensitive-transform.js":function(e,t){var n=I();t.exports=function(e,t){return n(e,t.toLowerCase())}}}),O=v({"../../../node_modules/property-information/lib/xmlns.js":function(e,t){var n=E(),r=B();t.exports=n({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r,properties:{xmlns:null,xmlnsXLink:null}})}}),P=v({"../../../node_modules/property-information/lib/aria.js":function(e,t){var n=S(),r=E(),o=n.booleanish,i=n.number,a=n.spaceSeparated;t.exports=r({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:a,ariaCurrent:null,ariaDescribedBy:a,ariaDetails:null,ariaDisabled:o,ariaDropEffect:a,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:a,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:a,ariaLevel:i,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:a,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:a,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:o,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}})}}),R=v({"../../../node_modules/property-information/lib/html.js":function(e,t){var n=S(),r=E(),o=B(),i=n.boolean,a=n.overloadedBoolean,s=n.booleanish,l=n.number,c=n.spaceSeparated,u=n.commaSeparated;t.exports=r({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:u,acceptCharset:c,accessKey:c,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:c,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:c,cols:l,colSpan:null,content:null,contentEditable:s,controls:i,controlsList:c,coords:l|u,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:a,draggable:s,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:c,height:l,hidden:i,high:l,href:null,hrefLang:null,htmlFor:c,httpEquiv:c,id:null,imageSizes:null,imageSrcSet:u,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:c,itemRef:c,itemScope:i,itemType:c,kind:null,label:null,lang:null,language:null,list:null,loop:i,low:l,manifest:null,max:null,maxLength:l,media:null,method:null,min:null,minLength:l,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:i,optimum:l,pattern:null,ping:c,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:c,required:i,reversed:i,rows:l,rowSpan:l,sandbox:c,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:l,sizes:null,slot:null,span:l,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:u,start:l,step:null,style:null,tabIndex:l,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:s,width:l,wrap:null,align:null,aLink:null,archive:c,axis:null,background:null,bgColor:null,border:l,borderColor:null,bottomMargin:l,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:l,leftMargin:l,link:null,longDesc:null,lowSrc:null,marginHeight:l,marginWidth:l,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:l,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:l,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:l,security:null,unselectable:null}})}}),A=v({"../../../node_modules/property-information/html.js":function(e,t){var n=x(),r=C(),o=T(),i=O(),a=P(),s=R();t.exports=n([o,r,i,a,s])}}),M=v({"../../../node_modules/property-information/find.js":function(e,t){var n=w(),r=_(),o=k(),i="data";t.exports=function(e,t){var d=n(t),f=t,p=o;return d in e.normal?e.property[e.normal[d]]:(d.length>4&&d.slice(0,4)===i&&a.test(t)&&("-"===t.charAt(4)?f=function(e){var t=e.slice(5).replace(s,u);return i+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return s.test(t)?e:("-"!==(t=t.replace(l,c)).charAt(0)&&(t="-"+t),i+t)}(t),p=r),new p(f,t))};var a=/^data[-\w.:]+$/i,s=/-[a-z]/g,l=/[A-Z]/g;function c(e){return"-"+e.toLowerCase()}function u(e){return e.charAt(1).toUpperCase()}}}),N=v({"../../../node_modules/hast-util-parse-selector/index.js":function(e,t){t.exports=function(e,t){for(var n,r,o,i,a,s=e||"",l=t||"div",c={},u=-1,d=s.length;++u<=d;)(!(o=s.charCodeAt(u))||46===o||35===o)&&((i=s.slice(a,u))&&(46===r?n?n.push(i):(n=[i],c.className=n):35===r?c.id=i:l=i),a=u+1,r=o);return{type:"element",tagName:l,properties:c,children:[]}}}}),D=v({"../../../node_modules/space-separated-tokens/index.js":function(e){e.parse=function(e){var n=String(e||"").trim();return""===n?[]:n.split(t)},e.stringify=function(e){return e.join(" ").trim()};var t=/[ \t\n\r\f]+/g}}),L=v({"../../../node_modules/comma-separated-tokens/index.js":function(e){e.parse=function(e){for(var t,n=[],r=String(e||""),o=r.indexOf(","),i=0,a=!1;!a;)-1===o&&(o=r.length,a=!0),((t=r.slice(i,o).trim())||!a)&&n.push(t),i=o+1,o=r.indexOf(",",i);return n},e.stringify=function(e,t){var n=t||{},r=!1===n.padLeft?"":" ",o=n.padRight?" ":"";return""===e[e.length-1]&&(e=e.concat("")),e.join(o+","+r).trim()}}}),j=v({"../../../node_modules/hastscript/factory.js":function(e,t){var n=M(),r=w(),o=N(),i=D().parse,a=L().parse;t.exports=function(e,t,r){var d=r?function(e){for(var t,n=e.length,r=-1,o={};++r<n;)o[(t=e[r]).toLowerCase()]=t;return o}(r):null;return function(e,n){var r,i=o(e,t),a=Array.prototype.slice.call(arguments,2),u=i.tagName.toLowerCase();if(i.tagName=d&&s.call(d,u)?d[u]:u,n&&l(n,i)&&(a.unshift(n),n=null),n)for(r in n)f(i.properties,r,n[r]);return c(i.children,a),"template"===i.tagName&&(i.content={type:"root",children:i.children},i.children=[]),i};function f(t,r,o){var s,l,c;null==o||o!==o||(l=(s=n(e,r)).property,"string"==typeof(c=o)&&(s.spaceSeparated?c=i(c):s.commaSeparated?c=a(c):s.commaOrSpaceSeparated&&(c=i(a(c).join(" ")))),"style"===l&&"string"!=typeof o&&(c=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(c)),"className"===l&&t.className&&(c=t.className.concat(c)),t[l]=function(e,t,n){var r,o,i;if("object"!=typeof n||!("length"in n))return u(e,t,n);for(o=n.length,r=-1,i=[];++r<o;)i[r]=u(e,t,n[r]);return i}(s,l,c))}};var s={}.hasOwnProperty;function l(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;return!("input"===e||!n||"string"!=typeof n)&&("object"==typeof t.children&&"length"in t.children||(n=n.toLowerCase(),"button"===e?"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n:"value"in t))}(t.tagName,e)}function c(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)c(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function u(e,t,n){var o=n;return e.number||e.positiveNumber?!isNaN(o)&&""!==o&&(o=Number(o)):(e.boolean||e.overloadedBoolean)&&"string"==typeof o&&(""===o||r(n)===r(t))&&(o=!0),o}}}),z=v({"../../../node_modules/hastscript/html.js":function(e,t){var n=A(),r=j()(n,"div");r.displayName="html",t.exports=r}}),W=v({"../../../node_modules/hastscript/index.js":function(e,t){t.exports=z()}}),Z=v({"../../../node_modules/parse-entities/node_modules/character-entities-legacy/index.json":function(e,t){t.exports={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Acirc:"\xc2",Agrave:"\xc0",Aring:"\xc5",Atilde:"\xc3",Auml:"\xc4",COPY:"\xa9",Ccedil:"\xc7",ETH:"\xd0",Eacute:"\xc9",Ecirc:"\xca",Egrave:"\xc8",Euml:"\xcb",GT:">",Iacute:"\xcd",Icirc:"\xce",Igrave:"\xcc",Iuml:"\xcf",LT:"<",Ntilde:"\xd1",Oacute:"\xd3",Ocirc:"\xd4",Ograve:"\xd2",Oslash:"\xd8",Otilde:"\xd5",Ouml:"\xd6",QUOT:'"',REG:"\xae",THORN:"\xde",Uacute:"\xda",Ucirc:"\xdb",Ugrave:"\xd9",Uuml:"\xdc",Yacute:"\xdd",aacute:"\xe1",acirc:"\xe2",acute:"\xb4",aelig:"\xe6",agrave:"\xe0",amp:"&",aring:"\xe5",atilde:"\xe3",auml:"\xe4",brvbar:"\xa6",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",ecirc:"\xea",egrave:"\xe8",eth:"\xf0",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",iacute:"\xed",icirc:"\xee",iexcl:"\xa1",igrave:"\xec",iquest:"\xbf",iuml:"\xef",laquo:"\xab",lt:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",oacute:"\xf3",ocirc:"\xf4",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",otilde:"\xf5",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',raquo:"\xbb",reg:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",times:"\xd7",uacute:"\xfa",ucirc:"\xfb",ugrave:"\xf9",uml:"\xa8",uuml:"\xfc",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}}}),F=v({"../../../node_modules/character-reference-invalid/index.json":function(e,t){t.exports={0:"\ufffd",128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"}}}),H=v({"../../../node_modules/is-decimal/index.js":function(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}}}),U=v({"../../../node_modules/is-hexadecimal/index.js":function(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}}}),$=v({"../../../node_modules/is-alphabetical/index.js":function(e,t){t.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}}}),G=v({"../../../node_modules/is-alphanumerical/index.js":function(e,t){var n=$(),r=H();t.exports=function(e){return n(e)||r(e)}}}),q=v({"../../../node_modules/parse-entities/decode-entity.browser.js":function(e,t){var n;t.exports=function(e){var t,r="&"+e+";";return(n=n||document.createElement("i")).innerHTML=r,(59!==(t=n.textContent).charCodeAt(t.length-1)||"semi"===e)&&t!==r&&t}}}),K=v({"../../../node_modules/parse-entities/index.js":function(e,t){var n=Z(),r=F(),o=H(),i=U(),a=G(),s=q();t.exports=function(e,t){var o,i,x={};for(i in t||(t={}),d){var w;o=t[i],x[i]=null!==(w=o)&&void 0!==w?w:d[i]}return(x.position.indent||x.position.start)&&(x.indent=x.position.indent||[],x.position=x.position.start),function(e,t){var o,i,d,x,w,k,S,_,E,C,T,I,B,O,P,R,A,M,N,D=t.additional,L=t.nonTerminated,j=t.text,z=t.reference,W=t.warning,Z=t.textContext,F=t.referenceContext,H=t.warningContext,U=t.position,$=t.indent||[],G=e.length,q=0,K=-1,V=U.column||1,Y=U.line||1,X="",J=[];for("string"==typeof D&&(D=D.charCodeAt(0)),R=Q(),_=W?ee:u,q--,G++;++q<G;)if(10===w&&(V=$[K]||1),38===(w=e.charCodeAt(q))){if(9===(S=e.charCodeAt(q+1))||10===S||12===S||32===S||38===S||60===S||S!==S||D&&S===D){X+=c(w),V++;continue}for(I=B=q+1,N=B,35===S?(N=++I,88===(S=e.charCodeAt(N))||120===S?(O=p,N=++I):O=h):O=f,o="",T="",x="",P=v[O],N--;++N<G&&P(S=e.charCodeAt(N));)x+=c(S),O===f&&l.call(n,x)&&(o=x,T=n[x]);(d=59===e.charCodeAt(N))&&(N++,(i=O===f&&s(x))&&(o=x,T=i)),M=1+N-B,!d&&!L||(x?O===f?(d&&!T?_(5,1):(o!==x&&(M=1+(N=I+o.length)-I,d=!1),d||(E=o?1:3,t.attribute?61===(S=e.charCodeAt(N))?(_(E,M),T=null):a(S)?T=null:_(E,M):_(E,M))),k=T):(d||_(2,M),y(k=parseInt(x,m[O]))?(_(7,M),k=c(65533)):k in r?(_(6,M),k=r[k]):(C="",b(k)&&_(6,M),k>65535&&(C+=c((k-=65536)>>>10|55296),k=56320|1023&k),k=C+c(k))):O!==f&&_(4,M)),k?(te(),R=Q(),q=N-1,V+=N-B+1,J.push(k),(A=Q()).offset++,z&&z.call(F,k,{start:R,end:A},e.slice(B-1,N)),R=A):(x=e.slice(B-1,N),X+=x,V+=x.length,q=N-1)}else 10===w&&(Y++,K++,V=0),w===w?(X+=c(w),V++):te();return J.join("");function Q(){return{line:Y,column:V,offset:q+(U.offset||0)}}function ee(e,t){var n=Q();n.column+=t,n.offset+=t,W.call(H,g[e],n,e)}function te(){X&&(J.push(X),j&&j.call(Z,X,{start:R,end:Q()}),X="")}}(e,x)};var l={}.hasOwnProperty,c=String.fromCharCode,u=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},f="named",p="hexadecimal",h="decimal",m={hexadecimal:16,decimal:10},v={};v.named=a,v[h]=o,v[p]=i;var g={};function y(e){return e>=55296&&e<=57343||e>1114111}function b(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535===(65535&e)||65534===(65535&e)}g[1]="Named character references must be terminated by a semicolon",g[2]="Numeric character references must be terminated by a semicolon",g[3]="Named character references cannot be empty",g[4]="Numeric character references cannot be empty",g[5]="Named character references must be known",g[6]="Numeric character references cannot be disallowed",g[7]="Numeric character references cannot be outside the permissible Unicode range"}}),V=v({"../../../node_modules/refractor/node_modules/prismjs/components/prism-core.js":function(e,t){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=i[s])}var c=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=o.util.type(l);"Object"!==c||i[a(l)]?"Array"===c&&!i[a(l)]&&(i[a(l)]=!0,e(l,n,s,i)):(i[a(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=o.util.getLanguage(t),a=o.languages[i];o.util.setLanguage(t,i);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&o.util.setLanguage(s,i);var l={element:t,language:i,grammar:a,code:t.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),r&&r.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(r&&r.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(o.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(o.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return c(o,o.head,e),s(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function s(e,t,n,r,l,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var m=p[h],v=m.inside,g=!!m.lookbehind,y=!!m.greedy,b=m.alias;if(y&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var w=m.pattern||m,k=r.next,S=l;k!==t.tail&&!(d&&S>=d.reach);S+=k.value.length,k=k.next){var _=k.value;if(t.length>e.length)return;if(!(_ instanceof i)){var E,C=1;if(y){if(!(E=a(w,S,e,g))||E.index>=e.length)break;var T=E.index,I=E.index+E[0].length,B=S;for(B+=k.value.length;T>=B;)B+=(k=k.next).value.length;if(S=B-=k.value.length,k.value instanceof i)continue;for(var O=k;O!==t.tail&&(B<I||"string"==typeof O.value);O=O.next)C++,B+=O.value.length;C--,_=e.slice(S,B),E.index-=S}else if(!(E=a(w,0,_,g)))continue;T=E.index;var P=E[0],R=_.slice(0,T),A=_.slice(T+P.length),M=S+_.length;d&&M>d.reach&&(d.reach=M);var N=k.prev;if(R&&(N=c(t,N,R),S+=R.length),u(t,N,C),k=c(t,N,new i(f,v?o.tokenize(P,v):P,b,P)),A&&c(t,k,A),C>1){var D={cause:f+","+h,reach:M};s(e,t,n,k.prev,S,D),d&&D.reach>d.reach&&(d.reach=D.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function u(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener&&(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1)),o;var d=o.util.currentScript();function f(){o.manual||o.highlightAll()}if(d&&(o.filename=d.src,d.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return o}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});typeof t<"u"&&t.exports&&(t.exports=r),typeof n.g<"u"&&(n.g.Prism=r)}}),Y=v({"../../../node_modules/refractor/lang/markup.js":function(e,t){function n(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&amp;/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:o},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}t.exports=n,n.displayName="markup",n.aliases=["html","mathml","svg","xml","ssml","atom","rss"]}}),X=v({"../../../node_modules/refractor/lang/css.js":function(e,t){function n(e){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}t.exports=n,n.displayName="css",n.aliases=[]}}),J=v({"../../../node_modules/refractor/lang/clike.js":function(e,t){function n(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}t.exports=n,n.displayName="clike",n.aliases=[]}}),Q=v({"../../../node_modules/refractor/lang/javascript.js":function(e,t){function n(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}t.exports=n,n.displayName="javascript",n.aliases=["js"]}}),ee=v({"../../../node_modules/refractor/core.js":function(e,t){var r="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},o=function(){var e="Prism"in r,t=e?r.Prism:void 0;return function(){e?r.Prism=t:delete r.Prism,e=void 0,t=void 0}}();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var i=W(),a=K(),s=V(),l=Y(),c=X(),u=J(),d=Q();o();var f={}.hasOwnProperty;function p(){}p.prototype=s;var h=new p;function m(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===h.languages[e.displayName]&&e(h)}t.exports=h,h.highlight=function(e,t){var n,r=s.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===h.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!f.call(h.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=h.languages[t]}return r.call(this,e,n,t)},h.register=m,h.alias=function(e,t){var n,r,o,i,a=h.languages,s=e;for(n in t&&((s={})[e]=t),s)for(r=s[n],o=(r="string"==typeof r?[r]:r).length,i=-1;++i<o;)a[r[i]]=a[n]},h.registered=function(e){if("string"!=typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return f.call(h.languages,e)},h.listLanguages=function(){var e,t=h.languages,n=[];for(e in t)f.call(t,e)&&"object"==typeof t[e]&&n.push(e);return n},m(l),m(c),m(u),m(d),h.util.encode=function(e){return e},h.Token.stringify=function(e,t,n){var r;return"string"==typeof e?{type:"text",value:e}:"Array"===h.util.type(e)?function(e,t){for(var n,r=[],o=e.length,i=-1;++i<o;)""!==(n=e[i])&&null!==n&&void 0!==n&&r.push(n);for(i=-1,o=r.length;++i<o;)n=r[i],r[i]=h.Token.stringify(n,t,r);return r}(e,t):(r={type:e.type,content:h.Token.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n},e.alias&&(r.classes=r.classes.concat(e.alias)),h.hooks.run("wrap",r),i(r.tag+"."+r.classes.join("."),function(e){var t;for(t in e)e[t]=a(e[t]);return e}(r.attributes),r.content))}}}),te=v({"../../../node_modules/refractor/lang/bash.js":function(e,t){function n(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(e)}t.exports=n,n.displayName="bash",n.aliases=["shell"]}}),ne=v({"../../../node_modules/refractor/lang/c.js":function(e,t){function n(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}t.exports=n,n.displayName="c",n.aliases=[]}}),re=v({"../../../node_modules/refractor/lang/csharp.js":function(e,t){function n(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var c=l(i),u=RegExp(l(o+" "+i+" "+a+" "+s)),d=l(i+" "+a+" "+s),f=l(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[m,p]),g=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[g,y]),x=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),k=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,g,y]),S={keyword:u,punctuation:/[<>()?,.:[\]]/},_=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,E=/"(?:\\.|[^\\"\r\n])*"/.source,C=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[C]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[E]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[g]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,k]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[c,v]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[g]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[k,f,m]),inside:S}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[k,g]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[k]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,p]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[c,v,m,k,u.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(k),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var T=E+"|"+_,I=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[T]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),O=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,P=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[g,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[O,P]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[O]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var R=/:[^}\r\n]+/.source,A=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[I]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[A,R]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[T]),2),D=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,R]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,R]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:L(M,A)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[D]),lookbehind:!0,greedy:!0,inside:L(D,N)}],char:{pattern:RegExp(_),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}t.exports=n,n.displayName="csharp",n.aliases=["dotnet","cs"]}}),oe=v({"../../../node_modules/refractor/lang/go.js":function(e,t){function n(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}t.exports=n,n.displayName="go",n.aliases=[]}}),ie=v({"../../../node_modules/refractor/lang/groovy.js":function(e,t){function n(e){e.languages.groovy=e.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",(function(t){if("groovy"===t.language&&"string"===t.type){var n=t.content.value[0];if("'"!=n){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===n&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content.value=t.content.value.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=e.highlight(t.content.value,{expression:{pattern:r,lookbehind:!0,inside:e.languages.groovy}}),t.classes.push("/"===n?"regex":"gstring")}}}))}t.exports=n,n.displayName="groovy",n.aliases=[]}}),ae=v({"../../../node_modules/refractor/lang/java.js":function(e,t){function n(e){!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}t.exports=n,n.displayName="java",n.aliases=[]}}),se=v({"../../../node_modules/refractor/lang/json.js":function(e,t){function n(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}t.exports=n,n.displayName="json",n.aliases=["webmanifest"]}}),le=v({"../../../node_modules/refractor/lang/jsx.js":function(e,t){function n(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function e(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(e).join(""):""},s=function t(n){for(var r=[],o=0;o<n.length;o++){var i=n[o],s=!1;if("string"!=typeof i&&("tag"===i.type&&i.content[0]&&"tag"===i.content[0].type?"</"===i.content[0].content[0].content?r.length>0&&r[r.length-1].tagName===a(i.content[0].content[1])&&r.pop():"/>"===i.content[i.content.length-1].content||r.push({tagName:a(i.content[0].content[1]),openedBraces:0}):r.length>0&&"punctuation"===i.type&&"{"===i.content?r[r.length-1].openedBraces++:r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?r[r.length-1].openedBraces--:s=!0),(s||"string"==typeof i)&&r.length>0&&0===r[r.length-1].openedBraces){var l=a(i);o<n.length-1&&("string"==typeof n[o+1]||"plain-text"===n[o+1].type)&&(l+=a(n[o+1]),n.splice(o+1,1)),o>0&&("string"==typeof n[o-1]||"plain-text"===n[o-1].type)&&(l=a(n[o-1])+l,n.splice(o-1,1),o--),n[o]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&t(i.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(e)}t.exports=n,n.displayName="jsx",n.aliases=[]}}),ce=v({"../../../node_modules/refractor/lang/markup-templating.js":function(e,t){function n(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var l=0;l<s.length&&!(o>=i.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=i[o],d=n.tokenStack[u],f="string"==typeof c?c:c.content,p=t(r,u),h=f.indexOf(p);if(h>-1){++o;var m=f.substring(0,h),v=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),g=f.substring(h+p.length),y=[];m&&y.push.apply(y,a([m])),y.push(v),g&&y.push.apply(y,a([g])),"string"==typeof c?s.splice.apply(s,[l,1].concat(y)):c.content=y}}else c.content&&a(c.content)}return s}(n.tokens)}}}})}(e)}t.exports=n,n.displayName="markupTemplating",n.aliases=[]}}),ue=v({"../../../node_modules/refractor/lang/php.js":function(e,t){var n=ce();function r(e){e.register(n),function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(e)}t.exports=r,r.displayName="php",r.aliases=[]}}),de=v({"../../../node_modules/refractor/lang/python.js":function(e,t){function n(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}t.exports=n,n.displayName="python",n.aliases=["py"]}}),fe=v({"../../../node_modules/refractor/lang/ruby.js":function(e,t){function n(e){!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(e)}t.exports=n,n.displayName="ruby",n.aliases=["rb"]}}),pe=v({"../../../node_modules/refractor/lang/shell-session.js":function(e,t){var n=te();function r(e){e.register(n),function(e){var t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,(function(){return t})),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}(e)}t.exports=r,r.displayName="shellSession",r.aliases=[]}});function he(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(o[n]=e[n]))}return o}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ve(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(e){var t=function(e,t){if("object"!==ge(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ge(t)?t:String(t)}function be(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xe.apply(this,arguments)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Se={};function _e(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return Se[t]||(Se[t]=function(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}(e)),Se[t]}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter((function(e){return"token"!==e})),o=_e(r);return o.reduce((function(e,t){return ke(ke({},e),n[t])}),t)}function Ce(e){return e.join(" ")}function Te(e){var t=e.node,n=e.stylesheet,r=e.style,o=void 0===r?{}:r,i=e.useInlineStyles,a=e.key,s=t.properties,c=t.type,u=t.tagName,d=t.value;if("text"===c)return d;if(u){var f,p=function(e,t){var n=0;return function(r){return n+=1,r.map((function(r,o){return Te({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})}))}}(n,i);if(i){var h=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),m=s.className&&s.className.includes("token")?["token"]:[],v=s.className&&m.concat(s.className.filter((function(e){return!h.includes(e)})));f=ke(ke({},s),{},{className:Ce(v)||void 0,style:Ee(s.className,Object.assign({},s.style,o),n)})}else f=ke(ke({},s),{},{className:Ce(s.className)});var g=p(t.children);return l.createElement(u,xe({key:a},f),g)}}var Ie=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=/\n/g;function Re(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,o=void 0===r?{float:"left",paddingRight:"10px"}:r,i=e.numberStyle,a=void 0===i?{}:i,s=e.startingLineNumber;return l.createElement("code",{style:Object.assign({},n,o)},function(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map((function(e,t){var o=t+n;return l.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"==typeof r?r(o):r},"".concat(o,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:a,startingLineNumber:s}))}function Ae(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Me(e,t,n){var r,o={display:"inline-block",minWidth:(r=n,"".concat(r.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},i="function"==typeof e?e(t):e;return Oe(Oe({},o),i)}function Ne(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,o=e.largestLineNumber,i=e.showInlineLineNumbers,a=e.lineProps,s=void 0===a?{}:a,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,f="function"==typeof s?s(n):s;if(f.className=c,n&&i){var p=Me(r,n,o);t.unshift(Ae(n,p))}return d&u&&(f.style=Oe(Oe({},f.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:f,children:t}}function De(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r<e.length;r++){var o=e[r];if("text"===o.type)n.push(Ne({children:[o],className:ve(new Set(t))}));else if(o.children){var i=t.concat(o.properties.className);De(o.children,i).forEach((function(e){return n.push(e)}))}}return n}function Le(e,t,n,r,o,i,a,s,l){var c,u=De(e.value),d=[],f=-1,p=0;function h(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Ne({children:e,lineNumber:t,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:o,lineProps:n,className:i,showLineNumbers:r,wrapLongLines:l})}function m(e,t){if(r&&t&&o){var n=Me(s,t,a);e.unshift(Ae(t,n))}return e}function v(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||r.length>0?h(e,n,r):m(e,n)}for(var g=function(){var e=u[p],t=e.children[0].value;if(t.match(Pe)){var n=t.split("\n");n.forEach((function(t,o){var a=r&&d.length+i,s={type:"text",value:"".concat(t,"\n")};if(0===o){var l=v(u.slice(f+1,p).concat(Ne({children:[s],className:e.properties.className})),a);d.push(l)}else if(o===n.length-1){var c=u[p+1]&&u[p+1].children&&u[p+1].children[0],h={type:"text",value:"".concat(t)};if(c){var m=Ne({children:[h],className:e.properties.className});u.splice(p+1,0,m)}else{var g=v([h],a,e.properties.className);d.push(g)}}else{var y=v([s],a,e.properties.className);d.push(y)}})),f=p}p++};p<u.length;)g();if(f!==u.length-1){var y=u.slice(f+1,u.length);if(y&&y.length){var b=v(y,r&&d.length+i);d.push(b)}}return t?d:(c=[]).concat.apply(c,d)}function je(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map((function(e,t){return Te({node:e,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(t)})}))}function ze(e){return e&&typeof e.highlightAuto<"u"}var We,Ze,Fe=g(ee()),He=(We=Fe.default,Ze={},function(e){var t=e.language,n=e.children,r=e.style,o=void 0===r?Ze:r,i=e.customStyle,a=void 0===i?{}:i,s=e.codeTagProps,c=void 0===s?{className:t?"language-".concat(t):void 0,style:Oe(Oe({},o['code[class*="language-"]']),o['code[class*="language-'.concat(t,'"]')])}:s,u=e.useInlineStyles,d=void 0===u||u,f=e.showLineNumbers,p=void 0!==f&&f,h=e.showInlineLineNumbers,m=void 0===h||h,v=e.startingLineNumber,g=void 0===v?1:v,y=e.lineNumberContainerStyle,b=e.lineNumberStyle,x=void 0===b?{}:b,w=e.wrapLines,k=e.wrapLongLines,S=void 0!==k&&k,_=e.lineProps,E=void 0===_?{}:_,C=e.renderer,T=e.PreTag,I=void 0===T?"pre":T,B=e.CodeTag,O=void 0===B?"code":B,P=e.code,R=void 0===P?(Array.isArray(n)?n[0]:n)||"":P,A=e.astGenerator,M=he(e,Ie);A=A||We;var N=p?l.createElement(Re,{containerStyle:y,codeStyle:c.style||{},numberStyle:x,startingLineNumber:g,codeString:R}):null,D=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},L=ze(A)?"hljs":"prismjs",j=d?Object.assign({},M,{style:Object.assign({},D,a)}):Object.assign({},M,{className:M.className?"".concat(L," ").concat(M.className):L,style:Object.assign({},a)});if(c.style=Oe(Oe({},c.style),{},S?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"}),!A)return l.createElement(I,j,N,l.createElement(O,c,R));(void 0===w&&C||S)&&(w=!0),C=C||je;var z=[{type:"text",value:R}],W=function(e){var t=e.astGenerator,n=e.language,r=e.code,o=e.defaultCodeValue;if(ze(t)){var i=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:o,language:"text"}:i?t.highlight(n,r):t.highlightAuto(r)}try{return n&&"text"!==n?{value:t.highlight(r,n)}:{value:o}}catch(a){return{value:o}}}({astGenerator:A,language:t,code:R,defaultCodeValue:z});null===W.language&&(W.value=z);var Z=Le(W,w,E,p,m,g,W.value.length+g,x,S);return l.createElement(I,j,l.createElement(O,c,!m&&N,C({rows:Z,stylesheet:o,useInlineStyles:d})))});He.registerLanguage=function(e,t){return Fe.default.register(t)},He.alias=function(e,t){return Fe.default.alias(e,t)};var Ue=He,$e=g(te()).default,Ge=g(ne()).default,qe=g(re()).default,Ke=g(oe()).default,Ve=g(ie()).default,Ye=g(ae()).default,Xe=g(Q()).default,Je=g(se()).default,Qe=g(le()).default,et=g(ue()).default,tt=g(de()).default,nt=g(fe()).default,rt=g(pe()).default,ot="javascript",it="jsx",at="csharp",st="php",lt="ruby",ct="python",ut="java",dt="json",ft="c",pt="bash",ht="shell",mt="go",vt="groovy";Ue.registerLanguage(ot,Xe),Ue.registerLanguage(it,Qe),Ue.registerLanguage(at,qe),Ue.registerLanguage(st,et),Ue.registerLanguage(lt,nt),Ue.registerLanguage(ct,tt),Ue.registerLanguage(ut,Ye),Ue.registerLanguage(dt,Je),Ue.registerLanguage(ft,Ge),Ue.registerLanguage(pt,$e),Ue.registerLanguage(ht,rt),Ue.registerLanguage(mt,Ke),Ue.registerLanguage(vt,Ve);var gt=n(7666),yt=n(2714),bt=n(9741),xt=Object.create,wt=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,St=Object.getOwnPropertyNames,_t=Object.getPrototypeOf,Et=Object.prototype.hasOwnProperty,Ct=function(e,t){return function(){return t||(0,e[St(e)[0]])((t={exports:{}}).exports,t),t.exports}},Tt=function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,s.Z)(St(t));try{var a=function(){var i=o.value;!Et.call(e,i)&&i!==n&&wt(e,i,{get:function(){return t[i]},enumerable:!(r=kt(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(l){i.e(l)}finally{i.f()}}return e},It=function(e){return Tt(wt({},"__esModule",{value:!0}),e)},Bt=Ct({"../../../node_modules/clipboard-copy/index.js":function(e,t){t.exports=function(e){if(navigator.clipboard)return navigator.clipboard.writeText(e).catch((function(e){throw void 0!==e?e:new DOMException("The request is not allowed","NotAllowedError")}));var t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);var n=window.getSelection(),r=window.document.createRange();n.removeAllRanges(),r.selectNode(t),n.addRange(r);var o=!1;try{o=window.document.execCommand ("copy")}catch(i){console.log("error",i)}return n.removeAllRanges(),window.document.body.removeChild(t),o?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))}}}),Ot={};!function(e,t){for(var n in t)wt(e,n,{get:t[n],enumerable:!0})}(Ot,{default:function(){return c}});var Pt,Rt,At,Mt,Nt,Dt=(Pt={"esm-externals:react":function(){var e,t;Tt(Ot,e=c,"default"),t&&Tt(t,e,"default")}},function(){return Pt&&(Rt=(0,Pt[St(Pt)[0]])(Pt=0)),Rt}),Lt=Ct({"../../../node_modules/use-clipboard-copy/dist/useTimedToggle.js":function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.useTimedToggle=void 0;var t=(Dt(),It(Ot));e.useTimedToggle=function(e){var n=t.useState(!1),r=n[0],o=n[1],i=t.useRef(),a=t.useRef(e);return t.useEffect((function(){return function(){return clearTimeout(i.current)}}),[]),[r,function(e){clearTimeout(i.current),o(!a.current),i.current=window.setTimeout((function(){return o(a.current)}),e)}]}}}),jt=Ct({"../../../node_modules/use-clipboard-copy/dist/index.js":function(e){var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.useClipboard=void 0;var n=t(Bt()),r=(Dt(),It(Ot)),o=Lt();function i(e){return e&&("TEXTAREA"===e.nodeName||"INPUT"===e.nodeName)}e.useClipboard=function(e){void 0===e&&(e={});var t=o.useTimedToggle(!1),a=t[0],s=t[1],l=r.useRef(null),c=r.useRef(e);return c.current=e,{copied:a,copy:r.useCallback((function(e){var t=c.current,r=l.current;function o(){t.onSuccess&&t.onSuccess(),t.copiedTimeout&&s(t.copiedTimeout),t.selectOnCopy&&i(r)&&r.select()}function a(){t.onError&&t.onError(),!1!==t.selectOnError&&i(r)&&r.select()}function u(e){n.default(e).then(o).catch(a)}"string"==typeof e?u(e):r&&u(r.value)}),[]),isSupported:function(){return!!navigator.clipboard||"function"==typeof document.execCommand&&"function"==typeof document.queryCommandSupported&&document.queryCommandSupported("copy")},target:l}}}}),zt=(At=jt(),Nt=null!=At?xt(_t(At)):{},Tt(!Mt&&At&&At.__esModule?Nt:wt(Nt,"default",{value:At,enumerable:!0}),At)).useClipboard,Wt=n(9628),Zt=n(8015),Ft=l.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,c=e.title,u=e.decorative,d="CopyIcon-".concat((0,Wt.Dt)());if(!u&&null==c)throw new Error("[CopyIcon]: Missing a title for non-decorative icon.");return l.createElement(Zt.a,{as:n,display:r,element:i,size:a,color:s,ref:t},l.createElement("svg",{role:"img","aria-hidden":u,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":d},c?l.createElement("title",{id:d},c):null,l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.469 2.5c.63 0 1.15.48 1.212 1.094l.007.125-.001 1.593h1.407c.73 0 1.331.558 1.4 1.271l.006.136v9.375c0 .776-.63 1.406-1.406 1.406H6.719c-.777 0-1.407-.63-1.407-1.406v-1.407H3.719c-.631 0-1.15-.48-1.213-1.094L2.5 13.47v-9.75c0-.631.48-1.15 1.094-1.213L3.72 2.5h9.75zm2.625 3.75H6.719a.469.469 0 00-.469.469v9.375c0 .259.21.468.469.468h9.375c.259 0 .468-.21.468-.468V6.719a.469.469 0 00-.468-.469zm-2.625-2.813h-9.75a.281.281 0 00-.274.217l-.007.065v9.75c0 .133.092.244.216.274l.065.007 1.593-.001v-7.03c0-.731.558-1.332 1.271-1.4l.136-.006 7.031-.001V3.719a.281.281 0 00-.217-.274l-.064-.007z"})))}));Ft.displayName="CopyIcon";var Ht=n(9643),Ut=n(4086),$t=n(6168),Gt=n(7258),qt=n(5747),Kt=n(3178),Vt=n(8012),Yt=["text","i18nCopyLabelBefore","i18nCopyLabelAfter","element","copyTextFormatter"],Xt=["i18nLinkLabel","href","element"],Jt=["element","language","code","variant","showLineNumbers","wrapLines","maxLines","externalLink","i18nCopyLabelAfter","i18nCopyLabelBefore","i18nLinkLabel","copyTextFormatter"],Qt=["children","element","as"],en=["children","element"],tn=["children","element"],nn=["children","element"],rn=function(e){var t=(0,yt.Fg)();return(0,gt.iv)({'code[class*="language-"]':{color:"#d6deeb",fontFamily:"fontFamilyCode",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"white",fontFamily:"fontFamilyCode",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",fontSize:"1em",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",margin:"0",overflow:"auto",background:"inherit",display:"-webkit-box",WebkitLineClamp:"".concat(e),WebkitBoxOrient:"vertical",width:"100%"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"inherit"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"inherit"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"inherit"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"inherit"},'pre[class*="language-"]::selection':{textShadow:"none",background:"inherit"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"inherit"},'code[class*="language-"]::selection':{textShadow:"none",background:"inherit"},'code[class*="language-"] ::selection':{textShadow:"none",background:"inherit"},':not(pre) > code[class*="language-"]':{color:"white",background:"#011627",padding:"0.1em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"rgb(136, 145, 170)",fontStyle:"italic"},linenumber:{color:"colorTextInverseWeak",fontStyle:"none"},prolog:{color:"rgb(99, 119, 119)",fontStyle:"italic"},cdata:{color:"rgb(99, 119, 119)",fontStyle:"italic"},punctuation:{color:"rgb(199, 146, 234)"},".namespace":{color:"rgb(178, 204, 214)"},deleted:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"},symbol:{color:"rgb(128, 203, 196)"},property:{color:"rgb(128, 203, 196)"},tag:{color:"rgb(127, 219, 202)"},operator:{color:"rgb(127, 219, 202)"},keyword:{color:"rgb(127, 219, 202)"},boolean:{color:"rgb(255, 88, 116)"},number:{color:"rgb(247, 140, 108)"},constant:{color:"rgb(130, 170, 255)"},function:{color:"rgb(130, 170, 255)"},builtin:{color:"rgb(130, 170, 255)"},char:{color:"rgb(130, 170, 255)"},selector:{color:"rgb(199, 146, 234)",fontStyle:"italic"},doctype:{color:"rgb(199, 146, 234)",fontStyle:"italic"},"attr-name":{color:"rgb(173, 219, 103)",fontStyle:"italic"},inserted:{color:"rgb(173, 219, 103)",fontStyle:"italic"},string:{color:"rgb(173, 219, 103)"},url:{color:"rgb(173, 219, 103)"},entity:{color:"rgb(173, 219, 103)"},".language-css .token.string":{color:"rgb(173, 219, 103)"},".style .token.string":{color:"rgb(173, 219, 103)"},"class-name":{color:"rgb(255, 203, 139)"},atrule:{color:"rgb(255, 203, 139)"},"attr-value":{color:"rgb(255, 203, 139)"},regex:{color:"rgb(214, 222, 235)"},important:{color:"rgb(214, 222, 235)",fontWeight:"bold"},variable:{color:"rgb(214, 222, 235)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}})(t)},on=function(e){var t=e.text,n=e.i18nCopyLabelBefore,s=void 0===n?"Copy code block":n,c=e.i18nCopyLabelAfter,u=void 0===c?"Copied!":c,d=e.element,f=void 0===d?"COPY_BUTTON":d,p=e.copyTextFormatter,h=(0,i.Z)(e,Yt),m=(0,Ut.KC)(),v=l.useState(s),g=(0,o.Z)(v,2),y=g[0],b=g[1],x=l.useRef(!0),w=l.useMemo((function(){return e=s,t=u,function(n){return n?t:e};var e,t}),[s,u]),k=zt({copiedTimeout:1500}),S=l.useCallback((function(){var e=p?p(t):t;k.copy(e)}),[t,p,k]);return l.useEffect((function(){b(w(k.copied))}),[k.copied,w]),l.useEffect((function(){x.current?x.current=!1:setTimeout((function(){m.unstable_update()}),0)}),[m]),l.createElement($t.Tooltip,{text:y,state:m,element:"".concat(f,"_TOOLTIP")},l.createElement(bt.Button,(0,r.Z)({variant:"inverse",size:"icon_small",onClick:S,element:f},h),l.createElement(a.Box,{as:"span"},l.createElement(Ft,{decorative:!0}),l.createElement(a.Box,{as:"span","aria-live":"polite"},l.createElement(Ht.ScreenReaderOnly,null,y)))))};on.displayName="CopyButton";var an=function(e){var t=e.i18nLinkLabel,n=void 0===t?"Open code block in new page":t,o=e.href,a=e.element,s=void 0===a?"EXTERNAL_LINK":a,c=(0,i.Z)(e,Xt),u=(0,Ut.KC)(),d=n,f=l.useRef(!0);return l.useEffect((function(){f.current?f.current=!1:(u.hide(),setTimeout((function(){return u.show()}),0))}),[d]),l.createElement($t.Tooltip,{text:d,element:"".concat(s,"_TOOLTIP")},l.createElement(bt.Button,(0,r.Z)({as:"a",variant:"inverse",size:"icon_small",href:o,element:s,target:"_blank"},c),l.createElement(Gt.P,{decorative:!0}),l.createElement(Ht.ScreenReaderOnly,null,n)))};an.displayName="ExternalLinkButton";var sn={"single-line":{gridTemplateColumns:"1fr auto",gridTemplateAreas:'"code-block button-group"',columnGap:"space40",borderRadius:"borderRadius20",paddingY:"space60"},"multi-line":{gridTemplateRows:"auto 1fr",gridTemplateAreas:'"button-group" "code-block"',rowGap:"space20",paddingTop:"space50",paddingBottom:"space90"}},ln=l.forwardRef((function(e,t){var n=e.element,o=void 0===n?"CODE_BLOCK":n,s=e.language,c=e.code,u=e.variant,d=void 0===u?"multi-line":u,f=e.showLineNumbers,p=e.wrapLines,h=e.maxLines,m=e.externalLink,v=e.i18nCopyLabelAfter,g=e.i18nCopyLabelBefore,y=e.i18nLinkLabel,b=e.copyTextFormatter,x=(0,i.Z)(e,Jt);return l.createElement(a.Box,(0,r.Z)((0,r.Z)({ref:t,element:o,variant:d},(0,a.safelySpreadBoxProps)(x)),{},{backgroundColor:"colorBackgroundBodyInverse",paddingX:"space70",display:"grid"},sn[d]),l.createElement(a.Box,{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"space40",justifyContent:"multi-line"===d?"flex-end":void 0,gridArea:"button-group"},l.createElement(a.Box,null,l.createElement(on,{element:"".concat(o,"_COPY_BUTTON"),text:c,i18nCopyLabelAfter:v,i18nCopyLabelBefore:g,copyTextFormatter:b})),m&&l.createElement(a.Box,null,l.createElement(an,{href:m,element:"".concat(o,"_EXTERNAL_LINK"),i18nLinkLabel:y}))),l.createElement(a.Box,{element:"".concat(o,"_CONTENT"),display:"flex",alignItems:"center",overflowX:"auto",gridArea:"code-block"},l.createElement(Ue,{language:s,style:rn(h),showLineNumbers:f,wrapLongLines:p,wrapLines:!0},c)))}));ln.displayName="CodeBlock";var cn=l.forwardRef((function(e,t){var n=e.children,o=e.element,s=void 0===o?"CODE_BLOCK_HEADER":o,c=e.as,u=void 0===c?"h3":c,d=(0,i.Z)(e,Qt);return l.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(d)),{},{ref:t,element:s,as:u,backgroundColor:"colorBackgroundInverseStrong",color:"colorTextInverse",paddingY:"space50",paddingX:"space70",margin:"space0",borderTopLeftRadius:"borderRadius20",borderTopRightRadius:"borderRadius20",fontWeight:"fontWeightSemibold",fontSize:"fontSize30"}),n)}));cn.displayName="CodeBlockHeader";var un=l.forwardRef((function(e,t){var n=e.children,o=e.element,a=void 0===o?"CODE_BLOCK_TAB":o,s=(0,i.Z)(e,en);return l.createElement(qt.Tab,(0,r.Z)({element:a,ref:t},s),n)}));un.displayName="CodeBlockTab";var dn={color:"colorTextIconInverse",_hover:{color:"colorTextInverse",cursor:"pointer"}},fn=function(e){var t=e.onClick,n=e.position,o=e.visible,i=e.element,s=void 0===i?"CODE_BLOCK_TAB_LIST":i,c=e.showShadow,u=(0,yt.Fg)(),d="left"===n?Kt.w:Vt.X;return o||"right"!==n?l.createElement(a.Box,(0,r.Z)({onClick:t,"aria-hidden":!0,display:"flex",alignItems:"center",justifyContent:"center",width:"sizeBase60",padding:"space10",position:"relative",boxShadow:function(){if(o&&c)return"left"===n?u.shadows.shadowLeftInverse:u.shadows.shadowRightInverse}(),element:"".concat(s,"_OVERFLOW_BUTTON_").concat(n.toUpperCase()),cursor:o?"pointer":"none",zIndex:"zIndex10"},dn),o&&l.createElement(d,{decorative:!0})):null};fn.displayName="OverflowButton";var pn=function(e,t,n,r){var o="left"===e?t:n;if(r&&o){var i=o.getBoundingClientRect(),a=r.getBoundingClientRect(),s=r.scrollLeft+(i.left-a.left)-a.width/2+i.width/2;r.scrollTo({left:s,behavior:"smooth"})}},hn=gt.iK.div((function(){return(0,gt.iv)({overflowX:"auto",overflowY:"hidden",overflowScrolling:"touch","@supports (-moz-appearance:none)":{paddingBottom:"0px",scrollbarWidth:"none"},"::-webkit-scrollbar":{height:0},"::-webkit-scrollbar-track":{background:"transparent"}})})),mn=l.forwardRef((function(e,t){var n=e.children,s=e.element,c=void 0===s?"CODE_BLOCK_TAB_LIST":s,u=(0,i.Z)(e,tn),d=l.useContext(qt.TabsContext),f=l.useRef(null),p=l.useRef(null),h=function(){var e=l.useState(null),t=(0,o.Z)(e,2),n=t[0],r=t[1],i=l.useState(null),a=(0,o.Z)(i,2),s=a[0],c=a[1];return{elementOutOBoundsLeft:n,elementOutOBoundsRight:s,determineElementsOutOfBounds:function(e,t){if(e&&t){var n=null===e||void 0===e?void 0:e.getBoundingClientRect().right,o=null===e||void 0===e?void 0:e.getBoundingClientRect().x,i=null,a=null;t.childNodes.forEach((function(e){var t=e.getBoundingClientRect(),s=t.x,l=t.right;s<o&&l>n||(Math.round(s)<Math.round(o-28)&&(i=e),Math.round(l)>Math.round(n+28)&&!a&&(a=e)),r(i),c(a)}))}}}}(),m=h.determineElementsOutOfBounds,v=h.elementOutOBoundsLeft,g=h.elementOutOBoundsRight,y=function(){var e,t=l.useState(!1),n=(0,o.Z)(t,2),r=n[0],i=n[1];return{showShadow:r,handleShadow:function(){e&&window.clearTimeout(e),i(!0),e=window.setTimeout((function(){i(!1)}),500)}}}(),b=y.handleShadow,x=y.showShadow,w=function(){b(),m(f.current,p.current)};return l.useEffect((function(){f.current&&p.current&&(f.current.addEventListener("scroll",w),window.addEventListener("resize",w),m(f.current,p.current))}),[f.current,p.current]),l.useEffect((function(){return function(){f.current&&(f.current.removeEventListener("scroll",w),window.removeEventListener("resize",w))}}),[]),l.createElement(Ut.td,(0,r.Z)((0,r.Z)((0,r.Z)({},d),{},{as:a.Box},u),{},{element:c,ref:t}),l.createElement(a.Box,{element:"".concat(c,"_CHILD_WRAPPER"),display:"flex"},l.createElement(fn,{position:"left",onClick:function(){return pn("left",v,g,f.current)},visible:Boolean(v),element:c,showShadow:x}),l.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(u)),{},{as:hn,ref:f,display:"flex",flexWrap:"nowrap",element:"".concat(c,"_CHILD_SCROLL_WRAPPER"),overflowX:"auto",overflowY:"hidden",flexGrow:1,width:"calc(100% - 60px)"}),l.createElement(a.Box,{whiteSpace:"nowrap",element:"".concat(c,"_CHILD"),display:"flex",borderBottomStyle:"solid",borderBottomWidth:"borderWidth10",borderBottomColor:"colorBorderInverseWeaker",ref:p,flexGrow:1,columnGap:"space20"},n)),l.createElement(fn,{position:"right",onClick:function(){return pn("right",v,g,f.current)},visible:Boolean(g),element:c,showShadow:x})))}));mn.displayName="CodeBlockTabList";var vn=l.forwardRef((function(e,t){var n=e.children,o=e.element,a=void 0===o?"CODE_BLOCK_TAB_PANEL":o,s=(0,i.Z)(e,nn);return l.createElement(qt.TabPanel,(0,r.Z)((0,r.Z)({},s),{},{paddingTop:"space0",element:a,ref:t}),n)}));vn.displayName="CodeBlockTabPanel";var gn=l.forwardRef((function(e,t){var n=e.children,r=e.state,o=e.element,i=void 0===o?"CODE_BLOCK_WRAPPER":o;return l.createElement(qt.Tabs,{variant:"inverse",state:r},l.createElement(a.Box,{backgroundColor:"colorBackgroundInverseStrong",borderRadius:"borderRadius20",overflow:"hidden",element:i,ref:t},n))}));gn.displayName="CodeBlockWrapper"},9990:function(e,t,n){"use strict";n.r(t),n.d(t,{ComboboxPrimitive:function(){return r.ZP},useComboboxPrimitive:function(){return r.Kb},useMultiSelectPrimitive:function(){return r.M$}});var r=n(6811)},7785:function(e,t,n){"use strict";n.r(t),n.d(t,{Combobox:function(){return Qn},ComboboxListbox:function(){return Vn},ComboboxListboxGroup:function(){return Ln},ComboboxListboxOption:function(){return zn},MultiselectCombobox:function(){return rr},useCombobox:function(){return s.Kb},useMultiselectCombobox:function(){return s.M$}});var r=n(885),o=n(4925),i=n(1413),a=n(7762),s=n(6811),l=n(1923),c=n(324),u=n(9282),d=n(2374),f=n(9114),p=n(9628),h=n(3217),m=n(2791),v=n(9132),g=n(2310),y=n(4086),b=n(3693),x=n(3404),w=n(9643),k=["children","element","highlighted","selected","disabled","variant","startHeight"],S=["index"],_=["inputBoxRef","dropdownBoxRef"],E=["children"],C=["children","element","hidden"],T=["state"],I=["usePortal","autocomplete","disabled","element","hasError","hideVisibleLabel","helpText","initialSelectedItem","disabledItems","initialIsOpen","inputValue","insertAfter","insertBefore","items","itemToString","labelText","onInputValueChange","onSelectedItemChange","optionTemplate","onHighlightedIndexChange","onIsOpenChange","required","selectedItem","groupItemsBy","groupLabelTemplate","variant","emptyState","getA11yStatusMessage","getA11ySelectionMessage","state"],B=["element","onChange","initialValue","value","placeholder"],O=["usePortal","element","disabled","hasError","helpText","state","initialSelectedItems","disabledItems","inputValue","placeholder","insertAfter","insertBefore","items","itemToString","labelText","optionTemplate","required","variant","initialIsOpen","onHighlightedIndexChange","onInputValueChange","onSelectedItemsChange","onIsOpenChange","groupItemsBy","groupLabelTemplate","emptyState","maxHeight","selectedItemsLabelText","i18nKeyboardControls"],P=Object.create,R=Object.defineProperty,A=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,N=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,L=function(e,t){return function(){return t||(0,e[M(e)[0]])((t={exports:{}}).exports,t),t.exports}},j=function(e,t,n){return n=null!=e?P(N(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,a.Z)(M(t));try{var s=function(){var i=o.value;!D.call(e,i)&&i!==n&&R(e,i,{get:function(){return t[i]},enumerable:!(r=A(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)s()}catch(l){i.e(l)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:R(n,"default",{value:e,enumerable:!0}),e)},z=L({"../../../../node_modules/lodash/_listCacheClear.js":function(e,t){t.exports=function(){this.__data__=[],this.size=0}}}),W=L({"../../../../node_modules/lodash/eq.js":function(e,t){t.exports=function(e,t){return e===t||e!==e&&t!==t}}}),Z=L({"../../../../node_modules/lodash/_assocIndexOf.js":function(e,t){var n=W();t.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}}}),F=L({"../../../../node_modules/lodash/_listCacheDelete.js":function(e,t){var n=Z(),r=Array.prototype.splice;t.exports=function(e){var t=this.__data__,o=n(t,e);return!(o<0)&&(o==t.length-1?t.pop():r.call(t,o,1),--this.size,!0)}}}),H=L({"../../../../node_modules/lodash/_listCacheGet.js":function(e,t){var n=Z();t.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}}}),U=L({"../../../../node_modules/lodash/_listCacheHas.js":function(e,t){var n=Z();t.exports=function(e){return n(this.__data__,e)>-1}}}),$=L({"../../../../node_modules/lodash/_listCacheSet.js":function(e,t){var n=Z();t.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}}}),G=L({"../../../../node_modules/lodash/_ListCache.js":function(e,t){var n=z(),r=F(),o=H(),i=U(),a=$();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),q=L({"../../../../node_modules/lodash/_stackClear.js":function(e,t){var n=G();t.exports=function(){this.__data__=new n,this.size=0}}}),K=L({"../../../../node_modules/lodash/_stackDelete.js":function(e,t){t.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}}),V=L({"../../../../node_modules/lodash/_stackGet.js":function(e,t){t.exports=function(e){return this.__data__.get(e)}}}),Y=L({"../../../../node_modules/lodash/_stackHas.js":function(e,t){t.exports=function(e){return this.__data__.has(e)}}}),X=L({"../../../../node_modules/lodash/_freeGlobal.js":function(e,t){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r}}),J=L({"../../../../node_modules/lodash/_root.js":function(e,t){var n=X(),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();t.exports=o}}),Q=L({"../../../../node_modules/lodash/_Symbol.js":function(e,t){var n=J().Symbol;t.exports=n}}),ee=L({"../../../../node_modules/lodash/_getRawTag.js":function(e,t){var n=Q(),r=Object.prototype,o=r.hasOwnProperty,i=r.toString,a=n?n.toStringTag:void 0;t.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(l){}var s=i.call(e);return r&&(t?e[a]=n:delete e[a]),s}}}),te=L({"../../../../node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}}}),ne=L({"../../../../node_modules/lodash/_baseGetTag.js":function(e,t){var n=Q(),r=ee(),o=te(),i=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?r(e):o(e)}}}),re=L({"../../../../node_modules/lodash/isObject.js":function(e,t){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}}),oe=L({"../../../../node_modules/lodash/isFunction.js":function(e,t){var n=ne(),r=re();t.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}}),ie=L({"../../../../node_modules/lodash/_coreJsData.js":function(e,t){var n=J()["__core-js_shared__"];t.exports=n}}),ae=L({"../../../../node_modules/lodash/_isMasked.js":function(e,t){var n=ie(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=function(e){return!!r&&r in e}}}),se=L({"../../../../node_modules/lodash/_toSource.js":function(e,t){var n=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(r){}}return""}}}),le=L({"../../../../node_modules/lodash/_baseIsNative.js":function(e,t){var n=oe(),r=ae(),o=re(),i=se(),a=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!o(e)||r(e))&&(n(e)?d:a).test(i(e))}}}),ce=L({"../../../../node_modules/lodash/_getValue.js":function(e,t){t.exports=function(e,t){return null===e||void 0===e?void 0:e[t]}}}),ue=L({"../../../../node_modules/lodash/_getNative.js":function(e,t){var n=le(),r=ce();t.exports=function(e,t){var o=r(e,t);return n(o)?o:void 0}}}),de=L({"../../../../node_modules/lodash/_Map.js":function(e,t){var n=ue()(J(),"Map");t.exports=n}}),fe=L({"../../../../node_modules/lodash/_nativeCreate.js":function(e,t){var n=ue()(Object,"create");t.exports=n}}),pe=L({"../../../../node_modules/lodash/_hashClear.js":function(e,t){var n=fe();t.exports=function(){this.__data__=n?n(null):{},this.size=0}}}),he=L({"../../../../node_modules/lodash/_hashDelete.js":function(e,t){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}}),me=L({"../../../../node_modules/lodash/_hashGet.js":function(e,t){var n=fe(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(n){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return r.call(t,e)?t[e]:void 0}}}),ve=L({"../../../../node_modules/lodash/_hashHas.js":function(e,t){var n=fe(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}}}),ge=L({"../../../../node_modules/lodash/_hashSet.js":function(e,t){var n=fe();t.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}}}),ye=L({"../../../../node_modules/lodash/_Hash.js":function(e,t){var n=pe(),r=he(),o=me(),i=ve(),a=ge();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),be=L({"../../../../node_modules/lodash/_mapCacheClear.js":function(e,t){var n=ye(),r=G(),o=de();t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}}}),xe=L({"../../../../node_modules/lodash/_isKeyable.js":function(e,t){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}}),we=L({"../../../../node_modules/lodash/_getMapData.js":function(e,t){var n=xe();t.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}}}),ke=L({"../../../../node_modules/lodash/_mapCacheDelete.js":function(e,t){var n=we();t.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}}}),Se=L({"../../../../node_modules/lodash/_mapCacheGet.js":function(e,t){var n=we();t.exports=function(e){return n(this,e).get(e)}}}),_e=L({"../../../../node_modules/lodash/_mapCacheHas.js":function(e,t){var n=we();t.exports=function(e){return n(this,e).has(e)}}}),Ee=L({"../../../../node_modules/lodash/_mapCacheSet.js":function(e,t){var n=we();t.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}}}),Ce=L({"../../../../node_modules/lodash/_MapCache.js":function(e,t){var n=be(),r=ke(),o=Se(),i=_e(),a=Ee();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),Te=L({"../../../../node_modules/lodash/_stackSet.js":function(e,t){var n=G(),r=de(),o=Ce();t.exports=function(e,t){var i=this.__data__;if(i instanceof n){var a=i.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new o(a)}return i.set(e,t),this.size=i.size,this}}}),Ie=L({"../../../../node_modules/lodash/_Stack.js":function(e,t){var n=G(),r=q(),o=K(),i=V(),a=Y(),s=Te();function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l}}),Be=L({"../../../../node_modules/lodash/_setCacheAdd.js":function(e,t){t.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}}),Oe=L({"../../../../node_modules/lodash/_setCacheHas.js":function(e,t){t.exports=function(e){return this.__data__.has(e)}}}),Pe=L({"../../../../node_modules/lodash/_SetCache.js":function(e,t){var n=Ce(),r=Be(),o=Oe();function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=r,i.prototype.has=o,t.exports=i}}),Re=L({"../../../../node_modules/lodash/_arraySome.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}}),Ae=L({"../../../../node_modules/lodash/_cacheHas.js":function(e,t){t.exports=function(e,t){return e.has(t)}}}),Me=L({"../../../../node_modules/lodash/_equalArrays.js":function(e,t){var n=Pe(),r=Re(),o=Ae();t.exports=function(e,t,i,a,s,l){var c=1&i,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,v=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],y=t[h];if(a)var b=c?a(y,g,h,t,e,l):a(g,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!r(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,i,a,l)))return v.push(t)}))){m=!1;break}}else if(g!==y&&!s(g,y,i,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}}}),Ne=L({"../../../../node_modules/lodash/_Uint8Array.js":function(e,t){var n=J().Uint8Array;t.exports=n}}),De=L({"../../../../node_modules/lodash/_mapToArray.js":function(e,t){t.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}}),Le=L({"../../../../node_modules/lodash/_setToArray.js":function(e,t){t.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}}),je=L({"../../../../node_modules/lodash/_equalByTag.js":function(e,t){var n=Q(),r=Ne(),o=W(),i=Me(),a=De(),s=Le(),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(e,t,n,l,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&l;if(p||(p=s),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;l|=2,f.set(e,t);var v=i(p(e),p(t),l,u,d,f);return f.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}}}),ze=L({"../../../../node_modules/lodash/_arrayPush.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}}),We=L({"../../../../node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;t.exports=n}}),Ze=L({"../../../../node_modules/lodash/_baseGetAllKeys.js":function(e,t){var n=ze(),r=We();t.exports=function(e,t,o){var i=t(e);return r(e)?i:n(i,o(e))}}}),Fe=L({"../../../../node_modules/lodash/_arrayFilter.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}}}),He=L({"../../../../node_modules/lodash/stubArray.js":function(e,t){t.exports=function(){return[]}}}),Ue=L({"../../../../node_modules/lodash/_getSymbols.js":function(e,t){var n=Fe(),r=He(),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return o.call(e,t)})))}:r;t.exports=a}}),$e=L({"../../../../node_modules/lodash/_baseTimes.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}}),Ge=L({"../../../../node_modules/lodash/isObjectLike.js":function(e,t){t.exports=function(e){return null!=e&&"object"==typeof e}}}),qe=L({"../../../../node_modules/lodash/_baseIsArguments.js":function(e,t){var n=ne(),r=Ge();t.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}}}),Ke=L({"../../../../node_modules/lodash/isArguments.js":function(e,t){var n=qe(),r=Ge(),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return r(e)&&i.call(e,"callee")&&!a.call(e,"callee")};t.exports=s}}),Ve=L({"../../../../node_modules/lodash/stubFalse.js":function(e,t){t.exports=function(){return!1}}}),Ye=L({"../../../../node_modules/lodash/isBuffer.js":function(e,t){var n=J(),r=Ve(),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;t.exports=s}}),Xe=L({"../../../../node_modules/lodash/_isIndex.js":function(e,t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var r,o=typeof e;return!!(t=null!==(r=t)&&void 0!==r?r:9007199254740991)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<t}}}),Je=L({"../../../../node_modules/lodash/isLength.js":function(e,t){t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}}),Qe=L({"../../../../node_modules/lodash/_baseIsTypedArray.js":function(e,t){var n=ne(),r=Je(),o=Ge(),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(e){return o(e)&&r(e.length)&&!!i[n(e)]}}}),et=L({"../../../../node_modules/lodash/_baseUnary.js":function(e,t){t.exports=function(e){return function(t){return e(t)}}}}),tt=L({"../../../../node_modules/lodash/_nodeUtil.js":function(e,t){var n=X(),r="object"==typeof e&&e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();t.exports=a}}),nt=L({"../../../../node_modules/lodash/isTypedArray.js":function(e,t){var n=Qe(),r=et(),o=tt(),i=o&&o.isTypedArray,a=i?r(i):n;t.exports=a}}),rt=L({"../../../../node_modules/lodash/_arrayLikeKeys.js":function(e,t){var n=$e(),r=Ke(),o=We(),i=Ye(),a=Xe(),s=nt(),l=Object.prototype.hasOwnProperty;t.exports=function(e,t){var c=o(e),u=!c&&r(e),d=!c&&!u&&i(e),f=!c&&!u&&!d&&s(e),p=c||u||d||f,h=p?n(e.length,String):[],m=h.length;for(var v in e)(t||l.call(e,v))&&(!p||!("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,m)))&&h.push(v);return h}}}),ot=L({"../../../../node_modules/lodash/_isPrototype.js":function(e,t){var n=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}}}),it=L({"../../../../node_modules/lodash/_overArg.js":function(e,t){t.exports=function(e,t){return function(n){return e(t(n))}}}}),at=L({"../../../../node_modules/lodash/_nativeKeys.js":function(e,t){var n=it()(Object.keys,Object);t.exports=n}}),st=L({"../../../../node_modules/lodash/_baseKeys.js":function(e,t){var n=ot(),r=at(),o=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return r(e);var t=[];for(var i in Object(e))o.call(e,i)&&"constructor"!=i&&t.push(i);return t}}}),lt=L({"../../../../node_modules/lodash/isArrayLike.js":function(e,t){var n=oe(),r=Je();t.exports=function(e){return null!=e&&r(e.length)&&!n(e)}}}),ct=L({"../../../../node_modules/lodash/keys.js":function(e,t){var n=rt(),r=st(),o=lt();t.exports=function(e){return o(e)?n(e):r(e)}}}),ut=L({"../../../../node_modules/lodash/_getAllKeys.js":function(e,t){var n=Ze(),r=Ue(),o=ct();t.exports=function(e){return n(e,o,r)}}}),dt=L({"../../../../node_modules/lodash/_equalObjects.js":function(e,t){var n=ut(),r=Object.prototype.hasOwnProperty;t.exports=function(e,t,o,i,a,s){var l=1&o,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:r.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<u;){var g=e[f=c[d]],y=t[f];if(i)var b=l?i(y,g,f,t,e,s):i(g,y,f,e,t,s);if(!(void 0===b?g===y||a(g,y,o,i,s):b)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(m=!1)}return s.delete(e),s.delete(t),m}}}),ft=L({"../../../../node_modules/lodash/_DataView.js":function(e,t){var n=ue()(J(),"DataView");t.exports=n}}),pt=L({"../../../../node_modules/lodash/_Promise.js":function(e,t){var n=ue()(J(),"Promise");t.exports=n}}),ht=L({"../../../../node_modules/lodash/_Set.js":function(e,t){var n=ue()(J(),"Set");t.exports=n}}),mt=L({"../../../../node_modules/lodash/_WeakMap.js":function(e,t){var n=ue()(J(),"WeakMap");t.exports=n}}),vt=L({"../../../../node_modules/lodash/_getTag.js":function(e,t){var n=ft(),r=de(),o=pt(),i=ht(),a=mt(),s=ne(),l=se(),c="[object Map]",u="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",h=l(n),m=l(r),v=l(o),g=l(i),y=l(a),b=s;(n&&b(new n(new ArrayBuffer(1)))!=p||r&&b(new r)!=c||o&&b(o.resolve())!=u||i&&b(new i)!=d||a&&b(new a)!=f)&&(b=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case h:return p;case m:return c;case v:return u;case g:return d;case y:return f}return t}),t.exports=b}}),gt=L({"../../../../node_modules/lodash/_baseIsEqualDeep.js":function(e,t){var n=Ie(),r=Me(),o=je(),i=dt(),a=vt(),s=We(),l=Ye(),c=nt(),u="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(e,t,h,m,v,g){var y=s(e),b=s(t),x=y?d:a(e),w=b?d:a(t),k=(x=x==u?f:x)==f,S=(w=w==u?f:w)==f,_=x==w;if(_&&l(e)){if(!l(t))return!1;y=!0,k=!1}if(_&&!k)return g||(g=new n),y||c(e)?r(e,t,h,m,v,g):o(e,t,x,h,m,v,g);if(!(1&h)){var E=k&&p.call(e,"__wrapped__"),C=S&&p.call(t,"__wrapped__");if(E||C){var T=E?e.value():e,I=C?t.value():t;return g||(g=new n),v(T,I,h,m,g)}}return!!_&&(g||(g=new n),i(e,t,h,m,v,g))}}}),yt=L({"../../../../node_modules/lodash/_baseIsEqual.js":function(e,t){var n=gt(),r=Ge();t.exports=function e(t,o,i,a,s){return t===o||(null==t||null==o||!r(t)&&!r(o)?t!==t&&o!==o:n(t,o,i,a,e,s))}}}),bt=L({"../../../../node_modules/lodash/_baseIsMatch.js":function(e,t){var n=Ie(),r=yt();t.exports=function(e,t,o,i){var a=o.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=o[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=o[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new n;if(i)var h=i(d,f,u,e,t,p);if(!(void 0===h?r(f,d,3,i,p):h))return!1}}return!0}}}),xt=L({"../../../../node_modules/lodash/_isStrictComparable.js":function(e,t){var n=re();t.exports=function(e){return e===e&&!n(e)}}}),wt=L({"../../../../node_modules/lodash/_getMatchData.js":function(e,t){var n=xt(),r=ct();t.exports=function(e){for(var t=r(e),o=t.length;o--;){var i=t[o],a=e[i];t[o]=[i,a,n(a)]}return t}}}),kt=L({"../../../../node_modules/lodash/_matchesStrictComparable.js":function(e,t){t.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}}),St=L({"../../../../node_modules/lodash/_baseMatches.js":function(e,t){var n=bt(),r=wt(),o=kt();t.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}}}),_t=L({"../../../../node_modules/lodash/isSymbol.js":function(e,t){var n=ne(),r=Ge();t.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}}}),Et=L({"../../../../node_modules/lodash/_isKey.js":function(e,t){var n=We(),r=_t(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(e,t){if(n(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!r(e))||(i.test(e)||!o.test(e)||null!=t&&e in Object(t))}}}),Ct=L({"../../../../node_modules/lodash/memoize.js":function(e,t){var n=Ce();function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return o.cache=new(r.Cache||n),o}r.Cache=n,t.exports=r}}),Tt=L({"../../../../node_modules/lodash/_memoizeCapped.js":function(e,t){var n=Ct();t.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}}}),It=L({"../../../../node_modules/lodash/_stringToPath.js":function(e,t){var n=Tt(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));t.exports=i}}),Bt=L({"../../../../node_modules/lodash/_arrayMap.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}}}),Ot=L({"../../../../node_modules/lodash/_baseToString.js":function(e,t){var n=Q(),r=Bt(),o=We(),i=_t(),a=n?n.prototype:void 0,s=a?a.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(i(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}}}),Pt=L({"../../../../node_modules/lodash/toString.js":function(e,t){var n=Ot();t.exports=function(e){return null==e?"":n(e)}}}),Rt=L({"../../../../node_modules/lodash/_castPath.js":function(e,t){var n=We(),r=Et(),o=It(),i=Pt();t.exports=function(e,t){return n(e)?e:r(e,t)?[e]:o(i(e))}}}),At=L({"../../../../node_modules/lodash/_toKey.js":function(e,t){var n=_t();t.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}}}),Mt=L({"../../../../node_modules/lodash/_baseGet.js":function(e,t){var n=Rt(),r=At();t.exports=function(e,t){for(var o=0,i=(t=n(t,e)).length;null!=e&&o<i;)e=e[r(t[o++])];return o&&o==i?e:void 0}}}),Nt=L({"../../../../node_modules/lodash/get.js":function(e,t){var n=Mt();t.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}}}),Dt=L({"../../../../node_modules/lodash/_baseHasIn.js":function(e,t){t.exports=function(e,t){return null!=e&&t in Object(e)}}}),Lt=L({"../../../../node_modules/lodash/_hasPath.js":function(e,t){var n=Rt(),r=Ke(),o=We(),i=Xe(),a=Je(),s=At();t.exports=function(e,t,l){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var f=s(t[c]);if(!(d=null!=e&&l(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&a(u)&&i(f,u)&&(o(e)||r(e))}}}),jt=L({"../../../../node_modules/lodash/hasIn.js":function(e,t){var n=Dt(),r=Lt();t.exports=function(e,t){return null!=e&&r(e,t,n)}}}),zt=L({"../../../../node_modules/lodash/_baseMatchesProperty.js":function(e,t){var n=yt(),r=Nt(),o=jt(),i=Et(),a=xt(),s=kt(),l=At();t.exports=function(e,t){return i(e)&&a(t)?s(l(e),t):function(i){var a=r(i,e);return void 0===a&&a===t?o(i,e):n(t,a,3)}}}}),Wt=L({"../../../../node_modules/lodash/identity.js":function(e,t){t.exports=function(e){return e}}}),Zt=L({"../../../../node_modules/lodash/_baseProperty.js":function(e,t){t.exports=function(e){return function(t){return null===t||void 0===t?void 0:t[e]}}}}),Ft=L({"../../../../node_modules/lodash/_basePropertyDeep.js":function(e,t){var n=Mt();t.exports=function(e){return function(t){return n(t,e)}}}}),Ht=L({"../../../../node_modules/lodash/property.js":function(e,t){var n=Zt(),r=Ft(),o=Et(),i=At();t.exports=function(e){return o(e)?n(i(e)):r(e)}}}),Ut=L({"../../../../node_modules/lodash/_baseIteratee.js":function(e,t){var n=St(),r=zt(),o=Wt(),i=We(),a=Ht();t.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?r(e[0],e[1]):n(e):a(e)}}}),$t=L({"../../../../node_modules/lodash/_createFind.js":function(e,t){var n=Ut(),r=lt(),o=ct();t.exports=function(e){return function(t,i,a){var s=Object(t);if(!r(t)){var l=n(i,3);t=o(t),i=function(e){return l(s[e],e,s)}}var c=e(t,i,a);return c>-1?s[l?t[c]:c]:void 0}}}}),Gt=L({"../../../../node_modules/lodash/_baseFindIndex.js":function(e,t){t.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}}}),qt=L({"../../../../node_modules/lodash/_trimmedEndIndex.js":function(e,t){var n=/\s/;t.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}}}),Kt=L({"../../../../node_modules/lodash/_baseTrim.js":function(e,t){var n=qt(),r=/^\s+/;t.exports=function(e){return e&&e.slice(0,n(e)+1).replace(r,"")}}}),Vt=L({"../../../../node_modules/lodash/toNumber.js":function(e,t){var n=Kt(),r=re(),o=_t(),i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var c=a.test(e);return c||s.test(e)?l(e.slice(2),c?2:8):i.test(e)?NaN:+e}}}),Yt=L({"../../../../node_modules/lodash/toFinite.js":function(e,t){var n=Vt(),r=1/0;t.exports=function(e){return e?(e=n(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}}}),Xt=L({"../../../../node_modules/lodash/toInteger.js":function(e,t){var n=Yt();t.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}}}),Jt=L({"../../../../node_modules/lodash/findIndex.js":function(e,t){var n=Gt(),r=Ut(),o=Xt(),i=Math.max;t.exports=function(e,t,a){var s=null==e?0:e.length;if(!s)return-1;var l=null==a?0:o(a);return l<0&&(l=i(s+l,0)),n(e,r(t,3),l)}}}),Qt=L({"../../../../node_modules/lodash/find.js":function(e,t){var n=$t()(Jt());t.exports=n}}),en=L({"../../../../node_modules/lodash/_defineProperty.js":function(e,t){var n=ue(),r=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.exports=r}}),tn=L({"../../../../node_modules/lodash/_baseAssignValue.js":function(e,t){var n=en();t.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}}}),nn=L({"../../../../node_modules/lodash/_arrayAggregator.js":function(e,t){t.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}}}),rn=L({"../../../../node_modules/lodash/_createBaseFor.js":function(e,t){t.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}}}),on=L({"../../../../node_modules/lodash/_baseFor.js":function(e,t){var n=rn()();t.exports=n}}),an=L({"../../../../node_modules/lodash/_baseForOwn.js":function(e,t){var n=on(),r=ct();t.exports=function(e,t){return e&&n(e,t,r)}}}),sn=L({"../../../../node_modules/lodash/_createBaseEach.js":function(e,t){var n=lt();t.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var i=r.length,a=t?i:-1,s=Object(r);(t?a--:++a<i)&&!1!==o(s[a],a,s););return r}}}}),ln=L({"../../../../node_modules/lodash/_baseEach.js":function(e,t){var n=an(),r=sn()(n);t.exports=r}}),cn=L({"../../../../node_modules/lodash/_baseAggregator.js":function(e,t){var n=ln();t.exports=function(e,t,r,o){return n(e,(function(e,n,i){t(o,e,r(e),i)})),o}}}),un=L({"../../../../node_modules/lodash/_createAggregator.js":function(e,t){var n=nn(),r=cn(),o=Ut(),i=We();t.exports=function(e,t){return function(a,s){var l=i(a)?n:r,c=t?t():{};return l(a,e,o(s,2),c)}}}}),dn=L({"../../../../node_modules/lodash/groupBy.js":function(e,t){var n=tn(),r=un(),o=Object.prototype.hasOwnProperty,i=r((function(e,t,r){o.call(e,r)?e[r].push(t):n(e,r,[t])}));t.exports=i}}),fn=L({"../../../../node_modules/lodash/isEmpty.js":function(e,t){var n=st(),r=vt(),o=Ke(),i=We(),a=lt(),s=Ye(),l=ot(),c=nt(),u=Object.prototype.hasOwnProperty;t.exports=function(e){if(null==e)return!0;if(a(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||c(e)||o(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!n(e).length;for(var d in e)if(u.call(e,d))return!1;return!0}}}),pn=L({"../../../../node_modules/lodash/_baseIsNaN.js":function(e,t){t.exports=function(e){return e!==e}}}),hn=L({"../../../../node_modules/lodash/_strictIndexOf.js":function(e,t){t.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}}}),mn=L({"../../../../node_modules/lodash/_baseIndexOf.js":function(e,t){var n=Gt(),r=pn(),o=hn();t.exports=function(e,t,i){return t===t?o(e,t,i):n(e,r,i)}}}),vn=L({"../../../../node_modules/lodash/isString.js":function(e,t){var n=ne(),r=We(),o=Ge();t.exports=function(e){return"string"==typeof e||!r(e)&&o(e)&&"[object String]"==n(e)}}}),gn=L({"../../../../node_modules/lodash/_baseValues.js":function(e,t){var n=Bt();t.exports=function(e,t){return n(t,(function(t){return e[t]}))}}}),yn=L({"../../../../node_modules/lodash/values.js":function(e,t){var n=gn(),r=ct();t.exports=function(e){return null==e?[]:n(e,r(e))}}}),bn=L({"../../../../node_modules/lodash/includes.js":function(e,t){var n=mn(),r=lt(),o=vn(),i=Xt(),a=yn(),s=Math.max;t.exports=function(e,t,l,c){e=r(e)?e:a(e),l=l&&!c?i(l):0;var u=e.length;return l<0&&(l=s(u+l,0)),o(e)?l<=u&&e.indexOf(t,l)>-1:!!u&&n(e,t,l)>-1}}});function xn(){return xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}var wn,kn=["bottom","height","left","right","top","width"],Sn=new Map,_n=function e(){var t=[];Sn.forEach((function(e,n){var r,o,i=n.getBoundingClientRect();r=i,o=e.rect,void 0===r&&(r={}),void 0===o&&(o={}),kn.some((function(e){return r[e]!==o[e]}))&&(e.rect=i,t.push(e))})),t.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),wn=window.requestAnimationFrame(e)};var En=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Cn(e,t){void 0===t&&(t={width:0,height:0});var n=m.useState(e.current),r=n[0],o=n[1],i=m.useReducer(Tn,t),a=i[0],s=i[1],l=m.useRef(!1);return En((function(){e.current!==r&&o(e.current)})),En((function(){if(r&&!l.current){l.current=!0;var e=r.getBoundingClientRect();s({rect:e})}}),[r]),m.useEffect((function(){if(r){var e=(t=r,n=function(e){s({rect:e})},{observe:function(){var e=0===Sn.size;Sn.has(t)?Sn.get(t).callbacks.push(n):Sn.set(t,{rect:void 0,hasRectChanged:!1,callbacks:[n]}),e&&_n()},unobserve:function(){var e=Sn.get(t);if(e){var r=e.callbacks.indexOf(n);r>=0&&e.callbacks.splice(r,1),e.callbacks.length||Sn.delete(t),Sn.size||cancelAnimationFrame(wn)}}});return e.observe(),function(){e.unobserve()}}var t,n}),[r]),a}function Tn(e,t){var n=t.rect;return e.height!==n.height||e.width!==n.width?n:e}var In=function(){return 50},Bn=function(e){return e},On=function(e,t){return e[t?"offsetWidth":"offsetHeight"]},Pn=function(e){for(var t=Math.max(e.start-e.overscan,0),n=Math.min(e.end+e.overscan,e.size-1),r=[],o=t;o<=n;o++)r.push(o);return r};function Rn(e){var t,n=e.size,r=void 0===n?0:n,o=e.estimateSize,i=void 0===o?In:o,a=e.overscan,s=void 0===a?1:a,l=e.paddingStart,c=void 0===l?0:l,u=e.paddingEnd,d=void 0===u?0:u,f=e.parentRef,p=e.horizontal,h=e.scrollToFn,v=e.useObserver,g=e.initialRect,y=e.onScrollElement,b=e.scrollOffsetFn,x=e.keyExtractor,w=void 0===x?Bn:x,k=e.measureSize,S=void 0===k?On:k,_=e.rangeExtractor,E=void 0===_?Pn:_,C=p?"width":"height",T=p?"scrollLeft":"scrollTop",I=m.useRef({scrollOffset:0,measurements:[]}),B=m.useState(0),O=B[0],P=B[1];I.current.scrollOffset=O;var R=(v||Cn)(f,g)[C];I.current.outerSize=R;var A=m.useCallback((function(e){f.current&&(f.current[T]=e)}),[f,T]),M=h||A;h=m.useCallback((function(e){M(e,A)}),[A,M]);var N=m.useState({}),D=N[0],L=N[1],j=m.useCallback((function(){return L({})}),[]),z=m.useRef([]),W=m.useMemo((function(){var e=z.current.length>0?Math.min.apply(Math,z.current):0;z.current=[];for(var t=I.current.measurements.slice(0,e),n=e;n<r;n++){var o=w(n),a=D[o],s=t[n-1]?t[n-1].end:c,l="number"==typeof a?a:i(n),u=s+l;t[n]={index:n,start:s,size:l,end:u,key:o}}return t}),[i,D,c,r,w]),Z=((null==(t=W[r-1])?void 0:t.end)||c)+d;I.current.measurements=W,I.current.totalSize=Z;var F=y?y.current:f.current,H=m.useRef(b);H.current=b,En((function(){if(F){var e=function(e){var t=H.current?H.current(e):F[T];P(t)};return e(),F.addEventListener("scroll",e,{capture:!1,passive:!0}),function(){F.removeEventListener("scroll",e)}}P(0)}),[F,T]);var U=function(e){for(var t=e.measurements,n=e.outerSize,r=e.scrollOffset,o=t.length-1,i=function(e,t,n,r){for(;e<=t;){var o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0}(0,o,(function(e){return t[e].start}),r),a=i;a<o&&t[a].end<r+n;)a++;return{start:i,end:a}}(I.current),$=U.start,G=U.end,q=m.useMemo((function(){return E({start:$,end:G,overscan:s,size:W.length})}),[$,G,s,W.length,E]),K=m.useRef(S);K.current=S;var V=m.useMemo((function(){for(var e=[],t=function(t,n){var r=q[t],o=xn(xn({},W[r]),{},{measureRef:function(e){if(e){var t=K.current(e,p);if(t!==o.size){var n=I.current.scrollOffset;o.start<n&&A(n+(t-o.size)),z.current.push(r),L((function(e){var n;return xn(xn({},e),{},((n={})[o.key]=t,n))}))}}}});e.push(o)},n=0,r=q.length;n<r;n++)t(n);return e}),[q,A,p,W]),Y=m.useRef(!1);En((function(){Y.current&&L({}),Y.current=!0}),[i]);var X=m.useCallback((function(e,t){var n=(void 0===t?{}:t).align,r=void 0===n?"start":n,o=I.current,i=o.scrollOffset,a=o.outerSize;"auto"===r&&(r=e<=i?"start":e>=i+a?"end":"start"),"start"===r?h(e):"end"===r?h(e-a):"center"===r&&h(e-a/2)}),[h]),J=m.useCallback((function(e,t){var n=void 0===t?{}:t,o=n.align,i=void 0===o?"auto":o,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}(n,["align"]),s=I.current,l=s.measurements,c=s.scrollOffset,u=s.outerSize,d=l[Math.max(0,Math.min(e,r-1))];if(d){if("auto"===i)if(d.end>=c+u)i="end";else{if(!(d.start<=c))return;i="start"}var f="center"===i?d.start+d.size/2:"end"===i?d.end:d.start;X(f,xn({align:i},a))}}),[X,r]),Q=m.useCallback((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];J.apply(void 0,t),requestAnimationFrame((function(){J.apply(void 0,t)}))}),[J]);return{virtualItems:V,totalSize:Z,scrollToOffset:X,scrollToIndex:Q,measure:j}}var An=j(Qt()),Mn=j(dn()),Nn=function(e,t){return t&&"inverse"===e?"error_inverse":t?"error":"inverse"===e?"inverse":"default"},Dn={clip:"rect(0 0 0 0)",height:"1px",margin:"spaceNegative10",overflow:"hidden",padding:"space0",position:"absolute",whiteSpace:"nowrap",width:"1px"},Ln=m.forwardRef((function(e,t){var n=e.children,r=e.element,o=void 0===r?"COMBOBOX":r,i=e.groupName,a=e.groupLabelTemplate;return m.createElement(l.Box,{as:"ul",ref:t,element:"".concat(o,"_LIST"),role:i?"group":"presentation","aria-label":i,margin:"space0",padding:"space0",listStyleType:"none",borderBottomStyle:"solid",borderBottomWidth:"borderWidth10",borderBottomColor:"colorBorderWeaker",_last:{borderWidth:"borderWidth0"}},i?m.createElement(l.Box,{as:"li",backgroundColor:"colorBackgroundWeak",borderBottomStyle:"solid",borderBottomWidth:"borderWidth10",borderBottomColor:"colorBorderWeaker",role:"presentation",paddingY:"space30",paddingLeft:"space50",paddingRight:"space50",element:"".concat(o,"_GROUPNAME")},m.createElement(v.Text,{as:"span",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"fontWeightSemibold",color:"colorText",element:"".concat(o,"_GROUPNAME_TEXT")},a?a(i):i)):null,n)}));Ln.displayName="ComboboxListboxGroup";var jn={groupOption:{paddingLeft:"space90",paddingRight:"space50"},default:{paddingLeft:"space50",paddingRight:"space50"}};var zn=m.forwardRef((function(e,t){var n,r,a=e.children,s=e.element,c=void 0===s?"COMBOBOX":s,u=e.highlighted,d=e.selected,f=e.disabled,p=void 0!==f&&f,h=e.variant,y=void 0===h?"default":h,b=e.startHeight,x=(0,o.Z)(e,k),w=null!=b?function(e){return{position:"absolute",top:0,left:0,width:"fill-available",transform:"translateY(".concat(e,"px)")}}(b):{};return m.createElement(l.Box,(0,i.Z)((0,i.Z)({role:"option"},(0,l.safelySpreadBoxProps)(x)),{},{"aria-selected":d,"aria-disabled":p,as:"li",position:"relative",element:"".concat(c,"_LIST_ITEM"),color:u?"colorTextPrimary":"colorText",cursor:p?"not-allowed":"pointer",ref:t,opacity:p?.3:1},w),m.createElement(l.Box,(0,i.Z)({as:"span",display:"flex",justifyContent:"space-between",alignItems:"center",marginY:"space10",marginX:"space20",borderRadius:"borderRadius30",backgroundColor:(n=u,r=d,n&&r?"colorBackgroundWeakerElevation":n||r?"colorBackgroundBodyElevationPrimary":"colorBackgroundWeaker"),paddingY:"space40",transition:"background-color 150ms ease, color 150ms ease",element:"".concat(c,"_LIST_ITEM_CHILD")},jn[y]),m.createElement(l.Box,{as:"span"},m.createElement(v.Text,{as:"span",color:"inherit",element:"".concat(c,"_LIST_ITEM_TEXT")},a)),m.createElement(l.Box,{as:"span",hidden:!d},m.createElement(g.c,{decorative:!0,color:u&&d?"colorTextIcon":"colorTextPrimary"}))))}));zn.displayName="ComboboxListboxOption";var Wn=m.memo(m.forwardRef((function(e,t){var n=e.items,r=e.element,a=void 0===r?"COMBOBOX":r,s=e.getItemProps,c=e.highlightedIndex,u=e.selectedItems,d=e.disabledItems,f=e.optionTemplate,p=e.groupLabelTemplate,h=e.groupItemsBy,v=e.totalSize,g=e.virtualItems,y=e.emptyState,b=m.useMemo((function(){return null!=f&&"function"==typeof f?n.map((function(e){return f(e)})):n}),[JSON.stringify(n),f]);if(null==h)return 0===g.length&&null!=y?m.createElement(Ln,{element:a,ref:t},m.createElement(l.Box,{as:"li",role:"option",position:"relative",element:"".concat(a,"_EMPTY_STATE"),backgroundColor:"colorBackgroundBody",color:"colorText"},m.createElement(y,null))):m.createElement(Ln,{element:a,ref:t},m.createElement("li",{role:"presentation",key:"total-size",style:{margin:0,height:v}}),g.map((function(e){var t=e.measureRef,r=e.index,o=e.start,l=b[r],f=null!=d&&d.includes(n[r]);return m.createElement(zn,(0,i.Z)((0,i.Z)({},s({item:l,index:r,ref:t,disabled:f})),{},{key:r,element:a,highlighted:c===r,selected:null===u||void 0===u?void 0:u.includes(n[r]),disabled:f,variant:"default",startHeight:o,"aria-setsize":n.length,"aria-posinset":r+1}),l)})));var x=m.useMemo((function(){var e=function(e){return e.map((function(e,t){return"string"==typeof e?{label:e,index:t}:(0,i.Z)((0,i.Z)({},e),{},{index:t})}))}(n);return function(e,t){return(0,Mn.default)(e,(function(e){return"string"==typeof e?"Uncategorized":e[t]}))}(e,h)}),[n,h]),w=Object.keys(x);return 0===w.length&&null!=y?m.createElement(Ln,{element:a,ref:t},m.createElement(l.Box,{as:"li",role:"option",position:"relative",element:"".concat(a,"_EMPTY_STATE"),backgroundColor:"colorBackgroundBody",color:"colorText"},m.createElement(y,null))):m.createElement(m.Fragment,null,w.map((function(e){var t="undefined"===e,n=t?"$$$Uncategorized$$$":e;return m.createElement(Ln,{element:a,key:n,groupName:t?void 0:n,groupLabelTemplate:p},x[e].map((function(e){var n=e.index,r=(0,o.Z)(e,S),l=null!=d&&(0,An.default)(d,r);return m.createElement(zn,(0,i.Z)((0,i.Z)({},s({item:r,index:n,disabled:l})),{},{element:a,highlighted:c===n,selected:null!=(0,An.default)(u,r),disabled:l,key:n,variant:t?"default":"groupOption"}),f?f(r):r)})))})))})));Wn.displayName="ComboboxItems";var Zn,Fn=new Map;function Hn(){var e=[];Fn.forEach((function(t,n){var r,o,i=n.getBoundingClientRect();r=t.rect,o=i,r.width===o.width&&r.height===o.height&&r.top===o.top&&r.right===o.right&&r.bottom===o.bottom&&r.left===o.left||(t.rect=i,e.push(t))})),e.forEach((function(e){e.callbacks.forEach((function(t){return t(e.rect)}))})),Zn=requestAnimationFrame(Hn)}function Un(e){var t=(0,m.useState)(),n=(0,r.Z)(t,2),o=n[0],i=n[1];return(0,m.useEffect)((function(){if(e){var t=function(e,t){var n=Fn.get(e);return void 0===n?(Fn.set(e,{rect:{},callbacks:[t]}),1===Fn.size&&(Zn=requestAnimationFrame(Hn))):(n.callbacks.push(t),t(e.getBoundingClientRect())),function(){var n=Fn.get(e);if(void 0!==n){var r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(Fn.delete(e),0===Fn.size&&cancelAnimationFrame(Zn))}}}(e,i);return function(){i(void 0),t()}}}),[e]),o}var $n=function(e){var t,n=e.inputBoxRef,r=e.dropdownBoxRef,a=(0,o.Z)(e,_),s=(0,h.iP)().height,c=Un(n.current),u=null===(t=Un(r.current))||void 0===t?void 0:t.height,d=m.useMemo((function(){if(null==u||null==c||0===u)return{};if(s){if(u>=s)return{position:"fixed",top:0,left:null===c||void 0===c?void 0:c.left,right:null===c||void 0===c?void 0:c.right,width:null===c||void 0===c?void 0:c.width};if(u+(null===c||void 0===c?void 0:c.bottom)>=s&&(null===c||void 0===c?void 0:c.top)-u>0)return{position:"fixed",top:(null===c||void 0===c?void 0:c.top)-u-6,left:null===c||void 0===c?void 0:c.left,right:null===c||void 0===c?void 0:c.right,width:null===c||void 0===c?void 0:c.width}}return{position:"fixed",top:null===c||void 0===c?void 0:c.bottom,left:null===c||void 0===c?void 0:c.left,right:null===c||void 0===c?void 0:c.right,width:null===c||void 0===c?void 0:c.width}}),[c,u,s]);return m.createElement(l.Box,(0,i.Z)((0,i.Z)((0,i.Z)({},a),d),{},{zIndex:"zIndex90"}))};$n.displayName="ListBoxPositioner";var Gn=function(e){var t=e.inputBoxRef,n=e.parentRef,r=e.usePortal,o=e.children;return r?m.createElement(y.h_,null,m.createElement($n,{inputBoxRef:t,dropdownBoxRef:n},o)):m.createElement(l.Box,{position:"absolute",top:"100%",width:"100%"},o)};Gn.displayName="ListboxWrapper";var qn=m.forwardRef((function(e,t){var n=Object.assign({},e);return m.createElement(b.InputElement,(0,i.Z)({paddingRight:n.autocomplete?void 0:"space100",cursor:n.autocomplete?void 0:"pointer",readOnly:!n.autocomplete,type:"text",ref:t},n))}));qn.displayName="ComboboxInputSelect";var Kn=m.forwardRef((function(e,t){var n=e.children,r=(0,o.Z)(e,E);return m.createElement(l.Box,(0,i.Z)((0,i.Z)({},(0,l.safelySpreadBoxProps)(r)),{},{ref:t,display:"flex",position:"relative",width:"100%"}),n)}));Kn.displayName="ComboboxInputWrapper";var Vn=m.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"COMBOBOX_LISTBOX":r,s=e.hidden,c=(0,o.Z)(e,C);return s?m.createElement(l.Box,(0,i.Z)((0,i.Z)({},(0,l.safelySpreadBoxProps)(c)),{},{appearance:"none",ref:t})):m.createElement(l.Box,(0,i.Z)((0,i.Z)({},(0,l.safelySpreadBoxProps)(c)),{},{as:"div",backgroundColor:"colorBackgroundWeaker",borderRadius:"borderRadius20",boxShadow:"shadowElevation10",element:a,listStyleType:"none",margin:"space0",overflowY:"auto",padding:"space0",position:"absolute",width:"100%",maxHeight:"size30",zIndex:"zIndex20",marginTop:"space20",ref:t}),n)}));Vn.displayName="ComboboxListbox";var Yn=j(fn()),Xn=function(e){var t=e.state,n=(0,o.Z)(e,T);return null==t||(0,Yn.default)(t)?function(e){var t=e.onInputValueChange,n=e.onIsOpenChange,r=e.onSelectedItemChange,o=e.onHighlightedIndexChange,a=e.itemToString,l=e.initialIsOpen,c=e.inputValue,u=e.selectedItem,d=e.initialSelectedItem,f=e.items,p=e.getA11yStatusMessage,h=e.getA11ySelectionMessage,v=e.disabledItems;return(0,s.Kb)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({initialSelectedItem:d,items:f,stateReducer:function(e,t){return null!==v&&void 0!==v&&v.includes(t.changes.selectedItem)?e:t.changes},onHighlightedIndexChange:m.useCallback((function(e){o&&o(e)}),[o]),onInputValueChange:t,onIsOpenChange:n,onSelectedItemChange:r},null!=a&&{itemToString:a}),null!=l&&{initialIsOpen:l}),null!=c&&{defaultInputValue:c}),null!=u&&{selectedItem:u}),null!=p&&{getA11yStatusMessage:p}),null!=h&&{getA11ySelectionMessage:h}))}(n):t},Jn=function(e,t){return t&&"inverse"===e?"error_inverse":t?"error":"inverse"===e?"inverse":"default"},Qn=m.forwardRef((function(e,t){var n=e.usePortal,r=void 0===n||n,a=e.autocomplete,s=e.disabled,v=e.element,g=void 0===v?"COMBOBOX":v,y=e.hasError,b=e.hideVisibleLabel,x=e.helpText,w=e.initialSelectedItem,k=e.disabledItems,S=e.initialIsOpen,_=e.inputValue,E=e.insertAfter,C=e.insertBefore,T=e.items,B=e.itemToString,O=e.labelText,P=e.onInputValueChange,R=e.onSelectedItemChange,A=e.optionTemplate,M=e.onHighlightedIndexChange,N=e.onIsOpenChange,D=e.required,L=e.selectedItem,j=e.groupItemsBy,z=e.groupLabelTemplate,W=e.variant,Z=void 0===W?"default":W,F=e.emptyState,H=e.getA11yStatusMessage,U=e.getA11ySelectionMessage,$=e.state,G=(0,o.Z)(e,I),q=m.useRef(null),K=(0,p.Dt)(),V=(0,h.iP)().width,Y=m.useRef(null),X=Xn({onInputValueChange:P,onIsOpenChange:N,onSelectedItemChange:R,onHighlightedIndexChange:M,itemToString:B,initialIsOpen:S,inputValue:_,selectedItem:L,initialSelectedItem:w,items:T,state:$,getA11yStatusMessage:H,getA11ySelectionMessage:U,disabledItems:k}),J=X.getComboboxProps,Q=X.getInputProps,ee=X.getItemProps,te=X.getLabelProps,ne=X.getMenuProps,re=X.getToggleButtonProps,oe=X.highlightedIndex,ie=X.selectedItem,ae=X.isOpen;if(void 0===J||void 0===Q||void 0===ee||void 0===te||void 0===ne||void 0===re||void 0===oe||void 0===ae)throw new Error("[Combobox]: One of getComboboxProps, getInputProps, getItemProps, getLabelProps, getMenuProps, getToggleButtonProps, highlightedIndex or isOpen is missing from the state object. Please make sure this is provided.");var se=Rn({size:T.length,parentRef:q,overscan:8});m.useEffect((function(){se.measure()}),[V]);var le=m.useCallback((function(e){e&&se.scrollToIndex(T.indexOf(ie))}),[T,ie]);return m.createElement(l.Box,{position:"relative",element:"".concat(g,"_WRAPPER")},m.createElement(l.Box,(0,i.Z)({},b&&(0,i.Z)({},Dn)),m.createElement(f.Label,(0,i.Z)({disabled:s,required:D,variant:Z},te()),O)),m.createElement(d.InputBox,{disabled:s,element:g,hasError:y,insertBefore:C,insertAfter:E,variant:Z,ref:Y},m.createElement(Kn,(0,i.Z)({},J({role:"combobox"})),m.createElement(qn,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},re({tabIndex:0})),Q((0,i.Z)({disabled:s,required:D,ref:t},G))),a?void 0:{onChange:function(e){return e.preventDefault()}}),{},{autocomplete:a,"aria-describedby":null!=x?K:null,element:"".concat(g,"_ELEMENT"),textOverflow:"ellipsis"})),!a&&m.createElement(d.InputChevronWrapper,{element:"".concat(g,"_CHEVRON_WRAPPER")},m.createElement(u.v,{decorative:!0,color:(0,d.getInputChevronIconColor)(Z,s,!1),size:"sizeIcon30"})))),m.createElement(Gn,{inputBoxRef:Y,parentRef:q,usePortal:r},m.createElement(Vn,(0,i.Z)({hidden:!ae,element:"".concat(g,"_LISTBOX")},ne({ref:q})),m.createElement(Wn,{ref:le,items:T,element:g,getItemProps:ee,highlightedIndex:oe,disabledItems:k,optionTemplate:A,groupItemsBy:j,groupLabelTemplate:z,totalSize:se.totalSize,virtualItems:se.virtualItems,emptyState:F}))),x&&m.createElement(c.HelpText,{id:K,variant:Jn(Z,y)},x))}));Qn.displayName="Combobox";var er=j(bn()),tr=m.forwardRef((function(e,t){var n=e.element,a=void 0===n?"GROWING_INPUT":n,s=e.onChange,c=e.initialValue,u=void 0===c?"":c,d=e.value,f=e.placeholder,p=void 0===f?"":f,h=(0,o.Z)(e,B),v=m.useState(d||u),g=(0,r.Z)(v,2),y=g[0],x=g[1];return m.useEffect((function(){x(d||"")}),[d]),m.createElement(l.Box,{element:"".concat(a,"_CONTAINER"),display:"inline-grid",gridTemplateColumns:"min-content",maxWidth:"100%",overflow:"hidden",height:"28px",alignContent:"center",_after:{content:'"'.concat(y||p||"",'"'),fontFamily:"inherit",fontSize:"fontSize30",fontWeight:"fontWeightMedium",paddingX:"space40",visibility:"hidden",height:"size0",whiteSpace:"nowrap"}},m.createElement(b.InputElement,(0,i.Z)((0,i.Z)({},h),{},{ref:t,element:a,type:"text",value:null!=d?d.replace(/  +/g," "):y,placeholder:p,padding:"space0",onChange:function(e){e.preventDefault(),x(e.currentTarget.value.replace(/  +/g," ")),null===s||void 0===s||s(e)}})))}));tr.displayName="GrowingInput";var nr=j(fn()),rr=m.forwardRef((function(e,t){var n=e.usePortal,r=void 0===n||n,a=e.element,v=void 0===a?"MULTISELECT_COMBOBOX":a,g=e.disabled,y=e.hasError,b=e.helpText,k=e.state,S=e.initialSelectedItems,_=void 0===S?[]:S,E=e.disabledItems,C=e.inputValue,T=e.placeholder,I=e.insertAfter,B=e.insertBefore,P=e.items,R=e.itemToString,A=void 0===R?function(e){return e?e.toString():""}:R,M=e.labelText,N=e.optionTemplate,D=e.required,L=e.variant,j=void 0===L?"default":L,z=e.initialIsOpen,W=e.onHighlightedIndexChange,Z=e.onInputValueChange,F=e.onSelectedItemsChange,H=e.onIsOpenChange,U=e.groupItemsBy,$=e.groupLabelTemplate,G=e.emptyState,q=e.maxHeight,K=void 0===q?"100%":q,V=e.selectedItemsLabelText,Y=e.i18nKeyboardControls,X=void 0===Y?"Press Delete or Backspace to remove. Press Enter to toggle selection.":Y,J=(0,o.Z)(e,O),Q=(0,p.Dt)(),ee=(0,p.Dt)(),te=(0,x.useFormPillState)(),ne=m.useRef(null),re=(0,h.iP)().width,oe=m.useRef(null),ie=function(e){var t=e.state,n=e.initialSelectedItems,r=e.onSelectedItemsChange;return null==t||(0,nr.default)(t)?(0,s.M$)({initialSelectedItems:n,onSelectedItemsChange:r}):t}({state:k,initialSelectedItems:_,onSelectedItemsChange:m.useCallback((function(e){F&&F(e.selectedItems)}),[F])}),ae=ie.getDropdownProps,se=ie.removeSelectedItem,le=ie.addSelectedItem,ce=ie.selectedItems,ue=(0,s.Kb)({items:P,itemToString:A,selectedItem:null,defaultInputValue:C,onInputValueChange:Z,onHighlightedIndexChange:W,onIsOpenChange:H,initialIsOpen:z,stateReducer:function(e,t){var n=t.changes;switch(t.type){case s.Kb.stateChangeTypes.InputKeyDownEnter:case s.Kb.stateChangeTypes.ItemClick:case s.Kb.stateChangeTypes.InputBlur:return(0,i.Z)((0,i.Z)({},n),null!=n.selectedItem?{isOpen:!0,highlightedIndex:P.indexOf(n.selectedItem),inputValue:""}:{});case s.Kb.stateChangeTypes.MenuMouseLeave:return(0,i.Z)((0,i.Z)({},n),{},{highlightedIndex:-2});case s.Kb.stateChangeTypes.ControlledPropUpdatedSelectedItem:return(0,i.Z)((0,i.Z)({},n),{},{inputValue:C})}return n},onStateChange:function(e){var t=e.type,n=e.selectedItem;switch(t){case s.Kb.stateChangeTypes.InputKeyDownEnter:case s.Kb.stateChangeTypes.ItemClick:if(n){if(null!=E&&(0,er.default)(E,n))return;(0,er.default)(ce,n)?se(n):le(n)}}}}),de=ue.isOpen,fe=ue.getToggleButtonProps,pe=ue.getLabelProps,he=ue.getMenuProps,me=ue.getInputProps,ve=ue.getComboboxProps,ge=ue.getItemProps,ye=ue.highlightedIndex,be=m.useMemo((function(){return P.length}),[P]),xe=Rn({size:be,parentRef:ne,overscan:8});m.useEffect((function(){xe.measure()}),[re]);var we=m.useCallback((function(e){if(null!=e){if(-1===ye){var t=ce[ce.length-1];xe.scrollToIndex(P.indexOf(t))}0===ye&&xe.scrollToIndex(0),ye===be-1&&xe.scrollToIndex(be-1)}}),[P,ce,ye]),ke=J.onKeyDown,Se=m.useCallback((function(e){"Enter"===e.code&&D&&0===ce.length&&e.preventDefault(),null===ke||void 0===ke||ke(e)}),[D,ce,ke]),_e=ve({disabled:g,role:"combobox"}),Ee=_e["aria-expanded"]||"false";return m.createElement(l.Box,{position:"relative",element:"".concat(v,"_WRAPPER")},m.createElement(f.Label,(0,i.Z)({disabled:g,required:D,variant:j},pe()),M),m.createElement(d.InputBox,{disabled:g,hasError:y,element:v,insertBefore:B,insertAfter:I,variant:j,ref:oe},m.createElement(l.Box,(0,i.Z)((0,i.Z)((0,i.Z)({},fe({disabled:g})),_e),{},{"aria-expanded":Ee,position:"relative",width:"100%",lineHeight:"lineHeight50",paddingY:"space20",paddingLeft:"space40",paddingRight:"space100",maxHeight:K,overflowY:"auto",display:"flex",alignItems:"center",flexDirection:"row",flexWrap:"wrap",columnGap:"space20"}),m.createElement(x.FormPillGroup,(0,i.Z)((0,i.Z)({},te),{},{element:"".concat(v,"_PILL_GROUP"),display:"flex","aria-label":V,"aria-describedby":Q,i18nKeyboardControls:""}),ce.map((function(e){var t=null!=U&&"string"!=typeof e?"".concat(e[U],"-").concat(A(e)):A(e);return m.createElement(x.FormPill,(0,i.Z)({variant:y?"error":"default",element:"".concat(v,"_PILL"),key:t,disabled:g,onDismiss:g?void 0:function(t){se(e),t.stopPropagation()},onSelect:function(e){return e.stopPropagation()}},te),A(e))}))),m.createElement(tr,(0,i.Z)((0,i.Z)({},me((0,i.Z)((0,i.Z)((0,i.Z)({},ae({ref:t,preventKeyAction:de})),J),{},{disabled:g,onKeyDown:Se}))),{},{placeholder:0===ce.length?T:"","aria-describedby":ee,element:"".concat(v,"_ELEMENT")})),m.createElement(d.InputChevronWrapper,{element:"".concat(v,"_CHEVRON_WRAPPER")},m.createElement(u.v,{decorative:!0,color:(0,d.getInputChevronIconColor)("default",!1,!1),size:"sizeIcon30"})))),m.createElement(Gn,{inputBoxRef:oe,parentRef:ne,usePortal:r},m.createElement(Vn,(0,i.Z)((0,i.Z)({},he({ref:ne})),{},{element:"".concat(v,"_LISTBOX"),hidden:!de,"aria-multiselectable":"true"}),m.createElement(Wn,{ref:we,items:P,element:v,getItemProps:ge,highlightedIndex:ye,selectedItems:ce,disabledItems:E,totalSize:xe.totalSize,virtualItems:xe.virtualItems,optionTemplate:N,groupItemsBy:U,groupLabelTemplate:$,emptyState:G}))),b&&m.createElement(c.HelpText,{id:ee,variant:Nn(j,y),element:"".concat(v,"_HELP_TEXT")},b),m.createElement(w.ScreenReaderOnly,{id:Q},X))}));rr.displayName="MultiselectCombobox"},4160:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7380);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},3976:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1076);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},7949:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1923);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},618:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9741);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},3536:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8246);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},5198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7952);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},3447:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2660);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(5994);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var i=n(7380);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=n(86);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=n(1076);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var l=n(5026);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(1585);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(6431);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var d=n(7549);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=n(4056);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var p=n(1923);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=n(1398);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(9741);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var v=n(6134);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var g=n(9647);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var y=n(7874);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var b=n(4137);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var x=n(9479);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var w=n(2594);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var k=n(5234);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var S=n(3955);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var _=n(7785);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var E=n(9990);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))}));var C=n(6474);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var T=n(61);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return T[e]}}))}));var I=n(4714);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var B=n(1135);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var O=n(5091);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var P=n(8733);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var R=n(6058);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===R[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}}))}));var A=n(7198);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var M=n(2836);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}}))}));var N=n(8427);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}}))}));var D=n(9717);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return D[e]}}))}));var L=n(7758);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===L[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return L[e]}}))}));var j=n(8534);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}}))}));var z=n(7952);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return z[e]}}))}));var W=n(4061);Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return W[e]}}))}));var Z=n(4232);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Z[e]}}))}));var F=n(3404);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}}))}));var H=n(6154);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var U=n(6373);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===U[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return U[e]}}))}));var $=n(324);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))}));var G=n(3812);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}}))}));var q=n(5385);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}}))}));var K=n(463);Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return K[e]}}))}));var V=n(3693);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===V[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return V[e]}}))}));var Y=n(2374);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Y[e]}}))}));var X=n(396);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}}))}));var J=n(9114);Object.keys(J).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return J[e]}}))}));var Q=n(2299);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Q[e]}}))}));var ee=n(9673);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ee[e]}}))}));var te=n(1631);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return te[e]}}))}));var ne=n(8912);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ne[e]}}))}));var re=n(6074);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return re[e]}}))}));var oe=n(1960);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return oe[e]}}))}));var ie=n(7882);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ie[e]}}))}));var ae=n(9700);Object.keys(ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ae[e]}}))}));var se=n(2034);Object.keys(se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return se[e]}}))}));var le=n(2276);Object.keys(le).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return le[e]}}))}));var ce=n(8943);Object.keys(ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ce[e]}}))}));var ue=n(9778);Object.keys(ue).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ue[e]}}))}));var de=n(2029);Object.keys(de).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===de[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return de[e]}}))}));var fe=n(4865);Object.keys(fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}}))}));var pe=n(239);Object.keys(pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pe[e]}}))}));var he=n(8990);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=n(4670);Object.keys(me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))}));var ve=n(6045);Object.keys(ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ve[e]}}))}));var ge=n(9987);Object.keys(ge).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ge[e]}}))}));var ye=n(9643);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));var be=n(9287);Object.keys(be).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return be[e]}}))}));var xe=n(7350);Object.keys(xe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xe[e]}}))}));var we=n(4562);Object.keys(we).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===we[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return we[e]}}))}));var ke=n(8233);Object.keys(ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ke[e]}}))}));var Se=n(3415);Object.keys(Se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Se[e]}}))}));var _e=n(6842);Object.keys(_e).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _e[e]}}))}));var Ee=n(7887);Object.keys(Ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ee[e]}}))}));var Ce=n(9116);Object.keys(Ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ce[e]}}))}));var Te=n(7295);Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}}))}));var Ie=n(1543);Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}}))}));var Be=n(7742);Object.keys(Be).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Be[e]}}))}));var Oe=n(5594);Object.keys(Oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Oe[e]}}))}));var Pe=n(7042);Object.keys(Pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pe[e]}}))}));var Re=n(7956);Object.keys(Re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Re[e]}}))}));var Ae=n(5747);Object.keys(Ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ae[e]}}))}));var Me=n(3949);Object.keys(Me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Me[e]}}))}));var Ne=n(9132);Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}}))}));var De=n(3514);Object.keys(De).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===De[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return De[e]}}))}));var Le=n(3354);Object.keys(Le).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Le[e]}}))}));var je=n(2758);Object.keys(je).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return je[e]}}))}));var ze=n(8779);Object.keys(ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ze[e]}}))}));var We=n(6168);Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===We[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}}))}));var Ze=n(9792);Object.keys(Ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}}))}));var Fe=n(6537);Object.keys(Fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fe[e]}}))}));var He=n(6091);Object.keys(He).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===He[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return He[e]}}))}));var Ue=n(2152);Object.keys(Ue).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ue[e]}}))}));var $e=n(9685);Object.keys($e).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $e[e]}}))}))},5862:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2374);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},5402:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3693);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},4793:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7295);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},2431:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9132);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},9839:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3514);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},2614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6091);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},6474:function(e,t,n){"use strict";n.r(t),n.d(t,{CornerOrnament:function(){return v},CornerOrnamentBase:function(){return y},CornerOrnamentContainer:function(){return g}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=n(9628),l=["element"],c=["size","cornerOrnamentType","position","element"],u=["padding","element"],d=a.createContext(null),f=function(){var e=a.useContext(d);if(!e)throw new Error("Corner Ornaments components must be used within CornerOrnamentContainer");return e},p={bottom_end:"M1.05-.05h-1.1v1.1h.613A.35.35 0 0 1 1.05.563V-.05Z",top_end:"M1.05.437A.35.35 0 0 1 .563-.05H-.05v1.1h1.1V.437Z"},h={badge:{bottom_end:"M1.05-.05h-1.1v1.1h.593A.375.375 0 0 1 .875.5h.1c.026 0 .05.003.075.007V-.05Z",top_end:"M.543-.05A.375.375 0 0 0 .875.5h.1c.026 0 .05-.003.075-.008v.558h-1.1v-1.1h.593Z"},icon:p,avatar:p},m={badge:{bottom_end:{sizeIcon50:{left:"16px",top:"16px"},sizeIcon60:{left:"16px",top:"16px"},sizeIcon70:{left:"19px",top:"19px"},sizeIcon80:{left:"25px",top:"25px"},sizeIcon90:{left:"25px",top:"25px"},sizeIcon100:{left:"34px",top:"34px"},sizeIcon110:{left:"42px",top:"42px"}},top_end:{sizeIcon50:{left:"16px",bottom:"16px",top:"-8px"},sizeIcon60:{left:"16px",bottom:"16px",top:"-8px"},sizeIcon70:{left:"19px",bottom:"19px",top:"-7px"},sizeIcon80:{left:"25px",bottom:"25px",top:"-5px"},sizeIcon90:{left:"25px",bottom:"25px",top:"-5px"},sizeIcon100:{left:"34px",bottom:"34px",top:"-6px"},sizeIcon110:{left:"42px",bottom:"42px",top:"-2px"}}},avatar:{bottom_end:{sizeIcon20:{left:"10px",top:"10px"},sizeIcon30:{left:"10px",top:"10px"},sizeIcon40:{left:"13px",top:"13px"},sizeIcon50:{left:"16px",top:"16px"},sizeIcon60:{left:"16px",top:"16px"},sizeIcon70:{left:"19px",top:"19px"},sizeIcon80:{left:"24px",top:"24px"},sizeIcon90:{left:"24px",top:"24px"},sizeIcon100:{left:"30px",top:"30px"},sizeIcon110:{left:"38px",top:"38px"}},top_end:{sizeIcon20:{left:"10px",bottom:"10px",top:"-3px"},sizeIcon30:{left:"10px",bottom:"10px",top:"-3px"},sizeIcon40:{left:"13px",bottom:"13px",top:"-5px"},sizeIcon50:{left:"16px",bottom:"16px",top:"-4px"},sizeIcon60:{left:"16px",bottom:"16px",top:"-4px"},sizeIcon70:{left:"19px",bottom:"19px",top:"-3px"},sizeIcon80:{left:"24px",bottom:"24px",top:"-4px"},sizeIcon90:{left:"24px",bottom:"24px",top:"-4px"},sizeIcon100:{left:"30px",bottom:"30px",top:"-6px"},sizeIcon110:{left:"38px",bottom:"38px",top:"-6px"}}},icon:{bottom_end:{sizeIcon20:{left:"11px",top:"11px"},sizeIcon30:{left:"11px",top:"11px"},sizeIcon40:{left:"13px",top:"13px"},sizeIcon50:{left:"16px",top:"16px"},sizeIcon60:{left:"16px",top:"16px"},sizeIcon70:{left:"17px",top:"17px"},sizeIcon80:{left:"22px",top:"22px"},sizeIcon90:{left:"22px",top:"22px"},sizeIcon100:{left:"30px",top:"30px"},sizeIcon110:{left:"38px",top:"38px"}},top_end:{sizeIcon20:{left:"11px",bottom:"11px",top:"-3px"},sizeIcon30:{left:"11px",bottom:"11px",top:"-3px"},sizeIcon40:{left:"13px",bottom:"13px",top:"-5px"},sizeIcon50:{left:"16px",bottom:"16px",top:"-4px"},sizeIcon60:{left:"16px",bottom:"16px",top:"-4px"},sizeIcon70:{left:"17px",bottom:"17px",top:"-5px"},sizeIcon80:{left:"22px",bottom:"22px",top:"-6px"},sizeIcon90:{left:"22px",bottom:"22px",top:"-6px"},sizeIcon100:{left:"30px",bottom:"30px",top:"-6px"},sizeIcon110:{left:"38px",bottom:"38px",top:"-6px"}}}},v=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"CORNER_ORNAMENT":n,c=(0,o.Z)(e,l),u=f(),d=u.cornerOrnamentType,p=u.size,h=u.position;if(!m[d][h][p])throw new Error("[Paste: CornerOrnament] the size/position/type combination you have chosen is not currently supported. Please refer to the guidelines in our docs or raise a new discussion to get this supported at https://github.com/twilio-labs/paste/discussions.");return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{position:"absolute",element:s,ref:t},m[d][h][p]),c.children)}));v.displayName="CornerOrnament";var g=a.forwardRef((function(e,t){var n=e.size,s=e.cornerOrnamentType,l=e.position,u=void 0===l?"bottom_end":l,f=e.element,p=void 0===f?"CORNER_ORNAMENT_CONTAINER":f,h=(0,o.Z)(e,c);return a.createElement(d.Provider,{value:{size:n,cornerOrnamentType:s,position:u}},a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(h)),{},{position:"relative",element:p,ref:t}),h.children))}));g.displayName="CornerOrnamentContainer";var y=a.forwardRef((function(e,t){var n=e.padding,l=e.element,c=void 0===l?"CORNER_ORNAMENT_BASE":l,d=(0,o.Z)(e,u),p=(0,s.Dt)(),m=f(),v=m.cornerOrnamentType,g=m.position,y=m.size;return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(d)),{},{style:{clipPath:'url("#'.concat(p,'")')},element:c,ref:t,size:y}),a.createElement(i.Box,{padding:n||"space0"},d.children),a.createElement(i.Box,{as:"svg",size:0,position:"absolute",top:0,left:0},a.createElement("defs",null,a.createElement("clipPath",{id:p,clipPathUnits:"objectBoundingBox"},a.createElement("path",{d:h[v][g]})))))}));y.displayName="CornerOrnamentBase"},8246:function(e,t,n){"use strict";n.r(t),n.d(t,{CustomizationConsumer:function(){return k},CustomizationProvider:function(){return w}});var r,o,i=n(4925),a=n(1413),s=n(2982),l=n(7762),c=n(3512),u=n(7666),d=n(2714),f=n(2791),p=["baseTheme","customBreakpoints","elements","theme","disableAnimations"],h=Object.create,m=Object.defineProperty,v=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,x=function(e,t,n){return n=null!=e?h(y(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(g(t));try{var a=function(){var i=o.value;!b.call(e,i)&&i!==n&&m(e,i,{get:function(){return t[i]},enumerable:!(r=v(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:m(n,"default",{value:e,enumerable:!0}),e)}((r={"../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}},function(){return o||(0,r[g(r)[0]])((o={exports:{}}).exports,o),o.exports})()),w=function(e){var t=e.baseTheme,n=void 0===t?"default":t,r=e.customBreakpoints,o=e.elements,l=e.theme,h=e.disableAnimations,m=void 0!==h&&h,v=(0,i.Z)(e,p),g=(0,c.JZ)();f.useMemo((function(){c.OH.assign({skipAnimation:m||g})}),[m,g]);var y=f.useMemo((function(){return function(e){var t=e.baseTheme,n=e.overrides,r=e.customBreakpoints,o=e.elements,i=r||t.breakpoints,l=(0,x.default)(t,n);if(null!=o&&(0,s.Z)(new Set(Object.keys(o).map((function(e){return e.toLowerCase()})))).length!==Object.keys(o).length)throw new Error("[CustomizationProvider]: duplicate element names, even when using a different casing, is not supported with Paste.");return(0,a.Z)((0,a.Z)({},l),{},{breakpoints:i,elements:o})}({baseTheme:"dark"===n?d.Cs:d.XU,overrides:l||{},elements:o||{},customBreakpoints:r})}),[n,r,o,l]);return f.createElement(u.f6,{theme:y},f.createElement(u.TL,{styles:(0,d.dR)({theme:y})}),f.createElement(d.ko,(0,a.Z)({},v)))};w.displayName="PasteCustomizationProvider";var k=function(e){return f.createElement(d.Q2.Consumer,(0,a.Z)({},e))};k.displayName="PasteCustomizationConsumer"},61:function(e,t,n){"use strict";n.r(t),n.d(t,{DataGrid:function(){return ie},DataGridBody:function(){return xe},DataGridCell:function(){return ve},DataGridFoot:function(){return we},DataGridHead:function(){return ae},DataGridHeader:function(){return ge},DataGridHeaderSort:function(){return be},DataGridRow:function(){return ce}});var r=n(1413),o=n(4925),i=n(885),a=n(7762),s=n(4086),l=n(7956),c=n(9628),u=n(2791),d=n(1923),f=n(7666),p=n(3217),h=n(9741),m=n(8015),v=u.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,d=e.decorative,f="ArrowDownIcon-".concat((0,c.Dt)());if(!d&&null==l)throw new Error("[ArrowDownIcon]: Missing a title for non-decorative icon.");return u.createElement(m.a,{as:n,display:r,element:i,size:a,color:s,ref:t},u.createElement("svg",{role:"img","aria-hidden":d,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":f},l?u.createElement("title",{id:f},l):null,u.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.91 14.991l.05.007h.08l.07-.01.029-.01a.489.489 0 00.272-.205l3.444-3.832a.596.596 0 000-.78.459.459 0 00-.632-.063l-.069.063-2.659 2.957V5.513A.504.504 0 0010 5a.5.5 0 00-.488.42l-.008.093v7.604l-2.658-2.956a.459.459 0 00-.632-.063l-.069.063a.598.598 0 00-.057.704l.057.076 3.444 3.832c.064.098.16.172.272.206l.049.012z"})))}));v.displayName="ArrowDownIcon";var g=u.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,d=e.decorative,f="ArrowUpIcon-".concat((0,c.Dt)());if(!d&&null==l)throw new Error("[ArrowUpIcon]: Missing a title for non-decorative icon.");return u.createElement(m.a,{as:n,display:r,element:i,size:a,color:s,ref:t},u.createElement("svg",{role:"img","aria-hidden":d,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":f},l?u.createElement("title",{id:f},l):null,u.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 5h.011a.45.45 0 01.059.005L10 5c.038 0 .075.004.11.013l.029.009a.489.489 0 01.272.205l3.444 3.832a.596.596 0 010 .78.459.459 0 01-.632.063l-.069-.063-2.659-2.957v7.605A.504.504 0 0110 15a.5.5 0 01-.488-.42l-.008-.093V6.883L6.846 9.839a.459.459 0 01-.632.063l-.069-.063a.598.598 0 01-.057-.704l.057-.076L9.59 5.227a.498.498 0 01.272-.206l.028-.007A.533.533 0 0110 5z"})))}));g.displayName="ArrowUpIcon";var y=u.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,d=e.decorative,f="UnsortedIcon-".concat((0,c.Dt)());if(!d&&null==l)throw new Error("[UnsortedIcon]: Missing a title for non-decorative icon.");return u.createElement(m.a,{as:n,display:r,element:i,size:a,color:s,ref:t},u.createElement("svg",{role:"img","aria-hidden":d,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 20 20","aria-labelledby":f},l?u.createElement("title",{id:f},l):null,u.createElement("path",{fill:"currentColor",d:"M4.088 7.135a.598.598 0 00.057.704l.069.063c.193.15.46.128.632-.063L6.5 5.914V11.5a.5.5 0 001 0V5.913l1.654 1.926.069.063c.193.15.46.128.632-.063a.596.596 0 000-.78L7.35 4.161l-.068-.063a.459.459 0 00-.632.063L4.145 7.06l-.057.076zm11.824 5.73a.598.598 0 00-.057-.704l-.069-.063a.459.459 0 00-.632.063L13.5 14.086V8.5a.5.5 0 00-1 0v5.587l-1.654-1.926-.069-.063a.459.459 0 00-.632.063.596.596 0 000 .78l2.505 2.898.068.063c.193.15.46.128.632-.063l2.505-2.898.057-.076z"})))}));y.displayName="UnsortedIcon";var b=n(9643),x=["element","role","striped"],w=["element"],k=["element","striped"],S=["element"],_=["textAlign","whiteSpace","element"],E=["width","textAlign","whiteSpace","element"],C=["element","as"],T=["element"],I=["direction","onClick","element","i18nAscendingLabel","i18nDescendingLabel","i18nUnsortedLabel"],B=["element"],O=["element"],P=Object.create,R=Object.defineProperty,A=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,N=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,L=function(e,t){return function(){return t||(0,e[M(e)[0]])((t={exports:{}}).exports,t),t.exports}},j=L({"../../../../node_modules/lodash/isObjectLike.js":function(e,t){t.exports=function(e){return null!=e&&"object"==typeof e}}}),z=L({"../../../../node_modules/lodash/_freeGlobal.js":function(e,t){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r}}),W=L({"../../../../node_modules/lodash/_root.js":function(e,t){var n=z(),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();t.exports=o}}),Z=L({"../../../../node_modules/lodash/_Symbol.js":function(e,t){var n=W().Symbol;t.exports=n}}),F=L({"../../../../node_modules/lodash/_getRawTag.js":function(e,t){var n=Z(),r=Object.prototype,o=r.hasOwnProperty,i=r.toString,a=n?n.toStringTag:void 0;t.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(l){}var s=i.call(e);return r&&(t?e[a]=n:delete e[a]),s}}}),H=L({"../../../../node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}}}),U=L({"../../../../node_modules/lodash/_baseGetTag.js":function(e,t){var n=Z(),r=F(),o=H(),i=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?r(e):o(e)}}}),$=L({"../../../../node_modules/lodash/_overArg.js":function(e,t){t.exports=function(e,t){return function(n){return e(t(n))}}}}),G=L({"../../../../node_modules/lodash/_getPrototype.js":function(e,t){var n=$()(Object.getPrototypeOf,Object);t.exports=n}}),q=L({"../../../../node_modules/lodash/isPlainObject.js":function(e,t){var n=U(),r=G(),o=j(),i=Function.prototype,a=Object.prototype,s=i.toString,l=a.hasOwnProperty,c=s.call(Object);t.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=r(e);if(null===t)return!0;var i=l.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&s.call(i)==c}}}),K=L({"../../../../node_modules/lodash/isElement.js":function(e,t){var n=j(),r=q();t.exports=function(e){return n(e)&&1===e.nodeType&&!r(e)}}}),V=u.createContext({actionable:!1,striped:!1});var Y="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function X(e){return function(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}(e,Y)}function J(e){return Array.from(e.querySelectorAll(Y)).filter(X)}function Q(e){var t=function(e){return e?e.ownerDocument||e:document}(e),n=t.activeElement;return null!==n&&void 0!==n&&n.nodeName?n:null}function ee(e){var t=Q(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.preventScroll,r=t.isActive,o=void 0===r?ee:r;return o(e)||(e.focus({preventScroll:n}),o(e))?-1:requestAnimationFrame((function(){e.focus({preventScroll:n})}))}var ne=function(e){setTimeout((function(){null!=e&&(e.tabIndex=0)}),150)},re=function(e){return"TD"===e.tagName||"TH"===e.tagName},oe=function(e,t){return null!=e&&t?e.closest('[id="'.concat(t,'"] th, [id="').concat(t,'"] td')):null},ie=u.forwardRef((function(e,t){var n=e.element,a=void 0===n?"DATA_GRID":n,d=e.role,f=void 0===d?"grid":d,p=e.striped,h=void 0!==p&&p,m=(0,o.Z)(e,x),v="data-grid-".concat((0,c.Dt)()),g=u.useRef(null),y=(0,s.uN)({unstable_virtual:!1}),b=u.useState(!1),w=(0,i.Z)(b,2),k=w[0],S=w[1],_=u.useCallback((function(){S(!0)}),[]),E=u.useCallback((function(e){null!=e.target&&(g.current=e.target)}),[]),C=u.useCallback((function(e){if(!e.currentTarget.contains(e.relatedTarget)&&(S(!1),null!=g.current)){var t=oe(g.current,v);t&&ne(t)}}),[v]),T=u.useCallback((function(e){switch(e.key){case"Enter":S(!0);var t=Q();if(t&&re(t)){var n=function(e){var t=J(e);return(0,i.Z)(t,1)[0]||null}(t);n&&(te(n),t.tabIndex=k?0:-1)}break;case"Escape":S(!1);var r=function(e){var t=Q();return t?re(t)?t:oe(t,e):null}(v);r&&(te(r),ne(r))}}),[k,v]),I=(0,r.Z)((0,r.Z)({},y),{},{actionable:k,striped:h});return u.createElement(V.Provider,{value:I},u.createElement(s.bU,(0,r.Z)((0,r.Z)((0,r.Z)({},m),y),{},{id:v,ref:t,as:l.Table,element:a,role:f,onKeyDown:T,onMouseDown:_,onFocus:E,onBlur:C,isActionable:k,"data-actionable":k})))}));ie.displayName="DataGrid";var ae=u.forwardRef((function(e,t){var n=e.element,i=void 0===n?"DATA_GRID_HEAD":n,a=(0,o.Z)(e,w);return u.createElement(l.THead,(0,r.Z)((0,r.Z)({},a),{},{element:i,ref:t}))}));ae.displayName="DataGridHead";var se=f.iK.tr((0,f.iv)({"&[aria-selected=true] > td":{borderColor:"colorBorderPrimaryWeaker"},"&[aria-selected=true] > th":{borderColor:"colorBorderPrimaryWeaker"}})),le=u.forwardRef((function(e,t){var n=e.element,i=void 0===n?"DATA_GRID_TR":n,a=e.striped,s=(0,o.Z)(e,k);return u.createElement(d.Box,(0,r.Z)((0,r.Z)({},(0,d.safelySpreadBoxProps)(s)),{},{ref:t,element:i,as:se,"aria-selected":s.selected,_even:{backgroundColor:a?"colorBackgroundRowStriped":"transparent"},_selected:{backgroundColor:"colorBackgroundPrimaryWeakest"}}))}));le.displayName="Tr";var ce=u.forwardRef((function(e,t){var n=e.element,i=void 0===n?"DATA_GRID_ROW":n,a=(0,o.Z)(e,S),l=u.useContext(V);return u.createElement(s.ES,(0,r.Z)((0,r.Z)((0,r.Z)({as:le},a),{},{element:i},l),{},{ref:t,role:"row"}))}));ce.displayName="DataGridRow";var ue,de,fe,pe=(ue=K(),fe=null!=ue?P(N(ue)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,a.Z)(M(t));try{var s=function(){var i=o.value;!D.call(e,i)&&i!==n&&R(e,i,{get:function(){return t[i]},enumerable:!(r=A(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)s()}catch(l){i.e(l)}finally{i.f()}}return e}(!de&&ue&&ue.__esModule?fe:R(fe,"default",{value:ue,enumerable:!0}),ue)),he=u.forwardRef((function(e,t){var n=e.textAlign,i=void 0===n?"left":n,a=e.whiteSpace,s=e.element,l=void 0===s?"DATA_GRID_TD":s,c=(0,o.Z)(e,_);return u.createElement(d.Box,(0,r.Z)((0,r.Z)({},(0,d.safelySpreadBoxProps)(c)),{},{ref:t,as:"td",element:l,borderStyle:"solid",borderColor:"colorBorderWeaker",borderWidth:"borderWidth0",borderBottomWidth:"borderWidth10",fontSize:"fontSize30",lineHeight:"lineHeight30",padding:"space50",position:"relative",textAlign:i,whiteSpace:a,verticalAlign:"inherit",wordWrap:"break-word",color:"inherit",_first:{paddingLeft:"space50"},_last:{paddingRight:"space50"},_focus:{outline:"none",boxShadow:"shadowFocusInset"}}))}));he.displayName="Td";var me=u.forwardRef((function(e,t){var n=e.width,i=e.textAlign,a=void 0===i?"left":i,s=e.whiteSpace,l=e.element,c=void 0===l?"DATA_GRID_TH":l,f=(0,o.Z)(e,E);return u.createElement(d.Box,(0,r.Z)((0,r.Z)({},(0,d.safelySpreadBoxProps)(f)),{},{ref:t,element:c,as:"th",borderBottomStyle:"solid",borderBottomColor:"colorBorderWeaker",borderBottomWidth:"borderWidth10",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightSemibold",paddingY:"space40",paddingX:"space50",width:n,position:"relative",textAlign:a,whiteSpace:s,verticalAlign:"inherit",color:"inherit",_first:{paddingLeft:"space50"},_last:{paddingRight:"space50"},_focus:{outline:"none",boxShadow:"shadowFocusInset"}}))}));me.displayName="Th";var ve=function(e){var t=e.element,n=void 0===t?"DATA_GRID_CELL":t,i=e.as,a=void 0===i?"td":i,l=(0,o.Z)(e,C),c=u.useContext(V),d=u.useRef(null),f=u.useCallback((function(e){0!==e.length&&e.forEach((function(e){if((0,pe.default)(e.target)){var t=e.target;"tabindex"===e.attributeName&&c.actionable&&0===t.tabIndex&&re(t)&&(t.tabIndex=-1)}}))}),[c.actionable]);return(0,p.xz)(d.current||{},f),u.useEffect((function(){setTimeout((function(){var e,t;d.current&&(e=d.current,t=c.actionable,J(e).forEach((function(e){e.tabIndex=t?0:-1})))}),10)}),[c.actionable]),u.createElement(s.A8,(0,r.Z)((0,r.Z)((0,r.Z)({},l),c),{},{element:n,ref:d,as:"td"===a?he:me}))};ve.displayName="DataGridCell";var ge=function(e){var t=e.element,n=void 0===t?"DATA_GRID_HEADER":t,i=(0,o.Z)(e,T);return u.createElement(ve,(0,r.Z)((0,r.Z)({element:n},i),{},{as:"th"}))};ge.displayName="DataGridHeader";var ye=function(e){var t=e.direction,n=e.element;switch(t){case"ascending":return u.createElement(g,{decorative:!0,element:n});case"descending":return u.createElement(v,{decorative:!0,element:n});case"none":return u.createElement(y,{decorative:!0,element:n});default:return null}};ye.displayName="DataGridHeaderSortIcon";var be=function(e){var t=e.direction,n=e.onClick,i=e.element,a=void 0===i?"DATA_GRID_HEADER_SORT":i,s=e.i18nAscendingLabel,l=void 0===s?"Sort ascending":s,c=e.i18nDescendingLabel,d=void 0===c?"Sort descending":c,f=e.i18nUnsortedLabel,p=void 0===f?"Unsorted":f,m=(0,o.Z)(e,I),v={ascending:l,descending:d,none:p};return u.createElement(h.Button,(0,r.Z)({element:a,variant:"reset",size:"reset",onClick:n},m),u.createElement(ye,{element:"".concat(a,"_ICON"),direction:t}),u.createElement(b.ScreenReaderOnly,null,v[t]))};be.displayName="DataGridHeaderSort";var xe=u.forwardRef((function(e,t){var n=e.element,i=void 0===n?"DATA_GRID_BODY":n,a=(0,o.Z)(e,B);return u.createElement(l.TBody,(0,r.Z)((0,r.Z)({},a),{},{element:i,ref:t}))}));xe.displayName="DataGridBody";var we=u.forwardRef((function(e,t){var n=e.element,i=void 0===n?"DATA_GRID_FOOT":n,a=(0,o.Z)(e,O);return u.createElement(l.TFoot,(0,r.Z)((0,r.Z)({},a),{},{element:i,ref:t}))}));we.displayName="DataGridFoot"},4714:function(e,t,n){"use strict";n.r(t),n.d(t,{DatePicker:function(){return l},formatReturnDate:function(){return se}});var r=n(1413),o=n(4925),i=n(3693),a=n(2791),s=["element"],l=a.forwardRef((function(e,t){var n=e.element,l=void 0===n?"DATEPICKER":n,c=(0,o.Z)(e,s);return a.createElement(i.Input,(0,r.Z)((0,r.Z)({element:l,max:"9999-12-31"},c),{},{type:"date",ref:t}))}));function c(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function u(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function d(e){u(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function f(e,t){u(2,arguments);var n=d(e).getTime(),r=c(t);return new Date(n+r)}function p(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function h(e){u(1,arguments);var t=d(e);return!isNaN(t)}l.displayName="DatePicker";var m={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function v(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var g={date:v({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:v({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:v({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},y={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function b(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function x(e){return function(t,n){var r=String(t),o=n||{},i=o.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=r.match(a);if(!s)return null;var l,c=s[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(u,(function(e){return e.test(c)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(u,(function(e){return e.test(c)})),l=e.valueCallback?e.valueCallback(l):l,{value:l=o.valueCallback?o.valueCallback(l):l,rest:r.slice(c.length)}}}var w,k={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof m[e]?m[e]:1===t?m[e].one:m[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:g,formatRelative:function(e,t,n,r){return y[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:b({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:b({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:b({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:b({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:b({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(w={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},o=n.match(w.matchPattern);if(!o)return null;var i=o[0],a=n.match(w.parsePattern);if(!a)return null;var s=w.valueCallback?w.valueCallback(a[0]):a[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(i.length)}}),era:x({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:x({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:x({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:x({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:x({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function S(e,t){u(2,arguments);var n=c(t);return f(e,-n)}function _(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var E={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return _("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):_(n+1,2)},d:function(e,t){return _(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return _(e.getUTCHours()%12||12,t.length)},H:function(e,t){return _(e.getUTCHours(),t.length)},m:function(e,t){return _(e.getUTCMinutes(),t.length)},s:function(e,t){return _(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return _(Math.floor(r*Math.pow(10,n-3)),t.length)}},C=864e5;function T(e){u(1,arguments);var t=1,n=d(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function I(e){u(1,arguments);var t=d(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=T(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=T(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function B(e){u(1,arguments);var t=I(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=T(n);return r}var O=6048e5;function P(e,t){u(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:c(o),a=null==n.weekStartsOn?i:c(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=d(e),l=s.getUTCDay(),f=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-f),s.setUTCHours(0,0,0,0),s}function R(e,t){u(1,arguments);var n=d(e,t),r=n.getUTCFullYear(),o=t||{},i=o.locale,a=i&&i.options&&i.options.firstWeekContainsDate,s=null==a?1:c(a),l=null==o.firstWeekContainsDate?s:c(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(r+1,0,l),f.setUTCHours(0,0,0,0);var p=P(f,t),h=new Date(0);h.setUTCFullYear(r,0,l),h.setUTCHours(0,0,0,0);var m=P(h,t);return n.getTime()>=p.getTime()?r+1:n.getTime()>=m.getTime()?r:r-1}function A(e,t){u(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,i=null==o?1:c(o),a=null==n.firstWeekContainsDate?i:c(n.firstWeekContainsDate),s=R(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var d=P(l,t);return d}var M=6048e5;var N="midnight",D="noon",L="morning",j="afternoon",z="evening",W="night",Z={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,r){var o=R(e,r),i=o>0?o:1-o;return"YY"===t?_(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):_(i,t.length)},R:function(e,t){return _(I(e),t.length)},u:function(e,t){return _(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return _(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return _(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return _(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){u(1,arguments);var n=d(e),r=P(n,t).getTime()-A(n,t).getTime();return Math.round(r/M)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):_(o,t.length)},I:function(e,t,n){var r=function(e){u(1,arguments);var t=d(e),n=T(t).getTime()-B(t).getTime();return Math.round(n/O)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):_(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){var r=function(e){u(1,arguments);var t=d(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/C)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):_(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return _(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return _(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return _(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?D:0===o?N:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?z:o>=12?j:o>=4?L:W,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return E.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):_(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):_(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return H(o);case"XXXX":case"XX":return U(o);default:return U(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return H(o);case"xxxx":case"xx":return U(o);default:return U(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+F(o,":");default:return"GMT"+U(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+F(o,":");default:return"GMT"+U(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return _(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return _((r._originalDate||e).getTime(),t.length)}};function F(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+_(i,2)}function H(e,t){return e%60===0?(e>0?"-":"+")+_(Math.abs(e)/60,2):U(e,t)}function U(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+_(Math.floor(o/60),2)+n+_(o%60,2)}var $=Z;function G(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function q(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var K={p:q,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],i=r[2];if(!i)return G(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",G(o,t)).replace("{{time}}",q(i,t))}},V=["D","DD"],Y=["YY","YYYY"];function X(e){return-1!==V.indexOf(e)}function J(e){return-1!==Y.indexOf(e)}function Q(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var ee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,te=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ne=/^'([^]*?)'?$/,re=/''/g,oe=/[a-zA-Z]/;function ie(e){return e.match(ne)[1].replace(re,"'")}var ae=/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/,se=function(e,t){if(e.match(ae))return function(e,t,n){u(2,arguments);var r=String(t),o=n||{},i=o.locale||k,a=i.options&&i.options.firstWeekContainsDate,s=null==a?1:c(a),l=null==o.firstWeekContainsDate?s:c(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=i.options&&i.options.weekStartsOn,m=null==f?0:c(f),v=null==o.weekStartsOn?m:c(o.weekStartsOn);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var g=d(e);if(!h(g))throw new RangeError("Invalid time value");var y=p(g),b=S(g,y),x={firstWeekContainsDate:l,weekStartsOn:v,locale:i,_originalDate:g};return r.match(te).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,K[t])(e,i.formatLong,x):e})).join("").match(ee).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return ie(n);var a=$[r];if(a)return!o.useAdditionalWeekYearTokens&&J(n)&&Q(n,t,e),!o.useAdditionalDayOfYearTokens&&X(n)&&Q(n,t,e),a(b,n,i.localize,x);if(r.match(oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(new Date(e.concat("T12:00:00-00:00")),t);throw new Error("[Paste Date Picker]: Please make sure dateValue string matches YYYY-MM-DD format")}},1135:function(e,t,n){"use strict";n.r(t),n.d(t,{DescriptionList:function(){return f},DescriptionListDetails:function(){return h},DescriptionListSet:function(){return v},DescriptionListTerm:function(){return p}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=n(7666),l=["element","children"],c=["element","children"],u=["element","children"],d=["element","children"],f=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"DESCRIPTION_LIST":n,c=e.children,u=(0,o.Z)(e,l);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(u)),{},{as:"dl",marginY:"space0",ref:t,element:s}),c)}));f.displayName="DescriptionList";var p=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"DESCRIPTION_LIST_TERM":n,l=e.children,u=(0,o.Z)(e,c);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(u)),{},{as:"dt",ref:t,element:s,fontWeight:"fontWeightSemibold",color:"colorText",fontSize:"fontSize30",lineHeight:"lineHeight30",margin:"space0"}),l)}));p.displayName="DescriptionListTerm";var h=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"DESCRIPTION_LIST_DETAILS":n,l=e.children,c=(0,o.Z)(e,u);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{as:"dd",ref:t,element:s,margin:"space0",color:"colorText",fontWeight:"fontWeightNormal",lineHeight:"lineHeight30",fontSize:"fontSize30",overflowWrap:"break-word"}),l)}));h.displayName="DescriptionListDetails";var m=s.iK.div((0,s.iv)({":not(:last-of-type)":{marginBottom:"space60"},"& > dd:not(:last-of-type)":{marginBottom:"space10"},"& > dt:last-of-type":{marginBottom:"space20"},"& > dt:not(:last-of-type)":{marginBottom:"space10"}})),v=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"DESCRIPTION_LIST_SET":n,l=e.children,c=(0,o.Z)(e,d);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{as:m,ref:t,element:s}),l)}));v.displayName="DescriptionListSet"},5091:function(e,t,n){"use strict";n.r(t),n.d(t,{DetailText:function(){return l}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["element","as","children","marginTop"],l=a.forwardRef((function(e,t){var n=e.element,l=void 0===n?"DETAIL_TEXT":n,c=e.as,u=void 0===c?"div":c,d=e.children,f=e.marginTop,p=void 0===f?"space30":f,h=(0,o.Z)(e,s);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({as:u,ref:t,element:l},(0,i.safelySpreadBoxProps)(h)),{},{marginTop:p,color:"colorTextWeak",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"fontWeightMedium"}),d)}));l.displayName="DetailText"},6058:function(e,t,n){"use strict";n.r(t),n.d(t,{DisclosurePrimitive:function(){return r.pJ},DisclosurePrimitiveContent:function(){return r.k_},useDisclosurePrimitiveState:function(){return r.bV}});var r=n(4086)},8733:function(e,t,n){"use strict";n.r(t),n.d(t,{Disclosure:function(){return y},DisclosureContent:function(){return B},DisclosureHeading:function(){return _},useDisclosureState:function(){return s.bV}});var r=n(1413),o=n(885),i=n(4925),a=n(1923),s=n(4086),l=n(2791),c=n(6373),u=n(7087),d=n(2714),f=n(3512),p=["children","element","variant","state"],h=["children","element","renderAs","disclosureVariant","variant","isHovered","isDisabled","setIsDisabled","setIsHovered"],m=["children","as","element","disabled","focusable"],v=["children","element","visible"],g=l.createContext({}),y=l.forwardRef((function(e,t){var n=e.children,c=e.element,u=void 0===c?"DISCLOSURE":c,d=e.variant,f=void 0===d?"default":d,h=e.state,m=(0,i.Z)(e,p),v=h||(0,s.bV)((0,r.Z)({animated:!0},m)),y=l.useState(!1),b=(0,o.Z)(y,2),x=b[0],w=b[1],k=l.useState(!1),S=(0,o.Z)(k,2),_={disclosure:v,variant:f,isHeadingHovered:S[0],setIsHeadingHovered:S[1],isDisabled:x,setIsDisabled:w};return l.createElement(g.Provider,{value:_},l.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(m)),{},{variant:f,element:u,ref:t}),n))}));y.displayName="Disclosure";var b={heading10:"sizeIcon90",heading20:"sizeIcon70",heading30:"sizeIcon60",heading40:"sizeIcon40",heading50:"sizeIcon30",heading60:"sizeIcon20"},x={borderWidth:"borderWidth10",borderStyle:"solid",borderRadius:"borderRadius20"},w=(0,r.Z)((0,r.Z)({},x),{},{borderColor:"colorBorderWeaker"}),k=(0,r.Z)((0,r.Z)({},x),{},{borderColor:"colorBorderWeak"}),S=l.forwardRef((function(e,t){var n=e.children,o=e.element,s=e.renderAs,f=e.disclosureVariant,p=e.variant,m=e.isHovered,v=e.isDisabled,g=e.setIsDisabled,y=e.setIsHovered,x=(0,i.Z)(e,h),S=(0,d.Fg)(),_=x["aria-disabled"],E=x["aria-expanded"],C=b[p]||"sizeIcon20",T=m&&!v,I=l.useRef(null);l.useEffect((function(){g(!!_)}),[_,g]),l.useEffect((function(){var e=function(){return y(!0)},t=function(){return y(!1)},n=I.current;if(n)return n.addEventListener("mouseover",e),n.addEventListener("mouseout",t),function(){n.removeEventListener("mouseover",e),n.removeEventListener("mouseout",t)}}),[I,y]);var B={};return"contained"===f&&(B=w,m&&!v&&(B=k),E&&(B=(0,r.Z)((0,r.Z)({},B),{},{borderBottomLeftRadius:"borderRadius0",borderBottomRightRadius:"borderRadius0",borderBottom:"none"}))),l.createElement(c.Heading,{as:s,marginBottom:"space0",variant:p,ref:t},l.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(x)),{},{as:"div",backgroundColor:E?"colorBackgroundWeak":"colorBackgroundBody",borderRadius:"borderRadius20",cursor:"pointer",display:"flex",element:o,outline:"none",padding:"space30",position:"relative",ref:I,role:"button",zIndex:"zIndex10",transition:"background-color, border-color, border-radius 100ms ease",_hover:{backgroundColor:"colorBackground"},_focus:{boxShadow:"shadowFocus"},_disabled:{backgroundColor:"colorBackgroundStrong",color:"colorTextWeaker",cursor:"not-allowed"}},B),l.createElement(a.Box,{as:"span",element:"".concat(o,"_ICON"),display:"flex",color:v?"colorTextWeaker":"colorTextIcon",transition:"transform 170ms ease",height:C,width:C,transform:"\n             ".concat(T?"translateX(".concat(S.space.space10,")"):"translateX(0)","\n             ").concat(E?"rotate(90deg)":"rotate(0deg)")},l.createElement(u.i,{color:"inherit",decorative:!0,size:C})),n))}));S.displayName="StyledDisclosureHeading";var _=function(e){var t=e.children,n=e.as,o=e.element,a=void 0===o?"DISCLOSURE_HEADING":o,c=e.disabled,u=e.focusable,d=(0,i.Z)(e,m),f=l.useContext(g),p=f.disclosure,h=f.variant,v=f.setIsDisabled,y=f.setIsHeadingHovered,b=f.isHeadingHovered,x=f.isDisabled;return l.createElement(s.pJ,(0,r.Z)((0,r.Z)((0,r.Z)({},p),d),{},{as:S,disabled:c,disclosureVariant:h,element:a,focusable:u,renderAs:n,isHovered:b,setIsDisabled:v,setIsHovered:y,isDisabled:x}),t)};_.displayName="DisclosureHeading";var E=(0,f.q)(a.Box),C={borderWidth:"borderWidth10",borderStyle:"solid",borderBottomLeftRadius:"borderRadius20",borderBottomRightRadius:"borderRadius20",borderTop:"none",transition:"border-color 100ms ease-out"},T=(0,r.Z)((0,r.Z)({},C),{},{borderColor:"colorBorderWeaker"}),I=(0,r.Z)((0,r.Z)({},C),{},{borderColor:"colorBorderWeak"}),B=l.forwardRef((function(e,t){var n=e.children,o=e.element,c=void 0===o?"DISCLOSURE_CONTENT":o,u=(e.visible,(0,i.Z)(e,v)),d=l.useContext(g),p=d.disclosure,h=d.variant,m=d.isHeadingHovered,y=d.isDisabled,b=(0,f.q_)({opacity:p.visible?1:0,onRest:p.stopAnimation,config:{mass:1,tension:150,friction:20,duration:100}}).opacity,x={};return"contained"===h&&(x=T,m&&!y&&(x=I)),l.createElement(s.k_,(0,r.Z)((0,r.Z)((0,r.Z)({},p),(0,a.safelySpreadBoxProps)(u)),{},{as:E,element:c,backgroundColor:"colorBackgroundBody",padding:"space50",ref:t,style:{opacity:b}},x),n)}));B.displayName="DisclosureContent"},7198:function(e,t,n){"use strict";n.r(t),n.d(t,{DisplayHeading:function(){return l}});var r=n(1413),o=n(4925),i=n(9132),a=n(2791),s=["element","as","children","display","id","marginBottom","variant"],l=a.forwardRef((function(e,t){var n=e.element,l=void 0===n?"DISPLAY_HEADING":n,c=e.as,u=e.children,d=e.display,f=void 0===d?"block":d,p=e.id,h=e.marginBottom,m=e.variant,v=(0,o.Z)(e,s);return a.createElement(i.Text,(0,r.Z)((0,r.Z)((0,r.Z)({},(0,i.safelySpreadTextProps)(v)),function(e,t){switch(e){case"displayHeading10":return{marginBottom:t||"space170",fontSize:"fontSizeDisplay30",fontWeight:"fontWeightExtrabold",lineHeight:"lineHeightDisplay30"};case"displayHeading30":return{marginBottom:t||"space90",fontSize:"fontSizeDisplay10",fontWeight:"fontWeightExtrabold",lineHeight:"lineHeightDisplay10"};default:return{marginBottom:t||"space130",fontSize:"fontSizeDisplay20",fontWeight:"fontWeightExtrabold",lineHeight:"lineHeightDisplay20"}}}(m,h)),{},{as:c,display:f,element:l,id:p,color:"colorText",fontFamily:"fontFamilyDisplay",variant:m,ref:t}),u)}));l.displayName="DisplayHeading"},2836:function(e,t,n){"use strict";n.r(t),n.d(t,{DisplayPill:function(){return u},DisplayPillGroup:function(){return d}});var r=n(1413),o=n(4925),i=n(1076),a=n(1923),s=n(2791),l=["element"],c=["element"],u=s.forwardRef((function(e,t){var n=e.element,c=void 0===n?"DISPLAY_PILL":n,u=(0,o.Z)(e,l);return s.createElement(a.Box,{as:"li",listStyleType:"none"},s.createElement(a.Box,(0,r.Z)((0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(u)),u.href?(0,i.secureExternalLink)(u.href):{}),{},{ref:t,element:c,as:u.href?"a":"div",alignItems:"center",backgroundColor:"colorBackgroundWeak",borderRadius:"borderRadiusPill",boxShadow:"shadowBorderWeaker",color:"colorTextWeak",columnGap:"space20",cursor:u.href?"pointer":"default",display:"flex",fontSize:"fontSize20",fontWeight:"fontWeightMedium",lineHeight:"lineHeight10",paddingX:"space30",paddingY:"space20",outline:"none",_hover:u.href?{backgroundColor:"colorBackground",boxShadow:"shadowBorder",textDecoration:"none"}:void 0,_focus:{boxShadow:"shadowFocus",textDecoration:"none"}}),u.children))}));u.displayName="DisplayPill";var d=s.forwardRef((function(e,t){var n=e.element,i=void 0===n?"DISPLAY_PILL_GROUP":n,l=(0,o.Z)(e,c);return s.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(l)),{},{element:i,ref:t,as:"ul",margin:"space0",padding:"space0",display:"flex",flexWrap:"wrap",rowGap:"space20",columnGap:"space20"}),l.children)}));d.displayName="DisplayPillGroup"},6811:function(e,t,n){"use strict";n.d(t,{Kb:function(){return Me},M$:function(){return $e},ZP:function(){return Ge}});var r=n(7762),o=n(2791),i=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=function(e,t){return function(){return t||(0,e[l(e)[0]])((t={exports:{}}).exports,t),t.exports}},f=function(e,t,n){return n=null!=e?i(c(e)):{},function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var i,c=(0,r.Z)(l(t));try{var d=function(){var r=i.value;!u.call(e,r)&&r!==n&&a(e,r,{get:function(){return t[r]},enumerable:!(o=s(t,r))||o.enumerable})};for(c.s();!(i=c.n()).done;)d()}catch(f){c.e(f)}finally{c.f()}}return e}(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)},p=d({"../../../node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}),h=d({"../../../node_modules/prop-types/factoryWithThrowingShims.js":function(e,t){var n=p();function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return i.PropTypes=i,i}}}),m=d({"../../../node_modules/prop-types/index.js":function(e,t){t.exports=h()()}}),v=d({"../../../node_modules/downshift/node_modules/react-is/cjs/react-is.production.min.js":function(e){var t,n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,v=60117,g=60129,y=60131;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}"function"==typeof Symbol&&Symbol.for&&(t=Symbol.for,n=t("react.element"),r=t("react.portal"),o=t("react.fragment"),i=t("react.strict_mode"),a=t("react.profiler"),s=t("react.provider"),l=t("react.context"),c=t("react.forward_ref"),u=t("react.suspense"),d=t("react.suspense_list"),f=t("react.memo"),p=t("react.lazy"),h=t("react.block"),m=t("react.server.block"),v=t("react.fundamental"),g=t("react.debug_trace_mode"),y=t("react.legacy_hidden"));var x=s,w=n,k=c,S=o,_=p,E=f,C=r,T=a,I=i,B=u;e.ContextConsumer=l,e.ContextProvider=x,e.Element=w,e.ForwardRef=k,e.Fragment=S,e.Lazy=_,e.Memo=E,e.Portal=C,e.Profiler=T,e.StrictMode=I,e.Suspense=B,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(e){return b(e)===l},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===c},e.isFragment=function(e){return b(e)===o},e.isLazy=function(e){return b(e)===p},e.isMemo=function(e){return b(e)===f},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===i},e.isSuspense=function(e){return b(e)===u},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===a||e===g||e===i||e===u||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===v||e.$$typeof===h||e[0]===m)},e.typeOf=b}}),g=d({"../../../node_modules/downshift/node_modules/react-is/index.js":function(e,t){t.exports=v()}});function y(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var k=f(m());f(g());function S(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function _(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function E(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return _(n.overflowY,t)||_(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function C(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},T.apply(this,arguments)},I=0;function B(e){return"function"==typeof e?e:O}function O(){}function P(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!S(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;S(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){f.push(p);break}null!=p&&p===document.body&&E(p)&&!E(document.documentElement)||null!=p&&E(p,s)&&f.push(p)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,x=y.width,w=y.top,k=y.right,_=y.bottom,T=y.left,I="start"===o||"nearest"===o?w:"end"===o?_:w+b/2,B="center"===i?T+x/2:"end"===i?k:T,O=[],P=0;P<f.length;P++){var R=f[P],A=R.getBoundingClientRect(),M=A.height,N=A.width,D=A.top,L=A.right,j=A.bottom,z=A.left;if("if-needed"===r&&w>=0&&T>=0&&_<=m&&k<=h&&w>=D&&_<=j&&T>=z&&k<=L)return O;var W=getComputedStyle(R),Z=parseInt(W.borderLeftWidth,10),F=parseInt(W.borderTopWidth,10),H=parseInt(W.borderRightWidth,10),U=parseInt(W.borderBottomWidth,10),$=0,G=0,q="offsetWidth"in R?R.offsetWidth-R.clientWidth-Z-H:0,K="offsetHeight"in R?R.offsetHeight-R.clientHeight-F-U:0,V="offsetWidth"in R?0===R.offsetWidth?0:N/R.offsetWidth:0,Y="offsetHeight"in R?0===R.offsetHeight?0:M/R.offsetHeight:0;if(d===R)$="start"===o?I:"end"===o?I-m:"nearest"===o?C(g,g+m,m,F,U,g+I,g+I+b,b):I-m/2,G="start"===i?B:"center"===i?B-h/2:"end"===i?B-h:C(v,v+h,h,Z,H,v+B,v+B+x,x),$=Math.max(0,$+g),G=Math.max(0,G+v);else{$="start"===o?I-D-F:"end"===o?I-j+U+K:"nearest"===o?C(D,j,M,F,U+K,I,I+b,b):I-(D+M/2)+K/2,G="start"===i?B-z-Z:"center"===i?B-(z+N/2)+q/2:"end"===i?B-L+H+q:C(z,L,N,Z,H+q,B,B+x,x);var X=R.scrollLeft,J=R.scrollTop;I+=J-($=Math.max(0,Math.min(J+$/Y,R.scrollHeight-M/Y+K))),B+=X-(G=Math.max(0,Math.min(X+G/V,R.scrollWidth-N/V+q)))}O.push({el:R,top:$,left:G})}return O}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function R(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function A(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return o.cancel=r,o}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function D(){return String(I++)}function L(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function j(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}var z=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function W(e){void 0===e&&(e={});var t={};return z.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function Z(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=F(t,r)?t[r]:e[r],n}),{})}function F(e,t){return void 0!==e[t]}function H(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function U(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var s=$(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function $(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return o?e>0?$(1,0,n,r,!1):$(-1,n-1,n,r,!1):-1}function G(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(R(t,e,n)||r&&R(t,n.document.activeElement,n))}))}var q=A((function(e){V(e).textContent=""}),500);function K(e,t){var n=V(t);!e||(n.textContent=e,q(t))}function V(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Y=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16}),X=["refKey","ref"],J=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Q=["onKeyDown","onBlur","onChange","onInput","onChangeText"],ee=["refKey","ref"],te=["onMouseMove","onMouseDown","onClick","onPress","index","item"],ne=function(){var e=function(e){var t,n;function r(t){var n;(n=e.call(this,t)||this).id=n.props.id||"downshift-"+D(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.input=null,n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var r=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==r})),e()}),t);n.timeoutIds.push(r)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=W(t),n.internalSetState(b({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,r){t=W(t),n.internalSetState(b({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)},n.selectItemAtIndex=function(e,t,r){var o=n.items[e];null!=o&&n.selectItem(o,t,r)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var r,o,i={},a="function"==typeof e;return!a&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,b({},n.getStateAndHelpers(),e)),n.setState((function(t){t=n.getState(t);var s=a?e(t):e;s=n.props.stateReducer(t,s),r=s.hasOwnProperty("selectedItem");var l={},c={};return r&&s.selectedItem!==t.selectedItem&&(o=s.selectedItem),s.type=s.type||0,Object.keys(s).forEach((function(e){t[e]!==s[e]&&(i[e]=s[e]),"type"!==e&&(c[e]=s[e],F(n.props,e)||(l[e]=s[e]))})),a&&s.hasOwnProperty("inputValue")&&n.props.onInputValueChange(s.inputValue,b({},n.getStateAndHelpers(),s)),l}),(function(){B(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),r&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==o&&n.props.onChange(o,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,s=o.ref,l=y(o,X),c=(void 0===t?{}:t).suppressRefError,u=void 0!==c&&c;n.getRootProps.called=!0,n.getRootProps.refKey=a,n.getRootProps.suppressRefError=u;var d=n.getState().isOpen;return b(((r={})[a]=N(s,n.rootRef),r.role="combobox",r["aria-expanded"]=d,r["aria-haspopup"]="listbox",r["aria-owns"]=d?n.menuId:null,r["aria-labelledby"]=n.labelId,r),l)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:4})}else this.internalSetState({isOpen:!0,type:4},(function(){var e=t.getItemCount();if(e>0){var n=U(1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:4})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:3})}else this.internalSetState({isOpen:!0,type:3},(function(){var e=t.getItemCount();if(e>0){var n=U(-1,t.getState().highlightedIndex,e,(function(e){return t.getItemNodeFromIndex(e)}));t.setHighlightedIndex(n,{type:3})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&null!=r){e.preventDefault();var o=this.items[r],i=this.getItemNodeFromIndex(r);if(null==o||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}}},Escape:function(e){e.preventDefault(),this.reset(b({type:5},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=b({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:12})}}),n.inputKeyDownHandlers=b({},n.keyDownHandlers,{Home:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=$(1,0,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:7})}}},End:function(e){var t=this,n=this.getState().isOpen;if(n){e.preventDefault();var r=this.getItemCount();if(!(r<=0)&&n){var o=$(-1,r-1,r,(function(e){return t.getItemNodeFromIndex(e)}),!1);this.setHighlightedIndex(o,{type:8})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,r=t.onClick;t.onPress;var o=t.onKeyDown,i=t.onKeyUp,a=t.onBlur,s=y(t,J),l=n.getState().isOpen,c={onClick:M(r,n.buttonHandleClick),onKeyDown:M(o,n.buttonHandleKeyDown),onKeyUp:M(i,n.buttonHandleKeyUp),onBlur:M(a,n.buttonHandleBlur)};return b({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},s.disabled?{}:c,s)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=H(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(x(n),e)},n.buttonHandleClick=function(e){e.preventDefault(),n.props.environment.document.activeElement===n.props.environment.document.body&&e.target.focus(),n.internalSetTimeout((function(){return n.toggleMenu({type:13})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){!n.isMouseDown&&(null==n.props.environment.document.activeElement||n.props.environment.document.activeElement.id!==n.inputId)&&n.props.environment.document.activeElement!==t&&n.reset({type:14})}))},n.getLabelProps=function(e){return b({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,r=t.onKeyDown,o=t.onBlur,i=t.onChange,a=t.onInput;t.onChangeText;var s=y(t,Q),l={};var c,u=n.getState(),d=u.inputValue,f=u.isOpen,p=u.highlightedIndex;s.disabled||((c={}).onChange=M(i,a,n.inputHandleChange),c.onKeyDown=M(r,n.inputHandleKeyDown),c.onBlur=M(o,n.inputHandleBlur),l=c);return b({"aria-autocomplete":"list","aria-activedescendant":f&&"number"==typeof p&&p>=0?n.getItemId(p):null,"aria-controls":f?n.menuId:null,"aria-labelledby":n.labelId,autoComplete:"off",value:d,id:n.inputId},l,s)},n.inputHandleKeyDown=function(e){var t=H(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(x(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);!n.isMouseDown&&!e&&n.reset({type:10})}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var r,o=void 0===e?{}:e,i=o.refKey,a=void 0===i?"ref":i,s=o.ref,l=y(o,ee),c=(void 0===t?{}:t).suppressRefError,u=void 0!==c&&c;return n.getMenuProps.called=!0,n.getMenuProps.refKey=a,n.getMenuProps.suppressRefError=u,b(((r={})[a]=N(s,n.menuRef),r.role="listbox",r["aria-labelledby"]=l&&l["aria-label"]?null:n.labelId,r.id=n.menuId,r),l)},n.getItemProps=function(e){var t,r=void 0===e?{}:e,o=r.onMouseMove,i=r.onMouseDown,a=r.onClick;r.onPress;var s=r.index,l=r.item,c=void 0===l?void 0:l,u=y(r,te);void 0===s?(n.items.push(c),s=n.items.indexOf(c)):n.items[s]=c;var d=a,f=((t={onMouseMove:M(o,(function(){s!==n.getState().highlightedIndex&&(n.setHighlightedIndex(s,{type:2}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:M(i,(function(e){e.preventDefault()}))}).onClick=M(d,(function(){n.selectItemAtIndex(s,{type:9})})),t),p=u.disabled?{onMouseDown:f.onMouseDown}:f;return b({id:n.getItemId(s),role:"option","aria-selected":n.getState().highlightedIndex===s},p,u)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=W(e),n.internalSetState((function(t){var r=t.selectedItem;return b({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=W(e),n.internalSetState((function(t){var r=t.isOpen;return b({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;o&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),B(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=A((function(){var e=n.getState(),t=n.items[e.highlightedIndex],r=n.getItemCount(),o=n.props.getA11yStatusMessage(b({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r,K(o,n.props.environment.document)}),200);var r=n.props,o=r.defaultHighlightedIndex,i=r.initialHighlightedIndex,a=void 0===i?o:i,s=r.defaultIsOpen,l=r.initialIsOpen,c=void 0===l?s:l,u=r.initialInputValue,d=void 0===u?"":u,f=r.initialSelectedItem,p=void 0===f?null:f,h=n.getState({highlightedIndex:a,isOpen:c,inputValue:d,selectedItem:p});return null!=h.selectedItem&&void 0===n.props.initialInputValue&&(h.inputValue=n.props.itemToString(h.selectedItem)),n.state=h,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,w(t,n);var i=r.prototype;return i.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},i.getState=function(e){return void 0===e&&(e=this.state),Z(e,this.props)},i.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},i.getItemNodeFromIndex=function(e){return this.props.environment.document.getElementById(this.getItemId(e))},i.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},i.moveHighlightedIndex=function(e,t){var n=this,r=this.getItemCount(),o=this.getState().highlightedIndex;if(r>0){var i=U(e,o,r,(function(e){return n.getItemNodeFromIndex(e)}));this.setHighlightedIndex(i,t)}},i.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,l=this.getToggleButtonProps,c=this.getLabelProps,u=this.getMenuProps,d=this.getInputProps,f=this.getItemProps,p=this.openMenu,h=this.closeMenu,m=this.toggleMenu,v=this.selectItem,g=this.selectItemAtIndex,y=this.selectHighlightedItem,b=this.setHighlightedIndex,x=this.clearSelection,w=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:c,getMenuProps:u,getInputProps:d,getItemProps:f,reset:this.reset,openMenu:p,closeMenu:h,toggleMenu:m,selectItem:v,selectItemAtIndex:g,selectHighlightedItem:y,setHighlightedIndex:b,clearSelection:x,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}},i.componentDidMount=function(){var e=this,t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!G(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:1},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},r=function(){e.isTouchMove=!1},o=function(){e.isTouchMove=!0},i=function(t){var n=G(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);!e.isTouchMove&&!n&&e.getState().isOpen&&e.reset({type:16},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",r),a.addEventListener("touchmove",o),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",r),a.removeEventListener("touchmove",o),a.removeEventListener("touchend",i)}},i.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,r=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==r},i.componentDidUpdate=function(e,t){F(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},i.componentWillUnmount=function(){this.cleanup()},i.render=function(){var e=j(this.props.children,O);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var t=j(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:function(e){return"string"==typeof e.type}(t)?(0,o.cloneElement)(t,this.getRootProps(function(e){return e.props}(t))):void 0:null},r}(o.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:L,itemToString:function(e){return null==e?"":String(e)},onStateChange:O,onInputValueChange:O,onUserAction:O,onChange:O,onSelect:O,onOuterClick:O,selectedItemChanged:function(e,t){return e!==t},environment:typeof window>"u"?{}:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:P},e.stateChangeTypes=Y,e}(),re=["isInitialMount","highlightedIndex","items","environment"],oe={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function ie(e,t,n){var r=e.props,o=e.type,i={};Object.keys(t).forEach((function(r){(function(e,t,n,r){var o=t.props,i=t.type,a="on"+ue(e)+"Change";o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a](b({type:i},r))})(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange(b({type:o},i))}var ae=A((function(e,t){K(e(),t)}),200),se=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?o.useLayoutEffect:o.useEffect;function le(e){var t=e.id,n=void 0===t?"downshift-"+D():t,r=e.labelId,i=e.menuId,a=e.getItemId,s=e.toggleButtonId,l=e.inputId;return(0,o.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:s||n+"-toggle-button",inputId:l||n+"-input"}).current}function ce(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function ue(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function de(e){var t=(0,o.useRef)(e);return t.current=e,t}function fe(e,t,n){var r=(0,o.useRef)(),i=(0,o.useRef)(),a=(0,o.useCallback)((function(t,n){i.current=n,t=Z(t,n.props);var r=e(t,n);return n.props.stateReducer(t,b({},n,{changes:r}))}),[e]),s=(0,o.useReducer)(a,t),l=s[0],c=s[1],u=de(n),d=(0,o.useCallback)((function(e){return c(b({props:u.current},e))}),[u]),f=i.current;return(0,o.useEffect)((function(){f&&r.current&&r.current!==l&&ie(f,Z(r.current,f.props),l),r.current=l}),[l,n,f]),[l,d]}function pe(e,t,n){var r=fe(e,t,n),o=r[0],i=r[1];return[Z(o,n),i]}var he={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:P,circularNavigation:!1,environment:typeof window>"u"?{}:window};function me(e,t,n){void 0===n&&(n=oe);var r="default"+ue(t);return r in e?e[r]:n[t]}function ve(e,t,n){if(void 0===n&&(n=oe),t in e)return e[t];var r="initial"+ue(t);return r in e?e[r]:me(e,t,n)}function ge(e){var t=ve(e,"selectedItem"),n=ve(e,"isOpen"),r=ve(e,"highlightedIndex"),o=ve(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function ye(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,s=t.selectedItem,l=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):U(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function be(e,t,n,r){var i=(0,o.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,o.useEffect)((function(){var o=function(){i.current.isMouseDown=!0},a=function(o){i.current.isMouseDown=!1,e&&!G(o.target,t.map((function(e){return e.current})),n)&&r()},s=function(){i.current.isTouchMove=!1},l=function(){i.current.isTouchMove=!0},c=function(o){e&&!i.current.isTouchMove&&!G(o.target,t.map((function(e){return e.current})),n,!1)&&r()};return n.addEventListener("mousedown",o),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",o),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),i}var xe=function(){return O};function we(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,s=n.environment,l=y(n,re);(0,o.useEffect)((function(){r||ae((function(){return e(b({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},l))}),s.document)}),t)}function ke(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,s=e.scrollIntoView,l=(0,o.useRef)(!0);return se((function(){t<0||!n||!Object.keys(r.current).length||(!1===l.current?l.current=!0:s(i(t),a))}),[t]),l}var Se=O;function _e(e,t,n){var r,o=t.type,i=t.props;switch(o){case n.ItemMouseMove:r={highlightedIndex:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:ye(i,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:ye(i,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:me(i,"highlightedIndex"),isOpen:me(i,"isOpen"),selectedItem:me(i,"selectedItem"),inputValue:me(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return b({},e,r)}k.default.array.isRequired,k.default.func,k.default.func,k.default.func,k.default.bool,k.default.number,k.default.number,k.default.number,k.default.bool,k.default.bool,k.default.bool,k.default.any,k.default.any,k.default.any,k.default.string,k.default.string,k.default.string,k.default.func,k.default.string,k.default.func,k.default.func,k.default.func,k.default.func,k.default.func,k.default.shape({addEventListener:k.default.func,removeEventListener:k.default.func,document:k.default.shape({getElementById:k.default.func,activeElement:k.default.any,body:k.default.any})});T(T({},he),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}}),Object.freeze({__proto__:null,MenuKeyDownArrowDown:0,MenuKeyDownArrowUp:1,MenuKeyDownEscape:2,MenuKeyDownHome:3,MenuKeyDownEnd:4,MenuKeyDownEnter:5,MenuKeyDownSpaceButton:6,MenuKeyDownCharacter:7,MenuBlur:8,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:11,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:13,ToggleButtonKeyDownArrowUp:14,ToggleButtonKeyDownCharacter:15,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:20,FunctionSetInputValue:21,FunctionReset:22});var Ee=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownEnter:5,InputChange:6,InputBlur:7,MenuMouseLeave:8,ItemMouseMove:9,ItemClick:10,ToggleButtonClick:11,FunctionToggleMenu:12,FunctionOpenMenu:13,FunctionCloseMenu:14,FunctionSetHighlightedIndex:15,FunctionSelectItem:16,FunctionSetInputValue:17,FunctionReset:18,ControlledPropUpdatedSelectedItem:19});k.default.array.isRequired,k.default.func,k.default.func,k.default.func,k.default.bool,k.default.number,k.default.number,k.default.number,k.default.bool,k.default.bool,k.default.bool,k.default.any,k.default.any,k.default.any,k.default.string,k.default.string,k.default.string,k.default.string,k.default.string,k.default.string,k.default.func,k.default.string,k.default.string,k.default.func,k.default.func,k.default.func,k.default.func,k.default.func,k.default.func,k.default.shape({addEventListener:k.default.func,removeEventListener:k.default.func,document:k.default.shape({getElementById:k.default.func,activeElement:k.default.any,body:k.default.any})});var Ce=O,Te=b({},he,{getA11yStatusMessage:L,circularNavigation:!0});function Ie(e,t){var n,r=t.type,o=t.props,i=t.shiftKey;switch(r){case 10:n={isOpen:me(o,"isOpen"),highlightedIndex:me(o,"highlightedIndex"),selectedItem:o.items[t.index],inputValue:o.itemToString(o.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:U(i?5:1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)}:{highlightedIndex:ye(o,e,1,t.getItemNodeFromIndex),isOpen:o.items.length>=0};break;case 1:n=e.isOpen?{highlightedIndex:U(i?-5:-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,o.circularNavigation)}:{highlightedIndex:ye(o,e,-1,t.getItemNodeFromIndex),isOpen:o.items.length>=0};break;case 5:n=b({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:o.items[e.highlightedIndex],isOpen:me(o,"isOpen"),highlightedIndex:me(o,"highlightedIndex"),inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 2:n=b({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 3:n={highlightedIndex:$(1,0,o.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:$(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,!1)};break;case 7:n=b({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:o.items[e.highlightedIndex],inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 6:n={isOpen:!0,highlightedIndex:me(o,"highlightedIndex"),inputValue:t.inputValue};break;case 16:n={selectedItem:t.selectedItem,inputValue:o.itemToString(t.selectedItem)};break;case 19:n={inputValue:t.inputValue};break;default:return _e(e,t,Ee)}return b({},e,n)}var Be=["onMouseLeave","refKey","ref"],Oe=["item","index","refKey","ref","onMouseMove","onClick","onPress"],Pe=["onClick","onPress","refKey","ref"],Re=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],Ae=["refKey","ref"];function Me(e){void 0===e&&(e={}),Ce(e,Me);var t=b({},Te,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,s=t.environment,l=t.getA11yStatusMessage,c=t.getA11ySelectionMessage,u=t.itemToString,d=function(e){var t=ge(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),b({},t,{inputValue:r})}(t),f=function(e,t,n){var r=(0,o.useRef)(),i=fe(e,t,n),a=i[0],s=i[1];return(0,o.useEffect)((function(){F(n,"selectedItem")&&(r.current!==n.selectedItem&&s({type:19,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)})),[Z(a,n),s]}(Ie,d,t),p=f[0],h=f[1],m=p.isOpen,v=p.highlightedIndex,g=p.selectedItem,x=p.inputValue,w=(0,o.useRef)(null),k=(0,o.useRef)({}),S=(0,o.useRef)(null),_=(0,o.useRef)(null),E=(0,o.useRef)(null),C=(0,o.useRef)(!0),T=le(t),I=(0,o.useRef)(),B=de({state:p,props:t}),O=(0,o.useCallback)((function(e){return k.current[T.getItemId(e)]}),[T]);we(l,[m,v,x,i],b({isInitialMount:C.current,previousResultCount:I.current,items:i,environment:s,itemToString:u},p)),we(c,[g],b({isInitialMount:C.current,previousResultCount:I.current,items:i,environment:s,itemToString:u},p));var P=ke({menuElement:w.current,highlightedIndex:v,isOpen:m,itemRefs:k,scrollIntoView:a,getItemNodeFromIndex:O});Se({isInitialMount:C.current,props:t,state:p}),(0,o.useEffect)((function(){(n||r||m)&&S.current&&S.current.focus()}),[]),(0,o.useEffect)((function(){C.current||(I.current=i.length)}));var R=be(m,[E,w,_],s,(function(){h({type:7,selectItem:!1})})),A=xe();(0,o.useEffect)((function(){C.current=!1}),[]),(0,o.useEffect)((function(){m||(k.current={})}),[m]);var D=(0,o.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),h({type:0,shiftKey:e.shiftKey,getItemNodeFromIndex:O})},ArrowUp:function(e){e.preventDefault(),h({type:1,shiftKey:e.shiftKey,getItemNodeFromIndex:O})},Home:function(e){!B.current.state.isOpen||(e.preventDefault(),h({type:3,getItemNodeFromIndex:O}))},End:function(e){!B.current.state.isOpen||(e.preventDefault(),h({type:4,getItemNodeFromIndex:O}))},Escape:function(){var e=B.current.state;(e.isOpen||e.inputValue||e.selectedItem||e.highlightedIndex>-1)&&h({type:2})},Enter:function(e){var t=B.current.state;!t.isOpen||t.highlightedIndex<0||229===e.which||(e.preventDefault(),h({type:5,getItemNodeFromIndex:O}))}}}),[h,B,O]),L=(0,o.useCallback)((function(e){return b({id:T.labelId,htmlFor:T.inputId},e)}),[T]),j=(0,o.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.onMouseLeave,i=r.refKey,a=void 0===i?"ref":i,s=r.ref,l=y(r,Be),c=(void 0===t?{}:t).suppressRefError;return A("getMenuProps",void 0!==c&&c,a,w),b(((n={})[a]=N(s,(function(e){w.current=e})),n.id=T.menuId,n.role="listbox",n["aria-labelledby"]=T.labelId,n.onMouseLeave=M(o,(function(){h({type:8})})),n),l)}),[h,A,T]),z=(0,o.useCallback)((function(e){var t,n,r=void 0===e?{}:e,o=r.item,i=r.index,a=r.refKey,s=void 0===a?"ref":a,l=r.ref,c=r.onMouseMove,u=r.onClick;r.onPress;var d=y(r,Oe),f=B.current,p=f.props,m=f.state,v=ce(i,o,p.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var g=u;return b(((t={})[s]=N(l,(function(e){e&&(k.current[T.getItemId(v)]=e)})),t.role="option",t["aria-selected"]=""+(v===m.highlightedIndex),t.id=T.getItemId(v),t),!d.disabled&&((n={onMouseMove:M(c,(function(){i!==m.highlightedIndex&&(P.current=!1,h({type:9,index:i}))}))}).onClick=M(g,(function(){h({type:10,index:i}),S.current&&S.current.focus()})),n),d)}),[h,B,P,T]),W=(0,o.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var o=n.refKey,i=void 0===o?"ref":o,a=n.ref,s=y(n,Pe);return b(((t={})[i]=N(a,(function(e){_.current=e})),t.id=T.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&b({},{onClick:M(r,(function(){h({type:11}),!B.current.state.isOpen&&S.current&&S.current.focus()}))}),s)}),[h,B,T]),U=(0,o.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.onKeyDown,i=r.onChange,a=r.onInput,s=r.onBlur;r.onChangeText;var l=r.refKey,c=void 0===l?"ref":l,u=r.ref,d=y(r,Re),f=(void 0===t?{}:t).suppressRefError;A("getInputProps",void 0!==f&&f,c,S);var p,m=B.current.state,v={};d.disabled||((p={}).onChange=M(i,a,(function(e){h({type:6,inputValue:e.target.value})})),p.onKeyDown=M(o,(function(e){var t=H(e);t&&D[t]&&D[t](e)})),p.onBlur=M(s,(function(){m.isOpen&&!R.current.isMouseDown&&h({type:7,selectItem:!0})})),v=p);return b(((n={})[c]=N(u,(function(e){S.current=e})),n.id=T.inputId,n["aria-autocomplete"]="list",n["aria-controls"]=T.menuId,n),m.isOpen&&m.highlightedIndex>-1&&{"aria-activedescendant":T.getItemId(m.highlightedIndex)},{"aria-labelledby":T.labelId,autoComplete:"off",value:m.inputValue},v,d)}),[h,D,B,R,A,T]),$=(0,o.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.refKey,i=void 0===o?"ref":o,a=r.ref,s=y(r,Ae),l=(void 0===t?{}:t).suppressRefError;return A("getComboboxProps",void 0!==l&&l,i,E),b(((n={})[i]=N(a,(function(e){E.current=e})),n.role="combobox",n["aria-haspopup"]="listbox",n["aria-owns"]=T.menuId,n["aria-expanded"]=B.current.state.isOpen,n),s)}),[B,A,T]),G=(0,o.useCallback)((function(){h({type:12})}),[h]),q=(0,o.useCallback)((function(){h({type:14})}),[h]),K=(0,o.useCallback)((function(){h({type:13})}),[h]),V=(0,o.useCallback)((function(e){h({type:15,highlightedIndex:e})}),[h]),Y=(0,o.useCallback)((function(e){h({type:16,selectedItem:e})}),[h]);return{getItemProps:z,getLabelProps:L,getMenuProps:j,getInputProps:U,getComboboxProps:$,getToggleButtonProps:W,toggleMenu:G,openMenu:K,closeMenu:q,setHighlightedIndex:V,setInputValue:(0,o.useCallback)((function(e){h({type:17,inputValue:e})}),[h]),selectItem:Y,reset:(0,o.useCallback)((function(){h({type:18})}),[h]),highlightedIndex:v,isOpen:m,selectedItem:g,inputValue:x}}Me.stateChangeTypes=Ee;var Ne={activeIndex:-1,selectedItems:[]};function De(e,t){return ve(e,t,Ne)}function Le(e,t){return me(e,t,Ne)}function je(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&""!==t.value&&(0!==t.selectionStart||0!==t.selectionEnd))}k.default.array,k.default.array,k.default.array,k.default.func,k.default.func,k.default.func,k.default.number,k.default.number,k.default.number,k.default.func,k.default.func,k.default.string,k.default.string,k.default.shape({addEventListener:k.default.func,removeEventListener:k.default.func,document:k.default.shape({getElementById:k.default.func,activeElement:k.default.any,body:k.default.any})});var ze={itemToString:he.itemToString,stateReducer:he.stateReducer,environment:he.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},We=O,Ze=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});function Fe(e,t){var n,r=t.type,o=t.index,i=t.props,a=t.selectedItem,s=e.activeIndex,l=e.selectedItems;switch(r){case 0:n={activeIndex:o};break;case 4:n={activeIndex:s-1<0?0:s-1};break;case 3:n={activeIndex:s+1>=l.length?-1:s+1};break;case 2:case 1:var c=s;1===l.length?c=-1:s===l.length-1&&(c=l.length-2),n=b({selectedItems:[].concat(l.slice(0,s),l.slice(s+1))},{activeIndex:c});break;case 5:n={activeIndex:l.length-1};break;case 6:n={selectedItems:l.slice(0,l.length-1)};break;case 8:n={selectedItems:[].concat(l,[a])};break;case 7:n={activeIndex:-1};break;case 9:var u=s,d=l.indexOf(a);1===l.length?u=-1:d===l.length-1&&(u=l.length-2),n=b({selectedItems:[].concat(l.slice(0,d),l.slice(d+1))},{activeIndex:u});break;case 10:n={selectedItems:t.selectedItems};break;case 11:n={activeIndex:t.activeIndex};break;case 12:n={activeIndex:Le(i,"activeIndex"),selectedItems:Le(i,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return b({},e,n)}var He=["refKey","ref","onClick","onKeyDown","selectedItem","index"],Ue=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function $e(e){void 0===e&&(e={}),We(e,$e);var t=b({},ze,e),n=t.getA11yRemovalMessage,r=t.itemToString,i=t.environment,a=t.keyNavigationNext,s=t.keyNavigationPrevious,l=pe(Fe,function(e){return{activeIndex:De(e,"activeIndex"),selectedItems:De(e,"selectedItems")}}(t),t),c=l[0],u=l[1],d=c.activeIndex,f=c.selectedItems,p=(0,o.useRef)(!0),h=(0,o.useRef)(null),m=(0,o.useRef)(f),v=(0,o.useRef)();v.current=[];var g=de({state:c,props:t});(0,o.useEffect)((function(){if(!p.current){if(f.length<m.current.length){var e=m.current.find((function(e){return f.indexOf(e)<0}));K(n({itemToString:r,resultCount:f.length,removedSelectedItem:e,activeIndex:d,activeSelectedItem:f[d]}),i.document)}m.current=f}}),[f.length]),(0,o.useEffect)((function(){p.current||(-1===d&&h.current?h.current.focus():v.current[d]&&v.current[d].focus())}),[d]),Se({isInitialMount:p.current,props:t,state:c});var x=xe();(0,o.useEffect)((function(){p.current=!1}),[]);var w=(0,o.useMemo)((function(){var e;return(e={})[s]=function(){u({type:4})},e[a]=function(){u({type:3})},e.Delete=function(){u({type:1})},e.Backspace=function(){u({type:2})},e}),[u,a,s]),k=(0,o.useMemo)((function(){var e;return(e={})[s]=function(e){je(e)&&u({type:5})},e.Backspace=function(e){je(e)&&u({type:6})},e}),[u,s]);return{getSelectedItemProps:(0,o.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.refKey,o=void 0===r?"ref":r,i=n.ref,a=n.onClick,s=n.onKeyDown,l=n.selectedItem,c=n.index,d=y(n,He),f=g.current.state;if(ce(c,l,f.selectedItems)<0)throw new Error("Pass either selectedItem or index in getSelectedItemProps!");return b(((t={})[o]=N(i,(function(e){e&&v.current.push(e)})),t.tabIndex=c===f.activeIndex?0:-1,t.onClick=M(a,(function(){u({type:0,index:c})})),t.onKeyDown=M(s,(function(e){var t=H(e);t&&w[t]&&w[t](e)})),t),d)}),[u,g,w]),getDropdownProps:(0,o.useCallback)((function(e,t){var n,r=void 0===e?{}:e,o=r.refKey,i=void 0===o?"ref":o,a=r.ref,s=r.onKeyDown,l=r.onClick,c=r.preventKeyAction,d=void 0!==c&&c,f=y(r,Ue),p=(void 0===t?{}:t).suppressRefError;x("getDropdownProps",void 0!==p&&p,i,h);return b(((n={})[i]=N(a,(function(e){e&&(h.current=e)})),n),!d&&{onKeyDown:M(s,(function(e){var t=H(e);t&&k[t]&&k[t](e)})),onClick:M(l,(function(){u({type:7})}))},f)}),[u,k,x]),addSelectedItem:(0,o.useCallback)((function(e){u({type:8,selectedItem:e})}),[u]),removeSelectedItem:(0,o.useCallback)((function(e){u({type:9,selectedItem:e})}),[u]),setSelectedItems:(0,o.useCallback)((function(e){u({type:10,selectedItems:e})}),[u]),setActiveIndex:(0,o.useCallback)((function(e){u({type:11,activeIndex:e})}),[u]),reset:(0,o.useCallback)((function(){u({type:12})}),[u]),selectedItems:f,activeIndex:d}}$e.stateChangeTypes=Ze;var Ge=ne},8427:function(e,t,n){"use strict";n.r(t),n.d(t,{EditableCodeBlock:function(){return Se},EditableCodeBlockHeader:function(){return xe},EditableCodeBlockWrapper:function(){return be}});var r=n(1413),o=n(4925),i=n(1923),a=n(7666),s=n(2791),l=n(885);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(o[n]=e[n]))}return o}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}function y(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}function b(e){return{}.toString.call(e).includes("Object")}function x(e){return"function"==typeof e}var w=y((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),k={changes:function(e,t){return b(t)||w("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&w("changeField"),t},selector:function(e){x(e)||w("selectorType")},handler:function(e){x(e)||b(e)||w("handlerType"),b(e)&&Object.values(e).some((function(e){return!x(e)}))&&w("handlersType")},initial:function(e){var t;e||w("initialIsRequired"),b(e)||w("initialType"),t=e,!Object.keys(t).length&&w("initialContent")}};function S(e,t){return x(t)?t(e.current):t}function _(e,t){return e.current=v(v({},e.current),t),t}function E(e,t,n){return x(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}var C={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k.initial(e),k.handler(t);var n={current:e},r=y(E)(n,t),o=y(_)(n),i=y(k.changes)(e),a=y(S)(n);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return k.selector(e),e(n.current)}function l(e){g(r,o,i,a)(e)}return[s,l]}},T=C,I={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};var B=function(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}};var O=function(e){return{}.toString.call(e).includes("Object")};var P={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n    You are using deprecated way of configuration.\n\n    Instead of using\n      monaco.config({ urls: { monacoBase: '...' }})\n    use\n      monaco.config({ paths: { vs: '...' }})\n\n    For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n  "},R=B((function(e,t){throw new Error(e[t]||e.default)}))(P),A={config:function(e){return e||R("configIsRequired"),O(e)||R("configType"),e.urls?(console.warn(P.deprecation),{paths:{vs:e.urls.monacoBase}}):e}},M=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};var N=function e(t,n){return Object.keys(n).forEach((function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))})),d(d({},t),n)},D={type:"cancelation",msg:"operation is manually canceled"};var L,j,z=function(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(D):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n},W=T.create({config:I,isInitialized:!1,resolve:null,reject:null,monaco:null}),Z=(j=2,function(e){if(Array.isArray(e))return e}(L=W)||function(e,t){if(!(typeof Symbol>"u")&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{!r&&null!=s.return&&s.return()}finally{if(o)throw i}}return n}}(L,j)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}}(L,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),F=Z[0],H=Z[1];function U(e){return document.body.appendChild(e)}function $(e){var t=F((function(e){return{config:e.config,reject:e.reject}})),n=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function G(){var e=F((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){q(t),e.resolve(t)}),(function(t){e.reject(t)}))}function q(e){F().monaco||H({monaco:e})}var K=new Promise((function(e,t){return H({resolve:e,reject:t})})),V={config:function(e){var t=A.config(e),n=t.monaco,r=f(t,["monaco"]);H((function(e){return{config:N(e.config,r),monaco:n}}))},init:function(){var e=F((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(H({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),z(K);if(window.monaco&&window.monaco.editor)return q(window.monaco),e.resolve(window.monaco),z(K);M(U,$)(G)}return z(K)},__getMonacoInstance:function(){return F((function(e){return e.monaco}))}},Y={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},X={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var J=function(e){var t=e.children;return s.createElement("div",{style:X.container},t)};var Q=function(e){var t=e.width,n=e.height,o=e.isEditorReady,i=e.loading,a=e._ref,l=e.className,c=e.wrapperProps;return s.createElement("section",(0,r.Z)({style:(0,r.Z)((0,r.Z)({},Y.wrapper),{},{width:t,height:n})},c),!o&&s.createElement(J,null,i),s.createElement("div",{ref:a,style:(0,r.Z)((0,r.Z)({},Y.fullWidth),!o&&Y.hide),className:l}))},ee=(0,s.memo)(Q);var te=function(e){(0,s.useEffect)(e,[])};var ne=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=(0,s.useRef)(!0);(0,s.useEffect)(r.current||!n?function(){r.current=!1}:e,t)};function re(){}function oe(e,t,n,r){return function(e,t){return e.editor.getModel(ie(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?ie(e,r):void 0)}(e,t,n,r)}function ie(e,t){return e.Uri.parse(t)}var ae=function(e){var t=e.original,n=e.modified,o=e.language,i=e.originalLanguage,a=e.modifiedLanguage,c=e.originalModelPath,u=e.modifiedModelPath,d=e.keepCurrentOriginalModel,f=void 0!==d&&d,p=e.keepCurrentModifiedModel,h=void 0!==p&&p,m=e.theme,v=void 0===m?"light":m,g=e.loading,y=void 0===g?"Loading...":g,b=e.options,x=void 0===b?{}:b,w=e.height,k=void 0===w?"100%":w,S=e.width,_=void 0===S?"100%":S,E=e.className,C=e.wrapperProps,T=void 0===C?{}:C,I=e.beforeMount,B=void 0===I?re:I,O=e.onMount,P=void 0===O?re:O,R=(0,s.useState)(!1),A=(0,l.Z)(R,2),M=A[0],N=A[1],D=(0,s.useState)(!0),L=(0,l.Z)(D,2),j=L[0],z=L[1],W=(0,s.useRef)(null),Z=(0,s.useRef)(null),F=(0,s.useRef)(null),H=(0,s.useRef)(P),U=(0,s.useRef)(B),$=(0,s.useRef)(!1);te((function(){var e=V.init();return e.then((function(e){return(Z.current=e)&&z(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return W.current?function(){var e,t,n,r,o=null===(e=W.current)||void 0===e?void 0:e.getModel();f||null!==o&&void 0!==o&&null!==(t=o.original)&&void 0!==t&&t.dispose(),h||null!==o&&void 0!==o&&null!==(n=o.modified)&&void 0!==n&&n.dispose(),null===(r=W.current)||void 0===r||r.dispose()}():e.cancel()}})),ne((function(){var e=W.current.getModifiedEditor();e.getOption(Z.current.editor.EditorOption.readOnly)?e.setValue(n||""):n!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[n],M),ne((function(){var e,n;null===(e=W.current)||void 0===e||null===(n=e.getModel())||void 0===n||n.original.setValue(t||"")}),[t],M),ne((function(){var e=W.current.getModel(),t=e.original,n=e.modified;Z.current.editor.setModelLanguage(t,i||o||"text"),Z.current.editor.setModelLanguage(n,a||o||"text")}),[o,i,a],M),ne((function(){var e;null===(e=Z.current)||void 0===e||e.editor.setTheme(v)}),[v],M),ne((function(){var e;null===(e=W.current)||void 0===e||e.updateOptions(x)}),[x],M);var G=(0,s.useCallback)((function(){var e;if(Z.current){U.current(Z.current);var r=oe(Z.current,t||"",i||o||"text",c||""),s=oe(Z.current,n||"",a||o||"text",u||"");null===(e=W.current)||void 0===e||e.setModel({original:r,modified:s})}}),[o,n,a,t,i,c,u]),q=(0,s.useCallback)((function(){var e;!$.current&&F.current&&(W.current=Z.current.editor.createDiffEditor(F.current,(0,r.Z)({automaticLayout:!0},x)),G(),null!==(e=Z.current)&&void 0!==e&&e.editor.setTheme(v),N(!0),$.current=!0)}),[x,v,G]);return(0,s.useEffect)((function(){M&&H.current(W.current,Z.current)}),[M]),(0,s.useEffect)((function(){!j&&!M&&q()}),[j,M,q]),ne((function(){if(W.current&&Z.current){var e=W.current.getOriginalEditor(),n=oe(Z.current,t||"",i||o||"text",c||"");n!==e.getModel()&&e.setModel(n)}}),[c],M),ne((function(){if(W.current&&Z.current){var e=W.current.getModifiedEditor(),t=oe(Z.current,n||"",a||o||"text",u||"");t!==e.getModel()&&e.setModel(t)}}),[u],M),s.createElement(ee,{width:_,height:k,isEditorReady:M,loading:y,_ref:F,className:E,wrapperProps:T})};(0,s.memo)(ae);var se=function(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e}),[e]),t.current},le=new Map;var ce=function(e){var t=e.defaultValue,n=e.defaultLanguage,o=e.defaultPath,i=e.value,a=e.language,c=e.path,u=e.theme,d=void 0===u?"light":u,f=e.line,p=e.loading,h=void 0===p?"Loading...":p,m=e.options,v=void 0===m?{}:m,g=e.overrideServices,y=void 0===g?{}:g,b=e.saveViewState,x=void 0===b||b,w=e.keepCurrentModel,k=void 0!==w&&w,S=e.width,_=void 0===S?"100%":S,E=e.height,C=void 0===E?"100%":E,T=e.className,I=e.wrapperProps,B=void 0===I?{}:I,O=e.beforeMount,P=void 0===O?re:O,R=e.onMount,A=void 0===R?re:R,M=e.onChange,N=e.onValidate,D=void 0===N?re:N,L=(0,s.useState)(!1),j=(0,l.Z)(L,2),z=j[0],W=j[1],Z=(0,s.useState)(!0),F=(0,l.Z)(Z,2),H=F[0],U=F[1],$=(0,s.useRef)(null),G=(0,s.useRef)(null),q=(0,s.useRef)(null),K=(0,s.useRef)(A),Y=(0,s.useRef)(P),X=(0,s.useRef)(),J=(0,s.useRef)(i),Q=se(c),ie=(0,s.useRef)(!1),ae=(0,s.useRef)(!1);te((function(){var e=V.init();return e.then((function(e){return($.current=e)&&U(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return G.current?function(){var e,t;null!==(e=X.current)&&void 0!==e&&e.dispose(),k?x&&le.set(c,G.current.saveViewState()):null===(t=G.current.getModel())||void 0===t||t.dispose(),G.current.dispose()}():e.cancel()}})),ne((function(){var e,r,s,l,u=oe($.current,t||i||"",n||a||"",c||o||"");u!==(null===(e=G.current)||void 0===e?void 0:e.getModel())&&(x&&le.set(Q,null===(r=G.current)||void 0===r?void 0:r.saveViewState()),null!==(s=G.current)&&void 0!==s&&s.setModel(u),x&&(null===(l=G.current)||void 0===l||l.restoreViewState(le.get(c))))}),[c],z),ne((function(){var e;null===(e=G.current)||void 0===e||e.updateOptions(v)}),[v],z),ne((function(){!G.current||void 0===i||(G.current.getOption($.current.editor.EditorOption.readOnly)?G.current.setValue(i):i!==G.current.getValue()&&(ae.current=!0,G.current.executeEdits("",[{range:G.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),G.current.pushUndoStop(),ae.current=!1))}),[i],z),ne((function(){var e,t,n=null===(e=G.current)||void 0===e?void 0:e.getModel();n&&a&&(null===(t=$.current)||void 0===t||t.editor.setModelLanguage(n,a))}),[a],z),ne((function(){var e;void 0!==f&&(null===(e=G.current)||void 0===e||e.revealLine(f))}),[f],z),ne((function(){var e;null===(e=$.current)||void 0===e||e.editor.setTheme(d)}),[d],z);var ce=(0,s.useCallback)((function(){if(q.current&&$.current&&!ie.current){var e;Y.current($.current);var s=c||o,l=oe($.current,i||t||"",n||a||"",s||"");G.current=null===(e=$.current)||void 0===e?void 0:e.editor.create(q.current,(0,r.Z)({model:l,automaticLayout:!0},v),y),x&&G.current.restoreViewState(le.get(s)),$.current.editor.setTheme(d),W(!0),ie.current=!0}}),[t,n,o,i,a,c,v,y,x,d]);return(0,s.useEffect)((function(){z&&K.current(G.current,$.current)}),[z]),(0,s.useEffect)((function(){!H&&!z&&ce()}),[H,z,ce]),J.current=i,(0,s.useEffect)((function(){var e,t;z&&M&&(null!==(e=X.current)&&void 0!==e&&e.dispose(),X.current=null===(t=G.current)||void 0===t?void 0:t.onDidChangeModelContent((function(e){ae.current||M(G.current.getValue(),e)})))}),[z,M]),(0,s.useEffect)((function(){if(z){var e=$.current.editor.onDidChangeMarkers((function(e){var t,n=null===(t=G.current.getModel())||void 0===t?void 0:t.uri;if(n&&e.find((function(e){return e.path===n.path}))){var r=$.current.editor.getModelMarkers({resource:n});null===D||void 0===D||D(r)}}));return function(){null===e||void 0===e||e.dispose()}}return function(){}}),[z,D]),s.createElement(ee,{width:_,height:C,isEditorReady:z,loading:h,_ref:q,className:T,wrapperProps:B})},ue=(0,s.memo)(ce),de={base:"vs-dark",inherit:!0,colors:{contrastBorder:"#122d42",focusBorder:"#122d42",foreground:"#d6deeb","widget.shadow":"#011627","selection.background":"#4373c2",errorForeground:"#EF5350","button.background":"#7e57c2cc","button.foreground":"#ffffffcc","button.hoverBackground":"#7e57c2","dropdown.background":"#011627","dropdown.border":"#5f7e97","dropdown.foreground":"#ffffffcc","input.background":"#0b253a","input.border":"#5f7e97","input.foreground":"#ffffffcc","input.placeholderForeground":"#5f7e97","inputOption.activeBorder":"#ffffffcc","punctuation.definition.generic.begin.html":"#ef5350f2","inputValidation.errorBackground":"#AB0300F2","inputValidation.errorBorder":"#EF5350","inputValidation.infoBackground":"#00589EF2","inputValidation.infoBorder":"#64B5F6","inputValidation.warningBackground":"#675700F2","inputValidation.warningBorder":"#FFCA28","scrollbar.shadow":"#010b14","scrollbarSlider.activeBackground":"#084d8180","scrollbarSlider.background":"#084d8180","scrollbarSlider.hoverBackground":"#084d8180","badge.background":"#5f7e97","badge.foreground":"#ffffff","progress.background":"#7e57c2","breadcrumb.foreground":"#A599E9","breadcrumb.focusForeground":"#ffffff","breadcrumb.activeSelectionForeground":"#FFFFFF","breadcrumbPicker.background":"#001122","list.activeSelectionBackground":"#234d708c","list.activeSelectionForeground":"#ffffff","list.invalidItemForeground":"#975f94","list.dropBackground":"#011627","list.focusBackground":"#010d18","list.focusForeground":"#ffffff","list.highlightForeground":"#ffffff","list.hoverBackground":"#011627","list.hoverForeground":"#ffffff","list.inactiveSelectionBackground":"#0e293f","list.inactiveSelectionForeground":"#5f7e97","activityBar.background":"#011627","activityBar.dropBackground":"#5f7e97","activityBar.foreground":"#5f7e97","activityBar.border":"#011627","activityBarBadge.background":"#44596b","activityBarBadge.foreground":"#ffffff","sideBar.background":"#011627","sideBar.foreground":"#89a4bb","sideBar.border":"#011627","sideBarTitle.foreground":"#5f7e97","sideBarSectionHeader.background":"#011627","sideBarSectionHeader.foreground":"#5f7e97","editorGroup.emptyBackground":"#011627","editorGroup.border":"#011627","editorGroup.dropBackground":"#7e57c273","editorGroupHeader.noTabsBackground":"#011627","editorGroupHeader.tabsBackground":"#011627","editorGroupHeader.tabsBorder":"#262A39","tab.activeBackground":"#0b2942","tab.activeForeground":"#d2dee7","tab.border":"#272B3B","tab.activeBorder":"#262A39","tab.unfocusedActiveBorder":"#262A39","tab.inactiveBackground":"#01111d","tab.inactiveForeground":"#5f7e97","tab.unfocusedActiveForeground":"#5f7e97","tab.unfocusedInactiveForeground":"#5f7e97","editor.background":"#011627","editor.foreground":"#d6deeb","editorLineNumber.foreground":"#728ea6","editorLineNumber.activeForeground":"#C5E4FD","editorCursor.foreground":"#80a4c2","editor.selectionBackground":"#1d3b53","editor.selectionHighlightBackground":"#5f7e9779","editor.inactiveSelectionBackground":"#7e57c25a","editor.wordHighlightBackground":"#f6bbe533","editor.wordHighlightStrongBackground":"#e2a2f433","editor.findMatchBackground":"#5f7e9779","editor.findMatchHighlightBackground":"#1085bb5d","editor.hoverHighlightBackground":"#7e57c25a","editor.lineHighlightBackground":"#0003","editor.rangeHighlightBackground":"#7e57c25a","editorIndentGuide.background":"#5e81ce52","editorIndentGuide.activeBackground":"#7E97AC","editorRuler.foreground":"#5e81ce52","editorCodeLens.foreground":"#5e82ceb4","editorBracketMatch.background":"#5f7e974d","editorOverviewRuler.currentContentForeground":"#7e57c2","editorOverviewRuler.incomingContentForeground":"#7e57c2","editorOverviewRuler.commonContentForeground":"#7e57c2","editorError.foreground":"#EF5350","editorWarning.foreground":"#b39554","editorGutter.background":"#011627","editorGutter.modifiedBackground":"#e2b93d","editorGutter.addedBackground":"#9CCC65","editorGutter.deletedBackground":"#EF5350","diffEditor.insertedTextBackground":"#99b76d23","diffEditor.insertedTextBorder":"#c5e47833","diffEditor.removedTextBackground":"#ef535033","diffEditor.removedTextBorder":"#ef53504d","editorWidget.background":"#021320","editorWidget.border":"#5f7e97","editorSuggestWidget.background":"#2C3043","editorSuggestWidget.border":"#2B2F40","editorSuggestWidget.foreground":"#d6deeb","editorSuggestWidget.highlightForeground":"#ffffff","editorSuggestWidget.selectedBackground":"#5f7e97","editorHoverWidget.background":"#011627","editorHoverWidget.border":"#5f7e97","debugExceptionWidget.background":"#011627","debugExceptionWidget.border":"#5f7e97","editorMarkerNavigation.background":"#0b2942","editorMarkerNavigationError.background":"#EF5350","editorMarkerNavigationWarning.background":"#FFCA28","peekView.border":"#5f7e97","peekViewEditor.background":"#011627","peekViewEditor.matchHighlightBackground":"#7e57c25a","peekViewResult.background":"#011627","peekViewResult.fileForeground":"#5f7e97","peekViewResult.lineForeground":"#5f7e97","peekViewResult.matchHighlightBackground":"#ffffffcc","peekViewResult.selectionBackground":"#2E3250","peekViewResult.selectionForeground":"#5f7e97","peekViewTitle.background":"#011627","peekViewTitleDescription.foreground":"#697098","peekViewTitleLabel.foreground":"#5f7e97","merge.currentHeaderBackground":"#5f7e97","merge.incomingHeaderBackground":"#7e57c25a","panel.background":"#011627","panel.border":"#5f7e97","panelTitle.activeBorder":"#5f7e97","panelTitle.activeForeground":"#ffffffcc","panelTitle.inactiveForeground":"#d6deeb80","statusBar.background":"#011627","statusBar.foreground":"#5f7e97","statusBar.border":"#262A39","statusBar.debuggingBackground":"#202431","statusBar.debuggingBorder":"#1F2330","statusBar.noFolderBackground":"#011627","statusBar.noFolderBorder":"#25293A","statusBarItem.activeBackground":"#202431","statusBarItem.hoverBackground":"#202431","statusBarItem.prominentBackground":"#202431","statusBarItem.prominentHoverBackground":"#202431","titleBar.activeBackground":"#011627","titleBar.activeForeground":"#eeefff","titleBar.inactiveBackground":"#010e1a","notifications.background":"#01111d","notifications.border":"#262a39","notificationCenter.border":"#262a39","notificationToast.border":"#262a39","notifications.foreground":"#ffffffcc","notificationLink.foreground":"#80CBC4","extensionButton.prominentForeground":"#ffffffcc","extensionButton.prominentBackground":"#7e57c2cc","extensionButton.prominentHoverBackground":"#7e57c2","pickerGroup.foreground":"#d1aaff","pickerGroup.border":"#011627","terminal.ansiWhite":"#ffffff","terminal.ansiBlack":"#011627","terminal.ansiBlue":"#82AAFF","terminal.ansiCyan":"#21c7a8","terminal.ansiGreen":"#22da6e","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#EF5350","terminal.ansiYellow":"#c5e478","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightBlack":"#575656","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#7fdbca","terminal.ansiBrightGreen":"#22da6e","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#EF5350","terminal.ansiBrightYellow":"#ffeb95","terminal.selectionBackground":"#1b90dd4d","terminalCursor.background":"#234d70","textCodeBlock.background":"#4f4f4f","debugToolBar.background":"#011627","welcomePage.buttonBackground":"#011627","welcomePage.buttonHoverBackground":"#011627","walkThrough.embeddedEditorBackground":"#011627","gitDecoration.modifiedResourceForeground":"#a2bffc","gitDecoration.deletedResourceForeground":"#EF535090","gitDecoration.untrackedResourceForeground":"#c5e478ff","gitDecoration.ignoredResourceForeground":"#395a75","gitDecoration.conflictingResourceForeground":"#ffeb95cc","source.elm":"#5f7e97","string.quoted.single.js":"#ffffff","meta.objectliteral.js":"#82AAFF"},rules:[{foreground:"#DCDCAA",token:"entity.name.function"},{foreground:"#DCDCAA",token:"support.function"},{foreground:"#DCDCAA",token:"support.constant.handlebars"},{foreground:"#DCDCAA",token:"source.powershell variable.other.member"},{foreground:"#DCDCAA",token:"entity.name.operator.custom-literal"},{foreground:"#4EC9B0",token:"meta.return-type"},{foreground:"#4EC9B0",token:"support.class"},{foreground:"#4EC9B0",token:"support.type"},{foreground:"#4EC9B0",token:"entity.name.type"},{foreground:"#4EC9B0",token:"entity.name.namespace"},{foreground:"#4EC9B0",token:"entity.other.attribute"},{foreground:"#4EC9B0",token:"entity.name.scope-resolution"},{foreground:"#4EC9B0",token:"entity.name.class"},{foreground:"#4EC9B0",token:"storage.type.numeric.go"},{foreground:"#4EC9B0",token:"storage.type.byte.go"},{foreground:"#4EC9B0",token:"storage.type.boolean.go"},{foreground:"#4EC9B0",token:"storage.type.string.go"},{foreground:"#4EC9B0",token:"storage.type.uintptr.go"},{foreground:"#4EC9B0",token:"storage.type.error.go"},{foreground:"#4EC9B0",token:"storage.type.rune.go"},{foreground:"#4EC9B0",token:"storage.type.cs"},{foreground:"#4EC9B0",token:"storage.type.generic.cs"},{foreground:"#4EC9B0",token:"storage.type.modifier.cs"},{foreground:"#4EC9B0",token:"storage.type.variable.cs"},{foreground:"#4EC9B0",token:"storage.type.annotation.java"},{foreground:"#4EC9B0",token:"storage.type.generic.java"},{foreground:"#4EC9B0",token:"storage.type.java"},{foreground:"#4EC9B0",token:"storage.type.object.array.java"},{foreground:"#4EC9B0",token:"storage.type.primitive.array.java"},{foreground:"#4EC9B0",token:"storage.type.primitive.java"},{foreground:"#4EC9B0",token:"storage.type.token.java"},{foreground:"#4EC9B0",token:"storage.type.groovy"},{foreground:"#4EC9B0",token:"storage.type.annotation.groovy"},{foreground:"#4EC9B0",token:"storage.type.parameters.groovy"},{foreground:"#4EC9B0",token:"storage.type.generic.groovy"},{foreground:"#4EC9B0",token:"storage.type.object.array.groovy"},{foreground:"#4EC9B0",token:"storage.type.primitive.array.groovy"},{foreground:"#4EC9B0",token:"storage.type.primitive.groovy"},{foreground:"#4EC9B0",token:"meta.type.cast.expr"},{foreground:"#4EC9B0",token:"meta.type.new.expr"},{foreground:"#4EC9B0",token:"support.constant.math"},{foreground:"#4EC9B0",token:"support.constant.dom"},{foreground:"#4EC9B0",token:"support.constant.json"},{foreground:"#4EC9B0",token:"entity.other.inherited-class"},{foreground:"#C586C0",token:"keyword.control"},{foreground:"#C586C0",token:"source.cpp keyword.operator.new"},{foreground:"#C586C0",token:"keyword.operator.delete"},{foreground:"#C586C0",token:"keyword.other.using"},{foreground:"#C586C0",token:"keyword.other.operator"},{foreground:"#C586C0",token:"entity.name.operator"},{foreground:"#9CDCFE",token:"variable"},{foreground:"#9CDCFE",token:"meta.definition.variable.name"},{foreground:"#9CDCFE",token:"support.variable"},{foreground:"#9CDCFE",token:"entity.name.variable"},{foreground:"#4FC1FF",token:"variable.other.constant"},{foreground:"#4FC1FF",token:"variable.other.enummember"},{foreground:"#9CDCFE",token:"meta.object-literal.key"},{foreground:"#CE9178",token:"support.constant.property-value"},{foreground:"#CE9178",token:"support.constant.font-name"},{foreground:"#CE9178",token:"support.constant.media-type"},{foreground:"#CE9178",token:"support.constant.media"},{foreground:"#CE9178",token:"constant.other.color.rgb-value"},{foreground:"#CE9178",token:"constant.other.rgb-value"},{foreground:"#CE9178",token:"support.constant.color"},{foreground:"#CE9178",token:"punctuation.definition.group.regexp"},{foreground:"#CE9178",token:"punctuation.definition.group.assertion.regexp"},{foreground:"#CE9178",token:"punctuation.definition.character-class.regexp"},{foreground:"#CE9178",token:"punctuation.character.set.begin.regexp"},{foreground:"#CE9178",token:"punctuation.character.set.end.regexp"},{foreground:"#CE9178",token:"keyword.operator.negation.regexp"},{foreground:"#CE9178",token:"support.other.parenthesis.regexp"},{foreground:"#d16969",token:"constant.character.character-class.regexp"},{foreground:"#d16969",token:"constant.other.character-class.set.regexp"},{foreground:"#d16969",token:"constant.other.character-class.regexp"},{foreground:"#d16969",token:"constant.character.set.regexp"},{foreground:"#DCDCAA",token:"keyword.operator.or.regexp"},{foreground:"#DCDCAA",token:"keyword.control.anchor.regexp"},{foreground:"#d7ba7d",token:"keyword.operator.quantifier.regexp"},{foreground:"#569cd6",token:"constant.character"},{foreground:"#d7ba7d",token:"constant.character.escape"},{foreground:"#C8C8C8",token:"entity.name.label"},{foreground:"#569CD6",token:"constant.language"},{foreground:"#569CD6",token:"entity.name.tag"},{foreground:"#569cd6",token:"storage"}],encodedTokensColors:[]},fe=n(9643),pe=n(7295),he=n(2714),me=["children","element"],ve=["children","element","as"],ge=["onMount","element","lineNumbers","readOnly","folding","indentationGuide","showMinimap","scrollBeyondLastLine","inlineErrorRange","inlineErrorHoverMessage","inlineErrorIsWholeLine","i18nLoadingLabel"],ye=(0,a.iK)(i.Box)((0,a.iv)({backgroundColor:"rgb(1, 22, 39)",borderRadius:"borderRadius20",overflow:"hidden"})),be=s.forwardRef((function(e,t){var n=e.children,a=e.element,l=void 0===a?"EDITABLE_CODE_BLOCK_WRAPPER":a,c=(0,o.Z)(e,me);return s.createElement(ye,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{element:l,ref:t}),n)}));be.displayName="EditableCodeBlockWrapper";var xe=s.forwardRef((function(e,t){var n=e.children,a=e.element,l=void 0===a?"EDITABLE_CODE_BLOCK_HEADER":a,c=e.as,u=void 0===c?"h3":c,d=(0,o.Z)(e,ve);return s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(d)),{},{ref:t,element:l,as:u,backgroundColor:"colorBackgroundInverseStrong",color:"colorTextInverse",paddingY:"space50",paddingX:"space70",margin:"space0",borderTopLeftRadius:"borderRadius20",borderTopRightRadius:"borderRadius20",fontWeight:"fontWeightSemibold",fontSize:"fontSize30",borderBottomWidth:"borderWidth30",borderBottomColor:"colorBorderInverseWeakest",borderBottomStyle:"solid"}),n)}));xe.displayName="EditableCodeBlockHeader";var we=function(e){var t=e.i18nLoadingLabel;return s.createElement(s.Fragment,null,s.createElement(pe.Spinner,{color:"colorTextPrimaryWeak",decorative:!0}),s.createElement(fe.ScreenReaderOnly,null,t))};we.displayName="EditableCodeblockLoadingMessage";var ke={".paste-editable-code-editor-margin-error":{":before":{content:'""',display:"inline-block",position:"relative",left:"2px",width:"16px",height:"16px",background:"url(https://assets.twilio.com/public_assets/paste-assets/1.0.0/icons/editable-codeblock-error.svg) no-repeat center center"}},".paste-editable-code-editor-row-error":{backgroundColor:"rgba(255, 0, 0, 0.3)"}},Se=function(e){var t=e.onMount,n=e.element,l=void 0===n?"EDITABLE_CODE_BLOCK":n,c=e.lineNumbers,u=void 0===c?"on":c,d=e.readOnly,f=void 0!==d&&d,p=e.folding,h=void 0===p||p,m=e.indentationGuide,v=void 0===m||m,g=e.showMinimap,y=void 0!==g&&g,b=e.scrollBeyondLastLine,x=void 0!==b&&b,w=e.inlineErrorRange,k=e.inlineErrorHoverMessage,S=e.inlineErrorIsWholeLine,_=void 0===S||S,E=e.i18nLoadingLabel,C=void 0===E?"Loading code...":E,T=(0,o.Z)(e,ge),I=(0,he.Fg)(),B=s.useMemo((function(){return{lineHeight:20,fontFamily:I.fonts.fontFamilyCode,lineNumbers:u,folding:h,readOnly:f,scrollBeyondLastLine:x,glyphMargin:null!=w,minimap:{enabled:y},guides:{indentation:v}}}),[f,y,h,w,x,v,u,I]),O=s.useMemo((function(){return(0,r.Z)({".monaco-hover-content":{fontFamily:I.fonts.fontFamilyText}},w?ke:{})}),[I,w]),P=s.useCallback((function(e,n){n.editor.defineTheme("paste",de),n.editor.setTheme("paste"),w&&e.createDecorationsCollection([{range:new n.Range(w.startLineNumber,w.startColumn,w.endLineNumber,w.endColumn),options:{isWholeLine:_,className:".paste-editable-code-editor-row-error",hoverMessage:k,glyphMarginClassName:".paste-editable-code-editor-margin-error",glyphMarginHoverMessage:k,overviewRuler:{color:"#b82430",darkColor:"#b82430",position:n.editor.OverviewRulerLane.Right}}}]),null===t||void 0===t||t(e,n)}),[t,k,w,_]);return s.createElement(i.Box,{element:l,borderRadius:"borderRadius10",overflow:"hidden"},s.createElement(a.TL,{styles:O}),s.createElement(ue,(0,r.Z)((0,r.Z)({},T),{},{loading:s.createElement(we,{i18nLoadingLabel:C}),options:B,onMount:P})))};Se.displayName="EditableCodeBlock"},9717:function(e,t,n){"use strict";n.r(t),n.d(t,{ExampleText:function(){return l}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["element","children"],l=a.forwardRef((function(e,t){var n=e.element,l=void 0===n?"EXAMPLE_TEXT":n,c=e.children,u=(0,o.Z)(e,s);return a.createElement(i.Box,{as:"samp",display:"inline-block",element:"".concat(l,"_WRAPPER")},a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(u)),{},{as:"kbd",display:"inline-block",backgroundColor:"colorBackground",fontFamily:"fontFamilyText",fontWeight:"fontWeightMedium",fontSize:"fontSize30",lineHeight:"lineHeight40",borderRadius:"borderRadius20",paddingX:"space30",element:l,ref:t}),c))}));l.displayName="ExampleText"},7758:function(e,t,n){"use strict";n.r(t),n.d(t,{FilePicker:function(){return m},FilePickerButton:function(){return v}});var r=n(1413),o=n(885),i=n(4925),a=n(1923),s=n(4562),l=n(9132),c=n(9628),u=n(2791),d=n(9741),f=["element","accept","id","children","disabled","i18nNoSelectionText","required","onChange"],p=["children","element","disabled"],h=function(e,t,n){return e?"colorTextWeaker":t===n?"colorTextWeak":"colorText"},m=u.forwardRef((function(e,t){var n=e.element,d=void 0===n?"FILEPICKER":n,p=e.accept,m=e.id,v=void 0===m?(0,c.Dt)():m,g=e.children,y=e.disabled,b=void 0!==y&&y,x=e.i18nNoSelectionText,w=void 0===x?"No file uploaded":x,k=e.required,S=void 0!==k&&k,_=e.onChange,E=(0,i.Z)(e,f),C=u.useState(w),T=(0,o.Z)(C,2),I=T[0],B=T[1],O=(0,c.Dt)();return u.createElement(u.Fragment,null,u.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(E)),{},{id:v,ref:t,as:"input",type:"file",accept:p,"aria-disabled":b,disabled:b,"aria-required":S,"aria-describedby":O,size:"size0",border:"none",overflow:"hidden",padding:"space0",margin:"space0",whiteSpace:"nowrap",textTransform:"none",position:"absolute",clip:"rect(0 0 0 0)",onChange:function(e){if(_&&_(e),e.currentTarget.files&&e.currentTarget.files.length>0){var t=e.currentTarget.files[0].name;B(t)}else B(w)}})),u.createElement("label",{htmlFor:v},u.createElement(s.SiblingBox,{element:d,width:"100%",display:"flex",justifyContent:"start",as:"span",type:"file",borderRadius:"borderRadius40",padding:"space20",boxShadow:"shadowBorder",backgroundColor:"colorBackgroundBody",_focusSibling:{borderRadius:"borderRadius40",padding:"space20",boxShadow:"shadowFocus",backgroundColor:"colorBackgroundBody"},_disabledSibling:{backgroundColor:"colorBackground",boxShadow:"shadowBorderWeaker"}},u.cloneElement(g,{disabled:b,element:"".concat(d,"_BUTTON")}),u.createElement(l.Text,{id:O,as:"span",paddingX:"space30",color:h(b,I,w),fontWeight:I===w?"fontWeightNormal":"fontWeightMedium",fontStyle:I===w?"italic":"none",element:"".concat(d,"_TEXT")},I))))}));m.displayName="FilePicker";var v=u.forwardRef((function(e,t){var n=e.children,o=e.element,s=e.disabled,l=(0,i.Z)(e,p);return u.createElement(a.Box,{whiteSpace:"nowrap"},u.createElement(d.Button,(0,r.Z)((0,r.Z)({},l),{},{element:o,ref:t,size:"default",disabled:s,as:"span",type:"button"}),n))}));v.displayName="FilePickerButton"},8534:function(e,t,n){"use strict";n.r(t),n.d(t,{FileUploader:function(){return we},FileUploaderDropzone:function(){return ze},FileUploaderDropzoneText:function(){return We},FileUploaderErrorText:function(){return Ze},FileUploaderHelpText:function(){return ke},FileUploaderItem:function(){return Te},FileUploaderItemDescription:function(){return Oe},FileUploaderItemTitle:function(){return Pe},FileUploaderItemsList:function(){return Ie},FileUploaderLabel:function(){return Se}});var r=n(885),o=n(1413),i=n(4925),a=n(7762),s=n(1923),l=n(9628),c=n(2791),u=n(324),d=n(9114),f=n(9741),p=n(8045),h=n(8015),m=c.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,u=e.title,d=e.decorative,f="DeleteIcon-".concat((0,l.Dt)());if(!d&&null==u)throw new Error("[DeleteIcon]: Missing a title for non-decorative icon.");return c.createElement(h.a,{as:n,display:r,element:i,size:a,color:s,ref:t},c.createElement("svg",{role:"img","aria-hidden":d,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":f},u?c.createElement("title",{id:f},u):null,c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 2c.966 0 1.75.784 1.75 1.75L13.999 5H17.5a.5.5 0 01.09.992L17.5 6h-1.501L16 16.25a1.75 1.75 0 01-1.606 1.744L14.25 18H5.74C4.774 18 4 17.217 4 16.25L3.999 6H2.5a.5.5 0 01-.09-.992L2.5 5h3.499L6 3.75a1.75 1.75 0 011.606-1.744L7.75 2zm2.749 4h-10L5 16.25c0 .383.276.694.64.743l.1.007h8.51a.75.75 0 00.75-.75L14.999 6zM8.5 9a.5.5 0 01.492.41L9 9.5v4a.5.5 0 01-.992.09L8 13.5v-4a.5.5 0 01.5-.5zm3 0a.5.5 0 01.492.41L12 9.5v4a.5.5 0 01-.992.09L11 13.5v-4a.5.5 0 01.5-.5zm.75-6h-4.5a.75.75 0 00-.75.75L6.999 5h6L13 3.75a.75.75 0 00-.648-.743L12.25 3z"})))}));m.displayName="DeleteIcon";var v=n(7088),g=n(7295),y=n(9132),b=c.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,u=e.title,d=e.decorative,f="UploadToCloudIcon-".concat((0,l.Dt)());if(!d&&null==u)throw new Error("[UploadToCloudIcon]: Missing a title for non-decorative icon.");return c.createElement(h.a,{as:n,display:r,element:i,size:a,color:s,ref:t},c.createElement("svg",{role:"img","aria-hidden":d,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":f},u?c.createElement("title",{id:f},u):null,c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 8.5h.012c.02 0 .041.002.062.005L10.5 8.5a.502.502 0 01.284.089l.018.013c.014.01.027.02.04.033l.012.011 2.142 2.143a.5.5 0 01-.637.765l-.07-.058L11 10.207V16a.5.5 0 01-.992.09L10 16v-5.793l-1.29 1.29a.5.5 0 01-.637.057l-.07-.058a.5.5 0 01-.057-.637l.058-.07 2.142-2.143.013-.011a.503.503 0 01.039-.033l-.052.044A.502.502 0 0110.5 8.5zm-.5-5c1.817 0 3.457.968 4.356 2.49l.071.127.073.004a3.746 3.746 0 013.495 3.541L18 9.86c0 1.448-.652 2.465-1.717 3.082a4.246 4.246 0 01-1.554.54l-.164.018H14.5a.5.5 0 01-.09-.992l.09-.008.02.002c.068-.006.202-.027.381-.073a3.44 3.44 0 00.88-.352C16.552 11.631 17 10.931 17 9.86c0-1.5-1.196-2.714-2.693-2.747l-.167.001-.33.012-.14-.297A4.06 4.06 0 0010 4.5c-2.105 0-3.814 1.508-4.035 3.526l-.017.203-.032.54-.536-.074C4.128 8.522 3 9.402 3 10.67c0 .876.36 1.37.997 1.635.312.13.64.186.915.196L6.5 12.5a.5.5 0 01.09.992l-.09.008H5.101a3.625 3.625 0 01-1.489-.272C2.618 12.814 2 11.968 2 10.67c0-1.656 1.28-2.869 2.82-2.987l.184-.009.026-.153c.432-2.255 2.373-3.918 4.746-4.016L10 3.5z"})))}));b.displayName="UploadToCloudIcon";var x=["element","disabled","id","name","required"],w=["children","element"],k=["children","element"],S=["children","fileIcon","element","variant","i18nErrorText","i18nButtonText","i18nLoadingText","onButtonClick"],_=["children","element"],E=["children","element"],C=["children","element"],T=["element","children","acceptedMimeTypes","onInputChange","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDragStart","onDrop"],I=["children","element"],B=["children","element"],O=Object.create,P=Object.defineProperty,R=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,N=Object.prototype.hasOwnProperty,D=function(e,t){return function(){return t||(0,e[A(e)[0]])((t={exports:{}}).exports,t),t.exports}},L=D({"../../../../node_modules/lodash/_isPrototype.js":function(e,t){var n=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}}}),j=D({"../../../../node_modules/lodash/_overArg.js":function(e,t){t.exports=function(e,t){return function(n){return e(t(n))}}}}),z=D({"../../../../node_modules/lodash/_nativeKeys.js":function(e,t){var n=j()(Object.keys,Object);t.exports=n}}),W=D({"../../../../node_modules/lodash/_baseKeys.js":function(e,t){var n=L(),r=z(),o=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return r(e);var t=[];for(var i in Object(e))o.call(e,i)&&"constructor"!=i&&t.push(i);return t}}}),Z=D({"../../../../node_modules/lodash/_freeGlobal.js":function(e,t){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r}}),F=D({"../../../../node_modules/lodash/_root.js":function(e,t){var n=Z(),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();t.exports=o}}),H=D({"../../../../node_modules/lodash/_Symbol.js":function(e,t){var n=F().Symbol;t.exports=n}}),U=D({"../../../../node_modules/lodash/_getRawTag.js":function(e,t){var n=H(),r=Object.prototype,o=r.hasOwnProperty,i=r.toString,a=n?n.toStringTag:void 0;t.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(l){}var s=i.call(e);return r&&(t?e[a]=n:delete e[a]),s}}}),$=D({"../../../../node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}}}),G=D({"../../../../node_modules/lodash/_baseGetTag.js":function(e,t){var n=H(),r=U(),o=$(),i=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?r(e):o(e)}}}),q=D({"../../../../node_modules/lodash/isObject.js":function(e,t){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}}),K=D({"../../../../node_modules/lodash/isFunction.js":function(e,t){var n=G(),r=q();t.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}}),V=D({"../../../../node_modules/lodash/_coreJsData.js":function(e,t){var n=F()["__core-js_shared__"];t.exports=n}}),Y=D({"../../../../node_modules/lodash/_isMasked.js":function(e,t){var n=V(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=function(e){return!!r&&r in e}}}),X=D({"../../../../node_modules/lodash/_toSource.js":function(e,t){var n=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(r){}}return""}}}),J=D({"../../../../node_modules/lodash/_baseIsNative.js":function(e,t){var n=K(),r=Y(),o=q(),i=X(),a=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!o(e)||r(e))&&(n(e)?d:a).test(i(e))}}}),Q=D({"../../../../node_modules/lodash/_getValue.js":function(e,t){t.exports=function(e,t){return null===e||void 0===e?void 0:e[t]}}}),ee=D({"../../../../node_modules/lodash/_getNative.js":function(e,t){var n=J(),r=Q();t.exports=function(e,t){var o=r(e,t);return n(o)?o:void 0}}}),te=D({"../../../../node_modules/lodash/_DataView.js":function(e,t){var n=ee()(F(),"DataView");t.exports=n}}),ne=D({"../../../../node_modules/lodash/_Map.js":function(e,t){var n=ee()(F(),"Map");t.exports=n}}),re=D({"../../../../node_modules/lodash/_Promise.js":function(e,t){var n=ee()(F(),"Promise");t.exports=n}}),oe=D({"../../../../node_modules/lodash/_Set.js":function(e,t){var n=ee()(F(),"Set");t.exports=n}}),ie=D({"../../../../node_modules/lodash/_WeakMap.js":function(e,t){var n=ee()(F(),"WeakMap");t.exports=n}}),ae=D({"../../../../node_modules/lodash/_getTag.js":function(e,t){var n=te(),r=ne(),o=re(),i=oe(),a=ie(),s=G(),l=X(),c="[object Map]",u="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",h=l(n),m=l(r),v=l(o),g=l(i),y=l(a),b=s;(n&&b(new n(new ArrayBuffer(1)))!=p||r&&b(new r)!=c||o&&b(o.resolve())!=u||i&&b(new i)!=d||a&&b(new a)!=f)&&(b=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case h:return p;case m:return c;case v:return u;case g:return d;case y:return f}return t}),t.exports=b}}),se=D({"../../../../node_modules/lodash/isObjectLike.js":function(e,t){t.exports=function(e){return null!=e&&"object"==typeof e}}}),le=D({"../../../../node_modules/lodash/_baseIsArguments.js":function(e,t){var n=G(),r=se();t.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}}}),ce=D({"../../../../node_modules/lodash/isArguments.js":function(e,t){var n=le(),r=se(),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return r(e)&&i.call(e,"callee")&&!a.call(e,"callee")};t.exports=s}}),ue=D({"../../../../node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;t.exports=n}}),de=D({"../../../../node_modules/lodash/isLength.js":function(e,t){t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}}),fe=D({"../../../../node_modules/lodash/isArrayLike.js":function(e,t){var n=K(),r=de();t.exports=function(e){return null!=e&&r(e.length)&&!n(e)}}}),pe=D({"../../../../node_modules/lodash/stubFalse.js":function(e,t){t.exports=function(){return!1}}}),he=D({"../../../../node_modules/lodash/isBuffer.js":function(e,t){var n=F(),r=pe(),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;t.exports=s}}),me=D({"../../../../node_modules/lodash/_baseIsTypedArray.js":function(e,t){var n=G(),r=de(),o=se(),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(e){return o(e)&&r(e.length)&&!!i[n(e)]}}}),ve=D({"../../../../node_modules/lodash/_baseUnary.js":function(e,t){t.exports=function(e){return function(t){return e(t)}}}}),ge=D({"../../../../node_modules/lodash/_nodeUtil.js":function(e,t){var n=Z(),r="object"==typeof e&&e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();t.exports=a}}),ye=D({"../../../../node_modules/lodash/isTypedArray.js":function(e,t){var n=me(),r=ve(),o=ge(),i=o&&o.isTypedArray,a=i?r(i):n;t.exports=a}}),be=D({"../../../../node_modules/lodash/isEmpty.js":function(e,t){var n=W(),r=ae(),o=ce(),i=ue(),a=fe(),s=he(),l=L(),c=ye(),u=Object.prototype.hasOwnProperty;t.exports=function(e){if(null==e)return!0;if(a(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||c(e)||o(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!n(e).length;for(var d in e)if(u.call(e,d))return!1;return!0}}}),xe=c.createContext({}),we=c.forwardRef((function(e,t){var n=e.element,r=void 0===n?"FILE_UPLOADER":n,a=e.disabled,u=e.id,d=e.name,f=e.required,p=void 0!==f&&f,h=(0,i.Z)(e,x),m=u||(0,l.Dt)();return c.createElement(xe.Provider,{value:{disabled:a,id:m,name:d,required:p}},c.createElement(s.Box,(0,o.Z)((0,o.Z)({ref:t,element:r},(0,s.safelySpreadBoxProps)(h)),{},{maxWidth:"size60"}),h.children))}));we.displayName="FileUploader";var ke=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"FILE_UPLOADER_HELP_TEXT":r,l=(0,i.Z)(e,w),d=c.useContext(xe).id;return c.createElement(s.Box,(0,o.Z)((0,o.Z)({ref:t,element:a},(0,s.safelySpreadBoxProps)(l)),{},{id:"".concat(d,"-help-text")}),c.createElement(u.HelpText,{marginTop:"space0"},n))}));ke.displayName="FileUploaderHelpText";var Se=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"FILE_UPLOADER_LABEL":r,s=(0,i.Z)(e,k),l=c.useContext(xe),u=l.id,f=l.disabled,p=l.required;return c.createElement(d.Label,(0,o.Z)({disabled:f,htmlFor:u,element:a,required:p,ref:t},s),n)}));Se.displayName="FileUploaderLabel";var _e=c.createContext({variant:"default"}),Ee={default:{borderColor:"colorBorderWeaker",backgroundColor:"colorBackgroundBody"},loading:{borderColor:"colorBorderWeaker",backgroundColor:"colorBackgroundBody"},error:{borderColor:"colorBorderError",backgroundColor:"colorBackgroundErrorWeakest"}},Ce={default:{color:"colorTextIcon"},loading:{color:"colorTextIcon"},error:{color:"colorTextIconError"}},Te=c.forwardRef((function(e,t){var n=e.children,r=e.fileIcon,a=e.element,l=void 0===a?"FILE_UPLOADER_ITEM":a,u=e.variant,d=void 0===u?"default":u,h=e.i18nErrorText,y=void 0===h?"(error)":h,b=e.i18nButtonText,x=void 0===b?"Remove file":b,w=e.i18nLoadingText,k=void 0===w?"(uploading file)":w,_=e.onButtonClick,E=(0,i.Z)(e,S),C=r;"error"===d&&(C=c.createElement(v.P,{title:y,decorative:!1,element:"".concat(l,"_ERROR_ICON")})),"loading"===d&&(C=c.createElement(g.Spinner,{decorative:!1,title:k,element:"".concat(l,"_SPINNER")}));var T=c.createElement(m,{title:x,decorative:!1,element:"".concat(l,"_DELETE_ICON")});return("loading"===d||"error"===d)&&(T=c.createElement(p.T,{title:x,decorative:!1,element:"".concat(l,"_DISMISS_ICON")})),c.createElement(_e.Provider,{value:{variant:d}},c.createElement(s.Box,(0,o.Z)((0,o.Z)({as:"li",ref:t},(0,s.safelySpreadBoxProps)(E)),{},{element:l,variant:d,listStyleType:"none",borderWidth:"borderWidth10",borderStyle:"solid",borderRadius:"borderRadius30",padding:"space40",display:"grid",gridTemplateColumns:"auto 1fr auto",columnGap:"space40",alignItems:"center"},Ee[d]),c.createElement(s.Box,(0,o.Z)({},Ce[d]),C),c.createElement(s.Box,{display:"flex",flexDirection:"column",rowGap:"space10",element:"".concat(l,"_CONTENT")},n),c.createElement(s.Box,{display:"flex",paddingRight:"space30"},c.createElement(f.Button,{variant:"secondary_icon",size:"reset",onClick:_,element:"".concat(l,"_BUTTON")},T))))}));Te.displayName="FileUploaderItem";var Ie=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"FILE_UPLOADER_ITEMS_LIST":r,l=(0,i.Z)(e,_);return c.createElement(s.Box,(0,o.Z)({ref:t,element:a,as:"ul",margin:"space0",padding:"space0",rowGap:"space30",display:"flex",flexDirection:"column",marginTop:"space40"},(0,s.safelySpreadBoxProps)(l)),n)}));Ie.displayName="FileUploaderItemsList";var Be={default:{color:"colorTextWeak"},loading:{color:"colorTextWeak"},error:{color:"colorTextError"}},Oe=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"FILE_UPLOADER_ITEM_DESCRIPTION":r,s=(0,i.Z)(e,E),l=c.useContext(_e).variant;return c.createElement(y.Text,(0,o.Z)((0,o.Z)({},(0,y.safelySpreadTextProps)(s)),{},{element:a,variant:l,ref:t,as:"div",fontSize:"fontSize20",lineHeight:"lineHeight20"},Be[l]),n)}));Oe.displayName="FileUploaderItemDescription";var Pe=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"FILE_UPLOADER_ITEM_TITLE":r,s=(0,i.Z)(e,C);return c.createElement(y.Text,(0,o.Z)((0,o.Z)({},(0,y.safelySpreadTextProps)(s)),{},{element:a,ref:t,as:"div",fontSize:"fontSize30",lineHeight:"lineHeight30",color:"colorText",wordBreak:"break-word"}),n)}));Pe.displayName="FileUploaderItemTitle";var Re,Ae,Me,Ne=(Re=be(),Me=null!=Re?O(M(Re)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,a.Z)(A(t));try{var s=function(){var i=o.value;!N.call(e,i)&&i!==n&&P(e,i,{get:function(){return t[i]},enumerable:!(r=R(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)s()}catch(l){i.e(l)}finally{i.f()}}return e}(!Ae&&Re&&Re.__esModule?Me:P(Me,"default",{value:Re,enumerable:!0}),Re)),De={borderColor:"colorBorderPrimaryStrong",backgroundColor:"colorBackgroundPrimaryWeakest"},Le={borderColor:"colorBorderWeak",borderStyle:"dashed",backgroundColor:"colorBackgroundWeak",cursor:"pointer",color:"colorText",_hover:De},je={backgroundColor:"colorBackground",borderStyle:"solid",borderColor:"colorBorderWeaker",cursor:"not-allowed",color:"colorTextWeaker"},ze=c.forwardRef((function(e,t){var n=e.element,a=void 0===n?"FILE_UPLOADER_DROPZONE":n,l=e.children,u=e.acceptedMimeTypes,d=e.onInputChange,f=e.onDragEnd,p=e.onDragEnter,h=e.onDragLeave,m=e.onDragOver,v=e.onDragStart,g=e.onDrop,y=(0,i.Z)(e,T),x=c.useContext(xe),w=x.id,k=x.disabled,S=x.required,_=x.name,E=c.useState(0),C=(0,r.Z)(E,2),I=C[0],B=C[1],O=c.useState(!1),P=(0,r.Z)(O,2),R=P[0],A=P[1],M=Le;k&&(M=je),R&&(M=(0,o.Z)((0,o.Z)({},M),De));var N;return c.createElement(s.Box,(0,o.Z)((0,o.Z)({as:"label",element:a,transition:"all 150ms ease-in",borderWidth:"borderWidth10",borderRadius:"borderRadius30",paddingY:"space160",paddingX:"space50",marginTop:"space40",textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"size20",rowGap:"space20"},M),{},{_focusWithin:{backgroundColor:"colorBackground",boxShadow:"shadowFocus"},onDragStart:v,onDragEnd:f,onDragOver:function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",!k&&m&&m(e)},onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="copy",!k&&(A(!0),p&&p(e))},onDrop:function(e){e.preventDefault(),e.stopPropagation(),!k&&(B((function(e){return e+1})),A(!1),g&&g(e))},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),!k&&(A(!1),h&&h(e))}}),c.createElement(s.Box,{backgroundColor:k?"colorBackgroundStrong":"colorBackgroundBody",borderRadius:"borderRadiusCircle",padding:"space30",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},c.createElement(b,{decorative:!0,size:"sizeIcon60",color:k?"colorTextWeaker":"colorTextIcon"})),c.createElement(c.Fragment,null,l),c.createElement(s.Box,(0,o.Z)((0,o.Z)({as:"input",type:"file",ref:t},(0,s.safelySpreadBoxProps)((0,o.Z)((0,o.Z)({},y),{},{id:w,disabled:k,required:S,name:_}))),{},{size:"size0",border:"none",overflow:"hidden",padding:"space0",margin:"space0",whiteSpace:"nowrap",textTransform:"none",position:"absolute",clip:"rect(0 0 0 0)","aria-describedby":"".concat(w,"-error-text ").concat(w,"-help-text ").concat(w,"-dropzone-text"),key:I,onChange:function(e){B((function(e){return e+1})),d&&d(e)},accept:(N=u,!Array.isArray(N)||(0,Ne.default)(N)?"":N.join(","))})))}));ze.displayName="FileUploaderDropzone";var We=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"FILE_UPLOADER_DROPZONE_TEXT":r,l=(0,i.Z)(e,I),u=c.useContext(xe).id;return c.createElement(s.Box,(0,o.Z)((0,o.Z)({ref:t,element:a},(0,s.safelySpreadBoxProps)(l)),{},{lineHeight:"lineHeight20",id:"".concat(u,"-dropzone-text"),pointerEvents:"none"}),n)}));We.displayName="FileUploaderDropzoneText";var Ze=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"FILE_UPLOADER_ERROR_TEXT":r,l=(0,i.Z)(e,B),d=c.useContext(xe).id;return c.createElement(s.Box,(0,o.Z)((0,o.Z)({marginTop:"space50",ref:t,element:a},(0,s.safelySpreadBoxProps)(l)),{},{id:"".concat(d,"-error-text")}),c.createElement(u.HelpText,{variant:"error",marginTop:"space0"},n))}));Ze.displayName="FileUploaderErrorText"},7952:function(e,t,n){"use strict";n.r(t),n.d(t,{Flex:function(){return h}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["as","basis","children","display","element","hAlignContent","grow","marginTop","marginRight","marginBottom","marginLeft","margin","marginX","marginY","paddingTop","paddingRight","paddingBottom","paddingLeft","padding","paddingX","paddingY","maxWidth","minWidth","width","height","minHeight","maxHeight","size","shrink","vertical","vAlignContent","wrap"],l=function(e){return e+("number"==typeof e||String(Number.parseInt(e,10))===e?"px":"")},c={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch"},u=function(e){var t=e.vAlignContent;return Array.isArray(t)?t.map((function(e){return c[e]})):t?c[t]:"flex-start"},d={left:"flex-start",center:"center",right:"flex-end",around:"space-around",between:"space-between"},f=function(e){var t=e.hAlignContent;return Array.isArray(t)?t.map((function(e){return d[e]})):t?d[t]:"flex-start"},p=function(e){var t={justifyContent:e.vertical?u(e):f(e),alignItems:e.vertical?f(e):u(e)};return(e.grow||e.shrink||e.basis)&&(t.flexGrow=function(e){var t=e.grow;return Array.isArray(t)?t.map((function(e){return Number(e)})):"number"==typeof t?t:t?1:0}(e),t.flexShrink=function(e){var t=e.shrink,n=e.basis;return Array.isArray(t)?t.map((function(e){return Number(e)})):"number"==typeof t?t:"boolean"==typeof t?t?1:0:n&&"auto"!==n?0:1}(e),t.flexBasis=function(e){var t=e.basis;return Array.isArray(t)?t.map((function(e){return l(e)})):t?l(t):"auto"}(e)),e.vertical&&(t.flexDirection=function(e){var t=e.vertical;return Array.isArray(t)?t.map((function(e){return"boolean"==typeof e?!0===e?"column":"row":e})):t?"column":"row"}(e)),e.wrap&&(t.flexWrap=function(e){var t=e.wrap;return Array.isArray(t)?t.map((function(e){return"boolean"==typeof e?!0===e?"wrap":"nowrap":e})):t?"wrap":"nowrap"}(e)),t},h=a.forwardRef((function(e,t){var n=e.as,l=e.basis,c=e.children,u=e.display,d=void 0===u?"flex":u,f=e.element,h=void 0===f?"FLEX":f,m=e.hAlignContent,v=e.grow,g=e.marginTop,y=e.marginRight,b=e.marginBottom,x=e.marginLeft,w=e.margin,k=e.marginX,S=e.marginY,_=e.paddingTop,E=e.paddingRight,C=e.paddingBottom,T=e.paddingLeft,I=e.padding,B=e.paddingX,O=e.paddingY,P=e.maxWidth,R=e.minWidth,A=void 0===R?"size0":R,M=e.width,N=e.height,D=e.minHeight,L=e.maxHeight,j=e.size,z=e.shrink,W=e.vertical,Z=e.vAlignContent,F=e.wrap,H=(0,o.Z)(e,s),U=a.useMemo((function(){return p({basis:l,hAlignContent:m,grow:v,shrink:z,vertical:W,vAlignContent:Z,wrap:F})}),[l,m,v,z,W,Z,F]);j&&(M||N)&&console.error("[Paste Flex]: you cannot set a height or width when using the size attribute"),(k&&(w||b||x||y||g)||S&&(w||b||x||y||g))&&console.error("[Paste Flex]: you cannot set a top, right, bottom or left margin when using the marginX or marginY attributes."),(B&&(I||C||T||E||_)||O&&(I||C||T||E||_))&&console.error("[Paste Flex]: you cannot set a top, right, bottom or left padding when using the paddingX or paddingY attributes.");var $=k||S?{marginX:k,marginY:S}:{margin:w,marginBottom:b,marginLeft:x,marginRight:y,marginTop:g},G=B||O?{paddingX:B,paddingY:O}:{padding:I,paddingBottom:C,paddingLeft:T,paddingRight:E,paddingTop:_},q=j?{size:j}:{height:N,width:M};return a.createElement(i.Box,(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},U),(0,i.safelySpreadBoxProps)(H)),{},{ref:t,as:n,display:d,element:h},$),G),{},{minHeight:D,maxHeight:L,maxWidth:P,minWidth:A},q),c)}));h.displayName="Flex"},4061:function(e,t,n){"use strict";n.r(t),n.d(t,{Footnote:function(){return d}});var r=n(1413),o=n(4925),i=n(1923),a=n(9741),s=n(6168),l=n(2791),c=["children","element","tooltipText"],u={display:"inline-block",backgroundColor:"colorBackgroundBodyElevation",paddingY:"space20",paddingX:"space30",borderRadius:"borderRadiusCircle",height:"sizeIcon40",minWidth:"sizeIcon40",textAlign:"center",verticalAlign:"middle",flexShrink:0,color:"colorTextWeak",fontSize:"fontSize20",lineHeight:"lineHeight10",fontWeight:"fontWeightMedium",fontVariantNumeric:"normal"},d=l.forwardRef((function(e,t){var n=e.children,d=e.element,f=void 0===d?"FOOTNOTE":d,p=e.tooltipText,h=(0,o.Z)(e,c);return p?l.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(h)),{},{ref:t,element:f,as:"sup"}),l.createElement(s.Tooltip,{element:"".concat(f,"_TOOLTIP"),text:p},l.createElement(a.Button,(0,r.Z)((0,r.Z)({element:"".concat(f,"_TOOLTIP_BUTTON"),variant:"reset"},u),{},{size:"reset",boxShadow:"shadowBorderBottom",_hover:{boxShadow:"shadowBorderWeaker"},_focus:{boxShadow:"shadowFocus"}}),n))):l.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(h)),{},{ref:t,element:f,as:"sup"},u),n)}));d.displayName="Footnote"},3404:function(e,t,n){"use strict";n.r(t),n.d(t,{FormPill:function(){return F},FormPillGroup:function(){return $},useFormPillState:function(){return D}});var r,o,i=n(4925),a=n(1413),s=n(7762),l=n(1923),c=n(4086),u=n(2791),d=n(7088),f=n(9643),p=n(6091),h=n(8045),m=n(9628),v=["element","selected","variant","isHoverable","isDisabled","isDismissable","i18nErrorLabel"],g=["element","onDismiss","onSelect","next","selected","variant","disabled","i18nErrorLabel"],y=["element","display","size","variant"],b=["i18nKeyboardControls"],x=Object.create,w=Object.defineProperty,k=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,_=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,C=(r={"../../../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}},function(){return o||(0,r[S(r)[0]])((o={exports:{}}).exports,o),o.exports}),T={default:{color:"colorTextIcon",_hover:{color:"colorTextLinkStronger"}},error:{color:"colorTextIcon",_hover:{color:"colorTextErrorStronger"}}},I={default:{color:"colorTextWeakest",_hover:{color:"colorTextInverse"}},error:{color:"colorTextInverse",_hover:{color:"colorTextWeakest"}}},B={default:{color:"colorText",backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryWeaker",_focus:{boxShadow:"shadowFocus",color:"colorText"},_selected:{backgroundColor:"colorBackgroundPrimaryStronger",boxShadow:"shadowBorderPrimaryStronger",color:"colorTextWeakest"},_selected_focus:{boxShadow:"shadowFocus",color:"colorTextWeakest"},_disabled:{backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker",cursor:"not-allowed",color:"colorText"}},error:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderErrorWeaker",color:"colorTextError",_focus:{boxShadow:"shadowFocus",color:"colorTextErrorStrong"},_selected:{backgroundColor:"colorBackgroundError",boxShadow:"shadowBorderError",color:"colorTextInverse"},_selected_focus:{boxShadow:"shadowFocus",color:"colorTextInverse"},_disabled:{backgroundColor:"colorBackgroundStrong",boxShadow:"shadowBorderWeaker",cursor:"not-allowed",color:"colorText"}}},O={default:{cursor:"pointer",color:"colorText",backgroundColor:"colorBackgroundPrimaryWeakest",boxShadow:"shadowBorderPrimaryWeaker",_hover:{boxShadow:"shadowBorderPrimaryStronger",color:"colorTextPrimaryStronger"},_selected_hover:{backgroundColor:"colorBackgroundPrimary",boxShadow:"shadowBorderPrimary",color:"colorTextInverse"},_focus_hover:{boxShadow:"shadowFocus"}},error:{cursor:"pointer",backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderErrorWeaker",color:"colorTextError",_hover:{boxShadow:"shadowBorderErrorStronger",color:"colorTextErrorStronger"},_selected_hover:{backgroundColor:"colorBackgroundErrorStrongest",boxShadow:"shadowBorderErrorStrongest",color:"colorTextWeakest"},_focus_hover:{boxShadow:"shadowFocus"}}},P={default:{_hover:{cursor:"pointer",boxShadow:"shadowBorderPrimaryStronger"}},error:{_hover:{backgroundColor:"colorBackgroundErrorWeakest",boxShadow:"shadowBorderErrorStronger",cursor:"pointer"}}},R={default:{_hover:{cursor:"pointer",backgroundColor:"colorBackgroundPrimary",boxShadow:"shadowBorderPrimary"}},error:{_hover:{cursor:"pointer",backgroundColor:"colorBackgroundErrorStrongest",boxShadow:"shadowBorderErrorStrongest"}}},A={color:"inherit",_hover:{color:"inherit"}},M={default:{color:"colorTextIcon",_hover:{color:"colorTextPrimaryStronger"}},error:{color:"colorTextIcon",_hover:{color:"colorTextErrorStronger"}}},N={default:{color:"colorTextWeakest",_hover:{color:"colorTextInverse"}},error:{color:"colorTextInverse",_hover:{color:"colorTextWeakest"}}},D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.Z)({},(0,c.uN)((0,a.Z)((0,a.Z)({},e),{},{orientation:"horizontal",loop:!0})))},L=(0,u.createContext)({size:"default",variant:"listbox"}),j={default:{fontSize:"fontSize20",height:"sizeIcon40"},large:{fontSize:"fontSize30",height:"sizeIcon50"}},z=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"FORM_PILL":n,o=e.selected,s=void 0!==o&&o,c=e.variant,h=void 0===c?"default":c,m=e.isHoverable,g=void 0!==m&&m,y=e.isDisabled,b=void 0!==y&&y,x=e.isDismissable,w=void 0!==x&&x,k=e.i18nErrorLabel,S=void 0===k?"(error)":k,_=(0,i.Z)(e,v),E=u.useMemo((function(){return g&&!b?(0,a.Z)((0,a.Z)({},B[h]),O[h]):B[h]}),[g,b,h]),C=u.useContext(L),T=C.size,I=C.variant,P=j[T],R=P.height,A=P.fontSize;return u.createElement(l.Box,(0,a.Z)((0,a.Z)({},(0,l.safelySpreadBoxProps)(_)),{},{element:r,ref:t,"aria-selected":s,"aria-disabled":b,role:"tree"===I?"treeitem":"option",type:"tree"===I?void 0:"button",as:"tree"===I?"div":"button",margin:"space0",position:"relative",borderRadius:"borderRadiusPill",borderStyle:"none",cursor:"default",height:R,fontFamily:"inherit",fontSize:A,fontWeight:"fontWeightMedium",outline:"none",paddingLeft:"space30",paddingRight:w?"large"===T?"space90":"space80":"space30",transition:"background-color 150ms ease-in, border-color 150ms ease-in, box-shadow 150ms ease-in, color 150ms ease-in",maxWidth:"100%"},E),u.createElement(l.Box,{display:"flex",height:"100%",alignItems:"center",columnGap:"space20",opacity:b?.3:1},"error"===h?u.createElement(u.Fragment,null,u.createElement(d.P,{decorative:!0,size:"large"===T?"sizeIcon20":"sizeIcon10"}),u.createElement(f.ScreenReaderOnly,null,S)):null,function e(t){if("string"==typeof t)return u.createElement(p.Truncate,{title:t},t);if(u.isValidElement(t)){var n=t.props;return n.children&&"string"==typeof n.children?u.createElement(l.Box,{minWidth:"0",element:"".concat(r,"_TEXT_TRUNCATE_WRAPPER")},u.createElement(t.type,(0,a.Z)({},n),e(n.children))):u.createElement(t.type,(0,a.Z)({},n),e(n.children))}return Array.isArray(t)?t.map((function(t){return e(t)})):t}(_.children)))}));z.displayName="FormPillButton";var W=function(e,t,n){return n=null!=e?x(_(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,s.Z)(S(t));try{var a=function(){var i=o.value;!E.call(e,i)&&i!==n&&w(e,i,{get:function(){return t[i]},enumerable:!(r=k(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(l){i.e(l)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:w(n,"default",{value:e,enumerable:!0}),e)}(C()),Z=function(e){var t=e.element,n=void 0===t?"FORM_PILL_CLOSE":t,r=e.onClick,o=void 0===r?function(){}:r,i=e.selected,s=void 0!==i&&i,c=e.variant,d=void 0===c?"default":c,f=e.pillIsHoverable,p=void 0!==f&&f,m=u.useContext(L).size,v=s?R[d]:P[d],g=s?N[d]:M[d];p&&(g=A);var y=(0,W.default)(v,g);return u.createElement(l.Box,(0,a.Z)((0,a.Z)({element:n,onClick:o},y),{},{position:"absolute",right:0,top:0,display:"flex",alignItems:"center",justifyContent:"center",height:"large"===m?"sizeIcon50":"sizeIcon40",width:"large"===m?"sizeIcon50":"sizeIcon40",borderRadius:"borderRadiusCircle",borderWidth:"borderWidth10",borderStyle:"solid",borderColor:"transparent",transition:"color 150ms ease-in, border-color 150ms ease-in, background-color 150ms ease-in"}),u.createElement(h.T,{decorative:!0,size:"large"===m?"sizeIcon20":"sizeIcon10",color:"inherit"}))};Z.displayName="PillCloseIcon";var F=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"FORM_PILL":n,o=e.onDismiss,s=e.onSelect,d=e.next,f=e.selected,p=e.variant,h=void 0===p?"default":p,m=e.disabled,v=void 0!==m&&m,y=e.i18nErrorLabel,b=(0,i.Z)(e,g);if(f&&v)throw new Error("[Paste FormPill] FormPills cannot be selected and disabled at the same time.");var x=null!=s,w=null!=o,k={};x&&(k=f?I[h]:T[h]);var S=u.useCallback((function(e){("Backspace"===e.key||"Delete"===e.key)&&"function"==typeof o&&(o(e),"function"==typeof d&&d())}),[o,d]);return u.createElement(l.Box,(0,a.Z)({element:"".concat(r,"_WRAPPER"),position:"relative",display:"inline-block",borderRadius:"borderRadiusPill",maxWidth:"100%"},k),u.createElement(c.A8,(0,a.Z)((0,a.Z)({},(0,l.safelySpreadBoxProps)(b)),{},{element:r,ref:t,as:z,focusable:v,onKeyDown:v?void 0:S,onClick:v?void 0:s,next:d,isDisabled:v,isDismissable:w,isHoverable:x,selected:f,variant:h,i18nErrorLabel:y}),b.children),w&&!v?u.createElement(Z,{element:"".concat(r,"_CLOSE"),onClick:o,selected:f,variant:h,pillIsHoverable:x}):null)}));F.displayName="FormPill";var H={default:{columnGap:"space20",rowGap:"space20"},large:{columnGap:"space30",rowGap:"space30"}},U=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"FORM_PILL_GROUP":n,o=e.display,s=void 0===o?"flex":o,c=e.size,d=void 0===c?"default":c,f=e.variant,p=void 0===f?"listbox":f,h=(0,i.Z)(e,y);return u.createElement(L.Provider,{value:{size:d,variant:p}},u.createElement(l.Box,(0,a.Z)((0,a.Z)({},(0,l.safelySpreadBoxProps)(h)),{},{element:r,ref:t,role:"tree"===p?"tree":"listbox",lineHeight:"lineHeight30",margin:"space0",padding:"space0",display:s,flexWrap:"wrap",maxWidth:"100%"},H[d]),h.children))}));U.displayName="StyledFormPillGroup";var $=u.forwardRef((function(e,t){var n=e.i18nKeyboardControls,r=void 0===n?"Press Delete or Backspace to remove. Press Enter to toggle selection.":n,o=(0,i.Z)(e,b),s=(0,m.Dt)();return u.createElement(u.Fragment,null,u.createElement(f.ScreenReaderOnly,{id:s},r),u.createElement(c.bU,(0,a.Z)({as:U,ref:t,"aria-describedby":s},o),o.children))}));$.displayName="FormPillGroup"},4232:function(e,t,n){"use strict";n.r(t),n.d(t,{Form:function(){return v},FormActions:function(){return g},FormControl:function(){return y},FormControlTwoColumn:function(){return b},FormSection:function(){return w},FormSectionDescription:function(){return k},FormSectionHeading:function(){return S}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=n(9628),l=n(6373),c=["element","maxWidth","children"],u=["children","element"],d=["children","element"],f=["children","element"],p=["children","element","id"],h=["children","element"],m=["children","element","variant"],v=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"FORM":n,l=e.maxWidth,u=e.children,d=(0,o.Z)(e,c);return a.createElement(i.Box,(0,r.Z)({as:"form",ref:t,element:s,maxWidth:l,display:"flex",flexDirection:"column",rowGap:"space80"},(0,i.safelySpreadBoxProps)(d)),u)}));v.displayName="Form";var g=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"FORM_ACTIONS":s,c=(0,o.Z)(e,u);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({ref:t,element:l},(0,i.safelySpreadBoxProps)(c)),{},{display:"flex",flexDirection:"row",columnGap:"space40",marginTop:"space60"}),n)}));g.displayName="FormActions";var y=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"FORM_CONTROL":s,c=(0,o.Z)(e,d);return a.createElement(i.Box,(0,r.Z)({ref:t,flexGrow:1,element:l},(0,i.safelySpreadBoxProps)(c)),n)}));y.displayName="FormControl";var b=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"FORM_CONTROL_TWO_COLUMN":s,c=(0,o.Z)(e,f);return a.createElement(i.Box,(0,r.Z)({display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"space50",ref:t,element:l},(0,i.safelySpreadBoxProps)(c)),n)}));b.displayName="FormControlTwoColumn";var x=a.createContext({}),w=a.forwardRef((function(e,t){var n=e.children,l=e.element,c=void 0===l?"FORM_SECTION":l,u=e.id,d=(0,o.Z)(e,p),f=u||(0,s.Dt)();return a.createElement(x.Provider,{value:{id:f}},a.createElement(i.Box,(0,r.Z)((0,r.Z)({as:"fieldset",border:"none",margin:"space0",padding:"space0",marginY:"space20",ref:t,element:c,display:"flex",flexDirection:"column",rowGap:"space80",_first:{marginTop:"space0"},_last:{marginBottom:"space0"}},(0,i.safelySpreadBoxProps)(d)),{},{"aria-describedby":"".concat(f,"-section-description"),id:f}),n))}));w.displayName="FormSection";var k=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"FORM_SECTION_DESCRIPTION":s,c=(0,o.Z)(e,h),u=a.useContext(x).id;return a.createElement(i.Box,(0,r.Z)((0,r.Z)({ref:t},(0,i.safelySpreadBoxProps)(c)),{},{element:l,color:"colorText",fontSize:"fontSize30",lineHeight:"lineHeight20",id:"".concat(u,"-section-description")}),n)}));k.displayName="FormSectionDescription";var S=a.forwardRef((function(e,t){var n=e.children,s=e.element,c=void 0===s?"FORM_SECTION_HEADING":s,u=e.variant,d=void 0===u?"heading40":u,f=(0,o.Z)(e,m);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({as:"legend",ref:t},(0,i.safelySpreadBoxProps)(f)),{},{element:c,padding:"space0"}),a.createElement(l.Heading,{as:"span",variant:d},n))}));S.displayName="FormSectionHeading"},6154:function(e,t,n){"use strict";n.r(t),n.d(t,{Column:function(){return g},Grid:function(){return m}});var r=n(1413),o=n(4925),i=n(4942),a=n(1923),s=n(2791),l=["as","children","element","equalColumnHeights","gutter","marginTop","marginBottom","vertical"],c=["as","children","count","element","gutter","offset","span","stretchColumnContent","vertical"],u=function(e){return"margin"===e?"auto":"space0"},d=function(e,t,n){var r=function(e){var t,n=e.prefix,r=e.responsive,o=e.defaultValue,a=function(){return r?new Array(3).fill(o):o};return t={},(0,i.Z)(t,"".concat(n,"Top"),a()),(0,i.Z)(t,"".concat(n,"Bottom"),a()),(0,i.Z)(t,"".concat(n,"Right"),a()),(0,i.Z)(t,"".concat(n,"Left"),a()),t}({prefix:t,responsive:!1,defaultValue:u(t)});return void 0===n||(e?(r["".concat(t,"Top")]=n,r["".concat(t,"Bottom")]=n):(r["".concat(t,"Right")]=n,r["".concat(t,"Left")]=n)),r},f=function(e,t,n){var r,o=u(t),a=(r={},(0,i.Z)(r,"".concat(t,"Top"),[o,o,o]),(0,i.Z)(r,"".concat(t,"Bottom"),[o,o,o]),(0,i.Z)(r,"".concat(t,"Right"),[o,o,o]),(0,i.Z)(r,"".concat(t,"Left"),[o,o,o]),r),s=Array.isArray(n)&&0===n.length;return void 0===n||s||e.forEach((function(e,r){var o=Array.isArray(n)?n[r]:n;e?(a["".concat(t,"Top")][r]=o,a["".concat(t,"Bottom")][r]=o):(a["".concat(t,"Right")][r]=o,a["".concat(t,"Left")][r]=o)})),a},p=function(e){return Array.isArray(e)?e.map((function(e){return"space0"!==e?e.replace("space","spaceNegative"):"space0"===e?"space0":null})):"space0"===e?"space0":e&&"string"==typeof e?e.replace("space","spaceNegative"):"auto"},h=function(e){var t=e.count,n=e.span;return Array.isArray(n)&&t?n.map((function(e){return"".concat(e/12*100,"%")})):"".concat("number"==typeof n&&t&&t<=12?n/12*100:void 0!==t?1/t*100:8.333333333333332,"%")},m=s.forwardRef((function(e,t){var n=e.as,i=e.children,c=e.element,u=void 0===c?"GRID":c,h=e.equalColumnHeights,m=e.gutter,v=e.marginTop,g=e.marginBottom,y=e.vertical,b=void 0!==y&&y,x=(0,o.Z)(e,l),w=s.useMemo((function(){return s.Children.map(i,(function(e){return s.isValidElement(e)?s.cloneElement(e,{count:s.Children.count(i),gutter:m,vertical:b,stretchColumnContent:h}):e}))}),[i,b,h,m]),k=s.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=p(e);return Array.isArray(t)?f(t,"margin",n):d(t,"margin",n)}(m,b)}),[m,b]),S=s.useMemo((function(){return function(e){return Array.isArray(e)?e.map((function(e){return"boolean"==typeof e&&!0===e?"column":"row"})):e?"column":"row"}(b)}),[b]);return s.createElement(a.Box,(0,r.Z)((0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(x)),{},{ref:t,as:n,alignItems:h?"stretch":null,element:u,flexDirection:S,flexWrap:"wrap",display:"flex"},k),{},{marginTop:v,marginBottom:g,minWidth:"size0",rowGap:x.rowGap,columnGap:x.columnGap}),w)}));m.displayName="Grid";var v=function(e){var t=e.count,n=e.span,o=e.gutter,i=e.offset,a=e.vertical,s=e.stretchColumnContent,l=(0,r.Z)({width:h({count:t,span:n})},function(e){var t=e.vertical,n=e.gutter;return Array.isArray(t)?f(t,"padding",n):d(t,"padding",n)}({gutter:o,vertical:a}));return i&&(l.marginLeft=function(e){return Array.isArray(e)?e.map((function(e){return"".concat(e/12*100,"%")})):"".concat(e/12*100,"%")}(i)),a&&!i&&(l.minWidth=function(e){return Array.isArray(e)?e.map((function(e){return"boolean"==typeof e?!0===e?"100%":"0":null})):e?"100%":"0"}(a),l.marginLeft="space0"),s&&(l.alignContent="stretch",l.display="flex"),l},g=s.forwardRef((function(e,t){var n=e.as,i=e.children,l=e.count,u=e.element,d=void 0===u?"COLUMN":u,f=e.gutter,p=e.offset,h=e.span,m=e.stretchColumnContent,g=e.vertical,y=(0,o.Z)(e,c),b=s.useMemo((function(){return v({count:l,gutter:f,offset:p,span:h,stretchColumnContent:m,vertical:g})}),[l,f,p,h,m,g]);return s.createElement(a.Box,(0,r.Z)((0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(y)),b),{},{as:n,element:d,ref:t}),i)}));g.displayName="Column"},6373:function(e,t,n){"use strict";n.r(t),n.d(t,{Heading:function(){return l}});var r=n(1413),o=n(4925),i=n(9132),a=n(2791),s=["as","children","display","element","id","marginBottom","variant"];var l=a.forwardRef((function(e,t){var n=e.as,l=e.children,c=e.display,u=void 0===c?"block":c,d=e.element,f=void 0===d?"HEADING":d,p=e.id,h=e.marginBottom,m=e.variant,v=(0,o.Z)(e,s);return a.createElement(i.Text,(0,r.Z)((0,r.Z)((0,r.Z)({},(0,i.safelySpreadTextProps)(v)),function(e,t){switch(e){case"heading10":return{marginBottom:t||"space70",fontSize:"fontSize90",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight90",letterSpacing:"-.02em"};case"heading30":return{marginBottom:t||"space50",fontSize:"fontSize60",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight60",letterSpacing:"-.02em"};case"heading40":return{marginBottom:t||"space30",fontSize:"fontSize40",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight40",letterSpacing:"-.02em"};case"heading50":return{marginBottom:t||"space30",fontSize:"fontSize30",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight30",letterSpacing:"-.02em"};case"heading60":return{marginBottom:t||"space30",fontSize:"fontSize20",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight20",letterSpacing:"-.02em"};default:return{marginBottom:t||"space60",fontSize:"fontSize70",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight70",letterSpacing:"-.02em"}}}(m,h)),{},{as:n,display:u,element:f,id:p,color:"colorText",variant:m,ref:t}),l)}));l.displayName="Heading"},324:function(e,t,n){"use strict";n.r(t),n.d(t,{HelpText:function(){return x}});var r,o=n(1413),i=n(4925),a=n(4942),s=n(1923),l=n(7088),c=n(8306),u=n(428),d=n(2791),f=["marginTop","children","variant","element"],p="default",h="error",m="error_inverse",v="inverse",g="success",y="warning",b=(r={},(0,a.Z)(r,p,{textColor:"colorTextWeak",icon:null}),(0,a.Z)(r,v,{textColor:"colorTextInverseWeaker",icon:null}),(0,a.Z)(r,h,{textColor:"colorTextError",icon:d.createElement(s.Box,{flexShrink:0},d.createElement(l.P,{color:"colorTextError",decorative:!0,size:"sizeIcon20"}))}),(0,a.Z)(r,m,{textColor:"colorTextErrorWeak",icon:d.createElement(s.Box,{flexShrink:0},d.createElement(l.P,{color:"colorTextErrorWeak",decorative:!0,size:"sizeIcon20"}))}),(0,a.Z)(r,g,{textColor:"colorTextSuccess",icon:d.createElement(s.Box,{flexShrink:0},d.createElement(c.t,{color:"colorTextIconSuccess",decorative:!0,size:"sizeIcon20"}))}),(0,a.Z)(r,y,{textColor:"colorTextWarning",icon:d.createElement(s.Box,{flexShrink:0},d.createElement(u.a,{color:"colorTextWarning",decorative:!0,size:"sizeIcon20"}))}),r),x=d.forwardRef((function(e,t){var n=e.marginTop,r=e.children,a=e.variant,l=void 0===a?"default":a,c=e.element,u=void 0===c?"HELP_TEXT":c,p=(0,i.Z)(e,f),h=b[l],m=h.textColor,v=h.icon;return d.createElement(s.Box,(0,o.Z)((0,o.Z)({},(0,s.safelySpreadBoxProps)(p)),{},{display:"flex",columnGap:"space20",marginTop:n||"space30",ref:t,element:u,variant:l,as:"div",color:m,fontSize:"fontSize30",lineHeight:"lineHeight30"}),v,d.createElement("span",null,r))}));x.displayName="HelpText"},9348:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="ArrowForwardIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[ArrowForwardIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.991 9.91l.007.05v.08l-.01.07-.01.029a.489.489 0 01-.205.272l-3.832 3.444a.596.596 0 01-.78 0 .459.459 0 01-.063-.632l.063-.069 2.957-2.659H5.513A.504.504 0 015 10a.5.5 0 01.42-.488l.093-.008h7.604l-2.956-2.658a.459.459 0 01-.063-.632l.063-.069a.598.598 0 01.704-.057l.076.057 3.832 3.444c.098.064.172.16.206.272l.012.049z"})))}));a.displayName="ArrowForwardIcon"},7087:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="ChevronDisclosureIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[ChevronDisclosureIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M9.707 6.293a1 1 0 00-1.497 1.32l.083.094L10.585 10l-2.292 2.293a1 1 0 00-.083 1.32l.083.094a1 1 0 001.32.083l.094-.083 3-3a1 1 0 00.083-1.32l-.083-.094-3-3z"})))}));a.displayName="ChevronDisclosureIcon"},9282:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="ChevronDownIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[ChevronDownIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.293 8.293a1 1 0 011.32-.083l.094.083L10 10.585l2.293-2.292a1 1 0 011.32-.083l.094.083a1 1 0 01.083 1.32l-.083.094-3 3a1 1 0 01-1.32.083l-.094-.083-3-3a1 1 0 010-1.414z"})))}));a.displayName="ChevronDownIcon"},3178:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="ChevronLeftIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[ChevronLeftIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.293 6.293a1 1 0 011.497 1.32l-.083.094L9.415 10l2.292 2.293a1 1 0 01.083 1.32l-.083.094a1 1 0 01-1.32.083l-.094-.083-3-3a1 1 0 01-.083-1.32l.083-.094 3-3z"})))}));a.displayName="ChevronLeftIcon"},8012:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="ChevronRightIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[ChevronRightIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.707 6.293a1 1 0 00-1.497 1.32l.083.094L10.585 10l-2.292 2.293a1 1 0 00-.083 1.32l.083.094a1 1 0 001.32.083l.094-.083 3-3a1 1 0 00.083-1.32l-.083-.094-3-3z"})))}));a.displayName="ChevronRightIcon"},1974:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="ChevronUpIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[ChevronUpIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.293 7.293a1 1 0 011.32-.083l.094.083 3 3a1 1 0 01-1.32 1.497l-.094-.083L10 9.415l-2.293 2.292a1 1 0 01-1.32.083l-.094-.083a1 1 0 01-.083-1.32l.083-.094 3-3z"})))}));a.displayName="ChevronUpIcon"},8045:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="CloseIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[CloseIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.16 13.514L11.645 10l3.515-3.514a1.165 1.165 0 00-1.646-1.646L10 8.355 6.486 4.84A1.165 1.165 0 004.84 6.486L8.355 10 4.84 13.514a1.165 1.165 0 001.646 1.646L10 11.645l3.514 3.515a1.165 1.165 0 001.646-1.646z"})))}));a.displayName="CloseIcon"},7088:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="ErrorIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[ErrorIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.247 2.517l6.236 6.236a1.764 1.764 0 010 2.494l-6.236 6.236a1.764 1.764 0 01-2.494 0l-6.236-6.236a1.764 1.764 0 010-2.494l6.236-6.236a1.764 1.764 0 012.494 0zM10 12a1 1 0 100 2 1 1 0 000-2zm.01-5h-.02c-.604 0-1.073.592-.978 1.244l.428 2.238c.04.296.278.518.557.518h.006c.279 0 .516-.222.557-.518l.428-2.238c.095-.652-.367-1.237-.978-1.244z"})))}));a.displayName="ErrorIcon"},7258:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="LinkExternalIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[LinkExternalIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.4 4.5a.5.5 0 01.5.5v.1a.5.5 0 01-.5.5H5.6v8.8h8.8v-2.8a.5.5 0 01.41-.492l.09-.008h.1a.5.5 0 01.492.41l.008.09V15a.5.5 0 01-.41.492L15 15.5H5a.5.5 0 01-.492-.41L4.5 15V5a.5.5 0 01.41-.492L5 4.5h3.4zm6.6 0a.5.5 0 01.5.5v.1l-.001.01.001 3.29a.5.5 0 01-.5.5h-.1a.5.5 0 01-.5-.5l-.001-1.935-3.967 3.967a.611.611 0 01-.78.07l-.084-.07a.611.611 0 01-.07-.78l.07-.084L13.534 5.6H11.6a.5.5 0 01-.5-.5V5a.5.5 0 01.5-.5H15z"})))}));a.displayName="LinkExternalIcon"},1350:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="MinusIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[MinusIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.167 9.5c.46 0 .833.448.833 1 0 .513-.322.936-.736.993l-.097.007H5.833c-.46 0-.833-.448-.833-1 0-.513.322-.936.736-.993l.097-.007h8.334z"})))}));a.displayName="MinusIcon"},8295:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="NeutralIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[NeutralIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 2a8 8 0 110 16 8 8 0 010-16zm0 7c-.26.01-.528.08-.707.24-.178.158-.292.355-.292.575v3.37c0 .21.11.428.292.577.173.14.457.247.707.237.26-.008.528-.078.707-.237.178-.16.292-.355.292-.577v-3.37a.766.766 0 00-.292-.575A1.14 1.14 0 0010 9zm0-3l-.266.036c-.17.047-.318.131-.441.253l-.156.198A.958.958 0 009 6.98v.04a.728.728 0 00.086.378c.04.121.108.227.206.315.09.094.197.163.321.202.12.06.248.09.386.084l.266-.035c.17-.047.318-.131.441-.253l.156-.198A.958.958 0 0011 7.02v-.04a.728.728 0 00-.086-.378.721.721 0 00-.206-.315.757.757 0 00-.321-.202.767.767 0 00-.386-.084z"})))}));a.displayName="NeutralIcon"},2310:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="SelectedIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[SelectedIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.659 6.597a1.155 1.155 0 00-1.65 0l-4.2 4.281L6.99 9.026a1.15 1.15 0 00-1.65 0 1.207 1.207 0 000 1.682l2.643 2.694a1.151 1.151 0 001.65 0l5.024-5.123a1.206 1.206 0 000-1.682z",clipRule:"evenodd"})))}));a.displayName="SelectedIcon"},8306:function(e,t,n){"use strict";n.d(t,{t:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="SuccessIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[SuccessIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 2a8 8 0 110 16 8 8 0 010-16zm2.997 5c-.266 0-.521.106-.71.294l-3.286 3.294L7.712 9.29a1.003 1.003 0 00-1.418 1.418l1.998 1.997a1 1 0 001.418 0l3.996-3.994A1.002 1.002 0 0012.996 7z"})))}));a.displayName="SuccessIcon"},428:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(9628),o=n(2791),i=n(8015),a=o.forwardRef((function(e,t){var n=e.as,a=e.display,s=e.element,l=void 0===s?"ICON":s,c=e.size,u=e.color,d=e.title,f=e.decorative,p="WarningIcon-".concat((0,r.Dt)());if(!f&&null==d)throw new Error("[WarningIcon]: Missing a title for non-decorative icon.");return o.createElement(i.a,{as:n,display:a,element:l,size:c,color:u,ref:t},o.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?o.createElement("title",{id:p},d):null,o.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M17.798 14.791L11.316 3.744c-.582-.992-2.05-.992-2.632 0L2.202 14.79C1.625 15.776 2.354 17 3.518 17h12.964c1.164 0 1.893-1.224 1.316-2.209zM9.99 8h.02c.611.007 1.073.592.978 1.244l-.428 2.238c-.04.296-.278.518-.557.518h-.006c-.279 0-.516-.222-.557-.518l-.428-2.238C8.917 8.592 9.386 8 9.99 8zm.01 7a1 1 0 100-2 1 1 0 000 2z"})))}));a.displayName="WarningIcon"},8015:function(e,t,n){"use strict";n.d(t,{a:function(){return p}});var r=n(7762),o=n(1923),i=n(2791),a=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=function(e,t,n){return t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},p=i.forwardRef((function(e,t){var n=e,a=n.as,p=void 0===a?"span":a,h=n.color,m=void 0===h?"currentColor":h,v=n.display,g=void 0===v?"block":v,y=n.element,b=void 0===y?"ICON":y,x=n.size,w=void 0===x?"sizeIcon30":x,k=function(e,t){var n={};for(var o in e)u.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&c){var i,a=(0,r.Z)(c(e));try{for(a.s();!(i=a.n()).done;)o=i.value,t.indexOf(o)<0&&d.call(e,o)&&(n[o]=e[o])}catch(s){a.e(s)}finally{a.f()}}return n}(n,["as","color","display","element","size"]);return i.createElement(o.Box,function(e,t){return s(e,l(t))}(function(e,t){for(var n in t||(t={}))u.call(t,n)&&f(e,n,t[n]);if(c){var o,i=(0,r.Z)(c(t));try{for(i.s();!(o=i.n()).done;)n=o.value,d.call(t,n)&&f(e,n,t[n])}catch(a){i.e(a)}finally{i.f()}}return e}({},(0,o.safelySpreadBoxProps)(k)),{as:p,element:b,lineHeight:"lineHeight0",display:g,color:m,size:w,ref:t,flexShrink:0}))}));p.displayName="IconWrapper"},3812:function(e,t,n){"use strict";n.r(t),n.d(t,{InPageNavigation:function(){return w},InPageNavigationItem:function(){return I}});var r=n(4925),o=n(885),i=n(1413),a=n(1923),s=n(7666),l=n(2791),c=n(3178),u=n(8012),d=n(2714),f=n(1076),p=["element","variant","orientation","marginBottom","hideBottomBorder","children"],h=["element","currentPage","href","children","title"],m=l.createContext({variant:"default",orientation:"horizontal"}),v={color:"colorTextIcon",_hover:{color:"colorTextPrimaryStrongest",cursor:"pointer"}},g={color:"colorTextIconInverse",_hover:{color:"colorTextInverse",cursor:"pointer"}},y=function(e){var t=e.onClick,n=e.position,r=e.visible,o=e.element,s=void 0===o?"TAB_LIST":o,f=e.showShadow,p=(0,d.Fg)(),h=l.useContext(m).variant,y="inverse"===h||"inverse_fullWidth"===h,b="left"===n?c.w:u.X;return r?l.createElement(a.Box,(0,i.Z)({onClick:t,"aria-hidden":!0,display:"flex",alignItems:"center",justifyContent:"center",width:"sizeBase70",padding:"space20",boxShadow:function(){if(f)return"left"===n?y?p.shadows.shadowLeftInverse:p.shadows.shadowLeft:y?p.shadows.shadowRightInverse:p.shadows.shadowRight}(),element:"".concat(s,"_OVERFLOW_BUTTON_").concat(n.toUpperCase()),zIndex:"zIndex10"},y?g:v),l.createElement(b,{decorative:!0})):null};y.displayName="OverflowButton";var b=function(e,t,n,r){var o="left"===e?t:n;if(r&&o){var i=o.getBoundingClientRect(),a=r.getBoundingClientRect(),s=r.scrollLeft+(i.left-a.left)-a.width/2+i.width/2;r.scrollTo({left:s,behavior:"smooth"})}},x=s.iK.div((function(){return(0,s.iv)({overflowX:"auto",overflowY:"hidden",overflowScrolling:"touch","@supports (-moz-appearance:none)":{paddingBottom:"0px",scrollbarWidth:"none"},"::-webkit-scrollbar":{height:0},"::-webkit-scrollbar-track":{background:"transparent"}})})),w=l.forwardRef((function(e,t){var n=e.element,s=void 0===n?"IN_PAGE_NAVIGATION":n,c=e.variant,u=void 0===c?"default":c,d=e.orientation,f=void 0===d?"horizontal":d,h=e.marginBottom,v=e.hideBottomBorder,g=void 0!==v&&v,w=e.children,k=(0,r.Z)(e,p),S="fullWidth"===u||"inverse_fullWidth"===u,_="inverse"===u||"inverse_fullWidth"===u,E=l.useRef(null),C=l.useRef(null),T=function(){var e=l.useState(null),t=(0,o.Z)(e,2),n=t[0],r=t[1],i=l.useState(null),a=(0,o.Z)(i,2),s=a[0],c=a[1];return{elementOutOBoundsLeft:n,elementOutOBoundsRight:s,determineElementsOutOfBounds:function(e,t){if(e&&t){var n=null===e||void 0===e?void 0:e.getBoundingClientRect().right,o=null===e||void 0===e?void 0:e.getBoundingClientRect().x,i=null,a=null;t.childNodes.forEach((function(e){var t=e.getBoundingClientRect(),s=t.x,l=t.right;s<o&&l>n||(Math.round(s)<Math.round(o-28)&&(i=e),Math.round(l)>Math.round(n+28)&&!a&&(a=e)),r(i),c(a)}))}}}}(),I=T.determineElementsOutOfBounds,B=T.elementOutOBoundsLeft,O=T.elementOutOBoundsRight,P=function(){var e,t=l.useState(!1),n=(0,o.Z)(t,2),r=n[0],i=n[1];return{showShadow:r,handleShadow:function(){e&&window.clearTimeout(e),i(!0),e=window.setTimeout((function(){i(!1)}),500)}}}(),R=P.handleShadow,A=P.showShadow,M=function(){R(),I(C.current,E.current)};return l.useEffect((function(){if(E.current&&C.current){var e,t=E.current.querySelector('[aria-current="page"]'),n=C.current.getBoundingClientRect().width;if(t&&((null===t||void 0===t?void 0:t.getBoundingClientRect().x)<0||(null===t||void 0===t?void 0:t.getBoundingClientRect().right)>n)){var r=t.getBoundingClientRect().x-C.current.getBoundingClientRect().x;C.current.scrollLeft+=r}null!==(e=C.current)&&void 0!==e&&e.addEventListener("scroll",M),window.addEventListener("resize",M),I(C.current,E.current)}}),[E.current,C.current]),l.useEffect((function(){return function(){C.current&&(C.current.removeEventListener("scroll",M),window.removeEventListener("resize",M))}}),[]),"vertical"===f?l.createElement(m.Provider,{value:{variant:u,orientation:f}},l.createElement(a.Box,(0,i.Z)((0,i.Z)({},(0,a.safelySpreadBoxProps)(k)),{},{as:"nav",ref:t,element:s}),l.createElement(a.Box,{as:"ul",listStyleType:"none",element:"".concat(s,"_ITEMS"),display:"flex",flexDirection:"column",margin:"space0",padding:"space0",width:"100%",rowGap:"space20"},w))):S?l.createElement(m.Provider,{value:{variant:u,orientation:f}},l.createElement(a.Box,(0,i.Z)((0,i.Z)({},(0,a.safelySpreadBoxProps)(k)),{},{as:"nav",ref:t,element:s}),l.createElement(a.Box,{as:"ul",listStyleType:"none",element:"".concat(s,"_ITEMS"),display:"flex",justifyContent:"space-evenly",columnGap:"space0",padding:"space0",margin:"space0",marginBottom:h||"space60",borderBottomWidth:g?"borderWidth0":"borderWidth10",borderBottomStyle:g?"none":"solid",borderBottomColor:_?"colorBorderInverseWeaker":"colorBorderWeaker"},w))):l.createElement(m.Provider,{value:{variant:u,orientation:f}},l.createElement(a.Box,(0,i.Z)((0,i.Z)({},(0,a.safelySpreadBoxProps)(k)),{},{as:"nav",marginBottom:h||"space60",display:"flex",ref:t,element:s,overflow:"hidden"}),l.createElement(y,{position:"left",onClick:function(){return b("left",B,O,C.current)},visible:Boolean(B),element:s,showShadow:A}),l.createElement(a.Box,{as:x,display:"flex",flexWrap:"nowrap",element:"".concat(s,"_SCROLL_WRAPPER"),overflowX:"auto",overflowY:"hidden",flexGrow:1,ref:C},l.createElement(a.Box,{as:"ul",ref:E,listStyleType:"none",element:"".concat(s,"_ITEMS"),display:"flex",flexGrow:1,justifyContent:"flex-start",padding:"space0",margin:"space0",columnGap:"space50",borderBottomWidth:g?"borderWidth0":"borderWidth10",borderBottomStyle:g?"none":"solid",borderBottomColor:_?"colorBorderInverseWeaker":"colorBorderWeaker"},w)),l.createElement(y,{position:"right",onClick:function(){return b("right",B,O,C.current)},visible:Boolean(O),element:s,showShadow:A})))}));w.displayName="InPageNavigation";var k={color:"colorTextWeak",minWidth:"sizeSquare130",textAlign:"center",fontSize:"fontSize30",fontWeight:"fontWeightMedium",overflow:"hidden",position:"relative",textOverflow:"ellipsis",transition:"border-color 100ms ease, color 100ms ease",whiteSpace:"nowrap",textDecoration:"none",_hover:{borderBottomColor:"colorBorderPrimaryStronger",borderLeftColor:"colorBorderPrimaryStronger",color:"colorTextLinkStronger"},_focus:{boxShadow:"shadowFocusInset",outline:"none",borderRadius:"borderRadius20"}},S=(0,i.Z)((0,i.Z)({},k),{},{width:"100%",display:"block",borderBottomColor:"transparent",borderBottomStyle:"solid",borderBottomWidth:"borderWidth10",paddingBottom:"space40",paddingLeft:"space30",paddingRight:"space30",paddingTop:"space40",borderTopLeftRadius:"borderRadius30",borderTopRightRadius:"borderRadius30",_focus:{borderTopLeftRadius:"borderRadius30",borderTopRightRadius:"borderRadius30",boxShadow:"shadowFocusInset",outline:"none"}}),_=(0,i.Z)((0,i.Z)({},k),{},{width:"auto",display:"block",borderLeftColor:"transparent",borderLeftStyle:"solid",borderLeftWidth:"borderWidth10",paddingBottom:"space30",paddingTop:"space30",paddingLeft:"space50",paddingRight:"space50",borderBottomRightRadius:"borderRadius30",borderTopRightRadius:"borderRadius30",whiteSpace:"break-spaces",_focus:{boxShadow:"shadowFocusInset",outline:"none",borderTopRightRadius:"borderRadius30",borderBottomRightRadius:"borderRadius30"}}),E={borderBottomColor:"colorBorderPrimary",borderLeftColor:"colorBorderPrimary",color:"colorTextLink",_focus:{borderBottom:"none",boxShadow:"shadowFocusInset",outline:"none"}},C={color:"colorTextInverseWeaker",_focus:{boxShadow:"shadowFocusInverseInset",outline:"none"},_hover:{borderBottomColor:"colorBorderInverse",borderLeftColor:"colorBorderInverse",color:"colorTextInverseWeaker"}},T={borderBottomColor:"colorBorderInverseStrong",borderLeftColor:"colorBorderInverseStrong",color:"colorTextInverse",_focus:{borderBottom:"none",boxShadow:"shadowFocusInverseInset",outline:"none"}},I=l.forwardRef((function(e,t){var n=e.element,o=void 0===n?"IN_PAGE_NAVIGATION_ITEM":n,s=e.currentPage,c=void 0!==s&&s,u=e.href,d=e.children,p=e.title,v=(0,r.Z)(e,h),g=l.useContext(m),y=g.variant,b=g.orientation,x="fullWidth"===y||"inverse_fullWidth"===y,w="inverse"===y||"inverse_fullWidth"===y,k={};return c&&(k=w?T:E),"vertical"===b?l.createElement(a.Box,{as:"li",ref:t,element:o,minWidth:"size0",marginBottom:"space20"},l.createElement(a.Box,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},(0,f.secureExternalLink)(u)),(0,a.safelySpreadBoxProps)(v)),_),w?C:{}),k),{},{as:"a",ref:t,element:"".concat(o,"_ANCHOR"),"aria-current":c?"page":void 0,href:u,width:"100%",textAlign:"start",title:p}),d)):l.createElement(a.Box,{as:"li",ref:t,element:o,display:"flex",flexBasis:x?"100%":void 0,flexGrow:x?1:void 0,flexShrink:x?1:void 0,minWidth:"size0"},l.createElement(a.Box,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},(0,f.secureExternalLink)(u)),(0,a.safelySpreadBoxProps)(v)),S),w?C:{}),k),{},{as:"a",ref:t,element:"".concat(o,"_ANCHOR"),"aria-current":c?"page":void 0,href:u,title:p}),d))}));I.displayName="InPageNavigationItem"},5385:function(e,t,n){"use strict";n.r(t),n.d(t,{InlineCode:function(){return l}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["children","element","variant"],l=a.forwardRef((function(e,t){var n=e.children,l=e.element,c=void 0===l?"INLINE_CODE":l,u=e.variant,d=void 0===u?"default":u,f=(0,o.Z)(e,s);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({as:"code",element:c,variant:d},(0,i.safelySpreadBoxProps)(f)),{},{borderWidth:"borderWidth10",borderStyle:"solid",borderRadius:"borderRadius20",fontFamily:"fontFamilyCode",fontSize:"inherit",lineHeight:"inherit",paddingX:"space20",color:"inherit",backgroundColor:"colorBackgroundWeak",borderColor:"colorBorderWeak",ref:t}),n)}));l.displayName="InlineCode"},463:function(e,t,n){"use strict";n.r(t),n.d(t,{InlineControlGroup:function(){return u}});var r=n(1413),o=n(4925),i=n(1923),a=n(324),s=n(9114),l=n(2791),c=["children","disabled","element","errorText","helpText","legend","orientation","required","i18nRequiredLabel","fieldStyleProps"],u=l.forwardRef((function(e,t){var n=e.children,u=e.disabled,d=e.element,f=void 0===d?"INLINE_CONTROL_GROUP":d,p=e.errorText,h=e.helpText,m=e.legend,v=e.orientation,g=void 0===v?"vertical":v,y=e.required,b=e.i18nRequiredLabel,x=e.fieldStyleProps,w=(0,o.Z)(e,c),k=Boolean(x);return l.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(w)),{},{as:"fieldset",element:f,margin:"space0",padding:"space0",minWidth:"0px",borderWidth:"borderWidth0",ref:t}),l.createElement(s.Label,{as:"legend",element:"LEGEND",htmlFor:void 0,required:y,marginBottom:"space0",disabled:u,i18nRequiredLabel:b},m),h&&l.createElement(a.HelpText,{marginTop:"space0"},h),l.createElement(i.Box,{element:"".concat(f,"_SET"),marginRight:k?void 0:"space20"},l.createElement(i.Box,{display:k&&"horizontal"===g?"inline-flex":"block",width:k?"100%":void 0},l.Children.map(n,(function(e,t){return l.createElement(i.Box,{element:"".concat(f,"_FIELD"),display:"horizontal"===g?"inline-block":"block",flexBasis:k?"50%":void 0,marginTop:null!==x&&void 0!==x&&x.marginTop?0===t&&"vertical"===g?"space40":null===x||void 0===x?void 0:x.marginTop:"space40",marginRight:"horizontal"!==g||k?null:"space70",marginLeft:k&&"horizontal"===g?0===t?"space0":"space30":"space0"},e)}))),p&&l.createElement(i.Box,{element:"".concat(f,"_ERROR_TEXT_WRAPPER"),marginTop:"space40"},l.createElement(a.HelpText,{variant:"error"},p))))}));u.displayName="InlineControlGroup"},2374:function(e,t,n){"use strict";n.r(t),n.d(t,{InputBox:function(){return m},InputChevronWrapper:function(){return x},Prefix:function(){return p},Suffix:function(){return h},getInputChevronIconColor:function(){return y}});var r=n(1413),o=n(4925),i=n(2791),a=n(1923),s=["children","disabled","readOnly","element","hasError","insertAfter","insertBefore","type","variant"],l=i.forwardRef((function(e,t){var n=e.disabled,r=e.element,o=e.hasError,s=e.readOnly,l=e.children,c=e.type,u=e.variant,d="colorBackgroundWeakest",f="shadowBorder",p="shadowBorderPrimary",h="shadowBorderPrimaryStronger";return n&&"hidden"!==c?(f="shadowBorderWeak",p="shadowBorderWeak",d="colorBackground",h="shadowBorderWeak"):s&&"hidden"!==c?(p="shadowBorder",d="colorBackground"):o&&"hidden"!==c?(f="shadowBorderError",p="shadowBorderErrorStronger"):"hidden"===c&&(f=null,p=null,d=null,h=null),i.createElement(a.Box,{element:r,ref:t,display:"flex",width:"100%",backgroundColor:d,boxShadow:f,borderRadius:"borderRadius30",transition:"box-shadow 100ms ease-in",cursor:n?"not-allowed":"text",variant:u,_hover:{boxShadow:p},_focusWithin:{boxShadow:n?f:"shadowFocusShadowBorder"},_active:{boxShadow:h}},l)}));l.displayName="DefaultFauxInput";var c=i.forwardRef((function(e,t){var n=e.disabled,r=e.element,o=e.hasError,s=e.readOnly,l=e.children,c=e.type,u=e.variant,d="colorBackgroundInverse",f="shadowBorderInverse",p="shadowBorderInverseStrongest";return n&&"hidden"!==c?(d="colorBackgroundInverse",f="shadowBorderInverseWeaker",p="shadowBorderInverseWeaker"):s&&"hidden"!==c?(d="colorBackgroundInverseStrong",p="shadowBorderInverse"):o&&"hidden"!==c?f="shadowBorderErrorWeak":"hidden"===c&&(d=null,f=null,p=null),i.createElement(a.Box,{element:r,ref:t,display:"flex",width:"100%",backgroundColor:d,boxShadow:f,borderRadius:"borderRadius30",color:"colorTextInverse",transition:"box-shadow 100ms ease-in",cursor:n?"not-allowed":"text",variant:u,_hover:{boxShadow:p},_focusWithin:{backgroundColor:"colorBackgroundInverse",boxShadow:n?f:"shadowFocusInverse"},_active:{boxShadow:p}},l)}));c.displayName="InverseFauxInput";var u={default:l,inverse:c},d=i.forwardRef((function(e,t){var n=e.children,r=e.disabled,o=e.element,a=e.hasError,s=e.readOnly,l=e.type,c=e.variant,d=void 0===c?"default":c,f=u[d];return i.createElement(f,{disabled:r,element:o,hasError:a,readOnly:s,type:l,variant:d,ref:t},n)}));d.displayName="FieldWrapper";var f=i.createContext(null),p=i.forwardRef((function(e,t){var n=e.children,r=e.disabled,o=e.element,s=void 0===o?"PREFIX":o,l=e.variant,c="colorBackgroundBodyElevation";return r&&"inverse"===l?c="none":"inverse"===l?c="colorBackgroundInverseElevation":r&&(c="none"),null==n?null:i.createElement(a.Box,{alignItems:"flex-start",backgroundColor:c,borderBottomLeftRadius:"borderRadius30",borderTopLeftRadius:"borderRadius30",display:"flex",element:"".concat(s,"_PREFIX"),lineHeight:"lineHeight20",padding:"space30",variant:l,ref:t},n)}));p.displayName="Prefix";var h=i.forwardRef((function(e,t){var n=e.children,r=e.disabled,o=e.element,s=void 0===o?"SUFFIX":o,l=e.variant,c="colorBackgroundBodyElevation";return r&&"inverse"===l?c="none":"inverse"===l?c="colorBackgroundInverseElevation":r&&(c="none"),null==n?null:i.createElement(a.Box,{alignItems:"flex-start",backgroundColor:c,borderBottomRightRadius:"borderRadius30",borderTopRightRadius:"borderRadius30",display:"flex",element:"".concat(s,"_SUFFIX"),lineHeight:"lineHeight20",padding:"space30",variant:l,ref:t},n)}));h.displayName="Suffix";var m=i.forwardRef((function(e,t){var n=e.children,a=e.disabled,l=void 0!==a&&a,c=e.readOnly,u=void 0!==c&&c,m=e.element,v=void 0===m?"INPUT_BOX":m,g=e.hasError,y=e.insertAfter,b=e.insertBefore,x=e.type,w=e.variant,k=void 0===w?"default":w,S=(0,o.Z)(e,s);return i.createElement(f.Provider,{value:{disabled:l,readOnly:u,variant:k}},i.createElement(d,(0,r.Z)({disabled:l,element:v,hasError:g,readOnly:u,type:x,variant:k,ref:t},S),b&&i.createElement(p,{disabled:l,element:v,variant:k},b),n,y&&i.createElement(h,{disabled:l,element:v,variant:k},y)))}));m.displayName="InputBox";var v=function(e,t){return e?"disabled":t?"readOnly":"default"},g={default:{default:"colorTextIcon",disabled:"colorTextWeaker",readOnly:"colorTextWeaker"},inverse:{default:"colorTextIconInverse",disabled:"colorTextInverseWeakest",readOnly:"colorTextInverseWeakest"}},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return g[e][v(t,n)]},b={default:{default:"colorBackgroundBodyElevation",disabled:"colorBackground",readOnly:"colorBackgroundBodyElevation"},inverse:{default:"colorBackgroundInverseElevation",disabled:"colorBackgroundInverse",readOnly:"colorBackgroundInverseElevation"}},x=i.forwardRef((function(e,t){var n=e.children,r=e.element,o=void 0===r?"CHEVRON_WRAPPER":r,s=function(){var e=i.useContext(f);if(!e)throw new Error("useInputBoxContext must be used within a <InputBox> component.");return e}(),l=s.disabled,c=s.readOnly,u=s.variant;return i.createElement(a.Box,{backgroundColor:b[u][v(l,c)],borderRadius:"borderRadius20",cursor:"pointer",alignItems:"center",display:"inline-flex",position:"absolute",pointerEvents:"none",right:"space30",top:"50%",transform:"translateY(-50%)",zIndex:"zIndex10",element:o,ref:t},n)}));x.displayName="InputChevronWrapper"},3693:function(e,t,n){"use strict";n.r(t),n.d(t,{Input:function(){return w},InputElement:function(){return x}});var r=n(885),o=n(1413),i=n(4925),a=n(1923),s=n(2374),l=n(3217),c=n(2791),u=n(9741),d=n(9282),f=n(1974),p=["i18nStepDownLabel","element","variant"],h=["i18nStepUpLabel","element","variant"],m=["element"],v=["disabled","element","hasError","id","insertAfter","insertBefore","max","min","name","placeholder","readOnly","required","step","type","value","variant","i18nStepUpLabel","i18nStepDownLabel"],g=c.forwardRef((function(e,t){var n=e.i18nStepDownLabel,r=void 0===n?"step value down":n,a=e.element,s=e.variant,l=(0,i.Z)(e,p);return c.createElement(u.Button,(0,o.Z)((0,o.Z)({},l),{},{ref:t,element:"".concat(a,"_DECREMENT_BUTTON"),variant:"reset",size:"reset",type:"button",borderRadius:"borderRadius20",backgroundColor:"inverse"===s?"colorBackgroundInverseElevation":"colorBackgroundBodyElevation",marginRight:"space30",_focus:{boxShadow:"inverse"===s?"shadowBorderInverseStrong":"shadowBorderPrimary"}}),c.createElement(d.v,{decorative:!1,title:r,size:"sizeIcon05",element:"".concat(a,"_DECREMENT_ICON")}))}));g.displayName="Decrement";var y=c.forwardRef((function(e,t){var n=e.i18nStepUpLabel,r=void 0===n?"step value up":n,a=e.element,s=e.variant,l=(0,i.Z)(e,h);return c.createElement(u.Button,(0,o.Z)((0,o.Z)({},l),{},{ref:t,element:"".concat(a,"_INCREMENT_BUTTON"),variant:"reset",size:"reset",type:"button",borderRadius:"borderRadius20",backgroundColor:"inverse"===s?"colorBackgroundInverseElevation":"colorBackgroundBodyElevation",marginRight:"space30",_focus:{boxShadow:"inverse"===s?"shadowBorderInverseStrong":"shadowBorderPrimary"}}),c.createElement(f.g,{decorative:!1,title:r,size:"sizeIcon05",element:"".concat(a,"_INCREMENT_ICON")}))}));y.displayName="Increment";var b=["className","style","size","height","width"],x=c.forwardRef((function(e,t){var n=e.element,r=(0,i.Z)(e,m);return c.createElement(a.Box,(0,o.Z)({appearance:"none",as:"input",backgroundColor:"transparent",border:"none",borderRadius:"borderRadius20",boxShadow:"none",color:"inherit",cursor:"date"!==r.type&&"time"!==r.type||r.readOnly||r.disabled?"auto":"text",display:"block",element:n,fontFamily:"inherit",fontSize:"fontSize30",fontWeight:"fontWeightMedium",lineHeight:"lineHeight20",margin:"space0",outline:"none",paddingBottom:"space30",paddingLeft:"space40",paddingRight:"space40",paddingTop:"space30",resize:"none",width:"100%",variant:r.variant,ref:t,_placeholder:{color:"inverse"===r.variant?"colorTextInverseWeaker":"colorTextWeak",fontStyle:"italic"},_focus_placeholder:{color:"inverse"===r.variant?"colorTextInverseWeaker":"colorTextWeak"},_disabled:{color:"inverse"===r.variant?"colorTextInverseWeakest":"colorTextWeaker",cursor:"not-allowed","-webkit-text-fill-color":"inverse"===r.variant?"colorTextInverseWeakest":"colorTextWeaker","-webkit-opacity":"1"},__webkit_datetime_edit:{display:"flex"},__webkit_calendar_picker_indicator_hover:{cursor:r.readOnly||r.disabled?"default":"pointer"},__webkit_inner_spin_button:{display:"none",margin:"space0"},__webkit_outer_spin_button:{display:"none",margin:"space0"},"-moz-appearance":"textfield"},r))}));x.displayName="InputElement";var w=c.forwardRef((function(e,t){var n,u=e.disabled,d=e.element,f=void 0===d?"INPUT":d,p=e.hasError,h=e.id,m=e.insertAfter,w=e.insertBefore,k=e.max,S=e.min,_=e.name,E=e.placeholder,C=e.readOnly,T=e.required,I=e.step,B=e.type,O=e.value,P=e.variant,R=e.i18nStepUpLabel,A=e.i18nStepDownLabel,M=(0,i.Z)(e,v),N={type:B},D=c.useRef(void 0),L=(0,l.qq)(D,t),j=c.useState(!0),z=(0,r.Z)(j,2),W=z[0],Z=z[1],F=c.useState(!0),H=(0,r.Z)(F,2),U=H[0],$=H[1],G=c.useState(null!==(n=null!==O&&void 0!==O?O:M.defaultValue)&&void 0!==n?n:"0"),q=(0,r.Z)(G,2),K=q[0],V=q[1];return c.useEffect((function(){if("number"===B){if(u)return $(!1),void Z(!1);var e=Number(K),t=I&&!isNaN(Number(I))?Number(I):1,n=Number(k);if(!isNaN(n)){var r=Number(S);isNaN(r)||((n-r)%t!==0&&console.error("[Paste Input]: when using min/max, and step values with a Number Input, please make sure that the min and max are multiples of the step value."),Z(e<n&&e+t<=n),$(e>r&&e-t>=r))}}}),[k,S,I,u,B,K]),c.createElement(s.InputBox,{disabled:u,element:f,hasError:p,insertAfter:m,insertBefore:w,readOnly:C,type:B,variant:P},c.createElement(x,(0,o.Z)((0,o.Z)((0,o.Z)({"aria-invalid":p,"aria-readonly":C},function(e){return Object.keys(e).reduce((function(t,n){return b.includes(n)||(t[n]=e[n]),t}),{})}(M)),N),{},{disabled:u,element:"".concat(f,"_ELEMENT"),id:h,name:_,max:k,min:S,placeholder:E,readOnly:C,ref:L,required:T,step:I,value:O,variant:P,onChange:function(e){null!=M.onChange&&"function"==typeof M.onChange&&M.onChange(e),V(e.target.value)}})),"number"===B?c.createElement(a.Box,{display:"flex",flexDirection:"column",rowGap:"space10",justifyContent:"center",element:"".concat(f,"_STEP_WRAPPER")},W?c.createElement(y,{element:f,onClick:function(){var e,t,n;null===(e=D.current)||void 0===e||e.stepUp();var r=new Event("change",{bubbles:!0});null!==(t=D.current)&&void 0!==t&&t.dispatchEvent(r),null===(n=D.current)||void 0===n||n.focus()},i18nStepUpLabel:R,variant:P}):c.createElement(a.Box,{height:"12px",width:"12px",element:"".concat(f,"_INCREMENT_PLACEHOLDER")}),U?c.createElement(g,{element:f,onClick:function(){var e,t,n;null===(e=D.current)||void 0===e||e.stepDown();var r=new Event("change",{bubbles:!0});null!==(t=D.current)&&void 0!==t&&t.dispatchEvent(r),null===(n=D.current)||void 0===n||n.focus()},i18nStepDownLabel:A,variant:P}):c.createElement(a.Box,{height:"12px",width:"12px",element:"".concat(f,"_DECREMENT_PLACEHOLDER")})):c.createElement(c.Fragment,null))}));w.displayName="Input"},396:function(e,t,n){"use strict";n.r(t),n.d(t,{KeyboardKey:function(){return m},KeyboardKeyGroup:function(){return v},useKeyCombination:function(){return b},useKeyCombinations:function(){return x}});var r=n(2982),o=n(885),i=n(1413),a=n(4925),s=n(1923),l=n(2791),c=["element","keyEvent"],u=["element","activeKeys","disabled","enablePressStyles","variant"],d=l.createContext({}),f={default:{borderColor:"colorBorderWeak",backgroundColor:"colorBackgroundWeak",boxShadow:"shadowBorderBottomWeak"},inverse:{borderColor:"colorBorderInverseWeaker",backgroundColor:"colorBackgroundInverse",color:"colorTextInverse",boxShadow:"shadowBorderBottomInverseWeaker"}},p={default:{color:"colorTextWeak",borderColor:"colorBorderWeakest",boxShadow:void 0},inverse:{color:"colorTextInverseWeaker",borderColor:"colorBorderInverseWeakest",boxShadow:void 0}},h={default:{backgroundColor:"colorBackgroundStrong",boxShadow:void 0},inverse:{backgroundColor:"colorBackgroundInverseStronger",boxShadow:void 0}},m=l.forwardRef((function(e,t){var n=e.element,r=void 0===n?"KEYBOARD_KEY":n,o=e.keyEvent,u=(0,a.Z)(e,c),m=l.useContext(d),v=m.disabled,g=m.activeKeys,y=m.enablePressStyles,b=m.variant,x=void 0===b?"default":b,w=!v&&g&&o&&g.map((function(e){return e.toLowerCase()})).includes(o.toLowerCase());return l.createElement(s.Box,(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(u)),{},{element:r,ref:t,borderWidth:"borderWidth10",borderRadius:"borderRadius20",borderStyle:"solid",width:"fit-content",minWidth:"sizeBase60",display:"inline-flex",justifyContent:"center",paddingX:"space20",as:"kbd",fontFamily:"fontFamilyText"},f[x]),v?p[x]:{}),w&&y?h[x]:{}),u.children)}));m.displayName="KeyboardKey";var v=l.forwardRef((function(e,t){var n=e.element,r=void 0===n?"KEYBOARD_KEY_GROUP":n,o=e.activeKeys,c=e.disabled,f=void 0!==c&&c,p=e.enablePressStyles,h=void 0!==p&&p,m=e.variant,v=void 0===m?"default":m,g=(0,a.Z)(e,u);return l.createElement(d.Provider,{value:{activeKeys:o,disabled:f,enablePressStyles:h,variant:v}},l.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(g)),{},{element:r,ref:t,display:"inline-flex",columnGap:"space20"}),g.children))}));v.displayName="KeyboardKeyGroup";var g=function(){var e=l.useState([]),t=(0,o.Z)(e,2),n=t[0],i=t[1],a=function(e){e.repeat||i((function(t){return Array.from(new Set([].concat((0,r.Z)(t),[e.key.toLowerCase()])))}))},s=function(e){"Meta"===e.key?i([]):i((function(t){return(0,r.Z)(t).filter((function(t){return t.toLowerCase()!==e.key.toLowerCase()}))}))};return l.useEffect((function(){return window.addEventListener("keydown",a),window.addEventListener("keyup",s),function(){window.removeEventListener("keydown",a),window.removeEventListener("keyup",s)}}),[]),{activeKeys:n}},y=function(e,t){return JSON.stringify(e.sort((function(e,t){return e.localeCompare(t)})).map((function(e){return e.toLowerCase()})))===JSON.stringify(t.sort((function(e,t){return e.localeCompare(t)})))},b=function(e){var t=e.keys,n=e.onCombinationPress,r=e.disabled,o=e.enablePressStyles,i=g().activeKeys;return l.useEffect((function(){y(t,i)&&!r&&n()}),[i]),{activeKeys:i,disabled:r,enablePressStyles:o}},x=function(e){var t=e.combinations,n=g().activeKeys;return l.useEffect((function(){var e=t.find((function(e){return y(e.keys,n)}));e&&!e.disabled&&e.onCombinationPress()}),[n,t]),{activeKeys:n}}},9114:function(e,t,n){"use strict";n.r(t),n.d(t,{Label:function(){return p},RequiredDot:function(){return f}});var r=n(1413),o=n(4925),i=n(1923),a=n(1631),s=n(9132),l=n(2791),c=n(9643),u=["element","i18nLabel"],d=["as","marginBottom","required","optional","disabled","children","variant","element","i18nRequiredLabel","i18nOptionalLabel"],f=function(e){var t=e.element,n=void 0===t?"REQUIRED_DOT":t,a=e.i18nLabel,s=void 0===a?"Required":a,d=(0,o.Z)(e,u);return l.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(d)),{},{alignItems:"center",justifyContent:"center",as:"span",cursor:"pointer",display:"flex",height:"sizeIcon30",title:s,element:"".concat(n,"_WRAPPER")}),l.createElement(i.Box,{as:"span",backgroundColor:"colorBackgroundRequired",borderRadius:"borderRadiusCircle",display:"block",height:"4px",width:"4px",position:"relative",element:n},l.createElement(c.ScreenReaderOnly,null,s)))};f.displayName="RequiredDot";var p=l.forwardRef((function(e,t){var n=e.as,c=void 0===n?"label":n,u=e.marginBottom,p=e.required,h=e.optional,m=e.disabled,v=e.children,g=e.variant,y=e.element,b=void 0===y?"LABEL":y,x=e.i18nRequiredLabel,w=void 0===x?"":x,k=e.i18nOptionalLabel,S=void 0===k?"(optional)":k,_=(0,o.Z)(e,d),E="colorText";m&&"inverse"===g?E="colorTextInverseWeaker":m?E="colorTextWeak":"inverse"===g&&(E="colorTextInverse");var C="pointer";return m?C="not-allowed":("legend"===c||"div"===c)&&(C="default"),l.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(_)),{},{as:c,borderBottomWidth:"borderWidth0",display:"block",marginBottom:u||"space20",paddingLeft:"space0",paddingRight:"space0",textTransform:"none",element:b,fontSize:"fontSize30",fontWeight:"fontWeightMedium",lineHeight:"lineHeight30",color:E,cursor:C,ref:t}),l.createElement(a.MediaObject,{verticalAlign:"top"},p&&l.createElement(a.MediaFigure,{spacing:"space20"},l.createElement(f,{element:"".concat(b,"_REQUIRED_DOT"),i18nLabel:w})),l.createElement(a.MediaBody,null,v,h&&l.createElement(s.Text,{as:"span",fontStyle:"italic",color:"inverse"===g?"colorTextInverseWeaker":"colorTextWeak",element:"".concat(b,"_OPTIONAL_TEXT"),marginLeft:"space20"},S))))}));p.displayName="Label"},2299:function(e,t,n){"use strict";n.r(t),n.d(t,{List:function(){return g},ListItem:function(){return y},OrderedDisplayList:function(){return S},OrderedDisplayListHeading:function(){return T},OrderedDisplayListItem:function(){return C},OrderedList:function(){return b},UnorderedList:function(){return I}});var r=n(1413),o=n(4925),i=n(9132),a=n(2791),s=n(1923),l=n(7666),c=n(6373),u=["as","children","element","listStyleType"],d=["children","element"],f=["children","element","marginTop","marginBottom"],p=["children","element","marginTop","marginBottom","variant"],h=["children","element"],m=["children","element","as"],v=["children","element","marginTop","marginBottom"],g=a.forwardRef((function(e,t){var n=e.as,s=e.children,l=e.element,c=void 0===l?"LIST":l,d=e.listStyleType,f=(0,o.Z)(e,u);return a.createElement(i.Text,(0,r.Z)((0,r.Z)({},f),{},{as:n,color:"colorText",element:c,fontSize:"fontSize30",fontWeight:"fontWeightNormal",lineHeight:"lineHeight40",marginLeft:"space70",listStyleType:d,ref:t}),s)}));g.displayName="List";var y=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"LIST_ITEM":s,c=(0,o.Z)(e,d);return a.createElement(i.Text,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadTextProps)(c)),{},{as:"li",color:"colorText",element:l,fontSize:"fontSize30",fontWeight:"fontWeightNormal",lineHeight:"lineHeight40",marginBottom:"space30",marginTop:"space30",ref:t}),n)}));y.displayName="ListItem";var b=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"ORDERED_LIST":s,c=e.marginTop,u=e.marginBottom,d=void 0===u?"space70":u,p=(0,o.Z)(e,f);return a.createElement(g,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadTextProps)(p)),{},{as:"ol",element:l,marginTop:c,marginBottom:d,listStyleType:"decimal",ref:t}),n)}));b.displayName="OrderedList";var x=a.createContext({variant:"heading30"}),w={heading20:"space100",heading30:"space90",heading40:"space80",heading50:"space70",heading60:"space60"},k=(0,l.iK)(s.Box)((function(e){var t=e.variant;return(0,l.iv)({counterReset:"list-counter",margin:"space0",padding:"space0",listStyle:"none",display:"grid",gap:w[t]})})),S=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"ORDERED_DISPLAY_LIST":s,c=e.marginTop,u=e.marginBottom,d=void 0===u?"space70":u,f=e.variant,h=void 0===f?"heading30":f,m=(0,o.Z)(e,p);return a.createElement(x.Provider,{value:{variant:h}},a.createElement(k,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadTextProps)(m)),{},{as:"ol",element:l,marginTop:c,marginBottom:d,ref:t,variant:h}),n))}));S.displayName="OrderedDisplayList";var _={heading20:{before:{width:"sizeSquare100",fontSize:"fontSize70",lineHeight:"lineHeight70"},element:{fontSize:"fontSize40",lineHeight:"lineHeight40"}},heading30:{before:{width:"sizeSquare80",fontSize:"fontSize60",lineHeight:"lineHeight60"},element:{fontSize:"fontSize40",lineHeight:"lineHeight40"}},heading40:{before:{width:"sizeSquare70",fontSize:"fontSize40",lineHeight:"lineHeight40"},element:{fontSize:"fontSize30",lineHeight:"lineHeight30"}},heading50:{before:{width:"sizeSquare60",fontSize:"fontSize30",lineHeight:"lineHeight30"},element:{fontSize:"fontSize30",lineHeight:"lineHeight30"}},heading60:{before:{width:"sizeSquare60",fontSize:"fontSize20",lineHeight:"lineHeight20"},element:{fontSize:"fontSize20",lineHeight:"lineHeight20"}}},E=(0,l.iK)(s.Box)((function(e){var t=e.variant,n=_[t];return(0,l.iv)((0,r.Z)((0,r.Z)({display:"grid",gridTemplateColumns:"auto 1fr",alignItems:"start",gap:"space70"},n.element),{},{"&:before":(0,r.Z)({display:"inline-block",position:"relative",counterIncrement:"list-counter",content:"counter(list-counter)",color:"colorTextWeak",textAlign:"right",fontWeight:"fontWeightSemibold"},n.before)}))})),C=a.forwardRef((function(e,t){var n=e.children,i=e.element,l=void 0===i?"ORDERED_DISPLAY_LIST_ITEM":i,c=(0,o.Z)(e,h),u=a.useContext(x).variant;return a.createElement(E,(0,r.Z)((0,r.Z)({},(0,s.safelySpreadBoxProps)(c)),{},{as:"li",element:l,variant:u,ref:t}),a.createElement("div",null,n))}));C.displayName="OrderedDisplayListItem";var T=a.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"ORDERED_DISPLAY_LIST_HEADING":i,l=e.as,u=void 0===l?"div":l,d=(0,o.Z)(e,m),f=a.useContext(x).variant;return a.createElement(c.Heading,(0,r.Z)((0,r.Z)({},d),{},{ref:t,as:u,variant:f,element:s,marginBottom:"space0"}),n)}));T.displayName="OrderedDisplayListHeading";var I=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"UNORDERED_LIST":s,c=e.marginTop,u=e.marginBottom,d=void 0===u?"space70":u,f=(0,o.Z)(e,v);return a.createElement(g,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadTextProps)(f)),{},{as:"ul",element:l,marginTop:c,marginBottom:d,ref:t,listStyleType:"disc"}),n)}));I.displayName="UnorderedList"},9673:function(e,t,n){"use strict";n.r(t),n.d(t,{ListboxPrimitive:function(){return c},ListboxPrimitiveGroup:function(){return i.ES},ListboxPrimitiveItem:function(){return u},useListboxPrimitiveState:function(){return d}});var r=n(1413),o=n(4925),i=n(4086),a=n(2791),s=["variant","orientation"],l=["selected","onSelect"],c=a.forwardRef((function(e,t){var n=e.variant,l=void 0===n?"single":n,c=e.orientation,u=(0,o.Z)(e,s);return a.createElement(i.bU,(0,r.Z)((0,r.Z)({as:"div"},u),{},{ref:t,role:"listbox","aria-multiselectable":"multiple"===l,"aria-orientation":c}))}));c.displayName="ListboxPrimitive";var u=a.forwardRef((function(e,t){var n=e.selected,s=void 0!==n&&n,c=e.onSelect,u=(0,o.Z)(e,l);return a.createElement(i.A8,(0,r.Z)((0,r.Z)({as:"button"},u),{},{ref:t,role:"option","aria-selected":s,type:"button",onClick:c}))}));u.displayName="ListboxPrimitiveItem";var d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.Z)({},(0,i.uN)((0,r.Z)((0,r.Z)({orientation:"vertical"},e),{},{loop:"horizontal"})))}},1631:function(e,t,n){"use strict";n.r(t),n.d(t,{MediaBody:function(){return f},MediaFigure:function(){return d},MediaObject:function(){return u}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["as","children","element","marginBottom","marginTop","verticalAlign"],l=["align","as","children","element","spacing"],c=["as","children","element"],u=a.forwardRef((function(e,t){var n=e.as,l=void 0===n?"span":n,c=e.children,u=e.element,d=void 0===u?"MEDIA_OBJECT":u,f=e.marginBottom,p=e.marginTop,h=e.verticalAlign,m=void 0===h?"top":h,v=(0,o.Z)(e,s);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(v)),{},{alignItems:"top"===m?"flex-start":"center",as:l,display:"flex",element:d,marginBottom:f,marginTop:p,ref:t}),c)}));u.displayName="MediaObject";var d=a.forwardRef((function(e,t){var n=e.align,s=void 0===n?"start":n,c=e.as,u=void 0===c?"span":c,d=e.children,f=e.element,p=void 0===f?"MEDIA_FIGURE":f,h=e.spacing,m=void 0===h?"space0":h,v=(0,o.Z)(e,l);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(v)),{},{as:u,display:"flex",element:p,flexShrink:0,marginLeft:"end"===s?m:void 0,marginRight:"start"===s?m:void 0,ref:t}),d)}));d.displayName="MediaFigure";var f=a.forwardRef((function(e,t){var n=e.as,s=void 0===n?"span":n,l=e.children,u=e.element,d=void 0===u?"MEDIA_BODY":u,f=(0,o.Z)(e,c);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(f)),{},{as:s,element:d,flex:1,minWidth:"size0",ref:t}),l)}));f.displayName="MediaBody"},6074:function(e,t,n){"use strict";n.r(t),n.d(t,{MenuPrimitive:function(){return r.v2},MenuPrimitiveButton:function(){return r.j2},MenuPrimitiveGroup:function(){return r.kS},MenuPrimitiveItem:function(){return r.sN},MenuPrimitiveItemCheckbox:function(){return r.mb},MenuPrimitiveItemRadio:function(){return r.tO},MenuPrimitiveSeparator:function(){return r.Cl},useMenuPrimitiveState:function(){return r.w8}});var r=n(4086)},8912:function(e,t,n){"use strict";n.r(t),n.d(t,{Menu:function(){return M},MenuBadge:function(){return L},MenuBadgeContent:function(){return D},MenuButton:function(){return N},MenuGroup:function(){return H},MenuGroupContext:function(){return F},MenuItem:function(){return Y},MenuItemCheckbox:function(){return X},MenuItemRadio:function(){return J},MenuSeparator:function(){return ee},StyledMenuItem:function(){return V},SubMenuButton:function(){return te},getComputedVariant:function(){return K},useMenuState:function(){return l.w8}});var r,o,i=n(4942),a=n(1413),s=n(4925),l=n(4086),c=n(1923),u=n(2791),d=n(9741),f=n(6431),p=n(9282),h=n(9643),m=n(9132),v=n(1076),g=n(2310),y=n(7350),b=n(8012),x=n(1631),w=["style"],k=["element"],S=["element"],_=["children","element","i18nButtonLabel"],E=["children","element","variant","i18nButtonLabel"],C=["label","icon","children","element"],T=["element","href","variant","tabIndex","children"],I=["as","variant","element"],B=["as","variant","element"],O=["as","variant","element"],P=["element"],R=["element"],A=u.forwardRef((function(e,t){var n=e.style,r=(0,s.Z)(e,w);return u.createElement(c.Box,(0,a.Z)((0,a.Z)({},(0,c.safelySpreadBoxProps)(r)),{},{backgroundColor:"colorBackgroundWeaker",borderRadius:"borderRadius30",boxShadow:"shadowElevation10",maxWidth:"size30",minWidth:"size20",zIndex:"zIndex20",paddingY:"space30",_focus:{outline:"none"},style:n,ref:t}),u.createElement(c.Box,{maxHeight:"size50",overflowY:"auto"},r.children))}));A.displayName="StyledMenu";var M=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"MENU":n,o=(0,s.Z)(e,k);return u.createElement(l.v2,(0,a.Z)((0,a.Z)({},o),{},{element:r,as:A,ref:t}))}));M.displayName="Menu";var N=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"MENU_BUTTON":n,o=(0,s.Z)(e,S);return u.createElement(l.j2,(0,a.Z)((0,a.Z)({},o),{},{element:r,as:d.Button,ref:t}),o.children)}));N.displayName="MenuButton";var D=u.forwardRef((function(e,t){var n=e.children,r=e.element,o=e.i18nButtonLabel,i=(0,s.Z)(e,_);return u.createElement(c.Box,{as:"span",display:"flex",flexDirection:"row",columnGap:"space20",alignItems:"center"},n,u.createElement(l.j2,(0,a.Z)((0,a.Z)({},i),{},{variant:"secondary_icon",size:"reset",element:"".concat(r,"_BUTTON"),as:d.Button,ref:t}),u.createElement(p.v,{decorative:!0,size:"sizeIcon10"}),u.createElement(h.ScreenReaderOnly,null,o)))}));D.displayName="MenuBadgeContent";var L=u.forwardRef((function(e,t){var n=e.children,r=e.element,o=void 0===r?"MENU_BADGE":r,i=e.variant,l=void 0===i?"default":i,c=e.i18nButtonLabel,d=(0,s.Z)(e,E);return u.createElement(f.Badge,{element:o,as:"span",variant:l},u.createElement(D,(0,a.Z)((0,a.Z)({},d),{},{element:o,i18nButtonLabel:c,ref:t}),n))}));L.displayName="MenuBadge";var j="default",z="destructive",W="group_item",Z="destructive_group_item",F=u.createContext(j),H=u.forwardRef((function(e,t){var n=e.label,r=e.icon,o=e.children,i=e.element,l=void 0===i?"MENU_GROUP":i,d=(0,s.Z)(e,C);return u.createElement(F.Provider,{value:W},u.createElement(c.Box,(0,a.Z)((0,a.Z)({},(0,c.safelySpreadBoxProps)(d)),{},{element:l,role:"presentation","aria-label":n,textDecoration:"none",ref:t}),u.createElement(c.Box,{display:"flex",alignItems:"center",paddingX:"space70",paddingY:"space30",cursor:"default"},u.isValidElement(r)?u.createElement(c.Box,{flexShrink:0,size:"sizeIcon30"},u.cloneElement(r,{color:"colorTextIcon"})):null,u.createElement(m.Text,{as:"span",color:"colorTextWeak",fontSize:"fontSize20",role:"presentation",fontWeight:"fontWeightBold",paddingLeft:null!=r?"space20":void 0},n)),o))}));H.displayName="MenuGroup";var U=(r={},(0,i.Z)(r,j,{color:"colorText",_hover:{color:"colorTextPrimary",backgroundColor:"colorBackgroundBodyElevationPrimary"},_focus:{color:"colorTextPrimary",backgroundColor:"colorBackgroundBodyElevationPrimary"},_checked:{backgroundColor:"colorBackgroundBodyElevationPrimary",color:"colorText"}}),(0,i.Z)(r,z,{color:"colorTextDestructive",_hover:{backgroundColor:"colorBackgroundDestructiveWeakest"},_focus:{backgroundColor:"colorBackgroundDestructiveWeakest"}}),r),$=(o={},(0,i.Z)(o,W,(0,a.Z)((0,a.Z)({},U[j]),{},{paddingLeft:"space90"})),(0,i.Z)(o,Z,(0,a.Z)((0,a.Z)({},U[z]),{},{paddingLeft:"space90"})),o),G=(0,a.Z)((0,a.Z)({},U),$),q=function(e){var t=e.disabled,n=e.variant;return t||n===z||n===Z?"inherit":"colorTextPrimary"},K=function(e,t){return t?e===z?Z:W:e},V=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"STYLED_MENU_ITEM":n,o=e.href,i=e.variant,l=void 0===i?"default":i,d=(e.tabIndex,e.children),f=(0,s.Z)(e,T);return u.createElement(c.Box,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({variant:l},o&&(0,v.secureExternalLink)(o)),{},{href:o,as:o?"a":"button"},(0,c.safelySpreadBoxProps)(f)),{},{element:r,appearance:"none",background:"none",border:"none",display:"block",textAlign:"left",fontFamily:"inherit",fontSize:"fontSize30",fontWeight:"fontWeightNormal",lineHeight:"lineHeight30",outline:"none",paddingY:"space30",borderRadius:"borderRadius30",marginY:"space10",marginX:"space20",cursor:"pointer",paddingX:"space70",width:"fill-available"},G[l]),{},{_checked_hover:{backgroundColor:"colorBackgroundWeakerElevation",color:l===z?"colorTextDestructive":"colorTextPrimary","& [data-paste-element='ICON']":{color:"colorTextIcon"}},_disabled:{color:"colorTextWeaker",cursor:"not-allowed",backgroundColor:"colorBackgroundWeaker",borderColor:"transparent"},ref:t}),null!=f["aria-checked"]?u.createElement(c.Box,{as:"span",display:"flex",columnGap:"space50",justifyContent:"space-between",alignItems:"center"},d,u.createElement(c.Box,{as:"span",visibility:f["aria-checked"]?"visible":"hidden"},u.createElement(g.c,{decorative:!0,color:q({disabled:f.disabled,variant:l})}))):d)}));V.displayName="StyledMenuItem";var Y=u.forwardRef((function(e,t){var n=e.as,r=void 0===n?V:n,o=e.variant,i=e.element,c=void 0===i?"MENU_ITEM":i,d=(0,s.Z)(e,I),f=u.useContext(F)===W,p=o&&K(o,f);return u.createElement(l.sN,(0,a.Z)((0,a.Z)({},d),{},{element:c,variant:p,as:r,ref:t}))}));Y.displayName="MenuItem";var X=u.forwardRef((function(e,t){var n=e.as,r=void 0===n?V:n,o=e.variant,i=e.element,c=void 0===i?"MENU_ITEM_CHECKBOX":i,d=(0,s.Z)(e,B),f=u.useContext(F)===W,p=o&&K(o,f);return u.createElement(l.mb,(0,a.Z)((0,a.Z)({},d),{},{element:c,variant:p,as:r,ref:t}))}));X.displayName="MenuItemCheckbox";var J=u.forwardRef((function(e,t){var n=e.as,r=void 0===n?V:n,o=e.variant,i=e.element,c=void 0===i?"MENU_ITEM_RADIO":i,d=(0,s.Z)(e,O),f=u.useContext(F)===W,p=o&&K(o,f);return u.createElement(l.tO,(0,a.Z)((0,a.Z)({},d),{},{element:c,variant:p,as:r,ref:t}))}));J.displayName="MenuItemRadio";var Q=u.forwardRef((function(e,t){return u.createElement(y.Separator,(0,a.Z)((0,a.Z)({},e),{},{orientation:"horizontal",verticalSpacing:"space40",ref:t}))}));Q.displayName="StyledMenuSeparator";var ee=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"MENU_SEPARATOR":n,o=(0,s.Z)(e,P);return u.createElement(l.Cl,(0,a.Z)((0,a.Z)({},o),{},{element:r,as:Q,ref:t}))}));ee.displayName="MenuSeparator";var te=u.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SUBMENU_BUTTON":n,o=(0,s.Z)(e,R);return u.createElement(l.j2,(0,a.Z)((0,a.Z)({},o),{},{as:V,element:r,ref:t}),u.createElement(x.MediaObject,{as:"span",verticalAlign:"center",element:"".concat(r,"_MEDIA_OBJECT")},o.children&&u.createElement(x.MediaBody,{as:"span",element:"".concat(r,"_MEDIA_BODY")},o.children),u.createElement(x.MediaFigure,{as:"span",align:"end",spacing:"space20",element:"".concat(r,"_MEDIA_FIGURE")},u.createElement(b.X,{decorative:!0,size:"sizeIcon30",element:"".concat(r,"_ICON")}))))}));te.displayName="SubMenuButton"},1960:function(e,t,n){"use strict";n.r(t),n.d(t,{Meter:function(){return p},MeterLabel:function(){return h}});var r=n(1413),o=n(4925),i=n(1923),a=n(875),s=n(9132),l=n(2791),c=n(9114),u=["element","id","minLabel","maxLabel"],d=["element","children","htmlFor","valueLabel"],f="METER_LABEL",p=l.forwardRef((function(e,t){var n=e.element,c=void 0===n?"METER":n,d=e.id,p=e.minLabel,h=e.maxLabel,m=(0,o.Z)(e,u),v=m.value,g=void 0===v?0:v,y=m.minValue,b=void 0===y?0:y,x=m.maxValue,w=void 0===x?100:x,k=m["aria-labelledby"];null==k&&null==m["aria-label"]&&null!=d&&(k="".concat(d).concat(f));var S=(0,a.MJ)((0,r.Z)((0,r.Z)({},m),{},{"aria-labelledby":k})).meterProps,_=(g-b)/(w-b),E="".concat(Math.round(100*_),"%");return l.createElement(i.Box,(0,r.Z)((0,r.Z)({as:"div"},S),{},{role:"meter",id:d,ref:t,width:"100%",position:"relative",element:c,"aria-labelledby":k}),l.createElement(i.Box,{height:"10px",backgroundColor:"colorBackgroundStrong",borderRadius:"borderRadiusPill",element:"".concat(c,"_BAR")},l.createElement(i.Box,{width:E,height:"10px",backgroundColor:"colorBackgroundPrimaryStronger",borderTopLeftRadius:"borderRadiusPill",borderBottomLeftRadius:"borderRadiusPill",borderTopRightRadius:"100%"===E?"borderRadiusPill":"borderRadius10",borderBottomRightRadius:"100%"===E?"borderRadiusPill":"borderRadius10",element:"".concat(c,"_FILL")})),(p||h)&&l.createElement(i.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",columnGap:"space20",marginTop:"space20","aria-hidden":"true",overflowWrap:"anywhere",element:"".concat(c,"_MIN_MAX_WRAPPER")},p?l.createElement(s.Text,{as:"span",color:"colorTextWeak",fontWeight:"fontWeightNormal",element:"".concat(c,"_MIN")},p):l.createElement("span",null),h?l.createElement(s.Text,{as:"span",color:"colorTextWeak",fontWeight:"fontWeightNormal",textAlign:"end",element:"".concat(c,"_MAX")},h):l.createElement("span",null)))}));p.displayName="Meter";var h=l.forwardRef((function(e,t){var n=e.element,a=void 0===n?"METER_LABEL":n,u=e.children,p=e.htmlFor,h=e.valueLabel,m=(0,o.Z)(e,d);return l.createElement(i.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",element:"".concat(a,"_WRAPPER")},l.createElement(c.Label,(0,r.Z)((0,r.Z)({},m),{},{as:"div",element:a,id:"".concat(p).concat(f),ref:t}),u),h&&l.createElement(s.Text,{as:"span",fontWeight:"fontWeightSemibold",textAlign:"end",marginBottom:"space20",marginLeft:"space20","aria-hidden":"true",element:"".concat(a,"_VALUE_LABEL")},h))}));h.displayName="MeterLabel"},7882:function(e,t,n){"use strict";n.r(t),n.d(t,{MinimizableDialog:function(){return C},MinimizableDialogButton:function(){return T},MinimizableDialogContainer:function(){return P},MinimizableDialogContent:function(){return R},MinimizableDialogHeader:function(){return I},useMinimizableDialogState:function(){return B}});var r=n(885),o=n(1413),i=n(4925),a=n(1923),s=n(4086),l=n(2714),c=n(2791),u=n(9741),d=n(1974),f=n(8045),p=n(1350),h=n(9643),m=n(2276),v=["minimized","style"],g=["children","element"],y=["children","element"],b=["children","element","i18nDismissLabel","i18nMinimizeLabel"],x=["minimized"],w=["gutter","children","placement","modal","state","minimized"],k=["children","element"],S=c.createContext({}),_=function(e){var t=e.element,n=e.children;return c.createElement(a.Box,{element:t,borderRadius:"borderRadius20",display:"flex",flexDirection:"column",backgroundColor:"colorBackgroundWeaker",width:"size40",boxShadow:"shadowElevationTop20"},n)};_.displayName="StyledMinimizableDialog";var E=c.forwardRef((function(e,t){var n=e.minimized,r=e.style,s=(0,i.Z)(e,v);return c.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(s)),{},{ref:t,zIndex:"zIndex80",transform:"none!important",position:"absolute",inset:"auto 1.5rem ".concat(!0===n?"0":"1.5","rem auto!important"),_focus:{outline:"none"},style:r}))}));E.displayName="StyledMinimizableDialog";var C=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"MINIMIZABLE_DIALOG":r,u=(0,i.Z)(e,g),d=c.useContext(S);return c.createElement(s.J2,(0,o.Z)((0,o.Z)((0,o.Z)({},d),u),{},{as:E,ref:t,preventBodyScroll:!1,hideOnClickOutside:!1}),c.createElement(l.ko,null,c.createElement(_,{element:a},n)))}));C.displayName="MinimizableDialog";var T=c.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"MINIMIZABLE_DIALOG_BUTTON":r,l=(0,i.Z)(e,y),d=c.useContext(S);return c.createElement(s.xM,(0,o.Z)((0,o.Z)((0,o.Z)({element:a},d),l),{},{as:u.Button,ref:t}),n)}));T.displayName="MinimizableDialogButton";var I=c.forwardRef((function(e,t){var n=e.children,r=e.element,s=void 0===r?"MINIMIZABLE_DIALOG_HEADER":r,l=e.i18nDismissLabel,m=void 0===l?"close":l,v=e.i18nMinimizeLabel,g=void 0===v?"minimize":v,y=(0,i.Z)(e,b),x=c.useContext(S),w=x.hide,k=x.minimized,_=x.minimize,E=x.expand;return c.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(y)),{},{ref:t,display:"grid",gridTemplateColumns:"1fr auto auto",columnGap:"space30",backgroundColor:k?"colorBackgroundBodyElevation":"colorBackgroundWeaker",paddingX:"space70",paddingY:"space40",color:"colorTextWeak",overflow:"hidden",boxShadow:k?"shadowElevation10":"none",element:s}),c.createElement(a.Box,{as:"h2",element:"".concat(s,"_HEADING"),fontWeight:"fontWeightSemibold",fontSize:"fontSize30",lineHeight:"lineHeight30",margin:"space0"},n),c.createElement(u.Button,{element:"".concat(s,"_MINIMIZE_BUTTON"),variant:"secondary_icon",size:"reset",onClick:k?E:_,"aria-pressed":void 0!==k&&k},k?c.createElement(d.g,{element:"".concat(s,"_MINIMIZE_ICON"),decorative:!0,size:"sizeIcon20"}):c.createElement(p.V,{element:"".concat(s,"_MINIMIZE_ICON"),decorative:!0,size:"sizeIcon20"}),c.createElement(h.ScreenReaderOnly,null,g)),c.createElement(u.Button,{element:"".concat(s,"_CLOSE_BUTTON"),variant:"secondary_icon",size:"reset",onClick:w},c.createElement(f.T,{element:"".concat(s,"_CLOSE_ICON"),decorative:!0,size:"sizeIcon20"}),c.createElement(h.ScreenReaderOnly,null,m)))}));I.displayName="MinimizableDialogHeader";var B=function(e){var t=e.minimized,n=(0,i.Z)(e,x),a=c.useState(t),s=(0,r.Z)(a,2),l=s[0],u=s[1];return(0,o.Z)((0,o.Z)({},(0,m.useNonModalDialogPrimitiveState)((0,o.Z)({},n))),{},{minimized:l,minimize:function(){return u(!0)},expand:function(){return u(!1)},toggleMinimized:function(){return u((function(e){return!e}))}})},O=function(e){e.gutter;var t=e.children,n=(e.placement,e.modal,e.state),r=e.minimized,a=(0,i.Z)(e,w),s=n||B((0,o.Z)({minimized:r,modal:!0},a));return c.createElement(S.Provider,{value:(0,o.Z)({},s)},t)};O.displayName="BaseMinimizableDialogContainer";var P=c.memo(O);P.displayName="MinimizableDialogContainer";var R=c.forwardRef((function(e,t){var n=e.children,r=e.element,s=void 0===r?"MINIMIZABLE_DIALOG_CONTENT":r,l=(0,i.Z)(e,k),u=c.useContext(S).minimized;return c.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(l)),{},{element:s,ref:t,display:u?"none":"block",borderBottomLeftRadius:"borderRadius20",borderBottomRightRadius:"borderRadius20"}),n)}));R.displayName="MinimizableDialogContent"},2034:function(e,t,n){"use strict";n.r(t),n.d(t,{ModalDialogPrimitiveContent:function(){return Gt},ModalDialogPrimitiveOverlay:function(){return Ut}});var r=n(7762),o=n(2791),i=n(4164),a=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=function(e,t){return function(){return t||(0,e[c(e)[0]])((t={exports:{}}).exports,t),t.exports}},p=f({"../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e,t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}),h=f({"../../../../node_modules/prop-types/factoryWithThrowingShims.js":function(e,t){var n=p();function r(){}function o(){}o.resetWarningCache=r,t.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return i.PropTypes=i,i}}}),m=f({"../../../../node_modules/prop-types/index.js":function(e,t){t.exports=h()()}});function v(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var g=v()?o.useLayoutEffect:o.useEffect;var y=function(e){var t=e.children,n=e.type,r=void 0===n?"reach-portal":n,a=e.containerRef,s=(0,o.useRef)(null),l=(0,o.useRef)(null),c=function(){var e=(0,o.useState)(Object.create(null))[1];return(0,o.useCallback)((function(){e(Object.create(null))}),[])}();return g((function(){if(s.current){var e=s.current.ownerDocument,t=(null===a||void 0===a?void 0:a.current)||e.body;return l.current=null===e||void 0===e?void 0:e.createElement(r),t.appendChild(l.current),c(),function(){l.current&&t&&t.removeChild(l.current)}}}),[r,c,a]),l.current?(0,i.createPortal)(t,l.current):(0,o.createElement)("span",{ref:s})};function b(){}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){var n;if(typeof Symbol>"u"||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function k(e,t){if(null!=e)if(function(e){return!(!e||"[object Function]"!={}.toString.call(e))}(e))e(t);else try{e.current=t}catch(n){throw new Error('Cannot assign value "'+t+'" to ref "'+e+'"')}}function S(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}var E="data-focus-lock",C="data-focus-lock-disabled";function T(e,t){return function(e,t){var n=(0,o.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var I={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},B=function(e){var t=e.children;return o.createElement(o.Fragment,null,o.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:I}),t,t&&o.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:I}))};B.propTypes={},B.defaultProps={children:null};var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},O.apply(this,arguments)};function P(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function R(e){return e}function A(e,t){void 0===t&&(t=R);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function M(e,t){return void 0===t&&(t=R),A(e,t)}function N(e){void 0===e&&(e={});var t=A(null);return t.options=O({async:!0,ssr:!1},e),t}var D=function(e){var t=e.sideCar,n=P(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return o.createElement(r,O({},n))};D.isSideCarExport=!0;var L=M({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),j=M(),z=M(),W=N({async:!0}),Z=[],F=o.forwardRef((function(e,t){var n,r=o.useState(),i=r[0],a=r[1],s=o.useRef(),l=o.useRef(!1),c=o.useRef(null),u=e.children,d=e.disabled,f=e.noFocusGuards,p=e.persistentFocus,h=e.crossFrame,m=e.autoFocus,v=(e.allowTextSelection,e.group),g=e.className,y=e.whiteList,b=e.hasPositiveIndices,x=e.shards,w=void 0===x?Z:x,k=e.as,S=void 0===k?"div":k,B=e.lockProps,O=void 0===B?{}:B,P=e.sideCar,R=e.returnFocus,A=e.focusOptions,M=e.onActivation,N=e.onDeactivation,D=o.useState({})[0],z=o.useCallback((function(){c.current=c.current||document&&document.activeElement,s.current&&M&&M(s.current),l.current=!0}),[M]),F=o.useCallback((function(){l.current=!1,N&&N(s.current)}),[N]);(0,o.useEffect)((function(){d||(c.current=null)}),[]);var H=o.useCallback((function(e){var t=c.current;if(t&&t.focus){var n="function"==typeof R?R(t):R;if(n){var r="object"==typeof n?n:void 0;c.current=null,e?Promise.resolve().then((function(){return t.focus(r)})):t.focus(r)}}}),[R]),U=o.useCallback((function(e){l.current&&L.useMedium(e)}),[]),$=j.useMedium,G=o.useCallback((function(e){s.current!==e&&(s.current=e,a(e))}),[]),q=_(((n={})[C]=d&&"disabled",n[E]=v,n),O),K=!0!==f,V=K&&"tail"!==f,Y=T([t,G]);return o.createElement(o.Fragment,null,K&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:I}),b?o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:I}):null],!d&&o.createElement(P,{id:D,sideCar:W,observed:i,disabled:d,persistentFocus:p,crossFrame:h,autoFocus:m,whiteList:y,shards:w,onActivation:z,onDeactivation:F,returnFocus:H,focusOptions:A}),o.createElement(S,_({ref:Y},q,{className:g,onBlur:$,onFocus:U}),u),V&&o.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:I}))}));F.propTypes={},F.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var H=F;function U(e,t){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e){var t=function(e,t){if("object"!==$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$(t)?t:String(t)}var q=function(e,t){return function(n){var r,i=[];function a(){r=e(i.map((function(e){return e.props}))),t(r)}var s,l,c,u=function(e){var t,s;function l(){return e.apply(this,arguments)||this}s=e,(t=l).prototype=Object.create(s.prototype),t.prototype.constructor=t,U(t,s),l.peek=function(){return r};var c=l.prototype;return c.componentDidMount=function(){i.push(this),a()},c.componentDidUpdate=function(){a()},c.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),a()},c.render=function(){return o.createElement(n,this.props)},l}(o.PureComponent);return s=u,l="displayName",c="SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")",(l=G(l))in s?Object.defineProperty(s,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[l]=c,u}},K=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},V=function(e){return Array.isArray(e)?e:[e]},Y=function(e){return Array.isArray(e)?e[0]:e},X=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},J=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},Q=function(e,t){return!e||J(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue)&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))}(e)&&t(X(e))},ee=function e(t,n){var r=t.get(n);if(void 0!==r)return r;var o=Q(n,e.bind(void 0,t));return t.set(n,o),o},te=function e(t,n){var r=t.get(n);if(void 0!==r)return r;var o=function(e,t){return!(e&&!J(e))||!!ie(e)&&t(X(e))}(n,e.bind(void 0,t));return t.set(n,o),o},ne=function(e){return e.dataset},re=function(e){return"INPUT"===e.tagName},oe=function(e){return re(e)&&"radio"===e.type},ie=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},ae=function(e){var t;return Boolean(e&&(null===(t=ne(e))||void 0===t?void 0:t.focusGuard))},se=function(e){return!ae(e)},le=function(e){return Boolean(e)},ce=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},ue=function(e,t,n){return K(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(ce)},de=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),fe="".concat(de,", [data-focus-guard]"),pe=function e(t,n){return K((t.shadowRoot||t).children).reduce((function(t,r){return t.concat(r.matches(n?fe:de)?[r]:[],e(r))}),[])},he=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?me([e.contentDocument.body],t):[e]},me=function(e,t){return e.reduce((function(e,n){var r,o=pe(n,t),i=(r=[]).concat.apply(r,o.map((function(e){return he(e,t)})));return e.concat(i,n.parentNode?K(n.parentNode.querySelectorAll(de)).filter((function(e){return e===n})):[])}),[])},ve=function(e,t){return K(e).filter((function(e){return ee(t,e)})).filter((function(e){return function(e){return!((re(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},ge=function(e,t){return void 0===t&&(t=new Map),K(e).filter((function(e){return te(t,e)}))},ye=function(e,t,n){return ue(ve(me(e,n),t),!0,n)},be=function(e,t){return ue(ve(me(e),t),!1)},xe=function(e,t){return ve(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return K(t).map((function(e){return me([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},we=function e(t,n){return t.shadowRoot?e(t.shadowRoot,n):!(void 0===Object.getPrototypeOf(t).contains||!Object.getPrototypeOf(t).contains.call(t,n))||K(t.children).some((function(t){var r;if(t instanceof HTMLIFrameElement){var o=null===(r=t.contentDocument)||void 0===r?void 0:r.body;return!!o&&e(o,n)}return e(t,n)}))},ke=function e(t){return t.parentNode?e(t.parentNode):t},Se=function(e){return V(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(E);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(K(ke(t).querySelectorAll("[".concat(E,'="').concat(n,'"]:not([').concat(C,'="disabled"])')))):[t]),e}),[])},_e=function e(t){if(void 0===t&&(t=document),t&&t.activeElement){var n=t.activeElement;return n.shadowRoot?e(n.shadowRoot):n instanceof HTMLIFrameElement&&function(e){try{return e()}catch(t){return}}((function(){return n.contentWindow.document}))?e(n.contentWindow.document):n}},Ee=function(e,t){return void 0===t&&(t=_e(Y(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&Se(e).some((function(e){return we(e,t)||function(e,t){return Boolean(K(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},Ce=function(e,t){return oe(e)&&e.name?function(e,t){return t.filter(oe).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Te=function(e){return e[0]&&e.length>1?Ce(e[0],e):e[0]},Ie=function(e,t){return e.length>1?e.indexOf(Ce(e[t],e)):t},Be="NEW_FOCUS",Oe=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],s=ae(n);if(!(n&&e.indexOf(n)>=0)){var l=void 0!==n?t.indexOf(n):-1,c=r?t.indexOf(r):l,u=r?e.indexOf(r):-1,d=l-c,f=t.indexOf(i),p=t.indexOf(a),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(Ce(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=(void 0!==n?h.indexOf(n):-1)-(r?h.indexOf(r):l),v=Ie(e,0),g=Ie(e,o-1);if(-1===l||-1===u)return Be;if(!d&&u>=0)return u;if(l<=f&&s&&Math.abs(d)>1)return g;if(l>=p&&s&&Math.abs(d)>1)return v;if(d&&Math.abs(m)>1)return u;if(l<=f)return g;if(l>p)return v;if(d)return Math.abs(d)>1?u:(o+u+d)%o}},Pe=function(e,t,n){var r,o=e.map((function(e){return e.node})),i=ge(o.filter((r=n,function(e){var t,n=null===(t=ne(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?Te(i):Te(ge(t))},Re=function e(t,n){return void 0===n&&(n=[]),n.push(t),t.parentNode&&e(t.parentNode.host||t.parentNode,n),n},Ae=function(e,t){for(var n=Re(e),r=Re(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},Me=function(e,t,n){var r=V(e),o=V(t),i=r[0],a=!1;return o.filter(Boolean).forEach((function(e){a=Ae(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=Ae(i,e);t&&(a=!a||we(t,a)?t:Ae(t,a))}))})),a},Ne=function(e,t){var n=_e(V(e).length>0?document:Y(e).ownerDocument),r=Se(e).filter(se),o=Me(n||e,e,r),i=new Map,a=be(r,i),s=ye(r,i).filter((function(e){var t=e.node;return se(t)}));if(s[0]||(s=a)[0]){var l=be([o],i).map((function(e){return e.node})),c=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(le)}(l,s),u=c.map((function(e){return e.node})),d=Oe(u,l,n,t);if(d===Be){var f=Pe(a,u,function(e,t){return e.reduce((function(e,n){return e.concat(xe(n,t))}),[])}(r,i));return f?{node:f}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:c[d]}},De=0,Le=!1,je=function(e,t,n){void 0===n&&(n={});var r,o,i=Ne(e,t);if(!Le&&i){if(De>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Le=!0,void setTimeout((function(){Le=!1}),1);De++,r=i.node,o=n.focusOptions,"focus"in r&&r.focus(o),"contentWindow"in r&&r.contentWindow&&r.contentWindow.focus(),De--}};function ze(e){setTimeout(e,1)}var We=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=_e(e);return!!t&&K(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return we(e,t)}))}()},Ze=null,Fe=null,He=null,Ue=!1,$e=function(){return!0};function Ge(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var qe=function(e){return e&&"current"in e?e.current:e},Ke=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Ve=function(){var e,t=!1;if(Ze){var n=Ze,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,l=n.focusOptions,c=r||He&&He.portaledElement,u=document&&document.activeElement;if(c){var d=[c].concat(a.map(qe).filter(Boolean));if((!u||function(e){return(Ze.whiteList||$e)(e)}(u))&&(o||(s?Boolean(Ue):"meanwhile"===Ue)||!We()||!Fe&&i)&&(c&&!(Ee(d)||u&&function(e,t){return t.some((function(t){return Ke(e,t,t)}))}(u,d)||(e=u,He&&He.portaledElement===e))&&(document&&!Fe&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(t=je(d,Fe,{focusOptions:l}),He={})),Ue=!1,Fe=document&&document.activeElement),document){var f=document&&document.activeElement,p=function(e){var t=Se(e).filter(se),n=Me(e,e,t),r=new Map,o=ye([n],r,!0),i=ye(t,r).filter((function(e){var t=e.node;return se(t)})).map((function(e){return e.node}));return o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:i.indexOf(t)>=0,guard:ae(t)}}))}(d),h=p.map((function(e){return e.node})).indexOf(f);h>-1&&(p.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Ge(h,p.length,1,p),Ge(h,-1,-1,p))}}}return t},Ye=function(e){Ve()&&e&&(e.stopPropagation(),e.preventDefault())},Xe=function(){return ze(Ve)},Je=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(He={observerNode:n,portaledElement:t})},Qe=function(){Ue="just",ze((function(){Ue="meanwhile"}))};L.assignSyncMedium(Je),j.assignMedium(Xe),z.assignMedium((function(e){return e({moveFocusInside:je,focusInside:Ee})}));var et=q((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!Ze&&(document.addEventListener("focusin",Ye),document.addEventListener("focusout",Xe),window.addEventListener("blur",Qe));var n=Ze,r=n&&t&&t.id===n.id;Ze=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Fe=null,(!r||n.observed!==t.observed)&&t.onActivation(),Ve(),ze(Ve)):(document.removeEventListener("focusin",Ye),document.removeEventListener("focusout",Xe),window.removeEventListener("blur",Qe),Fe=null)}))((function(){return null})),tt=o.forwardRef((function(e,t){return o.createElement(H,_({sideCar:et,ref:t},e))})),nt=H.propTypes||{};nt.sideCar,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n])}(nt,["sideCar"]);tt.propTypes={};var rt=tt,ot="right-scroll-bar-position",it="width-before-scroll-bar",at=N(),st=function(){},lt=o.forwardRef((function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:st,onWheelCapture:st,onTouchMoveCapture:st}),i=r[0],a=r[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,x=P(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,k=T([n,t]),S=O(O({},x),i);return o.createElement(o.Fragment,null,d&&o.createElement(w,{sideCar:at,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:a,allowPinchZoom:!!v,lockRef:n,gapMode:b}),s?o.cloneElement(o.Children.only(l),O(O({},S),{ref:k})):o.createElement(y,O({},S,{className:c,ref:k}),l))}));lt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},lt.classNames={fullWidth:it,zeroRight:ot};function ct(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}var ut=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=ct())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dt=function(){var e=function(){var e=ut();return function(t,n){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},ft={left:0,top:0,right:0,gap:0},pt=function(e){return parseInt(e||"",10)||0},ht=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return ft;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[pt(n),pt(r),pt(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},mt=dt(),vt=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(ot," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(it," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(ot," .").concat(ot," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(it," .").concat(it," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},gt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=o.useMemo((function(){return ht(i)}),[i]);return o.createElement(mt,{styles:vt(a,!t,i,n?"":"!important")})},yt=!1;if(typeof window<"u")try{bt=Object.defineProperty({},"passive",{get:function(){return yt=!0,!0}}),window.addEventListener("test",bt,bt),window.removeEventListener("test",bt,bt)}catch(qt){yt=!1}var bt,xt=!!yt&&{passive:!1},wt=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},kt=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),St(e,r)){var o=_t(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},St=function(e,t){return"v"===e?function(e){return wt(e,"overflowY")}(t):function(e){return wt(e,"overflowX")}(t)},_t=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Et=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ct=function(e){return[e.deltaX,e.deltaY]},Tt=function(e){return e&&"current"in e?e.current:e},It=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Bt=0,Ot=[];var Pt,Rt=(Pt=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(Bt++)[0],a=o.useState(dt)[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Tt),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var o,i=Et(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=kt(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=kt(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=_t(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&St(e,s)&&(d+=m,f+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),c=o.useCallback((function(e){var n=e;if(Ot.length&&Ot[Ot.length-1]===a){var r="deltaY"in n?Ct(n):Et(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var i=(s.current.shards||[]).map(Tt).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?l(n,i[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=o.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=o.useCallback((function(e){n.current=Et(e),r.current=void 0}),[]),f=o.useCallback((function(t){u(t.type,Ct(t),t.target,l(t,e.lockRef.current))}),[]),p=o.useCallback((function(t){u(t.type,Et(t),t.target,l(t,e.lockRef.current))}),[]);o.useEffect((function(){return Ot.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,xt),document.addEventListener("touchmove",c,xt),document.addEventListener("touchstart",d,xt),function(){Ot=Ot.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,xt),document.removeEventListener("touchmove",c,xt),document.removeEventListener("touchstart",d,xt)}}),[]);var h=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:It(i)}):null,h?o.createElement(gt,{gapMode:e.gapMode}):null)},at.useMedium(Pt),D),At=o.forwardRef((function(e,t){return o.createElement(lt,O({},e,{ref:t,sideCar:Rt}))}));At.classNames=lt.classNames;var Mt,Nt,Dt,Lt=At,jt=(Mt=m(),Dt=null!=Mt?a(u(Mt)):{},function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var i,a=(0,r.Z)(c(t));try{var u=function(){var r=i.value;!d.call(e,r)&&r!==n&&s(e,r,{get:function(){return t[r]},enumerable:!(o=l(t,r))||o.enumerable})};for(a.s();!(i=a.n()).done;)u()}catch(f){a.e(f)}finally{a.f()}}return e}(!Nt&&Mt&&Mt.__esModule?Dt:s(Dt,"default",{value:Mt,enumerable:!0}),Mt));function zt(){return zt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zt.apply(this,arguments)}function Wt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}var Zt=["as","isOpen"],Ft=["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"],Ht=["as","onClick","onKeyDown"],Ut=(jt.default.bool,jt.default.bool,jt.default.bool,jt.default.func,(0,o.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.isOpen,a=void 0===i||i,s=Wt(e,Zt);return(0,o.useEffect)((function(){a?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame((function(){window.__REACH_DISABLE_TOOLTIPS=!1}))}),[a]),a?(0,o.createElement)(y,{"data-reach-dialog-wrapper":""},(0,o.createElement)($t,zt({ref:t,as:r},s))):null}))),$t=(0,o.forwardRef)((function(e,t){var n=e.allowPinchZoom,r=e.as,i=void 0===r?"div":r,a=e.dangerouslyBypassFocusLock,s=void 0!==a&&a,l=e.dangerouslyBypassScrollLock,c=void 0!==l&&l,u=e.initialFocusRef,d=e.onClick,f=e.onDismiss,p=void 0===f?b:f,h=e.onKeyDown,m=e.onMouseDown,g=e.unstable_lockFocusAcrossFrames,y=Wt(e,Ft),x=(0,o.useRef)(null),_=(0,o.useRef)(null),E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useCallback)((function(e){for(var n,r=w(t);!(n=r()).done;)k(n.value,e)}),t)}(_,t),C=(0,o.useCallback)((function(){u&&u.current&&u.current.focus()}),[u]);return(0,o.useEffect)((function(){return _.current?function(e){var t=[],n=[],r=(o=e,v()?o?o.ownerDocument:document:null);var o;return e?(Array.prototype.forEach.call(r.querySelectorAll("body > *"),(function(r){var o,i;if(r!==(null==(o=e.parentNode)||null==(i=o.parentNode)?void 0:i.parentNode)){var a=r.getAttribute("aria-hidden");null!==a&&"false"!==a||(t.push(a),n.push(r),r.setAttribute("aria-hidden","true"))}})),function(){n.forEach((function(e,n){var r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}):b}(_.current):void 0}),[]),(0,o.createElement)(rt,{autoFocus:!0,returnFocus:!0,onActivation:C,disabled:s,crossFrame:null===g||void 0===g||g},(0,o.createElement)(Lt,{allowPinchZoom:n,enabled:!c},(0,o.createElement)(i,zt({},y,{ref:E,"data-reach-dialog-overlay":"",onClick:S(d,(function(e){x.current===e.target&&(e.stopPropagation(),p(e))})),onKeyDown:S(h,(function(e){"Escape"===e.key&&(e.stopPropagation(),p(e))})),onMouseDown:S(m,(function(e){x.current=e.target}))}))))})),Gt=(0,o.forwardRef)((function(e,t){var n=e.as,r=void 0===n?"div":n,i=e.onClick;e.onKeyDown;var a=Wt(e,Ht);return(0,o.createElement)(r,zt({"aria-modal":"true",role:"dialog",tabIndex:-1},a,{ref:t,"data-reach-dialog-content":"",onClick:S(i,(function(e){e.stopPropagation()}))}))}))},9700:function(e,t,n){"use strict";n.r(t),n.d(t,{Modal:function(){return E},ModalBody:function(){return I},ModalContext:function(){return k},ModalDialogContent:function(){return _},ModalDialogOverlay:function(){return S},ModalFooter:function(){return B},ModalFooterActions:function(){return O},ModalHeader:function(){return C},ModalHeading:function(){return T}});var r=n(1413),o=n(4925),i=n(3512),a=n(1923),s=n(2034),l=n(7666),c=n(2714),u=n(2791),d=n(9741),f=n(7952),p=n(8045),h=n(9643),m=n(6373),v=["children","element","isOpen","onDismiss","allowPinchZoom","initialFocusRef","ariaLabelledby","size"],g=["children","element","i18nDismissLabel"],y=["children","as","element"],b=["children","element"],x=["children","element"],w=["children","element","justify"],k=u.createContext(null),S=(0,i.q)((0,l.iK)(s.ModalDialogPrimitiveOverlay)((0,l.iv)({position:"fixed",top:0,right:0,bottom:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",width:"100%",backgroundColor:"colorBackgroundOverlay",zIndex:"zIndex80"}),c.s4,a.getCustomElementStyles)),_=(0,i.q)((0,l.iK)(s.ModalDialogPrimitiveContent)((function(e){var t=e.size;return(0,l.iv)({width:"100%",maxWidth:"wide"===t?"size80":"size60",maxHeight:"90%",minHeight:"170px",backgroundColor:"colorBackgroundBody",borderRadius:"borderRadius30",boxShadow:"shadowElevationTop20",display:"flex",flexDirection:"column"})}))),E=u.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"MODAL":s,c=e.isOpen,d=e.onDismiss,f=e.allowPinchZoom,p=void 0===f||f,h=e.initialFocusRef,m=e.ariaLabelledby,g=e.size,y=(0,o.Z)(e,v),b=(0,i.Yz)(c,{from:{opacity:0,transform:"scale(0.675)"},enter:{opacity:1,transform:"scale(1)"},leave:{opacity:0,transform:"scale(0.675)"},config:{mass:.5,tension:370,friction:26}});return u.createElement(k.Provider,{value:{onDismiss:d}},b((function(e,o){return o&&u.createElement(S,{onDismiss:d,allowPinchZoom:p,initialFocusRef:h,style:{opacity:e.opacity},"data-paste-element":"".concat(l,"_OVERLAY"),variant:g},u.createElement(a.Box,(0,r.Z)((0,r.Z)({as:_,"aria-labelledby":m},(0,a.safelySpreadBoxProps)(y)),{},{element:l,ref:t,style:e,size:g,variant:g}),n))})))}));E.displayName="Modal";var C=u.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"MODAL_HEADER":i,l=e.i18nDismissLabel,c=void 0===l?"Close modal":l,m=(0,o.Z)(e,g),v=function(){var e=u.useContext(k);if(!e)throw new Error("useModalContext must be used with ModalContextProvider");return e}().onDismiss;return u.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(m)),{},{as:"div",element:s,ref:t,padding:"space90",flexShrink:0}),u.createElement(f.Flex,{hAlignContent:"between"},u.createElement(f.Flex,{vAlignContent:"center",grow:1,marginRight:"space70"},n),u.createElement(d.Button,{element:"".concat(s,"_CLOSE_BUTTON"),variant:"secondary_icon",size:"reset",onClick:function(){return v()}},u.createElement(p.T,{element:"".concat(s,"_CLOSE_ICON"),decorative:!0,size:"sizeIcon60"}),u.createElement(h.ScreenReaderOnly,null,c))))}));C.displayName="ModalHeader";var T=u.forwardRef((function(e,t){var n=e.children,i=e.as,a=void 0===i?"h2":i,s=e.element,l=void 0===s?"MODAL_HEADING":s,c=(0,o.Z)(e,y);return u.createElement(m.Heading,(0,r.Z)((0,r.Z)({},c),{},{as:a,element:l,marginBottom:"space0",variant:"heading30",ref:t}),n)}));T.displayName="ModalHeading";var I=u.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"MODAL_BODY":i,l=(0,o.Z)(e,b);return u.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(l)),{},{overflowY:"auto",paddingX:"space90",paddingY:"space10",as:"div",element:s,ref:t}),n)}));I.displayName="ModalBody";var B=u.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"MODAL_FOOTER":i,l=(0,o.Z)(e,x);return u.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(l)),{},{flexShrink:0,display:"flex",padding:"space90",as:"div",element:s,ref:t}),n)}));B.displayName="ModalFooter";var O=u.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"MODAL_FOOTER_ACTIONS":i,l=e.justify,c=(0,o.Z)(e,w),d=u.Children.count(n);return u.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{display:"flex",justifyContent:"start"===l?"flex-start":"flex-end",flexShrink:"start"===l?null:0,flexWrap:"wrap",flexGrow:1,element:s,alignItems:"center",ref:t}),u.Children.map(n,(function(e,t){return u.createElement(a.Box,{marginRight:d!==t+1?"space50":null,element:"".concat(s,"_ITEM")},e)})))}));O.displayName="ModalFooterActions"},2276:function(e,t,n){"use strict";n.r(t),n.d(t,{NonModalDialogArrowPrimitive:function(){return o.QH},NonModalDialogDisclosurePrimitive:function(){return o.xM},NonModalDialogPrimitive:function(){return o.J2},useNonModalDialogPrimitiveState:function(){return i}});var r=n(1413),o=n(4086),i=function(e){return(0,o.vp)((0,r.Z)({modal:!0},e))}},8943:function(e,t,n){"use strict";n.r(t),n.d(t,{PageHeader:function(){return w},PageHeaderActions:function(){return B},PageHeaderDetails:function(){return S},PageHeaderHeading:function(){return C},PageHeaderInPageNavigation:function(){return O},PageHeaderKeyword:function(){return _},PageHeaderMeta:function(){return I},PageHeaderParagraph:function(){return T},PageHeaderPrefix:function(){return E},PageHeaderSeparator:function(){return P},PageHeaderSetting:function(){return k}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=n(6373),l=n(2029),c=["element","size","children"],u=["element","children"],d=["element","children"],f=["element","children"],p=["element","children"],h=["element","children","as","variant"],m=["element","children"],v=["element","children"],g=["element","children"],y=["element","children"],b=["element","children"],x=a.createContext({}),w=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER":n,l=e.size,u=e.children,d=(0,o.Z)(e,c);return a.createElement(x.Provider,{value:{size:l}},a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(d)),{},{ref:t,element:s,display:"grid",gridTemplateRows:"auto auto auto",gridTemplateAreas:'"setting" "details" "content_barrier"'}),u))}));w.displayName="PageHeader";var k=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_SETTING":n,l=e.children,c=(0,o.Z)(e,u);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,gridArea:"setting",marginBottom:"space50",display:"flex",flexDirection:"column",rowGap:"space130"}),l)}));k.displayName="PageHeaderSetting";var S=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_DETAILS":n,l=e.children,c=(0,o.Z)(e,d),u=a.useContext(x).size;return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,marginBottom:"compact"===u?"space50":"space130",display:"grid",gridTemplateColumns:"min-content auto 1fr",gridTemplateRows:"auto-fit",gridTemplateAreas:"compact"===u?'"keyword keyword keyword" "prefix heading actions" "prefix meta ." "paragraph paragraph paragraph"':'"keyword keyword keyword" "prefix heading actions" "meta meta meta" "paragraph paragraph paragraph"'}),l)}));S.displayName="PageHeaderDetails";var _=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_KEYWORD":n,l=e.children,c=(0,o.Z)(e,f);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,marginBottom:"space30",gridArea:"keyword",display:"flex",alignItems:"center",columnGap:"space30",flexWrap:"wrap",rowGap:"space30",color:"colorTextWeak",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"fontWeightMedium"}),l)}));_.displayName="PageHeaderKeyword";var E=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_PREFIX":n,l=e.children,c=(0,o.Z)(e,p),u=a.useContext(x).size;return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,gridArea:"prefix",marginRight:"compact"===u?"space30":"space40",alignSelf:"start"}),l)}));E.displayName="PageHeaderPrefix";var C=a.forwardRef((function(e,t){var n=e.element,l=void 0===n?"PAGE_HEADER_HEADING":n,c=e.children,u=e.as,d=void 0===u?"h1":u,f=e.variant,p=(0,o.Z)(e,h),m="compact"===a.useContext(x).size?"heading30":"heading10";return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(p)),{},{element:"".concat(l,"_WRAPPER"),gridArea:"heading",alignSelf:"center",maxWidth:"size70"}),a.createElement(s.Heading,{ref:t,element:l,as:d,variant:f||m,marginBottom:"space0"},c))}));C.displayName="PageHeaderHeading";var T=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_PARAGRAPH":n,c=e.children,u=(0,o.Z)(e,m),d=a.useContext(x).size;return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(u)),{},{ref:t,element:"".concat(s,"_WRAPPER"),marginTop:"compact"===d?"space40":"space70",gridArea:"paragraph",maxWidth:"size70"}),a.createElement(l.Paragraph,{element:s,ref:t,marginBottom:"space0"},c))}));T.displayName="PageHeaderParagraph";var I=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_META":n,l=e.children,c=(0,o.Z)(e,v),u=a.useContext(x).size;return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,gridArea:"meta",marginTop:"compact"===u?"space10":"space40",display:"flex",flexWrap:"wrap",columnGap:"compact"===u?"space40":"space50",rowGap:"space30",alignItems:"center",maxWidth:"size70",color:"colorTextWeak",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"fontWeightMedium"}),l)}));I.displayName="PageHeaderMeta";var B=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_ACTIONS":n,l=e.children,c=(0,o.Z)(e,g),u=a.useContext(x).size;return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,gridArea:"actions",justifySelf:"end",alignSelf:"start",paddingLeft:"space70",lineHeight:"compact"===u?"lineHeight60":"lineHeight90",flexWrap:"wrap"}),l)}));B.displayName="PageHeaderActions";var O=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_IN_PAGE_NAVIGATION":n,l=e.children,c=(0,o.Z)(e,y);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,gridArea:"content_barrier"}),l)}));O.displayName="PageHeaderInPageNavigation";var P=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PAGE_HEADER_SEPARATOR":n,l=e.children,c=(0,o.Z)(e,b);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,gridArea:"content_barrier",marginBottom:"space60"}),l)}));P.displayName="PageHeaderSeparator"},9778:function(e,t,n){"use strict";n.r(t),n.d(t,{Pagination:function(){return S},PaginationArrow:function(){return R},PaginationEllipsis:function(){return M},PaginationItems:function(){return C},PaginationLabel:function(){return A},PaginationNumber:function(){return N},PaginationNumbers:function(){return D}});var r=n(885),o=n(1413),i=n(4925),a=n(1923),s=n(2791),l=n(9628),c=n(8015),u=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ArrowBackIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ArrowBackIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.009 9.91l-.007.05v.08l.01.07.01.029a.489.489 0 00.205.272l3.832 3.444a.596.596 0 00.78 0 .459.459 0 00.063-.632l-.063-.069-2.957-2.659h7.605A.504.504 0 0015 10a.5.5 0 00-.42-.488l-.093-.008H6.883l2.956-2.658a.459.459 0 00.063-.632l-.063-.069a.598.598 0 00-.704-.057l-.076.057L5.227 9.59a.498.498 0 00-.206.272l-.012.049z"})))}));u.displayName="ArrowBackIcon";var d=n(9132),f=n(9348),p=["children","element","label"],h=["children","element"],m=["children","element","disabled","visibleLabel"],v=["as","element","disabled","isFocused","isHovered","label","visibleLabel"],g=["as","element","disabled","isFocused","isHovered","label","visibleLabel"],y=["as","element","disabled","href","isHovered","isFocused","label","variant","visibleLabel"],b=["children","element"],x=["label","element"],w=["as","element","children","href","isCurrent","label"],k=["children","element","pageLabel"],S=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"PAGINATION":r,c=e.label,u=(0,i.Z)(e,p);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(u)),{},{element:l,ref:t,"aria-label":c,as:"nav",role:"navigation"}),n)}));S.displayName="Pagination";var _={display:"inline-flex",margin:"space0",padding:"space0"},E={listStyleType:"none",margin:"space0",padding:"space0"},C=s.forwardRef((function(e,t){var n=e.children,c=e.element,u=void 0===c?"PAGINATION_ITEMS":c,d=(0,i.Z)(e,h),f=s.useMemo((function(){return[s.Children.toArray(n).filter((function(e){return s.isValidElement(e)}))]}),[n]),p=(0,r.Z)(f,1)[0],m=(0,l.Hb)();return s.createElement(a.Box,(0,o.Z)((0,o.Z)((0,o.Z)({},_),(0,a.safelySpreadBoxProps)(d)),{},{ref:t,element:u,as:"ul"}),p.map((function(e,t){return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},E),{},{key:m("pagination-items-".concat(t)),element:"".concat(u,"_ITEM"),as:"li",marginRight:"space90",_last:{marginRight:"space0"}}),e)})))}));C.displayName="PaginationItems";var T=function(e){var t=e.as,n=e.href,r=null!=n&&""!==n;if("a"!==t&&r)throw new Error("[Paste: Pagination] You cannot pass href into button pagination without the 'a' tag.  Use 'as=\"a\"'.");if("a"===t&&!r)throw new Error("[Paste: Pagination] Missing href prop for link pagination.")},I=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"PAGINATION_ARROW_BUTTON":r,c=e.disabled,u=e.visibleLabel,d=(0,i.Z)(e,m);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(d)),{},{element:l,ref:t,"aria-hidden":c,alignItems:"center",appearance:"none",border:"none",background:"none",borderColor:"colorBorder",borderRadius:u?"borderRadius10":"borderRadiusCircle",color:"colorText",display:"flex",fontFamily:"inherit",fontVariantNumeric:"tabular-nums",fontWeight:"fontWeightNormal",lineHeight:"lineHeight30",margin:"space0",outline:"none",opacity:c?"0":"1",padding:"space0",position:"relative",textDecoration:"none",transition:"border-color 100ms ease-in, box-shadow 100ms ease-in, color 100ms ease-in, opacity 150ms ease-in, visibility 150ms ease-in",visibility:c?"hidden":"visible",_hover:{borderColor:"colorBorderPrimaryStronger",color:"colorTextLinkStronger",cursor:"pointer",textDecoration:"none"},_focus:{borderColor:"colorBorderPrimaryStronger",boxShadow:"shadowFocus",color:"colorTextLinkStronger",textDecoration:"none"},_active:{textDecoration:"none"}}),n)}));I.displayName="PaginationArrowButton";var B=function(e){var t=e.children,n=e.element,r=void 0===n?"PAGINATION_ARROW_ICON_WRAPPER":n,o=e.isFocused,i=e.isHovered;return s.createElement(a.Box,{element:r,alignItems:"center",backgroundColor:"colorBackgroundBody",boxShadow:i&&!o?"shadowBorderPrimary":"shadowBorderWeak",borderRadius:"borderRadiusCircle",display:"flex",height:"sizeSquare80",justifyContent:"center",transition:"background-color 100ms ease-in",width:"sizeSquare80"},t)};B.displayName="PaginationArrowIconWrapper";var O=s.forwardRef((function(e,t){var n=e.as,r=void 0===n?"button":n,a=e.element,l=void 0===a?"PAGINATION_ARROW":a,c=e.disabled,f=e.isFocused,p=e.isHovered,h=e.label,m=e.visibleLabel,g=(0,i.Z)(e,v);return s.createElement(I,(0,o.Z)((0,o.Z)({},g),{},{ref:t,as:r,disabled:c,visibleLabel:m,element:"".concat(l,"_BUTTON")}),s.createElement(B,{isFocused:f,isHovered:p,element:"".concat(l,"_ICON_WRAPPER")},s.createElement(u,{decorative:!1,color:p?"colorTextPrimary":"colorText",display:"block",title:h,element:"".concat(l,"_ICON")})),m?s.createElement(d.Text,{"aria-hidden":"true",as:"span",color:p?"colorTextLink":"colorText",fontWeight:"fontWeightMedium",marginLeft:"space30",element:"".concat(l,"_TEXT")},m):null)}));O.displayName="PaginationBackArrow";var P=s.forwardRef((function(e,t){var n=e.as,r=void 0===n?"button":n,a=e.element,l=void 0===a?"PAGINATION_ARROW":a,c=e.disabled,u=e.isFocused,p=e.isHovered,h=e.label,m=e.visibleLabel,v=(0,i.Z)(e,g);return s.createElement(I,(0,o.Z)((0,o.Z)({},v),{},{ref:t,element:"".concat(l,"_BUTTON"),as:r,disabled:c,visibleLabel:m}),m?s.createElement(d.Text,{"aria-hidden":"true",as:"span",color:p?"colorTextLink":"inherit",fontWeight:"fontWeightMedium",marginRight:"space30",element:"".concat(l,"_TEXT")},m):null,s.createElement(B,{isFocused:u,isHovered:p,element:"".concat(l,"_ICON_WRAPPER")},s.createElement(f.m,{decorative:!1,color:p?"colorTextPrimary":"colorText",display:"block",title:h,element:"".concat(l,"_ICON")})))}));P.displayName="PaginationForwardArrow";var R=s.forwardRef((function(e,t){var n=e.as,a=void 0===n?"button":n,l=e.element,c=void 0===l?"PAGINATION_ARROW":l,u=e.disabled,d=e.href,f=e.isHovered,p=void 0!==f&&f,h=e.isFocused,m=void 0!==h&&h,v=e.label,g=e.variant,b=void 0===g?"back":g,x=e.visibleLabel,w=(0,i.Z)(e,y),k=s.useState(p),S=(0,r.Z)(k,2),_=S[0],E=S[1],C=s.useState(m),I=(0,r.Z)(C,2),B=I[0],R=I[1];return T({as:a,href:d}),"back"===b?s.createElement(O,(0,o.Z)((0,o.Z)({},w),{},{element:c,ref:t,as:a,disabled:u,href:d,isFocused:B,isHovered:_,label:v,variant:b,visibleLabel:x,onMouseEnter:function(e){"function"==typeof w.onMouseEnter&&w.onMouseEnter(e),E(!0)},onMouseLeave:function(e){"function"==typeof w.onMouseLeave&&w.onMouseLeave(e),E(!1)},onFocus:function(e){"function"==typeof w.onFocus&&w.onFocus(e),R(!0)},onBlur:function(e){"function"==typeof w.onBlur&&w.onBlur(e),R(!1)}})):s.createElement(P,(0,o.Z)((0,o.Z)({},w),{},{element:c,ref:t,as:a,disabled:u,href:d,isFocused:B,isHovered:_,label:v,variant:b,visibleLabel:x,onMouseEnter:function(e){"function"==typeof w.onMouseEnter&&w.onMouseEnter(e),E(!0)},onMouseLeave:function(e){"function"==typeof w.onMouseLeave&&w.onMouseLeave(e),E(!1)},onFocus:function(e){"function"==typeof w.onFocus&&w.onFocus(e),R(!0)},onBlur:function(e){"function"==typeof w.onBlur&&w.onBlur(e),R(!1)}}))}));R.displayName="PaginationArrow";var A=s.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"PAGINATION_LABEL":r,l=(0,i.Z)(e,b);return s.createElement(d.Text,(0,o.Z)((0,o.Z)({},(0,d.safelySpreadTextProps)(l)),{},{ref:t,element:a,as:"div",color:"colorTextWeak",textAlign:"center",fontWeight:"fontWeightNormal",lineHeight:"lineHeight50"}),n)}));A.displayName="PaginationLabel";var M=s.forwardRef((function(e,t){var n=e.label,r=e.element,a=void 0===r?"PAGINATION_ELLIPSIS":r,l=(0,i.Z)(e,x);return s.createElement(d.Text,(0,o.Z)((0,o.Z)({},(0,d.safelySpreadTextProps)(l)),{},{ref:t,element:a,"aria-label":n,as:"span",display:"inline-block",paddingBottom:"space20",paddingLeft:"space30",paddingRight:"space30",paddingTop:"space20",fontWeight:"fontWeightMedium"}),"\u2026")}));M.displayName="PaginationEllipsis";var N=s.forwardRef((function(e,t){var n=e.as,r=void 0===n?"button":n,l=e.element,c=void 0===l?"PAGINATION_NUMBER":l,u=e.children,f=e.href,p=e.isCurrent,h=e.label,m=(0,i.Z)(e,w);return T({as:r,href:f}),s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(m)),{},{ref:t,element:c,"aria-label":h,"aria-current":p,as:r,href:f,appearance:"none",background:"none",backgroundColor:p?"colorBackgroundPrimaryWeakest":"transparent",borderColor:p?"colorBorderPrimary":"transparent",borderRadius:"borderRadius20",borderStyle:"solid",borderWidth:"borderWidth10",color:p?"colorTextLink":"colorTextWeak",display:"inline-block",fontFamily:"inherit",fontSize:"fontSize30",fontVariantNumeric:"tabular-nums",fontWeight:"fontWeightNormal",lineHeight:"lineHeight30",margin:"space0",outline:"none",paddingBottom:"space20",paddingLeft:"space30",paddingRight:"space30",paddingTop:"space20",position:"relative",textDecoration:"none",transition:"background-color 100ms ease-in, border-color 100ms ease-in, box-shadow 100ms ease-in, color 100ms ease-in",_hover:{backgroundColor:"colorBackgroundPrimaryWeakest",borderColor:p?"colorBorderPrimaryStronger":"transparent",boxShadow:p?"none":"shadowBorderPrimaryStronger",color:"colorTextLinkStronger",cursor:"pointer",textDecoration:"none"},_focus:{boxShadow:"shadowFocus",borderColor:"transparent",textDecoration:"none",color:"colorTextLink"},_active:{textDecoration:"none"}}),u?s.createElement(d.Text,{"aria-hidden":"true",as:"span",color:"inherit",fontWeight:"fontWeightMedium",element:"".concat(c,"_TEXT")},u):null)}));N.displayName="PaginationNumber";var D=s.forwardRef((function(e,t){var n=e.children,c=e.element,u=void 0===c?"PAGINATION_NUMBERS":c,d=e.pageLabel,f=(0,i.Z)(e,k),p=s.useMemo((function(){return[s.Children.toArray(n).filter((function(e){return s.isValidElement(e)}))]}),[n]),h=(0,r.Z)(p,1)[0],m=(0,l.Hb)();return s.createElement(s.Fragment,null,s.createElement(a.Box,(0,o.Z)((0,o.Z)((0,o.Z)({},_),(0,a.safelySpreadBoxProps)(f)),{},{element:u,ref:t,as:"ul",justifyContent:"center",paddingLeft:"space40",paddingRight:"space40",paddingBottom:"space20",width:"100%"}),h.map((function(e,t){return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},E),{},{key:m("pagination-numbers-".concat(t)),element:"".concat(u,"_ITEM"),as:"li",marginRight:"space30",_last:{marginRight:"space0"}}),e)}))),d?s.createElement(A,null,d):null)}));D.displayName="PaginationNumbers"},2029:function(e,t,n){"use strict";n.r(t),n.d(t,{Paragraph:function(){return l}});var r=n(1413),o=n(4925),i=n(9132),a=n(2791),s=["children","element","marginBottom"],l=a.forwardRef((function(e,t){var n=e.children,l=e.element,c=void 0===l?"PARAGRAPH":l,u=e.marginBottom,d=(0,o.Z)(e,s);return a.createElement(i.Text,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadTextProps)(d)),{},{as:"p",color:"colorText",element:c,fontSize:"fontSize30",fontWeight:"fontWeightNormal",lineHeight:"lineHeight40",marginBottom:u||"space70",ref:t}),n)}));l.displayName="Paragraph"},4865:function(e,t,n){"use strict";n.r(t),n.d(t,{Popover:function(){return T},PopoverBadgeButton:function(){return O},PopoverButton:function(){return I},PopoverContainer:function(){return _},PopoverFormPillButton:function(){return P},usePopoverState:function(){return i.useNonModalDialogPrimitiveState}});var r=n(1413),o=n(4925),i=n(2276),a=n(2791),s=n(1923),l=n(9741),c=n(8045),u=n(4086),d=n(9643),f=n(2714),p=n(6431),h=n(3404),m=["children","gutter","placement","state"],v=["style","width"],g=["children","element","i18nDismissLabel","initialFocusRef"],y=["children","element"],b=["children"],x=["children","element"],w=["children","element"],k=a.createContext({}),S=function(e){var t=e.children,n=e.gutter,s=e.placement,l=e.state,c=(0,o.Z)(e,m),u=l||(0,i.useNonModalDialogPrimitiveState)((0,r.Z)({gutter:n,modal:!0,placement:s},c));return a.createElement(k.Provider,{value:u},t)};S.displayName="BasePopoverContainer";var _=a.memo(S);_.displayName="PopoverContainer";var E=function(e){var t=(0,f.Fg)();return a.createElement(u.QH,(0,r.Z)((0,r.Z)({},e),{},{size:t.fontSizes.fontSize70,stroke:t.borderColors.colorBorderWeaker,fill:t.backgroundColors.colorBackgroundBody}))};E.displayName="PopoverArrow";var C=a.forwardRef((function(e,t){var n=e.style,i=e.width,l=(0,o.Z)(e,v);return a.createElement(s.Box,(0,r.Z)((0,r.Z)({},(0,s.safelySpreadBoxProps)(l)),{},{width:i,backgroundColor:"colorBackgroundWeaker",borderRadius:"borderRadius30",boxShadow:"shadowElevation10",maxWidth:"size50",zIndex:"zIndex80",_focus:{outline:"none"},style:n,ref:t}))}));C.displayName="StyledPopover";var T=a.forwardRef((function(e,t){var n=e.children,i=e.element,p=void 0===i?"POPOVER":i,h=e.i18nDismissLabel,m=void 0===h?"Close popover":h,v=e.initialFocusRef,y=(0,o.Z)(e,g),b=a.useContext(k);return a.useEffect((function(){var e;b.visible&&v&&(null===(e=v.current)||void 0===e||e.focus())}),[b.visible,v]),a.createElement(u.J2,(0,r.Z)((0,r.Z)((0,r.Z)({},b),y),{},{as:C,ref:t,preventBodyScroll:!1}),a.createElement(f.ko,null,a.createElement(E,(0,r.Z)({},b)),a.createElement(s.Box,{element:p,padding:"space90"},a.createElement(s.Box,{position:"absolute",right:16,top:16},a.createElement(l.Button,{element:"".concat(p,"_CLOSE_BUTTON"),variant:"secondary_icon",size:"reset",onClick:b.hide},a.createElement(c.T,{element:"".concat(p,"_CLOSE_ICON"),decorative:!0,size:"sizeIcon10"}),a.createElement(d.ScreenReaderOnly,null,m))),n)))}));T.displayName="Popover";var I=a.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"POPOVER_BUTTON":i,c=(0,o.Z)(e,y),d=a.useContext(k);return a.createElement(u.xM,(0,r.Z)((0,r.Z)((0,r.Z)({element:s},d),c),{},{as:l.Button,ref:t}),n)}));I.displayName="PopoverButton";var B=a.forwardRef((function(e,t){var n=e.children,i=(0,o.Z)(e,b);return a.createElement(p.Badge,(0,r.Z)((0,r.Z)({},i),{},{as:"button",ref:t}),n)}));B.displayName="ButtonBadge";var O=a.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"POPOVER_BADGE":i,l=(0,o.Z)(e,x),c=a.useContext(k);return a.createElement(u.xM,(0,r.Z)((0,r.Z)((0,r.Z)({element:s},c),l),{},{as:B,ref:t}),n)}));O.displayName="PopoverBadgeButton";var P=a.forwardRef((function(e,t){var n=e.children,i=e.element,s=void 0===i?"POPOVER_FORM_PILL":i,l=(0,o.Z)(e,w),c=a.useContext(k);return a.createElement(u.xM,(0,r.Z)((0,r.Z)((0,r.Z)({element:s},c),l),{},{as:h.FormPill,ref:t,onSelect:function(e){c.toggle(),l.onSelect&&l.onSelect(e)},baseId:c.baseId}),n)}));P.displayName="PopoverFormPillButton"},239:function(e,t,n){"use strict";n.r(t),n.d(t,{ProductSwitcher:function(){return g},ProductSwitcherButton:function(){return b},ProductSwitcherItem:function(){return y},useProductSwitcherState:function(){return p.w8}});var r=n(1413),o=n(4925),i=n(8912),a=n(2791),s=n(1923),l=n(9132),c=n(9628),u=n(8015),d=a.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,s=e.size,l=e.color,d=e.title,f=e.decorative,p="ProductSwitcherIcon-".concat((0,c.Dt)());if(!f&&null==d)throw new Error("[ProductSwitcherIcon]: Missing a title for non-decorative icon.");return a.createElement(u.a,{as:n,display:r,element:i,size:s,color:l,ref:t},a.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?a.createElement("title",{id:p},d):null,a.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M1.4 1.4H9V9H1.4V1.4zm1.2 1.2v5.2h5.2V2.6H2.6zM11 1.4h7.6V9H11V1.4zm1.2 1.2v5.2h5.2V2.6h-5.2zM1.4 11H9v7.6H1.4V11zm1.2 1.2v5.2h5.2v-5.2H2.6zM11 11h7.6v7.6H11V11zm1.2 1.2v5.2h5.2v-5.2h-5.2z"})))}));d.displayName="ProductSwitcherIcon";var f=n(9643),p=n(4086),h=["children","element"],m=["productName","productStrapline","productIcon","element"],v=["element","i18nButtonLabel"],g=a.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"PRODUCT_SWITCHER":s,c=(0,o.Z)(e,h);return a.createElement(i.Menu,(0,r.Z)((0,r.Z)({element:l},c),{},{ref:t}),n)}));g.displayName="ProductSwitcher";var y=a.forwardRef((function(e,t){var n=e.productName,c=e.productStrapline,u=e.productIcon,d=e.element,f=void 0===d?"PRODUCT_SWITCHER_ITEM":d,p=(0,o.Z)(e,m);return a.createElement(i.MenuItemRadio,(0,r.Z)((0,r.Z)({element:f},p),{},{ref:t}),a.createElement(s.Box,{display:"flex",flexDirection:"row",columnGap:"space50",alignItems:"center"},u&&a.createElement(s.Box,{color:"colorTextIcon"},u),a.createElement(s.Box,null,a.createElement(l.Text,{as:"span",display:"block"},n),a.createElement(l.Text,{as:"span",fontSize:"fontSize20",color:"colorTextWeak"},c))))}));y.displayName="ProductSwitcherItem";var b=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"PRODUCT_SWITCHER_BUTTON":n,l=e.i18nButtonLabel,c=(0,o.Z)(e,v);return a.createElement(i.MenuButton,(0,r.Z)((0,r.Z)({element:s},c),{},{variant:"secondary_icon",size:"reset",ref:t}),a.createElement(d,{decorative:!0}),a.createElement(f.ScreenReaderOnly,null,l))}));b.displayName="ProductSwitcherButton"},8990:function(e,t,n){"use strict";n.r(t),n.d(t,{ProgressBar:function(){return m},ProgressBarLabel:function(){return v}});var r=n(4925),o=n(1413),i=n(3512),a=n(1923),s=n(875),l=n(7887),c=n(2791),u=n(9114),d=n(9132),f=["element","children","htmlFor","valueLabel","disabled"],p="PROGRESS_BAR_LABEL",h=(0,i.q)(a.Box),m=c.forwardRef((function(e,t){var n=e.element,r=void 0===n?"PROGRESS_BAR":n,u=e.id,d=e.value,f=void 0===d?0:d,m=e.maxValue,v=void 0===m?100:m,g=e.disabled,y=void 0!==g&&g,b=e.hasError,x=void 0!==b&&b,w=e.isIndeterminate,k=void 0!==w&&w,S=e["aria-labelledby"];null==S&&null==e["aria-label"]&&null!=u&&(S="".concat(u).concat(p));var _=(0,s.D6)((0,o.Z)((0,o.Z)({},e),{},{"aria-labelledby":S})).progressBarProps,E=c.useMemo((function(){if(k)return{};var e=Math.min(Math.max(f,0),v);return{width:"".concat(Math.round(e/v*100),"%"),config:{tension:280,friction:60}}}),[k,f,v]),C=(0,i.q_)(E),T="colorBackgroundPrimary";return x?T="colorBackgroundError":y&&(T="colorBackgroundStronger"),c.createElement(a.Box,(0,o.Z)((0,o.Z)({},_),{},{ref:t,element:r,id:u,"aria-labelledby":S,height:"8px",width:"100%",backgroundColor:y?"colorBackground":"colorBackgroundStrong",borderRadius:"borderRadiusPill",position:"relative",overflow:"hidden"}),k?c.createElement(l.SkeletonLoader,null):c.createElement(h,{style:C,element:"".concat(r,"_FILL"),position:"absolute",height:"100%",backgroundColor:T,borderRadius:"borderRadius30"}))}));m.displayName="ProgressBar";var v=c.forwardRef((function(e,t){var n=e.element,i=void 0===n?"PROGRESS_BAR_LABEL":n,s=e.children,l=e.htmlFor,h=e.valueLabel,m=e.disabled,v=(0,r.Z)(e,f);return c.createElement(a.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",element:"".concat(i,"_WRAPPER")},c.createElement(u.Label,(0,o.Z)((0,o.Z)({},v),{},{as:"div",element:i,id:"".concat(l).concat(p),ref:t,disabled:m}),s),h&&c.createElement(d.Text,{as:"span",fontWeight:"fontWeightSemibold",textAlign:"end",marginBottom:"space20",marginLeft:"space20","aria-hidden":"true",element:"".concat(i,"_VALUE_LABEL"),color:m?"colorTextWeak":void 0},h))}));v.displayName="ProgressBarLabel"},4670:function(e,t,n){"use strict";n.r(t),n.d(t,{ProgressStepComplete:function(){return k},ProgressStepContent:function(){return w},ProgressStepCurrent:function(){return C},ProgressStepError:function(){return I},ProgressStepIncomplete:function(){return _},ProgressStepSeparator:function(){return x},ProgressSteps:function(){return b}});var r=n(1413),o=n(4925),i=n(1923),a=n(7666),s=n(2791),l=n(8306),c=n(8015),u=n(9628),d=["element","orientation"],f=["element","paddingY"],p=["element","as","children","i18nCompleteLabel"],h=["element","as","disabled","children","i18nIncompleteLabel"],m=["element","as","children","i18nCurrentLabel"],v=["element","as","children","i18nErrorLabel"],g=s.createContext({}),y={vertical:{flexDirection:"column",alignItems:"flex-start","[role='listitem']>*>div:first-child::after":{content:"''",borderLeftWidth:"borderWidth20",borderLeftStyle:"solid",borderLeftColor:"colorBorderWeaker",borderRadius:"borderRadius0",minHeight:"sizeBase80",flexGrow:"1",marginY:"space30"},"[role='listitem']:last-child>*>div:first-child::after":{content:"none"}},horizontal:{flexWrap:"nowrap","[role='listitem']":{display:"flex",alignItems:"flex-start",flexGrow:"1","&::after":{content:"''",borderBottomWidth:"borderWidth20",borderBottomStyle:"solid",borderBottomColor:"colorBorderWeaker",borderRadius:"borderRadius20",minWidth:"sizeBase40",flexGrow:1,marginTop:"10px"},"&>*:first-child":{marginX:"space30"}},"[role='listitem']:first-child":{"&>*:first-child":{marginLeft:"space0"}},"[role='listitem']:last-child":{flexGrow:"0","&::after":{content:"none"},"&>*:last-child":{marginRight:"space0"}}}},b=s.forwardRef((function(e,t){var n=e.element,l=void 0===n?"PROGRESS_STEPS":n,c=e.orientation,u=void 0===c?"horizontal":c,f=(0,o.Z)(e,d),p=s.useMemo((function(){return a.iK.div((0,a.iv)((0,r.Z)({display:"flex"},y[u])))}),[u]);return s.createElement(g.Provider,{value:{orientation:u}},s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(f)),{},{as:p,ref:t,element:l,role:"list"}),f.children))}));b.displayName="ProgressSteps";var x=s.forwardRef((function(){return null}));x.displayName="ProgressStepSeparator";var w=s.forwardRef((function(e,t){var n=e.element,r=void 0===n?"PROGRESS_STEP_CONTENT":n,a=e.paddingY,l=void 0===a?"space40":a,c=(0,o.Z)(e,f);return s.createElement(i.Box,{element:r,color:"colorText",ref:t,paddingY:l},c.children)}));w.displayName="ProgressStepContent";var k=s.forwardRef((function(e,t){var n=e.element,a=void 0===n?"PROGRESS_STEP_COMPLETE":n,c=e.as,u=void 0===c?"div":c,d=e.children,f=e.i18nCompleteLabel,h=void 0===f?"Completed":f,m=(0,o.Z)(e,p);return s.createElement("div",{role:"listitem"},s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(m)),{},{element:a,as:u,type:"button"===u?"button":void 0,ref:t,display:"flex",columnGap:"space30",border:"none",background:"none",padding:"space0",margin:"space0",fontFamily:"fontFamilyText",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"button"===u?"fontWeightSemibold":"fontWeightMedium",outline:"none",borderRadius:"borderRadius20",cursor:"div"!==u?"pointer":"default",color:"colorTextWeak",_hover:"div"!==u?{textDecoration:"none",color:"colorTextPrimary"}:void 0,_focus:"div"!==u?{boxShadow:"shadowFocus"}:void 0}),s.createElement(i.Box,{display:"flex",flexDirection:"column",alignItems:"center"},s.createElement(l.t,{decorative:!1,title:h})),s.createElement(i.Box,{textAlign:"left"},d)))}));k.displayName="ProgressStepComplete";var S=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,l=e.color,d=e.title,f=e.decorative,p="ProgressIncompleteIcon-".concat((0,u.Dt)());if(!f&&null==d)throw new Error("[ProgressIncompleteIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:l,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,fill:"none",height:"100%",viewBox:"0 0 20 20",width:"100%",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",clipRule:"evenodd",d:"M9.993 2h.014a1.23 1.23 0 01-.002 2.462h-.01A1.23 1.23 0 019.993 2zm2.321 1.518a1.23 1.23 0 011.681-.45l.013.007a1.23 1.23 0 01-1.235 2.13l-.008-.005a1.23 1.23 0 01-.45-1.682zm-4.628 0a1.23 1.23 0 01-.45 1.682l-.009.004a1.23 1.23 0 01-1.235-2.13l.012-.006a1.23 1.23 0 011.682.45zm7.557 2.027a1.23 1.23 0 011.682.447l.007.012A1.23 1.23 0 1114.8 7.235l-.004-.008a1.23 1.23 0 01.447-1.682zm-10.486 0a1.23 1.23 0 01.447 1.682l-.004.008a1.23 1.23 0 01-2.132-1.23l.007-.013a1.23 1.23 0 011.682-.447zm12.011 3.218c.68 0 1.231.55 1.232 1.23v.014a1.23 1.23 0 01-2.461-.002v-.01c-.001-.68.55-1.231 1.23-1.232zm-13.536 0c.68 0 1.23.552 1.23 1.232v.01A1.23 1.23 0 012 10.007v-.014c0-.68.552-1.23 1.232-1.23zm13.25 3.551c.588.34.79 1.093.45 1.681l-.007.013a1.23 1.23 0 01-2.13-1.235l.005-.008a1.23 1.23 0 011.682-.45zm-12.964 0a1.23 1.23 0 011.682.45l.004.009a1.23 1.23 0 01-2.13 1.235l-.006-.012a1.23 1.23 0 01.45-1.682zm2.027 2.93a1.23 1.23 0 011.682-.448l.008.004a1.23 1.23 0 01-1.23 2.132l-.013-.007a1.23 1.23 0 01-.447-1.682zm8.91 0a1.23 1.23 0 01-.447 1.681l-.012.007a1.23 1.23 0 11-1.231-2.132l.008-.004a1.23 1.23 0 011.682.447zm-5.692 1.524c0-.68.552-1.23 1.232-1.23h.01A1.23 1.23 0 1110.007 18h-.014a1.23 1.23 0 01-1.23-1.232z",fillRule:"evenodd"})))}));S.displayName="ProgressIncompleteIcon";var _=s.forwardRef((function(e,t){var n=e.element,a=void 0===n?"PROGRESS_STEP_INCOMPLETE":n,l=e.as,c=void 0===l?"div":l,u=e.disabled,d=void 0!==u&&u,f=e.children,p=e.i18nIncompleteLabel,m=void 0===p?"Incomplete":p,v=(0,o.Z)(e,h);return s.createElement("div",{role:"listitem"},s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(v)),{},{element:a,as:c,type:"button"===c?"button":void 0,disabled:d,ref:t,display:"flex",columnGap:"space30",border:"none",background:"none",padding:"space0",margin:"space0",fontFamily:"fontFamilyText",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"button"===c?"fontWeightSemibold":"fontWeightMedium",outline:"none",borderRadius:"borderRadius20",cursor:"div"!==c?"pointer":"default",color:d?"colorTextWeaker":"colorTextWeak",_hover:"div"!==c?{textDecoration:"none",color:"colorTextPrimary"}:void 0,_focus:"div"!==c?{boxShadow:"shadowFocus"}:void 0,_disabled:{textDecoration:"none",color:"colorTextWeaker",cursor:"not-allowed"}}),s.createElement(i.Box,{display:"flex",flexDirection:"column",alignItems:"center"},s.createElement(S,{decorative:!1,title:m})),s.createElement(i.Box,{textAlign:"left"},f)))}));_.displayName="ProgressStepIncomplete";var E=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,l=e.color,d=e.title,f=e.decorative,p="ProgressCurrentIcon-".concat((0,u.Dt)());if(!f&&null==d)throw new Error("[ProgressCurrentIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:l,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,fill:"none",height:"100%",viewBox:"0 0 20 20",width:"100%",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",clipRule:"evenodd",d:"M10 16a6 6 0 100-12 6 6 0 000 12zm0 2a8 8 0 100-16 8 8 0 000 16z",fillRule:"evenodd"})))}));E.displayName="ProgressCurrentIcon";var C=s.forwardRef((function(e,t){var n=e.element,a=void 0===n?"PROGRESS_STEP_CURRENT":n,l=e.as,c=void 0===l?"div":l,u=e.children,d=e.i18nCurrentLabel,f=void 0===d?"Current":d,p=(0,o.Z)(e,m);return s.createElement("div",{role:"listitem"},s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(p)),{},{element:a,as:c,type:"button"===c?"button":void 0,ref:t,"aria-current":"step",display:"flex",columnGap:"space30",border:"none",background:"none",padding:"space0",margin:"space0",fontFamily:"fontFamilyText",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"button"===c?"fontWeightSemibold":"fontWeightMedium",outline:"none",borderRadius:"borderRadius20",cursor:"div"!==c?"pointer":"default",color:"colorTextPrimary",_hover:"div"!==c?{textDecoration:"none",color:"colorTextPrimaryStrongest"}:void 0,_focus:"div"!==c?{boxShadow:"shadowFocus"}:void 0}),s.createElement(i.Box,{display:"flex",flexDirection:"column",alignItems:"center"},s.createElement(E,{decorative:!1,title:f})),s.createElement(i.Box,{textAlign:"left"},u)))}));C.displayName="ProgressStepCurrent";var T=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,l=e.color,d=e.title,f=e.decorative,p="ProgressErrorIcon-".concat((0,u.Dt)());if(!f&&null==d)throw new Error("[ProgressErrorIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:l,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,fill:"none",height:"100%",viewBox:"0 0 20 20",width:"100%",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",clipRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM9.985 5h.03c.916.011 1.609.889 1.466 1.866l-.641 3.357c-.061.444-.418.777-.835.777h-.01c-.418 0-.774-.333-.835-.777l-.642-3.357C8.376 5.889 9.078 5 9.985 5zM10 15.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",fillRule:"evenodd"})))}));T.displayName="ProgressErrorIcon";var I=s.forwardRef((function(e,t){var n=e.element,a=void 0===n?"PROGRESS_STEP_ERROR":n,l=e.as,c=void 0===l?"div":l,u=e.children,d=e.i18nErrorLabel,f=void 0===d?"Error":d,p=(0,o.Z)(e,v);return s.createElement("div",{role:"listitem"},s.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(p)),{},{element:a,as:c,type:"button"===c?"button":void 0,ref:t,display:"flex",columnGap:"space30",border:"none",background:"none",padding:"space0",margin:"space0",fontFamily:"fontFamilyText",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"button"===c?"fontWeightSemibold":"fontWeightMedium",outline:"none",borderRadius:"borderRadius20",cursor:"div"!==c?"pointer":"default",color:"colorTextError",_hover:"div"!==c?{textDecoration:"none",color:"colorTextErrorStrongest"}:void 0,_focus:"div"!==c?{boxShadow:"shadowFocus"}:void 0}),s.createElement(i.Box,{display:"flex",flexDirection:"column",alignItems:"center"},s.createElement(T,{decorative:!1,title:f})),s.createElement(i.Box,{textAlign:"left"},u)))}));I.displayName="ProgressStepError"},6045:function(e,t,n){"use strict";n.r(t),n.d(t,{RadioButton:function(){return g},RadioButtonGroup:function(){return x}});var r=n(4925),o=n(1413),i=n(1923),a=n(9741),s=n(9628),l=n(2791),c=n(7666),u=n(324),d=n(9114),f=["id","name","element","value","checked","defaultChecked","disabled","hasError","onChange","children"],p=["name","element","value","onChange","disabled","errorText","children","i18nRequiredLabel","helpText","legend","required","attached"],h=l.forwardRef((function(e,t){return l.createElement(i.Box,(0,o.Z)({as:"input",type:"radio",size:"size0",border:"none",overflow:"hidden",padding:"space0",margin:"space0",whiteSpace:"nowrap",textTransform:"none",position:"absolute",clip:"rect(0 0 0 0)",ref:t},e))}));h.displayName="HiddenRadio";var m=l.createContext({name:"",value:"",disabled:!1,hasError:!1,onChange:function(){},attached:!1}),v=c.iK.label((0,c.iv)({"& > input[type=radio]:checked + span":(0,o.Z)((0,o.Z)({},a.ButtonToggleStyles._pressed),{},{zIndex:1}),"& > input[type=radio]:checked + span:hover":(0,o.Z)((0,o.Z)({},a.ButtonToggleStyles._pressed_hover),{},{zIndex:2}),"& > input[type=radio]:checked:focus + span":(0,o.Z)((0,o.Z)({},a.ButtonToggleStyles._pressed_focus),{},{zIndex:3}),"& > input[type=radio][aria-invalid=true]:checked + span":(0,o.Z)((0,o.Z)({},a.DestructiveSecondaryButtonToggleStyles._pressed),{},{zIndex:1}),"& > input[type=radio][aria-invalid=true]:checked + span:hover":(0,o.Z)((0,o.Z)({},a.DestructiveSecondaryButtonToggleStyles._pressed_hover),{},{zIndex:2}),"& > input[type=radio][aria-invalid=true]:checked:focus + span":(0,o.Z)((0,o.Z)({},a.DestructiveSecondaryButtonToggleStyles._pressed_focus),{},{zIndex:3}),"& > input[type=radio]:checked:disabled + span":(0,o.Z)((0,o.Z)({},a.ButtonToggleStyles._pressed_disabled),{},{zIndex:0}),"& > input[type=radio][aria-invalid=true]:checked:disabled + span:hover":(0,o.Z)((0,o.Z)({},a.DestructiveSecondaryButtonToggleStyles._pressed_disabled),{},{zIndex:0}),"& > input[type=radio]:disabled + span":(0,o.Z)((0,o.Z)({},a.ButtonToggleStyles._disabled),{},{zIndex:0}),"& > input[type=radio][aria-invalid=true]:disabled + span:hover":(0,o.Z)((0,o.Z)({},a.DestructiveSecondaryButtonToggleStyles._disabled),{},{zIndex:0})})),g=l.forwardRef((function(e,t){var n=e.id,c=e.name,u=e.element,d=void 0===u?"RADIO_BUTTON":u,p=e.value,g=e.checked,y=e.defaultChecked,b=e.disabled,x=e.hasError,w=e.onChange,k=e.children,S=(0,r.Z)(e,f);if(null!=g&&null!=y)throw new Error("[Paste RadioButton] Do not provide both 'defaultChecked' and 'checked' to RadioButton at the same time. Please consider if you want this component to be controlled or uncontrolled.");var _=l.useContext(m),E=n||(0,s.Dt)(),C=l.useMemo((function(){return void 0!==g||""!==_.value}),[]),T=l.useCallback((function(e){w?w(e):_.onChange(e)}),[w,_.onChange]),I={name:null!==c&&void 0!==c?c:_.name,disabled:null!==b&&void 0!==b?b:_.disabled,hasError:null!==x&&void 0!==x?x:_.hasError};return C?""!==_.value?I.checked=_.value===p:I.checked=g:I.defaultChecked=y,l.createElement(i.Box,{element:d,as:v},l.createElement(h,(0,o.Z)((0,o.Z)((0,o.Z)({},(0,i.safelySpreadBoxProps)(S)),I),{},{value:p,"aria-invalid":I.hasError,onChange:T,id:E,ref:t})),l.createElement(a.Button,{variant:I.hasError?"destructive_secondary":"secondary",as:"span",disabled:I.disabled},k))}));g.displayName="RadioButton";var y=c.iK.span((0,c.iv)({"& > label:focus-within":{zIndex:2,position:"relative"},"& > label:first-of-type":{"& > span":{borderTopRightRadius:0,borderBottomRightRadius:0}},"& > label:not(:first-of-type):not(:last-of-type)":{"& > span":{borderRadius:0,marginLeft:"1px"}},"& > label:last-of-type":{"& > span":{marginLeft:"1px",borderTopLeftRadius:0,borderBottomLeftRadius:0}}})),b=c.iK.span((0,c.iv)({"& > label:first-of-type":{marginLeft:"space0"},"& > label:not(:first-of-type)":{marginLeft:"space40"}})),x=l.forwardRef((function(e,t){var n=e.name,a=e.element,s=void 0===a?"RADIO_BUTTON_GROUP":a,c=e.value,f=e.onChange,h=e.disabled,v=void 0!==h&&h,g=e.errorText,x=e.children,w=e.i18nRequiredLabel,k=void 0===w?"(required)":w,S=e.helpText,_=e.legend,E=e.required,C=e.attached,T=void 0!==C&&C,I=(0,r.Z)(e,p),B=l.useCallback((function(e){null===f||void 0===f||f(e.target.value)}),[f]),O=l.useMemo((function(){return{name:n,value:c||"",disabled:v,hasError:null!=g,onChange:B}}),[n,c,v,g,B]);return l.createElement(m.Provider,{value:O},l.createElement(i.Box,(0,o.Z)({as:"fieldset",element:s,margin:"space0",padding:"space0",border:"none",display:"flex",flexDirection:"column",ref:t},(0,i.safelySpreadBoxProps)(I)),l.createElement(d.Label,{as:"legend",element:"LEGEND",htmlFor:void 0,required:E,marginBottom:"space0",disabled:v,i18nRequiredLabel:k},_),S&&l.createElement(u.HelpText,{variant:"default",marginTop:"space0"},S),l.createElement(i.Box,{as:T?y:b,marginTop:"space20"},x),g&&l.createElement(u.HelpText,{variant:"error"},g)))}));x.displayName="RadioButtonGroup"},9987:function(e,t,n){"use strict";n.r(t),n.d(t,{HiddenRadio:function(){return h},Radio:function(){return m},RadioGroup:function(){return v}});var r=n(885),o=n(4925),i=n(1413),a=n(7549),s=n(1923),l=n(9628),c=n(2791),u=n(463),d=["id","name","element","value","checked","defaultChecked","disabled","hasError","onChange","children","helpText"],f=["name","element","value","onChange","disabled","errorText","children","i18nRequiredLabel"],p=c.createContext({name:"",value:"",disabled:!1,hasError:!1,onChange:function(){}}),h=c.forwardRef((function(e,t){return c.createElement(s.Box,(0,i.Z)({as:"input",type:"radio",size:"size0",border:"none",overflow:"hidden",padding:"space0",margin:"space0",whiteSpace:"nowrap",textTransform:"none",position:"absolute",clip:"rect(0 0 0 0)",ref:t},e))}));h.displayName="HiddenRadio";var m=c.forwardRef((function(e,t){var n=e.id,u=e.name,f=e.element,m=void 0===f?"RADIO":f,v=e.value,g=e.checked,y=e.defaultChecked,b=e.disabled,x=e.hasError,w=e.onChange,k=e.children,S=e.helpText,_=(0,o.Z)(e,d);if(null!=g&&null!=y)throw new Error("[Paste Radio] Do not provide both 'defaultChecked' and 'checked' to Radio at the same time. Please consider if you want this component to be controlled or uncontrolled.");var E=c.useState(y),C=(0,r.Z)(E,2),T=C[0],I=C[1],B=c.useContext(p),O=(0,l.Dt)(),P=n||(0,l.Dt)(),R=c.useMemo((function(){return void 0!==g||""!==B.value}),[]),A=c.useCallback((function(e){w?w(e):B.onChange(e),R||I(e.target.checked)}),[w,B,R]),M={name:null!==u&&void 0!==u?u:B.name,disabled:null!==b&&void 0!==b?b:B.disabled,hasError:null!==x&&void 0!==x?x:B.hasError};R?""!==B.value?M.checked=B.value===v:M.checked=g:M.defaultChecked=y;var N=R?M.checked||M.defaultChecked:T;return c.createElement(s.Box,{element:m,position:"relative",display:"inline-flex",alignItems:"flex-start",flexDirection:"column",verticalAlign:"top"},c.createElement(h,(0,i.Z)((0,i.Z)((0,i.Z)({},_),M),{},{value:v,"aria-describedby":O,"aria-invalid":M.hasError,onChange:A,id:P,ref:t})),c.createElement(a.BaseRadioCheckboxLabel,{disabled:M.disabled,htmlFor:P},c.createElement(a.BaseRadioCheckboxControl,{element:"".concat(m,"_CONTROL"),borderRadius:"borderRadiusCircle",disabled:M.disabled,type:"radio",_checkedAndDisabledSibling:{color:"colorTextWeaker"}},c.createElement(s.Box,{as:"span",element:"".concat(m,"_CONTROL_CIRCLE"),lineHeight:"lineHeight0",display:N?"block":"none",color:"inherit",size:"sizeIcon10"},c.createElement("svg",{role:"img","aria-hidden":!0,width:"100%",height:"100%",viewBox:"0 0 16 16",fill:"none"},c.createElement("circle",{fill:"currentColor",cx:8,cy:8,r:3})))),c.createElement(a.BaseRadioCheckboxLabelText,{element:"".concat(m,"_LABEL_TEXT"),fontWeight:"fontWeightMedium"},k)),S&&c.createElement(a.BaseRadioCheckboxHelpText,{element:"".concat(m,"_HELP_TEXT_WRAPPER"),helpTextId:O},S))}));m.displayName="Radio";var v=c.forwardRef((function(e,t){var n=e.name,r=e.element,a=void 0===r?"RADIO_GROUP":r,s=e.value,l=e.onChange,d=e.disabled,h=void 0!==d&&d,m=e.errorText,v=e.children,g=e.i18nRequiredLabel,y=void 0===g?"(required)":g,b=(0,o.Z)(e,f),x=c.useCallback((function(e){null===l||void 0===l||l(e.target.value)}),[l]),w=c.useMemo((function(){return{name:n,value:s||"",disabled:h,hasError:null!=m,onChange:x}}),[n,s,h,m,x]);return c.createElement(p.Provider,{value:w},c.createElement(u.InlineControlGroup,(0,i.Z)((0,i.Z)({element:a},b),{},{disabled:h,errorText:m,name:n,ref:t,i18nRequiredLabel:y}),v))}));v.displayName="RadioGroup"},875:function(e,t,n){"use strict";n.d(t,{D6:function(){return Le},MJ:function(){return je},oN:function(){return Ze},pS:function(){return Fe},xu:function(){return He}});var r=n(4942),o=n(4925),i=n(4165),a=n(5671),s=n(3144),l=n(2982),c=n(7762),u=n(1413),d=n(885),f=n(2791),p=["ref"];function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;return Math.min(Math.max(e,t),n)}function m(e,t,n,r){var o=(e-(isNaN(t)?0:t))%r,i=2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);var a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){var c=Math.pow(10,l);i=Math.round(i*c)/c}return i}var v={prefix:String(Math.round(1e10*Math.random())),current:0,isSSR:!1},g=f.createContext(v),y=Boolean(typeof window<"u"&&window.document&&window.document.createElement),b=new WeakMap;var x="function"==typeof f.useId?function(e){var t=f.useId(),n=(0,f.useState)(_()),r=(0,d.Z)(n,1)[0]?"react-aria":"react-aria".concat(v.prefix);return e||"".concat(r,"-").concat(t)}:function(e){var t=(0,f.useContext)(g);t===v&&!y&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");var n=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,f.useContext)(g),n=(0,f.useRef)(null);if(null===n.current&&!e){var r,o,i=null===(r=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===r||null===(o=r.ReactCurrentOwner)||void 0===o?void 0:o.current;if(i){var a=b.get(i);null==a?b.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,b.delete(i))}n.current=++t.current}return n.current}(!!e);return e||"react-aria".concat(t.prefix,"-").concat(n)};function w(){return!1}function k(){return!0}function S(e){return function(){}}function _(){return"function"==typeof f.useSyncExternalStore?f.useSyncExternalStore(S,w,k):(0,f.useContext)(g).isSSR}function E(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=E(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var C=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E(e))&&(r&&(r+=" "),r+=t);return r},T=typeof window<"u"?f.useLayoutEffect:function(){},I=new Map;function B(e){var t=(0,f.useState)(e),n=(0,d.Z)(t,2),r=n[0],o=n[1],i=(0,f.useRef)(null),a=x(r),s=(0,f.useCallback)((function(e){i.current=e}),[]);return I.set(a,s),T((function(){var e=a;return function(){I.delete(e)}}),[a]),(0,f.useEffect)((function(){var e=i.current;e&&(i.current=null,o(e))})),a}function O(e,t){if(e===t)return e;var n=I.get(e);if(n)return n(t),t;var r=I.get(t);return r?(r(e),e):t}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=0,n=t;e<n.length;e++){var r=n[e];"function"==typeof r&&r.apply(void 0,arguments)}}}function R(){for(var e=(0,u.Z)({},arguments.length<=0?void 0:arguments[0]),t=1;t<arguments.length;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];for(var r in n){var o=e[r],i=n[r];"function"==typeof o&&"function"==typeof i&&"o"===r[0]&&"n"===r[1]&&r.charCodeAt(2)>=65&&r.charCodeAt(2)<=90?e[r]=P(o,i):"className"!==r&&"UNSAFE_className"!==r||"string"!=typeof o||"string"!=typeof i?"id"===r&&o&&i?e.id=O(o,i):e[r]=void 0!==i?i:o:e[r]=C(o,i)}}return e}var A=new Set(["id"]),M=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),N=/^(data-.*)$/;function D(e){if(function(){if(null==L){L=!1;try{document.createElement("div").focus({get preventScroll(){return L=!0,!0}})}catch(e){}}return L}())e.focus({preventScroll:!0});else{var t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){var t,n=(0,c.Z)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=r.element,i=r.scrollTop,a=r.scrollLeft;o.scrollTop=i,o.scrollLeft=a}}catch(s){n.e(s)}finally{n.f()}}(t)}}var L=null;var j=new Map,z=new Set;function W(){if(!(typeof window>"u")){var e=function e(t){var n=j.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),j.delete(t.target)),0===j.size)){var r,o=(0,c.Z)(z);try{for(o.s();!(r=o.n()).done;){(0,r.value)()}}catch(i){o.e(i)}finally{o.f()}z.clear()}};document.body.addEventListener("transitionrun",(function(t){var n=j.get(t.target);n||(n=new Set,j.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}}function Z(e){requestAnimationFrame((function(){0===j.size?e():z.add(e)}))}function F(){var e=(0,f.useRef)(new Map),t=(0,f.useCallback)((function(t,n,r,o){var i=null!==o&&void 0!==o&&o.once?function(){e.current.delete(r),r.apply(void 0,arguments)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,f.useCallback)((function(t,n,r,o){var i,a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),r=(0,f.useCallback)((function(){e.current.forEach((function(e,t){n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,f.useEffect)((function(){return r}),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}typeof document<"u"&&("loading"!==document.readyState?W():document.addEventListener("DOMContentLoaded",W));typeof window<"u"&&window.visualViewport;function H(e){var t;return typeof window<"u"&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function U(){return H(/^Mac/i)}function $(){return H(/^iPhone/i)||H(/^iPad/i)||U()&&navigator.maxTouchPoints>1}function G(){return function(e){var t;return!(typeof window>"u"||null==window.navigator)&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((function(t){return e.test(t.brand)})))||e.test(window.navigator.userAgent))}(/Android/i)}function q(e){var t=(0,f.useRef)(null);return T((function(){t.current=e}),[e]),(0,f.useCallback)((function(){var e=t.current;return e.apply(void 0,arguments)}),[])}var K="default",V="",Y=new WeakMap;f.createContext(null).displayName="PressResponderContext";var X=function(){function e(t,n){(0,a.Z)(this,e),this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}return(0,s.Z)(e,[{key:"isDefaultPrevented",value:function(){return this.nativeEvent.defaultPrevented}},{key:"preventDefault",value:function(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=function(){return!0}}},{key:"isPropagationStopped",value:function(){return!1}},{key:"persist",value:function(){}}]),e}();function J(e){var t=e.isDisabled,n=e.onFocus,r=e.onBlur,o=e.onFocusChange,i=(0,f.useCallback)((function(e){if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=function(e){var t=(0,f.useRef)({isFocused:!1,observer:null});T((function(){var e=t.current;return function(){e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);var n=q((function(t){null===e||void 0===e||e(t)}));return(0,f.useCallback)((function(e){if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;var r=e.target;r.addEventListener("focusout",(function(e){t.current.isFocused=!1,r.disabled&&n(new X("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)}),{once:!0}),t.current.observer=new MutationObserver((function(){if(t.current.isFocused&&r.disabled){t.current.observer.disconnect();var e=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}(i),s=(0,f.useCallback)((function(e){e.target===e.currentTarget&&document.activeElement===e.target&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:t||!r&&!o?void 0:i}}}var Q=null,ee=new Set,te=!1,ne=!1,re=!1;function oe(e,t){var n,r=(0,c.Z)(ee);try{for(r.s();!(n=r.n()).done;){(0,n.value)(e,t)}}catch(o){r.e(o)}finally{r.f()}}function ie(e){ne=!0,function(e){return!(e.metaKey||!U()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Q="keyboard",oe("keyboard",e))}function ae(e){Q="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(ne=!0,oe("pointer",e))}function se(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(G()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(ne=!0,Q="virtual")}function le(e){e.target===window||e.target===document||(!ne&&!re&&(Q="virtual",oe("virtual",e)),ne=!1,re=!1)}function ce(){ne=!1,re=!0}function ue(){if(!(typeof window>"u"||te)){var e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){ne=!0,e.apply(this,arguments)},document.addEventListener("keydown",ie,!0),document.addEventListener("keyup",ie,!0),document.addEventListener("click",se,!0),window.addEventListener("focus",le,!0),window.addEventListener("blur",ce,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ae,!0),document.addEventListener("pointermove",ae,!0),document.addEventListener("pointerup",ae,!0)):(document.addEventListener("mousedown",ae,!0),document.addEventListener("mousemove",ae,!0),document.addEventListener("mouseup",ae,!0)),te=!0}}function de(e){if(e){var t=!0;return function(n){var r=(0,u.Z)((0,u.Z)({},n),{},{preventDefault:function(){n.preventDefault()},isDefaultPrevented:function(){return n.isDefaultPrevented()},stopPropagation:function(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation:function(){t=!1}});e(r),t&&n.stopPropagation()}}}function fe(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:de(e.onKeyDown),onKeyUp:de(e.onKeyUp)}}}function pe(e){var t=e.onMoveStart,n=e.onMove,r=e.onMoveEnd,o=(0,f.useRef)({didMove:!1,lastPosition:null,id:null}),i=F(),a=i.addGlobalListener,s=i.removeGlobalListener,c=q((function(e,r,i,a){0===i&&0===a||(o.current.didMove||(o.current.didMove=!0,null!==t&&void 0!==t&&t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n({type:"move",pointerType:r,deltaX:i,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),u=q((function(e,t){(function(e){if($()){if("disabled"!==K)return;K="restoring",setTimeout((function(){Z((function(){"restoring"===K&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=V||""),V="",K="default")}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Y.has(e)){var t=Y.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Y.delete(e)}})(),o.current.didMove&&(null===r||void 0===r||r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))}));return{moveProps:(0,f.useMemo)((function(){var e={},t=function(){var e;$()?("default"===K&&(V=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),K="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Y.set(e,e.style.userSelect),e.style.userSelect="none"),o.current.didMove=!1};if(typeof PointerEvent>"u"){var n=function(e){0===e.button&&(c(e,"mouse",e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=function e(t){0===t.button&&(u(t,"mouse"),s(window,"mousemove",n,!1),s(window,"mouseup",e,!1))};e.onMouseDown=function(e){0===e.button&&(t(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},a(window,"mousemove",n,!1),a(window,"mouseup",r,!1))};var i=function(e){var t=(0,l.Z)(e.changedTouches).findIndex((function(e){return e.identifier===o.current.id}));if(t>=0){var n=e.changedTouches[t],r=n.pageX,i=n.pageY;c(e,"touch",r-o.current.lastPosition.pageX,i-o.current.lastPosition.pageY),o.current.lastPosition={pageX:r,pageY:i}}},d=function e(t){(0,l.Z)(t.changedTouches).findIndex((function(e){return e.identifier===o.current.id}))>=0&&(u(t,"touch"),o.current.id=null,s(window,"touchmove",i),s(window,"touchend",e),s(window,"touchcancel",e))};e.onTouchStart=function(e){if(0!==e.changedTouches.length&&null==o.current.id){var n=e.changedTouches[0],r=n.pageX,s=n.pageY,l=n.identifier;t(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:r,pageY:s},o.current.id=l,a(window,"touchmove",i,!1),a(window,"touchend",d,!1),a(window,"touchcancel",d,!1)}}}else{var f=function(e){if(e.pointerId===o.current.id){var t=e.pointerType||"mouse";c(e,t,e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},p=function e(t){if(t.pointerId===o.current.id){var n=t.pointerType||"mouse";u(t,n),o.current.id=null,s(window,"pointermove",f,!1),s(window,"pointerup",e,!1),s(window,"pointercancel",e,!1)}};e.onPointerDown=function(e){0===e.button&&null==o.current.id&&(t(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o.current.id=e.pointerId,a(window,"pointermove",f,!1),a(window,"pointerup",p,!1),a(window,"pointercancel",p,!1))}}var h=function(e,n,r){t(),c(e,"keyboard",n,r),u(e,"keyboard")};return e.onKeyDown=function(e){switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),h(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),h(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),h(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),h(e,0,1)}},e}),[o,a,s,c,u])}}function he(e){if("virtual"===Q){var t=document.activeElement;Z((function(){document.activeElement===t&&document.contains(e)&&D(e)}))}else D(e)}typeof document<"u"&&("loading"!==document.readyState?ue():document.addEventListener("DOMContentLoaded",ue));var me=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"];me.join(":not([hidden]),");me.push('[tabindex]:not([tabindex="-1"]):not([disabled])');me.join(':not([hidden]):not([tabindex="-1"]),');function ve(e,t){return t.some((function(t){return t.contains(e)}))}var ge=function(){function e(){(0,a.Z)(this,e),this.fastMap=new Map,this.root=new ye({scopeRef:null}),this.fastMap.set(null,this.root)}return(0,s.Z)(e,[{key:"size",get:function(){return this.fastMap.size}},{key:"getTreeNode",value:function(e){return this.fastMap.get(e)}},{key:"addTreeNode",value:function(e,t,n){var r=this.fastMap.get(null!==t&&void 0!==t?t:null),o=new ye({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}},{key:"addNode",value:function(e){this.fastMap.set(e.scopeRef,e)}},{key:"removeTreeNode",value:function(e){if(null!==e){var t,n=this.fastMap.get(e),r=n.parent,o=(0,c.Z)(this.traverse());try{for(o.s();!(t=o.n()).done;){var i=t.value;i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef.current&&ve(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore)}}catch(s){o.e(s)}finally{o.f()}var a=n.children;r.removeChild(n),a.size>0&&a.forEach((function(e){return r.addChild(e)})),this.fastMap.delete(n.scopeRef)}}},{key:"traverse",value:(0,i.Z)().mark((function e(){var t,n,r,o,a=arguments;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:this.root,e.t0=null!=t.scopeRef,!e.t0){e.next=5;break}return e.next=5,t;case 5:if(!(t.children.size>0)){e.next=22;break}n=(0,c.Z)(t.children),e.prev=7,n.s();case 9:if((r=n.n()).done){e.next=14;break}return o=r.value,e.delegateYield(this.traverse(o),"t1",12);case 12:e.next=9;break;case 14:e.next=19;break;case 16:e.prev=16,e.t2=e.catch(7),n.e(e.t2);case 19:return e.prev=19,n.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[7,16,19,22]])}))},{key:"clone",value:function(){var t,n=new e,r=(0,c.Z)(this.traverse());try{for(r.s();!(t=r.n()).done;){var o=t.value;n.addTreeNode(o.scopeRef,o.parent.scopeRef,o.nodeToRestore)}}catch(i){r.e(i)}finally{r.f()}return n}}]),e}(),ye=function(){function e(t){(0,a.Z)(this,e),this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}return(0,s.Z)(e,[{key:"addChild",value:function(e){this.children.add(e),e.parent=this}},{key:"removeChild",value:function(e){this.children.delete(e),e.parent=void 0}}]),e}(),be=(new ge,f.createContext(null));function xe(e){var t=(0,f.useContext)(be)||{};!function(e,t){T((function(){if(e&&e.ref&&t)return e.ref.current=t.current,function(){e.ref.current=null}}),[e,t])}(t,e);t.ref;return(0,o.Z)(t,p)}var we=new Map,ke=!1;try{ke="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(qe){}var Se=!1;try{Se="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(Ke){}var _e={degree:{narrow:{default:"\xb0","ja-JP":" \u5ea6","zh-TW":"\u5ea6","sl-SI":" \xb0"}}},Ee=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.numberFormatter=Ce(t,n),this.options=n}return(0,s.Z)(e,[{key:"format",value:function(e){var t="";if(t=ke||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));var r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){var o=e.format(-n),i=e.format(n),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return 1!==(0,l.Z)(a).length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}return e.format(n)}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Se){var n,r=this.resolvedOptions(),o=r.unit,i=r.unitDisplay,a=void 0===i?"short":i,s=r.locale,c=null===(n=_e[o])||void 0===n?void 0:n[a];t+=c[s]||c.default}return t}},{key:"formatToParts",value:function(e){return this.numberFormatter.formatToParts(e)}},{key:"formatRange",value:function(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >=start date");return"".concat(this.format(e)," \u2013 ").concat(this.format(t))}},{key:"formatRangeToParts",value:function(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >=start date");var n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[].concat((0,l.Z)(n.map((function(e){return(0,u.Z)((0,u.Z)({},e),{},{source:"startRange"})}))),[{type:"literal",value:" \u2013 ",source:"shared"}],(0,l.Z)(r.map((function(e){return(0,u.Z)((0,u.Z)({},e),{},{source:"endRange"})}))))}},{key:"resolvedOptions",value:function(){var e=this.numberFormatter.resolvedOptions();return!ke&&null!=this.options.signDisplay&&(e=(0,u.Z)((0,u.Z)({},e),{},{signDisplay:this.options.signDisplay})),!Se&&"unit"===this.options.style&&(e=(0,u.Z)((0,u.Z)({},e),{},{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}}]),e}();function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t,r=n.numberingSystem;if(r&&-1===e.indexOf("-u-nu-")&&(e="".concat(e,"-u-nu-").concat(r)),"unit"===t.style&&!Se){var o,i=t,a=i.unit,s=i.unitDisplay,l=void 0===s?"short":s;if(!a)throw new Error('unit option must be provided with style: "unit"');if(null===(o=_e[a])||void 0===o||!o[l])throw new Error("Unsupported unit ".concat(a," with unitDisplay=").concat(l));t=(0,u.Z)((0,u.Z)({},t),{},{style:"decimal"})}var c=e+(t?Object.entries(t).sort((function(e,t){return e[0]<t[0]?-1:1})).join():"");if(we.has(c))return we.get(c);var d=new Intl.NumberFormat(e,t);return we.set(c,d),d}var Te=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ie=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Be(e){if(Intl.Locale){var t=new Intl.Locale(e).maximize().script;return Te.has(t)}var n=e.split("-")[0];return Ie.has(n)}function Oe(){var e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Be(e)?"rtl":"ltr"}}var Pe=Oe(),Re=new Set;function Ae(){Pe=Oe();var e,t=(0,c.Z)(Re);try{for(t.s();!(e=t.n()).done;){(0,e.value)(Pe)}}catch(n){t.e(n)}finally{t.f()}}var Me=f.createContext(null);function Ne(){var e=function(){var e=_(),t=(0,f.useState)(Pe),n=(0,d.Z)(t,2),r=n[0],o=n[1];return(0,f.useEffect)((function(){return 0===Re.size&&window.addEventListener("languagechange",Ae),Re.add(o),function(){Re.delete(o),0===Re.size&&window.removeEventListener("languagechange",Ae)}}),[]),e?{locale:"en-US",direction:"ltr"}:r}();return(0,f.useContext)(Me)||e}function De(e){var t=e.id,n=e.label,r=e["aria-labelledby"],o=e["aria-label"],i=e.labelElementType,a=void 0===i?"label":i;t=B(t);var s=B(),c={};n?(r=r?"".concat(s," ").concat(r):s,c={id:s,htmlFor:"label"===a?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");var u=function(e,t){var n=e.id,r=e["aria-label"],o=e["aria-labelledby"];return n=B(n),o&&r?o=(0,l.Z)(new Set([n].concat((0,l.Z)(o.trim().split(/\s+/))))).join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:c,fieldProps:u}}function Le(e){var t=e.value,n=void 0===t?0:t,r=e.minValue,o=void 0===r?0:r,i=e.maxValue,a=void 0===i?100:i,s=e.valueLabel,l=e.isIndeterminate,c=e.formatOptions,d=void 0===c?{style:"percent"}:c,p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.labelable,r=t.propNames,o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(A.has(i)||n&&M.has(i)||(null===r||void 0===r?void 0:r.has(i))||N.test(i))&&(o[i]=e[i]);return o}(e,{labelable:!0}),m=De((0,u.Z)((0,u.Z)({},e),{},{labelElementType:"span"})),v=m.labelProps,g=m.fieldProps,y=((n=h(n,o,a))-o)/(a-o),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ne().locale;return(0,f.useMemo)((function(){return new Ee(t,e)}),[t,e])}(d);if(!l&&!s){var x="percent"===d.style?y:n;s=b.format(x)}return{progressBarProps:R(p,(0,u.Z)((0,u.Z)({},g),{},{"aria-valuenow":l?void 0:n,"aria-valuemin":o,"aria-valuemax":a,"aria-valuetext":l?void 0:s,role:"progressbar"})),labelProps:v}}function je(e){var t=Le(e),n=t.progressBarProps,r=t.labelProps;return{meterProps:(0,u.Z)((0,u.Z)({},n),{},{role:"meter progressbar"}),labelProps:r}}var ze=new WeakMap;function We(e,t){var n=ze.get(e);if(!n)throw new Error("Unknown slider state");return"".concat(n,"-").concat(t)}function Ze(e,t,n){var r,o=De(e),i=o.labelProps,a=o.fieldProps,s="vertical"===e.orientation;ze.set(t,null!==(r=i.id)&&void 0!==r?r:a.id);var l=Ne().direction,c=F(),d=c.addGlobalListener,p=c.removeGlobalListener,m=(0,f.useRef)(null),v="rtl"===l,g=(0,f.useRef)(null),y=pe({onMoveStart:function(){g.current=null},onMove:function(e){var r=e.deltaX,o=e.deltaY,i=n.current.getBoundingClientRect(),a=i.height,l=i.width,c=s?a:l;null==g.current&&(g.current=t.getThumbPercent(m.current)*c);var u=s?o:r;if((s||v)&&(u=-u),g.current+=u,null!=m.current&&n.current){var d=h(g.current/c,0,1);t.setThumbPercent(m.current,d)}},onMoveEnd:function(){null!=m.current&&(t.setThumbDragging(m.current,!1),m.current=null)}}).moveProps,b=(0,f.useRef)(void 0),x=function(r,o,i,a){if(n.current&&!e.isDisabled&&t.values.every((function(e,n){return!t.isThumbDragging(n)}))){var c=n.current.getBoundingClientRect(),u=c.height,f=c.width,p=c.top,h=c.left,v=((s?a:i)-(s?p:h))/(s?u:f);("rtl"===l||s)&&(v=1-v);var g,y=t.getPercentValue(v),x=t.values.findIndex((function(e){return y-e<0}));if(0===x)g=x;else if(-1===x)g=t.values.length-1;else{var k=t.values[x-1],S=t.values[x];g=Math.abs(k-y)<Math.abs(S-y)?x-1:x}g>=0&&t.isThumbEditable(g)?(r.preventDefault(),m.current=g,t.setFocusedThumb(g),b.current=o,t.setThumbDragging(m.current,!0),t.setThumbValue(g,y),d(window,"mouseup",w,!1),d(window,"touchend",w,!1),d(window,"pointerup",w,!1)):m.current=null}},w=function e(n){var r,o;(null!==(o=n.pointerId)&&void 0!==o?o:null===(r=n.changedTouches)||void 0===r?void 0:r[0].identifier)===b.current&&(null!=m.current&&(t.setThumbDragging(m.current,!1),m.current=null),p(window,"mouseup",e,!1),p(window,"touchend",e,!1),p(window,"pointerup",e,!1))};return"htmlFor"in i&&i.htmlFor&&(delete i.htmlFor,i.onClick=function(){var e,n;null===(e=document.getElementById(We(t,0)))||void 0===e||e.focus(),Q=n="keyboard",oe(n,null)}),{labelProps:i,groupProps:(0,u.Z)({role:"group"},a),trackProps:R({onMouseDown:function(e){0!==e.button||e.altKey||e.ctrlKey||e.metaKey||x(e,void 0,e.clientX,e.clientY)},onPointerDown:function(e){"mouse"===e.pointerType&&(0!==e.button||e.altKey||e.ctrlKey||e.metaKey)||x(e,e.pointerId,e.clientX,e.clientY)},onTouchStart:function(e){x(e,e.changedTouches[0].identifier,e.changedTouches[0].clientX,e.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},y),outputProps:{htmlFor:t.values.map((function(e,n){return We(t,n)})).join(" "),"aria-live":"off"}}}function Fe(e,t){var n,o,i=e.index,a=void 0===i?0:i,s=e.isRequired,l=e.validationState,c=e.trackRef,d=e.inputRef,p=e.orientation,m=void 0===p?t.orientation:p,v=e.isDisabled||t.isDisabled,g="vertical"===m,y=Ne().direction,b=F(),x=b.addGlobalListener,w=b.removeGlobalListener,k=ze.get(t),S=De((0,u.Z)((0,u.Z)({},e),{},{id:We(t,a),"aria-labelledby":"".concat(k," ").concat(null!==(o=e["aria-labelledby"])&&void 0!==o?o:"").trim()})),_=S.labelProps,E=S.fieldProps,C=t.values[a],T=(0,f.useCallback)((function(){d.current&&D(d.current)}),[d]),I=t.focusedThumb===a;(0,f.useEffect)((function(){I&&T()}),[I,T]);var B="rtl"===y,O=(0,f.useRef)(null),P=fe({onKeyDown:function(e){var n=t.getThumbMaxValue,r=t.getThumbMinValue,o=t.decrementThumb,i=t.incrementThumb,s=t.setThumbValue,l=t.setThumbDragging,c=t.pageSize;if(/^(PageUp|PageDown|Home|End)$/.test(e.key)){switch(e.preventDefault(),l(a,!0),e.key){case"PageUp":i(a,c);break;case"PageDown":o(a,c);break;case"Home":s(a,r(a));break;case"End":s(a,n(a))}l(a,!1)}else e.continuePropagation()}}).keyboardProps,A=pe({onMoveStart:function(){O.current=null,t.setThumbDragging(a,!0)},onMove:function(e){var n=e.deltaX,r=e.deltaY,o=e.pointerType,i=e.shiftKey,s=t.getThumbPercent,l=t.setThumbPercent,u=t.decrementThumb,d=t.incrementThumb,f=t.step,p=t.pageSize,m=c.current.getBoundingClientRect(),v=m.width,y=m.height,b=g?y:v;if(null==O.current&&(O.current=s(a)*b),"keyboard"===o)n>0&&B||n<0&&!B||r>0?u(a,i?p:f):d(a,i?p:f);else{var x=g?r:n;(g||B)&&(x=-x),O.current+=x,l(a,h(O.current/b,0,1))}},onMoveEnd:function(){t.setThumbDragging(a,!1)}}).moveProps;t.setThumbEditable(a,!v);var M=function(e,t){var n=R(J(e).focusProps,fe(e).keyboardProps),r=xe(t),o=e.isDisabled?{}:r,i=(0,f.useRef)(e.autoFocus);return(0,f.useEffect)((function(){i.current&&t.current&&he(t.current),i.current=!1}),[t]),{focusableProps:R((0,u.Z)((0,u.Z)({},n),{},{tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0}),o)}}(R(e,{onFocus:function(){return t.setFocusedThumb(a)},onBlur:function(){return t.setFocusedThumb(void 0)}}),d),N=M.focusableProps,L=(0,f.useRef)(void 0),j=function(e){T(),L.current=e,t.setThumbDragging(a,!0),x(window,"mouseup",z,!1),x(window,"touchend",z,!1),x(window,"pointerup",z,!1)},z=function e(n){var r,o;(null!==(o=n.pointerId)&&void 0!==o?o:null===(r=n.changedTouches)||void 0===r?void 0:r[0].identifier)===L.current&&(T(),t.setThumbDragging(a,!1),w(window,"mouseup",e,!1),w(window,"touchend",e,!1),w(window,"pointerup",e,!1))},W=t.getThumbPercent(a);(g||"rtl"===y)&&(W=1-W);var Z=v?{}:R(P,A,{onMouseDown:function(e){0!==e.button||e.altKey||e.ctrlKey||e.metaKey||j()},onPointerDown:function(e){0!==e.button||e.altKey||e.ctrlKey||e.metaKey||j(e.pointerId)},onTouchStart:function(e){j(e.changedTouches[0].identifier)}});return{inputProps:R(N,E,{type:"range",tabIndex:v?void 0:0,min:t.getThumbMinValue(a),max:t.getThumbMaxValue(a),step:t.step,value:C,disabled:v,"aria-orientation":m,"aria-valuetext":t.getThumbValueLabel(a),"aria-required":s||void 0,"aria-invalid":"invalid"===l||void 0,"aria-errormessage":e["aria-errormessage"],onChange:function(e){t.setThumbValue(a,parseFloat(e.target.value))}}),thumbProps:(0,u.Z)((0,u.Z)({},Z),{},{style:(n={position:"absolute"},(0,r.Z)(n,g?"top":"left","".concat(100*W,"%")),(0,r.Z)(n,"transform","translate(-50%, -50%)"),(0,r.Z)(n,"touchAction","none"),n)}),labelProps:_,isDragging:t.isThumbDragging(a),isDisabled:v,isFocused:I}}function He(e){var t,n=e.isDisabled,r=void 0!==n&&n,o=e.minValue,i=void 0===o?0:o,a=e.maxValue,s=void 0===a?100:a,l=e.numberFormatter,c=e.step,u=void 0===c?1:c,p=e.orientation,v=void 0===p?"horizontal":p,g=(0,f.useMemo)((function(){var e=(s-i)/10;return e=m(e,0,e+u,u),Math.max(e,u)}),[u,s,i]),y=(0,f.useMemo)((function(){return $e(e.value)}),[e.value]),b=(0,f.useMemo)((function(){return null!==(t=$e(e.defaultValue))&&void 0!==t?t:[i]}),[e.defaultValue,i]),x=Ge(e.value,e.defaultValue,e.onChange),w=Ge(e.value,e.defaultValue,e.onChangeEnd),k=function(e,t,n){var r=(0,f.useState)(e||t),o=(0,d.Z)(r,2),i=o[0],a=o[1],s=(0,f.useRef)(void 0!==e),l=void 0!==e;(0,f.useEffect)((function(){var e=s.current;e!==l&&console.warn("WARN: A component changed from ".concat(e?"controlled":"uncontrolled"," to ").concat(l?"controlled":"uncontrolled",".")),s.current=l}),[l]);var c=l?e:i,u=(0,f.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];var i=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&(Object.is(c,e)||n.apply(void 0,[e].concat(r))),l||(c=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];var s=e.apply(void 0,[l?c:t].concat(o));return i.apply(void 0,[s].concat(r)),l?t:s}))):(l||a(e),i.apply(void 0,[e].concat(r)))}),[l,c,n]);return[c,u]}(y,b,x),S=(0,d.Z)(k,2),_=S[0],E=S[1],C=(0,f.useState)(new Array(_.length).fill(!1)),T=(0,d.Z)(C,2),I=T[0],B=T[1],O=(0,f.useRef)(new Array(_.length).fill(!0)),P=(0,f.useState)(void 0),R=(0,d.Z)(P,2),A=R[0],M=R[1],N=(0,f.useRef)(_),D=(0,f.useRef)(I);function L(e){return(e-i)/(s-i)}function j(e){return 0===e?i:_[e-1]}function z(e){return e===_.length-1?s:_[e+1]}function W(e){return O.current[e]}function Z(e,t){if(!r&&W(e)){t=m(t,j(e),z(e),u);var n,o=Ue(_,e,t);n=o,N.current=n,E(n)}}function F(e){return l.format(e)}function H(e){var t;return h((t=e*(s-i)+i,Math.round((t-i)/u)*u+i),i,s)}return{values:_,getThumbValue:function(e){return _[e]},setThumbValue:Z,setThumbPercent:function(e,t){Z(e,H(t))},isThumbDragging:function(e){return I[e]},setThumbDragging:function(e,t){if(!r&&W(e)){var n,o=D.current[e];D.current=Ue(D.current,e,t),n=D.current,D.current=n,B(n),w&&o&&!D.current.some(Boolean)&&w(N.current)}},focusedThumb:A,setFocusedThumb:M,getThumbPercent:function(e){return L(_[e])},getValuePercent:L,getThumbValueLabel:function(e){return F(_[e])},getFormattedValue:F,getThumbMinValue:j,getThumbMaxValue:z,getPercentValue:H,isThumbEditable:W,setThumbEditable:function(e,t){O.current[e]=t},incrementThumb:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Math.max(t,u);Z(e,m(_[e]+n,i,s,u))},decrementThumb:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Math.max(t,u);Z(e,m(_[e]-n,i,s,u))},step:u,pageSize:g,orientation:v,isDisabled:r}}function Ue(e,t,n){return e[t]===n?e:[].concat((0,l.Z)(e.slice(0,t)),[n],(0,l.Z)(e.slice(t+1)))}function $e(e){if(null!=e)return Array.isArray(e)?e:[e]}function Ge(e,t,n){return function(r){null===n||void 0===n||n("number"==typeof e||"number"==typeof t?r[0]:r)}}},4086:function(e,t,n){"use strict";n.d(t,{A8:function(){return Qe},Ce:function(){return go},Cl:function(){return Kr},ES:function(){return tt},J2:function(){return vr},KC:function(){return fo},OK:function(){return Qr},QH:function(){return mo},bU:function(){return Ue},bV:function(){return Bn},h_:function(){return jn},j2:function(){return jr},kS:function(){return zr},k_:function(){return Nn},mb:function(){return $r},pJ:function(){return yr},sN:function(){return Ur},tO:function(){return Gr},td:function(){return eo},u:function(){return co},uN:function(){return bt},v2:function(){return Ar},vp:function(){return Rn},vu:function(){return uo},w8:function(){return Vr},x4:function(){return no},xL:function(){return ro},xM:function(){return Nr}});var r=n(4942),o=n(885),i=n(1413),a=n(4925),s=n(2982),l=n(2791),c=n(4164),u=["size","fill","stroke"],d=["ref","style"],f=["size"];function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){var n;if(typeof Symbol>"u"||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var b=(0,l.createContext)({});function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t){var n;if(typeof Symbol>"u"||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var C=function(e,t,n){void 0===n&&(n=t.children);var r=(0,l.useContext)(b);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(S(t,["children"]))}return(0,l.createElement)(e,t,n)};function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e){return"object"==typeof e&&null!=e}function P(e){var t;if(!O(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function R(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function A(e,t){if(void 0===t&&(t=[]),!P(e.state))return R(e,t);var n=R(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(o[n]=e[n]);return o}(r,["state"]);return[B(B({},i),a),o]}function M(e,t){if(e===t)return!0;if(!e||!t||"object"!=typeof e||"object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var s=a[i];if(e[s]!==t[s])return!1}return!0}function N(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return P(t.state)&&P(n.state)?e(B(B({},t.state),t),B(B({},n.state),n)):e(t,n)}}function D(e){var t,n=e.as,r=e.useHook,o=e.memo,i=e.propsAreEqual,a=void 0===i?null===r||void 0===r?void 0:r.unstable_propsAreEqual:i,s=e.keys,c=void 0===s?(null===r||void 0===r?void 0:r.__keys)||[]:s,u=e.useCreateElement,d=void 0===u?C:u,f=function(e,t){var o=e.as,i=void 0===o?n:o,a=S(e,["as"]);if(r){var s,l=A(a,c),u=l[0],f=l[1],p=r(u,k({ref:t},f)),h=p.wrapElement,m=S(p,["wrapElement"]),v=(null===(s=i.render)||void 0===s?void 0:s.__keys)||i.__keys,g=v&&A(a,v)[0],y=g?k(k({},m),g):m,b=d(i,y);return h?h(b):b}return d(i,k({ref:t},a))};return t=f,f=(0,l.forwardRef)(t),o&&(f=function(e,t){return(0,l.memo)(e,t)}(f,a&&N(a))),f.__keys=c,f.unstable_propsAreEqual=N(a||M),f}function L(e,t){(0,l.useDebugValue)(e);var n=(0,l.useContext)(b);return null!=n[e]?n[e]:t}function j(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:typeof r<"u"?[r]:[]),i=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";(0,l.useDebugValue)(r);var o=L(r);return o?k(k({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,i=E(o);!(r=i()).done;){t=r.value.__useOptions(t,n)}return t},a=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=i(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";(0,l.useDebugValue)(r);var o=L(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,s=E(o);!(a=s()).done;){n=(0,a.value)(t,n,!0)}var c={},u=n||{};for(var d in u)void 0!==u[d]&&(c[d]=u[d]);return c};a.__useOptions=i;var s=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return a.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),a.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||M,a}var z=j({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=v(e,["unstable_system"]),o=t.unstable_system,i=v(t,["unstable_system"]);return!(n!==o&&!M(n,o))&&M(r,i)}});D({as:"div",useHook:z});function W(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function Z(e,t){return(0,l.useMemo)((function(){return null==e&&null==t?null:function(n){W(e,n),W(t,n)}}),[e,t])}var F,H=["button","color","file","image","reset","submit"];function U(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==H.indexOf(t.type)}return!1}function $(e){return e?e.ownerDocument||e:document}try{F=window}catch(yo){}function G(e){return e&&$(e).defaultView||F}var q=function(){var e=G();return Boolean(typeof e<"u"&&e.document&&e.document.createElement)}(),K=q?l.useLayoutEffect:l.useEffect;function V(e){var t=(0,l.useRef)(e);return K((function(){t.current=e})),t}function Y(e){return e.target===e.currentTarget}function X(e){var t=$(e).activeElement;return null!=t&&t.nodeName?t:null}function J(e,t){return e===t||e.contains(t)}function Q(e){var t=X(e);if(!t)return!1;if(J(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function ee(e){return!J(e.currentTarget,e.target)}function te(e){return!!q&&-1!==window.navigator.userAgent.indexOf(e)}function ne(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function re(e,t){if("closest"in e)return e.closest(t);do{if(ne(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}var oe="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function ie(e){return ne(e,oe)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}function ae(e){return ie(e)&&!function(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}(e)}function se(e,t){var n=Array.from(e.querySelectorAll(oe)),r=n.filter(ae);return ae(e)&&r.unshift(e),!r.length&&t?n:r}function le(e,t){return se(e,t)[0]||null}var ce=j({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=v(e,["unstable_system"]),o=t.unstable_system,i=v(t,["unstable_system"]);return!(n!==o&&!M(n,o))&&M(r,i)}}),ue=(D({as:"div",useHook:ce}),te("Mac")&&!te("Chrome")&&(te("Safari")||te("Firefox")));function de(e){!Q(e)&&ie(e)&&e.focus()}function fe(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function pe(e,t){return(0,l.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),!n.defaultPrevented&&t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var he=j({name:"Tabbable",compose:ce,keys:["disabled","focusable"],useOptions:function(e,t){return m({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,i=t.onMouseDownCapture,a=t.onMouseDown,s=t.onKeyPressCapture,c=t.style,u=v(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),d=(0,l.useRef)(null),f=V(o),p=V(i),h=V(a),g=V(s),y=!!e.disabled&&!e.focusable,b=(0,l.useState)(!0),x=b[0],w=b[1],k=(0,l.useState)(!0),S=k[0],_=k[1],E=e.disabled?m({pointerEvents:"none"},c):c;K((function(){var e=d.current;!e||(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||w(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||_(!1))}),[]);var C=pe(f,e.disabled),T=pe(p,e.disabled),I=pe(g,e.disabled),B=(0,l.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e);var n=e.currentTarget;if(!e.defaultPrevented&&ue&&!ee(e)&&U(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),de(n)})),o=function(){cancelAnimationFrame(r),de(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return m({ref:Z(d,n),style:E,tabIndex:fe(y,x,S,r),disabled:!(!y||!S)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:C,onMouseDownCapture:T,onMouseDown:B,onKeyPressCapture:I},u)}});D({as:"div",useHook:he});var me=j({name:"Clickable",compose:he,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return m({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},v(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=v(t,["onKeyDown","onKeyUp"]),i=(0,l.useState)(!1),a=i[0],s=i[1],c=V(n),u=V(r),d=(0,l.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Y(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(U(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),f=(0,l.useCallback)((function(t){var n;if(null===(n=u.current)||void 0===n||n.call(u,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;a&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,a]);return m({"data-active":a||void 0,onKeyDown:d,onKeyUp:f},o)}}),ve=(D({as:"button",memo:!0,useHook:me}),j({name:"Button",compose:me,keys:[],useProps:function(e,t){var n=t.ref,r=v(t,["ref"]),o=(0,l.useRef)(null),i=(0,l.useState)(void 0),a=i[0],s=i[1],c=(0,l.useState)("button"),u=c[0],d=c[1];return(0,l.useEffect)((function(){var e=o.current;!e||U(e)||("A"!==e.tagName&&s("button"),d(void 0))}),[]),m({ref:Z(o,n),role:a,type:u},r)}}));D({as:"button",memo:!0,useHook:ve});function ge(e,t){return-1===t?e:[].concat(e.slice(0,t),e.slice(t+1))}function ye(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=$(e).createEvent("Event");return r.initEvent(t,null===n||void 0===n?void 0:n.bubbles,null===n||void 0===n?void 0:n.cancelable),r}var be=[].concat(["state","setState"],["value","checked"]);function xe(e){return typeof e.checked<"u"?e.checked:typeof e.value>"u"?!!e.state:-1!==(Array.isArray(e.state)?e.state:[]).indexOf(e.value)}var we=j({name:"Checkbox",compose:me,keys:be,useOptions:function(e,t){var n=t.value,r=t.checked,o=e.unstable_clickOnEnter,i=void 0!==o&&o,a=v(e,["unstable_clickOnEnter"]);return m({unstable_clickOnEnter:i,value:n,checked:xe(m({checked:r},a))},a)},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=v(t,["ref","onChange","onClick"]),a=(0,l.useRef)(null),s=(0,l.useState)(!0),c=s[0],u=s[1],d=V(r),f=V(o);(0,l.useEffect)((function(){var e=a.current;!e||("INPUT"!==e.tagName||"checkbox"!==e.type)&&u(!1)}),[]),function(e,t){(0,l.useEffect)((function(){var n=e.current;!n||("indeterminate"===t.state?n.indeterminate=!0:n.indeterminate&&(n.indeterminate=!1))}),[t.state,e])}(a,e);var p=(0,l.useCallback)((function(t){var n=t.currentTarget;if(e.disabled)return t.stopPropagation(),void t.preventDefault();if(d.current&&(c||(n.checked=!n.checked),d.current(t)),e.setState)if(typeof e.value>"u")e.setState(!e.checked);else{var r=Array.isArray(e.state)?e.state:[],o=r.indexOf(e.value);-1===o?e.setState([].concat(r,[e.value])):e.setState(ge(r,o))}}),[e.disabled,c,e.setState,e.value,e.checked,e.state]),h=(0,l.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),!e.defaultPrevented&&(c||function(e,t){var n=ye(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null===t||void 0===t||t(n)}(e.currentTarget,p))}),[c,p]);return m({ref:Z(a,n),role:c?void 0:"checkbox",type:c?"checkbox":void 0,value:c?e.value:void 0,checked:e.checked,"aria-checked":"indeterminate"===e.state?"mixed":e.checked,onChange:p,onClick:h},i)}});D({as:"input",memo:!0,useHook:we});function ke(e){return(0,l.useState)(e)[0]}function Se(e,t){var n=(0,l.useRef)(!1);(0,l.useEffect)((function(){if(n.current)return e();n.current=!0}),t)}function _e(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):ye(e,t,n)}function Ee(e,t){var n=_e(e,"blur",t),r=e.dispatchEvent(n),o=B(B({},t),{},{bubbles:!0});return e.dispatchEvent(_e(e,"focusout",o)),r}function Ce(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=$(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,G(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var Te=q&&"msCrypto"in window;function Ie(e){return Te?X(e.currentTarget):e.relatedTarget}function Be(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=y(e);!(t=o()).done;)r();return n}function Oe(e){for(var t,n=[],r=y(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Pe(e){return e.slice().reverse()}function Re(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function Ae(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=Re(e.items||[]))||void 0===n?void 0:n.id}function Me(e,t){if(t)return null===e||void 0===e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}var Ne=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],De=Ne,Le=De;function je(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ze(e,t){e.userFocus=t}var We=q&&"msCrypto"in window;function Ze(e,t,n){var r=V(n);return(0,l.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!(!Y(e)||e.metaKey||"Tab"===e.key)}(n)){var i=null===t||void 0===t?void 0:t.ref.current;i&&(Ce(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function Fe(e,t){return null===e||void 0===e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var He=j({name:"Composite",compose:[he],keys:Ne,useOptions:function(e){return m(m({},e),{},{currentId:Ae(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,i=t.onBlurCapture,a=t.onKeyDown,s=t.onKeyDownCapture,c=t.onKeyUpCapture,u=v(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),d=(0,l.useRef)(null),f=Me(e.items,e.currentId),p=(0,l.useRef)(null),h=V(r),g=V(o),y=V(i),b=V(a),x=function(e){var t=V(e),n=(0,l.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return(0,l.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&je(n)}),[r]),o}(f),w=We?function(e){var t=(0,l.useRef)(null);return(0,l.useEffect)((function(){var n=$(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(d):void 0;(0,l.useEffect)((function(){var t=d.current;e.unstable_moves&&!f&&(null===t||void 0===t||t.focus())}),[e.unstable_moves,f]);var k=Ze(e.unstable_virtual,f,s),S=Ze(e.unstable_virtual,f,c),_=(0,l.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null===w||void 0===w?void 0:w.current)||t.relatedTarget,o=Fe(e.items,r);Y(t)&&o&&(t.stopPropagation(),p.current=r)}}),[e.unstable_virtual,e.items]),E=(0,l.useCallback)((function(t){var n;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented)if(e.unstable_virtual)Y(t)&&x();else if(Y(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),C=(0,l.useCallback)((function(t){var n;if(null===(n=y.current)||void 0===n||n.call(y,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null===f||void 0===f?void 0:f.ref.current)||null,o=Ie(t),i=Fe(e.items,o);if(Y(t)&&i)o===r?p.current&&p.current!==o&&Ee(p.current,t):r&&Ee(r,t),t.stopPropagation();else!Fe(e.items,t.target)&&r&&Ee(r,t)}}),[e.unstable_virtual,e.items,f]),T=(0,l.useCallback)((function(t){var n,r;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&null===e.currentId&&Y(t)){var o="horizontal"!==e.orientation,i="vertical"!==e.orientation,a=!(null===(r=e.groups)||void 0===r||!r.length),s={ArrowUp:(a||o)&&function(){if(a){var t,n=Re(Oe(Pe(Be(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(a||i)&&e.first,ArrowDown:(a||o)&&e.first,ArrowLeft:(a||i)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last}[t.key];s&&(t.preventDefault(),s())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return m({ref:Z(d,n),id:e.baseId,onFocus:E,onFocusCapture:_,onBlurCapture:C,onKeyDownCapture:k,onKeyDown:T,onKeyUpCapture:S,"aria-activedescendant":e.unstable_virtual&&(null===f||void 0===f?void 0:f.id)||void 0},u)},useComposeProps:function(e,t){t=ce(e,t,!0);var n=he(e,t,!0);return e.unstable_virtual||null===e.currentId?m({tabIndex:0},n):m(m({},t),{},{ref:n.ref})}}),Ue=D({as:"div",useHook:He,useCreateElement:function(e,t,n){return C(e,t,n)}});function $e(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(o){return!1}}function Ge(e){var t=X(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function qe(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?Ge:o;return i(e)||(e.focus({preventScroll:r}),i(e))?-1:requestAnimationFrame((function(){e.focus({preventScroll:r})}))}var Ke=(0,l.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)})),Ve=j({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,l.useContext)(Ke),r=(0,l.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,l.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return m(m({},e),{},{id:i})},useProps:function(e,t){return m({id:e.id},t)}});D({as:"div",useHook:Ve});function Ye(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(ye(e,t,n))}(e,"input",{bubbles:!0}))}}function Xe(e){return e.querySelector("[data-composite-item-widget]")}var Je=j({name:"CompositeItem",compose:[me,Ve],keys:Le,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return me.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=v(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=v(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return me.unstable_propsAreEqual(o,s)},useOptions:function(e){return m(m({},e),{},{id:e.id,currentId:Ae(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,i=void 0===o?0:o,a=t.onMouseDown,s=t.onFocus,c=t.onBlurCapture,u=t.onKeyDown,d=t.onClick,f=v(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),p=(0,l.useRef)(null),h=e.id,g=e.disabled&&!e.focusable,b=e.currentId===h,x=V(b),w=(0,l.useRef)(!1),k=function(e){return(0,l.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),S=V(a),_=V(s),E=V(c),C=V(u),T=V(d),I=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&b||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,l.useEffect)((function(){var t;if(h)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:h,ref:p,disabled:!!g}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,h)}}),[h,g,e.registerItem,e.unregisterItem]),(0,l.useEffect)((function(){var t=p.current;!t||e.unstable_moves&&x.current&&je(t)}),[e.unstable_moves]);var B=(0,l.useCallback)((function(e){var t;null===(t=S.current)||void 0===t||t.call(S,e),ze(e.currentTarget,!0)}),[]),O=(0,l.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ze(t.currentTarget,!1),null===(n=_.current)||void 0===n||n.call(_,t),!t.defaultPrevented&&!ee(t)&&h&&!function(e,t){if(Y(e))return!1;for(var n,r=y(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,h),o&&e.unstable_virtual&&e.baseId&&Y(t))){var i=$(t.target).getElementById(e.baseId);i&&(w.current=!0,qe(i))}}),[h,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),P=(0,l.useCallback)((function(t){var n;null===(n=E.current)||void 0===n||n.call(E,t),!t.defaultPrevented&&e.unstable_virtual&&w.current&&(w.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),R=(0,l.useCallback)((function(t){var n;if(Y(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==k||!k.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Xe(t.currentTarget);s&&$e(s)&&(s.focus(),Ye(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Xe(t.currentTarget);l&&$e(l)&&(t.preventDefault(),Ye(l,""))}}}),[e.orientation,k,e.up,e.next,e.down,e.previous,e.first,e.last]),A=(0,l.useCallback)((function(e){var t;if(null===(t=T.current)||void 0===t||t.call(T,e),!e.defaultPrevented){var n=Xe(e.currentTarget);n&&!Q(n)&&n.focus()}}),[]);return m({ref:Z(p,r),id:h,tabIndex:I?i:-1,"aria-selected":!(!e.unstable_virtual||!b)||void 0,onMouseDown:B,onFocus:O,onBlurCapture:P,onKeyDown:R,onClick:A},f)}}),Qe=D({as:"button",memo:!0,useHook:Je}),et=j({name:"Group",compose:ce,keys:[],useProps:function(e,t){return m({role:"group"},t)}}),tt=(D({as:"div",useHook:et}),D({as:"div",useHook:j({name:"CompositeGroup",compose:[et,Ve],keys:De,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return et.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,v(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,v(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=Me(e.items,n),s=Me(t.items,o),l=null===a||void 0===a?void 0:a.groupId,c=null===s||void 0===s?void 0:s.groupId;if(t.id===c||t.id===l)return!1}return et.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=v(t,["ref"]),o=(0,l.useRef)(null),i=e.id;return K((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),m({ref:Z(o,n)},r)}})}));function nt(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function rt(e){void 0===e&&(e={});var t=ke(e).baseId,n=(0,l.useContext)(Ke),r=(0,l.useRef)(0),o=(0,l.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function ot(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function it(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&ot(t.ref.current,e.ref.current)}))}function at(e){for(var t,n=0,r=y(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function st(e){for(var t=Be(e),n=at(t),r=[],o=0;o<n;o+=1)for(var i,a=y(t);!(i=a()).done;){var s=i.value;s[o]&&r.push(m(m({},s[o]),{},{groupId:s[o].groupId?""+o:void 0}))}return r}function lt(e,t,n){for(var r,o=at(e),i=y(e);!(r=i()).done;)for(var a=r.value,s=0;s<o;s+=1){var l=a[s];if(!l||n&&l.disabled){var c,u,d=0===s&&n?Re(a):a[s-1];a[s]=d&&t!==(null===(c=d)||void 0===c?void 0:c.id)&&n?d:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null===(u=d)||void 0===u?void 0:u.groupId}}}return e}var ct={id:null,ref:{current:null}};function ut(e,t){return e.filter((function(e){return e.groupId===t}))}var dt={horizontal:"vertical",vertical:"horizontal"};function ft(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function pt(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],i=t[0],a=t[1],s=o.ref.current,l=a.ref.current;return s&&l?ot(s,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function ht(e,t){var n=pt(e);e!==n&&t(n)}function mt(e,t){var n=(0,l.useRef)([]);(0,l.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,i=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var a=i();if("object"==typeof a)return a.v}return $(o).body}(e),i=new IntersectionObserver((function(){!!n.current.length&&ht(e,t),n.current=e}),{root:o}),a=y(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function vt(e,t){"function"==typeof IntersectionObserver?mt(e,t):function(e,t){(0,l.useEffect)((function(){var n=setTimeout((function(){return ht(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function gt(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,i=e.items,a=e.groups,s=e.currentId,l=e.loop,c=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,p=e.unstable_includesBaseElement,h=e.initialVirtual,v=e.initialRTL,g=e.initialOrientation,y=e.initialCurrentId,b=e.initialLoop,x=e.initialWrap,w=e.initialShift,k=e.hasSetCurrentId;switch(t.type){case"registerGroup":var S=t.group;if(0===a.length)return m(m({},e),{},{groups:[S]});var _=it(a,S);return m(m({},e),{},{groups:ft(a,S,_)});case"unregisterGroup":var E=t.id,C=a.filter((function(e){return e.id!==E}));return C.length===a.length?e:m(m({},e),{},{groups:C});case"registerItem":var T,I=t.item,B=a.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(I.ref.current)})),O=m({groupId:null===B||void 0===B?void 0:B.id},I),P=it(i,O),R=m(m({},e),{},{items:ft(i,O,P)});return k||f||void 0!==y?R:m(m({},R),{},{currentId:null===(T=Re(R.items))||void 0===T?void 0:T.id});case"unregisterItem":var A=t.id,M=i.filter((function(e){return e.id!==A}));if(M.length===i.length)return e;var N=u.filter((function(e){return e!==A})),D=m(m({},e),{},{pastIds:N,items:M});if(s&&s===A){var L=p?null:Ae(m(m({},D),{},{currentId:N[0]}));return m(m({},D),{},{currentId:L})}return D;case"move":var j=t.id;if(void 0===j)return e;var z=u.filter((function(e){return e!==s&&e!==j})),W=s?[s].concat(z):z,Z=m(m({},e),{},{pastIds:W});if(null===j)return m(m({},Z),{},{unstable_moves:f+1,currentId:Ae(Z,j)});var F=Me(i,j);return m(m({},Z),{},{unstable_moves:F?f+1:f,currentId:Ae(Z,null===F||void 0===F?void 0:F.id)});case"next":if(null==s)return gt(e,m(m({},t),{},{type:"first"}));var H=r&&"vertical"!==o,U=H?Pe(i):i,$=U.find((function(e){return e.id===s}));if(!$)return gt(e,m(m({},t),{},{type:"first"}));var G=!!$.groupId,q=U.indexOf($),K=U.slice(q+1),V=ut(K,$.groupId);if(t.allTheWay){var Y=Re(H?ut(U,$.groupId):Pe(V));return gt(e,m(m({},t),{},{type:"move",id:null===Y||void 0===Y?void 0:Y.id}))}var X=function(e){return e&&dt[e]}(G?o||"horizontal":o),J=l&&l!==X,Q=G&&c&&c!==X,ee=t.hasNullItem||!G&&J&&p;if(J){var te=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[ct]:[],e.slice(0,r))}(Q&&!ee?U:ut(U,$.groupId),s,ee),ne=Re(te,s);return gt(e,m(m({},t),{},{type:"move",id:null===ne||void 0===ne?void 0:ne.id}))}if(Q){var re=Re(ee?V:K,s),oe=ee?(null===re||void 0===re?void 0:re.id)||null:null===re||void 0===re?void 0:re.id;return gt(e,m(m({},t),{},{type:"move",id:oe}))}var ie=Re(V,s);return gt(e,m(m({},t),{},!ie&&ee?{type:"move",id:null}:{type:"move",id:null===ie||void 0===ie?void 0:ie.id}));case"previous":var ae=!!!a.length&&p,se=gt(m(m({},e),{},{items:Pe(i)}),m(m({},t),{},{type:"next",hasNullItem:ae}));return m(m({},se),{},{items:i});case"down":var le=d&&!t.allTheWay,ce=st(Oe(lt(Be(i),s,le))),ue=l&&"horizontal"!==l&&p,de=gt(m(m({},e),{},{orientation:"vertical",items:ce}),m(m({},t),{},{type:"next",hasNullItem:ue}));return m(m({},de),{},{orientation:o,items:i});case"up":var fe=d&&!t.allTheWay,pe=st(Pe(Oe(lt(Be(i),s,fe)))),he=p,me=gt(m(m({},e),{},{orientation:"vertical",items:pe}),m(m({},t),{},{type:"next",hasNullItem:he}));return m(m({},me),{},{orientation:o,items:i});case"first":var ve=Re(i);return gt(e,m(m({},t),{},{type:"move",id:null===ve||void 0===ve?void 0:ve.id}));case"last":var ge=gt(m(m({},e),{},{items:Pe(i)}),m(m({},t),{},{type:"first"}));return m(m({},ge),{},{items:i});case"sort":return m(m({},e),{},{items:pt(i),groups:pt(a)});case"setVirtual":return m(m({},e),{},{unstable_virtual:nt(t.virtual,n)});case"setRTL":return m(m({},e),{},{rtl:nt(t.rtl,r)});case"setOrientation":return m(m({},e),{},{orientation:nt(t.orientation,o)});case"setCurrentId":var ye=Ae(m(m({},e),{},{currentId:nt(t.currentId,s)}));return m(m({},e),{},{currentId:ye,hasSetCurrentId:!0});case"setLoop":return m(m({},e),{},{loop:nt(t.loop,l)});case"setWrap":return m(m({},e),{},{wrap:nt(t.wrap,c)});case"setShift":return m(m({},e),{},{shift:nt(t.shift,d)});case"setIncludesBaseElement":return m(m({},e),{},{unstable_includesBaseElement:nt(t.includesBaseElement,p)});case"reset":return m(m({},e),{},{unstable_virtual:h,rtl:v,orientation:g,currentId:Ae(m(m({},e),{},{currentId:y})),loop:b,wrap:x,shift:w,unstable_moves:0,pastIds:[]});case"setItems":return m(m({},e),{},{items:t.items});default:throw new Error}}function yt(e){return(0,l.useCallback)(e,[])}function bt(e){void 0===e&&(e={});var t=ke(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,i=void 0!==o&&o,a=t.orientation,s=t.currentId,c=t.loop,u=void 0!==c&&c,d=t.wrap,f=void 0!==d&&d,p=t.shift,h=void 0!==p&&p,g=t.unstable_includesBaseElement,y=rt(v(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),b=(0,l.useReducer)(gt,{unstable_virtual:r,rtl:i,orientation:a,items:[],groups:[],currentId:s,loop:u,wrap:f,shift:h,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!==g&&void 0!==g?g:null===s,initialVirtual:r,initialRTL:i,initialOrientation:a,initialCurrentId:s,initialLoop:u,initialWrap:f,initialShift:h}),x=b[0],w=(x.pastIds,x.initialVirtual,x.initialRTL,x.initialOrientation,x.initialCurrentId,x.initialLoop,x.initialWrap,x.initialShift,x.hasSetCurrentId,v(x,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),k=b[1],S=(0,l.useState)(!1),_=S[0],E=S[1],C=function(){var e=(0,l.useRef)(!1);return K((function(){return function(){e.current=!0}}),[]),e}(),T=(0,l.useCallback)((function(e){return k({type:"setItems",items:e})}),[]);return vt(w.items,T),m(m(m({},y),w),{},{unstable_hasActiveWidget:_,unstable_setHasActiveWidget:E,registerItem:yt((function(e){C.current||k({type:"registerItem",item:e})})),unregisterItem:yt((function(e){C.current||k({type:"unregisterItem",id:e})})),registerGroup:yt((function(e){C.current||k({type:"registerGroup",group:e})})),unregisterGroup:yt((function(e){C.current||k({type:"unregisterGroup",id:e})})),move:yt((function(e){return k({type:"move",id:e})})),next:yt((function(e){return k({type:"next",allTheWay:e})})),previous:yt((function(e){return k({type:"previous",allTheWay:e})})),up:yt((function(e){return k({type:"up",allTheWay:e})})),down:yt((function(e){return k({type:"down",allTheWay:e})})),first:yt((function(){return k({type:"first"})})),last:yt((function(){return k({type:"last"})})),sort:yt((function(){return k({type:"sort"})})),unstable_setVirtual:yt((function(e){return k({type:"setVirtual",virtual:e})})),setRTL:yt((function(e){return k({type:"setRTL",rtl:e})})),setOrientation:yt((function(e){return k({type:"setOrientation",orientation:e})})),setCurrentId:yt((function(e){return k({type:"setCurrentId",currentId:e})})),setLoop:yt((function(e){return k({type:"setLoop",loop:e})})),setWrap:yt((function(e){return k({type:"setWrap",wrap:e})})),setShift:yt((function(e){return k({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:yt((function(e){return k({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:yt((function(){return k({type:"reset"})}))})}var xt="top",wt="bottom",kt="right",St="left",_t="auto",Et=[xt,wt,kt,St],Ct="start",Tt="end",It="viewport",Bt="popper",Ot=Et.reduce((function(e,t){return e.concat([t+"-"+Ct,t+"-"+Tt])}),[]),Pt=[].concat(Et,[_t]).reduce((function(e,t){return e.concat([t,t+"-"+Ct,t+"-"+Tt])}),[]),Rt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function At(e){return e?(e.nodeName||"").toLowerCase():null}function Mt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nt(e){return e instanceof Mt(e).Element||e instanceof Element}function Dt(e){return e instanceof Mt(e).HTMLElement||e instanceof HTMLElement}function Lt(e){return!(typeof ShadowRoot>"u")&&(e instanceof Mt(e).ShadowRoot||e instanceof ShadowRoot)}var jt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!Dt(o)||!At(o)||(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!Dt(r)||!At(r)||(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function zt(e){return e.split("-")[0]}function Wt(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Zt(e){var t=Wt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ft(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lt(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ht(e){return Mt(e).getComputedStyle(e)}function Ut(e){return["table","td","th"].indexOf(At(e))>=0}function $t(e){return((Nt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gt(e){return"html"===At(e)?e:e.assignedSlot||e.parentNode||(Lt(e)?e.host:null)||$t(e)}function qt(e){return Dt(e)&&"fixed"!==Ht(e).position?e.offsetParent:null}function Kt(e){for(var t=Mt(e),n=qt(e);n&&Ut(n)&&"static"===Ht(n).position;)n=qt(n);return n&&("html"===At(n)||"body"===At(n)&&"static"===Ht(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Dt(e)&&"fixed"===Ht(e).position)return null;for(var n=Gt(e);Dt(n)&&["html","body"].indexOf(At(n))<0;){var r=Ht(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Vt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Yt=Math.max,Xt=Math.min,Jt=Math.round;function Qt(e,t,n){return Yt(e,Xt(t,n))}function en(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function tn(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var nn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,u=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Jt(Jt(t*r)/r)||0,y:Jt(Jt(n*r)/r)||0}}(i):"function"==typeof c?c(i):i,d=u.x,f=void 0===d?0:d,p=u.y,h=void 0===p?0:p,m=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),g=St,y=xt,b=window;if(l){var x=Kt(n),w="clientHeight",k="clientWidth";x===Mt(n)&&("static"!==Ht(x=$t(n)).position&&(w="scrollHeight",k="scrollWidth")),o===xt&&(y=wt,h-=x[w]-r.height,h*=s?1:-1),o===St&&(g=kt,f-=x[k]-r.width,f*=s?1:-1)}var S,_=Object.assign({position:a},l&&nn);return s?Object.assign({},_,((S={})[y]=v?"0":"",S[g]=m?"0":"",S.transform=(b.devicePixelRatio||1)<2?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",S)):Object.assign({},_,((t={})[y]=v?h+"px":"",t[g]=m?f+"px":"",t.transform="",t))}var on={passive:!0};var an={left:"right",right:"left",bottom:"top",top:"bottom"};function sn(e){return e.replace(/left|right|bottom|top/g,(function(e){return an[e]}))}var ln={start:"end",end:"start"};function cn(e){return e.replace(/start|end/g,(function(e){return ln[e]}))}function un(e){var t=Mt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dn(e){return Wt($t(e)).left+un(e).scrollLeft}function fn(e){var t=Ht(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function pn(e){return["html","body","#document"].indexOf(At(e))>=0?e.ownerDocument.body:Dt(e)&&fn(e)?e:pn(Gt(e))}function hn(e,t){var n;void 0===t&&(t=[]);var r=pn(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Mt(r),a=o?[i].concat(i.visualViewport||[],fn(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(hn(Gt(a)))}function mn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vn(e,t){return t===It?mn(function(e){var t=Mt(e),n=$t(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+dn(e),y:s}}(e)):Dt(t)?function(e){var t=Wt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):mn(function(e){var t,n=$t(e),r=un(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Yt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Yt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+dn(e),l=-r.scrollTop;return"rtl"===Ht(o||n).direction&&(s+=Yt(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}($t(e)))}function gn(e,t,n){var r="clippingParents"===t?function(e){var t=hn(Gt(e)),n=["absolute","fixed"].indexOf(Ht(e).position)>=0&&Dt(e)?Kt(e):e;return Nt(n)?t.filter((function(e){return Nt(e)&&Ft(e,n)&&"body"!==At(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=vn(e,n);return t.top=Yt(r.top,t.top),t.right=Xt(r.right,t.right),t.bottom=Xt(r.bottom,t.bottom),t.left=Yt(r.left,t.left),t}),vn(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function yn(e){return e.split("-")[1]}function bn(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?zt(o):null,a=o?yn(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case xt:t={x:s,y:n.y-r.height};break;case wt:t={x:s,y:n.y+n.height};break;case kt:t={x:n.x+n.width,y:l};break;case St:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Vt(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Ct:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Tt:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function xn(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,l=void 0===s?It:s,c=n.elementContext,u=void 0===c?Bt:c,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,h=void 0===p?0:p,m=en("number"!=typeof h?h:tn(h,Et)),v=u===Bt?"reference":Bt,g=e.elements.reference,y=e.rects.popper,b=e.elements[f?v:u],x=gn(Nt(b)?b:b.contextElement||$t(e.elements.popper),a,l),w=Wt(g),k=bn({reference:w,element:y,strategy:"absolute",placement:o}),S=mn(Object.assign({},y,k)),_=u===Bt?S:w,E={top:x.top-_.top+m.top,bottom:_.bottom-x.bottom+m.bottom,left:x.left-_.left+m.left,right:_.right-x.right+m.right},C=e.modifiersData.offset;if(u===Bt&&C){var T=C[o];Object.keys(E).forEach((function(e){var t=[kt,wt].indexOf(e)>=0?1:-1,n=[xt,wt].indexOf(e)>=0?"y":"x";E[e]+=T[n]*t}))}return E}function wn(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function kn(e){return[xt,kt,wt,St].some((function(t){return e[t]>=0}))}function Sn(e,t,n){void 0===n&&(n=!1);var r=$t(t),o=Wt(e),i=Dt(t),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&(("body"!==At(t)||fn(r))&&(a=function(e){return e!==Mt(e)&&Dt(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:un(e);var t}(t)),Dt(t)?((s=Wt(t)).x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=dn(r))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function _n(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function En(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Cn={placement:"bottom",modifiers:[],strategy:"absolute"};function Tn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var In=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Cn:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cn,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){c(),o.options=Object.assign({},i,o.options,n),o.scrollParents={reference:Nt(e)?hn(e):e.contextElement?hn(e.contextElement):[],popper:hn(t)};var s=function(e){var t=_n(e);return Rt.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=s.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var s=i({state:o,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(Tn(t,n)){o.rects={reference:Sn(t,Kt(n),"fixed"===o.options.strategy),popper:Zt(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:En((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!Tn(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Mt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,on)})),s&&l.addEventListener("resize",n.update,on),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,on)})),s&&l.removeEventListener("resize",n.update,on)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=bn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:zt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rn(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,rn(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},jt,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Pt.reduce((function(e,n){return e[n]=function(e,t,n){var r=zt(e),o=[St,xt].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[St,kt].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,v=t.options.placement,g=zt(v),y=l||(g===v||!h?[sn(v)]:function(e){if(zt(e)===_t)return[];var t=sn(e);return[cn(e),t,cn(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(zt(n)===_t?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Pt:l,u=yn(r),d=u?s?Ot:Ot.filter((function(e){return yn(e)===u})):Et,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=xn(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[zt(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,_=b[0],E=0;E<b.length;E++){var C=b[E],T=zt(C),I=yn(C)===Ct,B=[xt,wt].indexOf(T)>=0,O=B?"width":"height",P=xn(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),R=B?I?kt:St:I?wt:xt;x[O]>w[O]&&(R=sn(R));var A=sn(R),M=[];if(i&&M.push(P[T]<=0),s&&M.push(P[R]<=0,P[A]<=0),M.every((function(e){return e}))){_=C,S=!1;break}k.set(C,M)}if(S)for(var N=function(e){var t=b.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},D=h?3:1;D>0;D--){if("break"===N(D))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,v=xn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=zt(t.placement),y=yn(t.placement),b=!y,x=Vt(g),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,S=t.rects.reference,_=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C={x:0,y:0};if(k){if(i||s){var T="y"===x?xt:St,I="y"===x?wt:kt,B="y"===x?"height":"width",O=k[x],P=k[x]+v[T],R=k[x]-v[I],A=p?-_[B]/2:0,M=y===Ct?S[B]:_[B],N=y===Ct?-_[B]:-S[B],D=t.elements.arrow,L=p&&D?Zt(D):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=j[T],W=j[I],Z=Qt(0,S[B],L[B]),F=b?S[B]/2-A-Z-z-E:M-Z-z-E,H=b?-S[B]/2+A+Z+W+E:N+Z+W+E,U=t.elements.arrow&&Kt(t.elements.arrow),$=U?"y"===x?U.clientTop||0:U.clientLeft||0:0,G=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,q=k[x]+F-G-$,K=k[x]+H-G;if(i){var V=Qt(p?Xt(P,q):P,O,p?Yt(R,K):R);k[x]=V,C[x]=V-O}if(s){var Y="x"===x?xt:St,X="x"===x?wt:kt,J=k[w],Q=J+v[Y],ee=J-v[X],te=Qt(p?Xt(Q,q):Q,J,p?Yt(ee,K):ee);k[w]=te,C[w]=te-J}}t.modifiersData[r]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=zt(n.placement),l=Vt(s),c=[St,kt].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return en("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:tn(e,Et))}(o.padding,n),d=Zt(i),f="y"===l?xt:St,p="y"===l?wt:kt,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],v=Kt(i),g=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=u[f],x=g-d[c]-u[p],w=g/2-d[c]/2+y,k=Qt(b,w,x),S=l;n.modifiersData[r]=((t={})[S]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!Ft(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=xn(t,{elementContext:"reference"}),s=xn(t,{altBoundary:!0}),l=wn(a,r),c=wn(s,o,i),u=kn(l),d=kn(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function Bn(e){void 0===e&&(e={});var t=ke(e),n=t.visible,r=void 0!==n&&n,o=t.animated,i=void 0!==o&&o,a=rt(v(t,["visible","animated"])),s=(0,l.useState)(r),c=s[0],u=s[1],d=(0,l.useState)(i),f=d[0],p=d[1],h=(0,l.useState)(!1),g=h[0],y=h[1],b=function(e){var t=(0,l.useRef)(null);return K((function(){t.current=e}),[e]),t}(c),x=null!=b.current&&b.current!==c;f&&!g&&x&&y(!0),(0,l.useEffect)((function(){if("number"==typeof f&&g){var e=setTimeout((function(){return y(!1)}),f);return function(){clearTimeout(e)}}return function(){}}),[f,g]);var w=(0,l.useCallback)((function(){return u(!0)}),[]),k=(0,l.useCallback)((function(){return u(!1)}),[]),S=(0,l.useCallback)((function(){return u((function(e){return!e}))}),[]),_=(0,l.useCallback)((function(){return y(!1)}),[]);return m(m({},a),{},{visible:c,animated:f,animating:g,show:w,hide:k,toggle:S,setVisible:u,setAnimated:p,stopAnimation:_})}var On=te("Mac")&&!te("Chrome")&&te("Safari");function Pn(e){return function(t){return e&&!M(t,e)?e:t}}function Rn(e){void 0===e&&(e={});var t=ke(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,u=t.unstable_offset,d=t.unstable_preventOverflow,f=void 0===d||d,p=t.unstable_fixed,h=void 0!==p&&p,g=t.modal,y=void 0!==g&&g,b=v(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),x=(0,l.useRef)(null),w=(0,l.useRef)(null),k=(0,l.useRef)(null),S=(0,l.useRef)(null),_=(0,l.useState)(i),E=_[0],C=_[1],T=(0,l.useState)(i),I=T[0],B=T[1],O=(0,l.useState)(u||[0,r])[0],P=(0,l.useState)({position:"fixed",left:"100%",top:"100%"}),R=P[0],A=P[1],M=(0,l.useState)({}),N=M[0],D=M[1],L=(0,l.useState)(!1),j=L[0],z=L[1],W=function(e){void 0===e&&(e={});var t=ke(e),n=t.modal,r=void 0===n||n,o=Bn(v(t,["modal"])),i=(0,l.useState)(r),a=i[0],s=i[1],c=(0,l.useRef)(null);return m(m({},o),{},{modal:a,setModal:s,unstable_disclosureRef:c})}(m({modal:y},b)),Z=(0,l.useCallback)((function(){return!!x.current&&(x.current.forceUpdate(),!0)}),[]),F=(0,l.useCallback)((function(e){(0,c.flushSync)((function(){e.placement&&B(e.placement)})),(0,c.flushSync)((function(){e.styles&&(A(Pn(e.styles.popper)),S.current&&D(Pn(e.styles.arrow)))}))}),[]);return(0,l.useEffect)((function(){z(!0)}),[]),K((function(){return w.current&&k.current&&(x.current=In(w.current,k.current,{placement:E,strategy:h?"fixed":"absolute",onFirstUpdate:On?F:void 0,modifiers:[{name:"eventListeners",enabled:W.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:O}},{name:"preventOverflow",enabled:f,options:{tetherOffset:function(){var e;return(null===(e=S.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!S.current,options:{element:S.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:W.visible&&!0,fn:function(e){var t=e.state;return F(t)}}]})),function(){x.current&&(x.current.destroy(),x.current=null)}}),[E,h,W.visible,s,O,f,j]),(0,l.useEffect)((function(){if(W.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=x.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[W.visible,j]),m(m({},W),{},{unstable_referenceRef:w,unstable_popoverRef:k,unstable_arrowRef:S,unstable_popoverStyles:R,unstable_arrowStyles:N,unstable_update:Z,unstable_originalPlacement:E,placement:I,place:C})}var An=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],Mn=j({name:"DisclosureContent",compose:ce,keys:An,useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=v(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,l.useState)(null),c=s[0],u=s[1],d=!e.visible&&!a,f=d?m({display:"none"},o):o,p=V(n),h=V(r),g=(0,l.useRef)(0);(0,l.useEffect)((function(){if(e.animated)return g.current=window.requestAnimationFrame((function(){g.current=window.requestAnimationFrame((function(){e.visible?u("enter"):u(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(g.current)}}),[e.animated,e.visible,a]);var y=(0,l.useCallback)((function(t){var n;Y(t)&&a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e))}),[e.animated,a,e.stopAnimation]),b=(0,l.useCallback)((function(e){var t;null===(t=p.current)||void 0===t||t.call(p,e),y(e)}),[y]),x=(0,l.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),y(e)}),[y]);return m({id:e.baseId,"data-enter":"enter"===c?"":void 0,"data-leave":"leave"===c?"":void 0,onTransitionEnd:b,onAnimationEnd:x,hidden:d,style:f},i)}}),Nn=D({as:"div",useHook:Mn});function Dn(){return q?document.body:null}var Ln=(0,l.createContext)(Dn());function jn(e){var t=e.children,n=(0,l.useContext)(Ln)||Dn(),r=(0,l.useState)(null),o=r[0],i=r[1];return(0,l.useEffect)((function(){if(n){var e=document.createElement("div");return e.className=jn.__className,i(e),n.appendChild(e),function(){n.removeChild(e)}}}),[n]),o?(0,c.createPortal)((0,l.createElement)(Ln.Provider,{value:o},t),o):null}function zn(e,t){var n=e.indexOf(t);return ge(e,n)}jn.__className="__reakit-portal",jn.__selector="."+jn.__className;var Wn=(0,l.createContext)(null);var Zn=!1;typeof window<"u"&&(Fn={get passive(){Zn=!0}},window.addEventListener("testPassive",null,Fn),window.removeEventListener("testPassive",null,Fn));var Fn,Hn=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Un=[],$n=!1,Gn=-1,qn=void 0,Kn=void 0,Vn=function(e){return Un.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Yn=function(e){var t=e||window.event;return!!(Vn(t.target)||t.touches.length>1)||(t.preventDefault&&t.preventDefault(),!1)},Xn=function(e,t){if(e){if(!Un.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Un=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Un),[n]),Hn?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Gn=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Gn;!Vn(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Yn(e):e.stopPropagation())}(t,e)},$n||(document.addEventListener("touchmove",Yn,Zn?{passive:!1}:void 0),$n=!0)):function(e){if(void 0===Kn){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Kn=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===qn&&(qn=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Jn=function(e){e?(Un=Un.filter((function(t){return t.targetElement!==e})),Hn?(e.ontouchstart=null,e.ontouchmove=null,$n&&0===Un.length&&(document.removeEventListener("touchmove",Yn,Zn?{passive:!1}:void 0),$n=!1)):Un.length||(void 0!==Kn&&(document.body.style.paddingRight=Kn,Kn=void 0),void 0!==qn&&(document.body.style.overflow=qn,qn=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},Qn=(0,l.createContext)(void 0);var er=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal"],tr=[].concat(er,["hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_initialFocusRef","unstable_finalFocusRef","unstable_orphan","unstable_autoFocusOnShow","unstable_autoFocusOnHide"]),nr=er;function rr(e){null!=e.parentNode&&e.parentNode.removeChild(e)}var or="__reakit-focus-trap";function ir(e,t,n){var r=function(e,t){var n=(0,l.useRef)(null);return(0,l.useEffect)((function(){var r=e.current;!r||!t.visible||(n.current=re(r,jn.__selector))}),[e,t.visible]),n}(e,n),o=n.visible&&n.modal,i=(0,l.useRef)(null),a=(0,l.useRef)(null);(0,l.useEffect)((function(){if(o){var e=r.current;if(e){if(!i.current){var t=$(e);i.current=t.createElement("div"),i.current.className=or,i.current.tabIndex=0,i.current.style.position="fixed",i.current.setAttribute("aria-hidden","true")}return a.current||(a.current=i.current.cloneNode()),e.insertAdjacentElement("beforebegin",i.current),e.insertAdjacentElement("afterend",a.current),function(){i.current&&rr(i.current),a.current&&rr(a.current)}}}}),[e,r,o]),(0,l.useEffect)((function(){var n=i.current,r=a.current;if(o&&n&&r){var s=function(n){var o=e.current;if(o&&!t.length){n.preventDefault();var i=n.target===r?le(o):function(e,t){var n=se(e,t);return n[n.length-1]||null}(o);i?i.focus():o.focus()}};return n.addEventListener("focus",s),r.addEventListener("focus",s),function(){n.removeEventListener("focus",s),r.removeEventListener("focus",s)}}}),[e,t,o])}function ar(e,t,n){var r=n.unstable_autoFocusOnHide&&!n.visible,o=!(!n.animated||!n.animating);Se((function(){var i;if(r&&!o&&!function(e){var t=e.current;if(!t)return!1;var n=X(t);return!(!n||J(t,n))&&!(!ae(n)&&"true"!==n.getAttribute("data-dialog"))}(e)){var a=(null===(i=n.unstable_finalFocusRef)||void 0===i?void 0:i.current)||t.current;if(a){if(a.id){var s=$(a).querySelector("[aria-activedescendant='"+a.id+"']");if(s)return void qe(s)}return void qe(a)}}}),[r,o,e,t])}var sr=(0,l.createContext)({});function lr(e,t,n,r,o,i,a){var s=V(o);(0,l.useEffect)((function(){if(i){var o=function(r){if(s.current){var o=e.current,i=t.current,a=r.target;!o||!function(e){var t=$(e);return"HTML"===e.tagName||J(t.body,e)}(a)||J(o,a)||i&&function(e,t){return J(t,e)}(a,i)||function(e){var t;return null===(t=e.classList)||void 0===t?void 0:t.contains(or)}(a)||n.some(function(e){return function(t){var n=t.current;if(!n)return!1;if(J(n,e))return!0;var r=$(n).querySelector('[data-dialog-ref="'+n.id+'"]');return!!r&&J(r,e)}}(a))||s.current(r)}},l=$(e.current);return l.addEventListener(r,o,a),function(){return l.removeEventListener(r,o,a)}}}),[e,t,n,r,i,s])}function cr(e,t,n,r){var o=function(e,t){var n=(0,l.useRef)();return(0,l.useEffect)((function(){if(t.visible&&t.hideOnClickOutside){var r=$(e.current),o=function(e){n.current=e.target};return r.addEventListener("mousedown",o),function(){return r.removeEventListener("mousedown",o)}}}),[t.visible,t.hideOnClickOutside,e]),n}(e,r);lr(e,t,n,"click",(function(e){var t;o.current===e.target&&(null===(t=r.hide)||void 0===t||t.call(r))}),r.visible&&r.hideOnClickOutside),lr(e,t,n,"focusin",(function(t){var n,o=$(e.current);t.target!==o&&t.target!==o.body&&(null===(n=r.hide)||void 0===n||n.call(r))}),r.visible&&r.hideOnClickOutside)}function ur(e,t){(0,l.useEffect)((function(){var n=e.current;if(t.visible&&n){var r=new MutationObserver((function(e){var t;if(e[0].target===n){var r=$(n),o=X(n);(o===r.body||(t=o,Array.isArray(t)?!t.length:O(t)?!Object.keys(t).length:null==t||""===t))&&n.focus()}}));return r.observe(n,{childList:!0,subtree:!0}),function(){r.disconnect()}}}),[t.visible,e])}function dr(e){return e&&e.tagName&&"HTML"!==e.tagName&&e!==$(e).body}var fr=j({name:"Dialog",compose:Mn,keys:tr,useOptions:function(e){var t=e.modal,n=void 0===t||t,r=e.hideOnEsc,o=void 0===r||r,i=e.hideOnClickOutside,a=void 0===i||i,s=e.preventBodyScroll,l=void 0===s?n:s,c=e.unstable_autoFocusOnShow,u=void 0===c||c,d=e.unstable_autoFocusOnHide,f=void 0===d||d,p=e.unstable_orphan;return m({modal:n,hideOnEsc:o,hideOnClickOutside:a,preventBodyScroll:n&&l,unstable_autoFocusOnShow:u,unstable_autoFocusOnHide:f,unstable_orphan:n&&p},v(e,["modal","hideOnEsc","hideOnClickOutside","preventBodyScroll","unstable_autoFocusOnShow","unstable_autoFocusOnHide","unstable_orphan"]))},useProps:function(e,t){var n=t.ref,r=t.onKeyDown,o=t.onBlur,i=t.wrapElement,a=t.tabIndex,s=v(t,["ref","onKeyDown","onBlur","wrapElement","tabIndex"]),c=(0,l.useRef)(null),u=(0,l.useContext)(Qn),d=u&&u===e.baseId,f=function(e,t){var n=(0,l.useRef)(null),r=!(!t.animated||!t.animating);return(0,l.useEffect)((function(){if(!t.visible&&!r){var o=function(e){var r=e.target;"focus"in r&&(n.current=r,t.unstable_disclosureRef&&(t.unstable_disclosureRef.current=r))},i=$(e.current);return i.addEventListener("focusin",o),function(){return i.removeEventListener("focusin",o)}}}),[t.visible,r,t.unstable_disclosureRef,e]),(0,l.useEffect)((function(){var e;if(t.visible&&!r){var o=function(e){var t=e.currentTarget;!U(t)||(e.preventDefault(),t.focus())},i=(null===(e=t.unstable_disclosureRef)||void 0===e?void 0:e.current)||n.current;return null!==i&&void 0!==i&&i.addEventListener("mousedown",o),function(){return null===i||void 0===i?void 0:i.removeEventListener("mousedown",o)}}}),[t.visible,r,t.unstable_disclosureRef]),t.unstable_disclosureRef||n}(c,e),p=V(r),h=V(o),g=function(e,t){var n=(0,l.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return K((function(){var n=e.current;!t.visible||!r||dr(X(n))||null===n||void 0===n||n.focus()}),[r,e]),(0,l.useCallback)((function(e){t.visible&&(dr(Ie(e))||o())}),[t.visible])}(c,e),y=function(e,t){var n=(0,l.useContext)(sr),r=(0,l.useState)([]),o=r[0],i=r[1],a=(0,l.useState)(o),s=a[0],c=a[1],u=(0,l.useCallback)((function(e){var t;null===(t=n.addDialog)||void 0===t||t.call(n,e),i((function(t){return[].concat(t,[e])}))}),[n.addDialog]),d=(0,l.useCallback)((function(e){var t;null===(t=n.removeDialog)||void 0===t||t.call(n,e),i((function(t){return zn(t,e)}))}),[n.removeDialog]),f=(0,l.useCallback)((function(e){var t;null===(t=n.showDialog)||void 0===t||t.call(n,e),c((function(t){return[].concat(t,[e])}))}),[n.showDialog]),p=(0,l.useCallback)((function(e){var t;null===(t=n.hideDialog)||void 0===t||t.call(n,e),c((function(t){return zn(t,e)}))}),[n.hideDialog]);(0,l.useEffect)((function(){var r;if(!t.unstable_orphan)return null===(r=n.addDialog)||void 0===r||r.call(n,e),function(){var t;null===(t=n.removeDialog)||void 0===t||t.call(n,e)}}),[t.unstable_orphan,n.addDialog,e,n.removeDialog]),(0,l.useEffect)((function(){var r;if(!t.unstable_orphan&&t.modal&&t.visible)return null===(r=n.showDialog)||void 0===r||r.call(n,e),function(){var t;null===(t=n.hideDialog)||void 0===t||t.call(n,e)}}),[t.unstable_orphan,t.modal,t.visible,n.showDialog,e,n.hideDialog]),(0,l.useEffect)((function(){var e;!1===n.visible&&t.visible&&!t.unstable_orphan&&(null===(e=t.hide)||void 0===e||e.call(t))}),[n.visible,t.visible,t.hide,t.unstable_orphan]);var h=(0,l.useMemo)((function(){return{visible:t.visible,addDialog:u,removeDialog:d,showDialog:f,hideDialog:p}}),[t.visible,u,d,f,p]);return{dialogs:o,visibleModals:s,wrap:(0,l.useCallback)((function(e){return(0,l.createElement)(sr.Provider,{value:h},e)}),[h])}}(c,e),b=y.dialogs,x=y.visibleModals,w=y.wrap,k=!(!e.modal||x.length)||void 0;(function(e,t){var n=Boolean(t.preventBodyScroll&&t.visible);(0,l.useEffect)((function(){var t=e.current;if(t&&n)return Xn(t,{reserveScrollBarGap:!0}),function(){return Jn(t)}}),[e,n])})(c,e),ir(c,x,e),ur(c,e),function(e,t,n){var r=n.unstable_initialFocusRef,o=n.visible&&n.unstable_autoFocusOnShow,i=!(!n.animated||!n.animating);Se((function(){var n=e.current;if(o&&n&&!i&&!t.some((function(e){return e.current&&!e.current.hidden})))if(null!=r&&r.current)r.current.focus({preventScroll:!0});else{qe(le(n,!0)||n,{preventScroll:!0,isActive:function(){return Q(n)}})}}),[e,o,i,t,r])}(c,b,e),ar(c,f,e),cr(c,f,b,e),function(e,t,n){var r=function(r){return lr(e,{current:null},t,r,(function(e){e.stopPropagation(),e.preventDefault()}),n.visible&&n.modal,!0)};r("mouseover"),r("mousemove"),r("mouseout")}(c,b,e);var S=(0,l.useCallback)((function(t){var n;null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&"Escape"===t.key&&(!e.hideOnEsc||!e.hide||(t.stopPropagation(),e.hide()))}),[e.hideOnEsc,e.hide]),_=(0,l.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),g(e)}),[g]),E=(0,l.useCallback)((function(t){return t=w(t),e.modal&&!d&&(t=(0,l.createElement)(jn,null,t)),i&&(t=i(t)),(0,l.createElement)(Wn.Provider,{value:null},t)}),[w,e.modal,d,i]);return m({ref:Z(c,n),role:"dialog",tabIndex:null!==a&&void 0!==a?a:-1,"aria-modal":k,"data-dialog":!0,onKeyDown:S,onBlur:_,wrapElement:E},s)}}),pr=(D({as:"div",useHook:fr,useCreateElement:function(e,t,n){return C(e,t,n)}}),["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"]),hr=([].concat(pr,["size"]),pr),mr=j({name:"Popover",compose:fr,keys:pr,useOptions:function(e){var t=e.modal;return m({modal:void 0!==t&&t},v(e,["modal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=v(t,["ref","style"]);return m({ref:Z(e.unstable_popoverRef,n),style:m(m({},e.unstable_popoverStyles),r)},o)}}),vr=D({as:"div",useHook:mr,useCreateElement:function(e,t,n){return C(e,t,n)}}),gr=j({name:"Disclosure",compose:ve,keys:An,useProps:function(e,t){var n=t.onClick,r=t["aria-controls"],o=v(t,["onClick","aria-controls"]),i=V(n),a=r?r+" "+e.baseId:e.baseId,s=(0,l.useCallback)((function(t){var n,r;null===(n=i.current)||void 0===n||n.call(i,t),!t.defaultPrevented&&(null===(r=e.toggle)||void 0===r||r.call(e))}),[e.toggle]);return m({"aria-expanded":!!e.visible,"aria-controls":a,onClick:s},o)}}),yr=D({as:"button",memo:!0,useHook:gr}),br=j({name:"DialogDisclosure",compose:gr,keys:nr,useProps:function(e,t){var n=t.ref,r=t.onClick,o=v(t,["ref","onClick"]),i=(0,l.useRef)(null),a=V(r),s=(0,l.useState)(!1),c=s[0],u=s[1],d=e.unstable_disclosureRef;K((function(){var t=i.current;d&&!d.current&&(d.current=t);var n=!(null!=d&&d.current)||d.current===t;u(!!e.visible&&n)}),[e.visible,d]);var f=(0,l.useCallback)((function(e){var t;null===(t=a.current)||void 0===t||t.call(a,e),!e.defaultPrevented&&d&&(d.current=e.currentTarget)}),[d]);return m({ref:Z(i,n),"aria-haspopup":"dialog","aria-expanded":c,onClick:f},o)}}),xr=(D({as:"button",memo:!0,useHook:br}),[].concat(["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],["value","checked","unstable_checkOnFocus"]));function wr(e){return typeof e.checked<"u"?e.checked:typeof e.value<"u"&&e.state===e.value}function kr(e,t){var n=ye(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null===t||void 0===t||t(n)}var Sr=j({name:"Radio",compose:Je,keys:xr,useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,s=e.unstable_checkOnFocus,l=void 0===s||s,c=v(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return m(m({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:l},c),{},{value:null!=(n=c.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=v(t,["ref","onChange","onClick"]),a=(0,l.useRef)(null),s=(0,l.useState)(!0),c=s[0],u=s[1],d=wr(e),f=V(e.currentId===e.id),p=V(r),h=V(o);(function(e){var t=(0,l.useState)((function(){return wr(e)}))[0],n=(0,l.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;(0,l.useEffect)((function(){t&&r&&n!==r&&(null===o||void 0===o||o(r))}),[t,r,o,n])})(e),(0,l.useEffect)((function(){var e=a.current;!e||("INPUT"!==e.tagName||"radio"!==e.type)&&u(!1)}),[]);var g=(0,l.useCallback)((function(t){var n,r;null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&(e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value))}),[e.disabled,e.setState,e.value]),y=(0,l.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),!e.defaultPrevented&&(c||kr(e.currentTarget,g))}),[g,c]);return(0,l.useEffect)((function(){var t=a.current;!t||e.unstable_moves&&f.current&&e.unstable_checkOnFocus&&kr(t,g)}),[e.unstable_moves,e.unstable_checkOnFocus,g]),m({ref:Z(a,n),role:c?void 0:"radio",type:c?"radio":void 0,value:c?e.value:void 0,name:c?e.baseId:void 0,"aria-checked":d,checked:d,onChange:g,onClick:y},i)}}),_r=(D({as:"input",memo:!0,useHook:Sr}),[].concat(["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","unstable_values","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","unstable_setValue"],["visible","animated","animating","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"])),Er=_r,Cr=Er,Tr=Cr,Ir=Tr,Br=[].concat(Ir,["name"]),Or=Br,Pr=Ir;var Rr=j({name:"MenuBar",compose:He,keys:Er,useProps:function(e,t){var n=t.ref,r=t.wrapElement,o=t.role,i=void 0===o?"menubar":o,a=v(t,["ref","wrapElement","role"]),s=(0,l.useRef)(null),c=function(e,t,n){var r="unstable_orphan"in n&&n.unstable_orphan,o=(0,l.useContext)(Wn),i=(0,l.useState)([]),a=i[0],s=i[1],c=o||{},u=c.addChild,d=c.removeChild,f=(0,l.useCallback)((function(e){return s((function(t){return[].concat(t,[e])}))}),[]),p=(0,l.useCallback)((function(e){return s((function(t){return zn(t,e)}))}),[]);(0,l.useEffect)((function(){if(u&&!r)return u(e),function(){null===d||void 0===d||d(e)}}),[e,u,d,r]);var h=(0,l.useMemo)((function(){return{orientation:n.orientation,next:n.next,previous:n.previous,ref:e,role:t,parent:o,children:a,addChild:f,removeChild:p}}),[n.orientation,n.next,n.previous,e,t,o,a,f,p]);return(0,l.useCallback)((function(e){return(0,l.createElement)(Wn.Provider,{value:h},e)}),[h])}(s,i,e);!function(e,t,n){var r=t.items,o=void 0===r?[]:r,i=t.move;void 0===n&&(n=500);var a=(0,l.useState)(""),s=a[0],c=a[1];(0,l.useEffect)((function(){if(s){var e=setTimeout((function(){return c("")}),n),t=o.find((function(e){return Boolean(e.ref.current&&e.ref.current.textContent&&e.ref.current.textContent.toLowerCase().startsWith(s))}));return t&&i(t.id),function(){return clearTimeout(e)}}}),[s,o,i,n]),(0,l.useEffect)((function(){var t=e.current;if(t){var n=function(e){var n;if(!(e.key.length>1)&&!e.shiftKey&&!e.metaKey&&!e.ctrlKey&&!e.altKey){var r=e.target,o=null===(n=r.getAttribute)||void 0===n?void 0:n.call(r,"role"),i=r===t,a=o&&-1!==o.indexOf("menuitem")&&re(r,"[role=menu],[role=menubar]")===t;!i&&!a||/^[a-z0-9_-]$/i.test(e.key)&&(e.stopPropagation(),e.preventDefault(),c((function(t){return""+t+e.key})))}};return t.addEventListener("keydown",n),function(){return t.removeEventListener("keydown",n)}}}),[e,c])}(s,e);var u=(0,l.useCallback)((function(e){return e=c(e),r?r(e):e}),[c,r]);return m({ref:Z(s,n),role:i,"aria-orientation":e.orientation,wrapElement:u},a)}});D({as:"div",useHook:Rr,useCreateElement:function(e,t,n){return C(e,t,n)}});var Ar=D({as:"div",useHook:j({name:"Menu",compose:[Rr,mr],keys:_r,useOptions:function(e){var t=(0,l.useContext)(Wn);return m(m({unstable_autoFocusOnHide:!("menubar"===(null===t||void 0===t?void 0:t.role)),modal:!1},e),{},{unstable_autoFocusOnShow:!1,hideOnEsc:!1})},useProps:function(e,t){for(var n=t.onKeyDown,r=v(t,["onKeyDown"]),o=V(n),i=(0,l.useContext)(Wn),a=!!i,s=i;s&&"menubar"!==s.role;)s=s.parent;var c,u=s||{},d=u.next,f=u.previous,p="horizontal"===u.orientation,h=(c=e.placement,(0,l.useMemo)((function(){var e;return null==c||null===(e=c.split("-"))||void 0===e?void 0:e[0]}),[c]));return m({role:"menu",onKeyDown:(0,l.useCallback)((function(t){var n,r;if(null===(n=o.current)||void 0===n||n.call(o,t),!t.defaultPrevented)if("Escape"===t.key)a||t.stopPropagation(),null===(r=e.hide)||void 0===r||r.call(e);else if(a&&!ee(t)){var i={ArrowRight:p&&"left"!==h?d:"left"===h&&e.hide,ArrowLeft:p&&"right"!==h?f:"right"===h&&e.hide}[t.key];i&&(t.preventDefault(),a&&t.stopPropagation(),i())}}),[a,p,d,f,h,e.hide])},r)}}),useCreateElement:function(e,t,n){return C(e,t,n)}});var Mr=j({name:"PopoverDisclosure",compose:br,keys:hr,useProps:function(e,t){var n=t.ref,r=v(t,["ref"]);return m({ref:Z(e.unstable_referenceRef,n)},r)}}),Nr=D({as:"button",memo:!0,useHook:Mr});function Dr(e){var t=null===e||void 0===e?void 0:e.find((function(e){return e.current&&!e.current.hidden}));return null===t||void 0===t?void 0:t.current}var Lr=function(){},jr=D({as:"button",memo:!0,useHook:j({name:"MenuButton",compose:Mr,keys:Cr,propsAreEqual:function(e,t){e.unstable_popoverStyles,e.unstable_arrowStyles,e.currentId,e.unstable_moves;var n=v(e,["unstable_popoverStyles","unstable_arrowStyles","currentId","unstable_moves"]),r=(t.unstable_popoverStyles,t.unstable_arrowStyles,t.currentId,t.unstable_moves,v(t,["unstable_popoverStyles","unstable_arrowStyles","currentId","unstable_moves"]));return Mr.unstable_propsAreEqual(n,r)},useProps:function(e,t){var n=t.ref,r=t.onClick,o=t.onKeyDown,i=t.onFocus,a=t.onMouseEnter,s=t.onMouseDown,c=v(t,["ref","onClick","onKeyDown","onFocus","onMouseEnter","onMouseDown"]),u=(0,l.useContext)(Wn),d=(0,l.useRef)(null),f=(0,l.useRef)(!1),p=e.placement.split("-")[0],h=!!u,g="menubar"===(null===u||void 0===u?void 0:u.role),y=e.disabled||c["aria-disabled"],b=V(r),x=V(o),w=V(i),k=V(a),S=V(s),_=(0,l.useCallback)((function(t){var n,r;if("Escape"===t.key)null===(r=e.hide)||void 0===r||r.call(e);else if(!y){var o,i=e.first&&function(){return setTimeout(e.first)},a=e.last&&function(){return setTimeout(e.last)},s={Enter:i," ":i,ArrowUp:("top"===p||"bottom"===p)&&a,ArrowRight:"right"===p&&i,ArrowDown:("bottom"===p||"top"===p)&&i,ArrowLeft:"left"===p&&i}[t.key];if(s)return t.preventDefault(),t.stopPropagation(),null===(o=e.show)||void 0===o||o.call(e),void s()}null===(n=x.current)||void 0===n||n.call(x,t)}),[y,e.hide,e.first,e.last,p,e.show]),E=(0,l.useCallback)((function(t){var n;if(null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented&&u){var r=t.currentTarget;g?Dr(u.children)&&r.focus():setTimeout((function(){var t;Q(r)&&(null===(t=e.show)||void 0===t||t.call(e))}),200)}}),[u,g,e.show]),C=(0,l.useCallback)((function(e){var t;f.current=!0,null===(t=S.current)||void 0===t||t.call(S,e)}),[]),T=(0,l.useCallback)((function(t){var n,r;(null===(n=w.current)||void 0===n||n.call(w,t),t.defaultPrevented||y||!g||f.current)||(null===(r=e.show)||void 0===r||r.call(e))}),[g,y,e.show]),I=(0,l.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented){var r,o,i;if(h&&!g)null===(r=e.show)||void 0===r||r.call(e);else if(null===(o=e.toggle)||void 0===o||o.call(e),f.current&&!g&&!e.visible)null===(i=e.move)||void 0===i||i.call(e,null);f.current=!1}}),[h,g,e.show,e.toggle,e.visible,e.move]);return m({ref:Z(d,n),"aria-haspopup":"menu",onKeyDown:_,onMouseEnter:E,onMouseDown:C,onFocus:T,onClick:I},c)},useComposeOptions:function(e){return m(m({},e),{},{toggle:Lr})}})}),zr=D({as:"div",useHook:j({name:"MenuGroup",compose:ce,keys:Tr,useProps:function(e,t){return m({role:"group"},t)}})});function Wr(e,t,n){return Math.abs((e.x*(t.y-n.y)+t.x*(n.y-e.y)+n.x*(e.y-t.y))/2)}function Zr(e,t){var n=V(t),r=(0,l.useRef)(null),o=(0,l.useRef)(null),i=(0,l.useRef)(null),a=(0,l.useRef)(0),s=(0,l.useRef)(0),c=(0,l.useCallback)((function(t){if(null!=e&&e.children.length){o.current=null,i.current=null;var n=Dr(e.children);if(n){var r=function(e,t){var n=t.getBoundingClientRect(),r=n.top,o=n.right,i=n.bottom,a=n.left,s=a>e.clientX?a:o;return[{x:s,y:r},{x:s,y:i}]}(t,n);o.current=r[0],i.current=r[1]}}}),[null===e||void 0===e?void 0:e.children]),u=(0,l.useCallback)((function(e){var t=a.current!==e.clientX||s.current!==e.clientY;if(e.isTrusted&&!t)return!0;var n=Math.abs(a.current-e.clientX);a.current=e.clientX,s.current=e.clientY;var l,u,d,f,p=function(){return o.current&&i.current};return"mouseleave"===e.type&&!p()&&c(e),!!p()&&(n&&r.current&&(l={x:e.clientX,y:e.clientY},u=r.current,d=o.current,f=i.current,Wr(u,d,f)===Wr(l,d,f)+Wr(u,l,f)+Wr(u,d,l)))}),[c]);return{onMouseEnter:(0,l.useCallback)((function(t){var o;null===(o=n.current)||void 0===o||o.call(n,t),!t.defaultPrevented&&"menubar"!==(null===e||void 0===e?void 0:e.role)&&(r.current={x:t.clientX,y:t.clientY},c(t))}),[null===e||void 0===e?void 0:e.role,c]),isMouseInTransitToSubmenu:u}}function Fr(e){var t=e.relatedTarget;return(null===t||void 0===t?void 0:t.nodeType)===Node.ELEMENT_NODE?e.relatedTarget:e.toElement||null}var Hr=j({name:"MenuItem",compose:Je,keys:Ir,propsAreEqual:function(e,t){e.unstable_popoverStyles,e.unstable_arrowStyles,e.visible;var n=v(e,["unstable_popoverStyles","unstable_arrowStyles","visible"]),r=(t.unstable_popoverStyles,t.unstable_arrowStyles,t.visible,v(t,["unstable_popoverStyles","unstable_arrowStyles","visible"]));return Je.unstable_propsAreEqual(n,r)},useProps:function(e,t){var n=t.onMouseEnter,r=t.onMouseMove,o=t.onMouseLeave,i=v(t,["onMouseEnter","onMouseMove","onMouseLeave"]),a=(0,l.useContext)(Wn),s=V(r),c=V(o),u=Zr(a,n),d=u.onMouseEnter,f=u.isMouseInTransitToSubmenu;return m({role:"menuitem",onMouseEnter:d,onMouseMove:(0,l.useCallback)((function(t){var n,r;null===(n=s.current)||void 0===n||n.call(s,t),!t.defaultPrevented&&"menubar"!==(null===a||void 0===a?void 0:a.role)&&(f(t)||Q(t.currentTarget)||null===(r=e.move)||void 0===r||r.call(e,t.currentTarget.id))}),[e.move]),onMouseLeave:(0,l.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&"menubar"!==(null===a||void 0===a?void 0:a.role)&&!function(e){var t=Fr(e);return!!t&&J(e.currentTarget,t)}(t)&&!function(e,t){if(null==t||!t.length)return!1;var n=Fr(e);if(!n)return!1;var r=Dr(t);return r&&J(r,n)}(t,null===a||void 0===a?void 0:a.children)&&!function(e,t){var n=Fr(e);return!!n&&(null===t||void 0===t?void 0:t.some((function(e){return e.ref.current&&J(e.ref.current,n)})))}(t,e.items)){var r;if(f(t))return;null===(r=e.move)||void 0===r||r.call(e,null)}}),[null===a||void 0===a?void 0:a.role,null===a||void 0===a?void 0:a.children,e.items,e.move])},i)}}),Ur=D({as:"button",memo:!0,useHook:Hr}),$r=D({as:"button",memo:!0,useHook:j({name:"MenuItemCheckbox",compose:[Hr,we],keys:Br,propsAreEqual:function(e,t){if(e.name!==t.name)return Hr.unstable_propsAreEqual(e,t);var n=e.unstable_values,r=v(e,["unstable_values"]),o=t.unstable_values,i=v(t,["unstable_values"]);return n[t.name]===o[t.name]&&Hr.unstable_propsAreEqual(r,i)},useOptions:function(e){var t=(0,l.useCallback)((function(t){return e.unstable_setValue(e.name,t)}),[e.unstable_setValue,e.name]);return m(m({},e),{},{state:e.unstable_values[e.name],setState:t})},useProps:function(e,t){return m({role:"menuitemcheckbox",name:e.name},t)}})}),Gr=D({as:"button",memo:!0,useHook:j({name:"MenuItemRadio",compose:[Hr,Sr],keys:Or,propsAreEqual:function(e,t){if(e.name!==t.name)return Hr.unstable_propsAreEqual(e,t);var n=e.unstable_values,r=v(e,["unstable_values"]),o=t.unstable_values,i=v(t,["unstable_values"]);return n[t.name]===o[t.name]&&Hr.unstable_propsAreEqual(r,i)},useOptions:function(e){var t=(0,l.useCallback)((function(t){return e.unstable_setValue(e.name,t)}),[e.unstable_setValue,e.name]);return m(m({},e),{},{unstable_checkOnFocus:!1,state:e.unstable_values[e.name],setState:t})},useProps:function(e,t){return m({role:"menuitemradio"},t)}})}),qr=j({name:"Separator",compose:ce,keys:["orientation"],useOptions:function(e){var t=e.orientation;return m({orientation:void 0===t?"horizontal":t},v(e,["orientation"]))},useProps:function(e,t){return m({role:"separator","aria-orientation":e.orientation},t)}}),Kr=(D({as:"hr",memo:!0,useHook:qr}),D({as:"hr",memo:!0,useHook:j({name:"MenuSeparator",compose:qr,keys:Pr,useOptions:function(e){var t=e.orientation;return m({orientation:"vertical"===(void 0===t?"vertical":t)?"horizontal":"vertical"},v(e,["orientation"]))}})}));function Vr(e){void 0===e&&(e={});var t=(0,l.useContext)(Wn),n=ke(e),r=n.orientation,o=void 0===r?"vertical":r,i=n.gutter,a=void 0===i?0:i,s=v(n,["orientation","gutter"]),c=s.placement||(t&&"vertical"===t.orientation?"right-start":"bottom-start"),u=function(e){void 0===e&&(e={});var t=ke(e),n=t.orientation,r=void 0===n?"horizontal":n,o=t.unstable_values,i=void 0===o?{}:o,a=v(t,["orientation","unstable_values"]),s=(0,l.useState)(i),c=s[0],u=s[1],d=bt(m(m({},a),{},{orientation:r}));return m(m({},d),{},{unstable_values:c,unstable_setValue:(0,l.useCallback)((function(e,t){u((function(n){var r;return m(m({},n),{},((r={})[e]="function"==typeof t?t(n):t,r))}))}),[])})}(m(m({},s),{},{orientation:o})),d=Rn(m(m({},s),{},{placement:c,gutter:a}));return(0,l.useEffect)((function(){d.visible||u.reset()}),[d.visible,u.reset]),m(m({},u),d)}var Yr=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","selectedId","panels","manual","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","select","setSelectedId","registerPanel","unregisterPanel"],Xr=Yr,Jr=[].concat(Xr,["tabId"]);var Qr=D({as:"button",memo:!0,useHook:j({name:"Tab",compose:Je,keys:Yr,useOptions:function(e){var t=e.focusable;return m({focusable:void 0===t||t},v(e,["focusable"]))},useProps:function(e,t){var n=t.onClick,r=t.onFocus,o=v(t,["onClick","onFocus"]),i=e.selectedId===e.id,a=function(e){return(0,l.useMemo)((function(){var t,n;return(null===(t=e.panels)||void 0===t||null===(n=t.find((function(t){return t.groupId===e.id})))||void 0===n?void 0:n.id)||void 0}),[e.panels,e.id])}(e),s=V(n),c=V(r),u=(0,l.useCallback)((function(t){var n,r;null===(n=s.current)||void 0===n||n.call(s,t),!t.defaultPrevented&&(e.disabled||!e.id||i||null===(r=e.select)||void 0===r||r.call(e,e.id))}),[e.disabled,i,e.select,e.id]),d=(0,l.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&(e.disabled||e.manual||!e.id||i||null===(r=e.select)||void 0===r||r.call(e,e.id))}),[e.id,e.disabled,e.manual,i,e.select]);return m({role:"tab","aria-selected":i,"aria-controls":a,onClick:u,onFocus:d},o)}})}),eo=D({as:"div",useHook:j({name:"TabList",compose:He,keys:Xr,useProps:function(e,t){return m({role:"tablist","aria-orientation":e.orientation},t)}}),useCreateElement:function(e,t,n){return C(e,t,n)}});function to(e){var t,n,r=null===(t=e.panels)||void 0===t?void 0:t.find((function(t){return t.id===e.id})),o=e.tabId||(null===r||void 0===r?void 0:r.groupId);if(o||!r||!e.panels||!e.items)return o;var i=function(e,t){return e.filter((function(e){return!e.groupId})).indexOf(t)}(e.panels,r),a=function(e,t){var n=t.map((function(e){return e.groupId})).filter(Boolean);return e.filter((function(e){return-1===n.indexOf(e.id||void 0)}))}(e.items,e.panels);return(null===(n=a[i])||void 0===n?void 0:n.id)||void 0}var no=D({as:"div",useHook:j({name:"TabPanel",compose:[Ve,Mn],keys:Jr,useProps:function(e,t){var n=t.ref,r=v(t,["ref"]),o=(0,l.useRef)(null),i=to(e),a=e.id,s=e.registerPanel,c=e.unregisterPanel;return(0,l.useEffect)((function(){if(a)return null!==s&&void 0!==s&&s({id:a,ref:o,groupId:i}),function(){null===c||void 0===c||c(a)}}),[i,a,s,c]),m({ref:Z(o,n),role:"tabpanel",tabIndex:0,"aria-labelledby":i},r)},useComposeOptions:function(e){var t=to(e);return m({visible:!!t&&e.selectedId===t},e)}})});function ro(e){void 0===e&&(e={});var t=ke(e),n=t.selectedId,r=t.loop,o=void 0===r||r,i=t.manual,a=void 0!==i&&i,s=bt(m({loop:o,currentId:n},v(t,["selectedId","loop","manual"]))),c=bt(),u=(0,l.useState)(n),d=u[0],f=u[1],p=(0,l.useCallback)((function(e){s.move(e),f(e)}),[s.move]);return(0,l.useEffect)((function(){null!==d&&(s.items.find((function(e){return e.id===d}))||s.currentId&&f(s.currentId))}),[d,s.items,s.currentId]),m(m({},s),{},{selectedId:d,panels:c.items,manual:a,select:p,setSelectedId:f,registerPanel:(0,l.useCallback)((function(e){return c.registerItem(e)}),[c.registerItem]),unregisterPanel:(0,l.useCallback)((function(e){return c.unregisterItem(e)}),[c.unregisterItem])})}var oo=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],io=[].concat(oo,["unstable_portal"]),ao=oo,so={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};function lo(e){e.defaultPrevented||"Escape"===e.key&&so.show(null)}var co=D({as:"div",memo:!0,useHook:j({name:"Tooltip",compose:Mn,keys:io,useOptions:function(e){var t=e.unstable_portal;return m({unstable_portal:void 0===t||t},v(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=v(t,["ref","style","wrapElement"]);(0,l.useEffect)((function(){var t;$(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",lo)}),[]);var a=(0,l.useCallback)((function(t){return e.unstable_portal&&(t=(0,l.createElement)(jn,null,t)),o?o(t):t}),[e.unstable_portal,o]);return m({ref:Z(e.unstable_popoverRef,n),role:"tooltip",style:m(m({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}})}),uo=D({as:"div",useHook:j({name:"TooltipReference",compose:ce,keys:ao,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=v(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),c=V(r),u=V(o),d=V(i),f=V(a),p=(0,l.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&(null===(r=e.show)||void 0===r||r.call(e))}),[e.show]),h=(0,l.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),!t.defaultPrevented&&(null===(r=e.hide)||void 0===r||r.call(e))}),[e.hide]),g=(0,l.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),!t.defaultPrevented&&(null===(r=e.show)||void 0===r||r.call(e))}),[e.show]),y=(0,l.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),!t.defaultPrevented&&(null===(r=e.hide)||void 0===r||r.call(e))}),[e.hide]);return m({ref:Z(e.unstable_referenceRef,n),tabIndex:0,onFocus:p,onBlur:h,onMouseEnter:g,onMouseLeave:y,"aria-describedby":e.baseId},s)}})});function fo(e){void 0===e&&(e={});var t=ke(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=v(t,["placement","unstable_timeout"]),s=(0,l.useState)(i),c=s[0],u=s[1],d=(0,l.useRef)(null),f=(0,l.useRef)(null),p=Rn(m(m({},a),{},{placement:r})),h=(p.modal,p.setModal,v(p,["modal","setModal"])),g=(0,l.useCallback)((function(){null!==d.current&&window.clearTimeout(d.current),null!==f.current&&window.clearTimeout(f.current)}),[]),y=(0,l.useCallback)((function(){g(),h.hide(),f.current=window.setTimeout((function(){so.hide(h.baseId)}),c)}),[g,h.hide,c,h.baseId]),b=(0,l.useCallback)((function(){g(),!c||so.currentTooltipId?(so.show(h.baseId),h.show()):(so.show(null),d.current=window.setTimeout((function(){so.show(h.baseId),h.show()}),c))}),[g,c,h.show,h.baseId]);return(0,l.useEffect)((function(){return so.subscribe((function(e){e!==h.baseId&&(g(),h.visible&&h.hide())}))}),[h.baseId,g,h.visible,h.hide]),(0,l.useEffect)((function(){return function(){g(),so.hide(h.baseId)}}),[g,h.baseId]),m(m({},h),{},{hide:y,show:b,unstable_timeout:c,unstable_setTimeout:u})}var po=[].concat(["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","modal","unstable_disclosureRef","setModal","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place"],["size"]),ho=j({name:"PopoverArrow",compose:z,keys:[].concat((0,s.Z)(po),["fill","stroke"]),useOptions:function(e){var t=e.size,n=void 0===t?30:t,r=e.fill,o=e.stroke,s=(0,a.Z)(e,u);return(0,i.Z)({size:n,fill:r,stroke:o},s)},useProps:function(e,t){var n=t.ref,s=t.style,c=(0,a.Z)(t,d),u=e.placement.split("-"),f=(0,o.Z)(u,1)[0],p=e.unstable_arrowStyles,h=e.fill,m=e.stroke,v={top:"rotateZ(180deg)",right:"rotateZ(-90deg)",bottom:"rotateZ(360deg)",left:"rotateZ(90deg)"}[f],g=l.useMemo((function(){return l.createElement("svg",{viewBox:"0 0 30 30",style:{transform:v}},l.createElement("path",{fill:h,stroke:m,d:"M23.7,27.1L17,19.9C16.5,19.3,15.8,19,15,19s-1.6,0.3-2.1,0.9l-6.6,7.2C5.3,28.1,3.4,29,2,29h26\n        C26.7,29,24.6,28.1,23.7,27.1z"}),l.createElement("path",{fill:h,d:"M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"}))}),[v,h,m]),y=(0,l.useRef)(n);return(0,i.Z)({ref:Z(e.unstable_arrowRef,y),style:(0,i.Z)((0,i.Z)({},p),{},(0,r.Z)({fontSize:e.size,width:"1em",height:"1em",pointerEvents:"none"},f,"100%"),s),children:g},c)}}),mo=D({as:"div",memo:!0,useHook:ho}),vo=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],go=([].concat(vo,["unstable_portal"]),D({as:"div",memo:!0,useHook:j({name:"TooltipArrow",compose:ho,keys:vo,useOptions:function(e){var t=e.size,n=void 0===t?16:t,r=(0,a.Z)(e,f);return(0,i.Z)({size:n},r)}})}))},9643:function(e,t,n){"use strict";n.r(t),n.d(t,{ScreenReaderOnly:function(){return l}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["as","children"],l=a.forwardRef((function(e,t){var n=e.as,l=void 0===n?"span":n,c=e.children,u=(0,o.Z)(e,s);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},u),{},{as:l,border:"none",clip:"rect(0 0 0 0)",height:"1px",margin:"spaceNegative10",overflow:"hidden",padding:"space0",position:"absolute",ref:t,textTransform:"none",whiteSpace:"nowrap",width:"1px"}),c)}));l.displayName="ScreenReaderOnly"},9287:function(e,t,n){"use strict";n.r(t),n.d(t,{Option:function(){return h},OptionGroup:function(){return m},Select:function(){return g},SelectElement:function(){return v}});var r=n(885),o=n(1413),i=n(4925),a=n(1923),s=n(2791),l=n(9282),c=n(2374),u=["children","element"],d=["label","children","element"],f=["element","variant","size"],p=["disabled","element","hasError","insertBefore","insertAfter","children","size","multiple","variant"],h=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"OPTION":r,c=(0,i.Z)(e,u);return c.selected&&console.warn('"selected" is a blocked prop on this component, please use "value" on the select element.'),s.createElement(a.Box,(0,o.Z)((0,o.Z)({as:"option",ref:t},(0,a.safelySpreadBoxProps)(c)),{},{element:l,size:void 0,height:void 0,width:void 0,backgroundColor:"inherit",color:"inherit",fontFamily:"inherit",lineHeight:"lineHeight50",paddingTop:"space30",paddingBottom:"space30",paddingLeft:"space20"}),n)}));h.displayName="Option";var m=s.forwardRef((function(e,t){var n=e.label,r=e.children,l=e.element,c=void 0===l?"OPTION_GROUP":l,u=(0,i.Z)(e,d);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({ref:t,label:n},(0,a.safelySpreadBoxProps)(u)),{},{element:c,as:"optgroup",backgroundColor:"inherit",color:"inherit",fontFamily:"inherit",fontWeight:"fontWeightMedium",fontStyle:"normal",margin:"space20"}),r)}));m.displayName="OptionGroup";var v=s.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SELECT_ELEMENT":n,l=e.variant,c=e.size,u=(0,i.Z)(e,f);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(u)),{},{element:r,as:"select",ref:t,size:c,height:void 0,appearance:"none",backgroundColor:"inverse"===l?"colorBackgroundInverse":"colorBackgroundBody",border:"none",borderRadius:"borderRadius30",boxShadow:"none",color:"inherit",cursor:"pointer",display:"block",fontFamily:"inherit",fontSize:"fontSize30",fontWeight:"fontWeightMedium",lineHeight:"lineHeight20",margin:"space0",outline:"none",paddingBottom:"space30",paddingLeft:"space40",paddingRight:"space100",paddingTop:"space30",resize:"none",width:"100%",_disabled:{color:"inverse"===l?"colorTextInverseWeakest":"colorTextWeaker",backgroundColor:"transparent",cursor:"not-allowed",opacity:1},variant:l}))}));v.displayName="SelectElement";var g=s.forwardRef((function(e,t){var n=e.disabled,u=e.element,d=void 0===u?"SELECT":u,f=e.hasError,h=e.insertBefore,m=e.insertAfter,g=e.children,y=e.size,b=e.multiple,x=e.variant,w=void 0===x?"default":x,k=(0,i.Z)(e,p),S=s.useState(!1),_=(0,r.Z)(S,2),E=_[0],C=_[1];return s.useEffect((function(){C(!0)}),[]),s.createElement(c.InputBox,{disabled:n,element:d,hasError:f,insertAfter:m,insertBefore:h,variant:w},s.createElement(a.Box,{display:"flex",width:"100%",position:"relative"},E?s.createElement(v,(0,o.Z)((0,o.Z)({"aria-invalid":f,"data-not-selectize":"true",disabled:n,ref:t,element:"".concat(d,"_ELEMENT")},k),{},{multiple:b,size:b?y:0,variant:w,key:"mounted"}),g):s.createElement(v,{key:"unmounted",variant:w}),!b&&s.createElement(c.InputChevronWrapper,{element:"".concat(d,"_CHEVRON_WRAPPER")},s.createElement(l.v,{"aria-hidden":"true",decorative:!0,element:"".concat(d,"_ICON"),color:(0,c.getInputChevronIconColor)(w,n,!1),size:"sizeIcon30"}))))}));g.displayName="Select"},7350:function(e,t,n){"use strict";n.r(t),n.d(t,{Separator:function(){return l}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["element","orientation","horizontalSpacing","verticalSpacing"],l=a.forwardRef((function(e,t){var n=e.element,l=void 0===n?"SEPARATOR":n,c=e.orientation,u=e.horizontalSpacing,d=e.verticalSpacing,f=(0,o.Z)(e,s);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(f)),{},{"aria-orientation":c,element:l,margin:"space0",marginBottom:d,marginLeft:u,marginRight:u,marginTop:d,as:"hr",borderWidth:"borderWidth0",borderColor:"colorBorderWeaker",borderStyle:"solid",borderBottomWidth:"horizontal"===c?"borderWidth10":null,borderLeftWidth:"vertical"===c?"borderWidth10":null,width:"horizontal"===c?"auto":null,height:"vertical"===c?"auto":null,ref:t}))}));l.displayName="Separator"},4562:function(e,t,n){"use strict";n.r(t),n.d(t,{SiblingBox:function(){return d}});var r=n(1413),o=n(4925),i=n(4942),a=n(1923),s=n(7666),l=n(2791),c=["aria-hidden","alignItems","display","element","flexShrink","justifyContent","transition"],u=(0,s.iK)(a.Box)((function(e){var t,n=e._activeSibling,r=e._boxChild,o=e._checkedAndActiveSibling,a=e._checkedAndDisabledSibling,l=e._checkedAndFocusSibling,c=e._checkedAndHoverSibling,u=e._checkedAndInvalidSibling,d=e._checkedAndInvalidAndDisabledSibling,f=e._checkedAndInvalidAndHoverSibling,p=e._checkedSibling,h=e._checkedSiblingAndBoxChild,m=e._disabledSibling,v=e._focusSibling,g=e._hoverSibling,y=e._invalidSibling,b=e._invalidAndHoverSibling,x=e._invalidAndDisabledSibling,w=e.type,k=void 0===w?"checkbox":w,S="input[type=".concat(k,"]:active + label &"),_="input[type=".concat(k,"]:checked + label &, input[type=").concat(k,"][aria-checked=mixed] + label &"),E="input[type=".concat(k,"]:checked:active + label &, input[type=").concat(k,"][aria-checked=mixed]:active + label &"),C="input[type=".concat(k,"]:checked + label & > *, input[type=").concat(k,"][aria-checked=mixed] + label & > *"),T="input[type=".concat(k,"]:checked:disabled + label &, input[type=").concat(k,"][aria-checked=mixed]:disabled + label &"),I="input[type=".concat(k,"]:checked:focus + label &, input[type=").concat(k,"][aria-checked=mixed]:focus + label &"),B="input[type=".concat(k,"]:checked:hover:not(:disabled) + label &, input[type=").concat(k,"][aria-checked=mixed]:hover:not(:disabled) + label &"),O="input[type=".concat(k,"][aria-invalid=true]:checked + label &"),P="input[type=".concat(k,"][aria-invalid=true]:checked:disabled + label &"),R="input[type=".concat(k,"][aria-invalid=true]:checked:hover:not(:disabled) + label &"),A="input[type=".concat(k,"] + label & > *"),M="input[type=".concat(k,"]:disabled + label &"),N="input[type=".concat(k,"]:focus + label &"),D="input[type=".concat(k,"]:hover:not(:disabled):not(:checked) + label &"),L="input[type=".concat(k,"][aria-invalid=true] + label &"),j="input[type=".concat(k,"][aria-invalid=true]:hover:not(:disabled) + label &"),z="input[type=".concat(k,"][aria-invalid=true]:disabled + label &");return(0,s.iv)((t={},(0,i.Z)(t,S,n),(0,i.Z)(t,_,p),(0,i.Z)(t,E,o),(0,i.Z)(t,C,h),(0,i.Z)(t,T,a),(0,i.Z)(t,I,l),(0,i.Z)(t,B,c),(0,i.Z)(t,O,u),(0,i.Z)(t,P,d),(0,i.Z)(t,R,f),(0,i.Z)(t,A,r),(0,i.Z)(t,M,m),(0,i.Z)(t,N,v),(0,i.Z)(t,D,g),(0,i.Z)(t,L,y),(0,i.Z)(t,j,b),(0,i.Z)(t,z,x),t))})),d=l.forwardRef((function(e,t){var n=e["aria-hidden"],i=void 0===n?"true":n,a=e.alignItems,s=void 0===a?"center":a,d=e.display,f=void 0===d?"inline-flex":d,p=e.element,h=void 0===p?"SIBLING_BOX":p,m=e.flexShrink,v=void 0===m?0:m,g=e.justifyContent,y=void 0===g?"center":g,b=e.transition,x=void 0===b?"all 120ms":b,w=(0,o.Z)(e,c);return l.createElement(u,(0,r.Z)({alignItems:s,"aria-hidden":i,display:f,element:h,flexShrink:v,justifyContent:y,ref:t,transition:x},w))}));d.displayName="SiblingBox"},8233:function(e,t,n){"use strict";n.r(t),n.d(t,{SideModal:function(){return E},SideModalBody:function(){return P},SideModalButton:function(){return C},SideModalContainer:function(){return O},SideModalFooter:function(){return R},SideModalFooterActions:function(){return A},SideModalHeader:function(){return T},SideModalHeading:function(){return I},useSideModalState:function(){return M}});var r=n(1413),o=n(4925),i=n(2276),a=n(3512),s=n(1923),l=n(4086),c=n(2714),u=n(2791),d=n(9741),f=n(8045),p=n(9643),h=n(6373),m=["children","element","hideOnEsc"],v=["children","element"],g=["children","element","i18nDismissLabel"],y=["children","as","element"],b=["gutter","placement","modal","children","state"],x=["children","element"],w=["children","element"],k=["children","element","justifyContent"],S=u.createContext({}),_=(0,a.q)(s.Box),E=u.forwardRef((function(e,t){var n=e.children,i=e.element,d=void 0===i?"SIDE_MODAL":i,f=e.hideOnEsc,p=void 0===f||f,h=(0,o.Z)(e,m),v=u.useContext(S),g=(0,a.Yz)(v.visible,{from:{opacity:0,transform:"translateX(100%)"},enter:{opacity:1,transform:"translateX(0%)"},leave:{opacity:0,transform:"translateX(100%)"},config:{mass:.5,tension:220,friction:20}});return u.createElement(l.J2,(0,r.Z)((0,r.Z)((0,r.Z)({},v),(0,s.safelySpreadBoxProps)(h)),{},{preventBodyScroll:!1,hideOnClickOutside:!1,hideOnEsc:p,element:"".concat(d,"_CONTAINER"),ref:t,as:s.Box,zIndex:"zIndex80",position:"fixed",top:"0 !important",right:"0 !important",bottom:"0 !important",left:"auto !important",transform:"none !important",_focus:{outline:"none"}}),u.createElement(c.ko,null,g((function(e,t){return t&&u.createElement(_,{style:e,element:d,display:"grid",gridTemplateRows:"auto 1fr auto",height:"100vh",backgroundColor:"colorBackgroundWeaker",boxShadow:"shadowElevationLeft20",width:"size80"},n)}))))}));E.displayName="SideModal";var C=u.forwardRef((function(e,t){var n=e.children,i=e.element,a=void 0===i?"SIDE_MODAL_BUTTON":i,s=(0,o.Z)(e,v),c=u.useContext(S);return u.createElement(l.xM,(0,r.Z)((0,r.Z)((0,r.Z)({element:a},c),s),{},{as:d.Button,ref:t}),n)}));C.displayName="SideModalButton";var T=u.forwardRef((function(e,t){var n=e.children,i=e.element,a=void 0===i?"SIDE_MODAL_HEADER":i,l=e.i18nDismissLabel,c=void 0===l?"close":l,h=(0,o.Z)(e,g),m=u.useContext(S).hide;return u.createElement(s.Box,(0,r.Z)((0,r.Z)({},(0,s.safelySpreadBoxProps)(h)),{},{ref:t,paddingRight:"space90",paddingLeft:"space90",paddingTop:"space90",element:a,display:"flex",flexDirection:"row",alignItems:"flex-start"}),u.createElement(s.Box,{display:"flex",flexGrow:1,marginRight:"space70"},n),u.createElement(d.Button,{element:"".concat(a,"_CLOSE_BUTTON"),variant:"secondary_icon",size:"reset",onClick:m},u.createElement(f.T,{element:"".concat(a,"_CLOSE_ICON"),decorative:!0,size:"sizeIcon50"}),u.createElement(p.ScreenReaderOnly,null,c)))}));T.displayName="SideModalHeader";var I=u.forwardRef((function(e,t){var n=e.children,i=e.as,a=void 0===i?"h2":i,s=e.element,l=void 0===s?"SIDE_MODAL_HEADING":s,c=(0,o.Z)(e,y);return u.createElement(h.Heading,(0,r.Z)((0,r.Z)({},c),{},{as:a,element:l,marginBottom:"space0",variant:"heading30",ref:t}),n)}));I.displayName="SideModalHeading";var B=function(e){e.gutter,e.placement,e.modal;var t=e.children,n=e.state,a=(0,o.Z)(e,b),s=n||(0,i.useNonModalDialogPrimitiveState)((0,r.Z)({modal:!0,unstable_fixed:!0},a));return u.createElement(S.Provider,{value:(0,r.Z)({},s)},t)};B.displayName="BaseSideModalContainer";var O=u.memo(B);O.displayName="SideModalContainer";var P=u.forwardRef((function(e,t){var n=e.children,i=e.element,a=void 0===i?"SIDE_MODAL_BODY":i,l=(0,o.Z)(e,x);return u.createElement(s.Box,(0,r.Z)((0,r.Z)({},(0,s.safelySpreadBoxProps)(l)),{},{element:a,ref:t,overflowY:"auto",padding:"space90"}),n)}));P.displayName="SideModalBody";var R=u.forwardRef((function(e,t){var n=e.children,i=e.element,a=void 0===i?"SIDE_MODAL_FOOTER":i,l=(0,o.Z)(e,w);return u.createElement(s.Box,(0,r.Z)((0,r.Z)({},(0,s.safelySpreadBoxProps)(l)),{},{as:"div",element:a,ref:t,paddingRight:"space90",paddingLeft:"space90",paddingBottom:"space90",display:"flex"}),n)}));R.displayName="SideModalFooter";var A=u.forwardRef((function(e,t){var n=e.children,i=e.element,a=void 0===i?"SIDE_MODAL_FOOTER_ACTIONS":i,l=e.justifyContent,c=void 0===l?"flex-start":l,d=(0,o.Z)(e,k);return u.createElement(s.Box,(0,r.Z)((0,r.Z)({},(0,s.safelySpreadBoxProps)(d)),{},{display:"flex",justifyContent:c,flexWrap:"wrap",flexGrow:1,element:a,columnGap:"space50",alignItems:"center",ref:t}),n)}));A.displayName="SideModalFooterActions";var M=function(e){return(0,i.useNonModalDialogPrimitiveState)((0,r.Z)({modal:!0,unstable_fixed:!0},e))}},3415:function(e,t,n){"use strict";n.r(t),n.d(t,{SidePanel:function(){return M},SidePanelBadgeButton:function(){return G},SidePanelBody:function(){return F},SidePanelButton:function(){return U},SidePanelContainer:function(){return H},SidePanelContext:function(){return I},SidePanelFooter:function(){return q},SidePanelHeader:function(){return z},SidePanelHeaderActions:function(){return W},SidePanelPushContentWrapper:function(){return L},useSidePanelState:function(){return K}});var r=n(885),o=n(4925),i=n(1413),a=n(3512),s=n(1923),l=n(2034),c=n(7666),u=n(2714),d=n(3217),f=n(2791),p=n(9741),h=n(8045),m=n(9628),v=n(6431),g=["label","element","sidePanelId","styles","isMobile","children"],y=["element","label","children"],b=["element","children"],x=["element","children"],w=["element","children"],k=["element","children"],S=["element","children","sidePanelId","isOpen","setIsOpen","i18nCloseSidePanelTitle","i18nOpenSidePanelTitle"],_=["children","element"],E=["children"],C=["children","element"],T=["element","variant","children","justifyContent"],I=f.createContext({}),B=(0,a.q)((0,c.iK)(l.ModalDialogPrimitiveOverlay)((0,c.iv)({backgroundColor:"colorBackgroundOverlay",position:"fixed",top:0,right:0,bottom:0,left:0,width:"100%",zIndex:"zIndex80"}),u.s4,s.getCustomElementStyles)),O=f.forwardRef((function(e,t){return f.createElement(s.Box,(0,i.Z)((0,i.Z)({},e),{},{display:"flex",ref:t,position:"sticky",zIndex:"zIndex30",top:e.top,right:0,paddingRight:["space0","space40","space40"],width:["100%","size40","size40"],height:e.height,boxSizing:"content-box",backgroundColor:"colorBackgroundWeaker"}))}));O.displayName="StyledSidePanelWrapper";var P=(0,a.q)(O),R={mass:.3,tension:288,friction:20},A=f.forwardRef((function(e,t){var n=e.label,a=e.element,c=e.sidePanelId,u=e.styles,p=e.isMobile,h=e.children,m=(0,o.Z)(e,g),v=f.useRef(null),y=(0,d.qq)(v,t),b=window.innerHeight,x=f.useState(0),w=(0,r.Z)(x,2),k=w[0],S=w[1];return f.useEffect((function(){var e,t=null===v||void 0===v||null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect();S((null===t||void 0===t?void 0:t.y)||0)}),[]),f.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(m)),{},{position:"absolute",role:"dialog",as:p?l.ModalDialogPrimitiveContent:"div","aria-label":n,top:0,right:0,width:["100%","auto","auto"],height:"100%",element:a,id:c}),f.createElement(P,{ref:y,element:"ANIMATED_".concat(a,"_WRAPPER"),style:u,height:["100%",b-k,b-k],top:[0,k,k],position:"relative",overflow:"hidden"},f.createElement(s.Box,{display:"flex",flexDirection:"column",width:["100%","388px","388px"],position:"absolute",top:0,left:[0,12,12],bottom:0,borderBottomLeftRadius:["borderRadius0","borderRadius70","borderRadius70"],borderBottomRightRadius:["borderRadius0","borderRadius70","borderRadius70"],borderTopRightRadius:["borderRadius60","borderRadius70","borderRadius70"],borderTopLeftRadius:["borderRadius60","borderRadius70","borderRadius70"],boxShadow:"shadowElevation05",backgroundColor:"colorBackgroundBody",marginTop:["space100","space40","space40"],marginBottom:["space0","space40","space40"],paddingBottom:"space70",element:"INNER_".concat(a)},h)))}));A.displayName="SidePanelContents";var M=f.forwardRef((function(e,t){var n=e.element,s=void 0===n?"SIDE_PANEL":n,l=e.label,c=e.children,p=(0,o.Z)(e,y),h=(0,u.Fg)(),m=f.useContext(I),v=m.sidePanelId,g=m.isOpen,b=f.useState(!0),x=(0,r.Z)(b,2),w=x[0],k=x[1];f.useEffect((function(){w&&k(!1)}),[w]);var S={from:w?void 0:{opacity:0,width:"0px"},enter:{opacity:1,width:"400px"},leave:{opacity:0,width:"0px"},config:R},_={from:w?void 0:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0%)"},leave:{opacity:0,transform:"translateY(100%)"},config:R},E=(0,d.iP)().breakpointIndex,C=(0,a.Yz)(g,S),T=(0,a.Yz)(g,_),O=f.useMemo((function(){return 0===E?T:C}),[E,C,T]);return f.createElement(f.Fragment,null,O((function(e,n){return n&&(0===E?f.createElement(B,{theme:h,"data-paste-element":"".concat(s,"_OVERLAY"),style:{opacity:e.opacity}},f.createElement(A,(0,i.Z)((0,i.Z)({},p),{},{element:s,sidePanelId:v,styles:e,label:l,isMobile:!0,ref:t}),c)):f.createElement(A,(0,i.Z)((0,i.Z)({},p),{},{element:s,sidePanelId:v,styles:e,label:l,isMobile:!1,ref:t}),c))})))}));M.displayName="SidePanel";var N=f.forwardRef((function(e,t){return f.createElement(s.Box,(0,i.Z)((0,i.Z)({},e),{},{as:"div",position:"relative",ref:t}))}));N.displayName="StyledContentWrapper";var D=(0,a.q)(N),L=f.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDE_PANEL_PUSH_CONTENT_WRAPPER":n,l=e.children,c=(0,o.Z)(e,b),p=f.useContext(I).isOpen,h=(0,u.Fg)(),m=(0,d.iP)().breakpointIndex,v=(0,a.q_)({marginRight:p?h.sizes.size40:"0rem",config:{mass:.3,tension:288,friction:20}});return f.createElement(D,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(c)),{},{ref:t,style:0===m?void 0:v,marginRight:["space0",h.sizes.size40],minWidth:"size0",element:r}),l)}));L.displayName="SidePanelPushContentWrapper";var j=function(e){var t=e.setIsOpen,n=e.i18nCloseSidePanelTitle,r=e.sidePanelId,o=e.isOpen,i=e.element,a=f.useRef(null);return f.useEffect((function(){var e;null===(e=a.current)||void 0===e||e.focus({preventScroll:!0})}),[]),f.createElement(p.Button,{variant:"secondary_icon",size:"reset",onClick:function(){t(!1)},ref:a,"aria-controls":r,"aria-expanded":o,"aria-label":n,element:i},f.createElement(h.T,{decorative:!1,title:n,size:"sizeIcon50"}))};j.displayName="SidePanelCloseButton";var z=f.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDE_PANEL_HEADER":n,a=e.children,l=(0,o.Z)(e,x),c=f.useContext(I),u=c.sidePanelId,d=c.isOpen,p=c.setIsOpen,h=c.i18nCloseSidePanelTitle;return f.createElement(s.Box,(0,i.Z)((0,i.Z)({width:"100%",padding:"space70",display:"flex",columnGap:"space30",alignItems:"flex-start",justifyContent:"space-between"},(0,s.safelySpreadBoxProps)(l)),{},{ref:t,element:r}),a,f.createElement(j,{setIsOpen:p,i18nCloseSidePanelTitle:h,sidePanelId:u,isOpen:d,element:"".concat(r,"_CLOSE_BUTTON")}))}));z.displayName="SidePanelHeader";var W=f.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDE_PANEL_HEADER_ACTIONS":n,a=e.children,l=(0,o.Z)(e,w);return f.createElement(s.Box,(0,i.Z)((0,i.Z)({flexGrow:1,display:"flex",justifyContent:"flex-end",columnGap:"space20"},(0,s.safelySpreadBoxProps)(l)),{},{ref:t,element:r}),a)}));W.displayName="SidePanelHeaderActions";var Z=c.iK.div((function(e){var t=e.theme.backgroundColors,n=t.colorBackgroundBody,r=t.colorBackgroundElevation,o=t.colorBackgroundStrongElevation;return(0,c.iv)({"::-webkit-scrollbar":{width:"6px"},"::-webkit-scrollbar-track":{marginTop:"8px",marginBottom:"8px",background:n,borderRadius:"10px"},"::-webkit-scrollbar-thumb":{background:r,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:o}})})),F=f.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDE_PANEL_BODY":n,a=e.children,l=(0,o.Z)(e,k);return f.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(l)),{},{as:Z,width:"100%",height:"100%",paddingLeft:"space70",paddingRight:"18px",display:"flex",ref:t,element:r,overflowY:"scroll"}),a)}));F.displayName="SidePanelBody";var H=f.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDE_PANEL_CONTAINER":n,a=e.children,l=e.sidePanelId,c=e.isOpen,u=e.setIsOpen,d=e.i18nCloseSidePanelTitle,p=void 0===d?"close the side panel":d,h=e.i18nOpenSidePanelTitle,v=void 0===h?"open the side panel":h,g=(0,o.Z)(e,S);return void 0===l&&(l=(0,m.Dt)()),f.createElement(I.Provider,{value:{sidePanelId:l,isOpen:c,setIsOpen:u,i18nCloseSidePanelTitle:p,i18nOpenSidePanelTitle:v}},f.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(g)),{},{position:"relative",ref:t,element:r}),a))}));H.displayName="SidePanelContainer";var U=f.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"SIDE_PANEL_BUTTON":r,s=(0,o.Z)(e,_),l=f.useContext(I),c=l.i18nCloseSidePanelTitle,u=l.i18nOpenSidePanelTitle,d=l.isOpen,h=l.setIsOpen,m=l.sidePanelId;return f.createElement(p.Button,(0,i.Z)((0,i.Z)({element:a,"aria-label":d?c:u,onClick:function(){return h(!d)},"aria-expanded":d,"aria-controls":m},s),{},{ref:t}),n)}));U.displayName="SidePanelButton";var $=f.forwardRef((function(e,t){var n=e.children,r=(0,o.Z)(e,E);return f.createElement(v.Badge,(0,i.Z)((0,i.Z)({},r),{},{as:"button",ref:t}),n)}));$.displayName="ButtonBadge";var G=f.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"SIDE_PANEL_BADGE":r,s=(0,o.Z)(e,C),l=f.useContext(I),c=l.i18nCloseSidePanelTitle,u=l.i18nOpenSidePanelTitle,d=l.isOpen,p=l.setIsOpen,h=l.sidePanelId;return f.createElement($,(0,i.Z)((0,i.Z)({},s),{},{as:"button",element:a,"aria-label":d?c:u,onClick:function(){return p(!d)},"aria-expanded":d,"aria-controls":h,ref:t}),n)}));G.displayName="SidePanelBadgeButton";var q=f.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDE_PANEL_FOOTER":n,a=e.variant,l=void 0===a?"default":a,c=e.children,u=e.justifyContent,d=void 0===u?"flex-start":u,p=(0,o.Z)(e,T);return f.createElement(s.Box,(0,i.Z)((0,i.Z)({width:"100%",paddingX:"chat"===l?"space50":"space70",paddingBottom:"space50",paddingTop:"chat"===l?"space0":"space50",boxShadow:"chat"===l?"none":"shadowElevationTop05",marginBottom:"spaceNegative70",zIndex:"zIndex20",display:"flex",columnGap:"space40",rowGap:"space40",justifyContent:d,flexWrap:"wrap"},(0,s.safelySpreadBoxProps)(p)),{},{ref:t,element:r}),c)}));q.displayName="SidePanelFooter";var K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.open,n=void 0!==t&&t,o=f.useState(n),i=(0,r.Z)(o,2),a=i[0],s=i[1];return{isOpen:a,setIsOpen:s}}},6842:function(e,t,n){"use strict";n.r(t),n.d(t,{Sidebar:function(){return $},SidebarBetaBadge:function(){return Se},SidebarBody:function(){return G},SidebarCollapseButton:function(){return te},SidebarContext:function(){return z},SidebarFooter:function(){return ee},SidebarHeader:function(){return X},SidebarHeaderIconButton:function(){return Q},SidebarHeaderLabel:function(){return J},SidebarNavigation:function(){return oe},SidebarNavigationDisclosure:function(){return ae},SidebarNavigationDisclosureContent:function(){return ye},SidebarNavigationDisclosureHeading:function(){return ge},SidebarNavigationDisclosureHeadingWrapper:function(){return se},SidebarNavigationItem:function(){return be},SidebarNavigationSeparator:function(){return xe},SidebarOverlayContentWrapper:function(){return Y},SidebarPushContentWrapper:function(){return V},useSidebarNavigationDisclosureState:function(){return b.bV}});var r=n(885),o=n(4925),i=n(1413),a=n(3512),s=n(1923),l=n(2714),c=n(9628),u=n(3217),d=n(2791),f=n(1076),p=n(9741),h=n(8015),m=d.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,u=e.decorative,f="ChevronDoubleLeftIcon-".concat((0,c.Dt)());if(!u&&null==l)throw new Error("[ChevronDoubleLeftIcon]: Missing a title for non-decorative icon.");return d.createElement(h.a,{as:n,display:r,element:i,size:a,color:s,ref:t},d.createElement("svg",{role:"img","aria-hidden":u,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":f},l?d.createElement("title",{id:f},l):null,d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.749 5.244c.309.3.333.773.071 1.1l-.071.079L6.07 10l3.679 3.577c.309.3.333.774.071 1.1l-.071.079a.876.876 0 01-1.131.07l-.081-.07-4.286-4.167a.816.816 0 01-.071-1.1l.071-.078 4.286-4.167a.875.875 0 011.212 0zm6 0c.309.3.333.773.071 1.1l-.071.079L12.07 10l3.679 3.577c.309.3.333.774.071 1.1l-.071.079a.876.876 0 01-1.131.07l-.081-.07-4.286-4.167a.816.816 0 01-.071-1.1l.071-.078 4.286-4.167a.875.875 0 011.212 0z"})))}));m.displayName="ChevronDoubleLeftIcon";var v=d.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,s=e.color,l=e.title,u=e.decorative,f="ChevronDoubleRightIcon-".concat((0,c.Dt)());if(!u&&null==l)throw new Error("[ChevronDoubleRightIcon]: Missing a title for non-decorative icon.");return d.createElement(h.a,{as:n,display:r,element:i,size:a,color:s,ref:t},d.createElement("svg",{role:"img","aria-hidden":u,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":f},l?d.createElement("title",{id:f},l):null,d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.382 5.175l.081.07L15.75 9.41c.309.3.333.773.071 1.1l-.071.078-4.286 4.167a.875.875 0 01-1.212 0 .816.816 0 01-.071-1.1l.071-.079L13.93 10l-3.679-3.577a.816.816 0 01-.071-1.1l.071-.079a.876.876 0 011.131-.07zm-6 0l.081.07L9.75 9.41c.309.3.333.773.071 1.1l-.071.078-4.286 4.167a.875.875 0 01-1.212 0 .816.816 0 01-.071-1.1l.071-.079L7.93 10 4.251 6.423a.816.816 0 01-.071-1.1l.071-.079a.876.876 0 011.131-.07z"})))}));v.displayName="ChevronDoubleRightIcon";var g=n(9643),y=n(7666),b=n(4086),x=n(7087),w=n(6431),k=["collapsed","variant","element","mainContentSkipLinkID","sidebarNavigationSkipLinkID","topbarSkipLinkID","i18nMainContentSkipLinkText","i18nNavigationSkipLinkText","i18nTopbarSkipLinkText","children"],S=["element","children"],_=["collapsed","variant","element","children"],E=["variant","element","children"],C=["element","children"],T=["element","children"],I=["element"],B=["element"],O=["i18nExpandLabel","i18nCollapseLabel","element"],P=["element","hideItemsOnCollapse","hierarchical","children"],R=["children","element","state"],A=["element"],M=["children","element","selected","icon"],N=["children","element"],D=["element","selected","children","icon"],L=["element"],j=["children","as","element","onClick"],z=d.createContext({}),W=function(e){var t=e.element,n=e.children;return d.createElement(s.Box,{element:t,backgroundColor:"colorBackgroundBody",borderRadius:"borderRadius20",boxShadow:"shadowElevation10",left:10,paddingX:"space60",paddingY:"space30",position:"fixed",top:10,transform:"translateY(-150%)",transition:"transform 0.1s",zIndex:"zIndex90",display:"flex",columnGap:"space60",_focusWithin:{transform:"translateY(0%)"}},n)};W.displayName="SkipLinkContainer";var Z=function(e){var t=e.element,n=void 0===t?"SIDEBAR_SKIPLINKS":t,r=e.mainContentSkipLinkID,o=e.sidebarNavigationSkipLinkID,i=e.topbarSkipLinkID,a=e.i18nMainContentSkipLinkText,s=void 0===a?"Skip to content":a,l=e.i18nNavigationSkipLinkText,c=void 0===l?"Skip to navigation":l,u=e.i18nTopbarSkipLinkText,p=void 0===u?"Skip to topbar":u;return d.createElement(W,{element:n},d.createElement(f.Anchor,{element:"".concat(n,"_LINK"),href:"#".concat(r)},s),d.createElement(f.Anchor,{element:"".concat(n,"_LINK"),href:"#".concat(o)},c),d.createElement(f.Anchor,{element:"".concat(n,"_LINK"),href:"#".concat(i)},p))};Z.displayName="SkipLinks";var F=d.forwardRef((function(e,t){return d.createElement(s.Box,(0,i.Z)((0,i.Z)({},e),{},{as:"aside",overflow:"visible",display:"flex",flexDirection:"column",ref:t,boxShadow:"shadowElevationRightInverse05",backgroundColor:"colorBackgroundInverse",zIndex:"zIndex50",position:"fixed",top:0,left:0,bottom:0}))}));F.displayName="StyledSidebar";var H=(0,a.q)(F),U={mass:.3,tension:288,friction:20},$=d.forwardRef((function(e,t){var n,r=e.collapsed,f=void 0!==r&&r,p=e.variant,h=void 0===p?"default":p,m=e.element,v=void 0===m?"SIDEBAR":m,g=e.mainContentSkipLinkID,y=e.sidebarNavigationSkipLinkID,b=e.topbarSkipLinkID,x=e.i18nMainContentSkipLinkText,w=e.i18nNavigationSkipLinkText,S=e.i18nTopbarSkipLinkText,_=e.children,E=(0,o.Z)(e,k),C=(0,c.Dt)(),T=(0,u.iP)().breakpointIndex,I=(0,l.Fg)(),B="compact"===h;n=0===T?function(e){return{opacity:e?0:1,width:"100%",transform:e?"translateX(-100%)":"translateX(0%)",config:U}}(f):B?function(e,t,n){return{opacity:1,width:e?n:t,transform:"translateX(0%)",config:U}}(f,I.sizes.sizeSidebar,I.sizes.sizeSidebarCompact):function(e,t){return{opacity:e?0:1,width:t,transform:e?"translateX(-100%)":"translateX(0%)",config:U}}(f,I.sizes.sizeSidebar);var O=(0,a.q_)(n);return d.createElement(z.Provider,{value:{collapsed:f,variant:h,sidebarId:C,sidebarNavigationSkipLinkID:y}},d.createElement(Z,{element:"".concat(v,"_SKIPLINKS"),mainContentSkipLinkID:g,sidebarNavigationSkipLinkID:y,topbarSkipLinkID:b,i18nMainContentSkipLinkText:x,i18nNavigationSkipLinkText:w,i18nTopbarSkipLinkText:S}),d.createElement(H,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(E)),{},{ref:t,element:v,width:["100%",B&&f?"sizeSidebarCompact":"sizeSidebar"],style:O,id:C}),_))}));$.displayName="Sidebar";var G=d.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDEBAR_BODY":n,a=e.children,l=(0,o.Z)(e,S);return d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(l)),{},{as:"div",element:r,ref:t,maxHeight:"100%",overflow:"hidden",flexGrow:1}),a)}));G.displayName="SidebarBody";var q=d.forwardRef((function(e,t){return d.createElement(s.Box,(0,i.Z)((0,i.Z)({},e),{},{as:"div",position:"relative",ref:t}))}));q.displayName="StyledContentWrapper";var K=(0,a.q)(q),V=d.forwardRef((function(e,t){var n=e.collapsed,r=void 0!==n&&n,c=e.variant,f=void 0===c?"default":c,p=e.element,h=void 0===p?"SIDEBAR_PUSH_CONTENT_WRAPPER":p,m=e.children,v=(0,o.Z)(e,_),g=(0,l.Fg)(),y="compact"===f,b=(0,u.iP)().breakpointIndex,x=(0,a.q_)({marginLeft:r?y?g.sizes.sizeSidebarCompact:"0rem":g.sizes.sizeSidebar,config:{mass:.3,tension:288,friction:20}});return d.createElement(K,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(v)),{},{ref:t,element:h,style:void 0===b||0===b?void 0:x,marginLeft:["space0",g.sizes.sizeSidebar]}),m)}));V.displayName="SidebarPushContentWrapper";var Y=d.forwardRef((function(e,t){var n=e.variant,r=void 0===n?"default":n,a=e.element,l=void 0===a?"SIDEBAR_OVERLAY_CONTENT_WRAPPER":a,c=e.children,f=(0,o.Z)(e,E);return 0!==(0,u.iP)().breakpointIndex&&"compact"===r?d.createElement(s.Box,{display:"flex",justifyContent:"flex-start"},d.createElement(s.Box,{role:"presentation",width:"sizeSidebarCompact",height:"100%",minHeight:"1px",flexShrink:0}),d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(f)),{},{element:l,as:"div",ref:t,width:"100%"}),c)):d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(f)),{},{element:l,as:"div",ref:t}),c)}));Y.displayName="SidebarOverlayContentWrapper";var X=d.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDEBAR_HEADER":n,a=e.children,l=(0,o.Z)(e,C);return d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(l)),{},{element:r,ref:t,paddingX:"space60",minHeight:"sizeTopbar",boxShadow:"shadowElevationBottomInverse05",zIndex:"zIndex40",display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,columnGap:"space50",overflow:"hidden"}),a)}));X.displayName="SidebarHeader";var J=d.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDEBAR_HEADER_LABEL":n,a=e.children,l=(0,o.Z)(e,T),c=d.useContext(z).collapsed;return d.createElement(s.Box,(0,i.Z)((0,i.Z)({ref:t},(0,s.safelySpreadBoxProps)(l)),{},{opacity:c?"0":"1",element:r,fontSize:"fontSize30",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight30",letterSpacing:"-.02em",color:"colorTextInverse",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",margin:"space0"}),a)}));J.displayName="SidebarHeaderLabel";var Q=d.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDEBAR_HEADER_ICON_BUTTON":n,a=(0,o.Z)(e,I);return d.createElement(p.Button,(0,i.Z)((0,i.Z)({},a),{},{size:"icon",variant:"inverse",element:r,ref:t}))}));Q.displayName="SidebarHeaderIconButton";var ee=d.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDEBAR_FOOTER":n,a=(0,o.Z)(e,B);return d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(a)),{},{flexShrink:0,position:"relative",padding:"space60",transition:"padding-right 100ms ease",ref:t,element:r}))}));ee.displayName="SidebarFooter";var te=d.forwardRef((function(e,t){var n=e.i18nExpandLabel,r=e.i18nCollapseLabel,a=e.element,l=void 0===a?"SIDEBAR_COLLAPSE_BUTTON":a,c=(0,o.Z)(e,O),u=d.useContext(z),f=u.collapsed,h=u.sidebarId;return d.createElement(s.Box,{display:"flex",justifyContent:"flex-end"},d.createElement(p.Button,(0,i.Z)((0,i.Z)({ref:t,size:"icon",variant:"inverse",element:l},c),{},{tabIndex:0,"aria-expanded":!f,"aria-controls":h}),f?d.createElement(d.Fragment,null,d.createElement(v,{size:"sizeIcon20",decorative:!0,element:"".concat(l,"_EXPAND")}),d.createElement(g.ScreenReaderOnly,null,n)):d.createElement(d.Fragment,null,d.createElement(m,{size:"sizeIcon20",decorative:!0,element:"".concat(l,"_COLLAPSE")}),d.createElement(g.ScreenReaderOnly,null,r))))}));te.displayName="SidebarCollapseButton";var ne=d.createContext({}),re=y.iK.nav((function(e){var t=e.theme.backgroundColors,n=t.colorBackgroundInverse,r=t.colorBackgroundInverseStrongerElevation,o=t.colorBackgroundInverseStrongElevation;return(0,y.iv)({overflowScrolling:"touch",background:"linear-gradient(".concat(n," 33%, rgba(20,28,44, 0)),\n    linear-gradient(rgba(20,28,44, 0), ").concat(n," 66%) 0 100%,\n    radial-gradient(farthest-side at 50% 100%, rgba(57, 71, 98, 0.5), rgba(0,0,0,0)) 0 100%"),backgroundRepeat:"no-repeat",backgroundSize:"100% 15px, 100% 15px, 100% 5px, 100% 5px",backgroundAttachment:"local, local, scroll, scroll","::-webkit-scrollbar":{width:"6px"},"::-webkit-scrollbar-track":{marginTop:"8px",background:n},"::-webkit-scrollbar-thumb":{background:o,borderRadius:"10px"},"::-webkit-scrollbar-thumb:hover":{background:r}})})),oe=d.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDEBAR_NAVIGATION":n,a=e.hideItemsOnCollapse,l=void 0!==a&&a,c=e.hierarchical,u=void 0!==c&&c,f=e.children,p=(0,o.Z)(e,P),h=d.useContext(z),m=h.collapsed,v=h.sidebarNavigationSkipLinkID;return d.createElement(ne.Provider,{value:{hideItemsOnCollapse:l,hierarchical:u}},d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(p)),{},{as:re,id:v,"aria-label":p["aria-label"],element:r,ref:t,transition:"opacity 150ms ease",maxHeight:"100%",overflowY:"auto",overflowX:"hidden",paddingY:"space50",paddingLeft:"space60",paddingRight:m?"space40":"space60",flexGrow:1}),f))}));oe.displayName="SidebarNavigation";var ie=d.createContext({}),ae=d.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"SIDEBAR_NAVIGATION_DISCLOSURE":r,l=e.state,c=(0,o.Z)(e,R),u=d.useContext(z).collapsed,f=d.useContext(ie).disclosure,p={disclosure:l||(0,b.bV)((0,i.Z)({animated:!1},c)),nested:null!=f};return d.createElement(ie.Provider,{value:p},d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(c)),{},{element:a,ref:t,display:u?"none":"block",marginBottom:"space30"}),n))}));ae.displayName="SidebarNavigationDisclosure";var se=d.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDEBAR_NAVIGATION_DISCLOSURE_HEADING_WRAPPER":n,a=(0,o.Z)(e,A);return d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(a)),{},{element:r,ref:t,display:"flex",alignItems:"center",justifyContent:"space-between",columnGap:"space30"}))}));se.displayName="SidebarNavigationDisclosureHeadingWrapper";var le={fontStyle:"normal",fontWeight:"fontWeightNormal",fontSize:"fontSize30",lineHeight:"lineHeight20",color:"colorTextInverseWeak",transition:"all 120ms ease",borderRadius:"borderRadius20",cursor:"pointer",display:"flex",flexGrow:1,columnGap:"space20",outline:"none",paddingY:"space30",position:"relative",textDecoration:"none",_focus:{boxShadow:"shadowFocusInverseInset"}},ce=(0,i.Z)((0,i.Z)({},le),{},{paddingY:"space20",fontSize:"fontSize20"}),ue={fontWeight:"fontWeightSemibold",color:"colorTextInverse"},de=(0,i.Z)((0,i.Z)({},le),{},{background:"none",border:"none",outline:"none",overflow:"hidden",paddingLeft:"space30",paddingRight:"space30",marginBottom:"space30",columnGap:"space30",_hover:{textDecoration:"underline"}}),fe={paddingLeft:"space70"},pe={paddingY:"space20",flexGrow:1,width:"100%",fontSize:"fontSize20",marginBottom:"space20",paddingLeft:"space80"},he={color:"colorTextIconInverse",_hover:{background:"none",color:"colorTextInverse"}},me=(0,i.Z)((0,i.Z)({},ue),{},{backgroundColor:"colorBackgroundInverseStrong",color:"colorTextInverse"}),ve=d.forwardRef((function(e,t){var n=e.children,a=e.element,c=void 0===a?"SIDEBAR_NAVIGATION_DISCLOSURE_HEADING":a,u=e.selected,f=e.icon,p=(0,o.Z)(e,M),h=d.useContext(z),m=h.collapsed,v=h.variant,g=d.useState(!1),y=(0,r.Z)(g,2),b=y[0],w=y[1],k=d.useContext(ie).nested,S=p["aria-expanded"],_=(0,l.Fg)(),E="compact"===v,C=d.useState(!E||!S),T=(0,r.Z)(C,2),I=T[0],B=T[1],O=d.useRef(0);d.useEffect((function(){clearTimeout(O.current),E&&(O.current=setTimeout((function(){B(!m)}),120))}),[m,E]);var P=function(e){var t=e.nested,n=e.selected,r={};return r=t?ce:le,n&&(r=(0,i.Z)((0,i.Z)({},r),ue)),r}({nested:k,selected:u}),R=function(e){var t=e.icon,n=e.selected;return d.useMemo((function(){return t?t&&d.isValidElement(t)&&!n?d.cloneElement(t,{color:"colorTextIconInverse"}):t:null}),[t,n])}({icon:f,selected:u});return d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(p)),{},{ref:t,element:c,onMouseEnter:function(){return w(!0)},onMouseLeave:function(){return w(!1)}},P),d.createElement(s.Box,{as:"span",element:"".concat(c,"_EXPAND_ICON"),display:"flex",color:"colorTextIconInverse",height:"sizeIcon20",width:"sizeIcon20",transition:"transform 150ms ease",transform:"\n          ".concat(b?"translateX(".concat(_.space.space10,")"):"translateX(0)","\n          ").concat(S?"rotate(90deg)":"rotate(0deg)")},d.createElement(x.i,{color:"inherit",decorative:!0,size:"sizeIcon20"})),R,d.createElement(s.Box,{as:"span",display:"block",marginLeft:"space20",transition:"all 120ms ease",float:I?"none":"left",opacity:I?1:0,whiteSpace:I?"normal":"nowrap"},m?null:n))}));ve.displayName="StyledDisclosureHeading";var ge=d.forwardRef((function(e,t){var n=d.useContext(ie).disclosure;return d.createElement(b.pJ,(0,i.Z)((0,i.Z)((0,i.Z)({},n),{},{ref:t},e),{},{as:ve}))}));ge.displayName="SidebarNavigationDisclosureHeading";var ye=d.forwardRef((function(e,t){var n=e.children,r=e.element,a=void 0===r?"SIDEBAR_NAVIGATION_DISCLOSURE_CONTENT":r,l=(0,o.Z)(e,N),c=d.useContext(ie).disclosure;return d.createElement(b.k_,(0,i.Z)((0,i.Z)((0,i.Z)({},c),(0,s.safelySpreadBoxProps)(l)),{},{as:s.Box,element:a,paddingLeft:"space70",color:"colorTextInverseWeak",marginTop:"space20",ref:t}),n)}));ye.displayName="SidebarNavigationDisclosureContent";var be=d.forwardRef((function(e,t){var n=e.element,a=void 0===n?"SIDEBAR_NAVIGATION_ITEM":n,l=e.selected,c=e.children,u=e.icon,p=(0,o.Z)(e,D),h=d.useContext(z),m=h.collapsed,v=h.variant,g=d.useContext(ie).disclosure,y=d.useContext(ne),b=y.hideItemsOnCollapse,x=y.hierarchical,w="compact"===v,k=d.useState(!w||!m),S=(0,r.Z)(k,2),_=S[0],E=S[1],C=d.useRef(0);d.useEffect((function(){clearTimeout(C.current),w&&(C.current=setTimeout((function(){E(!m)}),120))}),[m,w]);var T=null!=g,I=d.useMemo((function(){return(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},de),x&&fe),T&&pe),m&&he),l&&me),{},{display:m&&b?"none":"flex",width:m?"36px":"100%"})}),[T,l,m,b,x]);return d.createElement(s.Box,(0,i.Z)((0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(p)),p.href?(0,f.secureExternalLink)(p.href):{}),{},{ref:t,element:a,as:"a","aria-current":l?"page":void 0},I),u&&d.createElement(s.Box,{as:"span",color:l?"colorTextInverse":"colorTextIconInverse"},u),d.createElement(s.Box,{as:"span",display:"flex",alignItems:"center",justifyContent:"space-between",columnGap:"space20",transition:"all 120ms ease",flexGrow:1,float:_?"none":"left",opacity:_?1:0,whiteSpace:_?"normal":"nowrap"},m?null:c))}));be.displayName="SidebarNavigationItem";var xe=d.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SIDEBAR_NAVIGATION_SEPARATOR":n,a=(0,o.Z)(e,L),l=d.useContext(z).collapsed;return d.createElement(s.Box,(0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(a)),{},{display:l?"none":"block","aria-orientation":"horizontal",element:r,marginY:"space50",as:"hr",borderWidth:"borderWidth0",borderColor:"colorBorderInverseWeaker",borderStyle:"solid",borderBottomWidth:"borderWidth10",ref:t}))}));xe.displayName="SidebarNavigationSeparator";var we=(0,i.Z)((0,i.Z)({},w.badgeBaseStyles),{},{paddingX:"space20",paddingY:"space10",boxShadow:"shadowBorderInverseNewWeaker",backgroundColor:"colorBackgroundInverseStrong",color:"colorTextInverseNew"}),ke=(0,i.Z)((0,i.Z)({},we),{},{boxShadow:"shadowBorderBottomInverseNewWeaker",cursor:"pointer",_hover:{top:"1px",boxShadow:"none"},_focus:{top:"1px",boxShadow:"shadowFocusInverse"}}),Se=d.forwardRef((function(e,t){var n=e.children,r=e.as,a=e.element,l=void 0===a?"SIDEBAR_BETA_BADGE":a,c=e.onClick,u=(0,o.Z)(e,j),f=(0,w.useResizeChildIcons)(n),p="button"===r?ke:we,h="button"===r?c:void 0;return d.createElement(s.Box,(0,i.Z)((0,i.Z)((0,i.Z)({},(0,s.safelySpreadBoxProps)(u)),p),{},{as:r,ref:t,element:l,onClick:h}),f)}));Se.displayName="SidebarBetaBadge"},7887:function(e,t,n){"use strict";n.r(t),n.d(t,{SkeletonLoader:function(){return h}});var r,o,i=n(1413),a=n(4925),s=n(168),l=n(1923),c=n(7666),u=n(2791),d=["borderBottomLeftRadius","borderBottomRightRadius","borderRadius","borderTopLeftRadius","borderTopRightRadius","element","display","height","maxHeight","maxWidth","minHeight","minWidth","size","width"],f=(0,c.F4)(r||(r=(0,s.Z)(["\n  0% {\n    transform: translateX(-100%) skew(155deg);\n  }\n  50%,\n  100% {\n    transform: translateX(100%) skew(155deg);\n  }\n"]))),p=c.iK.div(o||(o=(0,s.Z)(["\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  background: linear-gradient(\n    90deg,\n    transparent,\n    "," 40%,\n    "," 60%,\n    transparent\n);\n  transform: translateX(-100%) skew(155deg);\n  animation-timing-function: cubic-bezier(0.06, 0.42, 0.57, 0.89);\n  animation-name: ",";\n  animation-duration: 4.5s;\n  animation-iteration-count: infinite;\n"])),(0,c.R)("backgroundColors.colorBackground"),(0,c.R)("backgroundColors.colorBackground"),f),h=u.forwardRef((function(e,t){var n=e.borderBottomLeftRadius,r=e.borderBottomRightRadius,o=e.borderRadius,s=void 0===o?"borderRadius20":o,c=e.borderTopLeftRadius,f=e.borderTopRightRadius,h=e.element,m=void 0===h?"SKELETON_LOADER":h,v=e.display,g=e.height,y=void 0===g?"sizeIcon20":g,b=e.maxHeight,x=e.maxWidth,w=e.minHeight,k=e.minWidth,S=e.size,_=void 0===S?null:S,E=e.width,C=void 0===E?null:E,T=(0,a.Z)(e,d);return u.createElement(l.Box,(0,i.Z)((0,i.Z)({},(0,l.safelySpreadBoxProps)(T)),{},{"aria-busy":"true",backgroundColor:"colorBackgroundStrong",borderBottomLeftRadius:n,borderBottomRightRadius:r,borderRadius:s,borderTopLeftRadius:c,borderTopRightRadius:f,display:v,element:m,height:y,maxHeight:b,maxWidth:x,minHeight:w,minWidth:k,overflow:"hidden",pointerEvents:"none",position:"relative",userSelect:"none",size:_,width:C,ref:t}),u.createElement(p,null))}));h.displayName="SkeletonLoader"},9116:function(e,t,n){"use strict";n.r(t),n.d(t,{Slider:function(){return g}});var r=n(885),o=n(1413),i=n(4925),a=n(1923),s=n(875),l=n(9643),c=n(3217),u=n(2791),d=["element","left"],f=["element","fillPercent","children"],p=function(e){return e.disabled?"colorBackgroundStrong":e.error?e.hovered?"colorBackgroundErrorStrong":"colorBackgroundError":e.dragging?"colorBackgroundPrimary":e.focused?"colorBackgroundPrimaryStronger":e.hovered?"colorBackgroundPrimary":"colorBackgroundPrimaryStronger"},h=function(e){var t=e.element,n=void 0===t?"SLIDER_THUMB":t,r=e.left,s=void 0===r?"0%":r,l=(0,i.Z)(e,d);return u.createElement(a.Box,(0,o.Z)((0,o.Z)({},l),{},{backgroundColor:p(l),boxShadow:l.dragging||l.focused?"shadowFocus":"none",borderRadius:"borderRadiusCircle",transition:"background-color 150ms ease, box-shadow 150ms ease",width:"20px",height:"20px",marginTop:"space10",cursor:l.disabled?"not-allowed":"pointer",left:s,element:n}))};h.displayName="SliderThumb";var m=function(e){var t=e.element,n=void 0===t?"SLIDER_TRACK":t,r=e.fillPercent,s=void 0===r?"0%":r,l=e.children,c=(0,i.Z)(e,f);return u.createElement(a.Box,(0,o.Z)((0,o.Z)({},c),{},{position:"relative",height:"4px",width:"100%",element:n}),u.createElement(a.Box,{element:"".concat(n,"_BACKGROUND"),borderRadius:"borderRadius20",position:"absolute",top:0,left:0,backgroundColor:"colorBackgroundStrong",height:"100%",width:"100%"}),u.createElement(a.Box,{element:"".concat(n,"_FILL"),borderRadius:"borderRadius20",position:"absolute",top:0,left:0,backgroundColor:p(c),height:"100%",width:s,transition:"background-color 150ms ease"}),l)};m.displayName="SliderTrack";var v=new Intl.NumberFormat("en-US"),g=u.forwardRef((function(e,t){var n,i,d=u.useRef(null),f=u.useRef(null),p=(0,c.qq)(d,t),g=u.useState(!1),y=(0,r.Z)(g,2),b=y[0],x=y[1],w=u.useState(!1),k=(0,r.Z)(w,2),S=k[0],_=k[1],E=e.element,C=void 0===E?"SLIDER":E,T=e.minValue,I=void 0===T?0:T,B=e.maxValue,O=void 0===B?100:B,P=e.hideRangeLabels,R=void 0!==P&&P,A=e.disabled,M=void 0!==A&&A,N=e.id,D=e.i18nMaxRangeLabel,L=void 0===D?"Maximum value:":D,j=e.i18nMinRangeLabel,z=void 0===j?"Minimum value:":j,W=(0,o.Z)((0,o.Z)({},e),{},{id:N,isDisabled:M,"aria-labelledby":N,numberFormatter:e.numberFormatter||v}),Z=(0,s.xu)(W),F=(0,s.oN)(W,Z,f).trackProps,H=(0,s.pS)({index:0,trackRef:f,inputRef:d},Z),U=H.thumbProps,$=H.inputProps,G=H.isDragging,q=u.useMemo((function(){return{disabled:M,error:e.hasError,hovered:b,focused:S,dragging:G}}),[M,e.hasError,b,S,G]),K=u.useCallback((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}),[d]);return u.createElement(a.Box,{element:C},u.createElement(a.Box,(0,o.Z)((0,o.Z)({},F),{},{element:"".concat(C,"_TRACK_CONTAINER"),ref:f,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},display:"flex",alignItems:"center",height:"20px",width:"100%",cursor:M?"not-allowed":"pointer",onClick:K}),u.createElement(m,(0,o.Z)((0,o.Z)({},q),{},{fillPercent:null===U||void 0===U||null===(n=U.style)||void 0===n?void 0:n.left,element:"".concat(C,"_TRACK"),onClick:K}),u.createElement(h,(0,o.Z)((0,o.Z)((0,o.Z)({},U),q),{},{element:"".concat(C,"_THUMB"),onClick:K}),u.createElement(l.ScreenReaderOnly,null,u.createElement("input",(0,o.Z)((0,o.Z)({ref:p},$),{},{"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],id:null===(i=$.id)||void 0===i?void 0:i.replace("-0",""),onFocus:function(){return _(!0)},onBlur:function(){return _(!1)}})))))),!R&&u.createElement(a.Box,{element:"".concat(C,"_RANGE_LABELS"),display:"flex",justifyContent:"space-between",columnGap:"space20",fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",color:"colorTextWeak",overflowWrap:"anywhere"},u.createElement(a.Box,{element:"".concat(C,"_RANGE_LABELS_MIN")},u.createElement(l.ScreenReaderOnly,null,z),W.numberFormatter.format(I)),u.createElement(a.Box,{element:"".concat(C,"_RANGE_LABELS_MAX"),textAlign:"end"},u.createElement(l.ScreenReaderOnly,null,L),W.numberFormatter.format(O))))}));g.displayName="Slider"},7295:function(e,t,n){"use strict";n.r(t),n.d(t,{Spinner:function(){return k}});var r,o,i,a=n(1413),s=n(885),l=n(168),c=n(8015),u=n(2714),d=n(9628),f=n(2791),p=n(7666),h={cx:50,cy:50,r:45},m=2*Math.PI*45,v=(0,p.F4)(r||(r=(0,l.Z)(["\n  0%,\n  15% {\n    stroke-dashoffset: ",";\n    transform: rotate(0);\n  }\n\n  50%,\n  75% {\n    stroke-dashoffset: ",";\n    transform: rotate(45deg);\n  }\n\n  100% {\n    stroke-dashoffset: ",";\n    transform: rotate(360deg);\n  }\n"])),.9999*m,.2*m,.9999*m),g=(0,p.F4)(o||(o=(0,l.Z)(["\n  0% {\n    transform: rotateZ(0deg);\n  }\n  100% {\n    transform: rotateZ(360deg);\n  }\n"]))),y=(0,p.F4)(i||(i=(0,l.Z)(["\n  0%,\n  75% {\n    stroke-dashoffset: 90%;\n  }\n\n  100% {\n    stroke-dashoffset: 90%;\n    transform: rotate(360deg);\n  }\n"]))),b=p.iK.circle({transformOrigin:"center",opacity:.25}),x=p.iK.circle((function(e){var t=e.show;return{transformOrigin:"center",animation:e.isSafari?"none":"1.5s ease-in-out infinite both ".concat(g),strokeDasharray:m,opacity:t?1:0}})),w=p.iK.svg((function(e){return{height:"100%",width:"100%",display:"block",animation:e.isSafari?"1s infinite linear ".concat(y):"4.25s linear infinite both ".concat(v)}})),k=f.forwardRef((function(e,t){var n=e.size,r=e.color,o=void 0===r?"currentColor":r,i=e.title,l=e.as,p=e.display,m=e.decorative,v=e.delay,g=void 0===v?250:v,y=e.element,k=void 0===y?"SPINNER":y,S="spinner-".concat((0,d.Dt)()),_=(0,u.Fg)().borderWidths.borderWidth40,E=f.useState(0===g),C=(0,s.Z)(E,2),T=C[0],I=C[1];if(!m&&null==i)throw new Error("[Spinner]: Missing a title for non-decorative icon.");f.useEffect((function(){if(0!==g){var e=setTimeout((function(){return I(!0)}),g);return function(){return clearTimeout(e)}}}),[g]);var B=f.useState(null),O=(0,s.Z)(B,2),P=O[0],R=O[1];return f.useEffect((function(){R(navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))}),[]),null==P?null:f.createElement(c.a,{as:l,element:k,display:p,size:n,color:o,"aria-hidden":m,ref:t},f.createElement(w,{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":S,isSafari:P},i?f.createElement("title",{id:S},i):null,f.createElement("g",{strokeWidth:_,stroke:"currentColor",strokeLinecap:"round",fill:"transparent"},f.createElement(b,(0,a.Z)({},h)),f.createElement(x,(0,a.Z)((0,a.Z)({show:T},h),{},{isSafari:P})))))}));k.displayName="Spinner"},1543:function(e,t,n){"use strict";n.r(t),n.d(t,{Stack:function(){return d}});var r=n(1413),o=n(885),i=n(4925),a=n(1923),s=n(9628),l=n(2791),c=["children","orientation","spacing","element"],u=function(e){return Array.isArray(e)?e.map((function(e){return"horizontal"===e?"flex":"block"})):"horizontal"===e?"flex":"block"},d=l.forwardRef((function(e,t){var n=e.children,d=e.orientation,f=e.spacing,p=e.element,h=void 0===p?"STACK":p,m=(0,i.Z)(e,c),v=l.useMemo((function(){var e=l.Children.toArray(n).filter((function(e){return l.isValidElement(e)||"string"==typeof e}));return[e.length,e]}),[n]),g=(0,o.Z)(v,2),y=g[0],b=g[1],x=l.useMemo((function(){return function(e){return{display:u(e),alignItems:"center",flexWrap:"wrap"}}(d)}),[d]),w=l.useMemo((function(){return function(e,t){var n={};if(Array.isArray(e)){var r=[],o=[];e.forEach((function(e,n){r[n]="horizontal"===e?t:"space0",o[n]="horizontal"===e?"space0":t})),n={marginRight:r,marginBottom:o}}return"horizontal"===e&&(n={marginRight:t}),"vertical"===e&&(n={marginBottom:t}),n}(d,f)}),[d,f]),k=(0,s.Hb)();return l.createElement(a.Box,(0,r.Z)((0,r.Z)((0,r.Z)({element:h},(0,a.safelySpreadBoxProps)(m)),x),{},{ref:t}),b.map((function(e,t){return l.createElement(a.Box,(0,r.Z)((0,r.Z)({element:"".concat(h,"_CHILD")},y!==t+1?w:null),{},{key:k("stack-".concat(t))}),e)})))}));d.displayName="Stack"},7742:function(e,t,n){"use strict";n.r(t),n.d(t,{StatusBadge:function(){return R},StatusMenu:function(){return M},StatusMenuBadge:function(){return A},StatusMenuItem:function(){return N},StatusMenuItemCheckbox:function(){return D},StatusMenuItemChild:function(){return j},StatusMenuItemRadio:function(){return L},StatusObject:function(){return T},useStatusMenuState:function(){return k.w8}});var r=n(4925),o=n(1413),i=n(6431),a=n(1923),s=n(2791),l=n(9628),c=n(8015),u=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ConnectivityAvailableIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ConnectivityAvailableIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("circle",{fill:"currentColor",cx:10,cy:10,r:4})))}));u.displayName="ConnectivityAvailableIcon";var d=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ConnectivityBusyIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ConnectivityBusyIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("circle",{fill:"currentColor",cx:10,cy:10,r:4})))}));d.displayName="ConnectivityBusyIcon";var f=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ConnectivityNeutralIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ConnectivityNeutralIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("circle",{fill:"currentColor",cx:10,cy:10,r:4})))}));f.displayName="ConnectivityNeutralIcon";var p=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ConnectivityOfflineIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ConnectivityOfflineIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10 8a2 2 0 100 4 2 2 0 000-4zm-4 2a4 4 0 118 0 4 4 0 01-8 0z"})))}));p.displayName="ConnectivityOfflineIcon";var h=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ConnectivityUnavailableIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ConnectivityUnavailableIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("circle",{fill:"currentColor",cx:10,cy:10,r:4})))}));h.displayName="ConnectivityUnavailableIcon";var m=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ProcessDisabledIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ProcessDisabledIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10 16.5a6.5 6.5 0 100-13 6.5 6.5 0 000 13zm-.707-8.621a1 1 0 00-1.414 1.414l2.828 2.828a1 1 0 001.414-1.414L9.293 7.88z"})))}));m.displayName="ProcessDisabledIcon";var v=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ProcessDraftIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ProcessDraftIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M9.994 3.5h.012a1 1 0 01-.002 2h-.008a1 1 0 01-.002-2zm1.886 1.234a1 1 0 011.366-.366l.01.005a1 1 0 11-1.003 1.73l-.007-.003a1 1 0 01-.366-1.366zm-3.76 0A1 1 0 017.754 6.1l-.007.004a1 1 0 11-1.003-1.73l.01-.006a1 1 0 011.366.366zm6.14 1.646a1 1 0 011.367.364l.005.01a1 1 0 11-1.732 1l-.004-.007a1 1 0 01.364-1.367zm-8.52 0a1 1 0 01.364 1.367l-.004.007a1 1 0 11-1.732-1l.005-.01A1 1 0 015.74 6.38zm9.76 2.615a1 1 0 011 1v.011a1 1 0 01-2-.002v-.008a1 1 0 011-1zm-11 0a1 1 0 011 1.001v.008a1 1 0 01-2 .002v-.012a1 1 0 011-.999zm10.766 2.885a1 1 0 01.366 1.366l-.005.01a1 1 0 01-1.73-1.003l.003-.007a1 1 0 011.366-.366zm-10.532 0a1 1 0 011.366.366l.004.007a1 1 0 11-1.73 1.003l-.006-.01a1 1 0 01.366-1.366zm1.646 2.38a1 1 0 011.367-.364l.007.004a1 1 0 01-1 1.732l-.01-.005a1 1 0 01-.364-1.367zm7.24 0a1 1 0 01-.364 1.367l-.01.005a1 1 0 11-1-1.732l.007-.004a1 1 0 011.367.364zM8.995 15.5a1 1 0 011.001-1h.008a1 1 0 01.002 2h-.012a1 1 0 01-.999-1z"})))}));v.displayName="ProcessDraftIcon";var g=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ProcessErrorIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ProcessErrorIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M11.091 3.452l5.457 5.457c.603.602.603 1.58 0 2.182l-5.457 5.457a1.543 1.543 0 01-2.182 0l-5.457-5.457a1.543 1.543 0 010-2.182l5.457-5.457a1.543 1.543 0 012.182 0z"})))}));g.displayName="ProcessErrorIcon";var y=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ProcessInProgressIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ProcessInProgressIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M10.002 3.5a6.502 6.502 0 100 13.003 6.502 6.502 0 000-13.003zm0 2a4.502 4.502 0 103.515 7.314l-2.952-2.362a1.5 1.5 0 01-.563-1.171V5.5z"})))}));y.displayName="ProcessInProgressIcon";var b=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ProcessNeutralIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ProcessNeutralIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M5.714 4h8.572C15.233 4 16 4.768 16 5.714v8.572c0 .947-.768 1.714-1.714 1.714H5.714A1.714 1.714 0 014 14.286V5.714C4 4.768 4.768 4 5.714 4z"})))}));b.displayName="ProcessNeutralIcon";var x=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ProcessSuccessIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ProcessSuccessIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("circle",{fill:"currentColor",cx:10,cy:10,r:6.5})))}));x.displayName="ProcessSuccessIcon";var w=s.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,a=e.size,u=e.color,d=e.title,f=e.decorative,p="ProcessWarningIcon-".concat((0,l.Dt)());if(!f&&null==d)throw new Error("[ProcessWarningIcon]: Missing a title for non-decorative icon.");return s.createElement(c.a,{as:n,display:r,element:i,size:a,color:u,ref:t},s.createElement("svg",{role:"img","aria-hidden":f,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":p},d?s.createElement("title",{id:p},d):null,s.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16.823 14.107l-5.671-9.47c-.51-.85-1.794-.85-2.303 0l-5.672 9.47C2.67 14.951 3.31 16 4.328 16h11.344c1.018 0 1.656-1.05 1.151-1.893z"})))}));w.displayName="ProcessWarningIcon";var k=n(4086),S=n(8912),_=["children","element","size","variant"],E=["children","variant","element"],C=["children","variant","element"],T={ProcessError:{badgeVariant:"default",icon:s.createElement(g,{color:"colorTextIconError",decorative:!0,size:"sizeIcon10"}),color:"colorTextError"},ProcessWarning:{badgeVariant:"default",icon:s.createElement(w,{color:"colorTextIconWarning",decorative:!0,size:"sizeIcon10"}),color:"colorTextWarning"},ProcessSuccess:{badgeVariant:"default",icon:s.createElement(x,{color:"colorTextIconSuccess",decorative:!0,size:"sizeIcon10"}),color:"colorTextSuccess"},ProcessNeutral:{badgeVariant:"default",icon:s.createElement(b,{color:"colorTextIconNeutral",decorative:!0,size:"sizeIcon10"}),color:"colorTextNeutral"},ProcessInProgress:{badgeVariant:"default",icon:s.createElement(y,{color:"colorTextIconNeutral",decorative:!0,size:"sizeIcon10"}),color:"colorTextNeutral"},ProcessDisabled:{badgeVariant:"decorative10",icon:s.createElement(m,{color:"colorTextIcon",decorative:!0,size:"sizeIcon10"}),color:"colorTextWeak"},ProcessDraft:{badgeVariant:"decorative10",icon:s.createElement(v,{color:"colorTextIcon",decorative:!0,size:"sizeIcon10"}),color:"colorTextWeak"},ConnectivityAvailable:{badgeVariant:"default",icon:s.createElement(u,{color:"colorTextIconAvailable",decorative:!0,size:"sizeIcon10"}),color:"colorTextSuccess"},ConnectivityBusy:{badgeVariant:"default",icon:s.createElement(d,{color:"colorTextIconBusy",decorative:!0,size:"sizeIcon10"}),color:"colorTextWarning"},ConnectivityUnavailable:{badgeVariant:"default",icon:s.createElement(h,{color:"colorTextIconUnavailable",decorative:!0,size:"sizeIcon10"}),color:"colorTextError"},ConnectivityNeutral:{badgeVariant:"default",icon:s.createElement(f,{color:"colorTextIconNeutral",decorative:!0,size:"sizeIcon10"}),color:"colorTextNeutral"},ConnectivityOffline:{badgeVariant:"decorative10",icon:s.createElement(p,{color:"colorTextIconOffline",decorative:!0,size:"sizeIcon10"}),color:"colorTextWeak"}},I=function(e){switch(e){case"small":return"space20";case"borderless":return"space0";default:return"space30"}},B=function(e){switch(e){case"small":return"space10";case"borderless":return"space0";default:return"space20"}},O=(0,o.Z)((0,o.Z)({},i.badgeBaseStyles),i.badgeVariantStyles.default),P={boxShadow:"none",backgroundColor:"transparent"},R=s.forwardRef((function(e,t){var n=e.children,i=e.element,l=void 0===i?"STATUS_BADGE":i,c=e.size,u=e.variant,d=(0,r.Z)(e,_);return s.createElement(a.Box,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(d)),{},{as:"span",element:l,variant:u},O),{},{color:T[u].color,paddingX:I(c),paddingY:B(c),display:"flex",flexDirection:"row",columnGap:"space20",alignItems:"center"},"borderless"===c&&P),{},{ref:t}),T[u].icon,n)}));R.displayName="StatusBadge";var A=s.forwardRef((function(e,t){var n=e.children,i=e.variant,a=e.element,l=void 0===a?"STATUS_MENU_BADGE":a,c=(0,r.Z)(e,E);return s.createElement(R,{as:"span",element:l,variant:i},s.createElement(S.MenuBadgeContent,(0,o.Z)((0,o.Z)({},c),{},{element:l,ref:t}),n))}));A.displayName="StatusMenuBadge";var M=s.forwardRef((function(e,t){return s.createElement(S.Menu,(0,o.Z)((0,o.Z)({element:"STATUS_MENU"},e),{},{ref:t}))}));M.displayName="StatusMenu";var N=s.forwardRef((function(e,t){return s.createElement(S.MenuItem,(0,o.Z)((0,o.Z)({element:"STATUS_MENU_ITEM"},e),{},{ref:t}))}));N.displayName="StatusMenuItem";var D=s.forwardRef((function(e,t){return s.createElement(S.MenuItemCheckbox,(0,o.Z)((0,o.Z)({element:"STATUS_MENU_ITEM_CHECKBOX"},e),{},{ref:t}))}));D.displayName="StatusMenuItemCheckbox";var L=s.forwardRef((function(e,t){return s.createElement(S.MenuItemRadio,(0,o.Z)((0,o.Z)({element:"STATUS_MENU_ITEM_RADIO"},e),{},{ref:t}))}));L.displayName="StatusMenuItemRadio";var j=s.forwardRef((function(e,t){var n=e.children,i=e.variant,l=e.element,c=void 0===l?"MENU_ITEM_STATUS":l,u=(0,r.Z)(e,C);return s.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(u)),{},{element:c,display:"flex",flexDirection:"row",columnGap:"space20",alignItems:"center",variant:i,ref:t}),T[i].icon,n)}));j.displayName="StatusMenuItemChild"},2393:function(e,t,n){"use strict";n.d(t,{BV:function(){return o},B_:function(){return a},C8:function(){return s},Dk:function(){return u},S$:function(){return r},Tu:function(){return l},bu:function(){return d},eD:function(){return f},jU:function(){return c},pZ:function(){return i}});var r=["background","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","backgroundAttachment"],o=[].concat(["borderRadius","borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],["borderWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],["borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"],["border","borderTop","borderRight","borderBottom","borderLeft","borderX","borderY"]),i=["alignContent","alignItems","alignSelf","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","justifyItems","justifySelf","order"],a=["gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea"],s=["overflow","overflowX","overflowY"],l=[].concat(s,["width","minWidth","maxWidth","height","minHeight","maxHeight","size","display","verticalAlign"]),c=["position","left","right","top","bottom","zIndex"],u=["boxShadow","textShadow"],d=[].concat(["margin","m","marginTop","mt","marginRight","mr","marginBottom","mb","marginLeft","ml","marginX","mx","marginY","my"],["padding","p","paddingTop","pt","paddingRight","pr","paddingBottom","pb","paddingLeft","pl","paddingX","px","paddingY","py"],["columnGap","rowGap"]),f=["fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","textAlign","color","textDecoration","textOverflow","textTransform","whiteSpace","wordBreak","wordWrap","overflowWrap"]},7666:function(e,t,n){"use strict";var r;n.d(t,{By:function(){return _e},Cg:function(){return Ue},Df:function(){return Rt},Dh:function(){return ot},F4:function(){return At},FK:function(){return Ye},GQ:function(){return je},Lo:function(){return wt},MS:function(){return Et},NQ:function(){return _t},Ni:function(){return Ot},Oq:function(){return qe},R:function(){return Ce},RD:function(){return It},TL:function(){return Bt},Wn:function(){return at},bK:function(){return Pe},cp:function(){return De},eC:function(){return Ze},f6:function(){return Pt},iK:function(){return Mt},iv:function(){return pe},jf:function(){return kt},nq:function(){return Tt},qC:function(){return Ee},tx:function(){return St}});var o=n(2982),i=n(4942),a=n(1413),s=n(7762),l=n(2791),c=Object.create,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,m=function(e,t){return function(){return t||(0,e[f(e)[0]])((t={exports:{}}).exports,t),t.exports}},v=function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,s.Z)(f(t));try{var a=function(){var i=o.value;!h.call(e,i)&&i!==n&&u(e,i,{get:function(){return t[i]},enumerable:!(r=d(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(l){i.e(l)}finally{i.f()}}return e},g=function(e,t,n){return n=null!=e?c(p(e)):{},v(!t&&e&&e.__esModule?n:u(n,"default",{value:e,enumerable:!0}),e)},y=function(e){return v(u({},"__esModule",{value:!0}),e)},b=m({"../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();e.StyleSheet=t}}),x=m({"../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js":function(e,t){t.exports=b()}}),w=m({"../../../node_modules/stylis/dist/umd/stylis.js":function(e,t){var r,o;r=e,o=function(e){var t="-ms-",n="-moz-",r="-webkit-",o="comm",i="rule",a="decl",s="@import",l="@keyframes",c=Math.abs,u=String.fromCharCode,d=Object.assign;function f(e,t){return 45^g(e,0)?(((t<<2^g(e,0))<<2^g(e,1))<<2^g(e,2))<<2^g(e,3):0}function p(e){return e.trim()}function h(e,t){return(e=t.exec(e))?e[0]:e}function m(e,t,n){return e.replace(t,n)}function v(e,t){return e.indexOf(t)}function g(e,t){return 0|e.charCodeAt(t)}function y(e,t,n){return e.slice(t,n)}function b(e){return e.length}function x(e){return e.length}function w(e,t){return t.push(e),e}function k(e,t){return e.map(t).join("")}function S(t,n,r,o,i,a,s){return{value:t,root:n,parent:r,type:o,props:i,children:a,line:e.line,column:e.column,length:s,return:""}}function _(e,t){return d(S("",null,null,"",null,null,0),e,{length:-e.length},t)}function E(){return e.character}function C(){return e.character=e.position>0?g(e.characters,--e.position):0,e.column--,10===e.character&&(e.column=1,e.line--),e.character}function T(){return e.character=e.position<e.length?g(e.characters,e.position++):0,e.column++,10===e.character&&(e.column=1,e.line++),e.character}function I(){return g(e.characters,e.position)}function B(){return e.position}function O(t,n){return y(e.characters,t,n)}function P(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(t){return e.line=e.column=1,e.length=b(e.characters=t),e.position=0,[]}function A(t){return e.characters="",t}function M(t){return p(O(e.position-1,z(91===t?t+2:40===t?t+1:t)))}function N(e){return A(L(R(e)))}function D(t){for(;(e.character=I())&&e.character<33;)T();return P(t)>2||P(e.character)>3?"":" "}function L(t){for(;T();)switch(P(e.character)){case 0:w(Z(e.position-1),t);break;case 2:w(M(e.character),t);break;default:w(u(e.character),t)}return t}function j(t,n){for(;--n&&T()&&!(e.character<48||e.character>102||e.character>57&&e.character<65||e.character>70&&e.character<97););return O(t,B()+(n<6&&32==I()&&32==T()))}function z(t){for(;T();)switch(e.character){case t:return e.position;case 34:case 39:34!==t&&39!==t&&z(e.character);break;case 40:41===t&&z(t);break;case 92:T()}return e.position}function W(t,n){for(;T()&&t+e.character!==57&&(t+e.character!==84||47!==I()););return"/*"+O(n,e.position-1)+"*"+u(47===t?t:T())}function Z(t){for(;!P(I());)T();return O(t,e.position)}function F(e,t,n,r,o,i,a,s,l){for(var c=0,d=0,f=a,p=0,h=0,y=0,x=1,k=1,S=1,_=0,E="",O=o,P=i,R=r,A=E;k;)switch(y=_,_=T()){case 40:if(108!=y&&58==g(A,f-1)){-1!=v(A+=m(M(_),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:A+=M(_);break;case 9:case 10:case 13:case 32:A+=D(y);break;case 92:A+=j(B()-1,7);continue;case 47:switch(I()){case 42:case 47:w(U(W(T(),B()),t,n),l);break;default:A+="/"}break;case 123*x:s[c++]=b(A)*S;case 125*x:case 59:case 0:switch(_){case 0:case 125:k=0;case 59+d:h>0&&b(A)-f&&w(h>32?$(A+";",r,n,f-1):$(m(A," ","")+";",r,n,f-2),l);break;case 59:A+=";";default:if(w(R=H(A,t,n,c,d,o,s,E,O=[],P=[],f),i),123===_)if(0===d)F(A,t,R,R,O,i,f,s,P);else switch(99===p&&110===g(A,3)?100:p){case 100:case 109:case 115:F(e,R,R,r&&w(H(e,R,R,0,0,o,s,E,o,O=[],f),P),o,P,f,s,r?O:P);break;default:F(A,R,R,R,[""],P,0,s,P)}}c=d=h=0,x=S=1,E=A="",f=a;break;case 58:f=1+b(A),h=y;default:if(x<1)if(123==_)--x;else if(125==_&&0==x++&&125==C())continue;switch(A+=u(_),_*x){case 38:S=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(b(A)-1)*S,S=1;break;case 64:45===I()&&(A+=M(T())),p=I(),d=f=b(E=A+=Z(B())),_++;break;case 45:45===y&&2==b(A)&&(x=0)}}return i}function H(e,t,n,r,o,a,s,l,u,d,f){for(var h=o-1,v=0===o?a:[""],g=x(v),b=0,w=0,k=0;b<r;++b)for(var _=0,E=y(e,h+1,h=c(w=s[b])),C=e;_<g;++_)(C=p(w>0?v[_]+" "+E:m(E,/&\f/g,v[_])))&&(u[k++]=C);return S(e,t,n,0===o?i:l,u,d,f)}function U(e,t,n){return S(e,t,n,o,u(E()),y(e,2,-2),0)}function $(e,t,n,r){return S(e,t,n,a,y(e,0,r),y(e,r+1,-1),r)}function G(e,o,i){switch(f(e,o)){case 5103:return r+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r+e+e;case 4789:return n+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return r+e+n+e+t+e+e;case 5936:switch(g(e,o+11)){case 114:return r+e+t+m(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return r+e+t+m(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return r+e+t+m(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return r+e+t+e+e;case 6165:return r+e+t+"flex-"+e+e;case 5187:return r+e+m(e,/(\w+).+(:[^]+)/,r+"box-$1$2"+t+"flex-$1$2")+e;case 5443:return r+e+t+"flex-item-"+m(e,/flex-|-self/g,"")+(h(e,/flex-|baseline/)?"":t+"grid-row-"+m(e,/flex-|-self/g,""))+e;case 4675:return r+e+t+"flex-line-pack"+m(e,/align-content|flex-|-self/g,"")+e;case 5548:return r+e+t+m(e,"shrink","negative")+e;case 5292:return r+e+t+m(e,"basis","preferred-size")+e;case 6060:return r+"box-"+m(e,"-grow","")+r+e+t+m(e,"grow","positive")+e;case 4554:return r+m(e,/([^-])(transform)/g,"$1"+r+"$2")+e;case 6187:return m(m(m(e,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),e,"")+e;case 5495:case 3959:return m(e,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return m(m(e,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r+e+e;case 4200:if(!h(e,/flex-|baseline/))return t+"grid-column-align"+y(e,o)+e;break;case 2592:case 3360:return t+m(e,"template-","")+e;case 4384:case 3616:return i&&i.some((function(e,t){return o=t,h(e.props,/grid-\w+-end/)}))?~v(e+(i=i[o].value),"span")?e:t+m(e,"-start","")+e+t+"grid-row-span:"+(~v(i,"span")?h(i,/\d+/):+h(i,/\d+/)-+h(e,/\d+/))+";":t+m(e,"-start","")+e;case 4896:case 4128:return i&&i.some((function(e){return h(e.props,/grid-\w+-start/)}))?e:t+m(m(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return m(e,/(.+)-inline(.+)/,r+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b(e)-1-o>6)switch(g(e,o+1)){case 109:if(45!==g(e,o+4))break;case 102:return m(e,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+n+(108==g(e,o+3)?"$3":"$2-$3"))+e;case 115:return~v(e,"stretch")?G(m(e,"stretch","fill-available"),o,i)+e:e}break;case 5152:case 5920:return m(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(n,r,o,i,a,s,l){return t+r+":"+o+l+(i?t+r+"-span:"+(a?s:+s-+o)+l:"")+e}));case 4949:if(121===g(e,o+6))return m(e,":",":"+r)+e;break;case 6444:switch(g(e,45===g(e,14)?18:11)){case 120:return m(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+r+(45===g(e,14)?"inline-":"")+"box$3$1"+r+"$2$3$1"+t+"$2box$3")+e;case 100:return m(e,":",":"+t)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return m(e,"scroll-","scroll-snap-")+e}return e}function q(e,t){for(var n="",r=x(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}e.line=1,e.column=1,e.length=0,e.position=0,e.character=0,e.characters="",e.CHARSET="@charset",e.COMMENT=o,e.COUNTER_STYLE="@counter-style",e.DECLARATION=a,e.DOCUMENT="@document",e.FONT_FACE="@font-face",e.FONT_FEATURE_VALUES="@font-feature-values",e.IMPORT=s,e.KEYFRAMES=l,e.MEDIA="@media",e.MOZ=n,e.MS=t,e.NAMESPACE="@namespace",e.PAGE="@page",e.RULESET=i,e.SUPPORTS="@supports",e.VIEWPORT="@viewport",e.WEBKIT=r,e.abs=c,e.alloc=R,e.append=w,e.assign=d,e.caret=B,e.char=E,e.charat=g,e.combine=k,e.comment=U,e.commenter=W,e.compile=function(e){return A(F("",null,null,null,[""],e=R(e),0,[0],e))},e.copy=_,e.dealloc=A,e.declaration=$,e.delimit=M,e.delimiter=z,e.escaping=j,e.from=u,e.hash=f,e.identifier=Z,e.indexof=v,e.match=h,e.middleware=function(e){var t=x(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}},e.namespace=function(e){e.type===i&&(e.props=e.props.map((function(t){return k(N(t),(function(t,n,r){switch(g(t,0)){case 12:return y(t,1,b(t));case 0:case 40:case 43:case 62:case 126:return t;case 58:"global"===r[++n]&&(r[n]="",r[++n]="\f"+y(r[n],n=1,-1));case 32:return 1===n?"":t;default:switch(n){case 0:return e=t,x(r)>1?"":t;case n=x(r)-1:case 2:return 2===n?t+e+e:t+e;default:return t}}}))})))},e.next=T,e.node=S,e.parse=F,e.peek=I,e.prefix=G,e.prefixer=function(e,n,o,s){if(e.length>-1&&!e.return)switch(e.type){case a:return void(e.return=G(e.value,e.length,o));case l:return q([_(e,{value:m(e.value,"@","@"+r)})],s);case i:if(e.length)return k(e.props,(function(n){switch(h(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return q([_(e,{props:[m(n,/:(read-\w+)/,":-moz-$1")]})],s);case"::placeholder":return q([_(e,{props:[m(n,/:(plac\w+)/,":"+r+"input-$1")]}),_(e,{props:[m(n,/:(plac\w+)/,":-moz-$1")]}),_(e,{props:[m(n,/:(plac\w+)/,t+"input-$1")]})],s)}return""}))}},e.prev=C,e.replace=m,e.ruleset=H,e.rulesheet=function(e){return function(t){t.root||(t=t.return)&&e(t)}},e.serialize=q,e.sizeof=x,e.slice=O,e.stringify=function(e,t,n,r){switch(e.type){case s:case a:return e.return=e.return||e.value;case o:return"";case l:return e.return=e.value+"{"+q(e.children,r)+"}";case i:e.value=e.props.join(",")}return b(n=q(e.children,r))?e.return=e.value+"{"+n+"}":""},e.strlen=b,e.substr=y,e.token=P,e.tokenize=N,e.tokenizer=L,e.trim=p,e.whitespace=D,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof e&&typeof t<"u"?o(e):"function"==typeof define&&n.amdO?define(["exports"],o):o((r=r||self).stylis={})}}),k=m({"../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});e.default=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}}}),S=m({"../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js":function(e,t){t.exports=k()}}),_=m({"../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}}}),E=m({"../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js":function(e,t){t.exports=_()}}),C=m({"../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=x(),n=w(),r=S(),o=E();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(r),s=i(o),l=function(e,t,r){for(var o=0,i=0;o=i,i=n.peek(),38===o&&12===i&&(t[r]=1),!n.token(i);)n.next();return n.slice(e,n.position)},c=function(e,t){return n.dealloc(function(e,t){var r=-1,o=44;do{switch(n.token(o)){case 0:38===o&&12===n.peek()&&(t[r]=1),e[r]+=l(n.position-1,t,r);break;case 2:e[r]+=n.delimit(o);break;case 4:if(44===o){e[++r]=58===n.peek()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=n.from(o)}}while(o=n.next());return e}(n.alloc(e),t))},u=new WeakMap,d=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||u.get(n))&&!r){u.set(e,!0);for(var o=[],i=c(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var d=0;d<a.length;d++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[d]):a[d]+" "+i[s]}}},f=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function p(e,t){switch(n.hash(e,t)){case 5103:return n.WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return n.WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return n.WEBKIT+e+n.MOZ+e+n.MS+e+e;case 6828:case 4268:return n.WEBKIT+e+n.MS+e+e;case 6165:return n.WEBKIT+e+n.MS+"flex-"+e+e;case 5187:return n.WEBKIT+e+n.replace(e,/(\w+).+(:[^]+)/,n.WEBKIT+"box-$1$2"+n.MS+"flex-$1$2")+e;case 5443:return n.WEBKIT+e+n.MS+"flex-item-"+n.replace(e,/flex-|-self/,"")+e;case 4675:return n.WEBKIT+e+n.MS+"flex-line-pack"+n.replace(e,/align-content|flex-|-self/,"")+e;case 5548:return n.WEBKIT+e+n.MS+n.replace(e,"shrink","negative")+e;case 5292:return n.WEBKIT+e+n.MS+n.replace(e,"basis","preferred-size")+e;case 6060:return n.WEBKIT+"box-"+n.replace(e,"-grow","")+n.WEBKIT+e+n.MS+n.replace(e,"grow","positive")+e;case 4554:return n.WEBKIT+n.replace(e,/([^-])(transform)/g,"$1"+n.WEBKIT+"$2")+e;case 6187:return n.replace(n.replace(n.replace(e,/(zoom-|grab)/,n.WEBKIT+"$1"),/(image-set)/,n.WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return n.replace(e,/(image-set\([^]*)/,n.WEBKIT+"$1$`$1");case 4968:return n.replace(n.replace(e,/(.+:)(flex-)?(.*)/,n.WEBKIT+"box-pack:$3"+n.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+n.WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return n.replace(e,/(.+)-inline(.+)/,n.WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(n.strlen(e)-1-t>6)switch(n.charat(e,t+1)){case 109:if(45!==n.charat(e,t+4))break;case 102:return n.replace(e,/(.+:)(.+)-([^]+)/,"$1"+n.WEBKIT+"$2-$3$1"+n.MOZ+(108==n.charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~n.indexof(e,"stretch")?p(n.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==n.charat(e,t+1))break;case 6444:switch(n.charat(e,n.strlen(e)-3-(~n.indexof(e,"!important")&&10))){case 107:return n.replace(e,":",":"+n.WEBKIT)+e;case 101:return n.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+n.WEBKIT+(45===n.charat(e,14)?"inline-":"")+"box$3$1"+n.WEBKIT+"$2$3$1"+n.MS+"$2box$3")+e}break;case 5936:switch(n.charat(e,t+11)){case 114:return n.WEBKIT+e+n.MS+n.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return n.WEBKIT+e+n.MS+n.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return n.WEBKIT+e+n.MS+n.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return n.WEBKIT+e+n.MS+e+e}return e}var h=typeof document<"u",m=h?void 0:a.default((function(){return s.default((function(){var e={};return function(t){return e[t]}}))})),v=[function(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case n.DECLARATION:e.return=p(e.value,e.length);break;case n.KEYFRAMES:return n.serialize([n.copy(e,{value:n.replace(e.value,"@","@"+n.WEBKIT)})],o);case n.RULESET:if(e.length)return n.combine(e.props,(function(t){switch(n.match(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return n.serialize([n.copy(e,{props:[n.replace(t,/:(read-\w+)/,":"+n.MOZ+"$1")]})],o);case"::placeholder":return n.serialize([n.copy(e,{props:[n.replace(t,/:(plac\w+)/,":"+n.WEBKIT+"input-$1")]}),n.copy(e,{props:[n.replace(t,/:(plac\w+)/,":"+n.MOZ+"$1")]}),n.copy(e,{props:[n.replace(t,/:(plac\w+)/,n.MS+"input-$1")]})],o)}return""}))}}];e.default=function(e){var r=e.key;if(h&&"css"===r){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,a=e.stylisPlugins||v,s={},l=[];h&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)})));var c,u=[d,f];if(h){var p,g=[n.stringify,n.rulesheet((function(e){p.insert(e)}))],y=n.middleware(u.concat(a,g));c=function(e,t,r,o){var i;p=r,i=e?e+"{"+t.styles+"}":t.styles,n.serialize(n.compile(i),y),o&&(S.inserted[t.name]=!0)}}else{var b=[n.stringify],x=n.middleware(u.concat(a,b)),w=m(a)(r),k=function(e,t){var r,o=t.name;return void 0===w[o]&&(w[o]=(r=e?e+"{"+t.styles+"}":t.styles,n.serialize(n.compile(r),x))),w[o]};c=function(e,t,n,r){var o=t.name,i=k(e,t);return void 0===S.compat?(r&&(S.inserted[o]=!0),i):r?void(S.inserted[o]=i):i}}var S={key:r,sheet:new t.StyleSheet({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return S.sheet.hydrate(l),S}}}),T=m({"../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js":function(e,t){t.exports=C()}}),I=m({"../../../node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return t.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),B={};!function(e,t){for(var n in t)u(e,n,{get:t[n],enumerable:!0})}(B,{default:function(){return r||(r=n.t(l,2))}});var O,P,R=(O={"esm-externals:react":function(){var e,t,o;e=B,t=r||(r=n.t(l,2)),v(e,t,"default"),o&&v(o,t,"default")}},function(){return O&&(P=(0,O[f(O)[0]])(O=0)),P}),A=m({"../../../node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=E();var n,r=(n=t)&&n.__esModule?n:{default:n},o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=r.default((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));e.default=i}}),M=m({"../../../node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js":function(e,t){t.exports=A()}}),N=m({"../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js":function(e){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case u:case o:case a:case i:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case h:case s:return e;default:return t}}case r:return t}}}function w(e){return x(e)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=o,e.Lazy=m,e.Memo=h,e.Portal=r,e.Profiler=a,e.StrictMode=i,e.Suspense=f,e.isAsyncMode=function(e){return w(e)||x(e)===c},e.isConcurrentMode=w,e.isContextConsumer=function(e){return x(e)===l},e.isContextProvider=function(e){return x(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return x(e)===d},e.isFragment=function(e){return x(e)===o},e.isLazy=function(e){return x(e)===m},e.isMemo=function(e){return x(e)===h},e.isPortal=function(e){return x(e)===r},e.isProfiler=function(e){return x(e)===a},e.isStrictMode=function(e){return x(e)===i},e.isSuspense=function(e){return x(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===a||e===i||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v)},e.typeOf=x}}),D=m({"../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js":function(e,t){t.exports=N()}}),L=m({"../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t){var n=D(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return n.isMemo(e)?i:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=i;var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=c(n);u&&(a=a.concat(u(n)));for(var h=s(t),m=s(n),v=0;v<a.length;++v){var g=a[v];if(!o[g]&&(!r||!r[g])&&(!m||!m[g])&&(!h||!h[g])){var y=d(n,g);try{l(t,g,y)}catch(b){}}}}return t}}}),j=m({"../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=L();var n,r=(n=t)&&n.__esModule?n:{default:n};e.default=function(e,t){return r.default(e,t)}}}),z=m({"../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=typeof document<"u";var n=function(e,n,r){var o=e.key+"-"+n.name;(!1===r||!1===t&&void 0!==e.compat)&&void 0===e.registered[o]&&(e.registered[o]=n.styles)};e.getRegisteredStyles=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r},e.insertStyles=function(e,r,o){n(e,r,o);var i=e.key+"-"+r.name;if(void 0===e.inserted[r.name]){var a="",s=r;do{var l=e.insert(r===s?"."+i:"",s,e.sheet,!0);!t&&void 0!==l&&(a+=l),s=s.next}while(void 0!==s);if(!t&&0!==a.length)return a}},e.registerStyles=n}}),W=m({"../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js":function(e,t){t.exports=z()}}),Z=m({"../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}}}),F=m({"../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js":function(e,t){t.exports=Z()}}),H=m({"../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});e.default={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}}}),U=m({"../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js":function(e,t){t.exports=H()}}),$=m({"../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=F(),n=U(),r=E();function o(e){return e&&e.__esModule?e:{default:e}}var i=o(t),a=o(n),s=o(r),l=/[A-Z]|^ms/g,c=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},d=function(e){return null!=e&&"boolean"!=typeof e},f=s.default((function(e){return u(e)?e:e.replace(l,"-$&").toLowerCase()})),p=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(c,(function(e,t,n){return m={name:t,styles:n,next:m},t}))}return 1===a.default[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function h(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return m={name:n.name,styles:n.styles,next:m},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)m={name:r.name,styles:r.styles,next:m},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=h(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":d(a)&&(r+=f(i)+":"+p(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=h(e,t,a);switch(i){case"animation":case"animationName":r+=f(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)d(a[l])&&(r+=f(i)+":"+p(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=m,i=n(e);return m=o,h(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var m,v=/label:\s*([^\s;\n{]+)\s*(;|$)/g;e.serializeStyles=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";m=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=h(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=h(n,t,e[s]),r&&(o+=a[s]);v.lastIndex=0;for(var l,c="";null!==(l=v.exec(o));)c+="-"+l[1];return{name:i.default(o)+c,styles:o,next:m}}}}),G=m({"../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js":function(e,t){t.exports=$()}}),q=m({"../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(R(),y(B));var n=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}(t),r=typeof document<"u",o=!!n.useInsertionEffect&&n.useInsertionEffect,i=r&&o||function(e){return e()},a=o||t.useLayoutEffect;e.useInsertionEffectAlwaysWithSyncFallback=i,e.useInsertionEffectWithLayoutFallback=a}}),K=m({"../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js":function(e,t){t.exports=q()}}),V=m({"../../../node_modules/@emotion/react/dist/emotion-element-20108edd.cjs.prod.js":function(e){var t=(R(),y(B)),n=T(),r=I(),o=S(),i=j(),a=W(),s=G(),l=K();function c(e){return e&&e.__esModule?e:{default:e}}var u=c(n),d=c(o),f=typeof document<"u",p={}.hasOwnProperty,h=t.createContext(typeof HTMLElement<"u"?u.default({key:"css"}):null),m=h.Provider;e.withEmotionCache=function(e){return t.forwardRef((function(n,r){var o=t.useContext(h);return e(n,o,r)}))},f||(e.withEmotionCache=function(e){return function(n){var r=t.useContext(h);return null===r?(r=u.default({key:"css"}),t.createElement(h.Provider,{value:r},e(n,r))):e(n,r)}});var v=t.createContext({}),g=d.default((function(e){return d.default((function(t){return function(e,t){return"function"==typeof t?t(e):r({},e,t)}(e,t)}))}));var b="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",x=function(e){var n=e.cache,r=e.serialized,o=e.isStringTag;a.registerStyles(n,r,o);var i=l.useInsertionEffectAlwaysWithSyncFallback((function(){return a.insertStyles(n,r,o)}));if(!f&&void 0!==i){for(var s,c=r.name,u=r.next;void 0!==u;)c+=" "+u.name,u=u.next;return t.createElement("style",((s={})["data-emotion"]=n.key+" "+c,s.dangerouslySetInnerHTML={__html:i},s.nonce=n.sheet.nonce,s))}return null},w=e.withEmotionCache((function(e,n,r){var o=e.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var i=e[b],l=[o],c="";"string"==typeof e.className?c=a.getRegisteredStyles(n.registered,l,e.className):null!=e.className&&(c=e.className+" ");var u=s.serializeStyles(l,void 0,t.useContext(v));c+=n.key+"-"+u.name;var d={};for(var f in e)p.call(e,f)&&"css"!==f&&f!==b&&(d[f]=e[f]);return d.ref=r,d.className=c,t.createElement(t.Fragment,null,t.createElement(x,{cache:n,serialized:u,isStringTag:"string"==typeof i}),t.createElement(i,d))}));e.CacheProvider=m,e.Emotion=w,e.ThemeContext=v,e.ThemeProvider=function(e){var n=t.useContext(v);return e.theme!==n&&(n=g(n)(e.theme)),t.createElement(v.Provider,{value:n},e.children)},e.__unsafe_useEmotionCache=function(){return t.useContext(h)},e.createEmotionProps=function(e,t){var n={};for(var r in t)p.call(t,r)&&(n[r]=t[r]);return n[b]=e,n},e.hasOwnProperty=p,e.isBrowser=f,e.useTheme=function(){return t.useContext(v)},e.withTheme=function(e){var n=e.displayName||e.name||"Component",o=t.forwardRef((function(n,o){var i=t.useContext(v);return t.createElement(e,r({theme:i,ref:o},n))}));return o.displayName="WithTheme("+n+")",i.default(o,e)}}}),Y=m({"../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(R(),y(B));T();var n=V();I(),S(),L(),j();var r=W(),o=G(),i=K(),a=function(e,r){var o=arguments;if(null==r||!n.hasOwnProperty.call(r,"css"))return t.createElement.apply(void 0,o);var i=o.length,a=new Array(i);a[0]=n.Emotion,a[1]=n.createEmotionProps(e,r);for(var s=2;s<i;s++)a[s]=o[s];return t.createElement.apply(null,a)},s=n.withEmotionCache((function(e,a){var s=e.styles,l=o.serializeStyles([s],void 0,t.useContext(n.ThemeContext));if(!n.isBrowser){for(var c,u=l.name,d=l.styles,f=l.next;void 0!==f;)u+=" "+f.name,d+=f.styles,f=f.next;var p=!0===a.compat,h=a.insert("",{name:u,styles:d},a.sheet,p);return p?null:t.createElement("style",((c={})["data-emotion"]=a.key+"-global "+u,c.dangerouslySetInnerHTML={__html:h},c.nonce=a.sheet.nonce,c))}var m=t.useRef();return i.useInsertionEffectWithLayoutFallback((function(){var e=a.key+"-global",t=new a.sheet.constructor({key:e,nonce:a.sheet.nonce,container:a.sheet.container,speedy:a.sheet.isSpeedy}),n=!1,r=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return a.sheet.tags.length&&(t.before=a.sheet.tags[0]),null!==r&&(n=!0,r.setAttribute("data-emotion",e),t.hydrate([r])),m.current=[t,n],function(){t.flush()}}),[a]),i.useInsertionEffectWithLayoutFallback((function(){var e=m.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&r.insertStyles(a,l.next,!0),t.tags.length){var n=t.tags[t.tags.length-1].nextElementSibling;t.before=n,t.flush()}a.insert("",l,t,!1)}}),[a,l.name]),null}));function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.serializeStyles(t)}var c=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function u(e,t,n){var o=[],i=r.getRegisteredStyles(e,o,n);return o.length<2?n:i+t(o)}var d=function(e){var o,a=e.cache,s=e.serializedArr,l=i.useInsertionEffectAlwaysWithSyncFallback((function(){for(var e="",t=0;t<s.length;t++){var o=r.insertStyles(a,s[t],!1);!n.isBrowser&&void 0!==o&&(e+=o)}if(!n.isBrowser)return e}));return n.isBrowser||0===l.length?null:t.createElement("style",((o={})["data-emotion"]=a.key+" "+s.map((function(e){return e.name})).join(" "),o.dangerouslySetInnerHTML={__html:l},o.nonce=a.sheet.nonce,o))},f=n.withEmotionCache((function(e,i){var a=[],s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=o.serializeStyles(t,i.registered);return a.push(s),r.registerStyles(i,s,!1),i.key+"-"+s.name},l={css:s,cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(i.registered,s,c(t))},theme:t.useContext(n.ThemeContext)},f=e.children(l);return!0,t.createElement(t.Fragment,null,t.createElement(d,{cache:i,serializedArr:a}),f)}));e.CacheProvider=n.CacheProvider,e.ThemeContext=n.ThemeContext,e.ThemeProvider=n.ThemeProvider,e.__unsafe_useEmotionCache=n.__unsafe_useEmotionCache,e.useTheme=n.useTheme,Object.defineProperty(e,"withEmotionCache",{enumerable:!0,get:function(){return n.withEmotionCache}}),e.withTheme=n.withTheme,e.ClassNames=f,e.Global=s,e.createElement=a,e.css=l,e.jsx=a,e.keyframes=function(){var e=l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}}}),X=m({"../../../node_modules/@emotion/react/dist/emotion-react.cjs.js":function(e,t){t.exports=Y()}}),J=m({"../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=I(),n=(R(),y(B)),r=M(),o=X(),i=W(),a=G(),s=K();var l,c=((l=r)&&l.__esModule?l:{default:l}).default,u=function(e){return"theme"!==e},d=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?c:u},f=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},p=typeof document<"u",h=function(e){var t=e.cache,r=e.serialized,o=e.isStringTag;i.registerStyles(t,r,o);var a=s.useInsertionEffectAlwaysWithSyncFallback((function(){return i.insertStyles(t,r,o)}));if(!p&&void 0!==a){for(var l,c=r.name,u=r.next;void 0!==u;)c+=" "+u.name,u=u.next;return n.createElement("style",((l={})["data-emotion"]=t.key+" "+c,l.dangerouslySetInnerHTML={__html:a},l.nonce=t.sheet.nonce,l))}return null};e.default=function e(r,s){var l,c,u=r.__emotion_real===r,p=u&&r.__emotion_base||r;void 0!==s&&(l=s.label,c=s.target);var m=f(r,s,u),v=m||d(p),g=!v("as");return function(){var y=arguments,b=u&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==l&&b.push("label:"+l+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,w=1;w<x;w++)b.push(y[w],y[0][w])}var k=o.withEmotionCache((function(e,t,r){var s=g&&e.as||p,l="",u=[],f=e;if(null==e.theme){for(var y in f={},e)f[y]=e[y];f.theme=n.useContext(o.ThemeContext)}"string"==typeof e.className?l=i.getRegisteredStyles(t.registered,u,e.className):null!=e.className&&(l=e.className+" ");var x=a.serializeStyles(b.concat(u),t.registered,f);l+=t.key+"-"+x.name,void 0!==c&&(l+=" "+c);var w=g&&void 0===m?d(s):v,k={};for(var S in e)g&&"as"===S||w(S)&&(k[S]=e[S]);return k.className=l,k.ref=r,n.createElement(n.Fragment,null,n.createElement(h,{cache:t,serialized:x,isStringTag:"string"==typeof s}),n.createElement(s,k))}));return k.displayName=void 0!==l?l:"Styled("+("string"==typeof p?p:p.displayName||p.name||"Component")+")",k.defaultProps=r.defaultProps,k.__emotion_real=k,k.__emotion_base=p,k.__emotion_styles=b,k.__emotion_forwardProp=m,Object.defineProperty(k,"toString",{value:function(){return"."+c}}),k.withComponent=function(n,r){return e(n,t({},s,r,{shouldForwardProp:f(k,r,!0)})).apply(void 0,b)},k}}}}),Q=m({"../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js":function(e){Object.defineProperty(e,"__esModule",{value:!0}),I(),R(),M();var t=J();X(),W(),G(),K();var n=t.default.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){n[e]=n(e)})),e.default=n}}),ee=m({"../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js":function(e,t){t.exports=Q()}}),te=m({"../../../node_modules/object-assign/index.js":function(e,t){var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var a,s,l=i(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))r.call(a,u)&&(l[u]=a[u]);if(n){s=n(a);for(var d=0;d<s.length;d++)o.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}}}),ne=g(T()),re=g(ee()),oe=function(e,t,n){var r=t&&"string"==typeof t?t.split("."):[t],o=e;return r.forEach((function(e){o=o?o[e]:void 0})),void 0===o?n:o},ie=[40,52,64].map((function(e){return"".concat(e,"em")})),ae={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},se={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},le={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},ce={color:"textColors",backgroundColor:"backgroundColors",borderColor:"borderColors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"borderColors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"borderColors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"borderColors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"borderColors",borderRightStyle:"borderStyles",outlineColor:"outlineColors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes","-webkit-text-fill-color":"textColors",fill:"fillColors",stroke:"strokeColors",colorScheme:"colorSchemes"},ue=function(e,t){if("number"!=typeof t||t>=0)return oe(e,t,t);var n=Math.abs(t),r=oe(e,n,n);return"string"==typeof r?"-".concat(r):-1*r},de=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){return(0,a.Z)((0,a.Z)({},e),{},(0,i.Z)({},t,ue))}),{}),fe=function(e){return function(t){var n={},r=[null].concat((0,o.Z)(oe(t,"breakpoints",ie).map((function(e){return"@media screen and (min-width: ".concat(e,")")}))));for(var i in e){var a="function"==typeof e[i]?e[i](t):e[i];if(null!=a){if(!Array.isArray(a)){n[i]=a;continue}for(var s=0;s<a.slice(0,r.length).length;s++){var l=r[s];l?(n[l]=n[l]||{},null!=a[s]&&(n[l][i]=a[s])):n[i]=a[s]}}}return n}},pe=function e(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,a.Z)((0,a.Z)({},ae),n.theme||n),o={},i="function"==typeof t?t(r):t,l=fe(i)(r);for(var c in l){var u=l[c],d="function"==typeof u?u(r):u;if("variant"!==c)if(d&&"object"==typeof d)o[c]=e(d)(r);else{var f=oe(se,c,c),p=oe(ce,f),h=oe(r,p,oe(r,f,{})),m=oe(de,f,oe)(h,d,d);if(le[f]){var v,g=le[f],y=(0,s.Z)(g);try{for(y.s();!(v=y.n()).done;){var b=v.value;o[b]=m}}catch(w){y.e(w)}finally{y.f()}}else o[f]=m}else{var x=e(oe(r,d))(r);o=(0,a.Z)((0,a.Z)({},o),x)}}return o}},he=g(te()),me=function(e,t){var n=(0,he.default)({},e,t);for(var r in e){var o;!e[r]||"object"!=typeof t[r]||(0,he.default)(n,((o={})[r]=(0,he.default)(e[r],t[r]),o))}return n},ve={breakpoints:[40,52,64].map((function(e){return e+"em"}))},ge=function(e){return"@media screen and (min-width: "+e+")"},ye=function(e,t){return be(t,e,e)},be=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e},xe=function e(t){var n={},r=function(e){var r={},o=!1,i=e.theme&&e.theme.disableStyledSystemCache;for(var a in e)if(t[a]){var s=t[a],l=e[a],c=be(e.theme,s.scale,s.defaults);if("object"==typeof l){if(n.breakpoints=!i&&n.breakpoints||be(e.theme,"breakpoints",ve.breakpoints),Array.isArray(l)){n.media=!i&&n.media||[null].concat(n.breakpoints.map(ge)),r=me(r,we(n.media,s,c,l,e));continue}null!==l&&(r=me(r,ke(n.breakpoints,s,c,l,e)),o=!0);continue}(0,he.default)(r,s(l,c,e))}return o&&(r=function(e){var t={};return Object.keys(e).sort((function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})})).forEach((function(n){t[n]=e[n]})),t}(r)),r};r.config=t,r.propNames=Object.keys(t),r.cache=n;var o=Object.keys(t).filter((function(e){return"config"!==e}));return o.length>1&&o.forEach((function(n){var o;r[n]=e(((o={})[n]=t[n],o))})),r},we=function(e,t,n,r,o){var i={};return r.slice(0,e.length).forEach((function(r,a){var s,l=e[a],c=t(r,n,o);l?(0,he.default)(i,((s={})[l]=(0,he.default)({},i[l],c),s)):(0,he.default)(i,c)})),i},ke=function(e,t,n,r,o){var i={};for(var a in r){var s=e[a],l=t(r[a],n,o);if(s){var c,u=ge(s);(0,he.default)(i,((c={})[u]=(0,he.default)({},i[u],l),c))}else(0,he.default)(i,l)}return i},Se=function(e){var t=e.properties,n=e.property,r=e.scale,o=e.transform,i=void 0===o?ye:o,a=e.defaultScale;t=t||[n];var s=function(e,n,r){var o={},a=i(e,n,r);if(null!==a)return t.forEach((function(e){o[e]=a})),o};return s.scale=r,s.defaults=a,s},_e=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]=!0!==r?"function"!=typeof r?Se(r):r:Se({property:n,scale:n})})),xe(t)},Ee=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){!t||!t.config||(0,he.default)(e,t.config)}));var o=xe(e);return o},Ce=function(e,t){return void 0===t&&(t=null),function(n){return be(n.theme,e,t)}};var Te=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var Ie=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},Be=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Oe=Ie((function(e){return Be.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Pe=_e({width:{property:"width",scale:"sizes",transform:function(e,t){return be(t,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),Re=Pe,Ae={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};Ae.bg=Ae.backgroundColor;var Me=_e(Ae),Ne=Me,De=_e({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),Le=De,je=_e({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),ze=je,We={space:[0,4,8,16,32,64,128,256,512]},Ze=_e({gridGap:{property:"gridGap",scale:"space",defaultScale:We.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:We.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:We.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),Fe=Ze,He={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};He.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},He.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},He.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},He.borderBottomColor={property:"borderBottomColor",scale:"colors"},He.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},He.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},He.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},He.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},He.borderLeftColor={property:"borderLeftColor",scale:"colors"},He.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},He.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},He.borderRightColor={property:"borderRightColor",scale:"colors"},He.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var Ue=_e(He),$e=Ue,Ge={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};Ge.bgImage=Ge.backgroundImage,Ge.bgSize=Ge.backgroundSize,Ge.bgPosition=Ge.backgroundPosition,Ge.bgRepeat=Ge.backgroundRepeat;var qe=_e(Ge),Ke=qe,Ve={space:[0,4,8,16,32,64,128,256,512]},Ye=_e({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:Ve.space},right:{property:"right",scale:"space",defaultScale:Ve.space},bottom:{property:"bottom",scale:"space",defaultScale:Ve.space},left:{property:"left",scale:"space",defaultScale:Ve.space}}),Xe=Ye,Je={space:[0,4,8,16,32,64,128,256,512]},Qe=function(e){return"number"==typeof e&&!isNaN(e)},et=function(e,t){if(!Qe(e))return be(t,e,e);var n=e<0,r=Math.abs(e),o=be(t,r,r);return Qe(o)?o*(n?-1:1):n?"-"+o:o},tt={};tt.margin={margin:{property:"margin",scale:"space",transform:et,defaultScale:Je.space},marginTop:{property:"marginTop",scale:"space",transform:et,defaultScale:Je.space},marginRight:{property:"marginRight",scale:"space",transform:et,defaultScale:Je.space},marginBottom:{property:"marginBottom",scale:"space",transform:et,defaultScale:Je.space},marginLeft:{property:"marginLeft",scale:"space",transform:et,defaultScale:Je.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:et,defaultScale:Je.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:et,defaultScale:Je.space}},tt.margin.m=tt.margin.margin,tt.margin.mt=tt.margin.marginTop,tt.margin.mr=tt.margin.marginRight,tt.margin.mb=tt.margin.marginBottom,tt.margin.ml=tt.margin.marginLeft,tt.margin.mx=tt.margin.marginX,tt.margin.my=tt.margin.marginY,tt.padding={padding:{property:"padding",scale:"space",defaultScale:Je.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:Je.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:Je.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:Je.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:Je.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:Je.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:Je.space}},tt.padding.p=tt.padding.padding,tt.padding.pt=tt.padding.paddingTop,tt.padding.pr=tt.padding.paddingRight,tt.padding.pb=tt.padding.paddingBottom,tt.padding.pl=tt.padding.paddingLeft,tt.padding.px=tt.padding.paddingX,tt.padding.py=tt.padding.paddingY;var nt=_e(tt.margin),rt=_e(tt.padding),ot=Ee(nt,rt),it=_e({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}}),at=it;function st(){return st=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(this,arguments)}var lt=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e},ct=[40,52,64].map((function(e){return e+"em"})),ut={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},dt={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},ft={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},pt={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},ht=function(e,t){if("number"!=typeof t||t>=0)return lt(e,t,t);var n=Math.abs(t),r=lt(e,n,n);return"string"==typeof r?"-"+r:-1*r},mt=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var n;return st({},e,((n={})[t]=ht,n))}),{}),vt=function e(t){return function(n){void 0===n&&(n={});var r=st({},ut,{},n.theme||n),o={},i=function(e){return function(t){var n={},r=lt(t,"breakpoints",ct),o=[null].concat(r.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var i in e){var a="function"==typeof e[i]?e[i](t):e[i];if(null!=a){if(!Array.isArray(a)){n[i]=a;continue}for(var s=0;s<a.slice(0,o.length).length;s++){var l=o[s];l?(n[l]=n[l]||{},null!=a[s]&&(n[l][i]=a[s])):n[i]=a[s]}}}return n}}("function"==typeof t?t(r):t)(r);for(var a in i){var s=i[a],l="function"==typeof s?s(r):s;if("variant"!==a)if(l&&"object"==typeof l)o[a]=e(l)(r);else{var c=lt(dt,a,a),u=lt(pt,c),d=lt(r,u,lt(r,c,{})),f=lt(mt,c,lt)(d,l,l);if(ft[c])for(var p=ft[c],h=0;h<p.length;h++)o[p[h]]=f;else o[c]=f}else o=st({},o,{},e(lt(r,l))(r))}return o}},gt=function(e){var t,n,r=e.scale,o=e.prop,i=void 0===o?"variant":o,a=e.variants,s=void 0===a?{}:a,l=e.key;(n=Object.keys(s).length?function(e,t,n){return vt(be(t,e,null))(n.theme)}:function(e,t){return be(t,e,null)}).scale=r||l,n.defaults=s;var c=((t={})[i]=n,t);return xe(c)},yt=gt({key:"buttons"}),bt=gt({key:"textStyles",prop:"textStyle"}),xt=gt({key:"colorStyles",prop:"colors"}),wt=(Re.width,Re.height,Re.minWidth,Re.minHeight,Re.maxWidth,Re.maxHeight,Re.size,Re.verticalAlign),kt=Re.display,St=Re.overflow,_t=(Re.overflowX,Re.overflowY,Ne.opacity,Le.fontSize,Le.fontFamily,Le.fontWeight,Le.lineHeight,Le.textAlign,Le.fontStyle,Le.letterSpacing,ze.alignItems,ze.alignContent,ze.justifyItems,ze.justifyContent,ze.flexWrap,ze.flexDirection,ze.flex,ze.flexGrow,ze.flexShrink,ze.flexBasis,ze.justifySelf,ze.alignSelf,ze.order,Fe.gridGap,Fe.gridColumnGap,Fe.gridRowGap,Fe.gridColumn,Fe.gridRow,Fe.gridAutoFlow,Fe.gridAutoColumns,Fe.gridAutoRows,Fe.gridTemplateColumns,Fe.gridTemplateRows,Fe.gridTemplateAreas,Fe.gridArea,$e.borderWidth,$e.borderStyle,$e.borderColor,$e.borderTop,$e.borderRight,$e.borderBottom,$e.borderLeft,$e.borderRadius,Ke.backgroundImage,Ke.backgroundSize,Ke.backgroundPosition,Ke.backgroundRepeat,Xe.zIndex,Xe.top,Xe.right,Xe.bottom,Xe.left,Ee(ot,De,Me,Pe,je,Ue,qe,Ye,Ze,it,yt,bt,xt).propNames),Et=function(e){var t=new RegExp("^("+e.join("|")+")$");return Te((function(e){return Oe(e)&&!t.test(e)}))},Ct=(Et(_t),g(X())),Tt=Ct.CacheProvider,It=Ct.css,Bt=Ct.Global,Ot=Ct.ThemeContext,Pt=Ct.ThemeProvider,Rt=ne.default,At=Ct.keyframes,Mt=re.default;Ct.withTheme},5594:function(e,t,n){"use strict";n.r(t),n.d(t,{SummaryDetail:function(){return g},SummaryDetailContent:function(){return k},SummaryDetailHeading:function(){return y},SummaryDetailHeadingContent:function(){return b},SummaryDetailToggleButton:function(){return w},useSummaryDetailState:function(){return a.bV}});var r=n(1413),o=n(4925),i=n(1923),a=n(4086),s=n(9628),l=n(2791),c=n(9741),u=n(7087),d=["children","element","state"],f=["children","element"],p=["children","element"],h=["element"],m=["children","element"],v=l.createContext(void 0),g=l.forwardRef((function(e,t){var n=e.children,c=e.element,u=void 0===c?"SUMMARY_DETAIL":c,f=e.state,p=(0,o.Z)(e,d),h=(0,s.Dt)(),m=f||(0,a.bV)(p);return l.createElement(v.Provider,{value:(0,r.Z)((0,r.Z)({},m),{},{headerId:h})},l.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(p)),{},{ref:t,element:u,display:"flex",flexDirection:"column",rowGap:"space40"}),n))}));g.displayName="SummaryDetail";var y=l.forwardRef((function(e,t){var n=e.children,a=e.element,s=void 0===a?"SUMMARY_DETAIL_HEADING":a,c=(0,o.Z)(e,f);return l.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,display:"flex",alignItems:"center",columnGap:"space40",element:s}),n)}));y.displayName="SummaryDetailHeading";var b=l.forwardRef((function(e,t){var n=e.children,a=e.element,s=void 0===a?"SUMMARY_DETAIL_HEADING_CONTENT":a,c=(0,o.Z)(e,p),u=l.useContext(v);return l.createElement(i.Box,(0,r.Z)((0,r.Z)({ref:t},(0,i.safelySpreadBoxProps)(c)),{},{width:"100%",element:s,id:null===u||void 0===u?void 0:u.headerId}),n)}));b.displayName="SummaryDetailHeadingContent";var x=l.forwardRef((function(e,t){var n=e["aria-expanded"]?"90":"0",o=e["aria-label"]?void 0:e["aria-labelledby"];return l.createElement(c.Button,(0,r.Z)((0,r.Z)({ref:t,variant:"reset",size:"reset",width:"sizeIcon30",height:"sizeIcon30",borderRadius:"borderRadius20",_hover:{backgroundColor:"colorBackground"}},e),{},{"aria-labelledby":o}),l.createElement(i.Box,{as:"span",element:"".concat(e.element,"_ICON_WRAPPER"),transform:"translateX(0) rotate(".concat(n,"deg)")},l.createElement(u.i,{decorative:!0,size:"sizeIcon30",element:"".concat(e.element,"_ICON}")})))}));x.displayName="ToggleButton";var w=l.forwardRef((function(e,t){var n=e.element,i=void 0===n?"SUMMARY_DETAIL_TOGGLE_BUTTON":n,s=(0,o.Z)(e,h),c=l.useContext(v);return l.createElement(a.pJ,(0,r.Z)((0,r.Z)((0,r.Z)({},s),{},{as:x},c),{},{ref:t,element:i,"aria-labelledby":null===c||void 0===c?void 0:c.headerId}))}));w.displayName="SummaryDetailToggleButton";var k=l.forwardRef((function(e,t){var n=e.children,s=e.element,c=void 0===s?"SUMMARY_DETAIL_CONTENT":s,u=(0,o.Z)(e,m),d=l.useContext(v);return l.createElement(a.k_,(0,r.Z)((0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(u)),{},{as:i.Box},d),{},{element:c,ref:t}),n)}));k.displayName="SummaryDetailContent"},7042:function(e,t,n){"use strict";n.r(t),n.d(t,{Switch:function(){return T},SwitchGroup:function(){return w}});var r=n(885),o=n(1413),i=n(4925),a=n(463),s=n(2791),l=n(1923),c=n(324),u=n(9114),d=n(1631),f=n(4562),p=n(9132),h=n(9628),m=n(2310),v=n(2714),g=["children","element","disabled","errorText","name","onChange","orientation","i18nRequiredLabel"],y=["element","disabled","checked","isHovering","height","hasError"],b=["checked","defaultChecked","element","children","helpText","id","required","onChange"],x=s.createContext({disabled:!1,name:void 0,hasError:void 0,onChange:function(){}}),w=s.forwardRef((function(e,t){var n=e.children,r=e.element,l=void 0===r?"SWITCH_GROUP":r,c=e.disabled,u=void 0!==c&&c,d=e.errorText,f=e.name,p=e.onChange,h=e.orientation,m=void 0===h?"vertical":h,v=e.i18nRequiredLabel,y=void 0===v?"(required)":v,b=(0,i.Z)(e,g),w=s.useCallback((function(e){null===p||void 0===p||p(e.target.checked)}),[p]),k=s.useMemo((function(){return{disabled:u,name:f,onChange:w,hasError:!!d||void 0}}),[u,f,w]);return s.createElement(x.Provider,{value:k},s.createElement(a.InlineControlGroup,(0,o.Z)((0,o.Z)({},b),{},{element:l,disabled:u,errorText:d,name:f,orientation:m,ref:t,i18nRequiredLabel:y}),n))}));w.displayName="SwitchGroup";var k=function(e,t,n){return e&&!t?"colorTextIconError":n&&t?"colorTextWeaker":"currentColor"},S=s.forwardRef((function(e,t){var n=e.element,r=void 0===n?"SWITCH":n,a=e.disabled,c=void 0!==a&&a,u=e.checked,d=void 0!==u&&u,f=e.isHovering,p=e.height,h=e.hasError,g=void 0!==h&&h,b=(0,i.Z)(e,y),x=(0,v.Fg)(),w=x.space?x.space.space20:"4px",S=s.useMemo((function(){return function(e,t,n){if(e){if(e){if(!t)return"translate(10%)";if(t)return"translateX(105%)"}}else{if(!t&&n)return"translateX(15%)";if(t&&!n)return"translateX(105%)";if(t&&n)return"translateX(100%)"}return"translate(10%)"}(c,d,f)}),[c,d,f]);return s.createElement(l.Box,{width:"calc(100% - ".concat(w,")"),height:"100%",position:"absolute",transform:S,transition:"transform .2s ease-in-out"},s.createElement(l.Box,(0,o.Z)((0,o.Z)({},(0,l.safelySpreadBoxProps)(b)),{},{"aria-disabled":c,element:"".concat(r,"_KNOB"),ref:t,height:p,width:p,marginTop:"space10",transform:d?"translateX(-100%)":"translateX(0%)",transition:"transform .2s ease-in-out",borderColor:"colorBorder",borderWidth:"borderWidth10",borderRadius:"borderRadiusCircle",backgroundColor:"colorBackgroundBody"}),s.createElement(l.Box,{display:"flex",height:"100%",alignItems:"center",justifyContent:"center",opacity:d?"1":"0",transition:"opacity .2s ease-in-out, color .2s ease-in-out"},s.createElement(m.c,{decorative:!0,size:"sizeIcon05",element:"".concat(r,"_ICON"),color:k(g,c,d)}))))}));S.displayName="SwitchKnob";var _="1.75rem",E="1rem",C=s.forwardRef((function(e,t){return s.createElement(l.Box,(0,o.Z)((0,o.Z)({},e),{},{ref:t,as:"input",type:"checkbox",role:"switch",size:"size0",border:"none",overflow:"hidden",padding:"space0",margin:"space0",whiteSpace:"nowrap",textTransform:"none",position:"absolute",clip:"rect(0 0 0 0)"}))}));C.displayName="HiddenSwitch";var T=s.forwardRef((function(e,t){var n=e.checked,a=e.defaultChecked,m=e.element,v=void 0===m?"SWITCH":m,g=e.children,y=e.helpText,w=e.id,k=e.required,T=e.onChange,I=(0,i.Z)(e,b);if(null!=n&&null!=a)throw new Error("[Paste Switch] Do not provide both 'defaultChecked' and 'checked' to Switch at the same time. Please consider if you want this component to be controlled or uncontrolled.");var B=s.useState(a),O=(0,r.Z)(B,2),P=O[0],R=O[1],A=s.useState(!1),M=(0,r.Z)(A,2),N=M[0],D=M[1],L=s.useContext(x),j=(0,h.Dt)(),z=w||(0,h.Dt)(),W=s.useMemo((function(){return void 0!==n}),[]),Z=W?n:P,F=null!=I.disabled?I.disabled:L.disabled,H=null!=I.name?I.name:L.name,U=null!=I.hasError?I.hasError:L.hasError,$=s.useCallback((function(e){F||(W?T?T(e):L.onChange(e):R(e.currentTarget.checked))}),[T,L.onChange,F]);return s.createElement(l.Box,{element:v,display:"inline-flex",position:"relative",flexDirection:"column"},s.createElement(C,(0,o.Z)((0,o.Z)({},(0,l.safelySpreadBoxProps)(I)),{},{checked:n,defaultChecked:a,disabled:F,name:H,onChange:$,"aria-describedby":j,"aria-checked":Z,"aria-invalid":U,id:z,required:k,ref:t})),s.createElement(u.Label,{disabled:F,htmlFor:z,marginBottom:"space0"},s.createElement(l.Box,{as:"span",display:"flex"},s.createElement(f.SiblingBox,{element:"".concat(v,"_CONTROL"),as:"span",outline:"none",position:"relative",display:"inline-block",boxSizing:"content-box",height:E,width:_,marginTop:"space10",overflow:"hidden",borderColor:"colorBorder",borderWidth:"borderWidth10",borderRadius:"borderRadiusPill",transition:"background-color .2s ease-in-out, box-shadow .2s ease-in-out",backgroundColor:"colorBackgroundStronger",cursor:"pointer",onMouseEnter:function(){D(!0)},onMouseLeave:function(){D(!1)},_hoverSibling:{backgroundColor:"colorBackgroundStrongest"},_focusSibling:{boxShadow:"shadowFocus"},_checkedSibling:{backgroundColor:"colorBackgroundPrimary",color:"colorTextPrimary"},_disabledSibling:{backgroundColor:"colorBackgroundStrong",color:"currentColor",cursor:"not-allowed"},_checkedAndHoverSibling:{color:"colorTextIcon",backgroundColor:"colorBackgroundStrongest"},_invalidSibling:{backgroundColor:"colorBackgroundError"},_invalidAndHoverSibling:{backgroundColor:"colorBackgroundErrorStrongest"},_invalidAndDisabledSibling:{backgroundColor:"colorBackgroundStrong"}},s.createElement(S,{element:v,disabled:F,checked:Z,isHovering:N,height:"0.75rem",hasError:U})),s.createElement(p.Text,{element:"".concat(v,"_LABEL_TEXT"),as:"span",color:"currentColor",marginLeft:"space30",fontWeight:"fontWeightMedium"},s.createElement(d.MediaObject,{verticalAlign:"top"},k&&s.createElement(d.MediaFigure,{spacing:"space20"},s.createElement(u.RequiredDot,null)),s.createElement(d.MediaBody,null,g))))),y&&s.createElement(l.Box,{as:"span",display:"flex",element:"".concat(v,"_HELP_TEXT_WRAPPER")},s.createElement(l.Box,{as:"span",boxSizing:"content-box",width:_,height:E,padding:"space10","aria-hidden":!0,role:"presentation",marginRight:"space20",display:"inline-block",element:"".concat(v,"_HELP_TEXT_SPACER")}),s.createElement(c.HelpText,{id:j,marginTop:"space0",element:"".concat(v,"_HELP_TEXT")},y)))}));T.displayName="Switch"},7956:function(e,t,n){"use strict";n.r(t),n.d(t,{TBody:function(){return w},TFoot:function(){return _},THead:function(){return y},Table:function(){return v},Td:function(){return C},Th:function(){return T},Tr:function(){return E}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=n(7666),l=["element","id","isActionable","scrollHorizontally","noWrap","striped","tableLayout","variant"],c=["element","stickyHeader","top"],u=["element","children"],d=["element"],f=["element","verticalAlign"],p=["element","textAlign","whiteSpace"],h=["element","textAlign","whiteSpace","width"],m=a.createContext({striped:!1}),v=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"TABLE":n,c=e.id,u=e.isActionable,d=e.scrollHorizontally,f=e.noWrap,p=e.striped,h=void 0!==p&&p,v=e.tableLayout,g=void 0===v?"auto":v,y=e.variant,b=void 0===y?"default":y,x=(0,o.Z)(e,l),w={striped:h};return a.createElement(m.Provider,{value:w},a.createElement(i.Box,{id:c,element:"".concat(s,"_WRAPPER"),overflowX:d?"auto":null,whiteSpace:f?"nowrap":null,boxShadow:u?"shadowFocus":null},a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(x)),{},{ref:t,as:"table",borderCollapse:"separate",borderColor:"colorBorderWeaker",borderSpacing:"0",borderStyle:"solid",borderWidth:"borderless"===b?"borderWidth0":"borderWidth10",element:s,tableLayout:"fixed"===g?"fixed":"auto",width:"100%"}))))}));v.displayName="Table";var g=s.iK.thead((0,s.iv)({backgroundColor:"colorBackgroundWeak",color:"colorTextWeak",top:function(e){return e.top}})),y=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"THEAD":n,l=e.stickyHeader,u=void 0!==l&&l,d=e.top,f=void 0===d?u?"-1px":null:d,p=(0,o.Z)(e,c);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(p)),{},{ref:t,as:g,element:s,top:f},{stickyHeader:u}.stickyHeader?{position:"sticky",zIndex:"zIndex10"}:{}))}));y.displayName="THead";var b={borderBottomWidth:"borderWidth0"},x=s.iK.tbody((0,s.iv)({backgroundColor:"colorBackgroundWeakest","& > tr:last-of-type > td":b,"& > tr:last-of-type > th":b})),w=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"TBODY":n,l=e.children,c=(0,o.Z)(e,u);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({as:x},(0,i.safelySpreadBoxProps)(c)),{},{ref:t,element:s,color:"colorText"}),l)}));w.displayName="TBody";var k={borderBottomWidth:"borderWidth0",borderTopWidth:"borderWidth10",fontWeight:"fontWeightSemibold",paddingY:"space40"},S=s.iK.tfoot((0,s.iv)({"& > tr > td":k,"& > tr > th":k})),_=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"TFOOT":n,l=(0,o.Z)(e,d);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(l)),{},{ref:t,as:S,backgroundColor:"colorBackgroundWeak",color:"colorTextWeak",element:s}))}));_.displayName="TFoot";var E=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"TR":n,l=e.verticalAlign,c=void 0===l?"middle":l,u=(0,o.Z)(e,f),d=a.useContext(m).striped;return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(u)),{},{ref:t,as:"tr",element:s,verticalAlign:c,_even:{backgroundColor:d?"colorBackgroundRowStriped":"transparent"},_last:{borderWidth:"borderWidth0"}}))}));E.displayName="Tr";var C=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"TD":n,l=e.textAlign,c=void 0===l?"left":l,u=e.whiteSpace,d=(0,o.Z)(e,p);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(d)),{},{ref:t,as:"td",borderStyle:"solid",borderColor:"colorBorderWeaker",borderWidth:"borderWidth0",borderBottomWidth:"borderWidth10",element:s,fontSize:"fontSize30",lineHeight:"lineHeight30",padding:"space50",position:"relative",textAlign:c,whiteSpace:u,verticalAlign:"inherit",wordWrap:"break-word",color:"inherit"}))}));C.displayName="Td";var T=a.forwardRef((function(e,t){var n=e.element,s=void 0===n?"TH":n,l=e.textAlign,c=void 0===l?"left":l,u=e.whiteSpace,d=e.width,f=(0,o.Z)(e,h);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(f)),{},{ref:t,as:"th",borderBottomStyle:"solid",borderBottomColor:"colorBorderWeaker",borderBottomWidth:"borderWidth10",element:s,fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightSemibold",paddingBottom:"space40",paddingLeft:"space50",paddingRight:"space50",paddingTop:"space40",position:"relative",textAlign:c,whiteSpace:u,verticalAlign:"inherit",width:d,wordWrap:"break-word",color:"inherit"}))}));T.displayName="Th"},3949:function(e,t,n){"use strict";n.r(t),n.d(t,{TabPrimitive:function(){return r.OK},TabPrimitiveList:function(){return r.td},TabPrimitivePanel:function(){return r.x4},useTabPrimitiveState:function(){return r.xL}});var r=n(4086)},5747:function(e,t,n){"use strict";n.r(t),n.d(t,{Tab:function(){return P},TabList:function(){return O},TabPanel:function(){return A},TabPanels:function(){return R},Tabs:function(){return S},TabsContext:function(){return x},useTabState:function(){return l.xL}});var r=n(1413),o=n(4925),i=n(885),a=n(1923),s=n(7952),l=n(4086),c=n(2791),u=n(7666),d=n(3178),f=n(8012),p=n(2714),h=["children","element","orientation","state","variant"],m=["orientation"],v=["children","element","variant"],g=["children","element"],y=["children","element"],b=["children","element","paddingTop"],x=c.createContext({}),w=function(e,t,n){return null!==n&&void 0!==n?n:"".concat(e.toUpperCase(),"_").concat(t)},k=function(e,t,n,r){var o="left"===e?t:n;if(r&&o){var i=o.getBoundingClientRect(),a=r.getBoundingClientRect(),s=r.scrollLeft+(i.left-a.left)-a.width/2+i.width/2;r.scrollTo({left:s,behavior:"smooth"})}},S=c.forwardRef((function(e,t){var n=e.children,i=e.element,u=e.orientation,d=void 0===u?"horizontal":u,f=e.state,p=e.variant,v=(0,o.Z)(e,h),g=f||(0,l.xL)((0,r.Z)({orientation:d},v)),y=g.orientation,b=void 0===y?d:y,k=(0,o.Z)(g,m),S=w(b,"TABS",i),_=c.useMemo((function(){return(0,r.Z)((0,r.Z)({},k),{},{orientation:b,variant:p})}),[k,b,p]),E=c.createElement(x.Provider,{value:_},n);return"vertical"===b?c.createElement(s.Flex,{element:S,ref:t,wrap:!1,vAlignContent:"stretch"},E):c.createElement(a.Box,{element:S},E)}));S.displayName="Tabs";var _={color:"colorTextIcon",_hover:{color:"colorTextPrimaryStrongest",cursor:"pointer"}},E={color:"colorTextIconInverse",_hover:{color:"colorTextInverse",cursor:"pointer"}},C=function(e){var t=e.onClick,n=e.position,o=e.visible,i=e.element,s=void 0===i?"TAB_LIST":i,l=e.showShadow,u=(0,p.Fg)(),h=c.useContext(x).variant,m=null===h||void 0===h?void 0:h.includes("inverse"),v="left"===n?d.w:f.X;return o?c.createElement(a.Box,(0,r.Z)({onClick:t,"aria-hidden":!0,display:"flex",alignItems:"center",justifyContent:"center",width:"sizeBase70",padding:"space20",boxShadow:function(){if(l)return"left"===n?m?u.shadows.shadowLeftInverse:u.shadows.shadowLeft:m?u.shadows.shadowRightInverse:u.shadows.shadowRight}(),element:"".concat(s,"_OVERFLOW_BUTTON_").concat(n.toUpperCase()),zIndex:"zIndex10"},m?E:_),c.createElement(v,{decorative:!0})):null};C.displayName="OverflowButton";var T=u.iK.div((function(){return(0,u.iv)({overflowX:"auto",overflowY:"hidden",overflowScrolling:"touch","@supports (-moz-appearance:none)":{paddingBottom:"0px",scrollbarWidth:"none"},"::-webkit-scrollbar":{height:0},"::-webkit-scrollbar-track":{background:"transparent"}})})),I=function(e){var t=e.children,n=e.variant,r=e.element,o=c.useRef(null),s=c.useContext(x).selectedId,l=c.useRef(null),u="inverse"===n||"inverse_fitted"===n,d=function(){var e=c.useState(null),t=(0,i.Z)(e,2),n=t[0],r=t[1],o=c.useState(null),a=(0,i.Z)(o,2),s=a[0],l=a[1];return{elementOutOBoundsLeft:n,elementOutOBoundsRight:s,determineElementsOutOfBounds:function(e,t){if(e&&t){var n=null===e||void 0===e?void 0:e.getBoundingClientRect().right,o=null===e||void 0===e?void 0:e.getBoundingClientRect().x,i=null,a=null;t.childNodes.forEach((function(e){var t=e.getBoundingClientRect(),s=t.x,c=t.right;s<o&&c>n||(Math.round(s)<Math.round(o-28)&&(i=e),Math.round(c)>Math.round(n+28)&&!a&&(a=e)),r(i),l(a)}))}}}}(),f=d.determineElementsOutOfBounds,p=d.elementOutOBoundsLeft,h=d.elementOutOBoundsRight,m=function(){var e,t=c.useState(!1),n=(0,i.Z)(t,2),r=n[0],o=n[1];return{showShadow:r,handleShadow:function(){e&&window.clearTimeout(e),o(!0),e=window.setTimeout((function(){o(!1)}),500)}}}(),v=m.handleShadow,g=m.showShadow,y=function(){v(),f(l.current,o.current)};return c.useEffect((function(){var e;o.current&&l.current&&(null!==(e=l.current)&&void 0!==e&&e.addEventListener("scroll",y),window.addEventListener("resize",y),f(l.current,o.current))}),[o.current,l.current]),c.useEffect((function(){if(l.current&&s){var e=document.getElementById(s),t=l.current.getBoundingClientRect().width;if(e&&((null===e||void 0===e?void 0:e.getBoundingClientRect().x)<0||(null===e||void 0===e?void 0:e.getBoundingClientRect().right)>t)){var n=e.getBoundingClientRect().x-l.current.getBoundingClientRect().x;l.current.scrollLeft+=n}}}),[l.current,s]),c.useEffect((function(){return function(){l.current&&(l.current.removeEventListener("scroll",y),window.removeEventListener("resize",y))}}),[]),c.createElement(a.Box,{display:"flex",overflow:"hidden"},c.createElement(C,{position:"left",onClick:function(){return k("left",p,h,l.current)},visible:Boolean(p),element:r,showShadow:g}),c.createElement(a.Box,{as:T,ref:l,flexGrow:1,element:"".concat(r,"_SCROLL_WRAPPER")},c.createElement(a.Box,{ref:o,position:"relative",whiteSpace:"nowrap",element:r,display:"flex",columnGap:"space20",paddingTop:"1px",boxShadow:u?"shadowBorderBottomInverseWeakerInset":"shadowBorderBottomWeakInset",width:h||p?"max-content":"auto"},t,c.createElement(a.Box,{position:"absolute",width:"100%",height:"1px",backgroundColor:u?"colorBackgroundInverse":"colorBackgroundBody",bottom:"-1px"}))),c.createElement(C,{position:"right",onClick:function(){return k("right",p,h,l.current)},visible:Boolean(h),element:r,showShadow:g}))};I.displayName="HorizontalTabList";var B=function(e){var t=e.children,n=e.element,r=e.variant;return c.createElement(a.Box,{element:n,marginRight:"space110",minWidth:"size20",maxWidth:"size40",borderRightStyle:"solid",borderRightWidth:"borderWidth10",borderRightColor:"inverse"===r||"inverse_fitted"===r?"colorBorderInverseWeaker":"colorBorderWeak"},t)};B.displayName="VerticalTabList";var O=c.forwardRef((function(e,t){var n=e.children,i=e.element,s=e.variant,u=(0,o.Z)(e,v),d=c.useContext(x),f=d.orientation,p=w(f,"TAB_LIST",i),h="vertical"===f?B:I;return c.createElement(l.td,(0,r.Z)((0,r.Z)((0,r.Z)({},d),{},{as:a.Box},u),{},{element:p,ref:t}),c.createElement(h,{variant:s||d.variant,element:"".concat(p,"_CHILD")},n))}));O.displayName="TabList";var P=c.forwardRef((function(e,t){var n=e.children,i=e.element,s=(0,o.Z)(e,g),u=c.useContext(x),d=c.useMemo((function(){return function(e,t){var n="inverse"===t||"inverse_fitted"===t||"inverse_full_width"===t,r="fitted"===t||"inverse_fitted"===t||"full_width"===t||"inverse_full_width"===t;return"vertical"===e?{color:n?"colorTextInverseWeak":"colorTextWeak",display:"block",marginBottom:"space30",paddingBottom:"space30",paddingLeft:"space50",paddingRight:"space50",paddingTop:"space30",_last:{marginBottom:"space0"},_selected:{color:n?"colorTextInverse":"colorTextLink"},_hover:{color:n?"colorTextInverse":"colorTextLinkStronger",boxShadow:n?"shadowBorderRightInverseStrong":"none"},_disabled:{borderLeftColor:"transparent",color:n?"colorTextInverseWeakest":"colorTextWeaker",boxShadow:"none"},_disabled_focus:{boxShadow:"none"},_focus:{boxShadow:n?"shadowFocusInverseInset":"shadowFocusInset",outline:"none",borderTopLeftRadius:"borderRadius30",borderBottomLeftRadius:"borderRadius30"},_selected_after:{content:'" "',position:"absolute",height:"80%",width:"4px",backgroundColor:n?"colorBackgroundInverseStrongest":"colorBackgroundPrimary",borderTopLeftRadius:"borderRadius30",borderBottomLeftRadius:"borderRadius30",right:-1,top:"10%"},_selected_hover:{boxShadow:"none"},_selected_hover_after:{content:'" "',position:"absolute",height:"80%",width:"4px",backgroundColor:n?"colorBackgroundPrimary":"colorBackgroundPrimaryStrongest",borderTopLeftRadius:"borderRadius30",borderBottomLeftRadius:"borderRadius30",right:-1,top:"10%"},_focus_selected_after:{display:"none"},_focus_selected_hover_after:{display:"none"},_disabled_focus_after:{content:'" "',position:"absolute",height:"80%",width:"4px",backgroundColor:n?"colorBackgroundInverseStronger":"colorBackgroundStrong",borderTopLeftRadius:"borderRadius30",borderBottomLeftRadius:"borderRadius30",right:-1,top:"10%"}}:{color:n?"colorTextInverseWeak":"colorTextWeak",borderColor:"transparent",borderStyle:"solid",borderWidth:"borderWidth10",borderBottomWidth:"borderWidth20",borderTopLeftRadius:"borderRadius30",borderTopRightRadius:"borderRadius30",display:"inline-block",flexBasis:r?"50%":void 0,flexGrow:r?1:void 0,flexShrink:r?1:void 0,minWidth:"sizeSquare130",paddingY:"space30",paddingX:"space50",textAlign:"center",bottom:"-1px",_selected:{borderColor:n?"colorBorderInverse":"colorBorderWeak",borderBottomColor:n?"colorBorderInverseWeakest":"colorBorderWeakest",color:n?"colorTextInverse":"colorTextPrimary",boxShadow:n?"shadowBorderTopInverseStrongest":"shadowBorderTopPrimary",backgroundColor:n?"colorBackgroundInverse":"colorBackgroundBody"},_disabled:{borderBottomColor:"transparent",color:n?"colorTextInverseWeakest":"colorTextWeaker"},_hover:{color:n?"colorTextInverse":"colorTextPrimaryStrongest",borderBottomColor:n?"colorBorderInverseStrong":"transparent"},_selected_hover:{color:n?"colorTextInverse":"colorTextPrimaryStronger",borderBottomColor:"transparent",boxShadow:n?"shadowBorderTopPrimary":"shadowBorderTopPrimaryStrongest"},_focus:{outline:"none",borderColor:"colorBorderPrimary",boxShadow:"shadowFocusInset",borderBottomColor:"colorBorderPrimary"},_selected_focus:{borderStyle:"solid",boxShadow:"shadowFocusInset",color:n?"colorTextInverse":"colorTextPrimary",borderColor:"colorBorderPrimary"},_disabled_focus:{borderColor:n?"colorBorderInverseWeaker":"colorBorderWeak",boxShadow:"none",borderBottom:"none",overflow:"clip"}}}(u.orientation,u.variant)}),[u.orientation,u.variant]),f=u.orientation,p=u.variant,h=w(f,"TAB",i);return c.createElement(l.OK,(0,r.Z)((0,r.Z)((0,r.Z)({},u),s),{},{orientation:"vertical"===f?void 0:"horizontal",ref:t}),(function(e){return c.createElement(a.Box,(0,r.Z)((0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(e)),d),{},{as:"span",cursor:e["aria-disabled"]?"not-allowed":"pointer",element:h,fontSize:"fontSize30",lineHeight:"lineHeight30",fontWeight:"fontWeightMedium",overflow:"vertical"!==f?"hidden":void 0,position:"relative",textOverflow:"vertical"!==f?"ellipsis":void 0,transition:"border-color 100ms ease, color 100ms ease",whiteSpace:"vertical"!==f?"nowrap":void 0,minWidth:"fitted"===p||"inverse_fitted"===p?"auto":"fit-content"}),n)}))}));P.displayName="Tab";var R=c.forwardRef((function(e,t){var n=e.children,i=e.element,s=(0,o.Z)(e,y),l=c.useContext(x).orientation,u=w(l,"TAB_PANELS",i);return c.createElement(a.Box,(0,r.Z)((0,r.Z)({},(0,a.safelySpreadBoxProps)(s)),{},{element:u,width:"100%",ref:t}),n)}));R.displayName="TabPanels";var A=c.forwardRef((function(e,t){var n=e.children,i=e.element,s=e.paddingTop,u=void 0===s?"space60":s,d=(0,o.Z)(e,b),f=c.useContext(x),p=w(f.orientation,"TAB_PANEL",i);return c.createElement(l.x4,(0,r.Z)((0,r.Z)((0,r.Z)({},f),{},{paddingTop:u,borderRadius:"borderRadius20",_focusVisible:{boxShadow:"shadowFocusInset",outline:"none"}},d),{},{element:p,as:a.Box,ref:t}),n)}));A.displayName="TabPanel"},9132:function(e,t,n){"use strict";n.r(t),n.d(t,{TEXT_PROPS_TO_BLOCK:function(){return E},Text:function(){return B},safelySpreadTextProps:function(){return C}});var r,o,i=n(1413),a=n(2982),s=n(4925),l=n(7762),c=n(7666),u=n(2791),d=n(2393),f=["variants"],p=["children","color","fontSize","lineHeight","element"],h=Object.create,m=Object.defineProperty,v=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,y=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,x=(r={"../../../../node_modules/deepmerge/dist/cjs.js":function(e,t){var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(n){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=o(e[t],n)})),a(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"==typeof n?n:c}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||i,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var a=Array.isArray(t);return a===Array.isArray(e)?a?r.arrayMerge(e,t,r):l(e,t,r):o(t,r)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;t.exports=u}},function(){return o||(0,r[g(r)[0]])((o={exports:{}}).exports,o),o.exports}),w={color:{property:"color",scale:"textColors"},cursor:!0,outline:!0,transition:!0,transitionDelay:!0,textDecoration:!0,textTransform:!0,whiteSpace:!0,wordBreak:!0,wordWrap:!0,fontVariantNumeric:!0,textOverflow:!0,overflowWrap:!0,listStyleType:!0,listStylePosition:!0,listStyleImage:!0},k={_hover:"&:hover",_active:"&:active, &[data-active=true]",_focus:"&:focus",_visited:"&:visited",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_disabled:"&:disabled, &:disabled:focus, &:disabled:hover, &[aria-disabled=true], &[aria-disabled=true]:focus, &[aria-disabled=true]:hover",_checked:"&:checked, &[aria-checked=true]",_mixed:"&:indeterminate, &[aria-checked=mixed]",_selected:"&[aria-selected=true]",_selected_hover:"&[aria-selected=true]:hover",_selected_focus:"&[aria-selected=true]:focus",_selected_focusVisible:"&[aria-selected=true]:focus-visible",_invalid:"&:invalid, &[aria-invalid=true]",_pressed:"&[aria-pressed=true]",_readOnly:"&[aria-readonly=true], &[readonly]",_first:"&:first-of-type",_last:"&:last-of-type",_expanded:"&[aria-expanded=true]",_grabbed:"&[aria-grabbed=true]",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_before:"&:before",_after:"&:after",_focusWithin:"&:focus-within"},S=function(e,t,n){return n=null!=e?h(y(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(g(t));try{var a=function(){var i=o.value;!b.call(e,i)&&i!==n&&m(e,i,{get:function(){return t[i]},enumerable:!(r=v(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!t&&e&&e.__esModule?n:m(n,"default",{value:e,enumerable:!0}),e)}(x()),_=(0,c.By)(w),E=[].concat((0,a.Z)(d.Dk),(0,a.Z)(d.bu),(0,a.Z)(d.eD),(0,a.Z)(d.C8),(0,a.Z)(Object.keys(k)),["display","verticalAlign","className","style"]),C=function(e){return Object.keys(e).reduce((function(t,n){return E.includes(n)||(t[n]=e[n]),t}),{})},T=(0,c.MS)([].concat((0,a.Z)(c.NQ),(0,a.Z)(Object.keys((0,i.Z)((0,i.Z)({},w),k))))),I=(0,c.iK)("div",{shouldForwardProp:T})({margin:0,padding:0},(0,c.qC)(c.Wn,c.jf,c.tx,c.FK,c.Dh,c.cp,c.Lo,_),(function(e){var t=Object.keys(e).filter((function(e){return e.startsWith("_")}));if(0===t.length)return{};var n={};return t.forEach((function(t){null!=k[t]&&(n[k[t]]=e[t])})),(0,c.iv)(n)}),(function(e){if(null!=e&&null!=e.theme&&null!=e.theme.elements){var t=e.theme.elements,n=e["data-paste-element"];if(null!=t[n]){var r=t[n],o=(0,c.iv)(r)(e),i=o.variants,a=(0,s.Z)(o,f),l={};return null!=e.variant&&null!=i&&null!=i[e.variant]&&(l=i[e.variant]),function(){return(0,S.default)(a,l)}}}return{}})),B=u.forwardRef((function(e,t){var n=e.children,r=e.color,o=void 0===r?"colorText":r,a=e.fontSize,l=void 0===a?"fontSize30":a,c=e.lineHeight,d=void 0===c?"lineHeight30":c,f=e.element,h=void 0===f?"TEXT":f,m=(0,s.Z)(e,p);return u.createElement(I,(0,i.Z)({"data-paste-element":h,"data-paste-core-version":"21.0.1",ref:t,color:o,fontSize:l,lineHeight:d},m),n)}));B.displayName="Text"},3514:function(e,t,n){"use strict";n.r(t),n.d(t,{TextArea:function(){return ot}});var r=n(1413),o=n(4925),i=n(1923),a=n(2374),s=n(885),l=n(7762),c=n(3217),u=n(2791),d=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],f=Object.create,p=Object.defineProperty,h=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,v=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,y=function(e,t){return function(){return t||(0,e[m(e)[0]])((t={exports:{}}).exports,t),t.exports}},b=y({"../../../node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;t.exports=n}}),x=y({"../../../node_modules/lodash/_freeGlobal.js":function(e,t){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r}}),w=y({"../../../node_modules/lodash/_root.js":function(e,t){var n=x(),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();t.exports=o}}),k=y({"../../../node_modules/lodash/_Symbol.js":function(e,t){var n=w().Symbol;t.exports=n}}),S=y({"../../../node_modules/lodash/_getRawTag.js":function(e,t){var n=k(),r=Object.prototype,o=r.hasOwnProperty,i=r.toString,a=n?n.toStringTag:void 0;t.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(l){}var s=i.call(e);return r&&(t?e[a]=n:delete e[a]),s}}}),_=y({"../../../node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}}}),E=y({"../../../node_modules/lodash/_baseGetTag.js":function(e,t){var n=k(),r=S(),o=_(),i=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?r(e):o(e)}}}),C=y({"../../../node_modules/lodash/isObjectLike.js":function(e,t){t.exports=function(e){return null!=e&&"object"==typeof e}}}),T=y({"../../../node_modules/lodash/isSymbol.js":function(e,t){var n=E(),r=C();t.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}}}),I=y({"../../../node_modules/lodash/_isKey.js":function(e,t){var n=b(),r=T(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(e,t){if(n(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!r(e))||(i.test(e)||!o.test(e)||null!=t&&e in Object(t))}}}),B=y({"../../../node_modules/lodash/isObject.js":function(e,t){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}}),O=y({"../../../node_modules/lodash/isFunction.js":function(e,t){var n=E(),r=B();t.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}}),P=y({"../../../node_modules/lodash/_coreJsData.js":function(e,t){var n=w()["__core-js_shared__"];t.exports=n}}),R=y({"../../../node_modules/lodash/_isMasked.js":function(e,t){var n=P(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=function(e){return!!r&&r in e}}}),A=y({"../../../node_modules/lodash/_toSource.js":function(e,t){var n=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(r){}}return""}}}),M=y({"../../../node_modules/lodash/_baseIsNative.js":function(e,t){var n=O(),r=R(),o=B(),i=A(),a=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!o(e)||r(e))&&(n(e)?d:a).test(i(e))}}}),N=y({"../../../node_modules/lodash/_getValue.js":function(e,t){t.exports=function(e,t){return null===e||void 0===e?void 0:e[t]}}}),D=y({"../../../node_modules/lodash/_getNative.js":function(e,t){var n=M(),r=N();t.exports=function(e,t){var o=r(e,t);return n(o)?o:void 0}}}),L=y({"../../../node_modules/lodash/_nativeCreate.js":function(e,t){var n=D()(Object,"create");t.exports=n}}),j=y({"../../../node_modules/lodash/_hashClear.js":function(e,t){var n=L();t.exports=function(){this.__data__=n?n(null):{},this.size=0}}}),z=y({"../../../node_modules/lodash/_hashDelete.js":function(e,t){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}}),W=y({"../../../node_modules/lodash/_hashGet.js":function(e,t){var n=L(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(n){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return r.call(t,e)?t[e]:void 0}}}),Z=y({"../../../node_modules/lodash/_hashHas.js":function(e,t){var n=L(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}}}),F=y({"../../../node_modules/lodash/_hashSet.js":function(e,t){var n=L();t.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}}}),H=y({"../../../node_modules/lodash/_Hash.js":function(e,t){var n=j(),r=z(),o=W(),i=Z(),a=F();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),U=y({"../../../node_modules/lodash/_listCacheClear.js":function(e,t){t.exports=function(){this.__data__=[],this.size=0}}}),$=y({"../../../node_modules/lodash/eq.js":function(e,t){t.exports=function(e,t){return e===t||e!==e&&t!==t}}}),G=y({"../../../node_modules/lodash/_assocIndexOf.js":function(e,t){var n=$();t.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}}}),q=y({"../../../node_modules/lodash/_listCacheDelete.js":function(e,t){var n=G(),r=Array.prototype.splice;t.exports=function(e){var t=this.__data__,o=n(t,e);return!(o<0)&&(o==t.length-1?t.pop():r.call(t,o,1),--this.size,!0)}}}),K=y({"../../../node_modules/lodash/_listCacheGet.js":function(e,t){var n=G();t.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}}}),V=y({"../../../node_modules/lodash/_listCacheHas.js":function(e,t){var n=G();t.exports=function(e){return n(this.__data__,e)>-1}}}),Y=y({"../../../node_modules/lodash/_listCacheSet.js":function(e,t){var n=G();t.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}}}),X=y({"../../../node_modules/lodash/_ListCache.js":function(e,t){var n=U(),r=q(),o=K(),i=V(),a=Y();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),J=y({"../../../node_modules/lodash/_Map.js":function(e,t){var n=D()(w(),"Map");t.exports=n}}),Q=y({"../../../node_modules/lodash/_mapCacheClear.js":function(e,t){var n=H(),r=X(),o=J();t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}}}),ee=y({"../../../node_modules/lodash/_isKeyable.js":function(e,t){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}}),te=y({"../../../node_modules/lodash/_getMapData.js":function(e,t){var n=ee();t.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}}}),ne=y({"../../../node_modules/lodash/_mapCacheDelete.js":function(e,t){var n=te();t.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}}}),re=y({"../../../node_modules/lodash/_mapCacheGet.js":function(e,t){var n=te();t.exports=function(e){return n(this,e).get(e)}}}),oe=y({"../../../node_modules/lodash/_mapCacheHas.js":function(e,t){var n=te();t.exports=function(e){return n(this,e).has(e)}}}),ie=y({"../../../node_modules/lodash/_mapCacheSet.js":function(e,t){var n=te();t.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}}}),ae=y({"../../../node_modules/lodash/_MapCache.js":function(e,t){var n=Q(),r=ne(),o=re(),i=oe(),a=ie();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),se=y({"../../../node_modules/lodash/memoize.js":function(e,t){var n=ae();function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return o.cache=new(r.Cache||n),o}r.Cache=n,t.exports=r}}),le=y({"../../../node_modules/lodash/_memoizeCapped.js":function(e,t){var n=se();t.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}}}),ce=y({"../../../node_modules/lodash/_stringToPath.js":function(e,t){var n=le(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));t.exports=i}}),ue=y({"../../../node_modules/lodash/_arrayMap.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}}}),de=y({"../../../node_modules/lodash/_baseToString.js":function(e,t){var n=k(),r=ue(),o=b(),i=T(),a=n?n.prototype:void 0,s=a?a.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(i(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}}}),fe=y({"../../../node_modules/lodash/toString.js":function(e,t){var n=de();t.exports=function(e){return null==e?"":n(e)}}}),pe=y({"../../../node_modules/lodash/_castPath.js":function(e,t){var n=b(),r=I(),o=ce(),i=fe();t.exports=function(e,t){return n(e)?e:r(e,t)?[e]:o(i(e))}}}),he=y({"../../../node_modules/lodash/_toKey.js":function(e,t){var n=T();t.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}}}),me=y({"../../../node_modules/lodash/_baseGet.js":function(e,t){var n=pe(),r=he();t.exports=function(e,t){for(var o=0,i=(t=n(t,e)).length;null!=e&&o<i;)e=e[r(t[o++])];return o&&o==i?e:void 0}}}),ve=y({"../../../node_modules/lodash/_defineProperty.js":function(e,t){var n=D(),r=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.exports=r}}),ge=y({"../../../node_modules/lodash/_baseAssignValue.js":function(e,t){var n=ve();t.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}}}),ye=y({"../../../node_modules/lodash/_assignValue.js":function(e,t){var n=ge(),r=$(),o=Object.prototype.hasOwnProperty;t.exports=function(e,t,i){var a=e[t];(!o.call(e,t)||!r(a,i)||void 0===i&&!(t in e))&&n(e,t,i)}}}),be=y({"../../../node_modules/lodash/_isIndex.js":function(e,t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var r,o=typeof e;return!!(t=null!==(r=t)&&void 0!==r?r:9007199254740991)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<t}}}),xe=y({"../../../node_modules/lodash/_baseSet.js":function(e,t){var n=ye(),r=pe(),o=be(),i=B(),a=he();t.exports=function(e,t,s,l){if(!i(e))return e;for(var c=-1,u=(t=r(t,e)).length,d=u-1,f=e;null!=f&&++c<u;){var p=a(t[c]),h=s;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=f[p];void 0===(h=l?l(m,p,f):void 0)&&(h=i(m)?m:o(t[c+1])?[]:{})}n(f,p,h),f=f[p]}return e}}}),we=y({"../../../node_modules/lodash/_basePickBy.js":function(e,t){var n=me(),r=xe(),o=pe();t.exports=function(e,t,i){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=n(e,c);i(u,c)&&r(l,o(c,e),u)}return l}}}),ke=y({"../../../node_modules/lodash/_baseHasIn.js":function(e,t){t.exports=function(e,t){return null!=e&&t in Object(e)}}}),Se=y({"../../../node_modules/lodash/_baseIsArguments.js":function(e,t){var n=E(),r=C();t.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}}}),_e=y({"../../../node_modules/lodash/isArguments.js":function(e,t){var n=Se(),r=C(),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return r(e)&&i.call(e,"callee")&&!a.call(e,"callee")};t.exports=s}}),Ee=y({"../../../node_modules/lodash/isLength.js":function(e,t){t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}}),Ce=y({"../../../node_modules/lodash/_hasPath.js":function(e,t){var n=pe(),r=_e(),o=b(),i=be(),a=Ee(),s=he();t.exports=function(e,t,l){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var f=s(t[c]);if(!(d=null!=e&&l(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&a(u)&&i(f,u)&&(o(e)||r(e))}}}),Te=y({"../../../node_modules/lodash/hasIn.js":function(e,t){var n=ke(),r=Ce();t.exports=function(e,t){return null!=e&&r(e,t,n)}}}),Ie=y({"../../../node_modules/lodash/_basePick.js":function(e,t){var n=we(),r=Te();t.exports=function(e,t){return n(e,t,(function(t,n){return r(e,n)}))}}}),Be=y({"../../../node_modules/lodash/_arrayPush.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}}),Oe=y({"../../../node_modules/lodash/_isFlattenable.js":function(e,t){var n=k(),r=_e(),o=b(),i=n?n.isConcatSpreadable:void 0;t.exports=function(e){return o(e)||r(e)||!!(i&&e&&e[i])}}}),Pe=y({"../../../node_modules/lodash/_baseFlatten.js":function(e,t){var n=Be(),r=Oe();t.exports=function e(t,o,i,a,s){var l=-1,c=t.length;for(i||(i=r),s||(s=[]);++l<c;){var u=t[l];o>0&&i(u)?o>1?e(u,o-1,i,a,s):n(s,u):a||(s[s.length]=u)}return s}}}),Re=y({"../../../node_modules/lodash/flatten.js":function(e,t){var n=Pe();t.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}}}),Ae=y({"../../../node_modules/lodash/_apply.js":function(e,t){t.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}}}),Me=y({"../../../node_modules/lodash/_overRest.js":function(e,t){var n=Ae(),r=Math.max;t.exports=function(e,t,o){return t=r(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=r(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=o(l),n(e,this,c)}}}}),Ne=y({"../../../node_modules/lodash/constant.js":function(e,t){t.exports=function(e){return function(){return e}}}}),De=y({"../../../node_modules/lodash/identity.js":function(e,t){t.exports=function(e){return e}}}),Le=y({"../../../node_modules/lodash/_baseSetToString.js":function(e,t){var n=Ne(),r=ve(),o=De(),i=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;t.exports=i}}),je=y({"../../../node_modules/lodash/_shortOut.js":function(e,t){var n=Date.now;t.exports=function(e){var t=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}}}),ze=y({"../../../node_modules/lodash/_setToString.js":function(e,t){var n=Le(),r=je()(n);t.exports=r}}),We=y({"../../../node_modules/lodash/_flatRest.js":function(e,t){var n=Re(),r=Me(),o=ze();t.exports=function(e){return o(r(e,void 0,n),e+"")}}}),Ze=y({"../../../node_modules/lodash/pick.js":function(e,t){var n=Ie(),r=We()((function(e,t){return null==e?{}:n(e,t)}));t.exports=r}}),Fe={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},He=function(e){Object.keys(Fe).forEach((function(t){e.style.setProperty(t,Fe[t],"important")}))},Ue=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize};var $e,Ge,qe,Ke=($e=Ze(),qe=null!=$e?f(v($e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var o,i=(0,l.Z)(m(t));try{var a=function(){var i=o.value;!g.call(e,i)&&i!==n&&p(e,i,{get:function(){return t[i]},enumerable:!(r=h(t,i))||r.enumerable})};for(i.s();!(o=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return e}(!Ge&&$e&&$e.__esModule?qe:p(qe,"default",{value:$e,enumerable:!0}),$e)),Ve=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Ye=typeof document<"u"&&Boolean(document.documentElement.currentStyle),Xe=u.useLayoutEffect,Je=function(e){var t=function(e){var t=u.useRef(e);return Xe((function(){t.current=e})),t}(e);u.useLayoutEffect((function(){var e=function(e){t.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},Qe=function(e,t){var n=e.cacheMeasurements,i=e.maxRows,a=e.minRows,l=e.onChange,f=void 0===l?function(){}:l,p=e.onHeightChange,h=void 0===p?function(){}:p,m=(0,o.Z)(e,d),v=void 0!==m.value&&void 0!==f,g=u.useRef(null),y=(0,c.qq)(g,t),b=u.useRef(0),x=u.useRef(void 0),w=function(){var e=u.useState(null),t=(0,s.Z)(e,2),n=t[0],r=t[1];return u.useEffect((function(){var e=document.createElement("textarea");return e.setAttribute("tabindex","-1"),e.setAttribute("aria-hidden","true"),He(e),document.body.append(e),r(e),function(){e.remove(),r(null)}}),[]),n}(),k=function(){var e=g.current,t=n&&x.current?x.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=(0,Ke.default)(t,Ve),r=n.borderBottomWidth,o=n.borderLeftWidth,i=n.borderRightWidth,a=n.borderTopWidth,s=n.boxSizing,l=n.paddingBottom,c=n.paddingLeft,u=n.paddingRight,d=n.paddingTop,f=n.width;if(""===s)return null;if(Ye&&"border-box"===s){var p=Number.parseFloat(f)+Number.parseFloat(i)+Number.parseFloat(o)+Number.parseFloat(u)+Number.parseFloat(c);n.width="".concat(p,"px")}return{sizingStyle:n,paddingSize:Number.parseFloat(l)+Number.parseFloat(d),borderSize:Number.parseFloat(r)+Number.parseFloat(a)}}(e);if(t){x.current=t;var r=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:999,i=t.paddingSize,a=t.borderSize,s=t.sizingStyle,l=s.boxSizing;if(null==e)return[0,0];Object.keys(s).forEach((function(t){var n=t;e.style[n]=s[n]})),He(e),e.value=n;var c=Ue(e,t);e.value="x";var u=Math.max(e.scrollHeight-i,0),d=u*r;"border-box"===l&&(d=d+i+a),c=Math.max(d,c);var f=u*o;return"border-box"===l&&(f=f+i+a),[c=Math.max(Math.min(f,c),0),u]}(w,t,e.value||e.placeholder||"x",a,i),o=(0,s.Z)(r,2),l=o[0],c=o[1];b.current!==l&&(b.current=l,e.style.setProperty("height","".concat(l,"px"),"important"),h(l,{rowHeight:c}))}};return typeof document<"u"&&(u.useLayoutEffect(k),Je(k)),u.createElement("textarea",(0,r.Z)((0,r.Z)({},m),{},{onChange:function(e){var t,n="important"!==(null===(t=g.current)||void 0===t?void 0:t.style.getPropertyPriority("height"));!v&&!n&&k(),f(e)},ref:y}))};Qe.displayName="TexareaAutosize";var et=u.forwardRef(Qe),tt=n(7666),nt=["children","disabled","element","hasError","insertBefore","insertAfter","readOnly","variant","resize","maxRows","minRows","size","height","width"],rt=(0,tt.iK)(et)((function(e){return(0,tt.iv)({appearance:"none",background:"transparent",border:"none",borderRadius:"borderRadius30",boxShadow:"none",color:"inherit",display:"block",fontFamily:"inherit",fontSize:"fontSize30",fontWeight:"fontWeightMedium",lineHeight:"lineHeight20",outline:"none",paddingBottom:"space30",paddingLeft:"space40",paddingRight:"space40",paddingTop:"space30",resize:e.resize,width:"100%","&::placeholder":{color:"inverse"===e.variant?"colorTextInverseWeaker":"colorTextWeak",fontStyle:"italic"},"&:focus::placeholder":{color:"inverse"===e.variant?"colorTextInverseWeaker":"colorTextWeak"},"&:disabled":{color:"inverse"===e.variant?"colorTextInverseWeakest":"colorTextWeaker",cursor:"not-allowed","-webkit-text-fill-color":"inverse"===e.variant?"colorTextInverseWeakest":"colorTextWeaker","-webkit-opacity":"1"}})}),i.getCustomElementStyles),ot=u.forwardRef((function(e,t){var n=e.children,s=e.disabled,l=e.element,c=void 0===l?"TEXTAREA":l,d=e.hasError,f=e.insertBefore,p=e.insertAfter,h=e.readOnly,m=e.variant,v=e.resize,g=void 0===v?"none":v,y=e.maxRows,b=void 0===y?10:y,x=e.minRows,w=void 0===x?3:x,k=(e.size,e.height,e.width,(0,o.Z)(e,nt));return u.createElement(a.InputBox,{disabled:s,element:c,hasError:d,insertAfter:p,insertBefore:f,readOnly:h,variant:m},u.createElement(rt,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(k)),{},{"aria-invalid":d,"aria-readonly":h,disabled:s,"data-paste-element":"".concat(c,"_ELEMENT"),readOnly:h,ref:t,rows:3,minRows:w,maxRows:b,spellCheck:!0,resize:g,variant:m}),n))}));ot.displayName="TextArea"},2714:function(e,t,n){"use strict";n.d(t,{Cs:function(){return Ie},XU:function(){return Be},ko:function(){return De},Q2:function(){return We},s4:function(){return Se},dR:function(){return Ee},Fg:function(){return ze}});var r,o=n(885),i=n(4942),a=n(168),s=n(1413),l=n(4925),c=n(7666),u=n(2791),d=n(3512),f={colorBackground:"rgb(24, 37, 60)",colorBackgroundAvailable:"rgb(20, 176, 83)",colorBackgroundBody:"rgb(13, 19, 28)",colorBackgroundBodyElevation:"rgb(24, 37, 60)",colorBackgroundBodyElevationPrimary:"rgb(24, 37, 60)",colorBackgroundBodyInverse:"rgb(18, 28, 45)",colorBackgroundBrand:"rgb(18, 28, 45)",colorBackgroundBrand10:"rgb(242, 190, 90)",colorBackgroundBrand20:"rgb(81, 169, 227)",colorBackgroundBrand30:"rgb(106, 221, 178)",colorBackgroundBrandHighlight:"rgb(242, 47, 70)",colorBackgroundBrandHighlightWeakest:"rgba(242, 47, 70, 0.1)",colorBackgroundBrandStrong:"rgb(31, 48, 76)",colorBackgroundBrandStronger:"rgb(18, 28, 45)",colorBackgroundBusy:"rgb(244, 124, 34)",colorBackgroundDecorative10Weakest:"rgb(18, 28, 45)",colorBackgroundDecorative20Weakest:"rgb(3, 11, 93)",colorBackgroundDecorative30Weakest:"rgb(5, 41, 18)",colorBackgroundDecorative40Weakest:"rgb(56, 14, 120)",colorBackgroundDestructive:"rgb(219, 19, 42)",colorBackgroundDestructiveStrong:"rgb(246, 177, 177)",colorBackgroundDestructiveStronger:"rgb(252, 207, 207)",colorBackgroundDestructiveStrongest:"rgb(254, 236, 236)",colorBackgroundDestructiveWeak:"rgb(57, 71, 98)",colorBackgroundDestructiveWeaker:"rgb(31, 48, 76)",colorBackgroundDestructiveWeakest:"rgb(18, 28, 45)",colorBackgroundElevation:"rgb(31, 48, 76)",colorBackgroundError:"rgb(219, 19, 42)",colorBackgroundErrorStrong:"rgb(245, 138, 138)",colorBackgroundErrorStronger:"rgb(252, 207, 207)",colorBackgroundErrorStrongest:"rgb(254, 236, 236)",colorBackgroundErrorWeakest:"rgb(49, 12, 12)",colorBackgroundInverse:"rgb(31, 48, 76)",colorBackgroundInverseElevation:"rgb(37, 57, 91)",colorBackgroundInverseStrong:"rgb(57, 71, 98)",colorBackgroundInverseStrongElevation:"rgb(37, 57, 91)",colorBackgroundInverseStronger:"rgb(57, 71, 98)",colorBackgroundInverseStrongerElevation:"rgb(64, 79, 110)",colorBackgroundInverseStrongest:"rgb(255, 255, 255)",colorBackgroundInverseWeakElevation:"rgb(37, 57, 91)",colorBackgroundNeutralWeakest:"rgb(3, 11, 93)",colorBackgroundNew:"rgb(56, 14, 120)",colorBackgroundNewWeakest:"rgb(18, 28, 45)",colorBackgroundNotification:"rgb(219, 19, 42)",colorBackgroundOffline:"rgb(139, 147, 170)",colorBackgroundOverlay:"rgba(18, 28, 45, 0.9)",colorBackgroundPrimary:"rgb(2, 99, 224)",colorBackgroundPrimaryStrong:"rgb(153, 205, 255)",colorBackgroundPrimaryStronger:"rgb(204, 228, 255)",colorBackgroundPrimaryStrongest:"rgb(235, 244, 255)",colorBackgroundPrimaryWeak:"rgb(57, 71, 98)",colorBackgroundPrimaryWeaker:"rgb(31, 48, 76)",colorBackgroundPrimaryWeakest:"rgb(18, 28, 45)",colorBackgroundRequired:"rgb(236, 91, 91)",colorBackgroundRowStriped:"rgb(18, 28, 45)",colorBackgroundStrong:"rgb(31, 48, 76)",colorBackgroundStrongElevation:"rgb(37, 57, 91)",colorBackgroundStronger:"rgb(96, 107, 133)",colorBackgroundStrongest:"rgb(225, 227, 234)",colorBackgroundSubaccount:"rgb(18, 28, 45)",colorBackgroundSuccess:"rgb(20, 176, 83)",colorBackgroundSuccessWeakest:"rgb(5, 41, 18)",colorBackgroundTrial:"rgb(5, 41, 18)",colorBackgroundUnavailable:"rgb(219, 19, 42)",colorBackgroundUser:"rgb(34, 9, 74)",colorBackgroundWarning:"rgb(244, 124, 34)",colorBackgroundWarningWeakest:"rgb(64, 19, 15)",colorBackgroundWeak:"rgb(18, 28, 45)",colorBackgroundWeakElevation:"rgb(31, 48, 76)",colorBackgroundWeaker:"rgb(18, 28, 45)",colorBackgroundWeakerElevation:"rgb(24, 37, 60)",colorBackgroundWeakest:"rgb(13, 19, 28)"},p={colorBorder:"rgb(96, 107, 133)",colorBorderDecorative10Weaker:"rgb(31, 48, 76)",colorBorderDecorative20Weaker:"rgb(0, 20, 137)",colorBorderDecorative30Weaker:"rgb(13, 58, 31)",colorBorderDecorative40Weaker:"rgb(88, 23, 189)",colorBorderDestructive:"rgb(219, 19, 42)",colorBorderDestructiveStrong:"rgb(246, 177, 177)",colorBorderDestructiveStronger:"rgb(252, 207, 207)",colorBorderDestructiveStrongest:"rgb(254, 236, 236)",colorBorderDestructiveWeak:"rgb(57, 71, 98)",colorBorderDestructiveWeaker:"rgb(31, 48, 76)",colorBorderDestructiveWeakest:"rgb(18, 28, 45)",colorBorderError:"rgb(219, 19, 42)",colorBorderErrorStrong:"rgb(246, 177, 177)",colorBorderErrorStronger:"rgb(252, 207, 207)",colorBorderErrorStrongest:"rgb(254, 236, 236)",colorBorderErrorWeak:"rgb(173, 17, 17)",colorBorderErrorWeaker:"rgb(117, 12, 12)",colorBorderErrorWeakest:"rgb(49, 12, 12)",colorBorderInverse:"rgb(136, 145, 170)",colorBorderInverseStrong:"rgb(225, 227, 234)",colorBorderInverseStronger:"rgb(244, 244, 246)",colorBorderInverseStrongest:"rgb(255, 255, 255)",colorBorderInverseWeaker:"rgb(57, 71, 98)",colorBorderInverseWeakest:"rgb(31, 48, 76)",colorBorderNeutral:"rgb(2, 99, 224)",colorBorderNeutralWeak:"rgb(4, 60, 181)",colorBorderNeutralWeaker:"rgb(0, 20, 137)",colorBorderNewWeak:"rgb(109, 46, 209)",colorBorderNewWeaker:"rgb(88, 23, 189)",colorBorderPrimary:"rgb(0, 109, 250)",colorBorderPrimaryStrong:"rgb(153, 205, 255)",colorBorderPrimaryStronger:"rgb(204, 228, 255)",colorBorderPrimaryStrongest:"rgb(235, 244, 255)",colorBorderPrimaryWeak:"rgb(57, 71, 98)",colorBorderPrimaryWeaker:"rgb(31, 48, 76)",colorBorderPrimaryWeakest:"rgb(18, 28, 45)",colorBorderStrong:"rgb(136, 145, 170)",colorBorderSuccess:"rgb(20, 176, 83)",colorBorderSuccessWeak:"rgb(14, 124, 58)",colorBorderSuccessWeaker:"rgb(13, 58, 31)",colorBorderSuccessWeakest:"rgb(5, 41, 18)",colorBorderUser:"rgb(88, 23, 189)",colorBorderWarning:"rgb(244, 124, 34)",colorBorderWarningWeak:"rgb(195, 83, 35)",colorBorderWarningWeaker:"rgb(84, 25, 20)",colorBorderWarningWeakest:"rgb(64, 19, 15)",colorBorderWeak:"rgb(57, 71, 98)",colorBorderWeaker:"rgb(31, 48, 76)",colorBorderWeakest:"rgb(13, 19, 28)"},h={shadow:"0 4px 16px 0 rgba(0, 0, 0, 0.5)",shadowBorder:"0 0 0 1px #606b85",shadowBorderBottom:"0 1px 0 0 #606b85",shadowBorderBottomBrand10Strong:"0 1px 0 #855c15",shadowBorderBottomBrand20Strong:"0 1px 0 #043cb5",shadowBorderBottomBrand30Strong:"0 1px 0 #0e7c3a",shadowBorderBottomDecorative10Weaker:"0 1px 0 #1f304c",shadowBorderBottomDecorative20Weaker:"0 1px 0 #001489",shadowBorderBottomDecorative30Weaker:"0 1px 0 #0d3a1f",shadowBorderBottomDecorative40Weaker:"0 1px 0 #5817bd",shadowBorderBottomErrorWeaker:"0 1px 0 #750c0c",shadowBorderBottomInverseNewWeaker:"0 1px 0 #5817bd",shadowBorderBottomInverseWeaker:"0 1px 0 #394762",shadowBorderBottomInverseWeakerInset:"inset 0 -1px 0 0 #394762",shadowBorderBottomNeutralWeaker:"0 1px 0 #001489",shadowBorderBottomNewWeaker:"0 1px 0 #5817bd",shadowBorderBottomNotificationStronger:"0 1px 0 #4a0b0b",shadowBorderBottomPrimary:"0 1px 0 #006dfa",shadowBorderBottomSubaccount:"0 1px 0 #c28e00",shadowBorderBottomSuccessWeaker:"0 1px 0 #0d3a1f",shadowBorderBottomWarningWeaker:"0 1px 0 #541914",shadowBorderBottomWeak:"0 1px 0 #cacdd8",shadowBorderBottomWeakInset:"inset 0 -1px 0 0 #394762",shadowBorderBrand10:"saffron",shadowBorderBrand20:"sky",shadowBorderBrand30:"mint",shadowBorderDecorative10Weaker:"0 0 0 1px #1f304c",shadowBorderDecorative20Weaker:"0 0 0 1px #043cb5",shadowBorderDecorative30Weaker:"0 0 0 1px #0e7c3a",shadowBorderDecorative40Weaker:"0 0 0 1px #5817bd",shadowBorderDestructive:"0 0 0 1px #DB132A",shadowBorderDestructiveStrong:"0 0 0 1px #f6b1b1",shadowBorderDestructiveStronger:"0 0 0 1px #fccfcf",shadowBorderDestructiveStrongest:"0 0 0 1px #feecec",shadowBorderDestructiveWeak:"0 0 0 1px #394762",shadowBorderDestructiveWeaker:"0 0 0 1px #1f304c",shadowBorderError:"0 0 0 1px #DB132A",shadowBorderErrorStrong:"0 0 0 1px #f6b1b1",shadowBorderErrorStronger:"0 0 0 1px #fccfcf",shadowBorderErrorStrongest:"0 0 0 1px #feecec",shadowBorderErrorWeak:"0 0 0 1px #ad1111",shadowBorderErrorWeaker:"0 0 0 1px #ad1111",shadowBorderInverse:"0 0 0 1px #8891aa",shadowBorderInverseNewWeaker:"0 0 0 1px #5817bd",shadowBorderInverseStrong:"0 0 0 1px #e1e3ea",shadowBorderInverseStronger:"0 0 0 1px #f4f4f6",shadowBorderInverseStrongest:"0 0 0 1px #ffffff",shadowBorderInverseWeaker:"0 0 0 1px #394762",shadowBorderInverseWeakest:"0 0 0 1px #1f304c",shadowBorderNeutralWeaker:"0 0 0 1px #043cb5",shadowBorderNewWeaker:"0 0 0 1px #5817bd",shadowBorderNotification:"0 1px 0 #DB132A",shadowBorderPrimary:"0 0 0 1px #006dfa",shadowBorderPrimaryStrong:"0 0 0 1px #99cdff",shadowBorderPrimaryStronger:"0 0 0 1px #cce4ff",shadowBorderPrimaryStrongest:"0 0 0 1px #ebf4ff",shadowBorderPrimaryWeak:"0 0 0 1px #394762",shadowBorderPrimaryWeaker:"0 0 0 1px #1f304c",shadowBorderRightInverseStrong:"1px 0 #e1e3ea",shadowBorderStrong:"0 0 0 1px #8891aa",shadowBorderSubaccount:"0 0 0 1px #c28e00",shadowBorderSuccessWeaker:"0 0 0 1px #0e7c3a",shadowBorderTopInverseStrongest:"0 -1px 0 #cce4ff",shadowBorderTopPrimary:"0 -1px 0 #006dfa",shadowBorderTopPrimaryStrongest:"0 -1px 0 #ebf4ff",shadowBorderUser:"0 0 0 1px #5817bd",shadowBorderWarningWeaker:"0 0 0 1px #c35323",shadowBorderWeak:"0 0 0 1px #394762",shadowBorderWeaker:"0 0 0 1px #1f304c",shadowCard:"0 2px 4px 0 rgba(0, 0, 0, 0.4)",shadowElevation05:"0 0 0 1px #1f304c",shadowElevation10:"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.4)",shadowElevation20:"0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)",shadowElevationBottom05:"0 1px 0 0 #1f304c",shadowElevationBottomInverse05:"0 1px 0 0 #1f304c",shadowElevationInverse05:"0 0 0 1px #1f304c",shadowElevationInverse10:"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.1)",shadowElevationLeft20:"0 0 0 1px #18253C, -4px 0 8px 0 rgba(0, 0, 0, 0.3), -16px 0 32px 0 rgba(0, 0, 0, 0.2)",shadowElevationRightInverse05:"1px 0 0 0 #1f304c",shadowElevationTop05:"0 -1px 0 0 #1f304c",shadowElevationTop20:"0 0 0 1px #18253C, 0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)",shadowFocus:"0 0 0 4px #606b85",shadowFocusInset:"inset 0 0 0 2px #606b85",shadowFocusInverse:"0 0 0 4px #8891aa",shadowFocusInverseInset:"inset 0 0 0 2px rgba(255, 255, 255, 0.4)",shadowFocusShadowBorder:"0 0 0 4px #606b85, 0 0 0 1px #606b85",shadowHigh:"0 16px 24px 4px rgba(0, 0, 0, 0.5)",shadowLeft:"4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowLeftInverse:"4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowLow:"0 2px 4px 0 rgba(0, 0, 0, 0.4)",shadowRight:"-4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowRightInverse:"-4px 0 8px -4px rgba(0, 0, 0, 0.4)"},m={colorBrand:"rgb(0, 20, 137)",colorBrandHighlight:"rgb(242, 47, 70)",colorGray0:"rgb(255, 255, 255)",colorGray10:"rgb(244, 244, 246)",colorGray20:"rgb(225, 227, 234)",colorGray30:"rgb(202, 205, 216)",colorGray40:"rgb(139, 147, 170)",colorGray50:"rgb(136, 145, 170)",colorGray60:"rgb(96, 107, 133)",colorGray70:"rgb(75, 86, 113)",colorGray80:"rgb(57, 71, 98)",colorGray90:"rgb(31, 48, 76)",colorGray100:"rgb(18, 28, 45)"},v={fontFamilyCode:"'TwilioSansMono', Courier, monospace",fontFamilyDisplay:"'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyText:"'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyTextChineseSimplified:"'Inter var experimental', 'Inter var', 'Microsoft YaHei New', \u5fae\u8f6f\u96c5\u9ed1, 'Microsoft Yahei', 'Microsoft JhengHei', \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextChineseTraditional:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextJapanese:"'Inter var experimental', 'Inter var', Hiragino Sans, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 ProN W3', 'Hiragino Kaku Gothic ProN', '\u30e1\u30a4\u30ea\u30aa', Meiryo, Osaka, 'MS PGothic', sans-serif",fontFamilyTextKorean:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif"},g={size0:"0",size10:"5.5rem",size20:"12rem",size30:"18.5rem",size40:"25rem",size50:"31.5rem",size60:"38rem",size70:"44.5rem",size80:"51rem",size90:"57.5rem",size100:"64rem",size110:"70.5rem",size120:"77rem",sizeBase0:"0",sizeBase10:"0.25rem",sizeBase20:"0.5rem",sizeBase30:"0.75rem",sizeBase40:"1rem",sizeBase50:"1.25rem",sizeBase60:"1.5rem",sizeBase70:"1.75rem",sizeBase80:"2rem",sizeBase90:"2.25rem",sizeIcon05:"0.75rem",sizeIcon10:"1rem",sizeIcon20:"1.25rem",sizeIcon30:"1.25rem",sizeIcon40:"1.5rem",sizeIcon50:"1.75rem",sizeIcon60:"1.75rem",sizeIcon70:"2rem",sizeIcon80:"2.5rem",sizeIcon90:"2.5rem",sizeIcon100:"3.25rem",sizeIcon110:"4rem",sizeSidebar:"15rem",sizeSidebarCompact:"4.75rem",sizeSquare0:"0",sizeSquare10:"0.125rem",sizeSquare20:"0.25rem",sizeSquare25:"0.375rem",sizeSquare30:"0.5rem",sizeSquare40:"0.75rem",sizeSquare50:"1rem",sizeSquare60:"1.25rem",sizeSquare70:"1.5rem",sizeSquare80:"1.75rem",sizeSquare90:"2rem",sizeSquare100:"2.25rem",sizeSquare110:"2.5rem",sizeSquare120:"2.75rem",sizeSquare130:"3rem",sizeSquare140:"3.25rem",sizeSquare150:"3.5rem",sizeSquare160:"3.75rem",sizeSquare170:"4rem",sizeSquare180:"4.25rem",sizeSquare190:"4.5rem",sizeSquare200:"4.75rem",sizeTopbar:"4.75rem"},y={space0:"0",space10:"0.125rem",space20:"0.25rem",space30:"0.5rem",space40:"0.75rem",space50:"1rem",space60:"1.25rem",space70:"1.5rem",space80:"1.75rem",space90:"2rem",space100:"2.25rem",space110:"2.5rem",space120:"2.75rem",space130:"3rem",space140:"3.25rem",space150:"3.5rem",space160:"3.75rem",space170:"4rem",space180:"4.25rem",space190:"4.5rem",space200:"4.75rem",space210:"5rem",space220:"5.25rem",space230:"5.5rem",space240:"5.75rem",space250:"6rem",space260:"6.25rem",space270:"6.5rem",space280:"6.75rem",space290:"7rem",space300:"7.25rem",space310:"7.5rem",spaceNegative10:"-0.125rem",spaceNegative20:"-0.25rem",spaceNegative30:"-0.5rem",spaceNegative40:"-0.75rem",spaceNegative50:"-1rem",spaceNegative60:"-1.25rem",spaceNegative70:"-1.5rem",spaceNegative80:"-1.75rem",spaceNegative90:"-2rem",spaceNegative100:"-2.25rem",spaceNegative110:"-2.5rem",spaceNegative120:"-2.75rem",spaceNegative130:"-3rem",spaceNegative140:"-3.25rem",spaceNegative150:"-3.5rem",spaceNegative160:"-3.75rem",spaceNegative170:"-4rem",spaceNegative180:"-4.25rem",spaceNegative190:"-4.5rem",spaceNegative200:"-4.75rem"},b={colorText:"rgb(244, 244, 246)",colorTextBrand:"rgb(18, 28, 45)",colorTextBrandHighlight:"rgb(242, 47, 70)",colorTextBrandInverse:"rgb(255, 255, 255)",colorTextDecorative10:"rgb(225, 227, 234)",colorTextDecorative20:"rgb(204, 228, 255)",colorTextDecorative30:"rgb(162, 246, 195)",colorTextDecorative40:"rgb(231, 220, 250)",colorTextDestructive:"rgb(236, 91, 91)",colorTextDestructiveStrong:"rgb(246, 177, 177)",colorTextDestructiveStronger:"rgb(254, 236, 236)",colorTextDestructiveStrongest:"rgb(255, 255, 255)",colorTextDestructiveWeak:"rgb(57, 71, 98)",colorTextError:"rgb(236, 91, 91)",colorTextErrorStrong:"rgb(246, 177, 177)",colorTextErrorStronger:"rgb(254, 236, 236)",colorTextErrorStrongest:"rgb(254, 236, 236)",colorTextErrorWeak:"rgb(236, 91, 91)",colorTextIcon:"rgb(136, 145, 170)",colorTextIconAvailable:"rgb(54, 213, 118)",colorTextIconBrandHighlight:"rgb(242, 47, 70)",colorTextIconBrandInverse:"rgb(255, 255, 255)",colorTextIconBusy:"rgb(255, 179, 122)",colorTextIconError:"rgb(236, 91, 91)",colorTextIconInverse:"rgb(225, 227, 234)",colorTextIconNeutral:"rgb(102, 179, 255)",colorTextIconNew:"rgb(200, 175, 240)",colorTextIconNotification:"rgb(236, 91, 91)",colorTextIconOffline:"rgb(244, 244, 246)",colorTextIconSuccess:"rgb(54, 213, 118)",colorTextIconUnavailable:"rgb(236, 91, 91)",colorTextIconWarning:"rgb(255, 179, 122)",colorTextInverse:"rgb(255, 255, 255)",colorTextInverseNew:"rgb(200, 175, 240)",colorTextInverseWeak:"rgb(202, 205, 216)",colorTextInverseWeaker:"rgb(136, 145, 170)",colorTextInverseWeakest:"rgb(75, 86, 113)",colorTextLink:"rgb(0, 140, 255)",colorTextLinkDestructive:"rgb(236, 91, 91)",colorTextLinkDestructiveStrong:"rgb(246, 177, 177)",colorTextLinkDestructiveStronger:"rgb(254, 236, 236)",colorTextLinkDestructiveStrongest:"rgb(255, 255, 255)",colorTextLinkDestructiveWeak:"rgb(57, 71, 98)",colorTextLinkStrong:"rgb(153, 205, 255)",colorTextLinkStronger:"rgb(235, 244, 255)",colorTextLinkStrongest:"rgb(255, 255, 255)",colorTextLinkWeak:"rgb(57, 71, 98)",colorTextNeutral:"rgb(204, 228, 255)",colorTextNew:"rgb(231, 220, 250)",colorTextPrimary:"rgb(0, 140, 255)",colorTextPrimaryStrong:"rgb(153, 205, 255)",colorTextPrimaryStronger:"rgb(153, 205, 255)",colorTextPrimaryStrongest:"rgb(255, 255, 255)",colorTextPrimaryWeak:"rgb(57, 71, 98)",colorTextSubaccount:"rgb(255, 233, 128)",colorTextSuccess:"rgb(162, 246, 195)",colorTextUser:"rgb(255, 255, 255)",colorTextWarning:"rgb(255, 179, 122)",colorTextWarningStrong:"rgb(250, 194, 160)",colorTextWeak:"rgb(136, 145, 170)",colorTextWeaker:"rgb(57, 71, 98)",colorTextWeakest:"rgb(13, 19, 28)"},x={colorBackground:"rgb(244, 244, 246)",colorBackgroundAvailable:"rgb(20, 176, 83)",colorBackgroundBody:"rgb(255, 255, 255)",colorBackgroundBodyElevation:"rgb(249, 249, 250)",colorBackgroundBodyElevationPrimary:"rgb(244, 249, 255)",colorBackgroundBodyInverse:"rgb(18, 28, 45)",colorBackgroundBrand:"rgb(18, 28, 45)",colorBackgroundBrand10:"rgb(242, 190, 90)",colorBackgroundBrand20:"rgb(81, 169, 227)",colorBackgroundBrand30:"rgb(106, 221, 178)",colorBackgroundBrandHighlight:"rgb(242, 47, 70)",colorBackgroundBrandHighlightWeakest:"rgba(242, 47, 70, 0.1)",colorBackgroundBrandStrong:"rgb(18, 28, 45)",colorBackgroundBrandStronger:"rgb(18, 28, 45)",colorBackgroundBusy:"rgb(244, 124, 34)",colorBackgroundDecorative10Weakest:"rgb(244, 244, 246)",colorBackgroundDecorative20Weakest:"rgb(244, 249, 255)",colorBackgroundDecorative30Weakest:"rgb(237, 253, 243)",colorBackgroundDecorative40Weakest:"rgb(250, 247, 253)",colorBackgroundDestructive:"rgb(199, 35, 35)",colorBackgroundDestructiveStrong:"rgb(117, 12, 12)",colorBackgroundDestructiveStronger:"rgb(74, 11, 11)",colorBackgroundDestructiveStrongest:"rgb(49, 12, 12)",colorBackgroundDestructiveWeak:"rgb(246, 177, 177)",colorBackgroundDestructiveWeaker:"rgb(252, 207, 207)",colorBackgroundDestructiveWeakest:"rgb(254, 245, 245)",colorBackgroundElevation:"rgb(237, 238, 242)",colorBackgroundError:"rgb(199, 35, 35)",colorBackgroundErrorStrong:"rgb(117, 12, 12)",colorBackgroundErrorStronger:"rgb(74, 11, 11)",colorBackgroundErrorStrongest:"rgb(49, 12, 12)",colorBackgroundErrorWeakest:"rgb(254, 245, 245)",colorBackgroundInverse:"rgb(18, 28, 45)",colorBackgroundInverseElevation:"rgb(24, 37, 60)",colorBackgroundInverseStrong:"rgb(31, 48, 76)",colorBackgroundInverseStrongElevation:"rgb(37, 57, 91)",colorBackgroundInverseStronger:"rgb(57, 71, 98)",colorBackgroundInverseStrongerElevation:"rgb(64, 79, 110)",colorBackgroundInverseStrongest:"rgb(255, 255, 255)",colorBackgroundInverseWeakElevation:"rgb(18, 28, 45)",colorBackgroundNeutralWeakest:"rgb(244, 249, 255)",colorBackgroundNew:"rgb(245, 240, 252)",colorBackgroundNewWeakest:"rgb(250, 247, 253)",colorBackgroundNotification:"rgb(219, 19, 42)",colorBackgroundOffline:"rgb(139, 147, 170)",colorBackgroundOverlay:"rgba(96, 107, 133, 0.5)",colorBackgroundPrimary:"rgb(0, 109, 250)",colorBackgroundPrimaryStrong:"rgb(0, 20, 137)",colorBackgroundPrimaryStronger:"rgb(3, 11, 93)",colorBackgroundPrimaryStrongest:"rgb(6, 3, 58)",colorBackgroundPrimaryWeak:"rgb(153, 205, 255)",colorBackgroundPrimaryWeaker:"rgb(204, 228, 255)",colorBackgroundPrimaryWeakest:"rgb(244, 249, 255)",colorBackgroundRequired:"rgb(236, 91, 91)",colorBackgroundRowStriped:"rgb(249, 249, 250)",colorBackgroundStrong:"rgb(225, 227, 234)",colorBackgroundStrongElevation:"rgb(225, 227, 234)",colorBackgroundStronger:"rgb(136, 145, 170)",colorBackgroundStrongest:"rgb(75, 86, 113)",colorBackgroundSubaccount:"rgb(255, 251, 234)",colorBackgroundSuccess:"rgb(20, 176, 83)",colorBackgroundSuccessWeakest:"rgb(237, 253, 243)",colorBackgroundTrial:"rgb(209, 250, 224)",colorBackgroundUnavailable:"rgb(219, 19, 42)",colorBackgroundUser:"rgb(250, 247, 253)",colorBackgroundWarning:"rgb(244, 124, 34)",colorBackgroundWarningWeakest:"rgb(253, 247, 244)",colorBackgroundWeak:"rgb(249, 249, 250)",colorBackgroundWeakElevation:"rgb(249, 249, 250)",colorBackgroundWeaker:"rgb(255, 255, 255)",colorBackgroundWeakerElevation:"rgb(249, 249, 250)",colorBackgroundWeakest:"rgb(255, 255, 255)"},w={colorBorder:"rgb(139, 147, 170)",colorBorderDecorative10Weaker:"rgb(225, 227, 234)",colorBorderDecorative20Weaker:"rgb(204, 228, 255)",colorBorderDecorative30Weaker:"rgb(209, 250, 224)",colorBorderDecorative40Weaker:"rgb(231, 220, 250)",colorBorderDestructive:"rgb(199, 35, 35)",colorBorderDestructiveStrong:"rgb(117, 12, 12)",colorBorderDestructiveStronger:"rgb(74, 11, 11)",colorBorderDestructiveStrongest:"rgb(49, 12, 12)",colorBorderDestructiveWeak:"rgb(246, 177, 177)",colorBorderDestructiveWeaker:"rgb(252, 207, 207)",colorBorderDestructiveWeakest:"rgb(254, 236, 236)",colorBorderError:"rgb(199, 35, 35)",colorBorderErrorStrong:"rgb(117, 12, 12)",colorBorderErrorStronger:"rgb(74, 11, 11)",colorBorderErrorStrongest:"rgb(49, 12, 12)",colorBorderErrorWeak:"rgb(245, 138, 138)",colorBorderErrorWeaker:"rgb(252, 207, 207)",colorBorderErrorWeakest:"rgb(254, 236, 236)",colorBorderInverse:"rgb(136, 145, 170)",colorBorderInverseStrong:"rgb(225, 227, 234)",colorBorderInverseStronger:"rgb(244, 244, 246)",colorBorderInverseStrongest:"rgb(255, 255, 255)",colorBorderInverseWeaker:"rgb(57, 71, 98)",colorBorderInverseWeakest:"rgb(18, 28, 45)",colorBorderNeutral:"rgb(2, 99, 224)",colorBorderNeutralWeak:"rgb(102, 179, 255)",colorBorderNeutralWeaker:"rgb(204, 228, 255)",colorBorderNewWeak:"rgb(166, 127, 227)",colorBorderNewWeaker:"rgb(231, 220, 250)",colorBorderPrimary:"rgb(0, 109, 250)",colorBorderPrimaryStrong:"rgb(0, 20, 137)",colorBorderPrimaryStronger:"rgb(3, 11, 93)",colorBorderPrimaryStrongest:"rgb(6, 3, 58)",colorBorderPrimaryWeak:"rgb(153, 205, 255)",colorBorderPrimaryWeaker:"rgb(204, 228, 255)",colorBorderPrimaryWeakest:"rgb(235, 244, 255)",colorBorderStrong:"rgb(96, 107, 133)",colorBorderSuccess:"rgb(20, 176, 83)",colorBorderSuccessWeak:"rgb(123, 234, 165)",colorBorderSuccessWeaker:"rgb(209, 250, 224)",colorBorderSuccessWeakest:"rgb(237, 253, 243)",colorBorderUser:"rgb(231, 220, 250)",colorBorderWarning:"rgb(244, 124, 34)",colorBorderWarningWeak:"rgb(255, 179, 122)",colorBorderWarningWeaker:"rgb(253, 220, 196)",colorBorderWarningWeakest:"rgb(254, 245, 238)",colorBorderWeak:"rgb(202, 205, 216)",colorBorderWeaker:"rgb(225, 227, 234)",colorBorderWeakest:"rgb(255, 255, 255)"},k={shadow:"0 4px 16px 0 rgba(18, 28, 45, 0.2)",shadowBorder:"0 0 0 1px #8B93AA",shadowBorderBottom:"0 1px 0 0 #8B93AA",shadowBorderBottomBrand10Strong:"0 1px 0 #855c15",shadowBorderBottomBrand20Strong:"0 1px 0 #043cb5",shadowBorderBottomBrand30Strong:"0 1px 0 #0e7c3a",shadowBorderBottomDecorative10Weaker:"0 1px 0 #8B93AA",shadowBorderBottomDecorative20Weaker:"0 1px 0 #66b3ff",shadowBorderBottomDecorative30Weaker:"0 1px 0 #7beaa5",shadowBorderBottomDecorative40Weaker:"0 1px 0 #c8aff0",shadowBorderBottomErrorWeaker:"0 1px 0 #f58a8a",shadowBorderBottomInverseNewWeaker:"0 1px 0 #5817bd",shadowBorderBottomInverseWeaker:"0 1px 0 #394762",shadowBorderBottomInverseWeakerInset:"inset 0 -1px 0 0 #394762",shadowBorderBottomNeutralWeaker:"0 1px 0 #66b3ff",shadowBorderBottomNewWeaker:"0 1px 0 #c8aff0",shadowBorderBottomNotificationStronger:"0 1px 0 #4a0b0b",shadowBorderBottomPrimary:"0 1px 0 #006dfa",shadowBorderBottomSubaccount:"0 1px 0 #ffdd35",shadowBorderBottomSuccessWeaker:"0 1px 0 #7beaa5",shadowBorderBottomWarningWeaker:"0 1px 0 #ffb37a",shadowBorderBottomWeak:"0 1px 0 #cacdd8",shadowBorderBottomWeakInset:"inset 0 -1px 0 0 #cacdd8",shadowBorderBrand10:"saffron",shadowBorderBrand20:"sky",shadowBorderBrand30:"mint",shadowBorderDecorative10Weaker:"0 0 0 1px #e1e3ea",shadowBorderDecorative20Weaker:"0 0 0 1px #cce4ff",shadowBorderDecorative30Weaker:"0 0 0 1px #d1fae0",shadowBorderDecorative40Weaker:"0 0 0 1px #e7dcfa",shadowBorderDestructive:"0 0 0 1px #c72323",shadowBorderDestructiveStrong:"0 0 0 1px #750c0c",shadowBorderDestructiveStronger:"0 0 0 1px #4a0b0b",shadowBorderDestructiveStrongest:"0 0 0 1px #310c0c",shadowBorderDestructiveWeak:"0 0 0 1px #f6b1b1",shadowBorderDestructiveWeaker:"0 0 0 1px #fccfcf",shadowBorderError:"0 0 0 1px #c72323",shadowBorderErrorStrong:"0 0 0 1px #750c0c",shadowBorderErrorStronger:"0 0 0 1px #4a0b0b",shadowBorderErrorStrongest:"0 0 0 1px #310c0c",shadowBorderErrorWeak:"0 0 0 1px #EC5B5B",shadowBorderErrorWeaker:"0 0 0 1px #fccfcf",shadowBorderInverse:"0 0 0 1px #8891aa",shadowBorderInverseNewWeaker:"0 0 0 1px #5817bd",shadowBorderInverseStrong:"0 0 0 1px #e1e3ea",shadowBorderInverseStronger:"0 0 0 1px #f4f4f6",shadowBorderInverseStrongest:"0 0 0 1px #ffffff",shadowBorderInverseWeaker:"0 0 0 1px #394762",shadowBorderInverseWeakest:"0 0 0 1px #121c2d",shadowBorderNeutralWeaker:"0 0 0 1px #cce4ff",shadowBorderNewWeaker:"0 0 0 1px #e7dcfa",shadowBorderNotification:"0 1px 0 #DB132A",shadowBorderPrimary:"0 0 0 1px #006dfa",shadowBorderPrimaryStrong:"0 0 0 1px #001489",shadowBorderPrimaryStronger:"0 0 0 1px #030b5d",shadowBorderPrimaryStrongest:"0 0 0 1px #06033a",shadowBorderPrimaryWeak:"0 0 0 1px #99cdff",shadowBorderPrimaryWeaker:"0 0 0 1px #cce4ff",shadowBorderRightInverseStrong:"1px 0 #e1e3ea",shadowBorderStrong:"0 0 0 1px #606b85",shadowBorderSubaccount:"0 0 0 1px #fff1b3",shadowBorderSuccessWeaker:"0 0 0 1px #d1fae0",shadowBorderTopInverseStrongest:"0 -1px 0 #cce4ff",shadowBorderTopPrimary:"0 -1px 0 #006dfa",shadowBorderTopPrimaryStrongest:"0 -1px 0 #030b5d",shadowBorderUser:"0 0 0 1px #e7dcfa",shadowBorderWarningWeaker:"0 0 0 1px #fddcc4",shadowBorderWeak:"0 0 0 1px #cacdd8",shadowBorderWeaker:"0 0 0 1px #e1e3ea",shadowCard:"0 2px 8px 0 rgba(18, 28, 45, 0.1)",shadowElevation05:"0 0 0 1px #edeef2",shadowElevation10:"0 -1px 0 0 #f4f4f6, 0 3px 4px 0 rgba(15, 22, 33, 0.1)",shadowElevation20:"0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)",shadowElevationBottom05:"0 1px 0 0 #edeef2",shadowElevationBottomInverse05:"0 1px 0 0 #1f304c",shadowElevationInverse05:"0 0 0 1px #1f304c",shadowElevationInverse10:"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.1)",shadowElevationLeft20:"0 0 0 1px #f9f9fa, -4px 0 8px 0 rgba(15, 22, 33, 0.1), -16px 0 32px 0 rgba(15, 22, 33, 0.05)",shadowElevationRightInverse05:"1px 0 0 0 #1f304c",shadowElevationTop05:"0 -1px 0 0 #edeef2",shadowElevationTop20:"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)",shadowFocus:"0 0 0 2px #ffffff, 0 0 0 3px #006dfa, 0 0 0 5px #cce4ff",shadowFocusInset:"inset 0 0 0 1px #006dfa, inset 0 0 0 3px #cce4ff",shadowFocusInverse:"0 0 0 1px #394762, 0 0 0 3px #121c2d, 0 0 0 4px #ffffff, 0 0 0 6px rgba(255, 255, 255, 0.2)",shadowFocusInverseInset:"0 0 0 1px #ffffff, inset 0 0 0 3px rgba(255, 255, 255, 0.2)",shadowFocusShadowBorder:"0 0 0 1px #cacdd8, 0 0 0 3px #ffffff, 0 0 0 4px #006dfa, 0 0 0 6px #cce4ff",shadowHigh:"0 16px 24px 0 rgba(18, 28, 45, 0.2)",shadowLeft:"4px 0 8px -4px rgba(18, 28, 45, 0.2)",shadowLeftInverse:"4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowLow:"0 2px 8px 0 rgba(18, 28, 45, 0.1)",shadowRight:"-4px 0 8px -4px rgba(18, 28, 45, 0.2)",shadowRightInverse:"-4px 0 8px -4px rgba(0, 0, 0, 0.4)"},S={colorBrand:"rgb(0, 20, 137)",colorBrandHighlight:"rgb(242, 47, 70)",colorGray0:"rgb(255, 255, 255)",colorGray10:"rgb(244, 244, 246)",colorGray20:"rgb(225, 227, 234)",colorGray30:"rgb(202, 205, 216)",colorGray40:"rgb(139, 147, 170)",colorGray50:"rgb(136, 145, 170)",colorGray60:"rgb(96, 107, 133)",colorGray70:"rgb(75, 86, 113)",colorGray80:"rgb(57, 71, 98)",colorGray90:"rgb(31, 48, 76)",colorGray100:"rgb(18, 28, 45)"},_={fontFamilyCode:"'TwilioSansMono', Courier, monospace",fontFamilyDisplay:"'TwilioSansDisplay', 'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyText:"'TwilioSansText', 'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyTextChineseSimplified:"'Inter var experimental', 'Inter var', 'Microsoft YaHei New', \u5fae\u8f6f\u96c5\u9ed1, 'Microsoft Yahei', 'Microsoft JhengHei', \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextChineseTraditional:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextJapanese:"'Inter var experimental', 'Inter var', Hiragino Sans, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 ProN W3', 'Hiragino Kaku Gothic ProN', '\u30e1\u30a4\u30ea\u30aa', Meiryo, Osaka, 'MS PGothic', sans-serif",fontFamilyTextKorean:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif"},E={size0:"0",size10:"5.5rem",size20:"12rem",size30:"18.5rem",size40:"25rem",size50:"31.5rem",size60:"38rem",size70:"44.5rem",size80:"51rem",size90:"57.5rem",size100:"64rem",size110:"70.5rem",size120:"77rem",sizeBase0:"0",sizeBase10:"0.25rem",sizeBase20:"0.5rem",sizeBase30:"0.75rem",sizeBase40:"1rem",sizeBase50:"1.25rem",sizeBase60:"1.5rem",sizeBase70:"1.75rem",sizeBase80:"2rem",sizeBase90:"2.25rem",sizeIcon05:"0.75rem",sizeIcon10:"1rem",sizeIcon20:"1.25rem",sizeIcon30:"1.25rem",sizeIcon40:"1.5rem",sizeIcon50:"1.75rem",sizeIcon60:"1.75rem",sizeIcon70:"2rem",sizeIcon80:"2.5rem",sizeIcon90:"2.5rem",sizeIcon100:"3.25rem",sizeIcon110:"4rem",sizeSidebar:"15rem",sizeSidebarCompact:"4.75rem",sizeSquare0:"0",sizeSquare10:"0.125rem",sizeSquare20:"0.25rem",sizeSquare25:"0.375rem",sizeSquare30:"0.5rem",sizeSquare40:"0.75rem",sizeSquare50:"1rem",sizeSquare60:"1.25rem",sizeSquare70:"1.5rem",sizeSquare80:"1.75rem",sizeSquare90:"2rem",sizeSquare100:"2.25rem",sizeSquare110:"2.5rem",sizeSquare120:"2.75rem",sizeSquare130:"3rem",sizeSquare140:"3.25rem",sizeSquare150:"3.5rem",sizeSquare160:"3.75rem",sizeSquare170:"4rem",sizeSquare180:"4.25rem",sizeSquare190:"4.5rem",sizeSquare200:"4.75rem",sizeTopbar:"4.75rem"},C={space0:"0",space10:"0.125rem",space20:"0.25rem",space30:"0.5rem",space40:"0.75rem",space50:"1rem",space60:"1.25rem",space70:"1.5rem",space80:"1.75rem",space90:"2rem",space100:"2.25rem",space110:"2.5rem",space120:"2.75rem",space130:"3rem",space140:"3.25rem",space150:"3.5rem",space160:"3.75rem",space170:"4rem",space180:"4.25rem",space190:"4.5rem",space200:"4.75rem",space210:"5rem",space220:"5.25rem",space230:"5.5rem",space240:"5.75rem",space250:"6rem",space260:"6.25rem",space270:"6.5rem",space280:"6.75rem",space290:"7rem",space300:"7.25rem",space310:"7.5rem",spaceNegative10:"-0.125rem",spaceNegative20:"-0.25rem",spaceNegative30:"-0.5rem",spaceNegative40:"-0.75rem",spaceNegative50:"-1rem",spaceNegative60:"-1.25rem",spaceNegative70:"-1.5rem",spaceNegative80:"-1.75rem",spaceNegative90:"-2rem",spaceNegative100:"-2.25rem",spaceNegative110:"-2.5rem",spaceNegative120:"-2.75rem",spaceNegative130:"-3rem",spaceNegative140:"-3.25rem",spaceNegative150:"-3.5rem",spaceNegative160:"-3.75rem",spaceNegative170:"-4rem",spaceNegative180:"-4.25rem",spaceNegative190:"-4.5rem",spaceNegative200:"-4.75rem"},T={colorText:"rgb(18, 28, 45)",colorTextBrand:"rgb(18, 28, 45)",colorTextBrandHighlight:"rgb(242, 47, 70)",colorTextBrandInverse:"rgb(255, 255, 255)",colorTextDecorative10:"rgb(96, 107, 133)",colorTextDecorative20:"rgb(0, 20, 137)",colorTextDecorative30:"rgb(11, 96, 45)",colorTextDecorative40:"rgb(109, 46, 209)",colorTextDestructive:"rgb(199, 35, 35)",colorTextDestructiveStrong:"rgb(173, 17, 17)",colorTextDestructiveStronger:"rgb(74, 11, 11)",colorTextDestructiveStrongest:"rgb(49, 12, 12)",colorTextDestructiveWeak:"rgb(246, 177, 177)",colorTextError:"rgb(199, 35, 35)",colorTextErrorStrong:"rgb(117, 12, 12)",colorTextErrorStronger:"rgb(74, 11, 11)",colorTextErrorStrongest:"rgb(49, 12, 12)",colorTextErrorWeak:"rgb(236, 91, 91)",colorTextIcon:"rgb(96, 107, 133)",colorTextIconAvailable:"rgb(14, 124, 58)",colorTextIconBrandHighlight:"rgb(242, 47, 70)",colorTextIconBrandInverse:"rgb(255, 255, 255)",colorTextIconBusy:"rgb(227, 106, 25)",colorTextIconError:"rgb(199, 35, 35)",colorTextIconInverse:"rgb(136, 145, 170)",colorTextIconNeutral:"rgb(3, 11, 93)",colorTextIconNew:"rgb(109, 46, 209)",colorTextIconNotification:"rgb(236, 91, 91)",colorTextIconOffline:"rgb(96, 107, 133)",colorTextIconSuccess:"rgb(11, 96, 45)",colorTextIconUnavailable:"rgb(219, 19, 42)",colorTextIconWarning:"rgb(195, 83, 35)",colorTextInverse:"rgb(255, 255, 255)",colorTextInverseNew:"rgb(200, 175, 240)",colorTextInverseWeak:"rgb(202, 205, 216)",colorTextInverseWeaker:"rgb(136, 145, 170)",colorTextInverseWeakest:"rgb(75, 86, 113)",colorTextLink:"rgb(2, 99, 224)",colorTextLinkDestructive:"rgb(199, 35, 35)",colorTextLinkDestructiveStrong:"rgb(173, 17, 17)",colorTextLinkDestructiveStronger:"rgb(74, 11, 11)",colorTextLinkDestructiveStrongest:"rgb(49, 12, 12)",colorTextLinkDestructiveWeak:"rgb(246, 177, 177)",colorTextLinkStrong:"rgb(0, 20, 137)",colorTextLinkStronger:"rgb(3, 11, 93)",colorTextLinkStrongest:"rgb(6, 3, 58)",colorTextLinkWeak:"rgb(153, 205, 255)",colorTextNeutral:"rgb(3, 11, 93)",colorTextNew:"rgb(109, 46, 209)",colorTextPrimary:"rgb(2, 99, 224)",colorTextPrimaryStrong:"rgb(0, 20, 137)",colorTextPrimaryStronger:"rgb(3, 11, 93)",colorTextPrimaryStrongest:"rgb(6, 3, 58)",colorTextPrimaryWeak:"rgb(153, 205, 255)",colorTextSubaccount:"rgb(84, 51, 8)",colorTextSuccess:"rgb(11, 96, 45)",colorTextUser:"rgb(109, 46, 209)",colorTextWarning:"rgb(141, 49, 24)",colorTextWarningStrong:"rgb(141, 49, 24)",colorTextWeak:"rgb(96, 107, 133)",colorTextWeaker:"rgb(139, 147, 170)",colorTextWeakest:"rgb(255, 255, 255)"},I={colorBackground:"rgb(244, 244, 246)",colorBackgroundAvailable:"rgb(20, 176, 83)",colorBackgroundBody:"rgb(255, 255, 255)",colorBackgroundBodyElevation:"rgb(249, 249, 250)",colorBackgroundBodyElevationPrimary:"rgb(244, 249, 255)",colorBackgroundBodyInverse:"rgb(18, 28, 45)",colorBackgroundBrand:"rgb(0, 20, 137)",colorBackgroundBrand10:"rgb(242, 190, 90)",colorBackgroundBrand20:"rgb(81, 169, 227)",colorBackgroundBrand30:"rgb(106, 221, 178)",colorBackgroundBrandHighlight:"rgb(242, 47, 70)",colorBackgroundBrandHighlightWeakest:"rgba(242, 47, 70, 0.1)",colorBackgroundBrandStrong:"rgb(3, 11, 93)",colorBackgroundBrandStronger:"rgb(6, 3, 58)",colorBackgroundBusy:"rgb(244, 124, 34)",colorBackgroundDecorative10Weakest:"rgb(244, 244, 246)",colorBackgroundDecorative20Weakest:"rgb(235, 244, 255)",colorBackgroundDecorative30Weakest:"rgb(237, 253, 243)",colorBackgroundDecorative40Weakest:"rgb(245, 240, 252)",colorBackgroundDestructive:"rgb(219, 19, 42)",colorBackgroundDestructiveStrong:"rgb(117, 12, 12)",colorBackgroundDestructiveStronger:"rgb(74, 11, 11)",colorBackgroundDestructiveStrongest:"rgb(49, 12, 12)",colorBackgroundDestructiveWeak:"rgb(246, 177, 177)",colorBackgroundDestructiveWeaker:"rgb(252, 207, 207)",colorBackgroundDestructiveWeakest:"rgb(254, 245, 245)",colorBackgroundElevation:"rgb(237, 238, 242)",colorBackgroundError:"rgb(219, 19, 42)",colorBackgroundErrorStrong:"rgb(117, 12, 12)",colorBackgroundErrorStronger:"rgb(74, 11, 11)",colorBackgroundErrorStrongest:"rgb(49, 12, 12)",colorBackgroundErrorWeakest:"rgb(254, 245, 245)",colorBackgroundInverse:"rgb(31, 48, 76)",colorBackgroundInverseElevation:"rgb(37, 57, 91)",colorBackgroundInverseStrong:"rgb(57, 71, 98)",colorBackgroundInverseStrongElevation:"rgb(37, 57, 91)",colorBackgroundInverseStronger:"rgb(57, 71, 98)",colorBackgroundInverseStrongerElevation:"rgb(64, 79, 110)",colorBackgroundInverseStrongest:"rgb(255, 255, 255)",colorBackgroundInverseWeakElevation:"rgb(37, 57, 91)",colorBackgroundNeutralWeakest:"rgb(235, 244, 255)",colorBackgroundNew:"rgb(245, 240, 252)",colorBackgroundNewWeakest:"rgb(250, 247, 253)",colorBackgroundNotification:"rgb(219, 19, 42)",colorBackgroundOffline:"rgb(139, 147, 170)",colorBackgroundOverlay:"rgba(6, 3, 58, 0.4)",colorBackgroundPrimary:"rgb(2, 99, 224)",colorBackgroundPrimaryStrong:"rgb(0, 20, 137)",colorBackgroundPrimaryStronger:"rgb(3, 11, 93)",colorBackgroundPrimaryStrongest:"rgb(6, 3, 58)",colorBackgroundPrimaryWeak:"rgb(153, 205, 255)",colorBackgroundPrimaryWeaker:"rgb(204, 228, 255)",colorBackgroundPrimaryWeakest:"rgb(235, 244, 255)",colorBackgroundRequired:"rgb(236, 91, 91)",colorBackgroundRowStriped:"rgb(244, 244, 246)",colorBackgroundStrong:"rgb(225, 227, 234)",colorBackgroundStrongElevation:"rgb(225, 227, 234)",colorBackgroundStronger:"rgb(136, 145, 170)",colorBackgroundStrongest:"rgb(75, 86, 113)",colorBackgroundSubaccount:"rgb(255, 251, 234)",colorBackgroundSuccess:"rgb(20, 176, 83)",colorBackgroundSuccessWeakest:"rgb(237, 253, 243)",colorBackgroundTrial:"rgb(209, 250, 224)",colorBackgroundUnavailable:"rgb(219, 19, 42)",colorBackgroundUser:"rgb(200, 175, 240)",colorBackgroundWarning:"rgb(244, 124, 34)",colorBackgroundWarningWeakest:"rgb(254, 245, 238)",colorBackgroundWeak:"rgb(249, 249, 250)",colorBackgroundWeakElevation:"rgb(249, 249, 250)",colorBackgroundWeaker:"rgb(255, 255, 255)",colorBackgroundWeakerElevation:"rgb(249, 249, 250)",colorBackgroundWeakest:"rgb(255, 255, 255)"},B={colorBorder:"rgb(139, 147, 170)",colorBorderDecorative10Weaker:"rgb(225, 227, 234)",colorBorderDecorative20Weaker:"rgb(204, 228, 255)",colorBorderDecorative30Weaker:"rgb(209, 250, 224)",colorBorderDecorative40Weaker:"rgb(231, 220, 250)",colorBorderDestructive:"rgb(219, 19, 42)",colorBorderDestructiveStrong:"rgb(117, 12, 12)",colorBorderDestructiveStronger:"rgb(74, 11, 11)",colorBorderDestructiveStrongest:"rgb(49, 12, 12)",colorBorderDestructiveWeak:"rgb(246, 177, 177)",colorBorderDestructiveWeaker:"rgb(252, 207, 207)",colorBorderDestructiveWeakest:"rgb(254, 236, 236)",colorBorderError:"rgb(219, 19, 42)",colorBorderErrorStrong:"rgb(117, 12, 12)",colorBorderErrorStronger:"rgb(74, 11, 11)",colorBorderErrorStrongest:"rgb(49, 12, 12)",colorBorderErrorWeak:"rgb(245, 138, 138)",colorBorderErrorWeaker:"rgb(252, 207, 207)",colorBorderErrorWeakest:"rgb(254, 236, 236)",colorBorderInverse:"rgb(136, 145, 170)",colorBorderInverseStrong:"rgb(225, 227, 234)",colorBorderInverseStronger:"rgb(244, 244, 246)",colorBorderInverseStrongest:"rgb(255, 255, 255)",colorBorderInverseWeaker:"rgb(57, 71, 98)",colorBorderInverseWeakest:"rgb(31, 48, 76)",colorBorderNeutral:"rgb(2, 99, 224)",colorBorderNeutralWeak:"rgb(102, 179, 255)",colorBorderNeutralWeaker:"rgb(204, 228, 255)",colorBorderNewWeak:"rgb(166, 127, 227)",colorBorderNewWeaker:"rgb(231, 220, 250)",colorBorderPrimary:"rgb(2, 99, 224)",colorBorderPrimaryStrong:"rgb(0, 20, 137)",colorBorderPrimaryStronger:"rgb(3, 11, 93)",colorBorderPrimaryStrongest:"rgb(6, 3, 58)",colorBorderPrimaryWeak:"rgb(153, 205, 255)",colorBorderPrimaryWeaker:"rgb(204, 228, 255)",colorBorderPrimaryWeakest:"rgb(235, 244, 255)",colorBorderStrong:"rgb(96, 107, 133)",colorBorderSuccess:"rgb(20, 176, 83)",colorBorderSuccessWeak:"rgb(54, 213, 118)",colorBorderSuccessWeaker:"rgb(209, 250, 224)",colorBorderSuccessWeakest:"rgb(237, 253, 243)",colorBorderUser:"rgb(231, 220, 250)",colorBorderWarning:"rgb(244, 124, 34)",colorBorderWarningWeak:"rgb(255, 179, 122)",colorBorderWarningWeaker:"rgb(253, 220, 196)",colorBorderWarningWeakest:"rgb(254, 245, 238)",colorBorderWeak:"rgb(202, 205, 216)",colorBorderWeaker:"rgb(225, 227, 234)",colorBorderWeakest:"rgb(255, 255, 255)"},O={borderWidth0:"0",borderWidth10:"1px",borderWidth20:"2px",borderWidth30:"4px",borderWidth40:"8px"},P={shadow:"0 4px 16px 0 rgba(18, 28, 45, 0.2)",shadowBorder:"0 0 0 1px #8B93AA",shadowBorderBottom:"0 1px 0 0 #8B93AA",shadowBorderBottomBrand10Strong:"0 1px 0 #855c15",shadowBorderBottomBrand20Strong:"0 1px 0 #043cb5",shadowBorderBottomBrand30Strong:"0 1px 0 #0e7c3a",shadowBorderBottomDecorative10Weaker:"0 1px 0 #e1e3ea",shadowBorderBottomDecorative20Weaker:"0 1px 0 #cce4ff",shadowBorderBottomDecorative30Weaker:"0 1px 0 #d1fae0",shadowBorderBottomDecorative40Weaker:"0 1px 0 #e7dcfa",shadowBorderBottomErrorWeaker:"0 1px 0 #fccfcf",shadowBorderBottomInverseNewWeaker:"0 1px 0 #5817bd",shadowBorderBottomInverseWeaker:"0 1px 0 #394762",shadowBorderBottomInverseWeakerInset:"inset 0 -1px 0 0 #394762",shadowBorderBottomNeutralWeaker:"0 1px 0 #cce4ff",shadowBorderBottomNewWeaker:"0 1px 0 #e7dcfa",shadowBorderBottomNotificationStronger:"0 1px 0 #4a0b0b",shadowBorderBottomPrimary:"0 1px 0 #006dfa",shadowBorderBottomSubaccount:"0 1px 0 #ffdd35",shadowBorderBottomSuccessWeaker:"0 1px 0 #d1fae0",shadowBorderBottomWarningWeaker:"0 1px 0 #fddcc4",shadowBorderBottomWeak:"0 1px 0 #cacdd8",shadowBorderBottomWeakInset:"inset 0 -1px 0 0 #cacdd8",shadowBorderBrand10:"saffron",shadowBorderBrand20:"sky",shadowBorderBrand30:"mint",shadowBorderDecorative10Weaker:"0 0 0 1px #e1e3ea",shadowBorderDecorative20Weaker:"0 0 0 1px #cce4ff",shadowBorderDecorative30Weaker:"0 0 0 1px #d1fae0",shadowBorderDecorative40Weaker:"0 0 0 1px #e7dcfa",shadowBorderDestructive:"0 0 0 1px #DB132A",shadowBorderDestructiveStrong:"0 0 0 1px #750c0c",shadowBorderDestructiveStronger:"0 0 0 1px #4a0b0b",shadowBorderDestructiveStrongest:"0 0 0 1px #310c0c",shadowBorderDestructiveWeak:"0 0 0 1px #f6b1b1",shadowBorderDestructiveWeaker:"0 0 0 1px #fccfcf",shadowBorderError:"0 0 0 1px #DB132A",shadowBorderErrorStrong:"0 0 0 1px #750c0c",shadowBorderErrorStronger:"0 0 0 1px #4a0b0b",shadowBorderErrorStrongest:"0 0 0 1px #310c0c",shadowBorderErrorWeak:"0 0 0 1px #EC5B5B",shadowBorderErrorWeaker:"0 0 0 1px #fccfcf",shadowBorderInverse:"0 0 0 1px #8891aa",shadowBorderInverseNewWeaker:"0 0 0 1px #5817bd",shadowBorderInverseStrong:"0 0 0 1px #e1e3ea",shadowBorderInverseStronger:"0 0 0 1px #f4f4f6",shadowBorderInverseStrongest:"0 0 0 1px #ffffff",shadowBorderInverseWeaker:"0 0 0 1px #394762",shadowBorderInverseWeakest:"0 0 0 1px #1f304c",shadowBorderNeutralWeaker:"0 0 0 1px #cce4ff",shadowBorderNewWeaker:"0 0 0 1px #e7dcfa",shadowBorderNotification:"0 1px 0 #DB132A",shadowBorderPrimary:"0 0 0 1px #0263e0",shadowBorderPrimaryStrong:"0 0 0 1px #001489",shadowBorderPrimaryStronger:"0 0 0 1px #030b5d",shadowBorderPrimaryStrongest:"0 0 0 1px #06033a",shadowBorderPrimaryWeak:"0 0 0 1px #99cdff",shadowBorderPrimaryWeaker:"0 0 0 1px #cce4ff",shadowBorderRightInverseStrong:"1px 0 #e1e3ea",shadowBorderStrong:"0 0 0 1px #606b85",shadowBorderSubaccount:"0 0 0 1px #fff1b3",shadowBorderSuccessWeaker:"0 0 0 1px #d1fae0",shadowBorderTopInverseStrongest:"0 -1px 0 #cce4ff",shadowBorderTopPrimary:"0 -1px 0 #006dfa",shadowBorderTopPrimaryStrongest:"0 -1px 0 #030b5d",shadowBorderUser:"0 0 0 1px #8c5bd8",shadowBorderWarningWeaker:"0 0 0 1px #fddcc4",shadowBorderWeak:"0 0 0 1px #cacdd8",shadowBorderWeaker:"0 0 0 1px #e1e3ea",shadowCard:"0 2px 8px 0 rgba(18, 28, 45, 0.1)",shadowElevation05:"0 0 0 1px #edeef2",shadowElevation10:"0 -1px 0 0 #f4f4f6, 0 3px 4px 0 rgba(15, 22, 33, 0.1)",shadowElevation20:"0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)",shadowElevationBottom05:"0 1px 0 0 #edeef2",shadowElevationBottomInverse05:"0 1px 0 0 #1f304c",shadowElevationInverse05:"0 0 0 1px #1f304c",shadowElevationInverse10:"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.1)",shadowElevationLeft20:"0 0 0 1px #f9f9fa, -4px 0 8px 0 rgba(15, 22, 33, 0.1), -16px 0 32px 0 rgba(15, 22, 33, 0.05)",shadowElevationRightInverse05:"1px 0 0 0 #1f304c",shadowElevationTop05:"0 -1px 0 0 #edeef2",shadowElevationTop20:"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)",shadowFocus:"0 0 0 4px rgba(2, 99, 224, 0.7)",shadowFocusInset:"inset 0 0 0 2px rgba(2, 99, 224, 0.7)",shadowFocusInverse:"0 0 0 4px rgba(255, 255, 255, 0.4)",shadowFocusInverseInset:"inset 0 0 0 2px rgba(255, 255, 255, 0.4)",shadowFocusShadowBorder:"0 0 0 4px rgba(2, 99, 224, 0.7), 0 0 0 1px #8891aa",shadowHigh:"0 16px 24px 0 rgba(18, 28, 45, 0.2)",shadowLeft:"4px 0 8px -4px rgba(18, 28, 45, 0.2)",shadowLeftInverse:"4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowLow:"0 2px 8px 0 rgba(18, 28, 45, 0.1)",shadowRight:"-4px 0 8px -4px rgba(18, 28, 45, 0.2)",shadowRightInverse:"-4px 0 8px -4px rgba(0, 0, 0, 0.4)"},R={colorBrand:"rgb(0, 20, 137)",colorBrandHighlight:"rgb(242, 47, 70)",colorGray0:"rgb(255, 255, 255)",colorGray10:"rgb(244, 244, 246)",colorGray20:"rgb(225, 227, 234)",colorGray30:"rgb(202, 205, 216)",colorGray40:"rgb(139, 147, 170)",colorGray50:"rgb(136, 145, 170)",colorGray60:"rgb(96, 107, 133)",colorGray70:"rgb(75, 86, 113)",colorGray80:"rgb(57, 71, 98)",colorGray90:"rgb(31, 48, 76)",colorGray100:"rgb(18, 28, 45)"},A={colorScheme:"light"},M={colorDataVisualization1:"rgb(0, 20, 137)",colorDataVisualization2:"rgb(14, 124, 58)",colorDataVisualization3:"rgb(13, 58, 31)",colorDataVisualization4:"rgb(0, 140, 255)",colorDataVisualization5:"rgb(57, 71, 98)",colorDataVisualization6:"rgb(166, 127, 227)",colorDataVisualization7:"rgb(109, 46, 209)",colorDataVisualization8:"rgb(136, 145, 170)",colorDataVisualization9:"rgb(117, 12, 12)",colorDataVisualization10:"rgb(236, 91, 91)"},N={fontFamilyCode:"'TwilioSansMono', Courier, monospace",fontFamilyDisplay:"'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyText:"'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyTextChineseSimplified:"'Inter var experimental', 'Inter var', 'Microsoft YaHei New', \u5fae\u8f6f\u96c5\u9ed1, 'Microsoft Yahei', 'Microsoft JhengHei', \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextChineseTraditional:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextJapanese:"'Inter var experimental', 'Inter var', Hiragino Sans, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 ProN W3', 'Hiragino Kaku Gothic ProN', '\u30e1\u30a4\u30ea\u30aa', Meiryo, Osaka, 'MS PGothic', sans-serif",fontFamilyTextKorean:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif"},D={fontSize10:"0.625rem",fontSize20:"0.75rem",fontSize30:"0.875rem",fontSize40:"1rem",fontSize50:"1.125rem",fontSize60:"1.25rem",fontSize70:"1.5rem",fontSize80:"1.75rem",fontSize90:"2rem",fontSize100:"2.5rem",fontSize110:"3rem",fontSizeBase:"100%",fontSizeDisplay10:"2rem",fontSizeDisplay20:"3rem",fontSizeDisplay30:"4rem"},L={fontWeightLight:"400",fontWeightNormal:"400",fontWeightMedium:"500",fontWeightSemibold:"600",fontWeightBold:"700",fontWeightExtrabold:"800"},j={lineHeight0:"0",lineHeight05:"0.75rem",lineHeight10:"1rem",lineHeight20:"1.25rem",lineHeight30:"1.25rem",lineHeight40:"1.5rem",lineHeight50:"1.75rem",lineHeight60:"1.75rem",lineHeight70:"2rem",lineHeight80:"2.5rem",lineHeight90:"2.5rem",lineHeight100:"3.25rem",lineHeight110:"4rem",lineHeightDisplay10:"2.5rem",lineHeightDisplay20:"3.75rem",lineHeightDisplay30:"5rem"},z={borderRadius0:"0",borderRadius10:"2px",borderRadius20:"4px",borderRadius30:"8px",borderRadius40:"12px",borderRadius50:"16px",borderRadius60:"20px",borderRadius70:"24px",borderRadius80:"28px",borderRadius90:"32px",borderRadiusCircle:"50%",borderRadiusPill:"100px"},W={size0:"0",size10:"5.5rem",size20:"12rem",size30:"18.5rem",size40:"25rem",size50:"31.5rem",size60:"38rem",size70:"44.5rem",size80:"51rem",size90:"57.5rem",size100:"64rem",size110:"70.5rem",size120:"77rem",sizeBase0:"0",sizeBase10:"0.25rem",sizeBase20:"0.5rem",sizeBase30:"0.75rem",sizeBase40:"1rem",sizeBase50:"1.25rem",sizeBase60:"1.5rem",sizeBase70:"1.75rem",sizeBase80:"2rem",sizeBase90:"2.25rem",sizeIcon05:"0.75rem",sizeIcon10:"1rem",sizeIcon20:"1.25rem",sizeIcon30:"1.25rem",sizeIcon40:"1.5rem",sizeIcon50:"1.75rem",sizeIcon60:"1.75rem",sizeIcon70:"2rem",sizeIcon80:"2.5rem",sizeIcon90:"2.5rem",sizeIcon100:"3.25rem",sizeIcon110:"4rem",sizeSidebar:"15rem",sizeSidebarCompact:"4.75rem",sizeSquare0:"0",sizeSquare10:"0.125rem",sizeSquare20:"0.25rem",sizeSquare25:"0.375rem",sizeSquare30:"0.5rem",sizeSquare40:"0.75rem",sizeSquare50:"1rem",sizeSquare60:"1.25rem",sizeSquare70:"1.5rem",sizeSquare80:"1.75rem",sizeSquare90:"2rem",sizeSquare100:"2.25rem",sizeSquare110:"2.5rem",sizeSquare120:"2.75rem",sizeSquare130:"3rem",sizeSquare140:"3.25rem",sizeSquare150:"3.5rem",sizeSquare160:"3.75rem",sizeSquare170:"4rem",sizeSquare180:"4.25rem",sizeSquare190:"4.5rem",sizeSquare200:"4.75rem",sizeTopbar:"4.75rem"},Z={space0:"0",space10:"0.125rem",space20:"0.25rem",space30:"0.5rem",space40:"0.75rem",space50:"1rem",space60:"1.25rem",space70:"1.5rem",space80:"1.75rem",space90:"2rem",space100:"2.25rem",space110:"2.5rem",space120:"2.75rem",space130:"3rem",space140:"3.25rem",space150:"3.5rem",space160:"3.75rem",space170:"4rem",space180:"4.25rem",space190:"4.5rem",space200:"4.75rem",space210:"5rem",space220:"5.25rem",space230:"5.5rem",space240:"5.75rem",space250:"6rem",space260:"6.25rem",space270:"6.5rem",space280:"6.75rem",space290:"7rem",space300:"7.25rem",space310:"7.5rem",spaceNegative10:"-0.125rem",spaceNegative20:"-0.25rem",spaceNegative30:"-0.5rem",spaceNegative40:"-0.75rem",spaceNegative50:"-1rem",spaceNegative60:"-1.25rem",spaceNegative70:"-1.5rem",spaceNegative80:"-1.75rem",spaceNegative90:"-2rem",spaceNegative100:"-2.25rem",spaceNegative110:"-2.5rem",spaceNegative120:"-2.75rem",spaceNegative130:"-3rem",spaceNegative140:"-3.25rem",spaceNegative150:"-3.5rem",spaceNegative160:"-3.75rem",spaceNegative170:"-4rem",spaceNegative180:"-4.25rem",spaceNegative190:"-4.5rem",spaceNegative200:"-4.75rem"},F={colorText:"rgb(18, 28, 45)",colorTextBrand:"rgb(18, 28, 45)",colorTextBrandHighlight:"rgb(242, 47, 70)",colorTextBrandInverse:"rgb(255, 255, 255)",colorTextDecorative10:"rgb(96, 107, 133)",colorTextDecorative20:"rgb(0, 20, 137)",colorTextDecorative30:"rgb(14, 124, 58)",colorTextDecorative40:"rgb(109, 46, 209)",colorTextDestructive:"rgb(219, 19, 42)",colorTextDestructiveStrong:"rgb(173, 17, 17)",colorTextDestructiveStronger:"rgb(74, 11, 11)",colorTextDestructiveStrongest:"rgb(49, 12, 12)",colorTextDestructiveWeak:"rgb(246, 177, 177)",colorTextError:"rgb(219, 19, 42)",colorTextErrorStrong:"rgb(173, 17, 17)",colorTextErrorStronger:"rgb(74, 11, 11)",colorTextErrorStrongest:"rgb(49, 12, 12)",colorTextErrorWeak:"rgb(236, 91, 91)",colorTextIcon:"rgb(96, 107, 133)",colorTextIconAvailable:"rgb(14, 124, 58)",colorTextIconBrandHighlight:"rgb(242, 47, 70)",colorTextIconBrandInverse:"rgb(255, 255, 255)",colorTextIconBusy:"rgb(227, 106, 25)",colorTextIconError:"rgb(219, 19, 42)",colorTextIconInverse:"rgb(136, 145, 170)",colorTextIconNeutral:"rgb(0, 20, 137)",colorTextIconNew:"rgb(109, 46, 209)",colorTextIconNotification:"rgb(236, 91, 91)",colorTextIconOffline:"rgb(96, 107, 133)",colorTextIconSuccess:"rgb(14, 124, 58)",colorTextIconUnavailable:"rgb(219, 19, 42)",colorTextIconWarning:"rgb(227, 106, 25)",colorTextInverse:"rgb(255, 255, 255)",colorTextInverseNew:"rgb(200, 175, 240)",colorTextInverseWeak:"rgb(202, 205, 216)",colorTextInverseWeaker:"rgb(136, 145, 170)",colorTextInverseWeakest:"rgb(75, 86, 113)",colorTextLink:"rgb(2, 99, 224)",colorTextLinkDestructive:"rgb(219, 19, 42)",colorTextLinkDestructiveStrong:"rgb(173, 17, 17)",colorTextLinkDestructiveStronger:"rgb(74, 11, 11)",colorTextLinkDestructiveStrongest:"rgb(49, 12, 12)",colorTextLinkDestructiveWeak:"rgb(246, 177, 177)",colorTextLinkStrong:"rgb(0, 20, 137)",colorTextLinkStronger:"rgb(3, 11, 93)",colorTextLinkStrongest:"rgb(6, 3, 58)",colorTextLinkWeak:"rgb(153, 205, 255)",colorTextNeutral:"rgb(0, 20, 137)",colorTextNew:"rgb(109, 46, 209)",colorTextPrimary:"rgb(2, 99, 224)",colorTextPrimaryStrong:"rgb(0, 20, 137)",colorTextPrimaryStronger:"rgb(3, 11, 93)",colorTextPrimaryStrongest:"rgb(6, 3, 58)",colorTextPrimaryWeak:"rgb(153, 205, 255)",colorTextSubaccount:"rgb(84, 51, 8)",colorTextSuccess:"rgb(14, 124, 58)",colorTextUser:"rgb(18, 28, 45)",colorTextWarning:"rgb(141, 49, 24)",colorTextWarningStrong:"rgb(141, 49, 24)",colorTextWeak:"rgb(96, 107, 133)",colorTextWeaker:"rgb(139, 147, 170)",colorTextWeakest:"rgb(255, 255, 255)"},H={zIndex0:"0",zIndex10:"10",zIndex20:"20",zIndex30:"30",zIndex40:"40",zIndex50:"50",zIndex60:"60",zIndex70:"70",zIndex80:"80",zIndex90:"90"},U={colorBackground:"rgb(244, 246, 250)",colorBackgroundAvailable:"rgb(82, 189, 148)",colorBackgroundBody:"rgb(255, 255, 255)",colorBackgroundBodyElevation:"rgb(249, 249, 250)",colorBackgroundBodyElevationPrimary:"rgb(244, 249, 255)",colorBackgroundBodyInverse:"rgb(18, 28, 45)",colorBackgroundBrand:"rgb(71, 77, 102)",colorBackgroundBrand10:"rgb(242, 190, 90)",colorBackgroundBrand20:"rgb(81, 169, 227)",colorBackgroundBrand30:"rgb(106, 221, 178)",colorBackgroundBrandHighlight:"rgb(82, 189, 148)",colorBackgroundBrandHighlightWeakest:"rgb(220, 242, 234)",colorBackgroundBrandStrong:"rgb(3, 11, 93)",colorBackgroundBrandStronger:"rgb(6, 3, 58)",colorBackgroundBusy:"rgb(222, 117, 72)",colorBackgroundDecorative10Weakest:"rgb(244, 246, 250)",colorBackgroundDecorative20Weakest:"rgb(243, 246, 255)",colorBackgroundDecorative30Weakest:"rgb(238, 248, 244)",colorBackgroundDecorative40Weakest:"rgb(248, 247, 253)",colorBackgroundDestructive:"rgb(209, 67, 67)",colorBackgroundDestructiveStrong:"rgb(167, 54, 54)",colorBackgroundDestructiveStronger:"rgb(125, 40, 40)",colorBackgroundDestructiveStrongest:"rgb(79, 21, 21)",colorBackgroundDestructiveWeak:"rgb(244, 182, 182)",colorBackgroundDestructiveWeaker:"rgb(249, 218, 218)",colorBackgroundDestructiveWeakest:"rgb(253, 244, 244)",colorBackgroundElevation:"rgb(237, 238, 242)",colorBackgroundError:"rgb(209, 67, 67)",colorBackgroundErrorStrong:"rgb(167, 54, 54)",colorBackgroundErrorStronger:"rgb(125, 40, 40)",colorBackgroundErrorStrongest:"rgb(49, 12, 12)",colorBackgroundErrorWeakest:"rgb(253, 244, 244)",colorBackgroundInverse:"rgb(18, 28, 45)",colorBackgroundInverseElevation:"rgb(24, 37, 60)",colorBackgroundInverseStrong:"rgb(64, 79, 110)",colorBackgroundInverseStrongElevation:"rgb(75, 86, 113)",colorBackgroundInverseStronger:"rgb(96, 107, 133)",colorBackgroundInverseStrongerElevation:"rgb(103, 114, 142)",colorBackgroundInverseStrongest:"rgb(255, 255, 255)",colorBackgroundInverseWeakElevation:"rgb(24, 37, 60)",colorBackgroundNeutralWeakest:"rgb(244, 246, 250)",colorBackgroundNew:"rgb(231, 228, 249)",colorBackgroundNewWeakest:"rgb(250, 247, 253)",colorBackgroundNotification:"rgb(219, 19, 42)",colorBackgroundOffline:"rgb(193, 196, 214)",colorBackgroundOverlay:"rgba(71, 77, 102, 0.64)",colorBackgroundPrimary:"rgb(51, 102, 255)",colorBackgroundPrimaryStrong:"rgb(41, 82, 204)",colorBackgroundPrimaryStronger:"rgb(31, 61, 153)",colorBackgroundPrimaryStrongest:"rgb(12, 30, 86)",colorBackgroundPrimaryWeak:"rgb(214, 224, 255)",colorBackgroundPrimaryWeaker:"rgb(235, 240, 255)",colorBackgroundPrimaryWeakest:"rgb(243, 246, 255)",colorBackgroundRequired:"rgb(236, 91, 91)",colorBackgroundRowStriped:"rgb(250, 251, 255)",colorBackgroundStrong:"rgb(230, 232, 240)",colorBackgroundStrongElevation:"rgb(225, 227, 234)",colorBackgroundStronger:"rgb(202, 205, 216)",colorBackgroundStrongest:"rgb(105, 111, 140)",colorBackgroundSubaccount:"rgb(255, 239, 210)",colorBackgroundSuccess:"rgb(82, 189, 148)",colorBackgroundSuccessWeakest:"rgb(238, 248, 244)",colorBackgroundTrial:"rgb(220, 242, 234)",colorBackgroundUnavailable:"rgb(209, 67, 67)",colorBackgroundUser:"rgb(231, 228, 249)",colorBackgroundWarning:"rgb(222, 117, 72)",colorBackgroundWarningWeakest:"rgb(253, 247, 244)",colorBackgroundWeak:"rgb(249, 249, 250)",colorBackgroundWeakElevation:"rgb(249, 249, 250)",colorBackgroundWeaker:"rgb(255, 255, 255)",colorBackgroundWeakerElevation:"rgb(249, 249, 250)",colorBackgroundWeakest:"rgb(255, 255, 255)"},$={colorBorder:"rgb(216, 218, 229)",colorBorderDecorative10Weaker:"rgb(216, 218, 229)",colorBorderDecorative20Weaker:"rgb(214, 224, 255)",colorBorderDecorative30Weaker:"rgb(238, 248, 244)",colorBorderDecorative40Weaker:"rgb(231, 228, 249)",colorBorderDestructive:"rgb(209, 67, 67)",colorBorderDestructiveStrong:"rgb(167, 54, 54)",colorBorderDestructiveStronger:"rgb(125, 40, 40)",colorBorderDestructiveStrongest:"rgb(49, 12, 12)",colorBorderDestructiveWeak:"rgb(244, 182, 182)",colorBorderDestructiveWeaker:"rgb(249, 218, 218)",colorBorderDestructiveWeakest:"rgb(253, 244, 244)",colorBorderError:"rgb(209, 67, 67)",colorBorderErrorStrong:"rgb(167, 54, 54)",colorBorderErrorStronger:"rgb(125, 40, 40)",colorBorderErrorStrongest:"rgb(49, 12, 12)",colorBorderErrorWeak:"rgb(238, 145, 145)",colorBorderErrorWeaker:"rgb(244, 182, 182)",colorBorderErrorWeakest:"rgb(249, 218, 218)",colorBorderInverse:"rgb(136, 145, 170)",colorBorderInverseStrong:"rgb(225, 227, 234)",colorBorderInverseStronger:"rgb(244, 244, 246)",colorBorderInverseStrongest:"rgb(255, 255, 255)",colorBorderInverseWeaker:"rgb(57, 71, 98)",colorBorderInverseWeakest:"rgb(31, 48, 76)",colorBorderNeutral:"rgb(51, 102, 255)",colorBorderNeutralWeak:"rgb(157, 181, 255)",colorBorderNeutralWeaker:"rgb(214, 224, 255)",colorBorderNewWeak:"rgb(166, 127, 227)",colorBorderNewWeaker:"rgb(231, 228, 249)",colorBorderPrimary:"rgb(51, 102, 255)",colorBorderPrimaryStrong:"rgb(41, 82, 204)",colorBorderPrimaryStronger:"rgb(31, 61, 153)",colorBorderPrimaryStrongest:"rgb(12, 30, 86)",colorBorderPrimaryWeak:"rgb(157, 181, 255)",colorBorderPrimaryWeaker:"rgb(214, 224, 255)",colorBorderPrimaryWeakest:"rgb(235, 240, 255)",colorBorderStrong:"rgb(143, 149, 178)",colorBorderSuccess:"rgb(82, 189, 148)",colorBorderSuccessWeak:"rgb(163, 230, 205)",colorBorderSuccessWeaker:"rgb(220, 242, 234)",colorBorderSuccessWeakest:"rgb(238, 248, 244)",colorBorderUser:"rgb(231, 220, 250)",colorBorderWarning:"rgb(222, 117, 72)",colorBorderWarningWeak:"rgb(235, 172, 145)",colorBorderWarningWeaker:"rgb(242, 200, 182)",colorBorderWarningWeakest:"rgb(248, 227, 218)",colorBorderWeak:"rgb(230, 232, 240)",colorBorderWeaker:"rgb(237, 239, 245)",colorBorderWeakest:"rgb(255, 255, 255)"},G={shadow:"0 4px 16px 0 rgba(18, 28, 45, 0.2)",shadowBorder:"0 0 0 1px #D8DAE5",shadowBorderBottom:"0 1px 0 0 #D8DAE5",shadowBorderBottomBrand10Strong:"0 1px 0 #855c15",shadowBorderBottomBrand20Strong:"0 1px 0 #043cb5",shadowBorderBottomBrand30Strong:"0 1px 0 #0e7c3a",shadowBorderBottomDecorative10Weaker:"0 1px 0 #D8DAE5",shadowBorderBottomDecorative20Weaker:"0 1px 0 #D6E0FF",shadowBorderBottomDecorative30Weaker:"0 1px 0 #DCF2EA",shadowBorderBottomDecorative40Weaker:"0 1px 0 #D0CAF4",shadowBorderBottomErrorWeaker:"0 1px 0 #F4B6B6",shadowBorderBottomInverseNewWeaker:"0 1px 0 #5817bd",shadowBorderBottomInverseWeaker:"0 1px 0 #394762",shadowBorderBottomInverseWeakerInset:"inset 0 -1px 0 0 #394762",shadowBorderBottomNeutralWeaker:"0 1px 0 #9DB5FF",shadowBorderBottomNewWeaker:"0 1px 0 #D0CAF4",shadowBorderBottomNotificationStronger:"0 1px 0 #4a0b0b",shadowBorderBottomPrimary:"0 1px 0 #006dfa",shadowBorderBottomSubaccount:"0 1px 0 #ffdd35",shadowBorderBottomSuccessWeaker:"0 1px 0 #DCF2EA",shadowBorderBottomWarningWeaker:"0 1px 0 #F2C8B6",shadowBorderBottomWeak:"0 1px 0 #cacdd8",shadowBorderBottomWeakInset:"inset 0 -1px 0 0 #cacdd8",shadowBorderBrand10:"saffron",shadowBorderBrand20:"sky",shadowBorderBrand30:"mint",shadowBorderDecorative10Weaker:"0 0 0 1px #e1e3ea",shadowBorderDecorative20Weaker:"0 0 0 1px #cce4ff",shadowBorderDecorative30Weaker:"0 0 0 1px #d1fae0",shadowBorderDecorative40Weaker:"0 0 0 1px #e7dcfa",shadowBorderDestructive:"0 0 0 1px #D14343",shadowBorderDestructiveStrong:"0 0 0 1px #A73636",shadowBorderDestructiveStronger:"0 0 0 1px #7D2828",shadowBorderDestructiveStrongest:"0 0 0 1px #310C0C",shadowBorderDestructiveWeak:"0 0 0 1px #F4B6B6",shadowBorderDestructiveWeaker:"0 0 0 1px #F9DADA",shadowBorderError:"0 0 0 1px #D14343",shadowBorderErrorStrong:"0 0 0 1px #A73636",shadowBorderErrorStronger:"0 0 0 1px #7D2828",shadowBorderErrorStrongest:"0 0 0 1px #310c0c",shadowBorderErrorWeak:"0 0 0 1px #F4B6B6",shadowBorderErrorWeaker:"0 0 0 1px #fccfcf",shadowBorderInverse:"0 0 0 1px #8891aa",shadowBorderInverseNewWeaker:"0 0 0 1px #5817bd",shadowBorderInverseStrong:"0 0 0 1px #e1e3ea",shadowBorderInverseStronger:"0 0 0 1px #f4f4f6",shadowBorderInverseStrongest:"0 0 0 1px #ffffff",shadowBorderInverseWeaker:"0 0 0 1px #394762",shadowBorderInverseWeakest:"0 0 0 1px #1f304c",shadowBorderNeutralWeaker:"0 0 0 1px #cce4ff",shadowBorderNewWeaker:"0 0 0 1px #e7dcfa",shadowBorderNotification:"0 1px 0 #DB132A",shadowBorderPrimary:"0 0 0 1px #3366FF",shadowBorderPrimaryStrong:"0 0 0 1px #2952CC",shadowBorderPrimaryStronger:"0 0 0 1px #1F3D99",shadowBorderPrimaryStrongest:"0 0 0 1px #0C1E56",shadowBorderPrimaryWeak:"0 0 0 1px #9DB5FF",shadowBorderPrimaryWeaker:"0 0 0 1px #D6E0FF",shadowBorderRightInverseStrong:"1px 0 #e1e3ea",shadowBorderStrong:"0 0 0 1px #8F95B2",shadowBorderSubaccount:"0 0 0 1px #fff1b3",shadowBorderSuccessWeaker:"0 0 0 1px #d1fae0",shadowBorderTopInverseStrongest:"0 -1px 0 #cce4ff",shadowBorderTopPrimary:"0 -1px 0 #3366FF",shadowBorderTopPrimaryStrongest:"0 -1px 0 #030b5d",shadowBorderUser:"0 0 0 1px #8c5bd8",shadowBorderWarningWeaker:"0 0 0 1px #fddcc4",shadowBorderWeak:"0 0 0 1px #E6E8F0",shadowBorderWeaker:"0 0 0 1px #EDEFF5",shadowCard:"0 2px 8px 0 rgba(18, 28, 45, 0.1)",shadowElevation05:"0 0 0 1px #edeef2",shadowElevation10:"0 -1px 0 0 #f4f4f6, 0 3px 4px 0 rgba(15, 22, 33, 0.1)",shadowElevation20:"0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)",shadowElevationBottom05:"0 1px 0 0 #edeef2",shadowElevationBottomInverse05:"0 1px 0 0 #1f304c",shadowElevationInverse05:"0 0 0 1px #1f304c",shadowElevationInverse10:"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.1)",shadowElevationLeft20:"0 0 0 1px #f9f9fa, -4px 0 8px 0 rgba(15, 22, 33, 0.1), -16px 0 32px 0 rgba(15, 22, 33, 0.05)",shadowElevationRightInverse05:"1px 0 0 0 #1f304c",shadowElevationTop05:"0 -1px 0 0 #edeef2",shadowElevationTop20:"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)",shadowFocus:"0 0 0 4px rgba(2, 99, 224, 0.7)",shadowFocusInset:"inset 0 0 0 2px rgba(2, 99, 224, 0.7)",shadowFocusInverse:"0 0 0 4px rgba(255, 255, 255, 0.4)",shadowFocusInverseInset:"inset 0 0 0 2px rgba(255, 255, 255, 0.4)",shadowFocusShadowBorder:"0 0 0 4px rgba(2, 99, 224, 0.7), 0 0 0 1px #8891aa",shadowHigh:"0 16px 24px 0 rgba(18, 28, 45, 0.2)",shadowLeft:"4px 0 8px -4px rgba(18, 28, 45, 0.2)",shadowLeftInverse:"4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowLow:"0 2px 8px 0 rgba(18, 28, 45, 0.1)",shadowRight:"-4px 0 8px -4px rgba(18, 28, 45, 0.2)",shadowRightInverse:"-4px 0 8px -4px rgba(0, 0, 0, 0.4)"},q={colorBrand:"rgb(0, 20, 137)",colorBrandHighlight:"rgb(242, 47, 70)",colorGray0:"rgb(255, 255, 255)",colorGray10:"rgb(244, 244, 246)",colorGray20:"rgb(225, 227, 234)",colorGray30:"rgb(202, 205, 216)",colorGray40:"rgb(139, 147, 170)",colorGray50:"rgb(136, 145, 170)",colorGray60:"rgb(96, 107, 133)",colorGray70:"rgb(75, 86, 113)",colorGray80:"rgb(57, 71, 98)",colorGray90:"rgb(31, 48, 76)",colorGray100:"rgb(18, 28, 45)"},K={fontFamilyCode:"'SF Mono', Monaco, Inconsolata, 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace",fontFamilyDisplay:"'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyText:"'SF UI Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyTextChineseSimplified:"'Inter var experimental', 'Inter var', 'Microsoft YaHei New', \u5fae\u8f6f\u96c5\u9ed1, 'Microsoft Yahei', 'Microsoft JhengHei', \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextChineseTraditional:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextJapanese:"'Inter var experimental', 'Inter var', Hiragino Sans, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 ProN W3', 'Hiragino Kaku Gothic ProN', '\u30e1\u30a4\u30ea\u30aa', Meiryo, Osaka, 'MS PGothic', sans-serif",fontFamilyTextKorean:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif"},V={size0:"0",size10:"5.5rem",size20:"12rem",size30:"18.5rem",size40:"25rem",size50:"31.5rem",size60:"38rem",size70:"44.5rem",size80:"51rem",size90:"57.5rem",size100:"64rem",size110:"70.5rem",size120:"77rem",sizeBase0:"0",sizeBase10:"0.25rem",sizeBase20:"0.5rem",sizeBase30:"0.75rem",sizeBase40:"1rem",sizeBase50:"1.25rem",sizeBase60:"1.5rem",sizeBase70:"1.75rem",sizeBase80:"2rem",sizeBase90:"2.25rem",sizeIcon05:"0.75rem",sizeIcon10:"1rem",sizeIcon20:"1.25rem",sizeIcon30:"1.25rem",sizeIcon40:"1.5rem",sizeIcon50:"1.75rem",sizeIcon60:"1.75rem",sizeIcon70:"2rem",sizeIcon80:"2.5rem",sizeIcon90:"2.5rem",sizeIcon100:"3.25rem",sizeIcon110:"4rem",sizeSidebar:"15rem",sizeSidebarCompact:"4.75rem",sizeSquare0:"0",sizeSquare10:"0.125rem",sizeSquare20:"0.25rem",sizeSquare25:"0.375rem",sizeSquare30:"0.5rem",sizeSquare40:"0.75rem",sizeSquare50:"1rem",sizeSquare60:"1.25rem",sizeSquare70:"1.5rem",sizeSquare80:"1.75rem",sizeSquare90:"2rem",sizeSquare100:"2.25rem",sizeSquare110:"2.5rem",sizeSquare120:"2.75rem",sizeSquare130:"3rem",sizeSquare140:"3.25rem",sizeSquare150:"3.5rem",sizeSquare160:"3.75rem",sizeSquare170:"4rem",sizeSquare180:"4.25rem",sizeSquare190:"4.5rem",sizeSquare200:"4.75rem",sizeTopbar:"4.75rem"},Y={space0:"0",space10:"0.125rem",space20:"0.25rem",space30:"0.5rem",space40:"0.75rem",space50:"1rem",space60:"1.25rem",space70:"1.5rem",space80:"1.75rem",space90:"2rem",space100:"2.25rem",space110:"2.5rem",space120:"2.75rem",space130:"3rem",space140:"3.25rem",space150:"3.5rem",space160:"3.75rem",space170:"4rem",space180:"4.25rem",space190:"4.5rem",space200:"4.75rem",space210:"5rem",space220:"5.25rem",space230:"5.5rem",space240:"5.75rem",space250:"6rem",space260:"6.25rem",space270:"6.5rem",space280:"6.75rem",space290:"7rem",space300:"7.25rem",space310:"7.5rem",spaceNegative10:"-0.125rem",spaceNegative20:"-0.25rem",spaceNegative30:"-0.5rem",spaceNegative40:"-0.75rem",spaceNegative50:"-1rem",spaceNegative60:"-1.25rem",spaceNegative70:"-1.5rem",spaceNegative80:"-1.75rem",spaceNegative90:"-2rem",spaceNegative100:"-2.25rem",spaceNegative110:"-2.5rem",spaceNegative120:"-2.75rem",spaceNegative130:"-3rem",spaceNegative140:"-3.25rem",spaceNegative150:"-3.5rem",spaceNegative160:"-3.75rem",spaceNegative170:"-4rem",spaceNegative180:"-4.25rem",spaceNegative190:"-4.5rem",spaceNegative200:"-4.75rem"},X={colorText:"rgb(71, 77, 102)",colorTextBrand:"rgb(18, 28, 45)",colorTextBrandHighlight:"rgb(82, 189, 148)",colorTextBrandInverse:"rgb(255, 255, 255)",colorTextDecorative10:"rgb(105, 111, 140)",colorTextDecorative20:"rgb(41, 82, 204)",colorTextDecorative30:"rgb(49, 113, 89)",colorTextDecorative40:"rgb(110, 98, 182)",colorTextDestructive:"rgb(199, 35, 35)",colorTextDestructiveStrong:"rgb(173, 17, 17)",colorTextDestructiveStronger:"rgb(74, 11, 11)",colorTextDestructiveStrongest:"rgb(49, 12, 12)",colorTextDestructiveWeak:"rgb(246, 177, 177)",colorTextError:"rgb(167, 54, 54)",colorTextErrorStrong:"rgb(125, 40, 40)",colorTextErrorStronger:"rgb(49, 12, 12)",colorTextErrorStrongest:"rgb(49, 12, 12)",colorTextErrorWeak:"rgb(209, 67, 67)",colorTextIcon:"rgb(143, 149, 178)",colorTextIconAvailable:"rgb(82, 189, 148)",colorTextIconBrandHighlight:"rgb(82, 189, 148)",colorTextIconBrandInverse:"rgb(255, 255, 255)",colorTextIconBusy:"rgb(222, 117, 72)",colorTextIconError:"rgb(209, 67, 67)",colorTextIconInverse:"rgb(143, 149, 178)",colorTextIconNeutral:"rgb(0, 20, 137)",colorTextIconNew:"rgb(109, 46, 209)",colorTextIconNotification:"rgb(236, 91, 91)",colorTextIconOffline:"rgb(143, 149, 178)",colorTextIconSuccess:"rgb(82, 189, 148)",colorTextIconUnavailable:"rgb(209, 67, 67)",colorTextIconWarning:"rgb(222, 117, 72)",colorTextInverse:"rgb(255, 255, 255)",colorTextInverseNew:"rgb(200, 175, 240)",colorTextInverseWeak:"rgb(136, 145, 170)",colorTextInverseWeaker:"rgb(96, 107, 133)",colorTextInverseWeakest:"rgb(75, 86, 113)",colorTextLink:"rgb(51, 102, 255)",colorTextLinkDestructive:"rgb(209, 67, 67)",colorTextLinkDestructiveStrong:"rgb(125, 40, 40)",colorTextLinkDestructiveStronger:"rgb(49, 12, 12)",colorTextLinkDestructiveStrongest:"rgb(49, 12, 12)",colorTextLinkDestructiveWeak:"rgb(209, 67, 67)",colorTextLinkStrong:"rgb(31, 61, 153)",colorTextLinkStronger:"rgb(12, 30, 86)",colorTextLinkStrongest:"rgb(7, 19, 55)",colorTextLinkWeak:"rgb(157, 181, 255)",colorTextNeutral:"rgb(0, 20, 137)",colorTextNew:"rgb(82, 73, 136)",colorTextPrimary:"rgb(51, 102, 255)",colorTextPrimaryStrong:"rgb(0, 20, 137)",colorTextPrimaryStronger:"rgb(3, 11, 93)",colorTextPrimaryStrongest:"rgb(6, 3, 58)",colorTextPrimaryWeak:"rgb(153, 205, 255)",colorTextSubaccount:"rgb(84, 51, 8)",colorTextSuccess:"rgb(36, 99, 75)",colorTextUser:"rgb(109, 46, 209)",colorTextWarning:"rgb(178, 94, 58)",colorTextWarningStrong:"rgb(133, 70, 43)",colorTextWeak:"rgb(105, 111, 140)",colorTextWeaker:"rgb(143, 149, 178)",colorTextWeakest:"rgb(255, 255, 255)"},J={colorBackground:"rgb(244, 244, 246)",colorBackgroundAvailable:"rgb(20, 176, 83)",colorBackgroundBody:"rgb(255, 255, 255)",colorBackgroundBodyElevation:"rgb(249, 249, 250)",colorBackgroundBodyElevationPrimary:"rgb(244, 249, 255)",colorBackgroundBodyInverse:"rgb(18, 28, 45)",colorBackgroundBrand:"rgb(0, 20, 137)",colorBackgroundBrand10:"rgb(242, 190, 90)",colorBackgroundBrand20:"rgb(81, 169, 227)",colorBackgroundBrand30:"rgb(106, 221, 178)",colorBackgroundBrandHighlight:"rgb(242, 47, 70)",colorBackgroundBrandHighlightWeakest:"rgba(242, 47, 70, 0.1)",colorBackgroundBrandStrong:"rgb(3, 11, 93)",colorBackgroundBrandStronger:"rgb(6, 3, 58)",colorBackgroundBusy:"rgb(244, 124, 34)",colorBackgroundDecorative10Weakest:"rgb(244, 244, 246)",colorBackgroundDecorative20Weakest:"rgb(235, 244, 255)",colorBackgroundDecorative30Weakest:"rgb(237, 253, 243)",colorBackgroundDecorative40Weakest:"rgb(245, 240, 252)",colorBackgroundDestructive:"rgb(219, 19, 42)",colorBackgroundDestructiveStrong:"rgb(117, 12, 12)",colorBackgroundDestructiveStronger:"rgb(74, 11, 11)",colorBackgroundDestructiveStrongest:"rgb(49, 12, 12)",colorBackgroundDestructiveWeak:"rgb(246, 177, 177)",colorBackgroundDestructiveWeaker:"rgb(252, 207, 207)",colorBackgroundDestructiveWeakest:"rgb(254, 245, 245)",colorBackgroundElevation:"rgb(237, 238, 242)",colorBackgroundError:"rgb(219, 19, 42)",colorBackgroundErrorStrong:"rgb(117, 12, 12)",colorBackgroundErrorStronger:"rgb(74, 11, 11)",colorBackgroundErrorStrongest:"rgb(49, 12, 12)",colorBackgroundErrorWeakest:"rgb(254, 245, 245)",colorBackgroundInverse:"rgb(31, 48, 76)",colorBackgroundInverseElevation:"rgb(37, 57, 91)",colorBackgroundInverseStrong:"rgb(57, 71, 98)",colorBackgroundInverseStrongElevation:"rgb(37, 57, 91)",colorBackgroundInverseStronger:"rgb(57, 71, 98)",colorBackgroundInverseStrongerElevation:"rgb(64, 79, 110)",colorBackgroundInverseStrongest:"rgb(255, 255, 255)",colorBackgroundInverseWeakElevation:"rgb(37, 57, 91)",colorBackgroundNeutralWeakest:"rgb(235, 244, 255)",colorBackgroundNew:"rgb(245, 240, 252)",colorBackgroundNewWeakest:"rgb(250, 247, 253)",colorBackgroundNotification:"rgb(219, 19, 42)",colorBackgroundOffline:"rgb(139, 147, 170)",colorBackgroundOverlay:"rgba(6, 3, 58, 0.4)",colorBackgroundPrimary:"rgb(2, 99, 224)",colorBackgroundPrimaryStrong:"rgb(0, 20, 137)",colorBackgroundPrimaryStronger:"rgb(3, 11, 93)",colorBackgroundPrimaryStrongest:"rgb(6, 3, 58)",colorBackgroundPrimaryWeak:"rgb(153, 205, 255)",colorBackgroundPrimaryWeaker:"rgb(204, 228, 255)",colorBackgroundPrimaryWeakest:"rgb(235, 244, 255)",colorBackgroundRequired:"rgb(236, 91, 91)",colorBackgroundRowStriped:"rgb(244, 244, 246)",colorBackgroundStrong:"rgb(225, 227, 234)",colorBackgroundStrongElevation:"rgb(225, 227, 234)",colorBackgroundStronger:"rgb(136, 145, 170)",colorBackgroundStrongest:"rgb(75, 86, 113)",colorBackgroundSubaccount:"rgb(255, 251, 234)",colorBackgroundSuccess:"rgb(20, 176, 83)",colorBackgroundSuccessWeakest:"rgb(237, 253, 243)",colorBackgroundTrial:"rgb(209, 250, 224)",colorBackgroundUnavailable:"rgb(219, 19, 42)",colorBackgroundUser:"rgb(200, 175, 240)",colorBackgroundWarning:"rgb(244, 124, 34)",colorBackgroundWarningWeakest:"rgb(254, 245, 238)",colorBackgroundWeak:"rgb(249, 249, 250)",colorBackgroundWeakElevation:"rgb(249, 249, 250)",colorBackgroundWeaker:"rgb(255, 255, 255)",colorBackgroundWeakerElevation:"rgb(249, 249, 250)",colorBackgroundWeakest:"rgb(255, 255, 255)"},Q={colorBorder:"rgb(139, 147, 170)",colorBorderDecorative10Weaker:"rgb(225, 227, 234)",colorBorderDecorative20Weaker:"rgb(204, 228, 255)",colorBorderDecorative30Weaker:"rgb(209, 250, 224)",colorBorderDecorative40Weaker:"rgb(231, 220, 250)",colorBorderDestructive:"rgb(219, 19, 42)",colorBorderDestructiveStrong:"rgb(117, 12, 12)",colorBorderDestructiveStronger:"rgb(74, 11, 11)",colorBorderDestructiveStrongest:"rgb(49, 12, 12)",colorBorderDestructiveWeak:"rgb(246, 177, 177)",colorBorderDestructiveWeaker:"rgb(252, 207, 207)",colorBorderDestructiveWeakest:"rgb(254, 236, 236)",colorBorderError:"rgb(219, 19, 42)",colorBorderErrorStrong:"rgb(117, 12, 12)",colorBorderErrorStronger:"rgb(74, 11, 11)",colorBorderErrorStrongest:"rgb(49, 12, 12)",colorBorderErrorWeak:"rgb(245, 138, 138)",colorBorderErrorWeaker:"rgb(252, 207, 207)",colorBorderErrorWeakest:"rgb(254, 236, 236)",colorBorderInverse:"rgb(136, 145, 170)",colorBorderInverseStrong:"rgb(225, 227, 234)",colorBorderInverseStronger:"rgb(244, 244, 246)",colorBorderInverseStrongest:"rgb(255, 255, 255)",colorBorderInverseWeaker:"rgb(57, 71, 98)",colorBorderInverseWeakest:"rgb(31, 48, 76)",colorBorderNeutral:"rgb(2, 99, 224)",colorBorderNeutralWeak:"rgb(102, 179, 255)",colorBorderNeutralWeaker:"rgb(204, 228, 255)",colorBorderNewWeak:"rgb(166, 127, 227)",colorBorderNewWeaker:"rgb(231, 220, 250)",colorBorderPrimary:"rgb(2, 99, 224)",colorBorderPrimaryStrong:"rgb(0, 20, 137)",colorBorderPrimaryStronger:"rgb(3, 11, 93)",colorBorderPrimaryStrongest:"rgb(6, 3, 58)",colorBorderPrimaryWeak:"rgb(153, 205, 255)",colorBorderPrimaryWeaker:"rgb(204, 228, 255)",colorBorderPrimaryWeakest:"rgb(235, 244, 255)",colorBorderStrong:"rgb(96, 107, 133)",colorBorderSuccess:"rgb(20, 176, 83)",colorBorderSuccessWeak:"rgb(54, 213, 118)",colorBorderSuccessWeaker:"rgb(209, 250, 224)",colorBorderSuccessWeakest:"rgb(237, 253, 243)",colorBorderUser:"rgb(231, 220, 250)",colorBorderWarning:"rgb(244, 124, 34)",colorBorderWarningWeak:"rgb(255, 179, 122)",colorBorderWarningWeaker:"rgb(253, 220, 196)",colorBorderWarningWeakest:"rgb(254, 245, 238)",colorBorderWeak:"rgb(202, 205, 216)",colorBorderWeaker:"rgb(225, 227, 234)",colorBorderWeakest:"rgb(255, 255, 255)"},ee={shadow:"0 4px 16px 0 rgba(18, 28, 45, 0.2)",shadowBorder:"0 0 0 1px #8B93AA",shadowBorderBottom:"0 1px 0 0 #8B93AA",shadowBorderBottomBrand10Strong:"0 1px 0 #855c15",shadowBorderBottomBrand20Strong:"0 1px 0 #043cb5",shadowBorderBottomBrand30Strong:"0 1px 0 #0e7c3a",shadowBorderBottomDecorative10Weaker:"0 1px 0 #e1e3ea",shadowBorderBottomDecorative20Weaker:"0 1px 0 #cce4ff",shadowBorderBottomDecorative30Weaker:"0 1px 0 #d1fae0",shadowBorderBottomDecorative40Weaker:"0 1px 0 #e7dcfa",shadowBorderBottomErrorWeaker:"0 1px 0 #fccfcf",shadowBorderBottomInverseNewWeaker:"0 1px 0 #5817bd",shadowBorderBottomInverseWeaker:"0 1px 0 #394762",shadowBorderBottomInverseWeakerInset:"inset 0 -1px 0 0 #394762",shadowBorderBottomNeutralWeaker:"0 1px 0 #cce4ff",shadowBorderBottomNewWeaker:"0 1px 0 #e7dcfa",shadowBorderBottomNotificationStronger:"0 1px 0 #4a0b0b",shadowBorderBottomPrimary:"0 1px 0 #006dfa",shadowBorderBottomSubaccount:"0 1px 0 #ffdd35",shadowBorderBottomSuccessWeaker:"0 1px 0 #d1fae0",shadowBorderBottomWarningWeaker:"0 1px 0 #fddcc4",shadowBorderBottomWeak:"0 1px 0 #cacdd8",shadowBorderBottomWeakInset:"inset 0 -1px 0 0 #cacdd8",shadowBorderBrand10:"saffron",shadowBorderBrand20:"sky",shadowBorderBrand30:"mint",shadowBorderDecorative10Weaker:"0 0 0 1px #e1e3ea",shadowBorderDecorative20Weaker:"0 0 0 1px #cce4ff",shadowBorderDecorative30Weaker:"0 0 0 1px #d1fae0",shadowBorderDecorative40Weaker:"0 0 0 1px #e7dcfa",shadowBorderDestructive:"0 0 0 1px #DB132A",shadowBorderDestructiveStrong:"0 0 0 1px #750c0c",shadowBorderDestructiveStronger:"0 0 0 1px #4a0b0b",shadowBorderDestructiveStrongest:"0 0 0 1px #310c0c",shadowBorderDestructiveWeak:"0 0 0 1px #f6b1b1",shadowBorderDestructiveWeaker:"0 0 0 1px #fccfcf",shadowBorderError:"0 0 0 1px #DB132A",shadowBorderErrorStrong:"0 0 0 1px #750c0c",shadowBorderErrorStronger:"0 0 0 1px #4a0b0b",shadowBorderErrorStrongest:"0 0 0 1px #310c0c",shadowBorderErrorWeak:"0 0 0 1px #EC5B5B",shadowBorderErrorWeaker:"0 0 0 1px #fccfcf",shadowBorderInverse:"0 0 0 1px #8891aa",shadowBorderInverseNewWeaker:"0 0 0 1px #5817bd",shadowBorderInverseStrong:"0 0 0 1px #e1e3ea",shadowBorderInverseStronger:"0 0 0 1px #f4f4f6",shadowBorderInverseStrongest:"0 0 0 1px #ffffff",shadowBorderInverseWeaker:"0 0 0 1px #394762",shadowBorderInverseWeakest:"0 0 0 1px #1f304c",shadowBorderNeutralWeaker:"0 0 0 1px #cce4ff",shadowBorderNewWeaker:"0 0 0 1px #e7dcfa",shadowBorderNotification:"0 1px 0 #DB132A",shadowBorderPrimary:"0 0 0 1px #0263e0",shadowBorderPrimaryStrong:"0 0 0 1px #001489",shadowBorderPrimaryStronger:"0 0 0 1px #030b5d",shadowBorderPrimaryStrongest:"0 0 0 1px #06033a",shadowBorderPrimaryWeak:"0 0 0 1px #99cdff",shadowBorderPrimaryWeaker:"0 0 0 1px #cce4ff",shadowBorderRightInverseStrong:"1px 0 #e1e3ea",shadowBorderStrong:"0 0 0 1px #606b85",shadowBorderSubaccount:"0 0 0 1px #fff1b3",shadowBorderSuccessWeaker:"0 0 0 1px #d1fae0",shadowBorderTopInverseStrongest:"0 -1px 0 #cce4ff",shadowBorderTopPrimary:"0 -1px 0 #006dfa",shadowBorderTopPrimaryStrongest:"0 -1px 0 #030b5d",shadowBorderUser:"0 0 0 1px #8c5bd8",shadowBorderWarningWeaker:"0 0 0 1px #fddcc4",shadowBorderWeak:"0 0 0 1px #cacdd8",shadowBorderWeaker:"0 0 0 1px #e1e3ea",shadowCard:"0 2px 8px 0 rgba(18, 28, 45, 0.1)",shadowElevation05:"0 0 0 1px #edeef2",shadowElevation10:"0 -1px 0 0 #f4f4f6, 0 3px 4px 0 rgba(15, 22, 33, 0.1)",shadowElevation20:"0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)",shadowElevationBottom05:"0 1px 0 0 #edeef2",shadowElevationBottomInverse05:"0 1px 0 0 #1f304c",shadowElevationInverse05:"0 0 0 1px #1f304c",shadowElevationInverse10:"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.1)",shadowElevationLeft20:"0 0 0 1px #f9f9fa, -4px 0 8px 0 rgba(15, 22, 33, 0.1), -16px 0 32px 0 rgba(15, 22, 33, 0.05)",shadowElevationRightInverse05:"1px 0 0 0 #1f304c",shadowElevationTop05:"0 -1px 0 0 #edeef2",shadowElevationTop20:"0 0 0 1px #f9f9fa, 0 6px 8px 0 rgba(15, 22, 33, 0.1), 16px 16px 32px 0 rgba(15, 22, 33, 0.05)",shadowFocus:"0 0 0 4px rgba(2, 99, 224, 0.7)",shadowFocusInset:"inset 0 0 0 2px rgba(2, 99, 224, 0.7)",shadowFocusInverse:"0 0 0 4px rgba(255, 255, 255, 0.4)",shadowFocusInverseInset:"inset 0 0 0 2px rgba(255, 255, 255, 0.4)",shadowFocusShadowBorder:"0 0 0 4px rgba(2, 99, 224, 0.7), 0 0 0 1px #8891aa",shadowHigh:"0 16px 24px 0 rgba(18, 28, 45, 0.2)",shadowLeft:"4px 0 8px -4px rgba(18, 28, 45, 0.2)",shadowLeftInverse:"4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowLow:"0 2px 8px 0 rgba(18, 28, 45, 0.1)",shadowRight:"-4px 0 8px -4px rgba(18, 28, 45, 0.2)",shadowRightInverse:"-4px 0 8px -4px rgba(0, 0, 0, 0.4)"},te={colorBrand:"rgb(0, 20, 137)",colorBrandHighlight:"rgb(242, 47, 70)",colorGray0:"rgb(255, 255, 255)",colorGray10:"rgb(244, 244, 246)",colorGray20:"rgb(225, 227, 234)",colorGray30:"rgb(202, 205, 216)",colorGray40:"rgb(139, 147, 170)",colorGray50:"rgb(136, 145, 170)",colorGray60:"rgb(96, 107, 133)",colorGray70:"rgb(75, 86, 113)",colorGray80:"rgb(57, 71, 98)",colorGray90:"rgb(31, 48, 76)",colorGray100:"rgb(18, 28, 45)"},ne={fontFamilyCode:"'TwilioSansMono', Courier, monospace",fontFamilyDisplay:"'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyText:"'Colfax', Helvetica, Arial, sans-serif",fontFamilyTextChineseSimplified:"'Inter var experimental', 'Inter var', 'Microsoft YaHei New', \u5fae\u8f6f\u96c5\u9ed1, 'Microsoft Yahei', 'Microsoft JhengHei', \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextChineseTraditional:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextJapanese:"'Inter var experimental', 'Inter var', Hiragino Sans, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 ProN W3', 'Hiragino Kaku Gothic ProN', '\u30e1\u30a4\u30ea\u30aa', Meiryo, Osaka, 'MS PGothic', sans-serif",fontFamilyTextKorean:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif"},re={size0:"0",size10:"5.5rem",size20:"12rem",size30:"18.5rem",size40:"25rem",size50:"31.5rem",size60:"38rem",size70:"44.5rem",size80:"51rem",size90:"57.5rem",size100:"64rem",size110:"70.5rem",size120:"77rem",sizeBase0:"0",sizeBase10:"0.25rem",sizeBase20:"0.5rem",sizeBase30:"0.75rem",sizeBase40:"1rem",sizeBase50:"1.25rem",sizeBase60:"1.5rem",sizeBase70:"1.75rem",sizeBase80:"2rem",sizeBase90:"2.25rem",sizeIcon05:"0.75rem",sizeIcon10:"1rem",sizeIcon20:"1.25rem",sizeIcon30:"1.25rem",sizeIcon40:"1.5rem",sizeIcon50:"1.75rem",sizeIcon60:"1.75rem",sizeIcon70:"2rem",sizeIcon80:"2.5rem",sizeIcon90:"2.5rem",sizeIcon100:"3.25rem",sizeIcon110:"4rem",sizeSidebar:"15rem",sizeSidebarCompact:"4.75rem",sizeSquare0:"0",sizeSquare10:"0.125rem",sizeSquare20:"0.25rem",sizeSquare25:"0.375rem",sizeSquare30:"0.5rem",sizeSquare40:"0.75rem",sizeSquare50:"1rem",sizeSquare60:"1.25rem",sizeSquare70:"1.5rem",sizeSquare80:"1.75rem",sizeSquare90:"2rem",sizeSquare100:"2.25rem",sizeSquare110:"2.5rem",sizeSquare120:"2.75rem",sizeSquare130:"3rem",sizeSquare140:"3.25rem",sizeSquare150:"3.5rem",sizeSquare160:"3.75rem",sizeSquare170:"4rem",sizeSquare180:"4.25rem",sizeSquare190:"4.5rem",sizeSquare200:"4.75rem",sizeTopbar:"4.75rem"},oe={space0:"0",space10:"0.125rem",space20:"0.25rem",space30:"0.5rem",space40:"0.75rem",space50:"1rem",space60:"1.25rem",space70:"1.5rem",space80:"1.75rem",space90:"2rem",space100:"2.25rem",space110:"2.5rem",space120:"2.75rem",space130:"3rem",space140:"3.25rem",space150:"3.5rem",space160:"3.75rem",space170:"4rem",space180:"4.25rem",space190:"4.5rem",space200:"4.75rem",space210:"5rem",space220:"5.25rem",space230:"5.5rem",space240:"5.75rem",space250:"6rem",space260:"6.25rem",space270:"6.5rem",space280:"6.75rem",space290:"7rem",space300:"7.25rem",space310:"7.5rem",spaceNegative10:"-0.125rem",spaceNegative20:"-0.25rem",spaceNegative30:"-0.5rem",spaceNegative40:"-0.75rem",spaceNegative50:"-1rem",spaceNegative60:"-1.25rem",spaceNegative70:"-1.5rem",spaceNegative80:"-1.75rem",spaceNegative90:"-2rem",spaceNegative100:"-2.25rem",spaceNegative110:"-2.5rem",spaceNegative120:"-2.75rem",spaceNegative130:"-3rem",spaceNegative140:"-3.25rem",spaceNegative150:"-3.5rem",spaceNegative160:"-3.75rem",spaceNegative170:"-4rem",spaceNegative180:"-4.25rem",spaceNegative190:"-4.5rem",spaceNegative200:"-4.75rem"},ie={colorText:"rgb(18, 28, 45)",colorTextBrand:"rgb(18, 28, 45)",colorTextBrandHighlight:"rgb(242, 47, 70)",colorTextBrandInverse:"rgb(255, 255, 255)",colorTextDecorative10:"rgb(96, 107, 133)",colorTextDecorative20:"rgb(0, 20, 137)",colorTextDecorative30:"rgb(14, 124, 58)",colorTextDecorative40:"rgb(109, 46, 209)",colorTextDestructive:"rgb(219, 19, 42)",colorTextDestructiveStrong:"rgb(173, 17, 17)",colorTextDestructiveStronger:"rgb(74, 11, 11)",colorTextDestructiveStrongest:"rgb(49, 12, 12)",colorTextDestructiveWeak:"rgb(246, 177, 177)",colorTextError:"rgb(219, 19, 42)",colorTextErrorStrong:"rgb(173, 17, 17)",colorTextErrorStronger:"rgb(74, 11, 11)",colorTextErrorStrongest:"rgb(49, 12, 12)",colorTextErrorWeak:"rgb(236, 91, 91)",colorTextIcon:"rgb(96, 107, 133)",colorTextIconAvailable:"rgb(14, 124, 58)",colorTextIconBrandHighlight:"rgb(242, 47, 70)",colorTextIconBrandInverse:"rgb(255, 255, 255)",colorTextIconBusy:"rgb(227, 106, 25)",colorTextIconError:"rgb(219, 19, 42)",colorTextIconInverse:"rgb(136, 145, 170)",colorTextIconNeutral:"rgb(0, 20, 137)",colorTextIconNew:"rgb(109, 46, 209)",colorTextIconNotification:"rgb(236, 91, 91)",colorTextIconOffline:"rgb(96, 107, 133)",colorTextIconSuccess:"rgb(14, 124, 58)",colorTextIconUnavailable:"rgb(219, 19, 42)",colorTextIconWarning:"rgb(227, 106, 25)",colorTextInverse:"rgb(255, 255, 255)",colorTextInverseNew:"rgb(200, 175, 240)",colorTextInverseWeak:"rgb(202, 205, 216)",colorTextInverseWeaker:"rgb(136, 145, 170)",colorTextInverseWeakest:"rgb(75, 86, 113)",colorTextLink:"rgb(2, 99, 224)",colorTextLinkDestructive:"rgb(219, 19, 42)",colorTextLinkDestructiveStrong:"rgb(173, 17, 17)",colorTextLinkDestructiveStronger:"rgb(74, 11, 11)",colorTextLinkDestructiveStrongest:"rgb(49, 12, 12)",colorTextLinkDestructiveWeak:"rgb(246, 177, 177)",colorTextLinkStrong:"rgb(0, 20, 137)",colorTextLinkStronger:"rgb(3, 11, 93)",colorTextLinkStrongest:"rgb(6, 3, 58)",colorTextLinkWeak:"rgb(153, 205, 255)",colorTextNeutral:"rgb(0, 20, 137)",colorTextNew:"rgb(109, 46, 209)",colorTextPrimary:"rgb(2, 99, 224)",colorTextPrimaryStrong:"rgb(0, 20, 137)",colorTextPrimaryStronger:"rgb(3, 11, 93)",colorTextPrimaryStrongest:"rgb(6, 3, 58)",colorTextPrimaryWeak:"rgb(153, 205, 255)",colorTextSubaccount:"rgb(84, 51, 8)",colorTextSuccess:"rgb(14, 124, 58)",colorTextUser:"rgb(18, 28, 45)",colorTextWarning:"rgb(141, 49, 24)",colorTextWarningStrong:"rgb(141, 49, 24)",colorTextWeak:"rgb(96, 107, 133)",colorTextWeaker:"rgb(139, 147, 170)",colorTextWeakest:"rgb(255, 255, 255)"},ae={colorBackground:"rgb(24, 37, 60)",colorBackgroundAvailable:"rgb(20, 176, 83)",colorBackgroundBody:"rgb(13, 19, 28)",colorBackgroundBodyElevation:"rgb(24, 37, 60)",colorBackgroundBodyElevationPrimary:"rgb(24, 37, 60)",colorBackgroundBodyInverse:"rgb(18, 28, 45)",colorBackgroundBrand:"rgb(18, 28, 45)",colorBackgroundBrand10:"rgb(242, 190, 90)",colorBackgroundBrand20:"rgb(81, 169, 227)",colorBackgroundBrand30:"rgb(106, 221, 178)",colorBackgroundBrandHighlight:"rgb(242, 47, 70)",colorBackgroundBrandHighlightWeakest:"rgba(242, 47, 70, 0.1)",colorBackgroundBrandStrong:"rgb(18, 28, 45)",colorBackgroundBrandStronger:"rgb(18, 28, 45)",colorBackgroundBusy:"rgb(244, 124, 34)",colorBackgroundDecorative10Weakest:"rgb(18, 28, 45)",colorBackgroundDecorative20Weakest:"rgb(3, 11, 93)",colorBackgroundDecorative30Weakest:"rgb(5, 41, 18)",colorBackgroundDecorative40Weakest:"rgb(34, 9, 74)",colorBackgroundDestructive:"rgb(219, 19, 42)",colorBackgroundDestructiveStrong:"rgb(246, 177, 177)",colorBackgroundDestructiveStronger:"rgb(252, 207, 207)",colorBackgroundDestructiveStrongest:"rgb(254, 236, 236)",colorBackgroundDestructiveWeak:"rgb(57, 71, 98)",colorBackgroundDestructiveWeaker:"rgb(31, 48, 76)",colorBackgroundDestructiveWeakest:"rgb(18, 28, 45)",colorBackgroundElevation:"rgb(31, 48, 76)",colorBackgroundError:"rgb(219, 19, 42)",colorBackgroundErrorStrong:"rgb(245, 138, 138)",colorBackgroundErrorStronger:"rgb(252, 207, 207)",colorBackgroundErrorStrongest:"rgb(254, 236, 236)",colorBackgroundErrorWeakest:"rgb(18, 28, 45)",colorBackgroundInverse:"rgb(18, 28, 45)",colorBackgroundInverseElevation:"rgb(24, 37, 60)",colorBackgroundInverseStrong:"rgb(31, 48, 76)",colorBackgroundInverseStrongElevation:"rgb(37, 57, 91)",colorBackgroundInverseStronger:"rgb(57, 71, 98)",colorBackgroundInverseStrongerElevation:"rgb(64, 79, 110)",colorBackgroundInverseStrongest:"rgb(255, 255, 255)",colorBackgroundInverseWeakElevation:"rgb(18, 28, 45)",colorBackgroundNeutralWeakest:"rgb(18, 28, 45)",colorBackgroundNew:"rgb(56, 14, 120)",colorBackgroundNewWeakest:"rgb(18, 28, 45)",colorBackgroundNotification:"rgb(219, 19, 42)",colorBackgroundOffline:"rgb(139, 147, 170)",colorBackgroundOverlay:"rgba(18, 28, 45, 0.9)",colorBackgroundPrimary:"rgb(0, 109, 250)",colorBackgroundPrimaryStrong:"rgb(153, 205, 255)",colorBackgroundPrimaryStronger:"rgb(204, 228, 255)",colorBackgroundPrimaryStrongest:"rgb(235, 244, 255)",colorBackgroundPrimaryWeak:"rgb(57, 71, 98)",colorBackgroundPrimaryWeaker:"rgb(31, 48, 76)",colorBackgroundPrimaryWeakest:"rgb(18, 28, 45)",colorBackgroundRequired:"rgb(236, 91, 91)",colorBackgroundRowStriped:"rgb(18, 28, 45)",colorBackgroundStrong:"rgb(31, 48, 76)",colorBackgroundStrongElevation:"rgb(37, 57, 91)",colorBackgroundStronger:"rgb(96, 107, 133)",colorBackgroundStrongest:"rgb(225, 227, 234)",colorBackgroundSubaccount:"rgb(18, 28, 45)",colorBackgroundSuccess:"rgb(20, 176, 83)",colorBackgroundSuccessWeakest:"rgb(18, 28, 45)",colorBackgroundTrial:"rgb(5, 41, 18)",colorBackgroundUnavailable:"rgb(219, 19, 42)",colorBackgroundUser:"rgb(34, 9, 74)",colorBackgroundWarning:"rgb(244, 124, 34)",colorBackgroundWarningWeakest:"rgb(18, 28, 45)",colorBackgroundWeak:"rgb(18, 28, 45)",colorBackgroundWeakElevation:"rgb(31, 48, 76)",colorBackgroundWeaker:"rgb(18, 28, 45)",colorBackgroundWeakerElevation:"rgb(24, 37, 60)",colorBackgroundWeakest:"rgb(13, 19, 28)"},se={colorBorder:"rgb(96, 107, 133)",colorBorderDecorative10Weaker:"rgb(31, 48, 76)",colorBorderDecorative20Weaker:"rgb(4, 60, 181)",colorBorderDecorative30Weaker:"rgb(14, 124, 58)",colorBorderDecorative40Weaker:"rgb(88, 23, 189)",colorBorderDestructive:"rgb(219, 19, 42)",colorBorderDestructiveStrong:"rgb(246, 177, 177)",colorBorderDestructiveStronger:"rgb(252, 207, 207)",colorBorderDestructiveStrongest:"rgb(254, 236, 236)",colorBorderDestructiveWeak:"rgb(117, 12, 12)",colorBorderDestructiveWeaker:"rgb(74, 11, 11)",colorBorderDestructiveWeakest:"rgb(49, 12, 12)",colorBorderError:"rgb(219, 19, 42)",colorBorderErrorStrong:"rgb(245, 138, 138)",colorBorderErrorStronger:"rgb(252, 207, 207)",colorBorderErrorStrongest:"rgb(254, 236, 236)",colorBorderErrorWeak:"rgb(173, 17, 17)",colorBorderErrorWeaker:"rgb(173, 17, 17)",colorBorderErrorWeakest:"rgb(49, 12, 12)",colorBorderInverse:"rgb(136, 145, 170)",colorBorderInverseStrong:"rgb(225, 227, 234)",colorBorderInverseStronger:"rgb(244, 244, 246)",colorBorderInverseStrongest:"rgb(255, 255, 255)",colorBorderInverseWeaker:"rgb(57, 71, 98)",colorBorderInverseWeakest:"rgb(18, 28, 45)",colorBorderNeutral:"rgb(0, 109, 250)",colorBorderNeutralWeak:"rgb(4, 60, 181)",colorBorderNeutralWeaker:"rgb(4, 60, 181)",colorBorderNewWeak:"rgb(109, 46, 209)",colorBorderNewWeaker:"rgb(88, 23, 189)",colorBorderPrimary:"rgb(0, 109, 250)",colorBorderPrimaryStrong:"rgb(153, 205, 255)",colorBorderPrimaryStronger:"rgb(204, 228, 255)",colorBorderPrimaryStrongest:"rgb(235, 244, 255)",colorBorderPrimaryWeak:"rgb(4, 60, 181)",colorBorderPrimaryWeaker:"rgb(4, 60, 181)",colorBorderPrimaryWeakest:"rgb(3, 11, 93)",colorBorderStrong:"rgb(136, 145, 170)",colorBorderSuccess:"rgb(20, 176, 83)",colorBorderSuccessWeak:"rgb(14, 124, 58)",colorBorderSuccessWeaker:"rgb(14, 124, 58)",colorBorderSuccessWeakest:"rgb(5, 41, 18)",colorBorderUser:"rgb(88, 23, 189)",colorBorderWarning:"rgb(244, 124, 34)",colorBorderWarningWeak:"rgb(195, 83, 35)",colorBorderWarningWeaker:"rgb(195, 83, 35)",colorBorderWarningWeakest:"rgb(64, 19, 15)",colorBorderWeak:"rgb(57, 71, 98)",colorBorderWeaker:"rgb(31, 48, 76)",colorBorderWeakest:"rgb(13, 19, 28)"},le={shadow:"0 4px 16px 0 rgba(0, 0, 0, 0.5)",shadowBorder:"0 0 0 1px #606b85",shadowBorderBottom:"0 1px 0 0 #606b85",shadowBorderBottomBrand10Strong:"0 1px 0 #855c15",shadowBorderBottomBrand20Strong:"0 1px 0 #043cb5",shadowBorderBottomBrand30Strong:"0 1px 0 #0e7c3a",shadowBorderBottomDecorative10Weaker:"0 1px 0 #8891aa",shadowBorderBottomDecorative20Weaker:"0 1px 0 #043cb5",shadowBorderBottomDecorative30Weaker:"0 1px 0 #0e7c3a",shadowBorderBottomDecorative40Weaker:"0 1px 0 #5817bd",shadowBorderBottomErrorWeaker:"0 1px 0 #ad1111",shadowBorderBottomInverseNewWeaker:"0 1px 0 #5817bd",shadowBorderBottomInverseWeaker:"0 1px 0 #394762",shadowBorderBottomInverseWeakerInset:"inset 0 -1px 0 0 #394762",shadowBorderBottomNeutralWeaker:"0 1px 0 #043cb5",shadowBorderBottomNewWeaker:"0 1px 0 #5817bd",shadowBorderBottomNotificationStronger:"0 1px 0 #4a0b0b",shadowBorderBottomPrimary:"0 1px 0 #006dfa",shadowBorderBottomSubaccount:"0 1px 0 #c28e00",shadowBorderBottomSuccessWeaker:"0 1px 0 #0e7c3a",shadowBorderBottomWarningWeaker:"0 1px 0 #c35323",shadowBorderBottomWeak:"0 1px 0 #cacdd8",shadowBorderBottomWeakInset:"inset 0 -1px 0 0 #394762",shadowBorderBrand10:"saffron",shadowBorderBrand20:"sky",shadowBorderBrand30:"mint",shadowBorderDecorative10Weaker:"0 0 0 1px #1f304c",shadowBorderDecorative20Weaker:"0 0 0 1px #043cb5",shadowBorderDecorative30Weaker:"0 0 0 1px #0e7c3a",shadowBorderDecorative40Weaker:"0 0 0 1px #5817bd",shadowBorderDestructive:"0 0 0 1px #DB132A",shadowBorderDestructiveStrong:"0 0 0 1px #f6b1b1",shadowBorderDestructiveStronger:"0 0 0 1px #fccfcf",shadowBorderDestructiveStrongest:"0 0 0 1px #feecec",shadowBorderDestructiveWeak:"0 0 0 1px #394762",shadowBorderDestructiveWeaker:"0 0 0 1px #1f304c",shadowBorderError:"0 0 0 1px #DB132A",shadowBorderErrorStrong:"0 0 0 1px #f58a8a",shadowBorderErrorStronger:"0 0 0 1px #fccfcf",shadowBorderErrorStrongest:"0 0 0 1px #feecec",shadowBorderErrorWeak:"0 0 0 1px #ad1111",shadowBorderErrorWeaker:"0 0 0 1px #ad1111",shadowBorderInverse:"0 0 0 1px #8891aa",shadowBorderInverseNewWeaker:"0 0 0 1px #5817bd",shadowBorderInverseStrong:"0 0 0 1px #e1e3ea",shadowBorderInverseStronger:"0 0 0 1px #f4f4f6",shadowBorderInverseStrongest:"0 0 0 1px #ffffff",shadowBorderInverseWeaker:"0 0 0 1px #394762",shadowBorderInverseWeakest:"0 0 0 1px #121c2d",shadowBorderNeutralWeaker:"0 0 0 1px #043cb5",shadowBorderNewWeaker:"0 0 0 1px #5817bd",shadowBorderNotification:"0 1px 0 #DB132A",shadowBorderPrimary:"0 0 0 1px #006dfa",shadowBorderPrimaryStrong:"0 0 0 1px #99cdff",shadowBorderPrimaryStronger:"0 0 0 1px #cce4ff",shadowBorderPrimaryStrongest:"0 0 0 1px #ebf4ff",shadowBorderPrimaryWeak:"0 0 0 1px #043cb5",shadowBorderPrimaryWeaker:"0 0 0 1px #043cb5",shadowBorderRightInverseStrong:"1px 0 #e1e3ea",shadowBorderStrong:"0 0 0 1px #8891aa",shadowBorderSubaccount:"0 0 0 1px #c28e00",shadowBorderSuccessWeaker:"0 0 0 1px #0e7c3a",shadowBorderTopInverseStrongest:"0 -1px 0 #cce4ff",shadowBorderTopPrimary:"0 -1px 0 #006dfa",shadowBorderTopPrimaryStrongest:"0 -1px 0 #ebf4ff",shadowBorderUser:"0 0 0 1px #5817bd",shadowBorderWarningWeaker:"0 0 0 1px #c35323",shadowBorderWeak:"0 0 0 1px #394762",shadowBorderWeaker:"0 0 0 1px #1f304c",shadowCard:"0 2px 4px 0 rgba(0, 0, 0, 0.4)",shadowElevation05:"0 0 0 1px #1f304c",shadowElevation10:"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.4)",shadowElevation20:"0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)",shadowElevationBottom05:"0 1px 0 0 #1f304c",shadowElevationBottomInverse05:"0 1px 0 0 #1f304c",shadowElevationInverse05:"0 0 0 1px #1f304c",shadowElevationInverse10:"0 -1px 0 0 #1f304c, 0 3px 4px 0 rgba(0, 0, 0, 0.1)",shadowElevationLeft20:"0 0 0 1px #18253C, -4px 0 8px 0 rgba(0, 0, 0, 0.3), -16px 0 32px 0 rgba(0, 0, 0, 0.2)",shadowElevationRightInverse05:"1px 0 0 0 #1f304c",shadowElevationTop05:"0 -1px 0 0 #1f304c",shadowElevationTop20:"0 0 0 1px #18253C, 0 6px 8px 0 rgba(0, 0, 0, 0.3), 16px 16px 32px 0 rgba(0, 0, 0, 0.2)",shadowFocus:"0 0 0 2px #121c2d, 0 0 0 3px #ffffff, 0 0 0 5px rgba(255, 255, 255, 0.2)",shadowFocusInset:"inset 0 0 0 1px #ffffff, inset 0 0 0 3px rgba(255, 255, 255, 0.2)",shadowFocusInverse:"0 0 0 1px #394762, 0 0 0 3px #121c2d, 0 0 0 4px #ffffff, 0 0 0 6px rgba(255, 255, 255, 0.2)",shadowFocusInverseInset:"0 0 0 1px #ffffff, inset 0 0 0 3px rgba(255, 255, 255, 0.2)",shadowFocusShadowBorder:"0 0 0 1px #394762, 0 0 0 3px #121c2d, 0 0 0 4px #ffffff, 0 0 0 6px rgba(255, 255, 255, 0.2)",shadowHigh:"0 16px 24px 4px rgba(0, 0, 0, 0.5)",shadowLeft:"4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowLeftInverse:"4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowLow:"0 2px 4px 0 rgba(0, 0, 0, 0.4)",shadowRight:"-4px 0 8px -4px rgba(0, 0, 0, 0.4)",shadowRightInverse:"-4px 0 8px -4px rgba(0, 0, 0, 0.4)"},ce={colorBrand:"rgb(0, 20, 137)",colorBrandHighlight:"rgb(242, 47, 70)",colorGray0:"rgb(255, 255, 255)",colorGray10:"rgb(244, 244, 246)",colorGray20:"rgb(225, 227, 234)",colorGray30:"rgb(202, 205, 216)",colorGray40:"rgb(139, 147, 170)",colorGray50:"rgb(136, 145, 170)",colorGray60:"rgb(96, 107, 133)",colorGray70:"rgb(75, 86, 113)",colorGray80:"rgb(57, 71, 98)",colorGray90:"rgb(31, 48, 76)",colorGray100:"rgb(18, 28, 45)"},ue={fontFamilyCode:"'TwilioSansMono', Courier, monospace",fontFamilyDisplay:"'TwilioSansDisplay', 'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyText:"'TwilioSansText', 'Inter var experimental', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",fontFamilyTextChineseSimplified:"'Inter var experimental', 'Inter var', 'Microsoft YaHei New', \u5fae\u8f6f\u96c5\u9ed1, 'Microsoft Yahei', 'Microsoft JhengHei', \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextChineseTraditional:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif",fontFamilyTextJapanese:"'Inter var experimental', 'Inter var', Hiragino Sans, '\u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 ProN W3', 'Hiragino Kaku Gothic ProN', '\u30e1\u30a4\u30ea\u30aa', Meiryo, Osaka, 'MS PGothic', sans-serif",fontFamilyTextKorean:"'Inter var experimental', 'Inter var', 'Microsoft JhengHei', \u5fae\u8edf\u6b63\u9ed1\u9ad4, 'Microsoft JhengHei UI', 'Microsoft YaHei', \u5fae\u8edf\u96c5\u9ed1, \u5b8b\u4f53, SimSun, sans-serif"},de={size0:"0",size10:"5.5rem",size20:"12rem",size30:"18.5rem",size40:"25rem",size50:"31.5rem",size60:"38rem",size70:"44.5rem",size80:"51rem",size90:"57.5rem",size100:"64rem",size110:"70.5rem",size120:"77rem",sizeBase0:"0",sizeBase10:"0.25rem",sizeBase20:"0.5rem",sizeBase30:"0.75rem",sizeBase40:"1rem",sizeBase50:"1.25rem",sizeBase60:"1.5rem",sizeBase70:"1.75rem",sizeBase80:"2rem",sizeBase90:"2.25rem",sizeIcon05:"0.75rem",sizeIcon10:"1rem",sizeIcon20:"1.25rem",sizeIcon30:"1.25rem",sizeIcon40:"1.5rem",sizeIcon50:"1.75rem",sizeIcon60:"1.75rem",sizeIcon70:"2rem",sizeIcon80:"2.5rem",sizeIcon90:"2.5rem",sizeIcon100:"3.25rem",sizeIcon110:"4rem",sizeSidebar:"15rem",sizeSidebarCompact:"4.75rem",sizeSquare0:"0",sizeSquare10:"0.125rem",sizeSquare20:"0.25rem",sizeSquare25:"0.375rem",sizeSquare30:"0.5rem",sizeSquare40:"0.75rem",sizeSquare50:"1rem",sizeSquare60:"1.25rem",sizeSquare70:"1.5rem",sizeSquare80:"1.75rem",sizeSquare90:"2rem",sizeSquare100:"2.25rem",sizeSquare110:"2.5rem",sizeSquare120:"2.75rem",sizeSquare130:"3rem",sizeSquare140:"3.25rem",sizeSquare150:"3.5rem",sizeSquare160:"3.75rem",sizeSquare170:"4rem",sizeSquare180:"4.25rem",sizeSquare190:"4.5rem",sizeSquare200:"4.75rem",sizeTopbar:"4.75rem"},fe={space0:"0",space10:"0.125rem",space20:"0.25rem",space30:"0.5rem",space40:"0.75rem",space50:"1rem",space60:"1.25rem",space70:"1.5rem",space80:"1.75rem",space90:"2rem",space100:"2.25rem",space110:"2.5rem",space120:"2.75rem",space130:"3rem",space140:"3.25rem",space150:"3.5rem",space160:"3.75rem",space170:"4rem",space180:"4.25rem",space190:"4.5rem",space200:"4.75rem",space210:"5rem",space220:"5.25rem",space230:"5.5rem",space240:"5.75rem",space250:"6rem",space260:"6.25rem",space270:"6.5rem",space280:"6.75rem",space290:"7rem",space300:"7.25rem",space310:"7.5rem",spaceNegative10:"-0.125rem",spaceNegative20:"-0.25rem",spaceNegative30:"-0.5rem",spaceNegative40:"-0.75rem",spaceNegative50:"-1rem",spaceNegative60:"-1.25rem",spaceNegative70:"-1.5rem",spaceNegative80:"-1.75rem",spaceNegative90:"-2rem",spaceNegative100:"-2.25rem",spaceNegative110:"-2.5rem",spaceNegative120:"-2.75rem",spaceNegative130:"-3rem",spaceNegative140:"-3.25rem",spaceNegative150:"-3.5rem",spaceNegative160:"-3.75rem",spaceNegative170:"-4rem",spaceNegative180:"-4.25rem",spaceNegative190:"-4.5rem",spaceNegative200:"-4.75rem"},pe={colorText:"rgb(244, 244, 246)",colorTextBrand:"rgb(18, 28, 45)",colorTextBrandHighlight:"rgb(242, 47, 70)",colorTextBrandInverse:"rgb(255, 255, 255)",colorTextDecorative10:"rgb(225, 227, 234)",colorTextDecorative20:"rgb(204, 228, 255)",colorTextDecorative30:"rgb(162, 246, 195)",colorTextDecorative40:"rgb(200, 175, 240)",colorTextDestructive:"rgb(236, 91, 91)",colorTextDestructiveStrong:"rgb(246, 177, 177)",colorTextDestructiveStronger:"rgb(246, 177, 177)",colorTextDestructiveStrongest:"rgb(255, 255, 255)",colorTextDestructiveWeak:"rgb(57, 71, 98)",colorTextError:"rgb(236, 91, 91)",colorTextErrorStrong:"rgb(246, 177, 177)",colorTextErrorStronger:"rgb(254, 236, 236)",colorTextErrorStrongest:"rgb(254, 236, 236)",colorTextErrorWeak:"rgb(236, 91, 91)",colorTextIcon:"rgb(136, 145, 170)",colorTextIconAvailable:"rgb(54, 213, 118)",colorTextIconBrandHighlight:"rgb(242, 47, 70)",colorTextIconBrandInverse:"rgb(255, 255, 255)",colorTextIconBusy:"rgb(255, 179, 122)",colorTextIconError:"rgb(236, 91, 91)",colorTextIconInverse:"rgb(136, 145, 170)",colorTextIconNeutral:"rgb(102, 179, 255)",colorTextIconNew:"rgb(200, 175, 240)",colorTextIconNotification:"rgb(236, 91, 91)",colorTextIconOffline:"rgb(244, 244, 246)",colorTextIconSuccess:"rgb(54, 213, 118)",colorTextIconUnavailable:"rgb(236, 91, 91)",colorTextIconWarning:"rgb(255, 179, 122)",colorTextInverse:"rgb(255, 255, 255)",colorTextInverseNew:"rgb(200, 175, 240)",colorTextInverseWeak:"rgb(202, 205, 216)",colorTextInverseWeaker:"rgb(136, 145, 170)",colorTextInverseWeakest:"rgb(75, 86, 113)",colorTextLink:"rgb(0, 140, 255)",colorTextLinkDestructive:"rgb(236, 91, 91)",colorTextLinkDestructiveStrong:"rgb(246, 177, 177)",colorTextLinkDestructiveStronger:"rgb(246, 177, 177)",colorTextLinkDestructiveStrongest:"rgb(255, 255, 255)",colorTextLinkDestructiveWeak:"rgb(57, 71, 98)",colorTextLinkStrong:"rgb(153, 205, 255)",colorTextLinkStronger:"rgb(235, 244, 255)",colorTextLinkStrongest:"rgb(255, 255, 255)",colorTextLinkWeak:"rgb(57, 71, 98)",colorTextNeutral:"rgb(102, 179, 255)",colorTextNew:"rgb(231, 220, 250)",colorTextPrimary:"rgb(0, 140, 255)",colorTextPrimaryStrong:"rgb(153, 205, 255)",colorTextPrimaryStronger:"rgb(153, 205, 255)",colorTextPrimaryStrongest:"rgb(255, 255, 255)",colorTextPrimaryWeak:"rgb(57, 71, 98)",colorTextSubaccount:"rgb(255, 233, 128)",colorTextSuccess:"rgb(162, 246, 195)",colorTextUser:"rgb(200, 175, 240)",colorTextWarning:"rgb(255, 179, 122)",colorTextWarningStrong:"rgb(250, 194, 160)",colorTextWeak:"rgb(136, 145, 170)",colorTextWeaker:"rgb(57, 71, 98)",colorTextWeakest:"rgb(13, 19, 28)"},he=["children"],me=["customBreakpoints","theme","disableAnimations","cacheProviderProps","useCSSVariables"],ve=function(e){var t=e.children,n=(0,l.Z)(e,he);if(null==t||"function"!=typeof t)throw new Error("[ThemeConsumer]: You must pass a function as children");return u.createElement(c.Ni.Consumer,null,(function(e){return t((0,s.Z)((0,s.Z)({},n),{},{theme:e}))}))};ve.displayName="PasteThemeConsumer";var ge="default",ye="sendgrid",be="dark",xe="twilio",we="twilio-dark",ke="evergreen",Se=(0,c.iv)({color:"colorText",colorScheme:"colorScheme",fontSize:"fontSize30",fontFamily:"fontFamilyText",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",fontVariantNumeric:"tabular-nums"}),_e=(0,c.RD)(r||(r=(0,a.Z)(["\n/* -------------------------------------------------------\nVariable font.\n*/\n@font-face {\n  font-family: 'Inter var';\n  font-weight: 100 900;\n  font-display: swap;\n  font-style: normal;\n  font-named-instance: 'Regular';\n  src: url(\"https://assets.twilio.com/public_assets/paste-fonts/1.5.2/Inter-roman.var.woff2?v=3.19\") format(\"woff2\");\n}\n@font-face {\n  font-family: 'Inter var';\n  font-weight: 100 900;\n  font-display: swap;\n  font-style: italic;\n  font-named-instance: 'Italic';\n  src: url(\"https://assets.twilio.com/public_assets/paste-fonts/1.5.2/Inter-italic.var.woff2?v=3.19\") format(\"woff2\");\n}\n\n@font-face {\n  font-family: 'Inter var experimental';\n  font-weight: 100 900;\n  font-display: swap;\n  font-style: oblique 0deg 8deg;\n  src: url(\"https://assets.twilio.com/public_assets/paste-fonts/1.5.2/Inter.var.woff2?v=3.19\") format(\"woff2\");\n}\n\n\n@font-face {\n  font-family: 'TwilioSansMono';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 400;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-Regular.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-Regular.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansMono';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 400;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-RegularItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-RegularItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansMono';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 700;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-Bold.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-Bold.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansMono';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 700;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-BoldItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-BoldItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansMono';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 500;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-Medium.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-Medium.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansMono';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 500;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-MediumItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansMono-MediumItl.woff') format('woff');\n}\n\n\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 300;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Light.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Light.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 300;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-LightItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-LightItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 400;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Regular.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Regular.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 400;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-RegularItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-RegularItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 500;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Medium.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Medium.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 500;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-MediumItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-MediumItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 600;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Semibold.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Semibold.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 600;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-SemiboldItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-SemiboldItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 700;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Bold.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Bold.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 700;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-BoldItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-BoldItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 800;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Extrabold.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-Extrabold.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansText';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 800;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-ExtraboldItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansText-ExtraboldItl.woff') format('woff');\n}\n\n\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 300;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Light.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Light.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 300;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-LightItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-LightItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 400;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Regular.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Regular.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 400;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-RegularItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-RegularItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 500;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Medium.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Medium.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 500;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-MediumItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-MediumItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 600;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Semibold.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Semibold.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 600;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-SemiboldItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-SemiboldItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 700;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Bold.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Bold.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 700;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-BoldItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-BoldItl.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: normal;\n  font-display: swap;\n  font-weight: 800;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Extrabold.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-Extrabold.woff') format('woff');\n}\n@font-face {\n  font-family: 'TwilioSansDisplay';\n  font-style: italic;\n  font-display: swap;\n  font-weight: 800;\n  src: local(''),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-ExtraboldItl.woff2') format('woff2'),\n       url('https://assets.twilio.com/public_assets/paste-fonts/1.5.2/TwilioSansDisplay-ExtraboldItl.woff') format('woff');\n}\n"]))),Ee=(0,c.iv)({html:{fontSize:"fontSizeBase",fontFamily:"fontFamilyText"},"html:lang(ja), html:lang(ja-JP)":{".paste-theme-provider":{fontFamily:"fontFamilyTextJapanese"}},"html:lang(zh-CN)":{".paste-theme-provider":{fontFamily:"fontFamilyTextChineseSimplified"}},"html:lang(zh-TW), html:lang(zh-HK)":{".paste-theme-provider":{fontFamily:"fontFamilyTextChineseTraditional"}},"html:lang(ko)":{".paste-theme-provider":{fontFamily:"fontFamilyTextKorean"}},body:{backgroundColor:"colorBackgroundBody",margin:0},"*, *::after, *::before":{boxSizing:"border-box"},"@media (prefers-reduced-motion: reduce)":{"*":{animationDuration:"0 !important",animationIterationCount:"1 !important",transitionDuration:"0 !important",scrollBehavior:"auto !important"}},":root":(0,i.Z)({},"--reach-dialog","1")}),Ce=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";t="string"==typeof e&&e.includes("%")?Number.parseFloat(e.replace("%",""))/100:"string"==typeof e?Number.parseFloat(e.replace("rem","")):e;var r=Math.round(16*t);return"number"===n?r:"".concat(r,"px")},Te=function(e){var t=e.backgroundColors,n=e.borderColors,r=e.borderWidths,o=e.dataVisualization,i=e.colorSchemes,a=e.radii,s=e.fonts,l=e.fontSizes,c=e.fontWeights,u=e.lineHeights,d=e.boxShadows,f=e.sizings,p=e.spacings,h=e.textColors,m=e.zIndices,v=f.size0.includes("var")?E:f;return{shadows:d,borderWidths:r,radii:a,breakpoints:[Ce(v.size40,"string"),Ce(v.size100,"string"),Ce(v.size120,"string")],textColors:h,colorSchemes:i,borderColors:n,backgroundColors:t,fonts:s,fontSizes:l,fontWeights:c,lineHeights:u,widths:f,maxWidths:f,minWidths:f,heights:f,maxHeights:f,minHeights:f,sizes:f,iconSizes:{sizeIcon05:f.sizeIcon05,sizeIcon10:f.sizeIcon10,sizeIcon20:f.sizeIcon20,sizeIcon30:f.sizeIcon30,sizeIcon40:f.sizeIcon40,sizeIcon50:f.sizeIcon50,sizeIcon60:f.sizeIcon60,sizeIcon70:f.sizeIcon70,sizeIcon80:f.sizeIcon80,sizeIcon90:f.sizeIcon90,sizeIcon100:f.sizeIcon100,sizeIcon110:f.sizeIcon110},space:p,zIndices:m,dataVisualization:o}},Ie=Te({backgroundColors:f,borderColors:p,borderWidths:{borderWidth0:"0",borderWidth10:"1px",borderWidth20:"2px",borderWidth30:"4px",borderWidth40:"8px"},radii:{borderRadius0:"0",borderRadius10:"2px",borderRadius20:"4px",borderRadius30:"8px",borderRadius40:"12px",borderRadius50:"16px",borderRadius60:"20px",borderRadius70:"24px",borderRadius80:"28px",borderRadius90:"32px",borderRadiusCircle:"50%",borderRadiusPill:"100px"},fonts:v,fontSizes:{fontSize10:"0.625rem",fontSize20:"0.75rem",fontSize30:"0.875rem",fontSize40:"1rem",fontSize50:"1.125rem",fontSize60:"1.25rem",fontSize70:"1.5rem",fontSize80:"1.75rem",fontSize90:"2rem",fontSize100:"2.5rem",fontSize110:"3rem",fontSizeBase:"100%",fontSizeDisplay10:"2rem",fontSizeDisplay20:"3rem",fontSizeDisplay30:"4rem"},fontWeights:{fontWeightLight:"400",fontWeightNormal:"400",fontWeightMedium:"500",fontWeightSemibold:"600",fontWeightBold:"700",fontWeightExtrabold:"800"},lineHeights:{lineHeight0:"0",lineHeight05:"0.75rem",lineHeight10:"1rem",lineHeight20:"1.25rem",lineHeight30:"1.25rem",lineHeight40:"1.5rem",lineHeight50:"1.75rem",lineHeight60:"1.75rem",lineHeight70:"2rem",lineHeight80:"2.5rem",lineHeight90:"2.5rem",lineHeight100:"3.25rem",lineHeight110:"4rem",lineHeightDisplay10:"2.5rem",lineHeightDisplay20:"3.75rem",lineHeightDisplay30:"5rem"},boxShadows:h,sizings:g,spacings:y,textColors:b,zIndices:{zIndex0:"0",zIndex10:"10",zIndex20:"20",zIndex30:"30",zIndex40:"40",zIndex50:"50",zIndex60:"60",zIndex70:"70",zIndex80:"80",zIndex90:"90"},dataVisualization:{colorDataVisualization1:"rgb(2, 99, 224)",colorDataVisualization2:"rgb(200, 175, 240)",colorDataVisualization3:"rgb(96, 107, 133)",colorDataVisualization4:"rgb(102, 179, 255)",colorDataVisualization5:"rgb(14, 124, 58)",colorDataVisualization6:"rgb(250, 153, 80)",colorDataVisualization7:"rgb(195, 83, 35)",colorDataVisualization8:"rgb(246, 177, 177)",colorDataVisualization9:"rgb(140, 91, 216)",colorDataVisualization10:"rgb(232, 180, 7)"},colors:m,colorSchemes:{colorScheme:"dark"}}),Be=Te({backgroundColors:I,borderColors:B,borderWidths:O,radii:z,fonts:N,fontSizes:D,fontWeights:L,lineHeights:j,boxShadows:P,sizings:W,spacings:Z,textColors:F,zIndices:H,dataVisualization:M,colors:R,colorSchemes:A}),Oe=Te({backgroundColors:U,borderColors:$,borderWidths:{borderWidth0:"0",borderWidth10:"1px",borderWidth20:"2px",borderWidth30:"4px",borderWidth40:"8px"},radii:{borderRadius0:"0",borderRadius10:"2px",borderRadius20:"4px",borderRadius30:"8px",borderRadius40:"12px",borderRadius50:"16px",borderRadius60:"20px",borderRadius70:"24px",borderRadius80:"28px",borderRadius90:"32px",borderRadiusCircle:"50%",borderRadiusPill:"100px"},fonts:K,fontSizes:{fontSize10:"0.75rem",fontSize20:"0.75rem",fontSize30:"0.875rem",fontSize40:"0.875rem",fontSize50:"1rem",fontSize60:"1.25rem",fontSize70:"1.5rem",fontSize80:"2rem",fontSize90:"2rem",fontSize100:"3rem",fontSize110:"4rem",fontSizeBase:"100%",fontSizeDisplay10:"2rem",fontSizeDisplay20:"3rem",fontSizeDisplay30:"4rem"},fontWeights:{fontWeightLight:"300",fontWeightNormal:"400",fontWeightMedium:"500",fontWeightSemibold:"600",fontWeightBold:"700",fontWeightExtrabold:"800"},lineHeights:{lineHeight0:"0",lineHeight05:"0.75rem",lineHeight10:"1rem",lineHeight20:"1.25rem",lineHeight30:"1.25rem",lineHeight40:"1.5rem",lineHeight50:"1.75rem",lineHeight60:"1.75rem",lineHeight70:"2rem",lineHeight80:"2.5rem",lineHeight90:"2.5rem",lineHeight100:"3.25rem",lineHeight110:"4rem",lineHeightDisplay10:"2.5rem",lineHeightDisplay20:"3.75rem",lineHeightDisplay30:"5rem"},boxShadows:G,sizings:V,spacings:Y,textColors:X,zIndices:{zIndex0:"0",zIndex10:"10",zIndex20:"20",zIndex30:"30",zIndex40:"40",zIndex50:"50",zIndex60:"60",zIndex70:"70",zIndex80:"80",zIndex90:"90"},dataVisualization:{colorDataVisualization1:"rgb(4, 162, 174)",colorDataVisualization2:"rgb(209, 129, 0)",colorDataVisualization3:"rgb(24, 65, 191)",colorDataVisualization4:"rgb(122, 103, 233)",colorDataVisualization5:"rgb(17, 167, 110)",colorDataVisualization6:"rgb(10, 29, 123)",colorDataVisualization7:"rgb(221, 54, 173)",colorDataVisualization8:"rgb(206, 32, 28)",colorDataVisualization9:"rgb(105, 140, 247)",colorDataVisualization10:"rgb(243, 103, 43)"},colors:q,colorSchemes:{colorScheme:"light"}}),Pe=Te({backgroundColors:J,borderColors:Q,borderWidths:{borderWidth0:"0",borderWidth10:"1px",borderWidth20:"2px",borderWidth30:"4px",borderWidth40:"8px"},radii:{borderRadius0:"0",borderRadius10:"2px",borderRadius20:"4px",borderRadius30:"8px",borderRadius40:"12px",borderRadius50:"16px",borderRadius60:"20px",borderRadius70:"24px",borderRadius80:"28px",borderRadius90:"32px",borderRadiusCircle:"50%",borderRadiusPill:"100px"},fonts:ne,fontSizes:{fontSize10:"0.625rem",fontSize20:"0.75rem",fontSize30:"0.875rem",fontSize40:"1rem",fontSize50:"1.125rem",fontSize60:"1.25rem",fontSize70:"1.5rem",fontSize80:"1.75rem",fontSize90:"2rem",fontSize100:"2.5rem",fontSize110:"3rem",fontSizeBase:"100%",fontSizeDisplay10:"2rem",fontSizeDisplay20:"3rem",fontSizeDisplay30:"4rem"},fontWeights:{fontWeightLight:"400",fontWeightNormal:"400",fontWeightMedium:"500",fontWeightSemibold:"600",fontWeightBold:"700",fontWeightExtrabold:"800"},lineHeights:{lineHeight0:"0",lineHeight05:"0.75rem",lineHeight10:"1rem",lineHeight20:"1.25rem",lineHeight30:"1.25rem",lineHeight40:"1.5rem",lineHeight50:"1.75rem",lineHeight60:"1.75rem",lineHeight70:"2rem",lineHeight80:"2.5rem",lineHeight90:"2.5rem",lineHeight100:"3.25rem",lineHeight110:"4rem",lineHeightDisplay10:"2.5rem",lineHeightDisplay20:"3.75rem",lineHeightDisplay30:"5rem"},boxShadows:ee,sizings:re,spacings:oe,textColors:ie,zIndices:{zIndex0:"0",zIndex10:"10",zIndex20:"20",zIndex30:"30",zIndex40:"40",zIndex50:"50",zIndex60:"60",zIndex70:"70",zIndex80:"80",zIndex90:"90"},dataVisualization:{colorDataVisualization1:"rgb(0, 20, 137)",colorDataVisualization2:"rgb(14, 124, 58)",colorDataVisualization3:"rgb(13, 58, 31)",colorDataVisualization4:"rgb(0, 140, 255)",colorDataVisualization5:"rgb(57, 71, 98)",colorDataVisualization6:"rgb(166, 127, 227)",colorDataVisualization7:"rgb(109, 46, 209)",colorDataVisualization8:"rgb(136, 145, 170)",colorDataVisualization9:"rgb(117, 12, 12)",colorDataVisualization10:"rgb(236, 91, 91)"},colors:te,colorSchemes:{colorScheme:"light"}}),Re=Te({backgroundColors:x,borderColors:w,borderWidths:{borderWidth0:"0",borderWidth10:"1px",borderWidth20:"2px",borderWidth30:"4px",borderWidth40:"8px"},radii:{borderRadius0:"0",borderRadius10:"2px",borderRadius20:"4px",borderRadius30:"8px",borderRadius40:"12px",borderRadius50:"16px",borderRadius60:"20px",borderRadius70:"24px",borderRadius80:"28px",borderRadius90:"32px",borderRadiusCircle:"50%",borderRadiusPill:"100px"},fonts:_,fontSizes:{fontSize10:"0.625rem",fontSize20:"0.75rem",fontSize30:"0.875rem",fontSize40:"1rem",fontSize50:"1.125rem",fontSize60:"1.25rem",fontSize70:"1.5rem",fontSize80:"1.75rem",fontSize90:"2rem",fontSize100:"2.5rem",fontSize110:"3rem",fontSizeBase:"100%",fontSizeDisplay10:"2rem",fontSizeDisplay20:"3rem",fontSizeDisplay30:"4rem"},fontWeights:{fontWeightLight:"400",fontWeightNormal:"400",fontWeightMedium:"500",fontWeightSemibold:"600",fontWeightBold:"600",fontWeightExtrabold:"800"},lineHeights:{lineHeight0:"0",lineHeight05:"0.75rem",lineHeight10:"1rem",lineHeight20:"1.25rem",lineHeight30:"1.25rem",lineHeight40:"1.5rem",lineHeight50:"1.75rem",lineHeight60:"1.75rem",lineHeight70:"2rem",lineHeight80:"2.5rem",lineHeight90:"2.5rem",lineHeight100:"3.25rem",lineHeight110:"4rem",lineHeightDisplay10:"2.5rem",lineHeightDisplay20:"3.75rem",lineHeightDisplay30:"5rem"},boxShadows:k,sizings:E,spacings:C,textColors:T,zIndices:{zIndex0:"0",zIndex10:"10",zIndex20:"20",zIndex30:"30",zIndex40:"40",zIndex50:"50",zIndex60:"60",zIndex70:"70",zIndex80:"80",zIndex90:"90"},dataVisualization:{colorDataVisualization1:"rgb(0, 20, 137)",colorDataVisualization2:"rgb(14, 124, 58)",colorDataVisualization3:"rgb(13, 58, 31)",colorDataVisualization4:"rgb(0, 140, 255)",colorDataVisualization5:"rgb(57, 71, 98)",colorDataVisualization6:"rgb(166, 127, 227)",colorDataVisualization7:"rgb(109, 46, 209)",colorDataVisualization8:"rgb(136, 145, 170)",colorDataVisualization9:"rgb(117, 12, 12)",colorDataVisualization10:"rgb(236, 91, 91)"},colors:S,colorSchemes:{colorScheme:"light"}}),Ae=Te({backgroundColors:ae,borderColors:se,borderWidths:{borderWidth0:"0",borderWidth10:"1px",borderWidth20:"2px",borderWidth30:"4px",borderWidth40:"8px"},radii:{borderRadius0:"0",borderRadius10:"2px",borderRadius20:"4px",borderRadius30:"8px",borderRadius40:"12px",borderRadius50:"16px",borderRadius60:"20px",borderRadius70:"24px",borderRadius80:"28px",borderRadius90:"32px",borderRadiusCircle:"50%",borderRadiusPill:"100px"},fonts:ue,fontSizes:{fontSize10:"0.625rem",fontSize20:"0.75rem",fontSize30:"0.875rem",fontSize40:"1rem",fontSize50:"1.125rem",fontSize60:"1.25rem",fontSize70:"1.5rem",fontSize80:"1.75rem",fontSize90:"2rem",fontSize100:"2.5rem",fontSize110:"3rem",fontSizeBase:"100%",fontSizeDisplay10:"2rem",fontSizeDisplay20:"3rem",fontSizeDisplay30:"4rem"},fontWeights:{fontWeightLight:"400",fontWeightNormal:"400",fontWeightMedium:"500",fontWeightSemibold:"600",fontWeightBold:"600",fontWeightExtrabold:"800"},lineHeights:{lineHeight0:"0",lineHeight05:"0.75rem",lineHeight10:"1rem",lineHeight20:"1.25rem",lineHeight30:"1.25rem",lineHeight40:"1.5rem",lineHeight50:"1.75rem",lineHeight60:"1.75rem",lineHeight70:"2rem",lineHeight80:"2.5rem",lineHeight90:"2.5rem",lineHeight100:"3.25rem",lineHeight110:"4rem",lineHeightDisplay10:"2.5rem",lineHeightDisplay20:"3.75rem",lineHeightDisplay30:"5rem"},boxShadows:le,sizings:de,spacings:fe,textColors:pe,zIndices:{zIndex0:"0",zIndex10:"10",zIndex20:"20",zIndex30:"30",zIndex40:"40",zIndex50:"50",zIndex60:"60",zIndex70:"70",zIndex80:"80",zIndex90:"90"},dataVisualization:{colorDataVisualization1:"rgb(2, 99, 224)",colorDataVisualization2:"rgb(200, 175, 240)",colorDataVisualization3:"rgb(96, 107, 133)",colorDataVisualization4:"rgb(102, 179, 255)",colorDataVisualization5:"rgb(14, 124, 58)",colorDataVisualization6:"rgb(250, 153, 80)",colorDataVisualization7:"rgb(195, 83, 35)",colorDataVisualization8:"rgb(246, 177, 177)",colorDataVisualization9:"rgb(140, 91, 216)",colorDataVisualization10:"rgb(232, 180, 7)"},colors:ce,colorSchemes:{colorScheme:"dark"}}),Me=Te(function e(t){for(var n={},r=0,i=Object.entries(t);r<i.length;r++){var a=(0,o.Z)(i[r],2),s=a[0],l=a[1];if("object"==typeof l)n[s]=e(l);else{var c="--".concat(s.replace(/([A-Z])/g,"-$1").replace(/(\d+)/g,"-$1").toLowerCase());n[s]="var(".concat(c,")")}}return n}({backgroundColors:I,borderColors:B,borderWidths:O,radii:z,fonts:N,fontSizes:D,fontWeights:L,lineHeights:j,boxShadows:P,sizings:W,spacings:Z,textColors:F,zIndices:H,dataVisualization:M,colors:R,colorSchemes:A})),Ne=function(){try{if(window.location.hash.includes("paste-theme-override"))return window.location.hash.split("=")[1]}catch(e){}},De=c.iK.div(Se),Le="CSSVariables";var je=function(e){var t=e.customBreakpoints,n=e.theme,r=void 0===n?ge:n,i=e.disableAnimations,a=void 0!==i&&i,f=e.cacheProviderProps,p=e.useCSSVariables,h=(0,l.Z)(e,me),m=u.useState(f?(0,c.Df)(f):null),v=(0,o.Z)(m,1)[0],g=(0,d.JZ)();u.useMemo((function(){d.OH.assign({skipAnimation:a||g})}),[a,g]);var y=function(e,t){switch(e){case xe:return(0,s.Z)((0,s.Z)({},Re),{},{breakpoints:t||Re.breakpoints});case we:return(0,s.Z)((0,s.Z)({},Ae),{},{breakpoints:t||Ae.breakpoints});case be:return(0,s.Z)((0,s.Z)({},Ie),{},{breakpoints:t||Ie.breakpoints});case ye:return(0,s.Z)((0,s.Z)({},Pe),{},{breakpoints:t||Pe.breakpoints});case ke:return(0,s.Z)((0,s.Z)({},Oe),{},{breakpoints:t||Oe.breakpoints});case Le:return(0,s.Z)((0,s.Z)({},Me),{},{breakpoints:t||Me.breakpoints});default:return(0,s.Z)((0,s.Z)({},Be),{},{breakpoints:t||Be.breakpoints})}}(function(){var e=u.useState(Ne()),t=(0,o.Z)(e,2),n=t[0],r=t[1],i=function(){r(Ne())};return u.useEffect((function(){return window.addEventListener("popstate",i),function(){window.removeEventListener("popstate",i)}})),n}()||(p?Le:r),t);return v?u.createElement(c.nq,{value:v},u.createElement(c.f6,{theme:y},u.createElement(c.TL,{styles:Ee({theme:y})}),u.createElement(c.TL,{styles:_e}),u.createElement(De,(0,s.Z)({className:"paste-theme-provider"},h)))):u.createElement(c.f6,{theme:y},u.createElement(c.TL,{styles:Ee({theme:y})}),u.createElement(c.TL,{styles:_e}),u.createElement(De,(0,s.Z)({className:"paste-theme-provider"},h)))};je.displayName="PasteThemeProvider";var ze=function(){var e=u.useContext(c.Ni);if(!e)throw new Error("[useHook]: must be used within the @twilio-paste/theme provider");return e},We={Provider:je,Consumer:ve}},3354:function(e,t,n){"use strict";n.r(t),n.d(t,{TimePicker:function(){return l},formatReturnTime:function(){return se}});var r=n(1413),o=n(4925),i=n(3693),a=n(2791),s=["step","element"],l=a.forwardRef((function(e,t){e.step;var n=e.element,l=void 0===n?"TIMEPICKER":n,c=(0,o.Z)(e,s);return a.createElement(i.Input,(0,r.Z)((0,r.Z)({element:l},c),{},{type:"time",ref:t}))}));function c(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function u(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function d(e){u(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function f(e,t){u(2,arguments);var n=d(e).getTime(),r=c(t);return new Date(n+r)}function p(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function h(e){u(1,arguments);var t=d(e);return!isNaN(t)}l.displayName="TimePicker";var m={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function v(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var g={date:v({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:v({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:v({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},y={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function b(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=o.width?String(o.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function x(e){return function(t,n){var r=String(t),o=n||{},i=o.width,a=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=r.match(a);if(!s)return null;var l,c=s[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(u,(function(e){return e.test(c)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(u,(function(e){return e.test(c)})),l=e.valueCallback?e.valueCallback(l):l,{value:l=o.valueCallback?o.valueCallback(l):l,rest:r.slice(c.length)}}}var w,k={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof m[e]?m[e]:1===t?m[e].one:m[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:g,formatRelative:function(e,t,n,r){return y[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:b({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:b({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:b({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:b({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:b({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(w={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},o=n.match(w.matchPattern);if(!o)return null;var i=o[0],a=n.match(w.parsePattern);if(!a)return null;var s=w.valueCallback?w.valueCallback(a[0]):a[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(i.length)}}),era:x({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:x({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:x({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:x({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:x({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function S(e,t){u(2,arguments);var n=c(t);return f(e,-n)}function _(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var E={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return _("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):_(n+1,2)},d:function(e,t){return _(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return _(e.getUTCHours()%12||12,t.length)},H:function(e,t){return _(e.getUTCHours(),t.length)},m:function(e,t){return _(e.getUTCMinutes(),t.length)},s:function(e,t){return _(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return _(Math.floor(r*Math.pow(10,n-3)),t.length)}},C=864e5;function T(e){u(1,arguments);var t=1,n=d(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function I(e){u(1,arguments);var t=d(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=T(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=T(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function B(e){u(1,arguments);var t=I(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=T(n);return r}var O=6048e5;function P(e,t){u(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,i=null==o?0:c(o),a=null==n.weekStartsOn?i:c(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=d(e),l=s.getUTCDay(),f=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-f),s.setUTCHours(0,0,0,0),s}function R(e,t){u(1,arguments);var n=d(e,t),r=n.getUTCFullYear(),o=t||{},i=o.locale,a=i&&i.options&&i.options.firstWeekContainsDate,s=null==a?1:c(a),l=null==o.firstWeekContainsDate?s:c(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(r+1,0,l),f.setUTCHours(0,0,0,0);var p=P(f,t),h=new Date(0);h.setUTCFullYear(r,0,l),h.setUTCHours(0,0,0,0);var m=P(h,t);return n.getTime()>=p.getTime()?r+1:n.getTime()>=m.getTime()?r:r-1}function A(e,t){u(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,i=null==o?1:c(o),a=null==n.firstWeekContainsDate?i:c(n.firstWeekContainsDate),s=R(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var d=P(l,t);return d}var M=6048e5;var N="midnight",D="noon",L="morning",j="afternoon",z="evening",W="night",Z={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,r){var o=R(e,r),i=o>0?o:1-o;return"YY"===t?_(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):_(i,t.length)},R:function(e,t){return _(I(e),t.length)},u:function(e,t){return _(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return _(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return _(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return _(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){u(1,arguments);var n=d(e),r=P(n,t).getTime()-A(n,t).getTime();return Math.round(r/M)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):_(o,t.length)},I:function(e,t,n){var r=function(e){u(1,arguments);var t=d(e),n=T(t).getTime()-B(t).getTime();return Math.round(n/O)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):_(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){var r=function(e){u(1,arguments);var t=d(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/C)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):_(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return _(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return _(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return _(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?D:0===o?N:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?z:o>=12?j:o>=4?L:W,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return E.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):_(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):_(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return H(o);case"XXXX":case"XX":return U(o);default:return U(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return H(o);case"xxxx":case"xx":return U(o);default:return U(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+F(o,":");default:return"GMT"+U(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+F(o,":");default:return"GMT"+U(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return _(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return _((r._originalDate||e).getTime(),t.length)}};function F(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+_(i,2)}function H(e,t){return e%60===0?(e>0?"-":"+")+_(Math.abs(e)/60,2):U(e,t)}function U(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+_(Math.floor(o/60),2)+n+_(o%60,2)}var $=Z;function G(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function q(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var K={p:q,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],i=r[2];if(!i)return G(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",G(o,t)).replace("{{time}}",q(i,t))}},V=["D","DD"],Y=["YY","YYYY"];function X(e){return-1!==V.indexOf(e)}function J(e){return-1!==Y.indexOf(e)}function Q(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var ee=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,te=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ne=/^'([^]*?)'?$/,re=/''/g,oe=/[a-zA-Z]/;function ie(e){return e.match(ne)[1].replace(re,"'")}var ae=/^(0\d|1\d|2[0-3]):[0-5]\d(:[0-5]\d)?(.\d{1,3})?$/,se=function(e,t){if(e.match(ae))return function(e,t,n){u(2,arguments);var r=String(t),o=n||{},i=o.locale||k,a=i.options&&i.options.firstWeekContainsDate,s=null==a?1:c(a),l=null==o.firstWeekContainsDate?s:c(o.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=i.options&&i.options.weekStartsOn,m=null==f?0:c(f),v=null==o.weekStartsOn?m:c(o.weekStartsOn);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var g=d(e);if(!h(g))throw new RangeError("Invalid time value");var y=p(g),b=S(g,y),x={firstWeekContainsDate:l,weekStartsOn:v,locale:i,_originalDate:g};return r.match(te).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,K[t])(e,i.formatLong,x):e})).join("").match(ee).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return ie(n);var a=$[r];if(a)return!o.useAdditionalWeekYearTokens&&J(n)&&Q(n,t,e),!o.useAdditionalDayOfYearTokens&&X(n)&&Q(n,t,e),a(b,n,i.localize,x);if(r.match(oe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(new Date("2021-06-18T".concat(e)),t);throw new Error("[Paste Time Picker]: Please make sure timeValue string matches HH:mm OR HH:mm:ss OR HH:mm:ss.SSS format")}},2758:function(e,t,n){"use strict";n.r(t),n.d(t,{Timeline:function(){return g},TimelineItem:function(){return w},TimelineItemGroup:function(){return k}});var r=n(1413),o=n(4925),i=n(1923),a=n(7666),s=n(2791),l=n(9741),c=n(6091),u=n(5594),d=n(9132),f=n(8015),p=n(5091),h=["children","element"],m=["children","icon","timestamp","title","collapsible","collapsibleHeading","element","onClick","disabled"],v=["children","timestamp","icon","element"],g=s.forwardRef((function(e,t){var n=e.children,l=e.element,c=void 0===l?"TIMELINE":l,u=(0,o.Z)(e,h),d=a.iK.ol((0,a.iv)({listStyleType:"none",margin:"0",padding:"0","li>div:first-child::after":{content:"''",borderLeftWidth:"borderWidth10",borderLeftStyle:"solid",borderLeftColor:"colorBorderWeaker",minHeight:"sizeBase80",flexGrow:"1"}}));return s.createElement(i.Box,(0,r.Z)({ref:t,as:d,element:c},u),n)}));g.displayName="Timeline";var y=s.createContext(!1),b=s.forwardRef((function(e,t){var n=e.children,r=e.timestamp,o=e.element;return s.createElement(u.SummaryDetail,{element:"".concat(o,"_SUMMARY_DETAIL"),ref:t},s.createElement(u.SummaryDetailHeading,{element:"".concat(o,"_SUMMARY_DETAIL_HEADING")},s.createElement(u.SummaryDetailToggleButton,{element:"".concat(o,"_SUMMARY_DETAIL_TOGGLE_BUTTON")}),s.createElement(u.SummaryDetailHeadingContent,{element:"".concat(o,"_SUMMARY_DETAIL_HEADING_CONTENT")},s.createElement(d.Text,{element:"".concat(o,"_TIMESTAMP"),as:"span",fontSize:"fontSize20",color:"colorTextWeak",fontWeight:"fontWeightMedium",lineHeight:"lineHeight20",marginLeft:"spaceNegative30"},r))),s.createElement(u.SummaryDetailContent,{element:"".concat(o,"_SUMMARY_DETAIL_CONTENT")},n))}));b.displayName="TimelineItemCollapsible";var x=s.forwardRef((function(e,t){var n=e.icon,r=e.as,o=e.display,a=e.element,l=void 0===a?"TIMELINE_ITEM_ICON":a,c=e.color;return s.createElement(i.Box,{element:"".concat(l,"_WRAPPER")},n?s.createElement(i.Box,{marginY:"space20"},s.createElement(f.a,{as:r,display:o,element:l,color:c,ref:t,size:"sizeIcon10"},s.createElement(n,{decorative:!0,size:"sizeIcon10"}))):s.createElement(i.Box,{element:"".concat(l,"_DOT"),backgroundColor:"colorBackgroundStronger",borderRadius:"borderRadiusCircle",size:"sizeBase20",marginY:"space30"}))}));x.displayName="TimelineItemIcon";var w=s.forwardRef((function(e,t){var n=e.children,u=e.icon,d=e.timestamp,f=e.title,p=e.collapsible,h=void 0!==p&&p,v=e.collapsibleHeading,g=e.element,w=void 0===g?"TIMELINE_ITEM":g,k=e.onClick,S=e.disabled,_=(0,o.Z)(e,m),E=s.useContext(y),C=a.iK.li((0,a.iv)({"&:last-child>div:first-child::after":{content:"none"},"div::after":{display:E?"none":"block"}}));return s.createElement(i.Box,(0,r.Z)({element:w,as:C,ref:t,position:"relative",display:"flex",columnGap:"space50",rowGap:"space50",flexShrink:0},_),E?null:s.createElement(i.Box,{element:"".concat(w,"_SEPARATOR"),display:"flex",width:"sizeBase50",flexDirection:"column",alignItems:"center",flexShrink:0},s.createElement(x,{icon:u,element:"".concat(w,"_ICON")})),s.createElement(i.Box,{element:"".concat(w,"_CONTENT_WRAPPER"),paddingX:"space0",fontFamily:"fontFamilyText",fontSize:"fontSize20",lineHeight:"lineHeight20",fontWeight:"fontWeightMedium",display:"flex",flexDirection:"column",columnGap:"space10",paddingBottom:"space60",width:"100%"},k?s.createElement(l.Button,{element:"".concat(w,"_TITLE_INTERACTIVE"),variant:"reset",size:"reset",onClick:k,textDecoration:"underline",paddingY:"space10",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight20",fontSize:"fontSize30",letterSpacing:"-0.28px",_hover:{color:"colorTextLink"},_focus:{color:"colorTextLink",boxShadow:"shadowFocus"},_disabled:{color:"colorTextWeaker"},disabled:S,display:"block"},s.createElement(c.Truncate,{title:f},f)):s.createElement(i.Box,{element:"".concat(w,"_TITLE"),as:"span",color:"colorText",paddingY:"space10",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight20",fontSize:"fontSize30",letterSpacing:"-0.28px"},f),h?s.createElement(b,{element:w,timestamp:d||v},n):s.createElement(s.Fragment,null,d?s.createElement(i.Box,{element:"".concat(w,"_TIMESTAMP"),as:"span",color:"colorTextWeak",fontWeight:"fontWeightMedium",lineHeight:"lineHeight20",fontSize:"fontSize20"},d):null,n?s.createElement(i.Box,{element:"".concat(w,"_CONTENT")},n):null)))}));w.displayName="TimelineItem";var k=s.forwardRef((function(e,t){var n=e.children,a=e.timestamp,l=e.icon,c=e.element,u=void 0===c?"TIMELINE_ITEM_GROUP":c,d=(0,o.Z)(e,v);return s.createElement(i.Box,(0,r.Z)({element:u,ref:t,as:"li",position:"relative",display:"flex",columnGap:"space50",rowGap:"space50",flexShrink:0},d),s.createElement(i.Box,{element:"".concat(u,"_SEPARATOR"),display:"flex",width:"sizeBase50",flexDirection:"column",alignItems:"center"},s.createElement(x,{icon:l})),s.createElement(i.Box,{element:"".concat(u,"_CONTENT_WRAPPER"),width:"100%"},s.createElement(i.Box,{element:"".concat(u,"_TIMESTAMP"),marginTop:"space10",marginBottom:"space30"},s.createElement(p.DetailText,{element:"".concat(u,"_TIMESTAMP_DETAIL_TEXT"),marginTop:"space0"},a)),s.createElement(i.Box,{element:"".concat(u,"_CONTENT"),as:"ol",margin:"space0",padding:"space0"},s.createElement(y.Provider,{value:!0},n))))}));k.displayName="TimelineItemGroup"},8779:function(e,t,n){"use strict";n.r(t),n.d(t,{Toast:function(){return W},ToastContainer:function(){return F},Toaster:function(){return U},useToaster:function(){return $}});var r=n(2982),o=n(4165),i=n(5861),a=n(885),s=n(1413),l=n(4925),c=n(9741),u=n(8045),d=n(7088),f=n(8295),p=n(8306),h=n(428),m=n(1631),v=n(9643),g=n(2791),y=n(1923),b=n(1543),x=n(4086),w=n(2714),k=n(3512),S=n(9628),_=["element","variant"],E=["element","variant"],C=["element","variant"],T=["element","variant"],I=["children","onDismiss","variant","element","setFocus","i18nDismissLabel","i18nErrorLabel","i18nNeutralLabel","i18nSuccessLabel","i18nWarningLabel"],B=["children","left"],O=["children"],P=["toasts","pop"],R=g.forwardRef((function(e,t){var n=e.element,r=void 0===n?"TOAST":n,o=e.variant,i=(0,l.Z)(e,_);return g.createElement(y.Box,(0,s.Z)((0,s.Z)({},(0,y.safelySpreadBoxProps)(i)),{},{ref:t,color:"colorTextError",width:["100%","size40","size40"],backgroundColor:"colorBackgroundErrorWeakest",borderColor:"colorBorderErrorWeak",borderRadius:"borderRadius30",borderStyle:"solid",borderWidth:"borderWidth10",boxShadow:"shadowElevation20",element:r,padding:"space60",variant:o}),i.children)}));R.displayName="ErrorToast";var A=g.forwardRef((function(e,t){var n=e.element,r=void 0===n?"TOAST":n,o=e.variant,i=(0,l.Z)(e,E);return g.createElement(y.Box,(0,s.Z)((0,s.Z)({},(0,y.safelySpreadBoxProps)(i)),{},{ref:t,color:"colorTextNeutral",width:["100%","size40","size40"],backgroundColor:"colorBackgroundNeutralWeakest",borderColor:"colorBorderNeutralWeak",borderRadius:"borderRadius30",borderStyle:"solid",borderWidth:"borderWidth10",boxShadow:"shadowElevation20",element:r,padding:"space60",variant:o}),i.children)}));A.displayName="NeutralToast";var M=g.forwardRef((function(e,t){var n=e.element,r=void 0===n?"TOAST":n,o=e.variant,i=(0,l.Z)(e,C);return g.createElement(y.Box,(0,s.Z)((0,s.Z)({},(0,y.safelySpreadBoxProps)(i)),{},{ref:t,color:"colorTextSuccess",width:["100%","size40","size40"],backgroundColor:"colorBackgroundSuccessWeakest",borderColor:"colorBorderSuccessWeak",borderRadius:"borderRadius30",borderStyle:"solid",borderWidth:"borderWidth10",boxShadow:"shadowElevation20",element:r,padding:"space60",variant:o}),i.children)}));M.displayName="SuccessToast";var N=g.forwardRef((function(e,t){var n=e.element,r=void 0===n?"TOAST":n,o=e.variant,i=(0,l.Z)(e,T);return g.createElement(y.Box,(0,s.Z)((0,s.Z)({},(0,y.safelySpreadBoxProps)(i)),{},{ref:t,color:"colorTextWarningStrong",width:["100%","size40","size40"],backgroundColor:"colorBackgroundWarningWeakest",borderColor:"colorBorderWarningWeak",borderRadius:"borderRadius30",borderStyle:"solid",borderWidth:"borderWidth10",boxShadow:"shadowElevation20",element:r,padding:"space60",variant:o}),i.children)}));N.displayName="WarningToast";var D="error",L="success",j="warning",z={error:R,neutral:A,success:M,warning:N},W=g.forwardRef((function(e,t){var n=e.children,r=e.onDismiss,o=e.variant,i=void 0===o?"neutral":o,a=e.element,y=void 0===a?"TOAST":a,b=e.setFocus,x=e.i18nDismissLabel,w=void 0===x?"Dismiss toast":x,k=e.i18nErrorLabel,S=void 0===k?"(error)":k,_=e.i18nNeutralLabel,E=void 0===_?"(information)":_,C=e.i18nSuccessLabel,T=void 0===C?"(success)":C,B=e.i18nWarningLabel,O=void 0===B?"(warning)":B,P=(0,l.Z)(e,I),R=z[i],A=g.useRef(null);g.useEffect((function(){b&&A.current&&A.current.focus({preventScroll:!0})}),[b]);var M={error:S,neutral:E,success:T,warning:O};return g.createElement(R,(0,s.Z)({role:"status",variant:i,element:y,ref:t},P),g.createElement(m.MediaObject,{as:"div"},g.createElement(m.MediaFigure,{as:"div",spacing:"space60"},function(e,t,n){switch(e){case D:return g.createElement(d.P,{color:"colorTextIconError",decorative:!1,title:t,element:"".concat(n,"_ICON"),size:"sizeIcon20"});case L:return g.createElement(p.t,{color:"colorTextIconSuccess",decorative:!1,title:t,element:"".concat(n,"_ICON"),size:"sizeIcon20"});case j:return g.createElement(h.a,{color:"colorTextIconWarning",decorative:!1,title:t,element:"".concat(n,"_ICON"),size:"sizeIcon20"});default:return g.createElement(f.$,{color:"colorTextIconNeutral",decorative:!1,title:t,element:"".concat(n,"_ICON"),size:"sizeIcon20"})}}(i,M[i],y)),g.createElement(m.MediaBody,{as:"div"},n),r&&"function"==typeof r&&g.createElement(m.MediaFigure,{align:"end",spacing:"space40"},g.createElement(c.Button,{onClick:r,variant:"secondary_icon",ref:A,size:"reset",element:"".concat(y,"_CLOSE_BUTTON")},g.createElement(u.T,{decorative:!0,size:"sizeIcon20",element:"".concat(y,"_CLOSE_ICON")}),g.createElement(v.ScreenReaderOnly,null,w)))))}));W.displayName="Toast";var Z=g.forwardRef((function(e,t){var n=e.children,r=e.left,o=(0,l.Z)(e,B);return g.createElement(x.h_,null,g.createElement(w.ko,null,g.createElement(y.Box,(0,s.Z)((0,s.Z)({},(0,y.safelySpreadBoxProps)(o)),{},{position:"fixed",right:"space40",top:"space90",left:r,zIndex:"zIndex90",ref:t}),n)))}));Z.displayName="ToastPortal";var F=g.forwardRef((function(e,t){var n=e.children,r=(0,l.Z)(e,O);return g.createElement(Z,(0,s.Z)({},r),g.createElement(b.Stack,{orientation:"vertical",spacing:"space40",ref:t},n))}));F.displayName="ToastContainer";var H=(0,k.q)(y.Box),U=function(e){var t=e.toasts,n=e.pop,r=(0,l.Z)(e,P),c=(0,k.JZ)(),u=g.useState((function(){return new WeakMap})),d=(0,a.Z)(u,1)[0],f=g.useState({trigger:null}),p=(0,a.Z)(f,2),h=p[0],m=p[1],v=(0,w.Fg)(),y=(0,k.Yz)(t,{from:{marginBottom:"0rem",opacity:0,transform:"translateX(100%) scale(1)",height:c?"auto":0},enter:c?{marginBottom:v.space.space40,opacity:1,transform:"translateX(0px) scale(1)"}:function(e){return function(){var t=(0,i.Z)((0,o.Z)().mark((function t(n){return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({marginBottom:v.space.space40,opacity:1,transform:"translateX(0px) scale(1)",height:d.get(e).offsetHeight});case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:{marginBottom:"0rem",opacity:0,transform:"translateX(0px) scale(0.8)",height:c?"auto":0},config:{mass:1,tension:150,friction:20}}),b=g.useCallback((function(){m({trigger:null})}),[h]);return g.useEffect((function(){null!=h.trigger&&0===t.length&&(h.trigger.focus(),b())}),[t]),g.createElement(Z,(0,s.Z)({},r),y((function(e,t,r,o){return g.createElement(H,{as:"div",key:r.key,style:e},g.createElement(W,(0,s.Z)((0,s.Z)({key:t.id},t),{},{onDismiss:function(){null!=t.onDismiss&&t.onDismiss(),n(t.id)},ref:function(e){null!=e&&d.set(t,e)},setFocus:0===o,onFocus:function(e){e.relatedTarget&&!h.trigger&&m({trigger:e.relatedTarget})}}),t.message))})))};U.displayName="Toaster";var $=function(){var e=g.useRef(null),t=g.useState([]),n=(0,a.Z)(t,2),o=n[0],i=n[1];g.useEffect((function(){return e.current=!0,function(){e.current=!1,o.forEach((function(e){e.timeOutId&&window.clearTimeout(e.timeOutId)}))}}),[]);var l=function(t){!e.current||i((function(e){return e.filter((function(e){return e.id===t&&(e.timeOutId&&window.clearTimeout(e.timeOutId),e.onDismiss&&e.onDismiss()),e.id!==t}))}))};return{toasts:o,push:function(t){if(e.current){var n,o=(0,S.hQ)(t);null!=t.dismissAfter&&Number.isInteger(t.dismissAfter)&&(n=window.setTimeout(l,t.dismissAfter,t.id||o)),i((function(e){var i=e.map((function(e){var t=e;return t.setFocus=!1,t}));return[(0,s.Z)({id:o,timeOutId:n,setFocus:!0},t)].concat((0,r.Z)(i))}))}},pop:l}}},9792:function(e,t,n){"use strict";n.r(t),n.d(t,{TooltipPrimitive:function(){return r.u},TooltipPrimitiveArrow:function(){return r.Ce},TooltipPrimitiveReference:function(){return r.vu},useTooltipPrimitiveState:function(){return r.KC}});var r=n(4086)},6168:function(e,t,n){"use strict";n.r(t),n.d(t,{Tooltip:function(){return g},useTooltipState:function(){return u.KC}});var r=n(4925),o=n(1413),i=n(1923),a=n(396),s=n(1543),l=n(9132),c=n(2714),u=n(4086),d=n(9628),f=n(2791),p=["style","element"],h=["baseId","children","element","state","text","actionHeader","keyCombinationsActions"],m=function(e){var t=(0,c.Fg)();return f.createElement(u.Ce,(0,o.Z)((0,o.Z)({},e),{},{size:t.fontSizes.fontSize50,fill:t.backgroundColors.colorBackgroundInverseElevation}))};m.displayName="TooltipArrow";var v=f.forwardRef((function(e,t){var n=e.style,a=e.element,s=(0,r.Z)(e,p);return f.createElement(i.Box,(0,o.Z)((0,o.Z)({},(0,i.safelySpreadBoxProps)(s)),{},{backgroundColor:"colorBackgroundInverseElevation",boxShadow:"shadowElevationInverse10",borderRadius:"borderRadius30",element:a,maxWidth:"size30",paddingX:"space50",paddingY:"space40",zIndex:"zIndex90",_focus:{outline:"none"},style:n,ref:t}))}));v.displayName="StyledTooltip";var g=f.forwardRef((function(e,t){e.baseId;var n=e.children,p=e.element,g=void 0===p?"TOOLTIP":p,y=e.state,b=e.text,x=e.actionHeader,w=e.keyCombinationsActions,k=(0,r.Z)(e,h),S=y||(0,u.KC)((0,o.Z)({baseId:"paste-tooltip-".concat((0,d.Dt)())},k));return f.createElement(f.Fragment,null,f.Children.only(f.createElement(u.vu,(0,o.Z)((0,o.Z)({},S),{},{ref:t},n.props),(function(e){return f.cloneElement(n,e)}))),f.createElement(u.u,(0,o.Z)((0,o.Z)((0,o.Z)({element:g},S),k),{},{as:v}),f.createElement(c.ko,null,f.createElement(m,(0,o.Z)({},S)),b&&!w&&f.createElement(l.Text,{element:"".concat(g,"_TEXT"),as:"span",color:"colorTextInverse",fontSize:"fontSize20",lineHeight:"lineHeight10"},b),w&&!b&&f.createElement(i.Box,{color:"colorTextInverse",fontSize:"fontSize20",lineHeight:"lineHeight10"},f.createElement(s.Stack,{orientation:"vertical",spacing:"space40"},x&&f.createElement(l.Text,{element:"".concat(g,"_HEADER"),fontWeight:"fontWeightSemibold",as:"p",color:"inherit",fontSize:"inherit",lineHeight:"inherit"},x),w.map((function(e,t){return f.createElement(i.Box,{display:"flex",key:"action-".concat(t),justifyContent:"space-between"},e.name&&f.createElement(l.Text,{element:"".concat(g,"_ACTION_TEXT"),as:"span",color:"inherit",fontSize:"inherit",lineHeight:"inherit",marginRight:"space70"},e.name),f.createElement(a.KeyboardKeyGroup,{variant:"inverse",element:"".concat(g,"_ACTION_KEY_GROUP"),disabled:e.disabled},e.eventKeyCombination.map((function(e,n){return f.createElement(a.KeyboardKey,{key:"key-".concat(t,"-").concat(n),element:"".concat(g,"_ACTION_KEY")},e)}))))})))))))}));g.displayName="Tooltip"},6537:function(e,t,n){"use strict";n.r(t),n.d(t,{Topbar:function(){return c},TopbarActions:function(){return u}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["element","id","children"],l=["children","element","justify","display"],c=a.forwardRef((function(e,t){var n=e.element,l=void 0===n?"TOPBAR":n,c=e.id,u=e.children,d=(0,o.Z)(e,s);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(d)),{},{id:c,ref:t,element:l,width:"100%",minHeight:"sizeTopbar",backgroundColor:"colorBackgroundWeak",boxShadow:"shadowElevationBottom05",paddingX:"space70",position:"sticky",top:"0",display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:"space70",zIndex:"zIndex40"}),u)}));c.displayName="Topbar";var u=a.forwardRef((function(e,t){var n=e.children,s=e.element,c=void 0===s?"TOPBAR_ACTIONS":s,u=e.justify,d=void 0===u?"end":u,f=e.display,p=void 0===f?"flex":f,h=(0,o.Z)(e,l);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},(0,i.safelySpreadBoxProps)(h)),{},{display:p,justifyContent:{start:"flex-start",end:"flex-end",center:"center"}[d],flexShrink:"start"===d?null:0,flexWrap:"wrap",flexGrow:1,columnGap:"space50",element:c,alignItems:"center",ref:t}),n)}));u.displayName="TopbarActions"},6091:function(e,t,n){"use strict";n.r(t),n.d(t,{Truncate:function(){return l}});var r=n(1413),o=n(4925),i=n(1923),a=n(2791),s=["children"],l=a.forwardRef((function(e,t){var n=e.children,l=(0,o.Z)(e,s);return a.createElement(i.Box,(0,r.Z)((0,r.Z)({},l),{},{as:"span",display:"inline-block",verticalAlign:"bottom",textDecoration:"inherit",maxWidth:"100%",overflow:"hidden",ref:t,textOverflow:"ellipsis",whiteSpace:"nowrap"}),n)}));l.displayName="Truncate"},9628:function(e,t,n){"use strict";n.d(t,{Dt:function(){return f},Hb:function(){return p},hQ:function(){return i}});var r=n(2791),o=function(){var e=1,t=new WeakMap;return function n(r,o){return"number"==typeof r||"string"==typeof r?o?"idx-".concat(o):"val-".concat(r):t.has(r)?"uid"+t.get(r):(t.set(r,e++),n(r))}},i=o(),a=function(e){return void 0===e&&(e=""),{value:1,prefix:e,uid:o()}},s=a(),l=r.createContext(a()),c=function(){var e=(0,r.useContext)(l),t=(0,r.useState)((function(){return function(e){var t,n=e||s,r=(t=n)?t.prefix:"",o=function(e){return e.value++}(n),i=r+o;return{uid:i,gen:function(e){return i+n.uid(e)}}}(e)}))[0];return t},u=function(){return c().uid},d=r.useId,f=void 0!==d?d:u,p=void 0!==d?function(){var e=d();return function(t){return"".concat(e,"-").concat(t)}}:function(){return c().gen}},2152:function(e,t,n){"use strict";n.r(t),n.d(t,{UserDialog:function(){return M},UserDialogContainer:function(){return P},UserDialogList:function(){return W},UserDialogListItem:function(){return F},UserDialogSeparator:function(){return H},UserDialogUserEmail:function(){return L},UserDialogUserInfo:function(){return N},UserDialogUserName:function(){return D},useUserDialogListState:function(){return j},useUserDialogState:function(){return O}});var r=n(4925),o=n(1413),i=n(1585),a=n(1923),s=n(9741),l=n(9282),c=n(4086),u=n(2714),d=n(2791),f=n(2276),p=n(1631),h=n(7350),m=n(9132),v=n(9673),g=["children","state","name","src","icon"],y=["style"],b=["children","element"],x=["children","aria-label","element"],w=["children","element"],k=["children","element"],S=["children","element"],_=["element"],E=["children"],C=["children","href","element"],T=["children"],I=["element"],B=d.createContext({}),O=function(e){return(0,f.useNonModalDialogPrimitiveState)((0,o.Z)((0,o.Z)({},e),{},{placement:"bottom-start",gutter:0}))},P=function(e){var t=e.children,n=e.state,i=e.name,a=e.src,s=e.icon,l=(0,r.Z)(e,g),c=n||(0,f.useNonModalDialogPrimitiveState)((0,o.Z)({modal:!0,visible:!1,placement:"bottom-start",gutter:0},l)),u={name:i,src:a,icon:s};return d.createElement(B.Provider,{value:{userDialogState:c,avatarProps:u}},t)};P.displayName="UserDialogContainer";var R=d.forwardRef((function(e,t){var n=e.style,i=(0,r.Z)(e,y);return d.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(i)),{},{ref:t,style:n,boxShadow:"shadowElevation10",borderRadius:"borderRadius30",padding:"space0",marginTop:"space30",width:"size30",zIndex:"zIndex80",outline:"none"}),i.children)}));R.displayName="UserDialogPopover";var A=d.forwardRef((function(e,t){var n=e.children,i=e.element,a=(0,r.Z)(e,b);return d.createElement(s.Button,(0,o.Z)((0,o.Z)({},a),{},{variant:"reset",size:"reset",borderRadius:"borderRadius20",element:"".concat(i,"_BUTTON"),ref:t}),n)}));A.displayName="UserDialogButton";var M=d.forwardRef((function(e,t){var n=e.children,s=e["aria-label"],f=e.element,p=void 0===f?"USER_DIALOG":f,h=(0,r.Z)(e,x),m=d.useContext(B),v=m.userDialogState,g=m.avatarProps;return d.createElement(d.Fragment,null,d.createElement(c.xM,(0,o.Z)((0,o.Z)({},v),{},{as:A,element:p}),d.createElement(a.Box,{display:"flex",columnGap:"space20",alignItems:"center",element:"".concat(p,"_BUTTON_CONTENTS"),color:"colorTextIcon",_hover:{color:"colorTextPrimaryStrongest"}},d.createElement(i.Avatar,{variant:"user",size:"sizeIcon40",name:g.name,icon:g.icon,src:g.src,element:"".concat(p,"_BUTTON_AVATAR")}),d.createElement(l.v,{decorative:!0,size:"sizeIcon30",element:"".concat(p,"_BUTTON_ICON")}))),d.createElement(c.J2,(0,o.Z)((0,o.Z)((0,o.Z)({},v),h),{},{preventBodyScroll:!1,"aria-label":s,as:R,element:p,ref:t}),d.createElement(u.ko,null,n)))}));M.displayName="UserDialog";var N=d.forwardRef((function(e,t){var n=e.children,s=e.element,l=void 0===s?"USER_DIALOG":s,c=(0,r.Z)(e,w),u=d.useContext(B).avatarProps;return d.createElement(d.Fragment,null,d.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{backgroundColor:"colorBackgroundWeak",padding:"space50",borderTopLeftRadius:"borderRadius30",borderTopRightRadius:"borderRadius30",element:"".concat(l,"_USER_INFO"),ref:t}),d.createElement(p.MediaObject,{as:"div",verticalAlign:"center"},d.createElement(p.MediaFigure,{as:"div",spacing:"space50"},d.createElement(i.Avatar,{variant:"user",size:"sizeIcon80",name:u.name,src:u.src,icon:u.icon,element:"".concat(l,"_USER_AVATAR")})),d.createElement(p.MediaBody,{as:"div"},n))),d.createElement(h.Separator,{orientation:"horizontal",element:"".concat(l,"_USER_INFO_SEPARATOR")}))}));N.displayName="UserDialogUserInfo";var D=d.forwardRef((function(e,t){var n=e.children,i=e.element,a=void 0===i?"USER_DIALOG_USER_NAME":i,s=(0,r.Z)(e,k);return d.createElement(m.Text,(0,o.Z)((0,o.Z)({},s),{},{as:"div",fontSize:"fontSize40",color:"colorText",fontWeight:"fontWeightSemibold",lineHeight:"lineHeight40",element:a,ref:t}),n)}));D.displayName="UserDialogName";var L=d.forwardRef((function(e,t){var n=e.children,i=e.element,a=void 0===i?"USER_DIALOG_USER_EMAIL":i,s=(0,r.Z)(e,S);return d.createElement(m.Text,(0,o.Z)((0,o.Z)({},s),{},{as:"div",fontSize:"fontSize30",color:"colorTextWeak",fontWeight:"fontWeightLight",lineHeight:"lineHeight20",element:a,ref:t}),n)}));L.displayName="UserDialogEmail";var j=function(e){return(0,v.useListboxPrimitiveState)((0,o.Z)((0,o.Z)({},e),{},{orientation:"vertical"}))},z=d.forwardRef((function(e,t){var n=e.element,i=void 0===n?"USER_DIALOG":n,s=(0,r.Z)(e,_);return d.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(s)),{},{element:"".concat(i,"_LIST"),backgroundColor:"colorBackgroundWeaker",borderRadius:"borderRadius30",paddingY:"space30",ref:t}),s.children)}));z.displayName="UserDialogListbox";var W=d.forwardRef((function(e,t){var n=e.children,i=(0,r.Z)(e,E);return d.createElement(v.ListboxPrimitive,(0,o.Z)((0,o.Z)({},i),{},{as:z,ref:t}),n)}));W.displayName="UserDialogList";var Z=d.forwardRef((function(e,t){var n=e.children,i=e.href,s=e.element,l=void 0===s?"USER_DIALOG":s,c=(0,r.Z)(e,C);return d.createElement(a.Box,(0,o.Z)((0,o.Z)({},(0,a.safelySpreadBoxProps)(c)),{},{element:"".concat(l,"_LIST_ITEM"),as:i?"a":"div",href:i,ref:t,width:"100%",paddingLeft:"space60",paddingRight:"space70",paddingY:"space30",display:"flex",columnGap:"space30",color:"colorText",borderLeftStyle:"solid",borderLeftWidth:"borderWidth20",borderLeftColor:"colorBorderWeakest",outline:"none",_hover:{cursor:"pointer",backgroundColor:"colorBackgroundPrimaryWeakest",color:"colorTextPrimary",borderLeftStyle:"solid",borderLeftWidth:"borderWidth20",borderLeftColor:"colorBorderPrimary"},_focus:{cursor:"pointer",backgroundColor:"colorBackgroundPrimaryWeakest",color:"colorTextPrimary",borderLeftStyle:"solid",borderLeftWidth:"borderWidth20",borderLeftColor:"colorBorderPrimary"}}),n)}));Z.displayName="UserDialogListboxItem";var F=d.forwardRef((function(e,t){var n=e.children,i=(0,r.Z)(e,T);return d.createElement(v.ListboxPrimitiveItem,(0,o.Z)((0,o.Z)({},i),{},{ref:t,as:Z}),n)}));F.displayName="UserDialogListItem";var H=d.forwardRef((function(e,t){var n=e.element,i=void 0===n?"USER_DIALOG_SEPARATOR":n,s=(0,r.Z)(e,I);return d.createElement(a.Box,{paddingY:"space30"},d.createElement(h.Separator,(0,o.Z)((0,o.Z)({},s),{},{element:i,ref:t,orientation:"horizontal"})))}));H.displayName="UserDialogSeparator"},3217:function(e,t,n){"use strict";n.d(t,{iP:function(){return Nt},qq:function(){return Lt},xz:function(){return Rt}});var r=n(885),o=n(7762),i=n(2791),a=n(2714),s=Object.create,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=function(e,t){return function(){return t||(0,e[u(e)[0]])((t={exports:{}}).exports,t),t.exports}},h=function(e,t,n){return n=null!=e?s(d(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var i,a=(0,o.Z)(u(t));try{var s=function(){var o=i.value;!f.call(e,o)&&o!==n&&l(e,o,{get:function(){return t[o]},enumerable:!(r=c(t,o))||r.enumerable})};for(a.s();!(i=a.n()).done;)s()}catch(d){a.e(d)}finally{a.f()}}return e}(!t&&e&&e.__esModule?n:l(n,"default",{value:e,enumerable:!0}),e)},m=p({"../../node_modules/lodash/isObject.js":function(e,t){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}}),v=p({"../../node_modules/lodash/_freeGlobal.js":function(e,t){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r}}),g=p({"../../node_modules/lodash/_root.js":function(e,t){var n=v(),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();t.exports=o}}),y=p({"../../node_modules/lodash/now.js":function(e,t){var n=g();t.exports=function(){return n.Date.now()}}}),b=p({"../../node_modules/lodash/_trimmedEndIndex.js":function(e,t){var n=/\s/;t.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}}}),x=p({"../../node_modules/lodash/_baseTrim.js":function(e,t){var n=b(),r=/^\s+/;t.exports=function(e){return e&&e.slice(0,n(e)+1).replace(r,"")}}}),w=p({"../../node_modules/lodash/_Symbol.js":function(e,t){var n=g().Symbol;t.exports=n}}),k=p({"../../node_modules/lodash/_getRawTag.js":function(e,t){var n=w(),r=Object.prototype,o=r.hasOwnProperty,i=r.toString,a=n?n.toStringTag:void 0;t.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(l){}var s=i.call(e);return r&&(t?e[a]=n:delete e[a]),s}}}),S=p({"../../node_modules/lodash/_objectToString.js":function(e,t){var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}}}),_=p({"../../node_modules/lodash/_baseGetTag.js":function(e,t){var n=w(),r=k(),o=S(),i=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?r(e):o(e)}}}),E=p({"../../node_modules/lodash/isObjectLike.js":function(e,t){t.exports=function(e){return null!=e&&"object"==typeof e}}}),C=p({"../../node_modules/lodash/isSymbol.js":function(e,t){var n=_(),r=E();t.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}}}),T=p({"../../node_modules/lodash/toNumber.js":function(e,t){var n=x(),r=m(),o=C(),i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var c=a.test(e);return c||s.test(e)?l(e.slice(2),c?2:8):i.test(e)?NaN:+e}}}),I=p({"../../node_modules/lodash/debounce.js":function(e,t){var n=m(),r=y(),o=T(),i=Math.max,a=Math.min;t.exports=function(e,t,s){var l,c,u,d,f,p,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,f=setTimeout(w,t),m?y(e):d}function x(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-h>=u}function w(){var e=r();if(x(e))return k(e);f=setTimeout(w,function(e){var n=t-(e-p);return v?a(n,u-(e-h)):n}(e))}function k(e){return f=void 0,g&&l?y(e):(l=c=void 0,d)}function S(){var e=r(),n=x(e);if(l=arguments,c=this,p=e,n){if(void 0===f)return b(p);if(v)return clearTimeout(f),f=setTimeout(w,t),y(p)}return void 0===f&&(f=setTimeout(w,t)),d}return t=o(t)||0,n(s)&&(m=!!s.leading,u=(v="maxWait"in s)?i(o(s.maxWait)||0,t):u,g="trailing"in s?!!s.trailing:g),S.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=c=f=void 0},S.flush=function(){return void 0===f?d:k(r())},S}}}),B=p({"../../node_modules/lodash/_baseFindIndex.js":function(e,t){t.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}}}),O=p({"../../node_modules/lodash/_listCacheClear.js":function(e,t){t.exports=function(){this.__data__=[],this.size=0}}}),P=p({"../../node_modules/lodash/eq.js":function(e,t){t.exports=function(e,t){return e===t||e!==e&&t!==t}}}),R=p({"../../node_modules/lodash/_assocIndexOf.js":function(e,t){var n=P();t.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}}}),A=p({"../../node_modules/lodash/_listCacheDelete.js":function(e,t){var n=R(),r=Array.prototype.splice;t.exports=function(e){var t=this.__data__,o=n(t,e);return!(o<0)&&(o==t.length-1?t.pop():r.call(t,o,1),--this.size,!0)}}}),M=p({"../../node_modules/lodash/_listCacheGet.js":function(e,t){var n=R();t.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}}}),N=p({"../../node_modules/lodash/_listCacheHas.js":function(e,t){var n=R();t.exports=function(e){return n(this.__data__,e)>-1}}}),D=p({"../../node_modules/lodash/_listCacheSet.js":function(e,t){var n=R();t.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}}}),L=p({"../../node_modules/lodash/_ListCache.js":function(e,t){var n=O(),r=A(),o=M(),i=N(),a=D();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),j=p({"../../node_modules/lodash/_stackClear.js":function(e,t){var n=L();t.exports=function(){this.__data__=new n,this.size=0}}}),z=p({"../../node_modules/lodash/_stackDelete.js":function(e,t){t.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}}}),W=p({"../../node_modules/lodash/_stackGet.js":function(e,t){t.exports=function(e){return this.__data__.get(e)}}}),Z=p({"../../node_modules/lodash/_stackHas.js":function(e,t){t.exports=function(e){return this.__data__.has(e)}}}),F=p({"../../node_modules/lodash/isFunction.js":function(e,t){var n=_(),r=m();t.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}}),H=p({"../../node_modules/lodash/_coreJsData.js":function(e,t){var n=g()["__core-js_shared__"];t.exports=n}}),U=p({"../../node_modules/lodash/_isMasked.js":function(e,t){var n=H(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=function(e){return!!r&&r in e}}}),$=p({"../../node_modules/lodash/_toSource.js":function(e,t){var n=Function.prototype.toString;t.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(r){}}return""}}}),G=p({"../../node_modules/lodash/_baseIsNative.js":function(e,t){var n=F(),r=U(),o=m(),i=$(),a=/^\[object .+?Constructor\]$/,s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(e){return!(!o(e)||r(e))&&(n(e)?d:a).test(i(e))}}}),q=p({"../../node_modules/lodash/_getValue.js":function(e,t){t.exports=function(e,t){return null===e||void 0===e?void 0:e[t]}}}),K=p({"../../node_modules/lodash/_getNative.js":function(e,t){var n=G(),r=q();t.exports=function(e,t){var o=r(e,t);return n(o)?o:void 0}}}),V=p({"../../node_modules/lodash/_Map.js":function(e,t){var n=K()(g(),"Map");t.exports=n}}),Y=p({"../../node_modules/lodash/_nativeCreate.js":function(e,t){var n=K()(Object,"create");t.exports=n}}),X=p({"../../node_modules/lodash/_hashClear.js":function(e,t){var n=Y();t.exports=function(){this.__data__=n?n(null):{},this.size=0}}}),J=p({"../../node_modules/lodash/_hashDelete.js":function(e,t){t.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}}),Q=p({"../../node_modules/lodash/_hashGet.js":function(e,t){var n=Y(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;if(n){var o=t[e];return"__lodash_hash_undefined__"===o?void 0:o}return r.call(t,e)?t[e]:void 0}}}),ee=p({"../../node_modules/lodash/_hashHas.js":function(e,t){var n=Y(),r=Object.prototype.hasOwnProperty;t.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}}}),te=p({"../../node_modules/lodash/_hashSet.js":function(e,t){var n=Y();t.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}}}),ne=p({"../../node_modules/lodash/_Hash.js":function(e,t){var n=X(),r=J(),o=Q(),i=ee(),a=te();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),re=p({"../../node_modules/lodash/_mapCacheClear.js":function(e,t){var n=ne(),r=L(),o=V();t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}}}),oe=p({"../../node_modules/lodash/_isKeyable.js":function(e,t){t.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}}),ie=p({"../../node_modules/lodash/_getMapData.js":function(e,t){var n=oe();t.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}}}),ae=p({"../../node_modules/lodash/_mapCacheDelete.js":function(e,t){var n=ie();t.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}}}),se=p({"../../node_modules/lodash/_mapCacheGet.js":function(e,t){var n=ie();t.exports=function(e){return n(this,e).get(e)}}}),le=p({"../../node_modules/lodash/_mapCacheHas.js":function(e,t){var n=ie();t.exports=function(e){return n(this,e).has(e)}}}),ce=p({"../../node_modules/lodash/_mapCacheSet.js":function(e,t){var n=ie();t.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}}}),ue=p({"../../node_modules/lodash/_MapCache.js":function(e,t){var n=re(),r=ae(),o=se(),i=le(),a=ce();function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=i,s.prototype.set=a,t.exports=s}}),de=p({"../../node_modules/lodash/_stackSet.js":function(e,t){var n=L(),r=V(),o=ue();t.exports=function(e,t){var i=this.__data__;if(i instanceof n){var a=i.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new o(a)}return i.set(e,t),this.size=i.size,this}}}),fe=p({"../../node_modules/lodash/_Stack.js":function(e,t){var n=L(),r=j(),o=z(),i=W(),a=Z(),s=de();function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,t.exports=l}}),pe=p({"../../node_modules/lodash/_setCacheAdd.js":function(e,t){t.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}}),he=p({"../../node_modules/lodash/_setCacheHas.js":function(e,t){t.exports=function(e){return this.__data__.has(e)}}}),me=p({"../../node_modules/lodash/_SetCache.js":function(e,t){var n=ue(),r=pe(),o=he();function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=r,i.prototype.has=o,t.exports=i}}),ve=p({"../../node_modules/lodash/_arraySome.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}}}),ge=p({"../../node_modules/lodash/_cacheHas.js":function(e,t){t.exports=function(e,t){return e.has(t)}}}),ye=p({"../../node_modules/lodash/_equalArrays.js":function(e,t){var n=me(),r=ve(),o=ge();t.exports=function(e,t,i,a,s,l){var c=1&i,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,v=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],y=t[h];if(a)var b=c?a(y,g,h,t,e,l):a(g,y,h,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!r(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,i,a,l)))return v.push(t)}))){m=!1;break}}else if(g!==y&&!s(g,y,i,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}}}),be=p({"../../node_modules/lodash/_Uint8Array.js":function(e,t){var n=g().Uint8Array;t.exports=n}}),xe=p({"../../node_modules/lodash/_mapToArray.js":function(e,t){t.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}}}),we=p({"../../node_modules/lodash/_setToArray.js":function(e,t){t.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}}}),ke=p({"../../node_modules/lodash/_equalByTag.js":function(e,t){var n=w(),r=be(),o=P(),i=ye(),a=xe(),s=we(),l=n?n.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(e,t,n,l,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&l;if(p||(p=s),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;l|=2,f.set(e,t);var v=i(p(e),p(t),l,u,d,f);return f.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}}}),Se=p({"../../node_modules/lodash/_arrayPush.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}}}),_e=p({"../../node_modules/lodash/isArray.js":function(e,t){var n=Array.isArray;t.exports=n}}),Ee=p({"../../node_modules/lodash/_baseGetAllKeys.js":function(e,t){var n=Se(),r=_e();t.exports=function(e,t,o){var i=t(e);return r(e)?i:n(i,o(e))}}}),Ce=p({"../../node_modules/lodash/_arrayFilter.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}}}),Te=p({"../../node_modules/lodash/stubArray.js":function(e,t){t.exports=function(){return[]}}}),Ie=p({"../../node_modules/lodash/_getSymbols.js":function(e,t){var n=Ce(),r=Te(),o=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return o.call(e,t)})))}:r;t.exports=a}}),Be=p({"../../node_modules/lodash/_baseTimes.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}}}),Oe=p({"../../node_modules/lodash/_baseIsArguments.js":function(e,t){var n=_(),r=E();t.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}}}),Pe=p({"../../node_modules/lodash/isArguments.js":function(e,t){var n=Oe(),r=E(),o=Object.prototype,i=o.hasOwnProperty,a=o.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return r(e)&&i.call(e,"callee")&&!a.call(e,"callee")};t.exports=s}}),Re=p({"../../node_modules/lodash/stubFalse.js":function(e,t){t.exports=function(){return!1}}}),Ae=p({"../../node_modules/lodash/isBuffer.js":function(e,t){var n=g(),r=Re(),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;t.exports=s}}),Me=p({"../../node_modules/lodash/_isIndex.js":function(e,t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var r,o=typeof e;return!!(t=null!==(r=t)&&void 0!==r?r:9007199254740991)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e<t}}}),Ne=p({"../../node_modules/lodash/isLength.js":function(e,t){t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}}),De=p({"../../node_modules/lodash/_baseIsTypedArray.js":function(e,t){var n=_(),r=Ne(),o=E(),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(e){return o(e)&&r(e.length)&&!!i[n(e)]}}}),Le=p({"../../node_modules/lodash/_baseUnary.js":function(e,t){t.exports=function(e){return function(t){return e(t)}}}}),je=p({"../../node_modules/lodash/_nodeUtil.js":function(e,t){var n=v(),r="object"==typeof e&&e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();t.exports=a}}),ze=p({"../../node_modules/lodash/isTypedArray.js":function(e,t){var n=De(),r=Le(),o=je(),i=o&&o.isTypedArray,a=i?r(i):n;t.exports=a}}),We=p({"../../node_modules/lodash/_arrayLikeKeys.js":function(e,t){var n=Be(),r=Pe(),o=_e(),i=Ae(),a=Me(),s=ze(),l=Object.prototype.hasOwnProperty;t.exports=function(e,t){var c=o(e),u=!c&&r(e),d=!c&&!u&&i(e),f=!c&&!u&&!d&&s(e),p=c||u||d||f,h=p?n(e.length,String):[],m=h.length;for(var v in e)(t||l.call(e,v))&&(!p||!("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,m)))&&h.push(v);return h}}}),Ze=p({"../../node_modules/lodash/_isPrototype.js":function(e,t){var n=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}}}),Fe=p({"../../node_modules/lodash/_overArg.js":function(e,t){t.exports=function(e,t){return function(n){return e(t(n))}}}}),He=p({"../../node_modules/lodash/_nativeKeys.js":function(e,t){var n=Fe()(Object.keys,Object);t.exports=n}}),Ue=p({"../../node_modules/lodash/_baseKeys.js":function(e,t){var n=Ze(),r=He(),o=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return r(e);var t=[];for(var i in Object(e))o.call(e,i)&&"constructor"!=i&&t.push(i);return t}}}),$e=p({"../../node_modules/lodash/isArrayLike.js":function(e,t){var n=F(),r=Ne();t.exports=function(e){return null!=e&&r(e.length)&&!n(e)}}}),Ge=p({"../../node_modules/lodash/keys.js":function(e,t){var n=We(),r=Ue(),o=$e();t.exports=function(e){return o(e)?n(e):r(e)}}}),qe=p({"../../node_modules/lodash/_getAllKeys.js":function(e,t){var n=Ee(),r=Ie(),o=Ge();t.exports=function(e){return n(e,o,r)}}}),Ke=p({"../../node_modules/lodash/_equalObjects.js":function(e,t){var n=qe(),r=Object.prototype.hasOwnProperty;t.exports=function(e,t,o,i,a,s){var l=1&o,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:r.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var v=l;++d<u;){var g=e[f=c[d]],y=t[f];if(i)var b=l?i(y,g,f,t,e,s):i(g,y,f,e,t,s);if(!(void 0===b?g===y||a(g,y,o,i,s):b)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(m=!1)}return s.delete(e),s.delete(t),m}}}),Ve=p({"../../node_modules/lodash/_DataView.js":function(e,t){var n=K()(g(),"DataView");t.exports=n}}),Ye=p({"../../node_modules/lodash/_Promise.js":function(e,t){var n=K()(g(),"Promise");t.exports=n}}),Xe=p({"../../node_modules/lodash/_Set.js":function(e,t){var n=K()(g(),"Set");t.exports=n}}),Je=p({"../../node_modules/lodash/_WeakMap.js":function(e,t){var n=K()(g(),"WeakMap");t.exports=n}}),Qe=p({"../../node_modules/lodash/_getTag.js":function(e,t){var n=Ve(),r=V(),o=Ye(),i=Xe(),a=Je(),s=_(),l=$(),c="[object Map]",u="[object Promise]",d="[object Set]",f="[object WeakMap]",p="[object DataView]",h=l(n),m=l(r),v=l(o),g=l(i),y=l(a),b=s;(n&&b(new n(new ArrayBuffer(1)))!=p||r&&b(new r)!=c||o&&b(o.resolve())!=u||i&&b(new i)!=d||a&&b(new a)!=f)&&(b=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case h:return p;case m:return c;case v:return u;case g:return d;case y:return f}return t}),t.exports=b}}),et=p({"../../node_modules/lodash/_baseIsEqualDeep.js":function(e,t){var n=fe(),r=ye(),o=ke(),i=Ke(),a=Qe(),s=_e(),l=Ae(),c=ze(),u="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(e,t,h,m,v,g){var y=s(e),b=s(t),x=y?d:a(e),w=b?d:a(t),k=(x=x==u?f:x)==f,S=(w=w==u?f:w)==f,_=x==w;if(_&&l(e)){if(!l(t))return!1;y=!0,k=!1}if(_&&!k)return g||(g=new n),y||c(e)?r(e,t,h,m,v,g):o(e,t,x,h,m,v,g);if(!(1&h)){var E=k&&p.call(e,"__wrapped__"),C=S&&p.call(t,"__wrapped__");if(E||C){var T=E?e.value():e,I=C?t.value():t;return g||(g=new n),v(T,I,h,m,g)}}return!!_&&(g||(g=new n),i(e,t,h,m,v,g))}}}),tt=p({"../../node_modules/lodash/_baseIsEqual.js":function(e,t){var n=et(),r=E();t.exports=function e(t,o,i,a,s){return t===o||(null==t||null==o||!r(t)&&!r(o)?t!==t&&o!==o:n(t,o,i,a,e,s))}}}),nt=p({"../../node_modules/lodash/_baseIsMatch.js":function(e,t){var n=fe(),r=tt();t.exports=function(e,t,o,i){var a=o.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var c=o[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=o[a])[0],d=e[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var p=new n;if(i)var h=i(d,f,u,e,t,p);if(!(void 0===h?r(f,d,3,i,p):h))return!1}}return!0}}}),rt=p({"../../node_modules/lodash/_isStrictComparable.js":function(e,t){var n=m();t.exports=function(e){return e===e&&!n(e)}}}),ot=p({"../../node_modules/lodash/_getMatchData.js":function(e,t){var n=rt(),r=Ge();t.exports=function(e){for(var t=r(e),o=t.length;o--;){var i=t[o],a=e[i];t[o]=[i,a,n(a)]}return t}}}),it=p({"../../node_modules/lodash/_matchesStrictComparable.js":function(e,t){t.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}}}),at=p({"../../node_modules/lodash/_baseMatches.js":function(e,t){var n=nt(),r=ot(),o=it();t.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}}}),st=p({"../../node_modules/lodash/_isKey.js":function(e,t){var n=_e(),r=C(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(e,t){if(n(e))return!1;var a=typeof e;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=e&&!r(e))||(i.test(e)||!o.test(e)||null!=t&&e in Object(t))}}}),lt=p({"../../node_modules/lodash/memoize.js":function(e,t){var n=ue();function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var o=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return o.cache=new(r.Cache||n),o}r.Cache=n,t.exports=r}}),ct=p({"../../node_modules/lodash/_memoizeCapped.js":function(e,t){var n=lt();t.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}}}),ut=p({"../../node_modules/lodash/_stringToPath.js":function(e,t){var n=ct(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));t.exports=i}}),dt=p({"../../node_modules/lodash/_arrayMap.js":function(e,t){t.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}}}),ft=p({"../../node_modules/lodash/_baseToString.js":function(e,t){var n=w(),r=dt(),o=_e(),i=C(),a=n?n.prototype:void 0,s=a?a.toString:void 0;t.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(i(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}}}),pt=p({"../../node_modules/lodash/toString.js":function(e,t){var n=ft();t.exports=function(e){return null==e?"":n(e)}}}),ht=p({"../../node_modules/lodash/_castPath.js":function(e,t){var n=_e(),r=st(),o=ut(),i=pt();t.exports=function(e,t){return n(e)?e:r(e,t)?[e]:o(i(e))}}}),mt=p({"../../node_modules/lodash/_toKey.js":function(e,t){var n=C();t.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}}}),vt=p({"../../node_modules/lodash/_baseGet.js":function(e,t){var n=ht(),r=mt();t.exports=function(e,t){for(var o=0,i=(t=n(t,e)).length;null!=e&&o<i;)e=e[r(t[o++])];return o&&o==i?e:void 0}}}),gt=p({"../../node_modules/lodash/get.js":function(e,t){var n=vt();t.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}}}),yt=p({"../../node_modules/lodash/_baseHasIn.js":function(e,t){t.exports=function(e,t){return null!=e&&t in Object(e)}}}),bt=p({"../../node_modules/lodash/_hasPath.js":function(e,t){var n=ht(),r=Pe(),o=_e(),i=Me(),a=Ne(),s=mt();t.exports=function(e,t,l){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var f=s(t[c]);if(!(d=null!=e&&l(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&a(u)&&i(f,u)&&(o(e)||r(e))}}}),xt=p({"../../node_modules/lodash/hasIn.js":function(e,t){var n=yt(),r=bt();t.exports=function(e,t){return null!=e&&r(e,t,n)}}}),wt=p({"../../node_modules/lodash/_baseMatchesProperty.js":function(e,t){var n=tt(),r=gt(),o=xt(),i=st(),a=rt(),s=it(),l=mt();t.exports=function(e,t){return i(e)&&a(t)?s(l(e),t):function(i){var a=r(i,e);return void 0===a&&a===t?o(i,e):n(t,a,3)}}}}),kt=p({"../../node_modules/lodash/identity.js":function(e,t){t.exports=function(e){return e}}}),St=p({"../../node_modules/lodash/_baseProperty.js":function(e,t){t.exports=function(e){return function(t){return null===t||void 0===t?void 0:t[e]}}}}),_t=p({"../../node_modules/lodash/_basePropertyDeep.js":function(e,t){var n=vt();t.exports=function(e){return function(t){return n(t,e)}}}}),Et=p({"../../node_modules/lodash/property.js":function(e,t){var n=St(),r=_t(),o=st(),i=mt();t.exports=function(e){return o(e)?n(i(e)):r(e)}}}),Ct=p({"../../node_modules/lodash/_baseIteratee.js":function(e,t){var n=at(),r=wt(),o=kt(),i=_e(),a=Et();t.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?r(e[0],e[1]):n(e):a(e)}}}),Tt=p({"../../node_modules/lodash/toFinite.js":function(e,t){var n=T(),r=1/0;t.exports=function(e){return e?(e=n(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}}}),It=p({"../../node_modules/lodash/toInteger.js":function(e,t){var n=Tt();t.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}}}),Bt=p({"../../node_modules/lodash/findIndex.js":function(e,t){var n=B(),r=Ct(),o=It(),i=Math.max;t.exports=function(e,t,a){var s=null==e?0:e.length;if(!s)return-1;var l=null==a?0:o(a);return l<0&&(l=i(s+l,0)),n(e,r(t,3),l)}}}),Ot=h(I()),Pt={config:{attributes:!0,childList:!0,subtree:!0},debounceTime:0};function Rt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pt,o=(0,i.useState)(null),a=(0,r.Z)(o,2),s=a[0],l=a[1];(0,i.useEffect)((function(){if(t&&"function"==typeof t){var e=n.debounceTime&&"number"==typeof n.debounceTime&&n.debounceTime>0,r=new MutationObserver(e?(0,Ot.default)(t,n.debounceTime):t);l(r)}else console.warn("You must provide a valid callback function, instead you've provided ".concat(t))}),[t,n]),(0,i.useEffect)((function(){if(s){e||console.warn("You must provide a valid DOM element to observe, instead you've provided ".concat(e));var t=n.config;try{s.observe(e,t)}catch(r){console.error(r)}return function(){s&&s.disconnect()}}}),[s,e,n])}var At=h(I()),Mt=h(Bt());function Nt(){var e=(0,i.useState)({width:void 0,height:void 0,breakpointIndex:void 0}),t=(0,r.Z)(e,2),n=t[0],o=t[1],s=(0,a.Fg)().breakpoints.map((function(e){return Number.parseInt(e.replace(/\D+/g,""),10)}));return(0,i.useEffect)((function(){var e=function(e){var t=(0,Mt.default)(s,(function(t){return e<t}));return-1===t?s.length-1:t},t=(0,At.default)((function(){o({width:window.innerWidth,height:window.innerHeight,breakpointIndex:e(window.innerWidth)})}),50,{leading:!1,trailing:!0,maxWait:150});return window.addEventListener("resize",t),t(),function(){return window.removeEventListener("resize",t)}}),[]),n}function Dt(e,t){if(null!=e){if("function"==typeof e)return void e(t);try{e.current=t}catch(n){throw new Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}}}function Lt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){t&&Dt(t,e)}))}}),t)}},9685:function(e,t,n){"use strict";n.r(t),n.d(t,{VisualPickerCheckbox:function(){return _},VisualPickerCheckboxGroup:function(){return S},VisualPickerRadio:function(){return k},VisualPickerRadioGroup:function(){return w}});var r=n(885),o=n(1413),i=n(4925),a=n(463),s=n(2791),l=n(7549),c=n(1923),u=n(9987),d=n(9643),f=n(9628),p=n(3217),h=n(5234),m=["orientation","children","disabled","legend","onChange","name","errorText","value","element","i18nRequiredLabel"],v=["id","name","element","value","disabled","hasError","onChange","children","labelText"],g=["orientation","children","element","disabled","errorText","name","i18nRequiredLabel"],y=["checked","element","children","id","indeterminate","labelText","onChange"],b=s.createContext({groupIsDisabled:!1,name:"",groupHasError:!1,onChange:function(){},value:"",orientation:"vertical"}),x=s.createContext({groupIsDisabled:!1,name:"",groupHasError:!1,orientation:"vertical"}),w=s.forwardRef((function(e,t){var n=e.orientation,r=void 0===n?"vertical":n,l=e.children,c=e.disabled,u=void 0!==c&&c,d=e.legend,f=e.onChange,p=e.name,h=e.errorText,v=e.value,g=e.element,y=void 0===g?"VISUAL_PICKER_RADIO_GROUP":g,x=e.i18nRequiredLabel,w=void 0===x?"(required)":x,k=(0,i.Z)(e,m),S=s.useCallback((function(e){f(e.target.value)}),[f]),_=s.useMemo((function(){return{name:p,value:v||"",groupIsDisabled:u,groupHasError:null!=h,onChange:S,orientation:r}}),[p,v,u,h,S,r]);return s.createElement(b.Provider,{value:_},s.createElement(a.InlineControlGroup,(0,o.Z)((0,o.Z)({},k),{},{legend:d,ref:t,name:p,element:y,errorText:h,orientation:r,disabled:u,i18nRequiredLabel:w,fieldStyleProps:{marginTop:"horizontal"===r?"space40":"space30",marginRight:"horizontal"===r?"space30":void 0}}),l))}));w.displayName="VisualPickerRadioGroup";var k=s.forwardRef((function(e,t){var n=e.id,a=e.name,h=e.element,m=void 0===h?"VISUAL_PICKER_RADIO":h,g=e.value,y=e.disabled,x=e.hasError,w=e.onChange,k=e.children,S=e.labelText,_=(0,i.Z)(e,v),E=s.useState(!1),C=(0,r.Z)(E,2),T=C[0],I=C[1],B=s.useContext(b),O=(0,f.Dt)(),P=n||(0,f.Dt)(),R=(0,f.Dt)(),A=s.useCallback((function(e){null!=w?w(e):B.onChange(e)}),[w,B.onChange]),M={name:B.name||a||B.name,disabled:null!==y&&void 0!==y?y:B.groupIsDisabled,hasError:null!==x&&void 0!==x?x:B.groupHasError,checked:B.value===g},N=B.groupHasError,D=B.groupIsDisabled,L=s.useRef(void 0),j=(0,p.qq)(L,t),z="colorBorderWeak";return y||D?z="colorBorderWeak":M.checked?M.checked&&(z=x||N?"colorBorderError":"colorBorderPrimary"):!x&&!N||T?(x||N)&&T?z="colorBorderErrorStrong":T&&(z="colorBorderPrimary"):z="colorBorderError",s.createElement(c.Box,{element:m,position:"relative",display:"inline-flex",alignItems:"vertical"===B.orientation?"center":"flex-start",flexDirection:"row",height:"100%",width:"100%",backgroundColor:y||D?"colorBackground":void 0,borderStyle:"solid",borderColor:z,borderWidth:"borderWidth10",borderRadius:"borderRadius30",padding:"space50",onMouseEnter:function(){return I(!0)},onMouseLeave:function(){return I(!1)},onClick:function(e){var t,n;null!==(t=L.current)&&void 0!==t&&t.click(),null!==(n=L.current)&&void 0!==n&&n.focus(),e.stopPropagation()},_hover:{cursor:y||D?"not-allowed":"pointer"}},s.createElement(u.HiddenRadio,(0,o.Z)((0,o.Z)((0,o.Z)({},_),M),{},{value:g,"aria-describedby":O,"aria-invalid":M.hasError,"aria-labelledby":R,onChange:function(e){A(e)},id:P,ref:j})),s.createElement(l.BaseRadioCheckboxLabel,{disabled:M.disabled,htmlFor:P,id:R},s.createElement(d.ScreenReaderOnly,null,S),s.createElement(l.BaseRadioCheckboxControl,{onClick:function(e){return e.stopPropagation()},element:"".concat(m,"_CONTROL"),borderRadius:"borderRadiusCircle",disabled:M.disabled,type:"radio",applyHoverStyles:T,_checkedAndDisabledSibling:{color:"colorTextWeaker"}},s.createElement(c.Box,{as:"span",element:"".concat(m,"_CONTROL_CIRCLE"),lineHeight:"lineHeight0",display:M.checked?"block":"none",color:"inherit",size:"sizeIcon10"},s.createElement("svg",{role:"img","aria-hidden":!0,width:"100%",height:"100%",viewBox:"0 0 16 16",fill:"none"},s.createElement("circle",{fill:"currentColor",cx:8,cy:8,r:3}))))),s.createElement(c.Box,{element:"".concat(m,"_CONTENT"),id:O,paddingLeft:"space40",width:"100%"},k))}));k.displayName="VisualPickerRadio";var S=s.forwardRef((function(e,t){var n=e.orientation,r=void 0===n?"vertical":n,l=e.children,c=e.element,u=void 0===c?"VISUAL_PICKER_CHECKBOX_GROUP":c,d=e.disabled,f=void 0!==d&&d,p=e.errorText,h=e.name,m=e.i18nRequiredLabel,v=void 0===m?"(required)":m,y=(0,i.Z)(e,g),b=s.useMemo((function(){return{name:h,groupIsDisabled:f,groupHasError:null!=p,orientation:r}}),[h,f,p,r]);return s.createElement(x.Provider,{value:b},s.createElement(a.InlineControlGroup,(0,o.Z)((0,o.Z)({},y),{},{ref:t,name:h,element:u,errorText:p,disabled:f,orientation:r,i18nRequiredLabel:v,fieldStyleProps:{marginTop:"horizontal"===r?"space40":"space30",marginRight:"horizontal"===r?"space30":void 0}}),l))}));S.displayName="VisualPickerCheckboxGroup";var _=s.forwardRef((function(e,t){var n=e.checked,a=e.element,u=void 0===a?"VISUAL_PICKER_CHECKBOX":a,m=e.children,v=e.id,g=e.indeterminate,b=e.labelText,w=e.onChange,k=(0,i.Z)(e,y),S=s.useState(!1),_=(0,r.Z)(S,2),E=_[0],C=_[1],T=s.useContext(x),I=(0,f.Dt)(),B=(0,f.Dt)(),O=v||(0,f.Dt)(),P=null!=k.disabled?k.disabled:T.groupIsDisabled,R=T.name||k.name||T.name,A=null!=k.hasError?k.hasError:T.groupHasError,M=T.groupHasError,N=T.groupIsDisabled,D=s.useRef(void 0),L=(0,p.qq)(D,t),j="colorBorderWeak";return P||N?j="colorBorderWeak":A||M?j="colorBorderError":n&&(j="colorBorderPrimary"),s.createElement(c.Box,{element:u,position:"relative",display:"inline-flex",alignItems:"vertical"===T.orientation?"center":"flex-start",flexDirection:"row",height:"100%",width:"100%",backgroundColor:P||N?"colorBackground":void 0,borderStyle:"solid",borderColor:j,borderWidth:"borderWidth10",borderRadius:"borderRadius30",padding:"space50",onMouseEnter:function(){return C(!0)},onMouseLeave:function(){return C(!1)},onClick:function(e){var t,n;null!==(t=D.current)&&void 0!==t&&t.click(),null!==(n=D.current)&&void 0!==n&&n.focus(),e.stopPropagation()},_hover:P||N?{cursor:"not-allowed"}:{cursor:"pointer",borderColor:A||M?"colorBorderErrorStronger":"colorBorderPrimaryStrong"}},s.createElement(h.HiddenCheckbox,(0,o.Z)((0,o.Z)({},(0,c.safelySpreadBoxProps)(k)),{},{checked:n,disabled:P,name:R,onChange:function(e){w(e)},"aria-describedby":I,"aria-checked":g?"mixed":n,"aria-labelledby":B,"aria-invalid":A,id:O,ref:L})),s.createElement(l.BaseRadioCheckboxLabel,{disabled:P,htmlFor:O,id:B},s.createElement(d.ScreenReaderOnly,null,b),s.createElement(l.BaseRadioCheckboxControl,{onClick:function(e){return e.preventDefault()},borderRadius:"borderRadius20",element:"".concat(u,"_CONTROL"),disabled:P,position:"relative",type:"checkbox",applyHoverStyles:E},s.createElement(h.CheckboxIcon,{element:"".concat(u,"_ICON"),checked:n,indeterminate:g}))),s.createElement(c.Box,{element:"".concat(u,"_CONTENT"),id:I,paddingLeft:"space40",width:"100%"},m))}));_.displayName="VisualPickerCheckbox"},7996:function(e,t,n){"use strict";n(1583),n(4584),n(5084),n(8116),n(3858),n(7264),n(8894);var r=n(7156),o=n(9728),i=n(6115),a=n(1655),s=n(4993),l=n(3808),c=n(8416),u=n(6690);n(5202),n(7675),n(2583),n(974);var d=n(4687),f=n(8698);n(4778),n(9104),n(9147);var p=n(2895),h=n(2764);n(2463),n(8887),n(1740),n(447),n(4178);var m=n(1263);n(8225);var v=n(2839),g=n(2467);n(9258),n(4772),n(5625);var y=n(7424);n(5742);var b=n(8645),x=n(8868),w=n(6390),k=n(4774),S=n(6491),_=n(861);n(6669),n(4105),n(3966),n(5790),n(6678),n(4847),n(8884),n(7582),n(5669),n(14),n(8890),n(8850),n(697),n(3517),n(8591),n(4516),n(1937),n(5977),n(1283),n(6332),n(2040),n(718),n(4777),n(1447),n(4319),n(8493),n(4121),n(5269),n(5327),n(9238);var E=n(4610);function C(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function T(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var I=C(r),B=C(o),O=C(i),P=C(a),R=C(s),A=C(l),M=C(c),N=C(u),D=C(d),L=C(f),j=T(p),z=C(g),W=C(y),Z=C(_);function F(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":L.default(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function H(e,t){if("object"===("undefined"===typeof Reflect?"undefined":L.default(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function U(e,t){return["".concat((new Date).toISOString()," Conversations ").concat(e,":")].concat(Array.from(t))}var $=j.getLogger("twilio-conversations"),G=function(){function e(t){N.default(this,e),M.default(this,"prefix",""),this.prefix=null!==t&&void 0!==t&&t.length>0?t+" ":""}return B.default(e,[{key:"setLevel",value:function(e){$.setLevel(e)}},{key:"trace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.trace.apply(null,U(this.prefix+"T",t))}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.debug.apply(null,U(this.prefix+"D",t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.info.apply(null,U(this.prefix+"I",t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.warn.apply(null,U(this.prefix+"W",t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.error.apply(null,U(this.prefix+"E",t))}}],[{key:"scope",value:function(t){return new e(t)}},{key:"setLevel",value:function(e){$.setLevel(e)}},{key:"trace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.trace.apply(null,U("T",t))}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.debug.apply(null,U("D",t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.info.apply(null,U("I",t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.warn.apply(null,U("W",t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$.error.apply(null,U("E",t))}}]),e}();function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){M.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var V="PT5S",Y="PT5S",X=function e(){var t,n,r,o,i,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0;N.default(this,e),M.default(this,"typingIndicatorTimeoutDefault",5e3);var u=s.Chat||s.IPMessaging||s||{};this.productId=u.productId,this.links={myConversations:l.links.my_conversations,conversations:l.links.conversations,users:l.links.users,currentUser:l.links.current_user,typing:l.links.typing,mediaService:l.links.media_service,mediaSetService:l.links.media_set_service,messagesReceipts:l.links.messages_receipts},this.limits={mediaAttachmentsCountLimit:l.options.media_attachments_count_limit,mediaAttachmentSizeLimitInMb:l.options.media_attachment_size_limit_in_mb,mediaAttachmentsTotalSizeLimitInMb:l.options.media_attachments_total_size_limit_in_mb,emailHistoriesAllowedMimeTypes:l.options.email_histories_allowed_mime_types,emailBodiesAllowedMimeTypes:l.options.email_bodies_allowed_mime_types},this.typingIndicatorTimeoutOverride=u.typingIndicatorTimeoutOverride,this.backoffConfiguration=K({min:1e3,max:4e3,maxAttemptsCount:3},u.backoffConfigOverride),this.retryWhenThrottled=void 0===u.retryWhenThrottledOverride||u.retryWhenThrottledOverride,this.userInfosToSubscribe=null!==(t=null!==(n=u.userInfosToSubscribeOverride)&&void 0!==n?n:l.options.user_infos_to_subscribe)&&void 0!==t?t:100,this.reachabilityEnabled=l.options.reachability_enabled,this.userIdentity=l.identity,this.userInfo=l.sync_objects.my_user_info,this.myConversations=l.sync_objects.my_conversations;var d=null!==(r=null!==(o=u.httpCacheIntervalOverride)&&void 0!==o?o:l.options.http_cache_interval)&&void 0!==r?r:V;try{this.httpCacheInterval=h.toSeconds(h.parse(d))}catch(p){c.error("Failed to parse http cache interval ".concat(d,", using default value ").concat(V)),this.httpCacheInterval=h.toSeconds(h.parse(V))}var f=null!==(i=null!==(a=u.consumptionReportIntervalOverride)&&void 0!==a?a:l.options.consumption_report_interval)&&void 0!==i?i:Y;try{this.consumptionReportInterval=h.toSeconds(h.parse(f))}catch(m){c.error("Failed to parse consumption report interval ".concat(f,", using default value ").concat(Y)),this.consumptionReportInterval=h.toSeconds(h.parse(Y))}};function J(e){return JSON.parse(JSON.stringify(e))}function Q(e){return"undefined"===typeof e||isNaN(Number(e))?null:Number(e)}function ee(e){try{return new Date(e)}catch(t){return null}}function te(e,t,n){var r={};if(e)try{r=JSON.parse(e)}catch(o){n.warn(t,o)}return r}var ne=function(){function e(t){N.default(this,e),this.base=t.replace(/\/$/,""),this.args=[],this.paths=[]}return B.default(e,[{key:"arg",value:function(e,t){return"undefined"!==typeof t&&this.args.push(encodeURIComponent(e)+"="+encodeURIComponent(t)),this}},{key:"path",value:function(e){return this.paths.push(encodeURIComponent(e)),this}},{key:"build",value:function(){var e=this.base;return this.paths.length&&(e+="/"+this.paths.join("/")),this.args.length&&(e+="?"+this.args.join("&")),e}}]),e}(),re=m.custom((function(e){return[["string","number","boolean","object"].includes(L.default(e)),"a JSON type"]})),oe=m.custom((function(e){return[["undefined","string","number","boolean","object"].includes(L.default(e)),"an optional JSON type"]}));function ie(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}var ae=G.scope("User"),se=function(e){P.default(n,e);var t=ie(n);function n(e,r,o,i){var a;return N.default(this,n),a=t.call(this),M.default(O.default(a),"promiseToFetch",null),M.default(O.default(a),"updated","updated"),M.default(O.default(a),"userSubscribed","userSubscribed"),M.default(O.default(a),"userUnsubscribed","userUnsubscribed"),a.services=i,a.subscribed="initializing",a.setMaxListeners(0),a.state={identity:e,entityName:r,friendlyName:null,attributes:{},online:null,notifiable:null},a._initializationPromise=new Promise((function(e){a._resolveInitializationPromise=e})),null!==o&&a._resolveInitialization(o,e,r,!1),a}return B.default(n,[{key:"identity",get:function(){return this.state.identity},set:function(e){this.state.identity=e}},{key:"entityName",set:function(e){this.state.entityName=e}},{key:"attributes",get:function(){return this.state.attributes}},{key:"friendlyName",get:function(){return this.state.friendlyName}},{key:"isOnline",get:function(){return this.state.online}},{key:"isNotifiable",get:function(){return this.state.notifiable}},{key:"isSubscribed",get:function(){return"subscribed"==this.subscribed}},{key:"_update",value:function(){var e=I.default(D.default.mark((function e(t,n){var r,o;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._initializationPromise;case 2:r=[],ae.debug("User for",this.state.identity,"updated:",t,n),e.t0=t,e.next="friendlyName"===e.t0?7:"attributes"===e.t0?9:"reachability"===e.t0?12:15;break;case 7:return this.state.friendlyName!==n.value&&(r.push("friendlyName"),this.state.friendlyName=n.value),e.abrupt("break",16);case 9:return o=te(n.value,"Retrieved malformed attributes from the server for user: ".concat(this.state.identity),ae),z.default(this.state.attributes,o)||(this.state.attributes=o,r.push("attributes")),e.abrupt("break",16);case 12:return this.state.online!==n.online&&(this.state.online=n.online,r.push("reachabilityOnline")),this.state.notifiable!==n.notifiable&&(this.state.notifiable=n.notifiable,r.push("reachabilityNotifiable")),e.abrupt("break",16);case 15:return e.abrupt("return");case 16:r.length>0&&this.emit("updated",{user:this,updateReasons:r});case 17:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_updateReachabilityInfo",value:function(){var e=I.default(D.default.mark((function e(t,n){var r=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._initializationPromise;case 2:if(this.configuration.reachabilityEnabled){e.next=4;break}return e.abrupt("return",Promise.resolve());case 4:return e.abrupt("return",t.get("reachability").then(n).catch((function(e){ae.warn("Failed to get reachability info for ",r.state.identity,e)})));case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_fetch",value:function(){var e=I.default(D.default.mark((function e(){var t=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._initializationPromise;case 2:if(this.state.entityName){e.next=4;break}return e.abrupt("return",this);case 4:return this.promiseToFetch=this.services.syncClient.map({id:this.state.entityName,mode:"open_existing",includeItems:!0}).then((function(e){return t.entity=e,e.on("itemUpdated",(function(e){return ae.debug(t.state.entityName+" ("+t.state.identity+") itemUpdated: "+e.item.key),t._update(e.item.key,e.item.data)})),Promise.all([e.get("friendlyName").then((function(e){return t._update(e.key,e.data)})),e.get("attributes").then((function(e){return t._update(e.key,e.data)})),t._updateReachabilityInfo(e,(function(e){return t._update(e.key,e.data)}))])})).then((function(){return ae.debug("Fetched for",t.identity),t.subscribed="subscribed",t.emit("userSubscribed",t),t})).catch((function(e){throw t.promiseToFetch=null,e})),e.abrupt("return",this.promiseToFetch);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_ensureFetched",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._initializationPromise;case 2:return e.abrupt("return",this.promiseToFetch||this._fetch());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateAttributes",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._initializationPromise;case 2:if("unsubscribed"!=this.subscribed){e.next=4;break}throw new Error("Can't modify unsubscribed object");case 4:return e.next=6,this.services.commandExecutor.mutateResource("post",this.links.self,{attributes:JSON.stringify(t)});case 6:return e.abrupt("return",this);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateFriendlyName",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._initializationPromise;case 2:if("unsubscribed"!=this.subscribed){e.next=4;break}throw new Error("Can't modify unsubscribed object");case 4:return e.next=6,this.services.commandExecutor.mutateResource("post",this.links.self,{friendly_name:t});case 6:return e.abrupt("return",this);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"unsubscribe",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._initializationPromise;case 2:if(!this.promiseToFetch){e.next=9;break}return e.next=5,this.promiseToFetch;case 5:this.entity.close(),this.promiseToFetch=null,this.subscribed="unsubscribed",this.emit("userUnsubscribed",this);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_resolveInitialization",value:function(e,t,n,r){this.configuration=e,this.identity=t,this.entityName=n,this.links={self:"".concat(this.configuration.links.users,"/").concat(this.identity)},this._resolveInitializationPromise(),r&&this.emit("updated",{user:this,updateReasons:["friendlyName","attributes","reachabilityOnline","reachabilityNotifiable"]})}}]),n}(v.ReplayEventEmitter);function le(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}F([m.validateTypesAsync(re),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Promise)],se.prototype,"updateAttributes",null),F([m.validateTypesAsync(["string"]),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],se.prototype,"updateFriendlyName",null);var ue=function(){function e(t,n){N.default(this,e),this.configuration=t,this.services=n,this.cache=new Map,this.cacheLifetime=100*this.configuration.httpCacheInterval,this.cleanupCache()}return B.default(e,[{key:"isExpired",value:function(e){return!this.cacheLifetime||Date.now()-e>this.cacheLifetime}},{key:"cleanupCache",value:function(){var e,t=le(this.cache);try{for(t.s();!(e=t.n()).done;){var n=W.default(e.value,2),r=n[0],o=n[1];this.isExpired(o.timestamp)&&this.cache.delete(r)}}catch(i){t.e(i)}finally{t.f()}0===this.cache.size&&clearInterval(this.timer)}},{key:"pokeTimer",value:function(){var e=this;this.timer=this.timer||setInterval((function(){return e.cleanupCache()}),2*this.cacheLifetime)}},{key:"executeWithRetry",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r,o){var i=[502,503,504];n&&i.push(429);var a=new b.Retrier(t.configuration.backoffConfiguration);a.on("attempt",(function(){e().then((function(e){return a.succeeded(e)})).catch((function(e){i.indexOf(e.status)>-1||"Twilsock disconnected"===e.message?a.failed(e):(a.removeAllListeners(),a.cancel(),o(e))}))})),a.on("succeeded",(function(e){r(e)})),a.on("cancelled",(function(e){return o(e)})),a.on("failed",(function(e){return o(e)})),a.start()}))}},{key:"get",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o,i=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.cache.get(t))||this.isExpired(n.timestamp)){e.next=3;break}return e.abrupt("return",n.response);case 3:return r={},e.next=6,this.executeWithRetry((function(){return i.services.transport.get(t,r,i.configuration.productId)}),this.configuration.retryWhenThrottled);case 6:return o=e.sent,this.cache.set(t,{response:o,timestamp:Date.now()}),this.pokeTimer(),e.abrupt("return",o);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),de=function e(){N.default(this,e)};function fe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}M.default(de,"TYPING_INDICATOR","twilio.ipmsg.typing_indicator"),M.default(de,"NEW_MESSAGE","twilio.conversations.new_message"),M.default(de,"ADDED_TO_CONVERSATION","twilio.conversations.added_to_conversation"),M.default(de,"REMOVED_FROM_CONVERSATION","twilio.conversations.removed_from_conversation"),M.default(de,"CONSUMPTION_UPDATE","twilio.channel.consumption_update");var pe=G.scope("Participant"),he=function(e){P.default(n,e);var t=fe(n);function n(e,r,o,i,a){var s,l;if(N.default(this,n),(l=t.call(this)).conversation=o,l.links=i,l.services=a,l.state={attributes:te(e.attributes,"Retrieved malformed attributes from the server for participant: "+r,pe),dateCreated:e.dateCreated?ee(e.dateCreated):null,dateUpdated:e.dateCreated?ee(e.dateUpdated):null,sid:r,typingTimeout:null,isTyping:!1,identity:e.identity||null,roleSid:e.roleSid||null,lastReadMessageIndex:Number.isInteger(e.lastConsumedMessageIndex)?e.lastConsumedMessageIndex:null,lastReadTimestamp:e.lastConsumptionTimestamp?ee(e.lastConsumptionTimestamp):null,type:e.type||"chat",userInfo:e.userInfo,bindings:null!==(s=e.bindings)&&void 0!==s?s:{}},!e.identity&&!e.type)throw new Error("Received invalid Participant object from server: Missing identity or type of Participant.");return l}return B.default(n,[{key:"sid",get:function(){return this.state.sid}},{key:"attributes",get:function(){return this.state.attributes}},{key:"dateCreated",get:function(){return this.state.dateCreated}},{key:"dateUpdated",get:function(){return this.state.dateUpdated}},{key:"identity",get:function(){return this.state.identity}},{key:"isTyping",get:function(){return this.state.isTyping}},{key:"lastReadMessageIndex",get:function(){return this.state.lastReadMessageIndex}},{key:"lastReadTimestamp",get:function(){return this.state.lastReadTimestamp}},{key:"roleSid",get:function(){return this.state.roleSid}},{key:"type",get:function(){return this.state.type}},{key:"bindings",get:function(){return this.state.bindings}},{key:"_startTyping",value:function(e){var t=this;return clearTimeout(this.state.typingTimeout),this.state.isTyping=!0,this.emit("typingStarted",this),this.conversation.emit("typingStarted",this),this.state.typingTimeout=setTimeout((function(){return t._endTyping()}),e),this}},{key:"_endTyping",value:function(){this.state.typingTimeout&&(this.state.isTyping=!1,this.emit("typingEnded",this),this.conversation.emit("typingEnded",this),clearInterval(this.state.typingTimeout),this.state.typingTimeout=null)}},{key:"_update",value:function(e){var t=[],n=te(e.attributes,"Retrieved malformed attributes from the server for participant: "+this.state.sid,pe);e.attributes&&!z.default(this.state.attributes,n)&&(this.state.attributes=n,t.push("attributes"));var r=ee(e.dateUpdated);e.dateUpdated&&r.getTime()!==(this.state.dateUpdated&&this.state.dateUpdated.getTime())&&(this.state.dateUpdated=r,t.push("dateUpdated"));var o=ee(e.dateCreated);if(e.dateCreated&&o.getTime()!==(this.state.dateCreated&&this.state.dateCreated.getTime())&&(this.state.dateCreated=o,t.push("dateCreated")),e.roleSid&&this.state.roleSid!==e.roleSid&&(this.state.roleSid=e.roleSid,t.push("roleSid")),!Number.isInteger(e.lastConsumedMessageIndex)&&null!==e.lastConsumedMessageIndex||this.state.lastReadMessageIndex===e.lastConsumedMessageIndex||(this.state.lastReadMessageIndex=e.lastConsumedMessageIndex,t.push("lastReadMessageIndex")),e.lastConsumptionTimestamp){var i=new Date(e.lastConsumptionTimestamp);this.state.lastReadTimestamp&&this.state.lastReadTimestamp.getTime()===i.getTime()||(this.state.lastReadTimestamp=i,t.push("lastReadTimestamp"))}return e.bindings&&!z.default(this.state.bindings,e.bindings)&&(this.state.bindings=e.bindings,t.push("bindings")),t.length>0&&this.emit("updated",{participant:this,updateReasons:t}),this}},{key:"getUser",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("chat"==this.type){e.next=2;break}throw new Error("Getting User is not supported for this Participant type: "+this.type);case 2:return e.abrupt("return",this.services.users.getUser(this.state.identity,this.state.userInfo));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"remove",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.conversation.removeParticipant(this));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateAttributes",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("post",this.links.self,{attributes:JSON.stringify(t)});case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(v.ReplayEventEmitter);function me(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}M.default(he,"typingStarted","typingStarted"),M.default(he,"typingEnded","typingEnded"),M.default(he,"updated","updated"),F([m.validateTypesAsync(re),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Promise)],he.prototype,"updateAttributes",null);var ve=G.scope("Participants"),ge=function(e){P.default(n,e);var t=me(n);function n(e,r,o,i,a){var s;return N.default(this,n),(s=t.call(this)).conversation=e,s.participants=r,s.links=o,s.configuration=i,s.services=a,s}return B.default(n,[{key:"unsubscribe",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.rosterEntityPromise){e.next=6;break}return e.next=3,this.rosterEntityPromise;case 3:e.sent.close(),this.rosterEntityPromise=null;case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"subscribe",value:function(e){var t=this;return this.rosterEntityPromise=this.rosterEntityPromise||this.services.syncClient.map({id:e,mode:"open_existing"}).then((function(e){e.on("itemAdded",(function(e){ve.debug(t.conversation.sid+" itemAdded: "+e.item.key),t.upsertParticipant(e.item.key,e.item.data).then((function(e){t.emit("participantJoined",e)}))})),e.on("itemRemoved",(function(e){ve.debug(t.conversation.sid+" itemRemoved: "+e.key);var n=e.key;if(t.participants.has(n)){var r=t.participants.get(n);t.participants.delete(n),t.emit("participantLeft",r)}})),e.on("itemUpdated",(function(e){ve.debug(t.conversation.sid+" itemUpdated: "+e.item.key),t.upsertParticipant(e.item.key,e.item.data)}));var n=[],r=t;return e.getItems().then((function e(t){return t.items.forEach((function(e){n.push(r.upsertParticipant(e.key,e.data))})),t.hasNextPage?t.nextPage().then(e):null})).then((function(){return Promise.all(n)})).then((function(){return e}))})).catch((function(e){throw t.rosterEntityPromise=null,"disconnected"!=t.services.syncClient.connectionState&&ve.error("Failed to get roster object for conversation",t.conversation.sid,e),ve.debug("ERROR: Failed to get roster object for conversation",t.conversation.sid,e),e}))}},{key:"upsertParticipant",value:function(){var e=I.default(D.default.mark((function e(t,n){var r,o,i=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this.participants.get(t))){e.next=3;break}return e.abrupt("return",r._update(n));case 3:return o={self:"".concat(this.links.participants,"/").concat(t)},r=new he(n,t,this.conversation,o,this.services),this.participants.set(t,r),r.on("updated",(function(e){return i.emit("participantUpdated",e)})),e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getParticipants",value:function(){var e=I.default(D.default.mark((function e(){var t=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.rosterEntityPromise.then((function(){var e=[];return t.participants.forEach((function(t){return e.push(t)})),e})));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getParticipantBySid",value:function(){var e=I.default(D.default.mark((function e(t){var n=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.rosterEntityPromise.then((function(){var e=n.participants.get(t);if(!e)throw new Error("Participant with SID "+t+" was not found");return e})));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getParticipantByIdentity",value:function(){var e=I.default(D.default.mark((function e(t){var n,r=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.abrupt("return",this.rosterEntityPromise.then((function(){if(r.participants.forEach((function(e){e.identity===t&&(n=e)})),!n)throw new Error("Participant with identity "+t+" was not found");return n})));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"add",value:function(){var e=I.default(D.default.mark((function e(t,n){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("post",this.links.participants,{identity:t,attributes:"undefined"!==typeof n?JSON.stringify(n):void 0});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"addNonChatParticipant",value:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.services.commandExecutor.mutateResource("post",this.links.participants,{attributes:"undefined"!==typeof o?JSON.stringify(o):void 0,messaging_binding:{address:t,proxy_address:e,name:null===i||void 0===i||null===(n=i.email)||void 0===n?void 0:n.name,level:null===i||void 0===i||null===(r=i.email)||void 0===r?void 0:r.level}})}},{key:"remove",value:function(e){return this.services.commandExecutor.mutateResource("delete","".concat(this.links.participants,"/").concat(e))}}]),n}(v.ReplayEventEmitter),ye=function(){function e(t,n){N.default(this,e),M.default(this,"mcsMedia",null),this.services=n,t instanceof S.McsMedia&&(this.mcsMedia=t),this.state={sid:t.sid,category:t.category,filename:t.filename,contentType:t.contentType,size:t.size}}return B.default(e,[{key:"sid",get:function(){return this.state.sid}},{key:"filename",get:function(){return this.state.filename}},{key:"contentType",get:function(){return this.state.contentType}},{key:"size",get:function(){return this.state.size}},{key:"category",get:function(){return this.state.category}},{key:"getContentTemporaryUrl",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchMcsMedia();case 2:return e.abrupt("return",this.mcsMedia.getContentUrl());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getCachedTemporaryUrl",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchMcsMedia();case 2:return e.abrupt("return",this.mcsMedia.getCachedContentUrl());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_fetchMcsMedia",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mcsMedia){e.next=8;break}if(!this.services.mcsClient){e.next=7;break}return e.next=4,this.services.mcsClient.get(this.state.sid);case 4:this.mcsMedia=e.sent,e.next=8;break;case 7:throw new Error("Media Content Service is unavailable");case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),be=function(){function e(t){N.default(this,e),this.state=t}return B.default(e,[{key:"total",get:function(){return this.state.total}},{key:"sent",get:function(){return this.state.sent}},{key:"delivered",get:function(){return this.state.delivered}},{key:"read",get:function(){return this.state.read}},{key:"undelivered",get:function(){return this.state.undelivered}},{key:"failed",get:function(){return this.state.failed}},{key:"_update",value:function(e){this.state=e}},{key:"_isEquals",value:function(e){var t=this.total===e.total,n=this.sent===e.sent,r=this.delivered===e.delivered,o=this.read===e.read,i=this.undelivered===e.undelivered,a=this.failed===e.failed;return t&&n&&r&&o&&i&&a}}]),e}(),xe=function(){function e(t,n,r,o){N.default(this,e),this.state={prevToken:r,nextToken:o,source:n,items:t}}return B.default(e,[{key:"hasNextPage",get:function(){return!!this.state.nextToken}},{key:"hasPrevPage",get:function(){return!!this.state.prevToken}},{key:"items",get:function(){return this.state.items}},{key:"nextPage",value:function(){return this.hasNextPage?this.state.source(this.state.nextToken):Promise.reject(new Error("No next page"))}},{key:"prevPage",value:function(){return this.hasPrevPage?this.state.source(this.state.prevToken):Promise.reject(new Error("No previous page"))}}]),e}(),we=function e(t){N.default(this,e),this.sid=t.sid,this.messageSid=t.message_sid,this.conversationSid=t.conversation_sid,this.channelMessageSid=t.channel_message_sid,this.participantSid=t.participant_sid,this.status=t.status||"queued",this.errorCode=t.error_code||0,this.dateCreated=t.date_created,this.dateUpdated=t.date_updated};function ke(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}var Se=G.scope("Message"),_e=function(e){P.default(n,e);var t=ke(n);function n(e,r,o,i,a,s){var l,c,u,d,f,p;return N.default(this,n),(p=t.call(this)).conversation=o,p.links=i,p.configuration=a,p.services=s,p.state={sid:r.sid,index:e,author:null!==(l=r.author)&&void 0!==l?l:null,subject:null!==(c=r.subject)&&void 0!==c?c:null,body:r.text,timestamp:r.timestamp?new Date(r.timestamp):null,dateUpdated:r.dateUpdated?new Date(r.dateUpdated):null,lastUpdatedBy:null!==(u=r.lastUpdatedBy)&&void 0!==u?u:null,attributes:te(r.attributes,"Got malformed attributes for the message ".concat(r.sid),Se),type:null!==(d=r.type)&&void 0!==d?d:"text",media:r.type&&"media"===r.type&&r.media?new ye(r.media,p.services):null,medias:r.type&&"media"===r.type&&r.medias?r.medias.map((function(e){return new ye(e,p.services)})):null,participantSid:null!==(f=r.memberSid)&&void 0!==f?f:null,aggregatedDeliveryReceipt:r.delivery?new be(r.delivery):null},p}return B.default(n,[{key:"sid",get:function(){return this.state.sid}},{key:"author",get:function(){return this.state.author}},{key:"subject",get:function(){return this.state.subject}},{key:"body",get:function(){return this.state.body}},{key:"dateUpdated",get:function(){return this.state.dateUpdated}},{key:"index",get:function(){return this.state.index}},{key:"lastUpdatedBy",get:function(){return this.state.lastUpdatedBy}},{key:"dateCreated",get:function(){return this.state.timestamp}},{key:"attributes",get:function(){return this.state.attributes}},{key:"type",get:function(){return this.state.type}},{key:"media",get:function(){return this.state.media}},{key:"attachedMedia",get:function(){return this.getMediaByCategory(["media"])}},{key:"participantSid",get:function(){return this.state.participantSid}},{key:"aggregatedDeliveryReceipt",get:function(){return this.state.aggregatedDeliveryReceipt}},{key:"getMediaByCategory",value:function(e){var t;return null===(t=this.state.medias)||void 0===t?void 0:t.filter((function(t){return e.includes(t.category)}))}},{key:"getEmailBody",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"text/plain";return null!==(e=null===(t=this.getMediaByCategory(["body"]))||void 0===t?void 0:t.filter((function(e){return e.contentType==n})).shift())&&void 0!==e?e:null}},{key:"getEmailHistory",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"text/plain";return null!==(e=null===(t=this.getMediaByCategory(["history"]))||void 0===t?void 0:t.filter((function(e){return e.contentType==n})).shift())&&void 0!==e?e:null}},{key:"_update",value:function(e){var t=[];!e.text&&"string"!==typeof e.text||e.text===this.state.body||(this.state.body=e.text,t.push("body")),e.subject&&e.subject!==this.state.subject&&(this.state.subject=e.subject,t.push("subject")),e.lastUpdatedBy&&e.lastUpdatedBy!==this.state.lastUpdatedBy&&(this.state.lastUpdatedBy=e.lastUpdatedBy,t.push("lastUpdatedBy")),e.author&&e.author!==this.state.author&&(this.state.author=e.author,t.push("author")),e.dateUpdated&&new Date(e.dateUpdated).getTime()!==(this.state.dateUpdated&&this.state.dateUpdated.getTime())&&(this.state.dateUpdated=new Date(e.dateUpdated),t.push("dateUpdated")),e.timestamp&&new Date(e.timestamp).getTime()!==(this.state.timestamp&&this.state.timestamp.getTime())&&(this.state.timestamp=new Date(e.timestamp),t.push("dateCreated"));var n=te(e.attributes,"Got malformed attributes for the message ".concat(this.sid),Se);z.default(this.state.attributes,n)||(this.state.attributes=n,t.push("attributes"));var r=e.delivery,o=this.state.aggregatedDeliveryReceipt;!!r&&!!r.total&&!!r.delivered&&!!r.failed&&!!r.read&&!!r.sent&&!!r.undelivered&&(o?o._isEquals(r)||(o._update(r),t.push("deliveryReceipt")):(this.state.aggregatedDeliveryReceipt=new be(r),t.push("deliveryReceipt"))),t.length>0&&this.emit("updated",{message:this,updateReasons:t})}},{key:"getParticipant",value:function(){var e=I.default(D.default.mark((function e(){var t,n,r=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=null,!this.state.participantSid){e.next=5;break}return e.next=4,this.conversation.getParticipantBySid(this.participantSid).catch((function(){return Se.debug('Participant with sid "'.concat(r.participantSid,'" not found for message ').concat(r.sid)),null}));case 4:t=e.sent;case 5:if(t||!this.state.author){e.next=9;break}return e.next=8,this.conversation.getParticipantByIdentity(this.state.author).catch((function(){return Se.debug('Participant with identity "'.concat(r.author,'" not found for message ').concat(r.sid)),null}));case 8:t=e.sent;case 9:if(!t){e.next=11;break}return e.abrupt("return",t);case 11:throw n="Participant with ",this.state.participantSid&&(n+="SID '"+this.state.participantSid+"' "),this.state.author&&(this.state.participantSid&&(n+="or "),n+="identity '"+this.state.author+"' "),"Participant with "===n&&(n="Participant "),n+="was not found",new Error(n);case 17:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getDetailedDeliveryReceipts",value:function(){var e=I.default(D.default.mark((function e(){var t,n;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getDetailedDeliveryReceiptsPaginator();case 2:t=e.sent,n=[];case 4:if(n=[].concat(Z.default(n),Z.default(t.items)),t.hasNextPage){e.next=8;break}return e.abrupt("break",13);case 8:return e.next=10,t.nextPage();case 10:t=e.sent,e.next=4;break;case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"remove",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("delete",this.links.self);case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateBody",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("post",this.links.self,{body:t});case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateAttributes",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("post",this.links.self,{attributes:"undefined"!==typeof t?JSON.stringify(t):void 0});case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"attachTemporaryUrlsFor",value:function(){var e=I.default(D.default.mark((function e(t){var n,r=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.map((function(e){return e.sid})),!this.services.mcsClient){e.next=7;break}return e.next=4,this.services.mcsClient.mediaSetGet(n);case 4:return e.abrupt("return",e.sent.map((function(e){return new ye(e,r.services)})));case 7:throw new Error("Media Content Service is unavailable");case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getDetailedDeliveryReceiptsPaginator",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o,i=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.configuration.links.messagesReceipts.replace("%s",this.conversation.sid).replace("%s",this.sid),r=new ne(n).arg("PageToken",null===t||void 0===t?void 0:t.pageToken).arg("PageSize",null===t||void 0===t?void 0:t.pageSize).build(),e.next=4,this.services.network.get(r);case 4:return o=e.sent,e.abrupt("return",new xe(o.body.delivery_receipts.map((function(e){return new we(e)})),(function(e,t){return i._getDetailedDeliveryReceiptsPaginator({pageToken:e,pageSize:t})}),o.body.meta.previous_token,o.body.meta.next_token));case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(v.ReplayEventEmitter);function Ee(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ce(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Te(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}M.default(_e,"updated","updated"),F([m.validateTypes(m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",ye)],_e.prototype,"getEmailBody",null),F([m.validateTypes(m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",ye)],_e.prototype,"getEmailHistory",null),F([m.validateTypesAsync("string"),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],_e.prototype,"updateBody",null),F([m.validateTypesAsync(re),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Promise)],_e.prototype,"updateAttributes",null),F([m.validateTypesAsync(m.custom((function(e){return[e instanceof Array&&e.length>0&&e.reduce((function(e,t){return e&&t instanceof ye}),!0),"a non-empty array of Media"]}))),H("design:type",Function),H("design:paramtypes",[Array]),H("design:returntype",Promise)],_e.prototype,"attachTemporaryUrlsFor",null);var Ie=G.scope("Messages"),Be=function(e){P.default(n,e);var t=Te(n);function n(e,r,o){var i;return N.default(this,n),(i=t.call(this)).conversation=e,i.configuration=r,i.services=o,i.messagesByIndex=new Map,i.messagesListPromise=null,i}return B.default(n,[{key:"subscribe",value:function(){var e=I.default(D.default.mark((function e(t){var n,r=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.messagesListPromise){e.next=2;break}return e.abrupt("return",this.messagesListPromise);case 2:return this.messagesListPromise=this.services.syncClient.list({id:t,mode:"open_existing"}),e.prev=3,e.next=6,this.messagesListPromise;case 6:return(n=e.sent).on("itemAdded",(function(e){Ie.debug("".concat(r.conversation.sid," itemAdded: ").concat(e.item.index));var t={self:"".concat(r.conversation.links.messages,"/").concat(e.item.data.sid),conversation:r.conversation.links.self,messages_receipts:"".concat(r.conversation.links.messages,"/").concat(e.item.data.sid,"/Receipts")},n=new _e(e.item.index,e.item.data,r.conversation,t,r.configuration,r.services);r.messagesByIndex.has(n.index)?Ie.debug("Message arrived, but is already known and ignored",r.conversation.sid,n.index):(r.messagesByIndex.set(n.index,n),n.on("updated",(function(e){return r.emit("messageUpdated",e)})),r.emit("messageAdded",n))})),n.on("itemRemoved",(function(e){Ie.debug("#{this.conversation.sid} itemRemoved: ".concat(e.index));var t=e.index;if(r.messagesByIndex.has(t)){var n=r.messagesByIndex.get(t);r.messagesByIndex.delete(n.index),n.removeAllListeners("updated"),r.emit("messageRemoved",n)}})),n.on("itemUpdated",(function(e){Ie.debug("".concat(r.conversation.sid," itemUpdated: ").concat(e.item.index));var t=r.messagesByIndex.get(e.item.index);t&&t._update(e.item.data)})),e.abrupt("return",n);case 13:throw e.prev=13,e.t0=e.catch(3),this.messagesListPromise=null,"disconnected"!==this.services.syncClient.connectionState&&Ie.error("Failed to get messages object for conversation",this.conversation.sid,e.t0),Ie.debug("ERROR: Failed to get messages object for conversation",this.conversation.sid,e.t0),e.t0;case 19:case"end":return e.stop()}}),e,this,[[3,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"unsubscribe",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.messagesListPromise){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.messagesListPromise;case 4:e.sent.close(),this.messagesListPromise=null;case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"sendV2",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o,i,a,s,l;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ie.debug("Sending message V2",t.mediaContent,t.attributes,t.emailOptions),r=[],o=Ee(t.mediaContent),e.prev=3,o.s();case 5:if((i=o.n()).done){e.next=22;break}if(a=W.default(i.value,2),s=a[0],l=a[1],Ie.debug("Adding media to a message as ".concat(l instanceof FormData?"FormData":"SendMediaOptions"),l),e.t0=r,!(l instanceof FormData)){e.next=15;break}return e.next=12,this.services.mcsClient.postFormData(l,s);case 12:e.t1=e.sent,e.next=18;break;case 15:return e.next=17,this.services.mcsClient.post(l.contentType,l.media,s,l.filename);case 17:e.t1=e.sent;case 18:e.t2=e.t1,e.t0.push.call(e.t0,e.t2);case 20:e.next=5;break;case 22:e.next=27;break;case 24:e.prev=24,e.t3=e.catch(3),o.e(e.t3);case 27:return e.prev=27,o.f(),e.finish(27);case 30:return e.next=32,this.services.commandExecutor.mutateResource("post",this.conversation.links.messages,{body:t.text,subject:null===(n=t.emailOptions)||void 0===n?void 0:n.subject,media_sids:r.map((function(e){return e.sid})),attributes:"undefined"!==typeof t.attributes?JSON.stringify(t.attributes):void 0});case 32:return e.abrupt("return",e.sent);case 33:case"end":return e.stop()}}),e,this,[[3,24,27,30]])})));return function(t){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o=arguments;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},r=o.length>2?o[2]:void 0,Ie.debug("Sending text message",t,n,r),e.next=5,this.services.commandExecutor.mutateResource("post",this.conversation.links.messages,{body:null!==t&&void 0!==t?t:"",attributes:"undefined"!==typeof n?JSON.stringify(n):void 0,subject:null===r||void 0===r?void 0:r.subject});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sendMedia",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o,i=arguments;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]?i[1]:{},r=i.length>2?i[2]:void 0,Ie.debug("Sending media message",t,n,r),Ie.debug("Sending media message as ".concat(t instanceof FormData?"FormData":"SendMediaOptions"),t,n),!(t instanceof FormData)){e.next=10;break}return e.next=7,this.services.mcsClient.postFormData(t);case 7:e.t0=e.sent,e.next=13;break;case 10:return e.next=12,this.services.mcsClient.post(t.contentType,t.media,"media",t.filename);case 12:e.t0=e.sent;case 13:return o=e.t0,e.next=16,this.services.commandExecutor.mutateResource("post",this.conversation.links.messages,{media_sids:[o.sid],attributes:"undefined"!==typeof n?JSON.stringify(n):void 0});case 16:return e.abrupt("return",e.sent);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getMessages",value:function(){var e=I.default(D.default.mark((function e(t,n){var r,o=arguments;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:"backwards",e.abrupt("return",this._getMessages(t,n,r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_wrapPaginator",value:function(e,t,n){var r=this,o="desc"===e,i=function(){return t.nextPage().then((function(t){return r._wrapPaginator(e,t,n)}))},a=function(){return t.prevPage().then((function(t){return r._wrapPaginator(e,t,n)}))};return n(t.items).then((function(e){return{items:e.sort((function(e,t){return e.index-t.index})),hasPrevPage:o?t.hasNextPage:t.hasPrevPage,hasNextPage:o?t.hasPrevPage:t.hasNextPage,prevPage:o?i:a,nextPage:o?a:i}}))}},{key:"_upsertMessage",value:function(e,t){var n=this,r=this.messagesByIndex.get(e);if(r)return r;var o={self:"".concat(this.conversation.links.messages,"/").concat(t.sid),conversation:this.conversation.links.self,messages_receipts:"".concat(this.conversation.links.messages,"/").concat(t.sid,"/Receipts")},i=new _e(e,t,this.conversation,o,this.configuration,this.services);return this.messagesByIndex.set(i.index,i),i.on("updated",(function(e){return n.emit("messageUpdated",e)})),i}},{key:"_getMessages",value:function(){var e=I.default(D.default.mark((function e(){var t,n,r,o,i,a,s=this,l=arguments;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.length>0&&void 0!==l[0]?l[0]:30,n=l.length>1&&void 0!==l[1]?l[1]:"end",r=l.length>2&&void 0!==l[2]?l[2]:"forward",o="backwards"===r?"desc":"asc",e.next=6,this.messagesListPromise;case 6:return i=e.sent,e.next=9,i.getItems({from:"end"!==n?n:void 0,pageSize:t,order:o,limit:t});case 9:return a=e.sent,e.next=12,this._wrapPaginator(o,a,(function(e){return Promise.all(e.map((function(e){return s._upsertMessage(e.index,e.data)})))}));case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),n}(v.ReplayEventEmitter),Oe=function(){function e(t){N.default(this,e),M.default(this,"attributes",{}),M.default(this,"mediaContent",[]),M.default(this,"emailOptions",{}),this.messagesEntity=t}return B.default(e,[{key:"send",value:function(){var e=I.default(D.default.mark((function e(){var t;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.messagesEntity.sendV2(this);case 2:return t=e.sent,e.abrupt("return",Q(t.index));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Pe=function(){function e(t,n){N.default(this,e),this.limits=t,this.message=new Oe(n),this.emailBodies=new Map,this.emailHistories=new Map}return B.default(e,[{key:"setBody",value:function(e){return this.message.text=e,this}},{key:"setSubject",value:function(e){return this.message.emailOptions.subject=e,this}},{key:"setAttributes",value:function(e){return this.message.attributes=e,this}},{key:"setEmailBody",value:function(e,t){return this.emailBodies.set(e,t),this}},{key:"setEmailHistory",value:function(e,t){return this.emailHistories.set(e,t),this}},{key:"addMedia",value:function(e){if("undefined"===typeof FormData&&e instanceof FormData)throw new Error("Could not add FormData content whilst not in a browser");if(!(e instanceof FormData)){var t=e;if(!t.contentType||!t.media)throw new Error("Media content in SendMediaOptions must contain non-empty contentType and media")}return this.message.mediaContent.push(["media",e]),this}},{key:"build",value:function(){var e=this;if(this.emailBodies.forEach((function(t,n){if(!e.limits.emailBodiesAllowedMimeTypes.includes(n))throw new Error("Unsupported email body MIME type ".concat(n))})),this.emailHistories.forEach((function(t,n){if(!e.limits.emailHistoriesAllowedMimeTypes.includes(n))throw new Error("Unsupported email history MIME type ".concat(n))})),this.emailBodies.size>this.limits.emailBodiesAllowedMimeTypes.length)throw new Error("Too many email bodies attached to the message (".concat(this.emailBodies.size," > ").concat(this.limits.emailBodiesAllowedMimeTypes.length,")"));if(this.emailHistories.size>this.limits.emailHistoriesAllowedMimeTypes.length)throw new Error("Too many email histories attached to the message (".concat(this.emailHistories.size," > ").concat(this.limits.emailHistoriesAllowedMimeTypes.length,")"));if(this.message.mediaContent.length>this.limits.mediaAttachmentsCountLimit)throw new Error("Too many media attachments in the message (".concat(this.message.mediaContent.length," > ").concat(this.limits.mediaAttachmentsCountLimit,")"));return this.emailBodies.forEach((function(t){e.message.mediaContent.push(["body",t])})),this.emailHistories.forEach((function(t){e.message.mediaContent.push(["history",t])})),this.message}},{key:"getPayloadContentType",value:function(e){return"undefined"!==typeof FormData&&e instanceof FormData?e.get("Content-Type"):e.contentType}}]),e}();function Re(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Ae(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ae(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Me(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}var Ne=G.scope("Conversation"),De={lastMessage:"lastMessage",attributes:"attributes",createdBy:"createdBy",dateCreated:"dateCreated",dateUpdated:"dateUpdated",friendlyName:"friendlyName",lastConsumedMessageIndex:"lastConsumedMessageIndex",notificationLevel:"notificationLevel",sid:"sid",status:"status",uniqueName:"uniqueName",state:"state",bindings:"bindings"};function Le(e){try{return new Date(e)}catch(t){return null}}var je=function(e){P.default(n,e);var t=Me(n);function n(e,r,o,i,a){var s,l;N.default(this,n),(l=t.call(this)).sid=r,l.links=o,l.configuration=i,l.services=a;var c=e.attributes||{},u=e.createdBy,d=Le(e.dateCreated),f=Le(e.dateUpdated),p=e.friendlyName||null,h=Number.isInteger(e.lastConsumedMessageIndex)?e.lastConsumedMessageIndex:null,m=e.uniqueName||null;try{JSON.stringify(c)}catch(g){throw new Error("Attributes must be a valid JSON object.")}l.entityName=e.channel,l.channelState={uniqueName:m,status:"notParticipating",attributes:c,createdBy:u,dateCreated:d,dateUpdated:f,friendlyName:p,lastReadMessageIndex:h,bindings:null!==(s=e.bindings)&&void 0!==s?s:{}},e.notificationLevel&&(l.channelState.notificationLevel=e.notificationLevel);var v={participants:l.links.participants};return l.participants=new Map,l.participantsEntity=new ge(O.default(l),l.participants,v,l.configuration,l.services),l.participantsEntity.on("participantJoined",l.emit.bind(O.default(l),"participantJoined")),l.participantsEntity.on("participantLeft",l.emit.bind(O.default(l),"participantLeft")),l.participantsEntity.on("participantUpdated",(function(e){return l.emit("participantUpdated",e)})),l.messagesEntity=new Be(O.default(l),i,a),l.messagesEntity.on("messageAdded",(function(e){return l._onMessageAdded(e)})),l.messagesEntity.on("messageUpdated",(function(e){return l.emit("messageUpdated",e)})),l.messagesEntity.on("messageRemoved",l.emit.bind(O.default(l),"messageRemoved")),l}return B.default(n,[{key:"uniqueName",get:function(){return this.channelState.uniqueName}},{key:"status",get:function(){return this.channelState.status}},{key:"friendlyName",get:function(){return this.channelState.friendlyName}},{key:"dateUpdated",get:function(){return this.channelState.dateUpdated}},{key:"dateCreated",get:function(){return this.channelState.dateCreated}},{key:"createdBy",get:function(){return this.channelState.createdBy}},{key:"attributes",get:function(){return this.channelState.attributes}},{key:"lastReadMessageIndex",get:function(){return this.channelState.lastReadMessageIndex}},{key:"lastMessage",get:function(){return this.channelState.lastMessage}},{key:"notificationLevel",get:function(){return this.channelState.notificationLevel}},{key:"bindings",get:function(){return this.channelState.bindings}},{key:"limits",get:function(){return this.configuration.limits}},{key:"state",get:function(){return this.channelState.state}},{key:"_subscribe",value:function(){var e,t=this;return this.entityPromise=null!==(e=this.entityPromise)&&void 0!==e?e:this.services.syncClient.document({id:this.entityName,mode:"open_existing"}).then((function(e){return t.entity=e,t.entity.on("updated",(function(e){t._update(e.data)})),t.entity.on("removed",(function(){return t.emit("removed",t)})),t._update(t.entity.data),e})).catch((function(e){throw t.entity=null,t.entityPromise=null,"disconnected"!=t.services.syncClient.connectionState&&Ne.error("Failed to get conversation object",e),Ne.debug("ERROR: Failed to get conversation object",e),e}))}},{key:"_subscribeStreams",value:function(){var e=I.default(D.default.mark((function e(){var t,n;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._subscribe();case 3:return Ne.trace("_subscribeStreams, this.entity.data=",this.entity.data),t=this.entity.data.messages,n=this.entity.data.roster,e.next=8,Promise.all([this.messagesEntity.subscribe(t),this.participantsEntity.subscribe(n)]);case 8:e.next=15;break;case 10:throw e.prev=10,e.t0=e.catch(0),"disconnected"!==this.services.syncClient.connectionState&&Ne.error("Failed to subscribe on conversation objects",this.sid,e.t0),Ne.debug("ERROR: Failed to subscribe on conversation objects",this.sid,e.t0),e.t0;case 15:case"end":return e.stop()}}),e,this,[[0,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"_unsubscribe",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.entity){e.next=5;break}return e.next=3,this.entity.close();case 3:this.entity=null,this.entityPromise=null;case 5:return e.abrupt("return",Promise.all([this.participantsEntity.unsubscribe(),this.messagesEntity.unsubscribe()]));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_setStatus",value:function(e,t){var n=this;this.statusSource=t,this.channelState.status!==e&&(this.channelState.status=e,"joined"===e?this._subscribeStreams().catch((function(t){if(Ne.debug("ERROR while setting conversation status "+e,t),"disconnected"!==n.services.syncClient.connectionState)throw t})):this.entityPromise&&this._unsubscribe().catch((function(t){if(Ne.debug("ERROR while setting conversation status "+e,t),"disconnected"!==n.services.syncClient.connectionState)throw t})))}},{key:"_statusSource",value:function(){return this.statusSource}},{key:"_update",value:function(e){var t,r,o,i,a;Ne.trace("_update",e),n.preprocessUpdate(e,this.sid);for(var s=new Set,l=0,c=Object.keys(e);l<c.length;l++){var u=c[l],d=De[u];if(d)switch(d){case De.status:if(!e.status||"unknown"===e.status||this.channelState.status===e.status)break;this.channelState.status=e.status,s.add(d);break;case De.attributes:if(z.default(this.channelState.attributes,e.attributes))break;this.channelState.attributes=e.attributes,s.add(d);break;case De.lastConsumedMessageIndex:if(void 0===e.lastConsumedMessageIndex||e.lastConsumedMessageIndex===this.channelState.lastReadMessageIndex)break;this.channelState.lastReadMessageIndex=e.lastConsumedMessageIndex,s.add("lastReadMessageIndex");break;case De.lastMessage:if(this.channelState.lastMessage&&!e.lastMessage){delete this.channelState.lastMessage,s.add(d);break}this.channelState.lastMessage=this.channelState.lastMessage||{},void 0!==(null===(t=e.lastMessage)||void 0===t?void 0:t.index)&&e.lastMessage.index!==this.channelState.lastMessage.index&&(this.channelState.lastMessage.index=e.lastMessage.index,s.add(d)),void 0!==(null===(r=e.lastMessage)||void 0===r?void 0:r.timestamp)&&(null===(o=this.channelState.lastMessage)||void 0===o||null===(i=o.dateCreated)||void 0===i?void 0:i.getTime())!==e.lastMessage.timestamp.getTime()&&(this.channelState.lastMessage.dateCreated=e.lastMessage.timestamp,s.add(d)),z.default(this.channelState.lastMessage,{})&&delete this.channelState.lastMessage;break;case De.state:var f=e.state||void 0;if(void 0!==f&&(f.dateUpdated=new Date(f.dateUpdated)),z.default(this.channelState.state,f))break;this.channelState.state=f,s.add(d);break;case De.bindings:if(z.default(this.channelState.bindings,e.bindings))break;this.channelState.bindings=e.bindings,s.add(d);break;default:var p=e[u]instanceof Date,h=p&&(null===(a=this.channelState[d])||void 0===a?void 0:a.getTime())===e[u].getTime(),m=!p&&this[d]===e[u];if(h||m)break;this.channelState[d]=e[u],s.add(d)}}s.size>0&&this.emit("updated",{conversation:this,updateReasons:Z.default(s)})}},{key:"_onMessageAdded",value:function(e){var t,n=Re(this.participants.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.identity===e.author){r._endTyping();break}}}catch(o){n.e(o)}finally{n.f()}this.emit("messageAdded",e)}},{key:"_setLastReadMessageIndex",value:function(){var e=I.default(D.default.mark((function e(t){var n;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("post","".concat(this.configuration.links.myConversations,"/").concat(this.sid),{last_read_message_index:t});case 2:return n=e.sent,e.abrupt("return",n.unread_messages_count);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"add",value:function(){var e=I.default(D.default.mark((function e(t,n){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.participantsEntity.add(t,null!==n&&void 0!==n?n:{}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"addNonChatParticipant",value:function(){var e=I.default(D.default.mark((function e(t,n){var r,o,i=arguments;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>2&&void 0!==i[2]?i[2]:{},o=i.length>3&&void 0!==i[3]?i[3]:{},e.abrupt("return",this.participantsEntity.addNonChatParticipant(t,n,null!==r&&void 0!==r?r:{},null!==o&&void 0!==o?o:{}));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"advanceLastReadMessageIndex",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._subscribeStreams();case 2:if(!(t<this.lastReadMessageIndex)){e.next=6;break}return e.next=5,this._setLastReadMessageIndex(this.lastReadMessageIndex);case 5:case 8:return e.abrupt("return",e.sent);case 6:return e.next=8,this._setLastReadMessageIndex(t);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("delete",this.links.self);case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAttributes",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._subscribe();case 2:return e.abrupt("return",this.attributes);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getMessages",value:function(){var e=I.default(D.default.mark((function e(t,n,r){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._subscribeStreams();case 2:return e.abrupt("return",this.messagesEntity.getMessages(t,n,r));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"getParticipants",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._subscribeStreams();case 2:return e.abrupt("return",this.participantsEntity.getParticipants());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getParticipantsCount",value:function(){var e=I.default(D.default.mark((function e(){var t,n;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new ne(this.configuration.links.conversations).path(this.sid).build(),e.next=3,this.services.network.get(t);case 3:return n=e.sent,e.abrupt("return",n.body.participants_count);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getParticipantBySid",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.participantsEntity.getParticipantBySid(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getParticipantByIdentity",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.participantsEntity.getParticipantByIdentity(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getMessagesCount",value:function(){var e=I.default(D.default.mark((function e(){var t,n;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new ne(this.configuration.links.conversations).path(this.sid).build(),e.next=3,this.services.network.get(t);case 3:return n=e.sent,e.abrupt("return",n.body.messages_count);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getUnreadMessagesCount",value:function(){var e=I.default(D.default.mark((function e(){var t,n,r;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new ne(this.configuration.links.myConversations).path(this.sid).build(),e.next=3,this.services.network.get(t);case 3:if((n=e.sent).body.conversation_sid===this.sid){e.next=6;break}throw new Error("Conversation was not found in the user conversations list");case 6:if("number"!==typeof(r=n.body.unread_messages_count)){e.next=9;break}return e.abrupt("return",r);case 9:return e.abrupt("return",null);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"join",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("post",this.links.participants,{identity:this.configuration.userIdentity});case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"leave",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("joined"!==this.channelState.status){e.next=3;break}return e.next=3,this.services.commandExecutor.mutateResource("delete","".concat(this.links.participants,"/").concat(this.configuration.userIdentity));case 3:return e.abrupt("return",this);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeParticipant",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.participantsEntity.remove("string"===typeof t?t:t.sid);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sendMessage",value:function(){var e=I.default(D.default.mark((function e(t,n,r){var o,i;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!==typeof t&&null!==t){e.next=5;break}return e.next=3,this.messagesEntity.send(t,n,r);case 3:return o=e.sent,e.abrupt("return",Q(o.index));case 5:return e.next=7,this.messagesEntity.sendMedia(t,n,r);case 7:return i=e.sent,e.abrupt("return",Q(i.index));case 9:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"prepareMessage",value:function(){return new Pe(this.limits,this.messagesEntity)}},{key:"setAllMessagesRead",value:function(){var e=I.default(D.default.mark((function e(){var t;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._subscribeStreams();case 2:return e.next=4,this.getMessages(1);case 4:if(!((t=e.sent).items.length>0)){e.next=7;break}return e.abrupt("return",this.advanceLastReadMessageIndex(t.items[0].index));case 7:return e.abrupt("return",Promise.resolve(0));case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setAllMessagesUnread",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._subscribeStreams();case 2:return e.next=4,this._setLastReadMessageIndex(null);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserNotificationLevel",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("post","".concat(this.configuration.links.myConversations,"/").concat(this.sid),{notification_level:t});case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"typing",value:function(){return this.services.typingIndicator.send(this.sid)}},{key:"updateAttributes",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.mutateResource("post",this.links.self,{attributes:void 0!==t?JSON.stringify(t):void 0});case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateFriendlyName",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.channelState.friendlyName===t){e.next=3;break}return e.next=3,this.services.commandExecutor.mutateResource("post",this.links.self,{friendly_name:t});case 3:return e.abrupt("return",this);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateLastReadMessageIndex",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._subscribeStreams();case 2:return e.abrupt("return",this._setLastReadMessageIndex(t));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateUniqueName",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.channelState.uniqueName===t){e.next=4;break}return t||(t=""),e.next=4,this.services.commandExecutor.mutateResource("post",this.links.self,{unique_name:t});case 4:return e.abrupt("return",this);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}],[{key:"preprocessUpdate",value:function(e,t){try{"string"===typeof e.attributes?e.attributes=JSON.parse(e.attributes):e.attributes&&JSON.stringify(e.attributes)}catch(n){Ne.warn("Retrieved malformed attributes from the server for conversation: "+t),e.attributes={}}try{e.dateCreated&&(e.dateCreated=new Date(e.dateCreated))}catch(n){Ne.warn("Retrieved malformed dateCreated from the server for conversation: "+t),delete e.dateCreated}try{e.dateUpdated&&(e.dateUpdated=new Date(e.dateUpdated))}catch(n){Ne.warn("Retrieved malformed dateUpdated from the server for conversation: "+t),delete e.dateUpdated}try{e.lastMessage&&e.lastMessage.timestamp&&(e.lastMessage.timestamp=new Date(e.lastMessage.timestamp))}catch(n){Ne.warn("Retrieved malformed lastMessage.timestamp from the server for conversation: "+t),delete e.lastMessage.timestamp}}}]),n}(v.ReplayEventEmitter);M.default(je,"participantJoined","participantJoined"),M.default(je,"participantLeft","participantLeft"),M.default(je,"participantUpdated","participantUpdated"),M.default(je,"messageAdded","messageAdded"),M.default(je,"messageRemoved","messageRemoved"),M.default(je,"messageUpdated","messageUpdated"),M.default(je,"typingEnded","typingEnded"),M.default(je,"typingStarted","typingStarted"),M.default(je,"updated","updated"),M.default(je,"removed","removed"),F([m.validateTypesAsync(m.nonEmptyString,oe),H("design:type",Function),H("design:paramtypes",[String,Object]),H("design:returntype",Promise)],je.prototype,"add",null),F([m.validateTypesAsync(m.nonEmptyString,m.nonEmptyString,oe),H("design:type",Function),H("design:paramtypes",[String,String,Object,Object]),H("design:returntype",Promise)],je.prototype,"addNonChatParticipant",null),F([m.validateTypesAsync(m.nonNegativeInteger),H("design:type",Function),H("design:paramtypes",[Number]),H("design:returntype",Promise)],je.prototype,"advanceLastReadMessageIndex",null),F([m.validateTypesAsync(["undefined",m.nonNegativeInteger],["undefined",m.nonNegativeInteger],["undefined",m.literal("backwards","forward")]),H("design:type",Function),H("design:paramtypes",[Number,Number,String]),H("design:returntype",Promise)],je.prototype,"getMessages",null),F([m.validateTypesAsync(m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],je.prototype,"getParticipantBySid",null),F([m.validateTypesAsync(m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],je.prototype,"getParticipantByIdentity",null),F([m.validateTypesAsync([m.nonEmptyString,he]),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Promise)],je.prototype,"removeParticipant",null),F([m.validateTypesAsync(["string",m.literal(null),m.custom((function(e){return[e instanceof FormData,"an instance of FormData"]})),m.objectSchema("media options",{contentType:m.nonEmptyString,media:m.custom((function(e){var t="string"===typeof e&&e.length>0||e instanceof Uint8Array||e instanceof ArrayBuffer;return"function"===typeof Blob&&(t=t||e instanceof Blob),[t,"a non-empty string, an instance of Buffer or an instance of Blob"]}))})],oe,["undefined",m.literal(null),m.objectSchema("email attributes",{subject:[m.nonEmptyString,"undefined"]})]),H("design:type",Function),H("design:paramtypes",[Object,Object,Object]),H("design:returntype",Promise)],je.prototype,"sendMessage",null),F([m.validateTypesAsync(m.literal("default","muted")),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],je.prototype,"setUserNotificationLevel",null),F([m.validateTypesAsync(re),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Promise)],je.prototype,"updateAttributes",null),F([m.validateTypesAsync(["string"]),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],je.prototype,"updateFriendlyName",null),F([m.validateTypesAsync([m.literal(null),m.nonNegativeInteger]),H("design:type",Function),H("design:paramtypes",[Number]),H("design:returntype",Promise)],je.prototype,"updateLastReadMessageIndex",null),F([m.validateTypesAsync(["string",m.literal(null)]),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],je.prototype,"updateUniqueName",null);var ze=function(){function e(){var t=this;N.default(this,e),this._promise=new Promise((function(e,n){t._resolve=e,t._reject=n}))}return B.default(e,[{key:"promise",get:function(){return this._promise}},{key:"update",value:function(e){this._resolve(e)}},{key:"set",value:function(e){this.current=e,this._resolve(e)}},{key:"fail",value:function(e){this._reject(e)}}]),e}();function We(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ze(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){M.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ue(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}var $e=G.scope("Conversations"),Ge=function(e){P.default(n,e);var t=Ue(n);function n(e,r){var o;return N.default(this,n),o=t.call(this),M.default(O.default(o),"conversations",new Map),M.default(O.default(o),"myConversationsRead",new ze),M.default(O.default(o),"tombstones",new Set),M.default(O.default(o),"myConversationsFetched",!1),o.configuration=e,o.services=r,o}return B.default(n,[{key:"addConversation",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o,i,a,s,l,c,u,d;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="undefined"!==typeof(null===t||void 0===t?void 0:t.attributes)?t.attributes:{},e.next=3,this.services.commandExecutor.mutateResource("post",this.configuration.links.conversations,{friendly_name:t.friendlyName,unique_name:t.uniqueName,attributes:"undefined"!==typeof i?JSON.stringify(i):void 0});case 3:if(a=e.sent,s=null!==(n=a.sid)&&void 0!==n?n:null,l=null!==(r=null===(o=a.sync_objects)||void 0===o?void 0:o.conversation)&&void 0!==r?r:null,c=He({self:a.url},a.links),!(u=this.conversations.get(s))){e.next=12;break}return e.next=11,u._subscribe();case 11:return e.abrupt("return",u);case 12:return d=new je({channel:l,entityName:null,uniqueName:null,attributes:null,createdBy:null,friendlyName:null,lastConsumedMessageIndex:null,dateCreated:null,dateUpdated:null},s,c,this.configuration,this.services),this.conversations.set(d.sid,d),this._registerForEvents(d),e.next=17,d._subscribe();case 17:return this.emit("conversationAdded",d),e.abrupt("return",d);case 19:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchConversations",value:function(){var e=I.default(D.default.mark((function e(){var t,n,r,o,i,a,s,l=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getMap();case 3:return(t=e.sent).on("itemAdded",(function(e){$e.debug("itemAdded: ".concat(e.item.key)),l._upsertConversation("sync",e.item.key,e.item.data)})),t.on("itemRemoved",(function(e){$e.debug("itemRemoved: ".concat(e.key));var t=e.key;l.myConversationsFetched||l.tombstones.add(t);var n=l.conversations.get(t);n&&("joined"===n.status&&(n._setStatus("notParticipating","sync"),l.emit("conversationLeft",n)),l.conversations.delete(t),l.emit("conversationRemoved",n),n.emit("removed",n))})),t.on("itemUpdated",(function(e){$e.debug("itemUpdated: ".concat(e.item.key)),l._upsertConversation("sync",e.item.key,e.item.data)})),e.next=9,this._fetchMyConversations();case 9:n=e.sent,r=[],o=We(n);try{for(o.s();!(i=o.n()).done;)a=i.value,r.push(this._upsertConversation("rest",a.channel_sid,a))}catch(c){o.e(c)}finally{o.f()}return this.myConversationsRead.set(!0),e.next=16,Promise.all(r);case 16:return this.myConversationsFetched=!0,this.tombstones.clear(),$e.debug("The conversations list has been successfully fetched"),e.abrupt("return",this);case 22:throw e.prev=22,e.t0=e.catch(0),s="Failed to fetch the conversations list","disconnected"!==this.services.syncClient.connectionState&&$e.error(s,e.t0),$e.debug("ERROR: ".concat(s),e.t0),e.t0;case 28:case"end":return e.stop()}}),e,this,[[0,22]])})));return function(){return e.apply(this,arguments)}}()},{key:"getConversations",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getMap();case 2:return n=e.sent,e.next=5,n.getItems();case 5:return r=e.sent,e.abrupt("return",this._wrapPaginator(r,(function(e){return Promise.all(e.map((function(e){return o._upsertConversation("sync",e.key,e.data)})))})));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getConversation",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o,i=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getMap();case 2:return n=e.sent,e.next=5,n.getItems({key:t});case 5:return r=e.sent,o=r.items.map((function(e){return i._upsertConversation("sync",e.key,e.data)})),e.abrupt("return",o.length>0?o[0]:null);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getConversationByUniqueName",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o,i,a;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new ne(this.configuration.links.myConversations).path(t).build(),e.next=3,this.services.network.get(n);case 3:return r=e.sent,o=r.body,i=o.conversation_sid,a={entityName:null,lastConsumedMessageIndex:o.last_read_message_index,status:(null===o||void 0===o?void 0:o.status)||"unknown",friendlyName:o.friendly_name,dateUpdated:o.date_updated,dateCreated:o.date_created,uniqueName:o.unique_name,createdBy:o.created_by,attributes:o.attributes,channel:o.sync_objects.conversation,notificationLevel:null===o||void 0===o?void 0:o.notification_level,sid:i},e.abrupt("return",this._upsertConversation("sync",i,a));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"peekConversation",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o,i;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new ne(this.configuration.links.conversations).path(t).build(),e.next=3,this.services.network.get(n);case 3:return r=e.sent,o=r.body,i={entityName:null,status:(null===o||void 0===o?void 0:o.status)||"unknown",friendlyName:o.friendly_name,dateUpdated:o.date_updated,dateCreated:o.date_created,uniqueName:o.unique_name,createdBy:o.created_by,attributes:o.attributes,channel:"".concat(t,".channel"),sid:t},e.abrupt("return",this._upsertConversation("sync",t,i));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getMap",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.syncClient.map({id:this.configuration.myConversations,mode:"open_existing"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_wrapPaginator",value:function(){var e=I.default(D.default.mark((function e(t,n){var r,o=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(t.items);case 2:return r=e.sent,e.abrupt("return",{items:r,hasNextPage:t.hasNextPage,hasPrevPage:t.hasPrevPage,nextPage:function(){return t.nextPage().then((function(e){return o._wrapPaginator(e,n)}))},prevPage:function(){return t.prevPage().then((function(e){return o._wrapPaginator(e,n)}))}});case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_updateConversation",value:function(){var e=I.default(D.default.mark((function e(t,n,r){var o,i,a,s=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=void 0!==n._statusSource()&&t!==n._statusSource(),i="rest"!==t||"sync"===n._statusSource(),!o||!i||"sync"===t){e.next=5;break}return $e.trace("upsertConversation: conversation is known from sync and came from chat, ignoring",{sid:n.sid,data:r.status,conversation:n.status}),e.abrupt("return");case 5:if("joined"!==r.status||"joined"===n.status){e.next=13;break}return n._setStatus("joined",t),a={},"undefined"!==typeof r.notificationLevel&&(a.notificationLevel=r.notificationLevel),"undefined"!==typeof r.lastConsumedMessageIndex&&(a.lastConsumedMessageIndex=r.lastConsumedMessageIndex),z.default(a,{})||n._update(a),n._subscribe().then((function(){s.emit("conversationJoined",n)})),e.abrupt("return");case 13:if("notParticipating"!==r.status||"joined"!==n.status){e.next=20;break}return n._setStatus("notParticipating",t),n._update(r),e.next=18,n._subscribe();case 18:return this.emit("conversationLeft",n),e.abrupt("return");case 20:if("notParticipating"!==r.status){e.next=24;break}return e.next=23,n._subscribe();case 23:return e.abrupt("return");case 24:n._update(r);case 25:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_upsertConversation",value:function(){var e=I.default(D.default.mark((function e(t,n,r){var o,i,a,s;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if($e.trace("upsertConversation called for ".concat(n),r),!(o=this.conversations.get(n))){e.next=9;break}return $e.trace("upsertConversation: the conversation ".concat(o.sid," is known;")+"its status is known from the source ".concat(o._statusSource()," ")+"and the update came from the source ".concat(t),o),e.next=6,this._updateConversation(t,o,r);case 6:return e.next=8,o._subscribe();case 8:return e.abrupt("return",o);case 9:if(!["chat","rest"].includes(t)||!this.tombstones.has(n)){e.next=12;break}return $e.trace("upsertChannel: the channel is deleted but reappeared again from chat, ignoring",n),e.abrupt("return");case 12:return $e.trace("upsertConversation: creating a local conversation object with sid "+n,r),i="".concat(this.configuration.links.conversations,"/").concat(n),a={self:i,messages:"".concat(i,"/Messages"),participants:"".concat(i,"/Participants")},s=new je(r,n,a,this.configuration,this.services),this.conversations.set(n,s),e.next=19,s._subscribe();case 19:return this._registerForEvents(s),this.emit("conversationAdded",s),"joined"===r.status&&(s._setStatus("joined",t),this.emit("conversationJoined",s)),e.abrupt("return",s);case 23:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_fetchMyConversations",value:function(){var e=I.default(D.default.mark((function e(){var t,n,r,o,i;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=null;case 2:return r=new ne(this.configuration.links.myConversations),n&&r.arg("PageToken",n),e.next=6,this.services.network.get(r.build());case 6:o=e.sent,i=o.body.conversations.map((function(e){return{descriptor:e,channel_sid:e.conversation_sid,status:e.status,channel:e.sync_objects.conversation,messages:e.sync_objects.messages,roster:"".concat(e.conversation_sid,".roster"),lastConsumedMessageIndex:e.last_consumed_message_index,notificationLevel:e.notification_level}})),n=o.body.meta.next_token,t=[].concat(Z.default(t),Z.default(i));case 10:if(n){e.next=2;break}case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_onConversationRemoved",value:function(e){var t=this.conversations.get(e);t&&(this.conversations.delete(e),this.emit("conversationRemoved",t))}},{key:"_registerForEvents",value:function(e){var t=this;e.on("removed",(function(){return t._onConversationRemoved(e.sid)})),e.on("updated",(function(e){return t.emit("conversationUpdated",e)})),e.on("participantJoined",this.emit.bind(this,"participantJoined")),e.on("participantLeft",this.emit.bind(this,"participantLeft")),e.on("participantUpdated",(function(e){return t.emit("participantUpdated",e)})),e.on("messageAdded",this.emit.bind(this,"messageAdded")),e.on("messageUpdated",(function(e){return t.emit("messageUpdated",e)})),e.on("messageRemoved",this.emit.bind(this,"messageRemoved")),e.on("typingStarted",this.emit.bind(this,"typingStarted")),e.on("typingEnded",this.emit.bind(this,"typingEnded"))}}]),n}(v.ReplayEventEmitter);function qe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}var Ke=function(e){P.default(n,e);var t=qe(n);function n(e,r,o){var i;return N.default(this,n),(i=t.call(this)).configuration=r,i.services=o,i.fifoStack=[],i.myself=e,i.myself.on("updated",(function(e){return i.emit("userUpdated",e)})),i.myself.on("userSubscribed",(function(){return i.emit("userSubscribed",i.myself)})),i.myself.on("userUnsubscribed",(function(){i.emit("userUnsubscribed",i.myself),i.myself._ensureFetched()})),i.subscribedUsers=new Map,i}return B.default(n,[{key:"handleUnsubscribeUser",value:function(e){this.subscribedUsers.has(e.identity)&&this.subscribedUsers.delete(e.identity);var t=-1;this.fifoStack.find((function(n,r){return n==e.identity&&(t=r,!0)}))&&this.fifoStack.splice(t,1),this.emit("userUnsubscribed",e)}},{key:"handleSubscribeUser",value:function(e){this.subscribedUsers.has(e.identity)||(this.fifoStack.length>=this.configuration.userInfosToSubscribe&&this.subscribedUsers.get(this.fifoStack.shift()).unsubscribe(),this.fifoStack.push(e.identity),this.subscribedUsers.set(e.identity,e),this.emit("userSubscribed",e))}},{key:"getUser",value:function(){var e=I.default(D.default.mark((function e(t){var n,r,o=this,i=arguments;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:null,e.next=3,this.myself._ensureFetched();case 3:if(t!=this.myself.identity){e.next=5;break}return e.abrupt("return",this.myself);case 5:if(r=this.subscribedUsers.get(t)){e.next=17;break}if(n){e.next=11;break}return e.next=10,this.getSyncUniqueName(t);case 10:n=e.sent;case 11:return(r=new se(t,n,this.configuration,this.services)).on("updated",(function(e){return o.emit("userUpdated",e)})),r.on("userSubscribed",(function(){return o.handleSubscribeUser(r)})),r.on("userUnsubscribed",(function(){return o.handleUnsubscribeUser(r)})),e.next=17,r._ensureFetched();case 17:return e.abrupt("return",r);case 18:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getSubscribedUsers",value:function(){var e=I.default(D.default.mark((function e(){var t;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.myself._ensureFetched();case 2:return t=[this.myself],this.subscribedUsers.forEach((function(e){return t.push(e)})),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getSyncUniqueName",value:function(){var e=I.default(D.default.mark((function e(t){var n,r;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new ne(this.configuration.links.users).path(t).build(),e.next=3,this.services.network.get(n);case 3:return r=e.sent,e.abrupt("return",r.body.sync_objects.user_info_map);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(v.ReplayEventEmitter),Ve=G.scope("TypingIndicator"),Ye=function(){function e(t,n,r){N.default(this,e),this.configuration=n,this.services=r,this.getConversation=t,this.serviceTypingTimeout=null,this.sentUpdates=new Map}return B.default(e,[{key:"typingTimeout",get:function(){return this.configuration.typingIndicatorTimeoutOverride||this.serviceTypingTimeout||this.configuration.typingIndicatorTimeoutDefault}},{key:"initialize",value:function(){var e=this;this.services.notificationClient.on("message",function(){var t=I.default(D.default.mark((function t(n,r){return D.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n!==de.TYPING_INDICATOR){t.next=3;break}return t.next=3,e._handleRemoteTyping(r);case 3:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"_handleRemoteTyping",value:function(){var e=I.default(D.default.mark((function e(t){var n=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ve.trace("Got new typing indicator ",t),this.getConversation(t.channel_sid).then((function(e){e&&e.participants.forEach((function(e){if(e.identity===t.identity){var r=n.configuration.typingIndicatorTimeoutOverride+1e3||1e3*t.typing_timeout;e._startTyping(r)}}))})).catch((function(e){throw Ve.error(e),e}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"send",value:function(e){var t=this.sentUpdates.get(e);return t&&t>Date.now()-this.typingTimeout?Promise.resolve():(this.sentUpdates.set(e,Date.now()),this._send(e))}},{key:"_send",value:function(e){var t=this;Ve.trace("Sending typing indicator");var n=this.configuration.links.typing,r="ChannelSid=".concat(e);return this.services.twilsockClient.post(n,{"Content-Type":"application/x-www-form-urlencoded"},r,this.configuration.productId).then((function(e){e.body.hasOwnProperty("typing_timeout")&&(t.serviceTypingTimeout=1e3*e.body.typing_timeout)})).catch((function(e){throw Ve.error("Failed to send typing indicator:",e),e}))}}]),e}(),Xe=function e(t){N.default(this,e),this.title=t.title||null,this.body=t.body||null,this.sound=t.sound||null,this.badge=t.badge||null,this.action=t.action||null,this.type=t.type||null,this.data=t.data||{}};function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){M.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et,tt,nt,rt=function(e){return e.replace(/(^\/+|\/+$)/g,"")},ot=function(){function e(t,n,r){N.default(this,e),this._serviceUrl=t,this._services=n,this._productId=r}return B.default(e,[{key:"_preProcessUrl",value:function(e){var t=rt(e);return/^https?:\/\//.test(e)?t:"".concat(rt(this._serviceUrl),"/").concat(t)}},{key:"_makeRequest",value:function(){var e=I.default(D.default.mark((function e(t,n,r,o){var i,a,s,l;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=this._preProcessUrl(n),a=Qe({"Content-Type":"application/json; charset=utf-8"},o||{}),e.t0=t,e.next="get"===e.t0?5:"post"===e.t0?11:"delete"===e.t0?15:19;break;case 5:return l=i,r&&(l+="?"+Object.entries(r).map((function(e){return e.map(encodeURIComponent).join("=")})).join("&")),e.next=9,this._services.transport.get(l,a,this._productId);case 9:case 13:case 17:return s=e.sent,e.abrupt("break",19);case 11:return e.next=13,this._services.transport.post(i,a,JSON.stringify(r),this._productId);case 15:return e.next=17,this._services.transport.delete(i,a,null,this._productId);case 19:if(!(s.status.code<200||s.status.code>=300)){e.next=21;break}throw new Error("Request responded with a non-success code ".concat(s.status.code));case 21:return e.abrupt("return",s);case 22:case"end":return e.stop()}}),e,this)})));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"fetchResource",value:function(){var e=I.default(D.default.mark((function e(t,n){var r,o=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 6,e.prev=1,e.next=4,new b.AsyncRetrier({min:50,max:1600,maxAttemptsCount:6}).run((function(){return o._makeRequest("get",t,n)}));case 4:r=e.sent,e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(1),new Error('Fetch resource from "'.concat(t,'" failed.'));case 10:return e.abrupt("return",r.body);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"mutateResource",value:function(){var e=I.default(D.default.mark((function e(t,n,r){var o;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._makeRequest(t,n,r,{"X-Twilio-Mutation-Id":E.v4()});case 2:if(o=e.sent,202!==o.status.code){e.next=7;break}return e.next=6,this.fetchResource(o.body.resource_url);case 6:return e.abrupt("return",e.sent);case 7:return e.abrupt("return",o.body);case 8:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()}]),e}();function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){M.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function st(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A.default(e);if(t){var o=A.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R.default(this,n)}}var lt=G.scope("Client"),ct="2.1.0-rc.0",ut=function e(){N.default(this,e)};t.KU=(tt=et=function(e){P.default(n,e);var t=st(n);function n(e){var r,o,i,a,s,l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(N.default(this,n),l=t.call(this),M.default(O.default(l),"connectionState","unknown"),M.default(O.default(l),"conversationsPromise",null),M.default(O.default(l),"_ensureReady",null),M.default(O.default(l),"_resolveEnsureReady",null),M.default(O.default(l),"_rejectEnsureReady",null),M.default(O.default(l),"version",ct),M.default(O.default(l),"parsePushNotification",nt.parsePushNotification),l.fpaToken=e,l.options=c,!l.options.disableDeepClone){var u=at(at({},l.options),{},{transport:void 0,twilsockClient:void 0});(u=J(u)).transport=l.options.transport,u.twilsockClient=l.options.twilsockClient,l.options=u}l.options.logLevel=null!==(r=l.options.logLevel)&&void 0!==r?r:"silent",lt.setLevel(l.options.logLevel);var d=l.options.productId="ip_messaging";if(l.options.clientMetadata=l.options.clientMetadata||{},l.options.clientMetadata.hasOwnProperty("type")||(l.options.clientMetadata.type="conversations"),l.options.clientMetadata.hasOwnProperty("sdk")||(l.options.clientMetadata.sdk="JS",l.options.clientMetadata.sdkv=ct),l.options.Sync=l.options.Sync||{},"undefined"===typeof l.options.Sync.enableSessionStorage&&(l.options.Sync.enableSessionStorage=!0),l.options.region&&(l.options.Sync.region=l.options.region),!e)throw new Error("A valid Twilio token should be provided");l.services=new ut,l._myself=new se("","",null,l.services);var f=!l.options.twilsockClient;if(!l.options.initRegistrations){var p=new x.InitRegistration(d);nt.populateInitRegistrations(p),l.options.initRegistrations=[p]}l.services.twilsockClient=l.options.twilsockClient=null!==(o=l.options.twilsockClient)&&void 0!==o?o:new x.TwilsockClient(e,d,l.options),l.services.twilsockClient.on("tokenAboutToExpire",(function(e){return l.emit("tokenAboutToExpire",e)})),l.services.twilsockClient.on("tokenExpired",(function(){return l.emit("tokenExpired")})),l.services.twilsockClient.on("connectionError",(function(e){return l.emit("connectionError",e)})),l.services.twilsockClient.on("stateChanged",(function(e){lt.debug("Handling stateChanged for ConversationsClient: new state ".concat(e)),e!==l.connectionState&&(l.connectionState=e,l.emit("connectionStateChanged",l.connectionState))})),l.services.transport=l.options.transport=null!==(i=l.options.transport)&&void 0!==i?i:l.options.twilsockClient,l.services.notificationClient=l.options.notificationsClient=null!==(a=l.options.notificationsClient)&&void 0!==a?a:new w.Notifications(e,l.options),l.services.syncClient=l.options.syncClient=null!==(s=l.options.syncClient)&&void 0!==s?s:new k.SyncClient(e,l.options);var h=c.Chat||c.IPMessaging||c||{},m=h.region||c.region,v=h.apiUri||h.typingUri||"https://aim.".concat(m||"us1",".twilio.com");l.services.commandExecutor=new ot(v,{transport:l.options.transport},d);var g=function(e){l._rejectEnsureReady(e),l.emit("stateChanged","failed")};return l.services.twilsockClient.once("connectionError",g),l.services.twilsockClient.once("disconnected",g),l.services.twilsockClient.once("connected",I.default(D.default.mark((function e(){var t;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return lt.debug("ConversationsClient started INITIALIZING"),l.services.twilsockClient.off("connectionError",g),l.services.twilsockClient.off("disconnected",g),e.prev=3,t="conversations.client.startup",l.services.twilsockClient.addPartialTelemetryEvent(new x.TelemetryEventDescription(t,"Conversations client startup",new Date),t,x.TelemetryPoint.Start),e.next=8,l._initialize();case 8:l.services.twilsockClient.addPartialTelemetryEvent(new x.TelemetryEventDescription("","",new Date),t,x.TelemetryPoint.End),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(3),l._rejectEnsureReady(e.t0),l.emit("stateChanged","failed");case 15:case"end":return e.stop()}}),e,null,[[3,11]])})))),l._ensureReady=new Promise((function(e,t){l._resolveEnsureReady=e,l._rejectEnsureReady=t})).catch((function(e){})),f&&l.services.twilsockClient.connect(),l}return B.default(n,[{key:"user",get:function(){return this._myself}},{key:"reachabilityEnabled",get:function(){if(!this.configuration)throw new Error("Reachability information could not yet be accessed as the client has not yet been initialized. Subscribe to the 'stateChanged' event to properly react to the client initialization.");return this.configuration.reachabilityEnabled}},{key:"token",get:function(){return this.fpaToken}},{key:"_subscribeToPushNotifications",value:function(e){var t=this;[de.NEW_MESSAGE,de.ADDED_TO_CONVERSATION,de.REMOVED_FROM_CONVERSATION,de.TYPING_INDICATOR,de.CONSUMPTION_UPDATE].forEach((function(n){t.services.notificationClient.subscribe(e,n)}))}},{key:"_unsubscribeFromPushNotifications",value:function(e){var t=this;[de.NEW_MESSAGE,de.ADDED_TO_CONVERSATION,de.REMOVED_FROM_CONVERSATION,de.TYPING_INDICATOR,de.CONSUMPTION_UPDATE].forEach((function(n){t.services.notificationClient.unsubscribe(e,n)}))}},{key:"_initialize",value:function(){var e=I.default(D.default.mark((function e(){var t,n=this;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.commandExecutor.fetchResource("Client/v2/Configuration");case 2:return t=e.sent,this.configuration=new X(this.options,t,lt),this._myself._resolveInitialization(this.configuration,this.configuration.userIdentity,this.configuration.userInfo,!0),this.services.typingIndicator=new Ye(this.getConversationBySid.bind(this),this.configuration,this.services),this.services.network=new ue(this.configuration,this.services),this.services.users=new Ke(this._myself,this.configuration,this.services),this.services.users.on("userSubscribed",this.emit.bind(this,"userSubscribed")),this.services.users.on("userUpdated",(function(e){return n.emit("userUpdated",e)})),this.services.users.on("userUnsubscribed",this.emit.bind(this,"userUnsubscribed")),this.conversations=new Ge(this.configuration,this.services),this.conversations.on("conversationAdded",this.emit.bind(this,"conversationAdded")),this.conversations.on("conversationRemoved",this.emit.bind(this,"conversationRemoved")),this.conversations.on("conversationJoined",this.emit.bind(this,"conversationJoined")),this.conversations.on("conversationLeft",this.emit.bind(this,"conversationLeft")),this.conversations.on("conversationUpdated",(function(e){return n.emit("conversationUpdated",e)})),this.conversations.on("participantJoined",this.emit.bind(this,"participantJoined")),this.conversations.on("participantLeft",this.emit.bind(this,"participantLeft")),this.conversations.on("participantUpdated",(function(e){return n.emit("participantUpdated",e)})),this.conversations.on("messageAdded",this.emit.bind(this,"messageAdded")),this.conversations.on("messageUpdated",(function(e){return n.emit("messageUpdated",e)})),this.conversations.on("messageRemoved",this.emit.bind(this,"messageRemoved")),this.conversations.on("typingStarted",this.emit.bind(this,"typingStarted")),this.conversations.on("typingEnded",this.emit.bind(this,"typingEnded")),this.conversationsPromise=this.conversations.fetchConversations().then((function(){return n.conversations})).catch((function(e){throw e})),e.next=28,this.services.users.myself._ensureFetched();case 28:nt.supportedPushChannels.forEach((function(e){return n._subscribeToPushNotifications(e)})),this.services.typingIndicator.initialize(),this.services.mcsClient=new S.McsClient(this.fpaToken,this.configuration.links.mediaService,this.configuration.links.mediaSetService,at(at({},this.options),{},{transport:null})),this._resolveEnsureReady(),this.emit("stateChanged","initialized");case 33:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"shutdown",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return e.next=4,this.services.twilsockClient.disconnect();case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateToken",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:if(lt.info("updateToken"),this.fpaToken!==t){e.next=5;break}return e.abrupt("return",this);case 5:return e.next=7,this.services.twilsockClient.updateToken(t);case 7:return e.next=9,this.services.notificationClient.updateToken(t);case 9:return e.next=11,this.services.mcsClient.updateToken(t);case 11:return this.fpaToken=t,e.abrupt("return",this);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getConversationBySid",value:function(){var e=I.default(D.default.mark((function e(t){var n;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return e.next=4,this.conversations.myConversationsRead.promise;case 4:return e.next=6,this.conversations.getConversation(t);case 6:if(n=e.sent){e.next=11;break}return e.next=10,this.conversations.peekConversation(t);case 10:n=e.sent;case 11:if(n){e.next=13;break}throw new Error("Conversation with SID ".concat(t," is not found."));case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getConversationByUniqueName",value:function(){var e=I.default(D.default.mark((function e(t){var n;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return e.next=4,this.conversations.myConversationsRead.promise;case 4:return e.next=6,this.conversations.getConversationByUniqueName(t);case 6:if(n=e.sent){e.next=9;break}throw new Error("Conversation with unique name ".concat(t," is not found."));case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getSubscribedConversations",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return e.abrupt("return",this.conversationsPromise.then((function(e){return e.getConversations(t)})));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"createConversation",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return t=t||{},e.abrupt("return",this.conversationsPromise.then((function(e){return e.addConversation(t)})));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setPushRegistrationId",value:function(){var e=I.default(D.default.mark((function e(t,n){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return this._subscribeToPushNotifications(t),this.services.notificationClient.setPushRegistrationId(t,n),e.next=6,this.services.notificationClient.commitChanges();case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"unsetPushRegistrationId",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return this._unsubscribeFromPushNotifications(t),e.next=5,this.services.notificationClient.commitChanges();case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"removePushRegistrations",value:function(){var e=I.default(D.default.mark((function e(t,n){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.notificationClient.removeRegistrations(t,n);case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"handlePushNotification",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:lt.debug("handlePushNotification, notificationPayload=",t),this.emit("pushNotification",nt.parsePushNotification(t));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getUser",value:function(){var e=I.default(D.default.mark((function e(t){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return e.abrupt("return",this.services.users.getUser(t));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getSubscribedUsers",value:function(){var e=I.default(D.default.mark((function e(){return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ensureReady;case 2:return e.abrupt("return",this.services.users.getSubscribedUsers());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}],[{key:"populateInitRegistrations",value:function(e){e.populateInitRegistrations([de.TYPING_INDICATOR]),k.SyncClient.populateInitRegistrations(e)}},{key:"create",value:function(){var e=I.default(D.default.mark((function e(t,n){var r;return D.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===n||void 0===n||!n.twilsockClient){e.next=2;break}throw new Error("Obsolete usage of ConversationsClient.create() factory method: if you pass twilsock from the outside then you must use ConversationsClient constructor and be prepared to work with uninitialized client.");case 2:return r=new nt(t,n),e.next=5,r._ensureReady;case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"parsePushNotificationChatData",value:function(e){var t={};for(var n in nt.supportedPushDataFields)"undefined"!==typeof e[n]&&null!==e[n]&&("message_index"===n?null!==Q(e[n])&&(t[nt.supportedPushDataFields[n]]=Number(e[n])):t[nt.supportedPushDataFields[n]]=e[n]);return t}},{key:"parsePushNotification",value:function(e){if(lt.debug("parsePushNotification, notificationPayload=",e),"undefined"!==typeof e.aps){if(!e.twi_message_type)throw new Error("Provided push notification payload does not contain Programmable Chat push notification type");var t=nt.parsePushNotificationChatData(e),n=e.aps,r=null,o=null;return"string"===typeof n.alert?r=n.alert||null:(r=n.alert.body||null,o=n.alert.title||null),new Xe({title:o,body:r,sound:n.sound||null,badge:n.badge||null,action:n.category||null,type:e.twi_message_type,data:t})}if("undefined"!==typeof e.data){var i=e.data;if(!i.twi_message_type)throw new Error("Provided push notification payload does not contain Programmable Chat push notification type");var a=nt.parsePushNotificationChatData(e.data);return new Xe({title:i.twi_title||null,body:i.twi_body||null,sound:i.twi_sound||null,badge:null,action:i.twi_action||null,type:i.twi_message_type,data:a})}throw new Error("Provided push notification payload is not Programmable Chat notification")}}]),n}(v.ReplayEventEmitter),M.default(et,"version",ct),M.default(et,"supportedPushChannels",["fcm","apn"]),M.default(et,"supportedPushDataFields",{conversation_sid:"conversationSid",message_sid:"messageSid",message_index:"messageIndex"}),M.default(et,"conversationAdded","conversationAdded"),M.default(et,"conversationJoined","conversationJoined"),M.default(et,"conversationLeft","conversationLeft"),M.default(et,"conversationRemoved","conversationRemoved"),M.default(et,"conversationUpdated","conversationUpdated"),M.default(et,"participantJoined","participantJoined"),M.default(et,"participantLeft","participantLeft"),M.default(et,"participantUpdated","participantUpdated"),M.default(et,"messageAdded","messageAdded"),M.default(et,"messageRemoved","messageRemoved"),M.default(et,"messageUpdated","messageUpdated"),M.default(et,"tokenAboutToExpire","tokenAboutToExpire"),M.default(et,"tokenExpired","tokenExpired"),M.default(et,"typingEnded","typingEnded"),M.default(et,"typingStarted","typingStarted"),M.default(et,"pushNotification","pushNotification"),M.default(et,"userSubscribed","userSubscribed"),M.default(et,"userUnsubscribed","userUnsubscribed"),M.default(et,"userUpdated","userUpdated"),M.default(et,"stateChanged","stateChanged"),M.default(et,"connectionStateChanged","connectionStateChanged"),M.default(et,"connectionError","connectionError"),nt=tt),F([m.validateTypesAsync(m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],t.KU.prototype,"updateToken",null),F([m.validateTypesAsync(m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],t.KU.prototype,"getConversationBySid",null),F([m.validateTypesAsync(m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],t.KU.prototype,"getConversationByUniqueName",null),F([m.validateTypesAsync(["undefined",m.objectSchema("conversation options",{friendlyName:["string","undefined"],isPrivate:["boolean","undefined"],uniqueName:["string","undefined"]})]),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Promise)],t.KU.prototype,"createConversation",null),F([m.validateTypesAsync(m.literal("fcm","apn"),"string"),H("design:type",Function),H("design:paramtypes",[String,String]),H("design:returntype",Promise)],t.KU.prototype,"setPushRegistrationId",null),F([m.validateTypesAsync(m.literal("fcm","apn")),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],t.KU.prototype,"unsetPushRegistrationId",null),F([m.validateTypesAsync(m.literal("fcm","apn"),m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String,String]),H("design:returntype",Promise)],t.KU.prototype,"removePushRegistrations",null),F([m.validateTypesAsync(m.pureObject),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Promise)],t.KU.prototype,"handlePushNotification",null),F([m.validateTypesAsync(m.nonEmptyString),H("design:type",Function),H("design:paramtypes",[String]),H("design:returntype",Promise)],t.KU.prototype,"getUser",null),F([m.validateTypesAsync("string",["undefined",m.pureObject]),H("design:type",Function),H("design:paramtypes",[String,Object]),H("design:returntype",Promise)],t.KU,"create",null),F([m.validateTypes(m.pureObject),H("design:type",Function),H("design:paramtypes",[Object]),H("design:returntype",Xe)],t.KU,"parsePushNotification",null),t.KU=nt=F([m.validateConstructorTypes(m.nonEmptyString,[m.pureObject,"undefined"]),H("design:paramtypes",[String,Object])],t.KU)},1263:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(9258),n(5202),n(9104),n(9147),n(8116),n(4772),n(5625),n(8887),n(1740);var r=n(8698);n(4105),n(974);var o=n(7424);n(9238),n(4778),n(4584);var i=n(861),a=n(6690),s=n(1655),l=n(4993),c=n(3808);function u(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}n(8225),n(7675);var d=u(r),f=u(o),p=u(i),h=u(a),m=u(s),v=u(l),g=u(c),y=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{checks:t}};function b(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y((function(e){var n,r=!1,o=[],i=b(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;"string"!==typeof a?(r=r||e instanceof a,o.push("an instance of ".concat(a.name))):(r=r||d.default(e)===a,o.push("of type ".concat(a)))}}catch(s){i.e(s)}finally{i.f()}return[r,o]}))};function k(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _=y((function(e){return["string"===typeof e&&e.length>0,"a non-empty string"]})),E=y((function(e){return["number"===typeof e&&Number.isInteger(e)&&e>=0,"a non-negative integer"]})),C=y((function(e){return["object"===d.default(e)&&null!==e&&!Array.isArray(e),"a pure object (non-null and non-array)"]}));function T(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g.default(e);if(t){var o=g.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v.default(this,n)}}function I(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=function(e,t){if(t.length>e.length)throw new Error("Expected at most ".concat(e.length," argument(s), but got ").concat(t.length));for(;t.length<e.length;)t.push(void 0);var n,r=I(t.entries());try{for(r.s();!(n=r.n()).done;){var o=f.default(n.value,2),i=o[0],a=o[1],s=M(e[i],a),l=f.default(s,4),c=l[0],u=l[1],d=l[2],p=l[3];if(!c)throw new Error("Argument ".concat(i+1," is expected to be ").concat(d).concat(p," but got ").concat(u))}}catch(h){r.e(h)}finally{r.f()}},P=function(e){var t,n,r;(["undefined","boolean","number","bigint","string"].includes(d.default(e))&&(n="string"===typeof e?'"'.concat(e,'"'):"".concat(e)),"object"===d.default(e)&&"Object"!==(null===e||void 0===e||null===(t=e.constructor)||void 0===t?void 0:t.name))&&(n=null===e?"null":"instance of ".concat(null===e||void 0===e||null===(r=e.constructor)||void 0===r?void 0:r.name));return n||(n=d.default(e)),n},R=function(e){var t,n=[],r=I(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;n.push(A(o))}}catch(i){r.e(i)}finally{r.f()}return n},A=function(e){var t,n=[],r=I(Array.isArray(e)?e:[e]);try{for(r.s();!(t=r.n()).done;){var o=t.value;"string"!==typeof o&&"function"!==typeof o?n.push(o):n.push(w(o))}}catch(i){r.e(i)}finally{r.f()}return n},M=function(e,t){var n,r,o=[],i=!1,a=I(e);try{for(a.s();!(r=a.n()).done;){var s,l=I(r.value.checks);try{for(l.s();!(s=l.n()).done;){var c=(0,s.value)(t),u=f.default(c,3),d=u[0],h=u[1],m=u[2];i=i||d,!n&&m&&(n=m),h&&(o=[].concat(p.default(o),"string"===typeof h?[h]:p.default(h)))}}catch(y){l.e(y)}finally{l.f()}}}catch(y){a.e(y)}finally{a.f()}if(i)return[!0];var v=n||P(t),g=o.length-1;return[!1,v,g>0?"".concat(o.slice(0,g).join(", ")," or ").concat(o[g]):o.join(", "),g>1?";":","]};function N(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.array=function(e,t){return y((function(n){if(!Array.isArray(n))return[!1,"an array of ".concat(e)];var r,o=N(n.entries());try{for(o.s();!(r=o.n()).done;){var i=f.default(r.value,2),a=i[0],s=i[1],l=M(A(t),s),c=f.default(l,3),u=c[0],d=c[1],p=c[2];if(!u)return[!1,"a valid array of ".concat(e," (index ").concat(a," should be ").concat(p,")"),"malformed array of ".concat(e," (index ").concat(a," is ").concat(d,")")]}}catch(h){o.e(h)}finally{o.f()}return[!0]}))},t.custom=y,t.literal=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y((function(e){var n,r=!1,o=[],i=k(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;r=r||e===a,o.push("string"===typeof a?'"'.concat(a,'"'):"".concat(a))}}catch(s){i.e(s)}finally{i.f()}return[r,o]}))},t.nonEmptyString=_,t.nonNegativeInteger=E,t.objectSchema=function(e,t){return y((function(n){if("object"!==d.default(n)||null===n||Array.isArray(n))return[!1,"valid ".concat(e," (should be a pure object)")];for(var r=0,o=Object.entries(t);r<o.length;r++){var i=f.default(o[r],2),a=i[0],s=i[1],l=M(A(s),n[a]),c=f.default(l,3),u=c[0],p=c[1],h=c[2];if(!u)return[!1,"valid ".concat(e,' (key "').concat(a,'" should be ').concat(h,")"),"malformed ".concat(e,' (key "').concat(a,'" is ').concat(p,")")]}return[!0]}))},t.pureObject=C,t.runtimeTypeValidation=O,t.stringifyReceivedType=P,t.type=w,t.validateConstructorTypes=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=R(t);return function(e){return function(e){m.default(n,e);var t=T(n);function n(){h.default(this,n);for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return O(r,o),t.call.apply(t,[this].concat(o))}return n}(e)}},t.validateTypes=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=R(t);return function(e,t,n){if("function"!==typeof n.value)throw new Error("The validateTypes decorator can only be applied to methods");var o=n.value;n.value=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(r,t),o.apply(this,t)}}},t.validateTypesAsync=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=R(t);return function(e,t,n){if("function"!==typeof n.value)throw new Error("The validateTypesAsync decorator can only be applied to methods");var o=n.value;n.value=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];try{O(r,t)}catch(i){return Promise.reject(i)}return o.apply(this,t)}}}},6491:function(e,t,n){"use strict";var r=n(1655).default,o=n(6389).default,i=n(3496).default,a=n(6690).default,s=n(9728).default,l="undefined"!==typeof l?l:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};Object.defineProperty(t,"__esModule",{value:!0});var c=n(7156),u=n(8416);n(7675);var d=n(4687);n(9104);var f=n(2895);n(288),n(2603),n(447),n(2872),n(3265),n(8887),n(1740),n(9330);var p=n(8645),h=n(1263);function m(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function v(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var g=m(c),y=m(u),b=m(d),x=v(f);function w(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function k(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function S(e,t){return["".concat((new Date).toISOString()," MCS Client ").concat(e,":")].concat(Array.from(t))}var _=function(){function e(t){a(this,e),y.default(this,"prefix",""),this.prefix=null!==t&&void 0!==t&&t.length>0?t+" ":""}return s(e,[{key:"setLevel",value:function(e){x.setLevel(e)}},{key:"trace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.trace.apply(null,S(this.prefix+"T",t))}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.debug.apply(null,S(this.prefix+"D",t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.info.apply(null,S(this.prefix+"I",t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.warn.apply(null,S(this.prefix+"W",t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.error.apply(null,S(this.prefix+"E",t))}}],[{key:"scope",value:function(t){return new e(t)}},{key:"setLevel",value:function(e){x.setLevel(e)}},{key:"trace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.trace.apply(null,S("T",t))}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.debug.apply(null,S("D",t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.info.apply(null,S("I",t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.warn.apply(null,S("W",t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x.error.apply(null,S("E",t))}}]),e}(),E=function(e,t){return"".concat((n=e,n.startsWith("http")?"":function(e){return"https://mcs.".concat(null!==e&&void 0!==e?e:"us1",".twilio.com")}(t))).concat(e);var n},C=function(){function e(t,n,r,o){var i,s,l,c,u,d;a(this,e);var f=null!==(i=null!==(s=o.MCS)&&void 0!==s?s:o)&&void 0!==i?i:{};this.region=null!==(l=null!==(c=f.region)&&void 0!==c?c:o.region)&&void 0!==l?l:"us1",this.mediaUrl=E(n,this.region),this.mediaSetUrl=r?E(r):"".concat(this.mediaUrl,"Set"),this.token=t,this.retryWhenThrottledOverride=null===(u=f.retryWhenThrottledOverride)||void 0===u||u,this.backoffConfigOverride=null!==(d=f.backoffConfigOverride)&&void 0!==d?d:e.backoffConfigDefault}return s(e,[{key:"updateToken",value:function(e){this.token=e}}],[{key:"backoffConfigDefault",get:function(){return{min:1e3,max:4e3,maxAttemptsCount:3}}},{key:"retryWhenThrottledDefault",get:function(){return true}}]),e}(),T=function(){function e(t,n,r){a(this,e),this.config=t,this.network=n,this._update(r)}return s(e,[{key:"sid",get:function(){return this.state.sid}},{key:"serviceSid",get:function(){return this.state.serviceSid}},{key:"dateCreated",get:function(){return this.state.dateCreated}},{key:"dateUpdated",get:function(){return this.state.dateUpdated}},{key:"contentType",get:function(){return this.state.contentType}},{key:"size",get:function(){return this.state.size}},{key:"fileName",get:function(){return this.state.filename}},{key:"filename",get:function(){return this.state.filename}},{key:"category",get:function(){return this.state.category}},{key:"getContentUrl",value:function(){var e=this;return g.default(b.default.mark((function t(){var n;return b.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.network.get("".concat(e.config.mediaUrl,"/").concat(e.sid));case 2:return n=t.sent,e._update(n.body),t.abrupt("return",Promise.resolve(e.state.contentDirectUrl));case 5:case"end":return t.stop()}}),t)})))()}},{key:"getCachedContentUrl",value:function(){var e=this;return g.default(b.default.mark((function t(){return b.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.state.contentDirectUrl){t.next=2;break}return t.abrupt("return",Promise.resolve(e.state.contentDirectUrl));case 2:return t.next=4,e.getContentUrl();case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t)})))()}},{key:"_update",value:function(e){var t,n,r,o;this.state={sid:e.sid,serviceSid:e.service_sid,channelSid:e.channel_sid,messageSid:e.message_sid,dateCreated:e.date_created?new Date(e.date_created):null,dateUploadUpdated:e.date_upload_updated?new Date(e.date_upload_updated):null,dateUpdated:e.date_updated?new Date(e.date_updated):null,size:e.size,contentType:e.content_type,author:e.author,url:e.url,contentUrl:e.links.content,contentDirectUrl:null!==(t=e.links.content_direct_temporary)&&void 0!==t?t:null,filename:null!==(n=e.filename)&&void 0!==n?n:null,category:null!==(r=e.category)&&void 0!==r?r:"media",isMultipartUpstream:null!==(o=e.is_multipart_upstream)&&void 0!==o&&o}}}]),e}(),I=function(e){r(n,e);var t=o(n);function n(e,r,o,i,s){var l;return a(this,n),(l=t.call(this,e)).code=r,l.body=o,l.status=i,l.headers=s,l}return s(n)}(i(Error)),B=l.XMLHttpRequest||{};function O(e){var t=e.getResponseHeader("Content-Type");if(!t||0!==t.indexOf("application/json")||0===e.responseText.length)return e.responseText;try{return JSON.parse(e.responseText)}catch(n){return e.responseText}}var P,R,A=function(){function e(){a(this,e)}return s(e,[{key:"get",value:function(t,n){return g.default(b.default.mark((function r(){return b.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",e.request("GET",t,n));case 1:case"end":return r.stop()}}),r)})))()}},{key:"post",value:function(t,n,r){return g.default(b.default.mark((function o(){return b.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",e.request("POST",t,n,r));case 1:case"end":return o.stop()}}),o)})))()}}],[{key:"request",value:function(e,t,n,r){return g.default(b.default.mark((function o(){return b.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new Promise((function(o,i){var a=new B;for(var s in a.open(e,t,!0),a.onreadystatechange=function(){if(4===a.readyState){var e,t=(e=a.getAllResponseHeaders())?e.split("\r\n").map((function(e){return e.split(": ")})).filter((function(e){return 2===e.length&&e[1].length>0})).reduce((function(e,t){return e[t[0]]=t[1],e}),{}):{},n=O(a);if(200<=a.status&&a.status<300)o({status:a.status,headers:t,body:n});else{var r,s,l=null!==(r=a.statusText)&&void 0!==r?r:"NONE";s="string"===typeof n?n&&1===n.split("\n",2).length?n:"":JSON.stringify(n);var c="".concat(a.status,": [").concat(l,"] ").concat(s);i(new I(c,a.status,n,l,t))}}},n)a.setRequestHeader(s,n[s]),"Content-Type"===s&&"application/json"===n[s]&&(r=JSON.stringify(r));a.send(r)})));case 1:case"end":return o.stop()}}),o)})))()}}]),e}(),M=_.scope("Network"),N=function(){function e(t,n){a(this,e),this.config=t,this.transport=n}return s(e,[{key:"backoffConfig",value:function(){return Object.assign(C.backoffConfigDefault,this.config.backoffConfigOverride)}},{key:"retryWhenThrottled",value:function(){var e,t;return null!==(e=null!==(t=this.config.retryWhenThrottledOverride)&&void 0!==t?t:C.retryWhenThrottledDefault)&&void 0!==e&&e}},{key:"executeWithRetry",value:function(e,t){var n=this;return g.default(b.default.mark((function r(){return b.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",new Promise((function(r,o){var i=[502,503,504];t&&i.push(429);var a=new p.Retrier(n.backoffConfig());a.on("attempt",g.default(b.default.mark((function t(){var n;return b.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e();case 3:n=t.sent,a.succeeded(n),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),i.indexOf(t.t0.status)>-1||"Twilsock disconnected"===t.t0.message?a.failed(t.t0):(a.removeAllListeners(),a.cancel(),o(t.t0));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))),a.on("succeeded",(function(e){r(e)})),a.on("cancelled",(function(e){return o(e)})),a.on("failed",(function(e){return o(e)})),a.start()})));case 1:case"end":return r.stop()}}),r)})))()}},{key:"get",value:function(e){var t=this;return g.default(b.default.mark((function n(){var r,o;return b.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={"X-Twilio-Token":t.config.token},M.trace("sending GET request to ",e," headers ",r),n.prev=2,n.next=5,t.executeWithRetry((function(){return t.transport.get(e,r)}),t.retryWhenThrottled());case 5:return o=n.sent,M.trace("response",o),n.abrupt("return",o);case 10:throw n.prev=10,n.t0=n.catch(2),M.debug("get() error ".concat(n.t0)),n.t0;case 14:case"end":return n.stop()}}),n,null,[[2,10]])})))()}},{key:"post",value:function(e,t,n,r,o){var i=this;return g.default(b.default.mark((function a(){var s,c,u;return b.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s={"X-Twilio-Token":i.config.token},"undefined"!==typeof FormData&&n instanceof FormData||!r||Object.assign(s,{"Content-Type":r}),c=new URL(e),t&&c.searchParams.append("Category",t),o&&c.searchParams.append("Filename",o),M.trace("sending POST request to ".concat(e," with headers ").concat(s)),a.prev=6,a.next=9,i.transport.post(c.href,s,n);case 9:u=a.sent,a.next=18;break;case 12:if(a.prev=12,a.t0=a.catch(6),!(void 0===l.XMLHttpRequest&&n instanceof FormData)){a.next=16;break}throw new TypeError("Posting FormData supported only with browser engine's FormData");case 16:throw M.debug("post() error ".concat(a.t0)),a.t0;case 18:return M.trace("response",u),a.abrupt("return",u);case 20:case"end":return a.stop()}}),a,null,[[6,12]])})))()}}]),e}(),D=_.scope("");t.default=(R=P=function(){function e(t,n,r){var o,i;a(this,e);var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.options=s,this.options.logLevel=null!==(o=this.options.logLevel)&&void 0!==o?o:"silent",this.config=new C(t,n,r,this.options),D.setLevel(this.options.logLevel),this.options.transport=null!==(i=this.options.transport)&&void 0!==i?i:new A,this.transport=this.options.transport,this.network=new N(this.config,this.transport)}return s(e,[{key:"updateToken",value:function(e){D.info("updateToken"),this.config.updateToken(e)}},{key:"get",value:function(e){var t=this;return g.default(b.default.mark((function n(){var r;return b.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.network.get("".concat(t.config.mediaUrl,"/").concat(e));case 2:return r=n.sent,n.abrupt("return",new T(t.config,t.network,r.body));case 4:case"end":return n.stop()}}),n)})))()}},{key:"post",value:function(e,t,n,r){var o=this;return g.default(b.default.mark((function i(){var a;return b.default.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,o.network.post(o.config.mediaUrl,null!==n&&void 0!==n?n:"media",t,e,r);case 2:return a=i.sent,i.abrupt("return",new T(o.config,o.network,a.body));case 4:case"end":return i.stop()}}),i)})))()}},{key:"postFormData",value:function(e,t){var n=this;return g.default(b.default.mark((function r(){var o;return b.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.network.post(n.config.mediaUrl,null!==t&&void 0!==t?t:"media",e);case 2:return o=r.sent,r.abrupt("return",new T(n.config,n.network,o.body));case 4:case"end":return r.stop()}}),r)})))()}},{key:"mediaSetGet",value:function(e){var t=this;return g.default(b.default.mark((function n(){var r,o;return b.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={command:"get",list:e.map((function(e){return{media_sid:e}}))},n.next=3,t.network.post("".concat(t.config.mediaSetUrl),null,r,"application/json");case 3:return o=n.sent,n.abrupt("return",o.body.map((function(e){if(200!==e.code)throw new Error("Failed to obtain detailed information about Media items (failed SID ".concat(e.media_record.sid,")"));return new T(t.config,t.network,e.media_record)})));case 5:case"end":return n.stop()}}),n)})))()}}]),e}(),y.default(P,"version","0.5.3"),R),w([h.validateTypes(h.nonEmptyString),k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",void 0)],t.default.prototype,"updateToken",null),w([h.validateTypesAsync(h.nonEmptyString),k("design:type",Function),k("design:paramtypes",[String]),k("design:returntype",Promise)],t.default.prototype,"get",null),t.default=w([h.validateConstructorTypes(h.nonEmptyString,h.nonEmptyString,[h.nonEmptyString,h.literal(null)],[h.pureObject,"undefined"]),k("design:paramtypes",[String,String,Object,Object])],t.default),t.Client=t.default,t.McsClient=t.default,t.McsMedia=T,t.Media=T,t.default=t.default},6390:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(4584);var r=n(7156),o=n(6690),i=n(9728),a=n(1655),s=n(4993),l=n(3808),c=n(4687);n(8887),n(5742),n(5202),n(9147),n(1740),n(4778),n(2583),n(7675);var u=n(8698),d=n(8868),f=n(6115),p=n(8416);n(4208),n(9104),n(3265);var h=n(8645),m=n(7424),v=n(861);n(6669),n(3858);var g=n(2895),y=n(4610),b=n(1263);function x(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function w(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var k=x(r),S=x(o),_=x(i),E=x(a),C=x(s),T=x(l),I=x(c),B=x(u),O=x(f),P=x(p),R=x(m),A=x(v),M=w(g),N=w(y);function D(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":B.default(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function L(e,t){if("object"===("undefined"===typeof Reflect?"undefined":B.default(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function j(){}function z(){z.init.call(this)}function W(e){return void 0===e._maxListeners?z.defaultMaxListeners:e._maxListeners}function Z(e,t,n){if(t)e.call(n);else for(var r=e.length,o=V(e,r),i=0;i<r;++i)o[i].call(n)}function F(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=V(e,o),a=0;a<o;++a)i[a].call(n,r)}function H(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=V(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function U(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=V(e,a),l=0;l<a;++l)s[l].call(n,r,o,i)}function $(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=V(e,o),a=0;a<o;++a)i[a].apply(n,r)}function G(e,t,n,r){var o,i,a,s;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new j,e._eventsCount=0),a){if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=W(e))&&o>0&&a.length>o){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,"function"===typeof console.warn?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function q(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function K(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function V(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}j.prototype=Object.create(null),z.EventEmitter=z,z.usingDomains=!1,z.prototype.domain=void 0,z.prototype._events=void 0,z.prototype._maxListeners=void 0,z.defaultMaxListeners=10,z.init=function(){this.domain=null,z.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new j,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},z.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},z.prototype.getMaxListeners=function(){return W(this)},z.prototype.emit=function(e){var t,n,r,o,i,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u="function"===typeof n;switch(r=arguments.length){case 1:Z(n,u,this);break;case 2:F(n,u,this,arguments[1]);break;case 3:H(n,u,this,arguments[1],arguments[2]);break;case 4:U(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];$(n,u,this,o)}return!0},z.prototype.addListener=function(e,t){return G(this,e,t,!1)},z.prototype.on=z.prototype.addListener,z.prototype.prependListener=function(e,t){return G(this,e,t,!0)},z.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,q(this,e,t)),this},z.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,q(this,e,t)),this},z.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new j:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new j,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o);r.removeListener&&this.emit("removeListener",e,a||t)}return this},z.prototype.off=function(e,t){return this.removeListener(e,t)},z.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new j,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new j:delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new j,this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},z.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"===typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},z.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):K.call(e,t)},z.prototype.listenerCount=K,z.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var Y=M.getLogger("twilio-notificatiions");function X(e,t){return["".concat((new Date).toISOString()," Twilio.Notifications ").concat(e,":")].concat(Array.from(t))}var J=function(){function e(){S.default(this,e)}return _.default(e,[{key:"setLevel",value:function(e){Y.setLevel(e)}},{key:"trace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Y.trace.apply(null,X("T",t))}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Y.debug.apply(null,X("D",t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Y.info.apply(null,X("I",t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Y.warn.apply(null,X("W",t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Y.error.apply(null,X("E",t))}}]),e}(),Q=new J;function ee(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T.default(e);if(t){var o=T.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C.default(this,n)}}var te=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;S.default(this,e),this.token=t,this.notificationId=n,this.messageTypes=r};function ne(e,t){var n=new Set;return e.notificationId!==t.notificationId&&n.add("notificationId"),e.token!==t.token&&n.add("token"),function(e,t){return[].concat(A.default(A.default(e).filter((function(e){return!t.has(e)}))),A.default(A.default(t).filter((function(t){return!e.has(t)}))))}(e.messageTypes,t.messageTypes).length>0&&n.add("messageType"),[n.size>0,n]}var re=function(e){E.default(n,e);var t=ee(n);function n(e){var r;return S.default(this,n),r=t.call(this),P.default(O.default(r),"desiredState",new te),P.default(O.default(r),"currentState",new te),P.default(O.default(r),"_hasActiveAttempt",!1),r.channelType=e,r}return _.default(n,[{key:"setNotificationId",value:function(e){this.desiredState.notificationId=e}},{key:"isActive",value:function(){return""!==this.desiredState.notificationId}},{key:"subscribe",value:function(e){this.desiredState.messageTypes.has(e)?Q.debug("message type '".concat(e,"' for channel ").concat(this.channelType," is already registered")):this.desiredState.messageTypes.add(e)}},{key:"unsubscribe",value:function(e){this.desiredState.messageTypes.has(e)&&this.desiredState.messageTypes.delete(e)}},{key:"updateToken",value:function(e){this.desiredState.token=e}},{key:"commitChanges",value:function(){var e=k.default(I.default.mark((function e(){var t,n,r,o,i,a;return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._hasActiveAttempt){e.next=3;break}throw Q.error("One registration attempt is already in progress"),new Error("One registration attempt is already in progress");case 3:if(t=ne(this.desiredState,this.currentState),n=R.default(t,2),r=n[0],o=n[1],r){e.next=6;break}return e.abrupt("return");case 6:if(this.currentState.notificationId||o.delete("notificationId"),Q.trace("Persisting ".concat(this.channelType," registration"),o,this.desiredState),e.prev=8,this._hasActiveAttempt=!0,(i=new te).token=this.desiredState.token,i.notificationId=this.desiredState.notificationId,i.messageTypes=new Set(this.desiredState.messageTypes),!(i.messageTypes.size>0)){e.next=24;break}return e.next=17,this.updateRegistration(i,o);case 17:a=e.sent,this.currentState.token=a.token,this.currentState.notificationId=a.notificationId,this.currentState.messageTypes=new Set(a.messageTypes),this.emit("stateChanged",this.channelType,"registered",this.currentState),e.next=30;break;case 24:return e.next=26,this.removeRegistration();case 26:this.currentState.token=i.token,this.currentState.notificationId=i.notificationId,this.currentState.messageTypes.clear(),this.emit("stateChanged",this.channelType,"unregistered",this.currentState);case 30:e.next=35;break;case 32:throw e.prev=32,e.t0=e.catch(8),e.t0;case 35:return e.prev=35,this._hasActiveAttempt=!1,e.finish(35);case 38:case"end":return e.stop()}}),e,this,[[8,32,35,38]])})));return function(){return e.apply(this,arguments)}}()}]),n}(z);function oe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T.default(e);if(t){var o=T.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C.default(this,n)}}var ie={min:2e3,max:12e4,randomness:.2},ae=function(e){E.default(n,e);var t=oe(n);function n(e,r,o,i){var a;return S.default(this,n),a=t.call(this,e),P.default(O.default(a),"registrationId",null),a.context=r,a.twilsock=o,a.registrarUrl=i,a}return _.default(n,[{key:"updateRegistration",value:function(){var e=k.default(I.default.mark((function e(t,n){var r,o,i,a,s,l=this;return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.has("notificationId")){e.next=3;break}return e.next=3,this.removeRegistration();case 3:if(t.notificationId&&t.notificationId.length){e.next=6;break}throw Q.error("No push notification ID for registration"),new Error("No push notification ID for registration");case 6:return Q.trace("Registering",this.channelType,t),r={endpoint_platform:this.context.platform,channel_type:this.channelType,version:this.context.protocolVersion.toString(),message_types:Array.from(t.messageTypes),data:{registration_id:t.notificationId}},o=this.context.productId,i="".concat(this.registrarUrl,"?productId=").concat(o),a={"Content-Type":"application/json"},Q.trace("Creating registration for channel ".concat(this.channelType)),e.prev=12,e.next=15,new h.AsyncRetrier(ie).run((function(){return l.twilsock.post(i,a,r,o)}));case 15:s=e.sent,this.registrationId=s.body.id,Q.debug("Registration created: ",s),e.next=24;break;case 20:throw e.prev=20,e.t0=e.catch(12),Q.error("Registration failed: ",e.t0),e.t0;case 24:return e.abrupt("return",t);case 25:case"end":return e.stop()}}),e,this,[[12,20]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"removeRegistration",value:function(){var e=k.default(I.default.mark((function e(){var t,n,r,o=this;return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.registrationId){e.next=2;break}return e.abrupt("return");case 2:return t=this.context.productId,n="".concat(this.registrarUrl,"/").concat(this.registrationId,"?productId=").concat(t),r={"Content-Type":"application/json"},Q.trace("Removing registration for ".concat(this.channelType)),e.prev=6,e.next=9,new h.AsyncRetrier(Object.assign(ie,{maxAttemptsCount:3})).run((function(){return o.twilsock.delete(n,r,{},t)}));case 9:this.registrationId=null,this.currentState.notificationId="",Q.debug("Registration removed for ".concat(this.channelType)),e.next=18;break;case 14:throw e.prev=14,e.t0=e.catch(6),Q.error("Failed to remove registration ",this.channelType,e.t0),e.t0;case 18:case"end":return e.stop()}}),e,this,[[6,14]])})));return function(){return e.apply(this,arguments)}}()},{key:"sendDeviceRemoveRequest",value:function(){var e=k.default(I.default.mark((function e(t){var n,r,o,i,a=this;return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==t){e.next=2;break}throw new Error("Empty registration ID");case 2:return n=this.context.productId,r="".concat(this.registrarUrl,"?productId=").concat(n),o={"Content-Type":"application/json"},i={binding_type:this.channelType,address:t},e.prev=6,Q.trace("Removing old registrations for ".concat(this.channelType)),e.next=10,new h.AsyncRetrier(Object.assign(ie,{maxAttemptsCount:3})).run((function(){return a.twilsock.delete(r,o,i,n)}));case 10:this.registrationId=null,this.currentState.notificationId="",Q.debug("Registration removed for ".concat(this.channelType)),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(6),Q.error("Failed to remove registration ",this.channelType,e.t0),e.t0;case 19:case"end":return e.stop()}}),e,this,[[6,15]])})));return function(t){return e.apply(this,arguments)}}()}]),n}(re);function se(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T.default(e);if(t){var o=T.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C.default(this,n)}}var le,ce=function(e){E.default(n,e);var t=se(n);function n(e,r,o){var i;return S.default(this,n),i=t.call(this,"twilsock"),P.default(O.default(i),"contextId",N.v4()),i.productId=e,i.platform=r,i.twilsock=o,i}return _.default(n,[{key:"updateRegistration",value:function(){var e=k.default(I.default.mark((function e(t,n){var r,o;return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.has("messageType")){e.next=2;break}return e.abrupt("return",t);case 2:return r=Array.from(t.messageTypes),o={product_id:this.productId,notification_protocol_version:4,endpoint_platform:this.platform,message_types:r},e.prev=4,e.next=7,this.twilsock.setNotificationsContext(this.contextId,o);case 7:e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(4),Q.error("Failed to update twilsock notification context: ".concat(e.t0)),e.t0;case 13:return e.abrupt("return",t);case 14:case"end":return e.stop()}}),e,this,[[4,9]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"removeRegistration",value:function(){var e=k.default(I.default.mark((function e(){return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.twilsock.removeNotificationsContext(this.contextId);case 3:e.next=9;break;case 5:throw e.prev=5,e.t0=e.catch(0),Q.error("Failed to remove twilsock notification context: ".concat(e.t0)),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(){return e.apply(this,arguments)}}()},{key:"sendDeviceRemoveRequest",value:function(){var e=k.default(I.default.mark((function e(t){return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),n}(re);function ue(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T.default(e);if(t){var o=T.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C.default(this,n)}}var de=b.literal("apn","fcm","twilsock");t.Notifications=le=function(e){E.default(n,e);var t=ue(n);function n(e){var r,o,i,a,s,l,c,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};S.default(this,n),c=t.call(this),u.logLevel=null!==(r=u.logLevel)&&void 0!==r?r:"error",Q.setLevel(u.logLevel);var f=null!==(o=u.productId)&&void 0!==o?o:"notifications",p=!u.twilsockClient,h=u.twilsockClient=null!==(i=u.twilsockClient)&&void 0!==i?i:new d.TwilsockClient(e,f,u),m=null!==(a=u.notifications)&&void 0!==a?a:{},v=null!==(s=null!==(l=m.region)&&void 0!==l?l:u.region)&&void 0!==s?s:"us1",g="https://ers.".concat(v,".twilio.com/v1/registrations"),y=m.ersUrl||g;c.connectors=new Map;var b=le._detectPlatform();return c.connectors.set("apn",new ae("apn",{protocolVersion:4,productId:f,platform:b},h,y)),c.connectors.set("fcm",new ae("fcm",{protocolVersion:3,productId:f,platform:b},h,y)),c.connectors.set("twilsock",new ce(f,b,h)),h.on("stateChanged",(function(e){return c.emit("transportState",e)})),c._connector("twilsock").on("stateChanged",(function(e,t,n){return c.emit("stateChanged",e,t,n)})),c._connector("apn").on("stateChanged",(function(e,t,n){return c.emit("stateChanged",e,t,n)})),c._connector("fcm").on("stateChanged",(function(e,t,n){return c.emit("stateChanged",e,t,n)})),h.on("message",(function(e,t){return c._routeMessage(e,t)})),c.updateToken(e),p&&(h.connect(),c.twilsock=h),c}return _.default(n,[{key:"shutdown",value:function(){var e=k.default(I.default.mark((function e(){return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connectors.clear(),!this.twilsock){e.next=4;break}return e.next=4,this.twilsock.disconnect();case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPushRegistrationId",value:function(e,t){Q.debug("Set ".concat(e," push registration id '").concat(t,"'")),this._connector(e).setNotificationId(t)}},{key:"subscribe",value:function(e,t){Q.debug("Add ".concat(e," subscriptions for message type ").concat(t)),this._connector(e).subscribe(t)}},{key:"unsubscribe",value:function(e,t){Q.debug("Remove ".concat(e," subscriptions for message type ").concat(t)),this._connector(e).unsubscribe(t)}},{key:"updateToken",value:function(e){this.connectors.forEach((function(t){return t.updateToken(e)}))}},{key:"commitChanges",value:function(){var e=k.default(I.default.mark((function e(){var t;return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],this.connectors.forEach((function(e){e.isActive()&&t.push(e.commitChanges())})),e.next=4,Promise.all(t);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeRegistrations",value:function(){var e=k.default(I.default.mark((function e(t,n){return I.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._connector(t).sendDeviceRemoveRequest(n);case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"handlePushNotification",value:function(e){return{messageType:e.twi_message_type,payload:e.payload}}},{key:"_routeMessage",value:function(e,t){Q.debug("Notification message arrived: ",e,t),this.emit("message",e,t)}},{key:"_connector",value:function(e){var t=this.connectors.get(e);if(!t)throw new Error("Unknown channel type: ".concat(e));return t}}],[{key:"_detectPlatform",value:function(){var e="";return"undefined"!==typeof navigator?(e="unknown","undefined"!==typeof navigator.product&&(e=navigator.product),"undefined"!==typeof navigator.userAgent&&(e=navigator.userAgent)):e="web",e.substring(0,128)}}]),n}(z),D([b.validateTypes(de,b.nonEmptyString),L("design:type",Function),L("design:paramtypes",[String,String]),L("design:returntype",void 0)],t.Notifications.prototype,"setPushRegistrationId",null),D([b.validateTypes(de,b.nonEmptyString),L("design:type",Function),L("design:paramtypes",[String,String]),L("design:returntype",void 0)],t.Notifications.prototype,"subscribe",null),D([b.validateTypes(de,b.nonEmptyString),L("design:type",Function),L("design:paramtypes",[String,String]),L("design:returntype",void 0)],t.Notifications.prototype,"unsubscribe",null),D([b.validateTypes(b.nonEmptyString),L("design:type",Function),L("design:paramtypes",[String]),L("design:returntype",void 0)],t.Notifications.prototype,"updateToken",null),D([b.validateTypesAsync(de,b.nonEmptyString),L("design:type",Function),L("design:paramtypes",[String,String]),L("design:returntype",Promise)],t.Notifications.prototype,"removeRegistrations",null),t.Notifications=le=D([b.validateConstructorTypes(b.nonEmptyString,[b.pureObject,"undefined",b.literal(null)]),L("design:paramtypes",[String,Object])],t.Notifications)},8645:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(4584);var r=n(6690),o=n(9728),i=n(6115),a=n(1655),s=n(4993),l=n(3808),c=n(8416);function u(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}n(5202),n(7675);var d=u(r),f=u(o),p=u(i),h=u(a),m=u(s),v=u(l),g=u(c);function y(){}function b(){b.init.call(this)}function x(e){return void 0===e._maxListeners?b.defaultMaxListeners:e._maxListeners}function w(e,t,n){if(t)e.call(n);else for(var r=e.length,o=B(e,r),i=0;i<r;++i)o[i].call(n)}function k(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=B(e,o),a=0;a<o;++a)i[a].call(n,r)}function S(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=B(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function _(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=B(e,a),l=0;l<a;++l)s[l].call(n,r,o,i)}function E(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=B(e,o),a=0;a<o;++a)i[a].apply(n,r)}function C(e,t,n,r){var o,i,a,s;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new y,e._eventsCount=0),a){if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=x(e))&&o>0&&a.length>o){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,"function"===typeof console.warn?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function T(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function I(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function B(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function O(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v.default(e);if(t){var o=v.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m.default(this,n)}}y.prototype=Object.create(null),b.EventEmitter=b,b.usingDomains=!1,b.prototype.domain=void 0,b.prototype._events=void 0,b.prototype._maxListeners=void 0,b.defaultMaxListeners=10,b.init=function(){this.domain=null,b.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new y,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},b.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},b.prototype.getMaxListeners=function(){return x(this)},b.prototype.emit=function(e){var t,n,r,o,i,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u="function"===typeof n;switch(r=arguments.length){case 1:w(n,u,this);break;case 2:k(n,u,this,arguments[1]);break;case 3:S(n,u,this,arguments[1],arguments[2]);break;case 4:_(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];E(n,u,this,o)}return!0},b.prototype.addListener=function(e,t){return C(this,e,t,!1)},b.prototype.on=b.prototype.addListener,b.prototype.prependListener=function(e,t){return C(this,e,t,!0)},b.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,T(this,e,t)),this},b.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,T(this,e,t)),this},b.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new y:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new y,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o);r.removeListener&&this.emit("removeListener",e,a||t)}return this},b.prototype.off=function(e,t){return this.removeListener(e,t)},b.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new y,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new y:delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new y,this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},b.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"===typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},b.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):I.call(e,t)},b.prototype.listenerCount=I,b.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var P=function(e){h.default(n,e);var t=O(n);function n(e){var r;return d.default(this,n),r=t.call(this),g.default(p.default(r),"timeout",null),g.default(p.default(r),"startTimestamp",-1),r.minDelay=e.min,r.maxDelay=e.max,r.initialDelay=e.initial||0,r.maxAttemptsCount=e.maxAttemptsCount||0,r.maxAttemptsTime=e.maxAttemptsTime||0,r.randomness=e.randomness||0,r.inProgress=!1,r.attemptNum=0,r.prevDelay=0,r.currDelay=0,r}return f.default(n,[{key:"attempt",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.attemptNum++,this.emit("attempt",this)}},{key:"nextDelay",value:function(e){if("number"===typeof e)return this.prevDelay=0,this.currDelay=e,e;if(0==this.attemptNum)return this.initialDelay;if(1==this.attemptNum)return this.currDelay=this.minDelay,this.currDelay;this.prevDelay=this.currDelay;var t=this.currDelay+this.prevDelay;return this.maxDelay&&t>this.maxDelay&&(this.currDelay=this.maxDelay,t=this.maxDelay),this.currDelay=t,t}},{key:"randomize",value:function(e){var t=e*this.randomness,n=Math.round(Math.random()*t*2-t);return Math.max(0,e+n)}},{key:"scheduleAttempt",value:function(e){var t=this;if(this.maxAttemptsCount&&this.attemptNum>=this.maxAttemptsCount)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt count limit reached"));var n=this.nextDelay(e);if(n=this.randomize(n),this.maxAttemptsTime&&this.startTimestamp+this.maxAttemptsTime<Date.now()+n)return this.cleanup(),void this.emit("failed",new Error("Maximum attempt time limit reached"));this.timeout=setTimeout((function(){return t.attempt()}),n)}},{key:"cleanup",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.inProgress=!1,this.attemptNum=0,this.prevDelay=0,this.currDelay=0}},{key:"start",value:function(){if(this.inProgress)throw new Error("Retrier is already in progress");this.inProgress=!0,this.startTimestamp=Date.now(),this.scheduleAttempt(this.initialDelay)}},{key:"cancel",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null,this.inProgress=!1,this.emit("cancelled"))}},{key:"succeeded",value:function(e){this.emit("succeeded",e)}},{key:"failed",value:function(e,t){if(this.timeout)throw new Error("Retrier attempt is already in progress");this.scheduleAttempt(t)}}]),n}(b),R=function(e){h.default(n,e);var t=O(n);function n(e){var r;return d.default(this,n),r=t.call(this),g.default(p.default(r),"resolve",(function(){})),g.default(p.default(r),"reject",(function(){})),r.retrier=new P(e),r}return f.default(n,[{key:"run",value:function(e){var t=this;return this.retrier.on("attempt",(function(){e().then((function(e){return t.retrier.succeeded(e)})).catch((function(e){return t.retrier.failed(e)}))})),this.retrier.on("succeeded",(function(e){return t.resolve(e)})),this.retrier.on("cancelled",(function(){return t.reject(new Error("Cancelled"))})),this.retrier.on("failed",(function(e){return t.reject(e)})),new Promise((function(e,n){t.resolve=e,t.reject=n,t.retrier.start()}))}},{key:"cancel",value:function(){this.retrier.cancel()}}]),n}(b);function A(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v.default(e);if(t){var o=v.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m.default(this,n)}}function M(e){return void 0!==e&&null!==e}var N=function(e){h.default(n,e);var t=A(n);function n(e){var r;d.default(this,n),r=t.call(this),g.default(p.default(r),"backoffDelay",0),g.default(p.default(r),"nextBackoffDelay",0),g.default(p.default(r),"backoffNumber",0),g.default(p.default(r),"timeoutID",null),g.default(p.default(r),"maxNumberOfRetry",-1);var o=e=e||{},i=o.initialDelay,a=o.maxDelay,s=o.randomisationFactor,l=o.factor;if(M(i)&&i<1)throw new Error("The initial timeout must be equal to or greater than 1.");if(M(a)&&a<=1)throw new Error("The maximal timeout must be greater than 1.");if(M(s)&&(s<0||s>1))throw new Error("The randomisation factor must be between 0 and 1.");if(M(l)&&l<=1)throw new Error("Exponential factor should be greater than 1.");if(r.initialDelay=i||100,r.maxDelay=a||1e4,r.maxDelay<=r.initialDelay)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");return r.randomisationFactor=s||0,r.factor=l||2,r.reset(),r}return f.default(n,[{key:"backoff",value:function(e){null==this.timeoutID&&(this.backoffNumber===this.maxNumberOfRetry?(this.emit("fail",e),this.reset()):(this.backoffDelay=this.next(),this.timeoutID=setTimeout(this.onBackoff.bind(this),this.backoffDelay),this.emit("backoff",this.backoffNumber,this.backoffDelay,e)))}},{key:"reset",value:function(){this.backoffDelay=0,this.nextBackoffDelay=this.initialDelay,this.backoffNumber=0,this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=null}},{key:"failAfter",value:function(e){if(e<=0)throw new Error("Expected a maximum number of retry greater than 0 but got ".concat(e));this.maxNumberOfRetry=e}},{key:"next",value:function(){this.backoffDelay=Math.min(this.nextBackoffDelay,this.maxDelay),this.nextBackoffDelay=this.backoffDelay*this.factor;var e=1+Math.random()*this.randomisationFactor;return Math.min(this.maxDelay,Math.round(this.backoffDelay*e))}},{key:"onBackoff",value:function(){this.timeoutID=null,this.emit("ready",this.backoffNumber,this.backoffDelay),this.backoffNumber++}}],[{key:"exponential",value:function(e){return new n(e)}}]),n}(b);t.AsyncRetrier=R,t.Backoff=N,t.Retrier=P},2839:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(861),o=n(6690),i=n(9728),a=n(6115),s=n(1588),l=n(1655),c=n(4993),u=n(3808),d=n(8416);function f(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var p=f(r),h=f(o),m=f(i),v=f(a),g=f(s),y=f(l),b=f(c),x=f(u),w=f(d);function k(){}function S(){S.init.call(this)}function _(e){return void 0===e._maxListeners?S.defaultMaxListeners:e._maxListeners}function E(e,t,n){if(t)e.call(n);else for(var r=e.length,o=A(e,r),i=0;i<r;++i)o[i].call(n)}function C(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=A(e,o),a=0;a<o;++a)i[a].call(n,r)}function T(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=A(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function I(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=A(e,a),l=0;l<a;++l)s[l].call(n,r,o,i)}function B(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=A(e,o),a=0;a<o;++a)i[a].apply(n,r)}function O(e,t,n,r){var o,i,a,s;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new k,e._eventsCount=0),a){if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=_(e))&&o>0&&a.length>o){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,"function"===typeof console.warn?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function P(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function R(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function A(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}function M(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x.default(e);if(t){var o=x.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b.default(this,n)}}k.prototype=Object.create(null),S.EventEmitter=S,S.usingDomains=!1,S.prototype.domain=void 0,S.prototype._events=void 0,S.prototype._maxListeners=void 0,S.defaultMaxListeners=10,S.init=function(){this.domain=null,S.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new k,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},S.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},S.prototype.getMaxListeners=function(){return _(this)},S.prototype.emit=function(e){var t,n,r,o,i,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u="function"===typeof n;switch(r=arguments.length){case 1:E(n,u,this);break;case 2:C(n,u,this,arguments[1]);break;case 3:T(n,u,this,arguments[1],arguments[2]);break;case 4:I(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];B(n,u,this,o)}return!0},S.prototype.addListener=function(e,t){return O(this,e,t,!1)},S.prototype.on=S.prototype.addListener,S.prototype.prependListener=function(e,t){return O(this,e,t,!0)},S.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,P(this,e,t)),this},S.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,P(this,e,t)),this},S.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new k:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new k,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o);r.removeListener&&this.emit("removeListener",e,a||t)}return this},S.prototype.off=function(e,t){return this.removeListener(e,t)},S.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new k,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new k:delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new k,this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},S.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"===typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},S.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):R.call(e,t)},S.prototype.listenerCount=R,S.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var N=function(e){y.default(n,e);var t=M(n);function n(){var e;return h.default(this,n),e=t.call(this),w.default(v.default(e),"eventHistory",new Map),e}return m.default(n,[{key:"on",value:function(e,t){return g.default(x.default(n.prototype),"on",this).call(this,e,t)}},{key:"once",value:function(e,t){return g.default(x.default(n.prototype),"once",this).call(this,e,t)}},{key:"off",value:function(e,t){return g.default(x.default(n.prototype),"off",this).call(this,e,t)}},{key:"emit",value:function(e){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return this.eventHistory.set(e,o),(t=g.default(x.default(n.prototype),"emit",this)).call.apply(t,[this,e].concat(o))}},{key:"addListener",value:function(e,t){return g.default(x.default(n.prototype),"addListener",this).call(this,e,t)}},{key:"removeListener",value:function(e,t){return g.default(x.default(n.prototype),"removeListener",this).call(this,e,t)}},{key:"addListenerWithReplay",value:function(e,t){var n=this.eventHistory.get(e);return void 0!==n&&t.apply(void 0,p.default(n)),this.addListener(e,t)}},{key:"onWithReplay",value:function(e,t){return this.addListenerWithReplay(e,t)}}]),n}(S);t.ReplayEventEmitter=N},6724:function(e,t,n){var r=n(9218),o=n(1772),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},611:function(e,t,n){var r=n(1219),o=n(1772),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},6299:function(e,t,n){var r=n(9218),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},5715:function(e,t,n){var r=n(5028),o=n(4385),i=n(1592).f,a=r("unscopables"),s=Array.prototype;void 0==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},5466:function(e,t,n){"use strict";var r=n(8424).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},4817:function(e,t,n){var r=n(8946),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},5884:function(e,t,n){var r=n(3931),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},4914:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},1531:function(e,t,n){var r=n(2837);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},3866:function(e,t,n){"use strict";var r,o,i,a=n(4914),s=n(1196),l=n(6840),c=n(9218),u=n(3931),d=n(3013),f=n(7205),p=n(1772),h=n(3873),m=n(7543),v=n(1592).f,g=n(8946),y=n(4305),b=n(4381),x=n(5028),w=n(6520),k=n(9671),S=k.enforce,_=k.get,E=l.Int8Array,C=E&&E.prototype,T=l.Uint8ClampedArray,I=T&&T.prototype,B=E&&y(E),O=C&&y(C),P=Object.prototype,R=l.TypeError,A=x("toStringTag"),M=w("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",D=a&&!!b&&"Opera"!==f(l.opera),L=!1,j={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},z={BigInt64Array:8,BigUint64Array:8},W=function(e){if(!u(e))return!1;var t=f(e);return d(j,t)||d(z,t)};for(r in j)(i=(o=l[r])&&o.prototype)?S(i).TypedArrayConstructor=o:D=!1;for(r in z)(i=(o=l[r])&&o.prototype)&&(S(i).TypedArrayConstructor=o);if((!D||!c(B)||B===Function.prototype)&&(B=function(){throw R("Incorrect invocation")},D))for(r in j)l[r]&&b(l[r],B);if((!D||!O||O===P)&&(O=B.prototype,D))for(r in j)l[r]&&b(l[r].prototype,O);if(D&&y(I)!==O&&b(I,O),s&&!d(O,A))for(r in L=!0,v(O,A,{get:function(){return u(this)?this[M]:void 0}}),j)l[r]&&h(l[r],M,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:L&&M,aTypedArray:function(e){if(W(e))return e;throw R("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||g(B,e)))return e;throw R(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var o in j){var i=l[o];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(c){}}}O[e]&&!n||m(O,e,n?t:D&&C[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(s){if(b){if(n)for(r in j)if((o=l[r])&&d(o,e))try{delete o[e]}catch(i){}if(B[e]&&!n)return;try{return m(B,e,n?t:D&&B[e]||t)}catch(i){}}for(r in j)!(o=l[r])||o[e]&&!n||m(o,e,t)}},getTypedArrayConstructor:function e(t){var n=y(t);if(u(n)){var r=_(n);return r&&d(r,N)?r.TypedArrayConstructor:e(n)}},isView:function(e){if(!u(e))return!1;var t=f(e);return"DataView"===t||d(j,t)||d(z,t)},isTypedArray:W,TypedArray:B,TypedArrayPrototype:O}},865:function(e,t,n){"use strict";var r=n(6840),o=n(4932),i=n(1196),a=n(4914),s=n(3211),l=n(3873),c=n(7544),u=n(2837),d=n(4817),f=n(2128),p=n(2347),h=n(1143),m=n(9580),v=n(4305),g=n(4381),y=n(3772).f,b=n(1592).f,x=n(6012),w=n(3278),k=n(3370),S=n(9671),_=s.PROPER,E=s.CONFIGURABLE,C=S.get,T=S.set,I="ArrayBuffer",B="DataView",O="Wrong index",P=r.ArrayBuffer,R=P,A=R&&R.prototype,M=r.DataView,N=M&&M.prototype,D=Object.prototype,L=r.Array,j=r.RangeError,z=o(x),W=o([].reverse),Z=m.pack,F=m.unpack,H=function(e){return[255&e]},U=function(e){return[255&e,e>>8&255]},$=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},q=function(e){return Z(e,23,4)},K=function(e){return Z(e,52,8)},V=function(e,t){b(e.prototype,t,{get:function(){return C(this)[t]}})},Y=function(e,t,n,r){var o=h(n),i=C(e);if(o+t>i.byteLength)throw j(O);var a=C(i.buffer).bytes,s=o+i.byteOffset,l=w(a,s,s+t);return r?l:W(l)},X=function(e,t,n,r,o,i){var a=h(n),s=C(e);if(a+t>s.byteLength)throw j(O);for(var l=C(s.buffer).bytes,c=a+s.byteOffset,u=r(+o),d=0;d<t;d++)l[c+d]=u[i?d:t-d-1]};if(a){var J=_&&P.name!==I;if(u((function(){P(1)}))&&u((function(){new P(-1)}))&&!u((function(){return new P,new P(1.5),new P(NaN),1!=P.length||J&&!E})))J&&E&&l(P,"name",I);else{(R=function(e){return d(this,A),new P(h(e))}).prototype=A;for(var Q,ee=y(P),te=0;ee.length>te;)(Q=ee[te++])in R||l(R,Q,P[Q]);A.constructor=R}g&&v(N)!==D&&g(N,D);var ne=new M(new R(2)),re=o(N.setInt8);ne.setInt8(0,2147483648),ne.setInt8(1,2147483649),!ne.getInt8(0)&&ne.getInt8(1)||c(N,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else A=(R=function(e){d(this,A);var t=h(e);T(this,{bytes:z(L(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,N=(M=function(e,t,n){d(this,N),d(e,A);var r=C(e).byteLength,o=f(t);if(o<0||o>r)throw j("Wrong offset");if(o+(n=void 0===n?r-o:p(n))>r)throw j("Wrong length");T(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)}).prototype,i&&(V(R,"byteLength"),V(M,"buffer"),V(M,"byteLength"),V(M,"byteOffset")),c(N,{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return G(Y(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return G(Y(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(Y(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(Y(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){X(this,1,e,H,t)},setUint8:function(e,t){X(this,1,e,H,t)},setInt16:function(e,t){X(this,2,e,U,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){X(this,2,e,U,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){X(this,4,e,$,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){X(this,4,e,$,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){X(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){X(this,8,e,K,t,arguments.length>2?arguments[2]:void 0)}});k(R,I),k(M,B),e.exports={ArrayBuffer:R,DataView:M}},4739:function(e,t,n){"use strict";var r=n(8385),o=n(1823),i=n(3385),a=n(7820),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),l=i(n),c=o(e,l),u=o(t,l),d=arguments.length>2?arguments[2]:void 0,f=s((void 0===d?l:o(d,l))-u,l-c),p=1;for(u<c&&c<u+f&&(p=-1,u+=f-1,c+=f-1);f-- >0;)u in n?n[c]=n[u]:a(n,c),c+=p,u+=p;return n}},6012:function(e,t,n){"use strict";var r=n(8385),o=n(1823),i=n(3385);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)t[s++]=e;return t}},8129:function(e,t,n){"use strict";var r=n(5880).forEach,o=n(2241)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},1793:function(e,t,n){var r=n(3385);e.exports=function(e,t){for(var n=0,o=r(t),i=new e(o);o>n;)i[n]=t[n++];return i}},2422:function(e,t,n){"use strict";var r=n(5851),o=n(8513),i=n(8385),a=n(1940),s=n(8205),l=n(1219),c=n(3385),u=n(3055),d=n(8131),f=n(443),p=Array;e.exports=function(e){var t=i(e),n=l(this),h=arguments.length,m=h>1?arguments[1]:void 0,v=void 0!==m;v&&(m=r(m,h>2?arguments[2]:void 0));var g,y,b,x,w,k,S=f(t),_=0;if(!S||this===p&&s(S))for(g=c(t),y=n?new this(g):p(g);g>_;_++)k=v?m(t[_],_):t[_],u(y,_,k);else for(w=(x=d(t,S)).next,y=n?new this:[];!(b=o(w,x)).done;_++)k=v?a(x,m,[b.value,_],!0):b.value,u(y,_,k);return y.length=_,y}},488:function(e,t,n){var r=n(5770),o=n(1823),i=n(3385),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5880:function(e,t,n){var r=n(5851),o=n(4932),i=n(1036),a=n(8385),s=n(3385),l=n(5491),c=o([].push),u=function(e){var t=1==e,n=2==e,o=3==e,u=4==e,d=6==e,f=7==e,p=5==e||d;return function(h,m,v,g){for(var y,b,x=a(h),w=i(x),k=r(m,v),S=s(w),_=0,E=g||l,C=t?E(h,S):n||f?E(h,0):void 0;S>_;_++)if((p||_ in w)&&(b=k(y=w[_],_,x),e))if(t)C[_]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:c(C,y)}else switch(e){case 4:return!1;case 7:c(C,y)}return d?-1:o||u?u:C}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},2561:function(e,t,n){"use strict";var r=n(6339),o=n(5770),i=n(2128),a=n(3385),s=n(2241),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),f=u||!d;e.exports=f?function(e){if(u)return r(c,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},1379:function(e,t,n){var r=n(2837),o=n(5028),i=n(3359),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2241:function(e,t,n){"use strict";var r=n(2837);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},4512:function(e,t,n){var r=n(6724),o=n(8385),i=n(1036),a=n(3385),s=TypeError,l=function(e){return function(t,n,l,c){r(n);var u=o(t),d=i(u),f=a(u),p=e?f-1:0,h=e?-1:1;if(l<2)for(;;){if(p in d){c=d[p],p+=h;break}if(p+=h,e?p<0:f<=p)throw s("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=h)p in d&&(c=n(c,d[p],p,u));return c}};e.exports={left:l(!1),right:l(!0)}},7950:function(e,t,n){"use strict";var r=n(1196),o=n(1941),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},3278:function(e,t,n){var r=n(1823),o=n(3385),i=n(3055),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=o(e),c=r(t,l),u=r(void 0===n?l:n,l),d=a(s(u-c,0)),f=0;c<u;c++,f++)i(d,f,e[c]);return d.length=f,d}},5618:function(e,t,n){var r=n(4932);e.exports=r([].slice)},7732:function(e,t,n){var r=n(3278),o=Math.floor,i=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},a=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=function e(t,n){var s=t.length,l=o(s/2);return s<8?i(t,n):a(t,e(r(t,0,l),n),e(r(t,l),n),n)}},9026:function(e,t,n){var r=n(1941),o=n(1219),i=n(3931),a=n(5028)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},5491:function(e,t,n){var r=n(9026);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},1940:function(e,t,n){var r=n(5884),o=n(9053);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){o(e,"throw",a)}}},6225:function(e,t,n){var r=n(5028)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(s){}return n}},2933:function(e,t,n){var r=n(4932),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},7205:function(e,t,n){var r=n(6042),o=n(9218),i=n(2933),a=n(5028)("toStringTag"),s=Object,l="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=s(e),a))?n:l?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},3425:function(e,t,n){"use strict";var r=n(1592).f,o=n(4385),i=n(7544),a=n(5851),s=n(4817),l=n(9055),c=n(4439),u=n(4931),d=n(5927),f=n(2267),p=n(1196),h=n(2499).fastKey,m=n(9671),v=m.set,g=m.getterFor;e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,r){s(e,f),v(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),p||(e.size=0),l(r)||c(r,e[u],{that:e,AS_ENTRIES:n})})),f=d.prototype,m=g(t),y=function(e,t,n){var r,o,i=m(e),a=b(e,t);return a?a.value=n:(i.last=a={index:o=h(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),p?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,t){var n,r=m(e),o=h(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(f,{clear:function(){for(var e=m(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,p?e.size=0:this.size=0},delete:function(e){var t=this,n=m(t),r=b(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),p?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=m(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(f,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),p&&r(f,"size",{get:function(){return m(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),i=g(r);u(e,t,(function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),f(t)}}},3309:function(e,t,n){"use strict";var r=n(7768),o=n(6840),i=n(4932),a=n(6673),s=n(7543),l=n(2499),c=n(4439),u=n(4817),d=n(9218),f=n(9055),p=n(3931),h=n(2837),m=n(6225),v=n(3370),g=n(1527);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),x=y?"set":"add",w=o[e],k=w&&w.prototype,S=w,_={},E=function(e){var t=i(k[e]);s(k,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(w)||!(b||k.forEach&&!h((function(){(new w).entries().next()})))))S=n.getConstructor(t,e,y,x),l.enable();else if(a(e,!0)){var C=new S,T=C[x](b?{}:-0,1)!=C,I=h((function(){C.has(1)})),B=m((function(e){new w(e)})),O=!b&&h((function(){for(var e=new w,t=5;t--;)e[x](t,t);return!e.has(-0)}));B||((S=t((function(e,t){u(e,k);var n=g(new w,e,S);return f(t)||c(t,n[x],{that:n,AS_ENTRIES:y}),n}))).prototype=k,k.constructor=S),(I||O)&&(E("delete"),E("has"),y&&E("get")),(O||T)&&E(x),b&&k.clear&&delete k.clear}return _[e]=S,r({global:!0,constructor:!0,forced:S!=w},_),v(S,e),b||n.setStrong(S,e,y),S}},189:function(e,t,n){var r=n(3013),o=n(7273),i=n(2573),a=n(1592);e.exports=function(e,t,n){for(var s=o(t),l=a.f,c=i.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},2525:function(e,t,n){var r=n(5028)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},1586:function(e,t,n){var r=n(2837);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},5927:function(e){e.exports=function(e,t){return{value:e,done:t}}},3873:function(e,t,n){var r=n(1196),o=n(1592),i=n(2037);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},2037:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3055:function(e,t,n){"use strict";var r=n(4655),o=n(1592),i=n(2037);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},695:function(e,t,n){var r=n(2557),o=n(1592);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},7543:function(e,t,n){var r=n(9218),o=n(1592),i=n(2557),a=n(9131);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},7544:function(e,t,n){var r=n(7543);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},9131:function(e,t,n){var r=n(6840),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},7820:function(e,t,n){"use strict";var r=n(1772),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},1196:function(e,t,n){var r=n(2837);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},937:function(e,t,n){var r=n(6840),o=n(3931),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},6117:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},650:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2752:function(e,t,n){var r=n(937)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8336:function(e,t,n){var r=n(4839).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},4163:function(e,t,n){var r=n(6681),o=n(1653);e.exports=!r&&!o&&"object"==typeof window&&"object"==typeof document},6681:function(e){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},4891:function(e,t,n){var r=n(4839);e.exports=/MSIE|Trident/.test(r)},1070:function(e,t,n){var r=n(4839),o=n(6840);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},3929:function(e,t,n){var r=n(4839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},1653:function(e,t,n){var r=n(2933),o=n(6840);e.exports="process"==r(o.process)},1785:function(e,t,n){var r=n(4839);e.exports=/web0s(?!.*chrome)/i.test(r)},4839:function(e,t,n){var r=n(1240);e.exports=r("navigator","userAgent")||""},3359:function(e,t,n){var r,o,i=n(6840),a=n(4839),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},4469:function(e,t,n){var r=n(4839).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},2080:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7768:function(e,t,n){var r=n(6840),o=n(2573).f,i=n(3873),a=n(7543),s=n(9131),l=n(189),c=n(6673);e.exports=function(e,t){var n,u,d,f,p,h=e.target,m=e.global,v=e.stat;if(n=m?r:v?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(p=o(n,u))&&p.value:n[u],!c(m?u:h+(v?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,u,f,e)}}},2837:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},8093:function(e,t,n){"use strict";n(447);var r=n(4932),o=n(7543),i=n(4087),a=n(2837),s=n(5028),l=n(3873),c=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!p||!h||n){var m=r(/./[f]),v=t(f,""[e],(function(e,t,n,o,a){var s=r(e),l=t.exec;return l===i||l===u.exec?p&&!a?{done:!0,value:m(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(u,f,v[1])}d&&l(u[f],"sham",!0)}},7914:function(e,t,n){var r=n(2837);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},6339:function(e,t,n){var r=n(4138),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},5851:function(e,t,n){var r=n(4932),o=n(6724),i=n(4138),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},4138:function(e,t,n){var r=n(2837);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6448:function(e,t,n){"use strict";var r=n(4932),o=n(6724),i=n(3931),a=n(3013),s=n(5618),l=n(4138),c=Function,u=r([].concat),d=r([].join),f={},p=function(e,t,n){if(!a(f,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";f[t]=c("C,a","return new C("+d(r,",")+")")}return f[t](e,n)};e.exports=l?c.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),a=function(){var n=u(r,s(arguments));return this instanceof a?p(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},8513:function(e,t,n){var r=n(4138),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},3211:function(e,t,n){var r=n(1196),o=n(3013),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},4932:function(e,t,n){var r=n(4138),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},1240:function(e,t,n){var r=n(6840),o=n(9218),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},443:function(e,t,n){var r=n(7205),o=n(3863),i=n(9055),a=n(9706),s=n(5028)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[r(e)]}},8131:function(e,t,n){var r=n(8513),o=n(6724),i=n(5884),a=n(1772),s=n(443),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw l(a(e)+" is not iterable")}},3863:function(e,t,n){var r=n(6724),o=n(9055);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},7794:function(e,t,n){var r=n(4932),o=n(8385),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var p=n+e.length,h=r.length,m=u;return void 0!==d&&(d=o(d),m=c),s(f,m,(function(o,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,p);case"<":c=d[l(s,1,-1)];break;default:var u=+s;if(0===u)return o;if(u>h){var f=i(u/10);return 0===f?o:f<=h?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):o}c=r[u-1]}return void 0===c?"":c}))}},6840:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},3013:function(e,t,n){var r=n(4932),o=n(8385),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},6196:function(e){e.exports={}},5995:function(e,t,n){var r=n(6840);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},2012:function(e,t,n){var r=n(1240);e.exports=r("document","documentElement")},6707:function(e,t,n){var r=n(1196),o=n(2837),i=n(937);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9580:function(e){var t=Array,n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,s,l){var c,u,d,f=t(l),p=8*l-s-1,h=(1<<p)-1,m=h>>1,v=23===s?r(2,-24)-r(2,-77):0,g=e<0||0===e&&1/e<0?1:0,y=0;for((e=n(e))!=e||e===1/0?(u=e!=e?1:0,c=h):(c=o(i(e)/a),e*(d=r(2,-c))<1&&(c--,d*=2),(e+=c+m>=1?v/d:v*r(2,1-m))*d>=2&&(c++,d/=2),c+m>=h?(u=0,c=h):c+m>=1?(u=(e*d-1)*r(2,s),c+=m):(u=e*r(2,m-1)*r(2,s),c=0));s>=8;)f[y++]=255&u,u/=256,s-=8;for(c=c<<s|u,p+=s;p>0;)f[y++]=255&c,c/=256,p-=8;return f[--y]|=128*g,f},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<<i)-1,s=a>>1,l=i-7,c=o-1,u=e[c--],d=127&u;for(u>>=7;l>0;)d=256*d+e[c--],l-=8;for(n=d&(1<<-l)-1,d>>=-l,l+=t;l>0;)n=256*n+e[c--],l-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:u?-1/0:1/0;n+=r(2,t),d-=s}return(u?-1:1)*n*r(2,d-t)}}},1036:function(e,t,n){var r=n(4932),o=n(2837),i=n(2933),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},1527:function(e,t,n){var r=n(9218),o=n(3931),i=n(4381);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},8589:function(e,t,n){var r=n(4932),o=n(9218),i=n(4460),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2499:function(e,t,n){var r=n(7768),o=n(4932),i=n(6196),a=n(3931),s=n(3013),l=n(1592).f,c=n(3772),u=n(8910),d=n(6643),f=n(6520),p=n(7914),h=!1,m=f("meta"),v=0,g=function(e){l(e,m,{value:{objectID:"O"+v++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=c.f,t=o([].splice),n={};n[m]=1,e(n).length&&(c.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===m){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";g(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;g(e)}return e[m].weakData},onFreeze:function(e){return p&&h&&d(e)&&!s(e,m)&&g(e),e}};i[m]=!0},9671:function(e,t,n){var r,o,i,a=n(1615),s=n(6840),l=n(4932),c=n(3931),u=n(3873),d=n(3013),f=n(4460),p=n(9378),h=n(6196),m="Object already initialized",v=s.TypeError,g=s.WeakMap;if(a||f.state){var y=f.state||(f.state=new g),b=l(y.get),x=l(y.has),w=l(y.set);r=function(e,t){if(x(y,e))throw v(m);return t.facade=e,w(y,e,t),t},o=function(e){return b(y,e)||{}},i=function(e){return x(y,e)}}else{var k=p("state");h[k]=!0,r=function(e,t){if(d(e,k))throw v(m);return t.facade=e,u(e,k,t),t},o=function(e){return d(e,k)?e[k]:{}},i=function(e){return d(e,k)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}}}},8205:function(e,t,n){var r=n(5028),o=n(9706),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},1941:function(e,t,n){var r=n(2933);e.exports=Array.isArray||function(e){return"Array"==r(e)}},8817:function(e,t,n){var r=n(7205),o=n(4932)("".slice);e.exports=function(e){return"Big"===o(r(e),0,3)}},9218:function(e){e.exports=function(e){return"function"==typeof e}},1219:function(e,t,n){var r=n(4932),o=n(2837),i=n(9218),a=n(7205),s=n(1240),l=n(8589),c=function(){},u=[],d=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=r(f.exec),h=!f.exec(c),m=function(e){if(!i(e))return!1;try{return d(c,u,e),!0}catch(t){return!1}},v=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(f,l(e))}catch(t){return!0}};v.sham=!0,e.exports=!d||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?v:m},6673:function(e,t,n){var r=n(2837),o=n(9218),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==u||n!=c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},7724:function(e,t,n){var r=n(3931),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},9055:function(e){e.exports=function(e){return null===e||void 0===e}},3931:function(e,t,n){var r=n(9218),o="object"==typeof document&&document.all,i="undefined"==typeof o&&void 0!==o;e.exports=i?function(e){return"object"==typeof e?null!==e:r(e)||e===o}:function(e){return"object"==typeof e?null!==e:r(e)}},3608:function(e){e.exports=!1},670:function(e,t,n){var r=n(3931),o=n(2933),i=n(5028)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},8287:function(e,t,n){var r=n(1240),o=n(9218),i=n(8946),a=n(7611),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},4439:function(e,t,n){var r=n(5851),o=n(8513),i=n(5884),a=n(1772),s=n(8205),l=n(3385),c=n(8946),u=n(8131),d=n(443),f=n(9053),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var v,g,y,b,x,w,k,S=n&&n.that,_=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),I=r(t,S),B=function(e){return v&&f(v,"normal",e),new h(!0,e)},O=function(e){return _?(i(e),T?I(e[0],e[1],B):I(e[0],e[1])):T?I(e,B):I(e)};if(E)v=e.iterator;else if(C)v=e;else{if(!(g=d(e)))throw p(a(e)+" is not iterable");if(s(g)){for(y=0,b=l(e);b>y;y++)if((x=O(e[y]))&&c(m,x))return x;return new h(!1)}v=u(e,g)}for(w=E?e.next:v.next;!(k=o(w,v)).done;){try{x=O(k.value)}catch(P){f(v,"throw",P)}if("object"==typeof x&&x&&c(m,x))return x}return new h(!1)}},9053:function(e,t,n){var r=n(8513),o=n(5884),i=n(3863);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return o(a),n}},1331:function(e,t,n){"use strict";var r=n(7022).IteratorPrototype,o=n(4385),i=n(2037),a=n(3370),s=n(9706),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=o(r,{next:i(+!c,n)}),a(e,u,!1,!0),s[u]=l,e}},4931:function(e,t,n){"use strict";var r=n(7768),o=n(8513),i=n(3608),a=n(3211),s=n(9218),l=n(1331),c=n(4305),u=n(4381),d=n(3370),f=n(3873),p=n(7543),h=n(5028),m=n(9706),v=n(7022),g=a.PROPER,y=a.CONFIGURABLE,b=v.IteratorPrototype,x=v.BUGGY_SAFARI_ITERATORS,w=h("iterator"),k="keys",S="values",_="entries",E=function(){return this};e.exports=function(e,t,n,a,h,v,C){l(n,t,a);var T,I,B,O=function(e){if(e===h&&N)return N;if(!x&&e in A)return A[e];switch(e){case k:case S:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",R=!1,A=e.prototype,M=A[w]||A["@@iterator"]||h&&A[h],N=!x&&M||O(h),D="Array"==t&&A.entries||M;if(D&&(T=c(D.call(new e)))!==Object.prototype&&T.next&&(i||c(T)===b||(u?u(T,b):s(T[w])||p(T,w,E)),d(T,P,!0,!0),i&&(m[P]=E)),g&&h==S&&M&&M.name!==S&&(!i&&y?f(A,"name",S):(R=!0,N=function(){return o(M,this)})),h)if(I={values:O(S),keys:v?N:O(k),entries:O(_)},C)for(B in I)(x||R||!(B in A))&&p(A,B,I[B]);else r({target:t,proto:!0,forced:x||R},I);return i&&!C||A[w]===N||p(A,w,N,{name:h}),m[t]=N,I}},7022:function(e,t,n){"use strict";var r,o,i,a=n(2837),s=n(9218),l=n(3931),c=n(4385),u=n(4305),d=n(7543),f=n(5028),p=n(3608),h=f("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):m=!0),!l(r)||a((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=c(r)),s(r[h])||d(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},9706:function(e){e.exports={}},3385:function(e,t,n){var r=n(2347);e.exports=function(e){return r(e.length)}},2557:function(e,t,n){var r=n(2837),o=n(9218),i=n(3013),a=n(1196),s=n(3211).CONFIGURABLE,l=n(8589),c=n(9671),u=c.enforce,d=c.get,f=Object.defineProperty,p=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&i(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(o){}var r=u(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&d(this).source||l(this)}),"toString")},1246:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4410:function(e,t,n){var r,o,i,a,s,l,c,u,d=n(6840),f=n(5851),p=n(2573).f,h=n(1625).set,m=n(3929),v=n(1070),g=n(1785),y=n(1653),b=d.MutationObserver||d.WebKitMutationObserver,x=d.document,w=d.process,k=d.Promise,S=p(d,"queueMicrotask"),_=S&&S.value;_||(r=function(){var e,t;for(y&&(e=w.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(n){throw o?a():i=void 0,n}}i=void 0,e&&e.enter()},m||y||g||!b||!x?!v&&k&&k.resolve?((c=k.resolve(void 0)).constructor=k,u=f(c.then,c),a=function(){u(r)}):y?a=function(){w.nextTick(r)}:(h=f(h,d),a=function(){h(r)}):(s=!0,l=x.createTextNode(""),new b(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=_||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},246:function(e,t,n){"use strict";var r=n(6724),o=TypeError,i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw o("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},9693:function(e,t,n){var r=n(670),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},2526:function(e,t,n){"use strict";var r=n(1196),o=n(4932),i=n(8513),a=n(2837),s=n(8084),l=n(400),c=n(2845),u=n(8385),d=n(1036),f=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||s(f({},t)).join("")!=o}))?function(e,t){for(var n=u(e),o=arguments.length,a=1,f=l.f,p=c.f;o>a;)for(var m,v=d(arguments[a++]),g=f?h(s(v),f(v)):s(v),y=g.length,b=0;y>b;)m=g[b++],r&&!i(p,v,m)||(n[m]=v[m]);return n}:f},4385:function(e,t,n){var r,o=n(5884),i=n(1697),a=n(2080),s=n(6196),l=n(2012),c=n(937),u=n(9378),d=u("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"</"+"script>"},h=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},m=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}m="undefined"!=typeof document?document.domain&&r?h(r):function(){var e,t=c("iframe");return t.style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F}():h(r);for(var e=a.length;e--;)delete m.prototype[a[e]];return m()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[d]=e):n=m(),void 0===t?n:i.f(n,t)}},1697:function(e,t,n){var r=n(1196),o=n(6056),i=n(1592),a=n(5884),s=n(5770),l=n(8084);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=l(t),c=o.length,u=0;c>u;)i.f(e,n=o[u++],r[n]);return e}},1592:function(e,t,n){var r=n(1196),o=n(6707),i=n(6056),a=n(5884),s=n(4655),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n.writable){var r=u(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:f in n?n.configurable:r.configurable,enumerable:d in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2573:function(e,t,n){var r=n(1196),o=n(8513),i=n(2845),a=n(2037),s=n(5770),l=n(4655),c=n(3013),u=n(6707),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},8910:function(e,t,n){var r=n(2933),o=n(5770),i=n(3772).f,a=n(3278),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(t){return a(s)}}(e):i(o(e))}},3772:function(e,t,n){var r=n(3080),o=n(2080).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},400:function(e,t){t.f=Object.getOwnPropertySymbols},4305:function(e,t,n){var r=n(3013),o=n(9218),i=n(8385),a=n(9378),s=n(1586),l=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},6643:function(e,t,n){var r=n(2837),o=n(3931),i=n(2933),a=n(1531),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},8946:function(e,t,n){var r=n(4932);e.exports=r({}.isPrototypeOf)},3080:function(e,t,n){var r=n(4932),o=n(3013),i=n(5770),a=n(488).indexOf,s=n(6196),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&l(u,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},8084:function(e,t,n){var r=n(3080),o=n(2080);e.exports=Object.keys||function(e){return r(e,o)}},2845:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4381:function(e,t,n){var r=n(4932),o=n(5884),i=n(6299);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},4344:function(e,t,n){var r=n(1196),o=n(4932),i=n(8084),a=n(5770),s=o(n(2845).f),l=o([].push),c=function(e){return function(t){for(var n,o=a(t),c=i(o),u=c.length,d=0,f=[];u>d;)n=c[d++],r&&!s(o,n)||l(f,e?[n,o[n]]:o[n]);return f}};e.exports={entries:c(!0),values:c(!1)}},4289:function(e,t,n){"use strict";var r=n(6042),o=n(7205);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},7772:function(e,t,n){var r=n(8513),o=n(9218),i=n(3931),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},7273:function(e,t,n){var r=n(1240),o=n(4932),i=n(3772),a=n(400),s=n(5884),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},4750:function(e,t,n){var r=n(6840);e.exports=r},3752:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},7426:function(e,t,n){var r=n(6840),o=n(31),i=n(9218),a=n(6673),s=n(8589),l=n(5028),c=n(4163),u=n(6681),d=n(3608),f=n(3359),p=o&&o.prototype,h=l("species"),m=!1,v=i(r.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===f)return!0;if(d&&(!p.catch||!p.finally))return!0;if(!f||f<51||!/native code/.test(e)){var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(m=n.then((function(){}))instanceof r))return!0}return!t&&(c||u)&&!v}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:v,SUBCLASSING:m}},31:function(e,t,n){var r=n(6840);e.exports=r.Promise},6321:function(e,t,n){var r=n(5884),o=n(3931),i=n(246);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},1321:function(e,t,n){var r=n(31),o=n(6225),i=n(7426).CONSTRUCTOR;e.exports=i||!o((function(e){r.all(e).then(void 0,(function(){}))}))},9033:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},2781:function(e,t,n){var r=n(8513),o=n(5884),i=n(9218),a=n(2933),s=n(4087),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var c=r(n,e,t);return null!==c&&o(c),c}if("RegExp"===a(e))return r(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},4087:function(e,t,n){"use strict";var r=n(8513),o=n(4932),i=n(6124),a=n(7687),s=n(8596),l=n(1778),c=n(4385),u=n(9671).get,d=n(2047),f=n(2063),p=l("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,m=h,v=o("".charAt),g=o("".indexOf),y=o("".replace),b=o("".slice),x=function(){var e=/a/,t=/b*/g;return r(h,e,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=s.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(x||k||w||d||f)&&(m=function(e){var t,n,o,s,l,d,f,S=this,_=u(S),E=i(e),C=_.raw;if(C)return C.lastIndex=S.lastIndex,t=r(m,C,E),S.lastIndex=C.lastIndex,t;var T=_.groups,I=w&&S.sticky,B=r(a,S),O=S.source,P=0,R=E;if(I&&(B=y(B,"y",""),-1===g(B,"g")&&(B+="g"),R=b(E,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(E,S.lastIndex-1))&&(O="(?: "+O+")",R=" "+R,P++),n=new RegExp("^(?:"+O+")",B)),k&&(n=new RegExp("^"+O+"$(?!\\s)",B)),x&&(o=S.lastIndex),s=r(h,I?n:S,R),I?s?(s.input=b(s.input,P),s[0]=b(s[0],P),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:x&&s&&(S.lastIndex=S.global?s.index+s[0].length:o),k&&s&&s.length>1&&r(p,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&T)for(s.groups=d=c(null),l=0;l<T.length;l++)d[(f=T[l])[0]]=s[f[1]];return s}),e.exports=m},7687:function(e,t,n){"use strict";var r=n(5884);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},7667:function(e,t,n){var r=n(8513),o=n(3013),i=n(8946),a=n(7687),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},8596:function(e,t,n){var r=n(2837),o=n(6840).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},2047:function(e,t,n){var r=n(2837),o=n(6840).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},2063:function(e,t,n){var r=n(2837),o=n(6840).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},2244:function(e,t,n){var r=n(9055),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},8362:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},2267:function(e,t,n){"use strict";var r=n(1240),o=n(1592),i=n(5028),a=n(1196),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},3370:function(e,t,n){var r=n(1592).f,o=n(3013),i=n(5028)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},9378:function(e,t,n){var r=n(1778),o=n(6520),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4460:function(e,t,n){var r=n(6840),o=n(9131),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},1778:function(e,t,n){var r=n(3608),o=n(4460);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.1",mode:r?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",source:"https://github.com/zloirock/core-js"})},917:function(e,t,n){var r=n(5884),o=n(611),i=n(9055),a=n(5028)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},8424:function(e,t,n){var r=n(4932),o=n(2128),i=n(6124),a=n(2244),s=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(e){return function(t,n){var r,u,d=i(a(t)),f=o(n),p=d.length;return f<0||f>=p?e?"":void 0:(r=l(d,f))<55296||r>56319||f+1===p||(u=l(d,f+1))<56320||u>57343?e?s(d,f):r:e?c(d,f,f+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},1649:function(e,t,n){"use strict";var r=n(4932),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,c=r(a.exec),u=Math.floor,d=String.fromCharCode,f=r("".charCodeAt),p=r([].join),h=r([].push),m=r("".replace),v=r("".split),g=r("".toLowerCase),y=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),r+=36;return u(r+36*e/(e+38))},x=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=f(e,n++);if(o>=55296&&o<=56319&&n<r){var i=f(e,n++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),n--)}else h(t,o)}return t}(e);var n,r,i=e.length,a=128,c=0,m=72;for(n=0;n<e.length;n++)(r=e[n])<128&&h(t,d(r));var v=t.length,g=v;for(v&&h(t,"-");g<i;){var x=o;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<x&&(x=r);var w=g+1;if(x-a>u((o-c)/w))throw l(s);for(c+=(x-a)*w,a=x,n=0;n<e.length;n++){if((r=e[n])<a&&++c>o)throw l(s);if(r==a){for(var k=c,S=36;;){var _=S<=m?1:S>=m+26?26:S-m;if(k<_)break;var E=k-_,C=36-_;h(t,d(y(_+E%C))),k=u(E/C),S+=36}h(t,d(y(k))),m=b(c,w,g==v),c=0,g++}}c++,a++}return p(t,"")};e.exports=function(e){var t,n,r=[],o=v(m(g(e),a,"."),".");for(t=0;t<o.length;t++)n=o[t],h(r,c(i,n)?"xn--"+x(n):n);return p(r,".")}},6889:function(e,t,n){var r=n(4932),o=n(2244),i=n(6124),a=n(5450),s=r("".replace),l="["+a+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),d=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,u,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},166:function(e,t,n){var r=n(3359),o=n(2837);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},2745:function(e,t,n){var r=n(8513),o=n(1240),i=n(5028),a=n(7543);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},2102:function(e,t,n){var r=n(166);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},1625:function(e,t,n){var r,o,i,a,s=n(6840),l=n(6339),c=n(5851),u=n(9218),d=n(3013),f=n(2837),p=n(2012),h=n(5618),m=n(937),v=n(4974),g=n(3929),y=n(1653),b=s.setImmediate,x=s.clearImmediate,w=s.process,k=s.Dispatch,S=s.Function,_=s.MessageChannel,E=s.String,C=0,T={},I="onreadystatechange";try{r=s.location}catch(A){}var B=function(e){if(d(T,e)){var t=T[e];delete T[e],t()}},O=function(e){return function(){B(e)}},P=function(e){B(e.data)},R=function(e){s.postMessage(E(e),r.protocol+"//"+r.host)};b&&x||(b=function(e){v(arguments.length,1);var t=u(e)?e:S(e),n=h(arguments,1);return T[++C]=function(){l(t,void 0,n)},o(C),C},x=function(e){delete T[e]},y?o=function(e){w.nextTick(O(e))}:k&&k.now?o=function(e){k.now(O(e))}:_&&!g?(a=(i=new _).port2,i.port1.onmessage=P,o=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(R)?(o=R,s.addEventListener("message",P,!1)):o=I in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),B(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:b,clear:x}},4748:function(e,t,n){var r=n(4932);e.exports=r(1..valueOf)},1823:function(e,t,n){var r=n(2128),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},9818:function(e,t,n){var r=n(6740),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw o("Can't convert number to bigint");return BigInt(t)}},1143:function(e,t,n){var r=n(2128),o=n(2347),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw i("Wrong length or index");return n}},5770:function(e,t,n){var r=n(1036),o=n(2244);e.exports=function(e){return r(o(e))}},2128:function(e,t,n){var r=n(1246);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},2347:function(e,t,n){var r=n(2128),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},8385:function(e,t,n){var r=n(2244),o=Object;e.exports=function(e){return o(r(e))}},5303:function(e,t,n){var r=n(8718),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw o("Wrong offset");return n}},8718:function(e,t,n){var r=n(2128),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw o("The argument can't be less than 0");return t}},6740:function(e,t,n){var r=n(8513),o=n(3931),i=n(8287),a=n(3863),s=n(7772),l=n(5028),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4655:function(e,t,n){var r=n(6740),o=n(8287);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},6042:function(e,t,n){var r={};r[n(5028)("toStringTag")]="z",e.exports="[object z]"===String(r)},6124:function(e,t,n){var r=n(7205),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},1772:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},2859:function(e,t,n){"use strict";var r=n(7768),o=n(6840),i=n(8513),a=n(1196),s=n(6255),l=n(3866),c=n(865),u=n(4817),d=n(2037),f=n(3873),p=n(7724),h=n(2347),m=n(1143),v=n(5303),g=n(4655),y=n(3013),b=n(7205),x=n(3931),w=n(8287),k=n(4385),S=n(8946),_=n(4381),E=n(3772).f,C=n(1853),T=n(5880).forEach,I=n(2267),B=n(1592),O=n(2573),P=n(9671),R=n(1527),A=P.get,M=P.set,N=P.enforce,D=B.f,L=O.f,j=Math.round,z=o.RangeError,W=c.ArrayBuffer,Z=W.prototype,F=c.DataView,H=l.NATIVE_ARRAY_BUFFER_VIEWS,U=l.TYPED_ARRAY_TAG,$=l.TypedArray,G=l.TypedArrayPrototype,q=l.aTypedArrayConstructor,K=l.isTypedArray,V="BYTES_PER_ELEMENT",Y="Wrong length",X=function(e,t){q(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},J=function(e,t){D(e,t,{get:function(){return A(this)[t]}})},Q=function(e){var t;return S(Z,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},ee=function(e,t){return K(e)&&!w(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=g(t),ee(e,t)?d(2,e[t]):L(e,t)},ne=function(e,t,n){return t=g(t),!(ee(e,t)&&x(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?D(e,t,n):(e[t]=n.value,e)};a?(H||(O.f=te,B.f=ne,J(G,"buffer"),J(G,"byteOffset"),J(G,"byteLength"),J(G,"length")),r({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",c="get"+e,d="set"+e,p=o[l],g=p,y=g&&g.prototype,b={},w=function(e,t){D(e,t,{get:function(){return function(e,t){var n=A(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=A(e);n&&(r=(r=j(r))<0?0:r>255?255:255&r),o.view[d](t*a+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};H?s&&(g=t((function(e,t,n,r){return u(e,y),R(x(t)?Q(t)?void 0!==r?new p(t,v(n,a),r):void 0!==n?new p(t,v(n,a)):new p(t):K(t)?X(g,t):i(C,g,t):new p(m(t)),e,g)})),_&&_(g,$),T(E(p),(function(e){e in g||f(g,e,p[e])})),g.prototype=y):(g=t((function(e,t,n,r){u(e,y);var o,s,l,c=0,d=0;if(x(t)){if(!Q(t))return K(t)?X(g,t):i(C,g,t);o=t,d=v(n,a);var f=t.byteLength;if(void 0===r){if(f%a)throw z(Y);if((s=f-d)<0)throw z(Y)}else if((s=h(r)*a)+d>f)throw z(Y);l=s/a}else l=m(t),o=new W(s=l*a);for(M(e,{buffer:o,byteOffset:d,byteLength:s,length:l,view:new F(o)});c<l;)w(e,c++)})),_&&_(g,$),y=g.prototype=k(G)),y.constructor!==g&&f(y,"constructor",g),N(y).TypedArrayConstructor=g,U&&f(y,U,l);var S=g!=p;b[l]=g,r({global:!0,constructor:!0,forced:S,sham:!H},b),V in g||f(g,V,a),V in y||f(y,V,a),I(l)}):e.exports=function(){}},6255:function(e,t,n){var r=n(6840),o=n(2837),i=n(6225),a=n(3866).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!o((function(){l(1)}))||!o((function(){new l(-1)}))||!i((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||o((function(){return 1!==new l(new s(2),1,void 0).length}))},3702:function(e,t,n){var r=n(1793),o=n(7349);e.exports=function(e,t){return r(o(e),t)}},1853:function(e,t,n){var r=n(5851),o=n(8513),i=n(611),a=n(8385),s=n(3385),l=n(8131),c=n(443),u=n(8205),d=n(8817),f=n(3866).aTypedArrayConstructor,p=n(9818);e.exports=function(e){var t,n,h,m,v,g,y,b,x=i(this),w=a(e),k=arguments.length,S=k>1?arguments[1]:void 0,_=void 0!==S,E=c(w);if(E&&!u(E))for(b=(y=l(w,E)).next,w=[];!(g=o(b,y)).done;)w.push(g.value);for(_&&k>2&&(S=r(S,arguments[2])),n=s(w),h=new(f(x))(n),m=d(h),t=0;n>t;t++)v=_?S(w[t],t):w[t],h[t]=m?p(v):+v;return h}},7349:function(e,t,n){var r=n(3866),o=n(917),i=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},6520:function(e,t,n){var r=n(4932),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},1451:function(e,t,n){var r=n(2837),o=n(5028),i=n(3608),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://\u0442\u0435\u0441\u0442").host||"#%D0%B1"!==new URL("http://a#\u0431").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},7611:function(e,t,n){var r=n(166);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6056:function(e,t,n){var r=n(1196),o=n(2837);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4974:function(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},1615:function(e,t,n){var r=n(6840),o=n(9218),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},2162:function(e,t,n){var r=n(4750),o=n(3013),i=n(1384),a=n(1592).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},1384:function(e,t,n){var r=n(5028);t.f=r},5028:function(e,t,n){var r=n(6840),o=n(1778),i=n(3013),a=n(6520),s=n(166),l=n(7611),c=o("wks"),u=r.Symbol,d=u&&u.for,f=l?u:u&&u.withoutSetter||a;e.exports=function(e){if(!i(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&i(u,e)?c[e]=u[e]:c[e]=l&&d?d(t):f(t)}return c[e]}},5450:function(e){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},4778:function(e,t,n){"use strict";var r=n(7768),o=n(2837),i=n(1941),a=n(3931),s=n(8385),l=n(3385),c=n(6117),u=n(3055),d=n(5491),f=n(1379),p=n(5028),h=n(3359),m=p("isConcatSpreadable"),v=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),g=f("concat"),y=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!v||!g},{concat:function(e){var t,n,r,o,i,a=s(this),f=d(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t]))for(o=l(i),c(p+o),n=0;n<o;n++,p++)n in i&&u(f,p,i[n]);else c(p+1),u(f,p++,i);return f.length=p,f}})},3858:function(e,t,n){"use strict";var r=n(7768),o=n(5880).filter;r({target:"Array",proto:!0,forced:!n(1379)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},5269:function(e,t,n){"use strict";var r=n(7768),o=n(5880).find,i=n(5715),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},9104:function(e,t,n){var r=n(7768),o=n(2422);r({target:"Array",stat:!0,forced:!n(6225)((function(e){Array.from(e)}))},{from:o})},8225:function(e,t,n){"use strict";var r=n(7768),o=n(488).includes,i=n(2837),a=n(5715);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},8887:function(e,t,n){"use strict";var r=n(5770),o=n(5715),i=n(9706),a=n(9671),s=n(1592).f,l=n(4931),c=n(5927),u=n(3608),d=n(1196),f="Array Iterator",p=a.set,h=a.getterFor(f);e.exports=l(Array,"Array",(function(e,t){p(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var m=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(v){}},2463:function(e,t,n){"use strict";var r=n(7768),o=n(5880).map;r({target:"Array",proto:!0,forced:!n(1379)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2603:function(e,t,n){"use strict";var r=n(7768),o=n(4512).left,i=n(2241),a=n(3359),s=n(1653);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},9258:function(e,t,n){"use strict";var r=n(7768),o=n(1941),i=n(1219),a=n(3931),s=n(1823),l=n(3385),c=n(5770),u=n(3055),d=n(5028),f=n(1379),p=n(5618),h=f("slice"),m=d("species"),v=Array,g=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,d,f=c(this),h=l(f),y=s(e,h),b=s(void 0===t?h:t,h);if(o(f)&&(n=f.constructor,(i(n)&&(n===v||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===v||void 0===n))return p(f,y,b);for(r=new(void 0===n?v:n)(g(b-y,0)),d=0;y<b;y++,d++)y in f&&u(r,d,f[y]);return r.length=d,r}})},8493:function(e,t,n){"use strict";var r=n(7768),o=n(4932),i=n(6724),a=n(8385),s=n(3385),l=n(7820),c=n(6124),u=n(2837),d=n(7732),f=n(2241),p=n(8336),h=n(4891),m=n(3359),v=n(4469),g=[],y=o(g.sort),b=o(g.push),x=u((function(){g.sort(void 0)})),w=u((function(){g.sort(null)})),k=f("sort"),S=!u((function(){if(m)return m<70;if(!(p&&p>3)){if(h)return!0;if(v)return v<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:x||!w||!k||!S},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(S)return void 0===e?y(t):y(t,e);var n,r,o=[],u=s(t);for(r=0;r<u;r++)r in t&&b(o,t[r]);for(d(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(o),r=0;r<n;)t[r]=o[r++];for(;r<u;)l(t,r++);return t}})},5327:function(e,t,n){"use strict";var r=n(7768),o=n(8385),i=n(1823),a=n(2128),s=n(3385),l=n(7950),c=n(6117),u=n(5491),d=n(3055),f=n(7820),p=n(1379)("splice"),h=Math.max,m=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,p,v,g,y,b=o(this),x=s(b),w=i(e,x),k=arguments.length;for(0===k?n=r=0:1===k?(n=0,r=x-w):(n=k-2,r=m(h(a(t),0),x-w)),c(x+n-r),p=u(b,r),v=0;v<r;v++)(g=w+v)in b&&d(p,v,b[g]);if(p.length=r,n<r){for(v=w;v<x-r;v++)y=v+n,(g=v+r)in b?b[y]=b[g]:f(b,y);for(v=x;v>x-r+n;v--)f(b,v-1)}else if(n>r)for(v=x-r;v>w;v--)y=v+n-1,(g=v+r-1)in b?b[y]=b[g]:f(b,y);for(v=0;v<n;v++)b[v+w]=arguments[v+2];return l(b,x-r+n),p}})},8344:function(e,t,n){var r=n(7768),o=n(1240),i=n(6339),a=n(8513),s=n(4932),l=n(2837),c=n(1941),u=n(9218),d=n(3931),f=n(8287),p=n(5618),h=n(166),m=o("JSON","stringify"),v=s(/./.exec),g=s("".charAt),y=s("".charCodeAt),b=s("".replace),x=s(1..toString),w=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,_=!h||l((function(){var e=o("Symbol")();return"[null]"!=m([e])||"{}"!=m({a:e})||"{}"!=m(Object(e))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),C=function(e,t){var n=p(arguments),r=t;if((d(t)||void 0!==e)&&!f(e))return c(t)||(t=function(e,t){if(u(r)&&(t=a(r,this,e,t)),!f(t))return t}),n[1]=t,i(m,null,n)},T=function(e,t,n){var r=g(n,t-1),o=g(n,t+1);return v(k,e)&&!v(S,o)||v(S,e)&&!v(k,r)?"\\u"+x(y(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:_||E},{stringify:function(e,t,n){var r=p(arguments),o=i(_?C:m,null,r);return E&&"string"==typeof o?b(o,w,T):o}})},1132:function(e,t,n){"use strict";n(3309)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(3425))},5742:function(e,t,n){n(1132)},974:function(e,t,n){"use strict";var r=n(1196),o=n(6840),i=n(4932),a=n(6673),s=n(7543),l=n(3013),c=n(1527),u=n(8946),d=n(8287),f=n(6740),p=n(2837),h=n(3772).f,m=n(2573).f,v=n(1592).f,g=n(4748),y=n(6889).trim,b="Number",x=o.Number,w=x.prototype,k=o.TypeError,S=i("".slice),_=i("".charCodeAt),E=function(e){var t=f(e,"number");return"bigint"==typeof t?t:C(t)},C=function(e){var t,n,r,o,i,a,s,l,c=f(e,"number");if(d(c))throw k("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=y(c),43===(t=_(c,0))||45===t){if(88===(n=_(c,2))||120===n)return NaN}else if(48===t){switch(_(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=S(c,2)).length,s=0;s<a;s++)if((l=_(i,s))<48||l>o)return NaN;return parseInt(i,r)}return+c};if(a(b,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var T,I=function(e){var t=arguments.length<1?0:x(E(e)),n=this;return u(w,n)&&p((function(){g(n)}))?c(Object(t),n,I):t},B=r?h(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;B.length>O;O++)l(x,T=B[O])&&!l(I,T)&&v(I,T,m(x,T));I.prototype=w,w.constructor=I,s(o,b,I,{constructor:!0})}},4105:function(e,t,n){n(7768)({target:"Number",stat:!0},{isInteger:n(7724)})},3265:function(e,t,n){var r=n(7768),o=n(2526);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},9238:function(e,t,n){var r=n(7768),o=n(4344).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},7264:function(e,t,n){var r=n(7768),o=n(2837),i=n(5770),a=n(2573).f,s=n(1196),l=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},8894:function(e,t,n){var r=n(7768),o=n(1196),i=n(7273),a=n(5770),s=n(2573),l=n(3055);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=o(r,t=c[d++]))&&l(u,t,n);return u}})},1565:function(e,t,n){var r=n(7768),o=n(166),i=n(2837),a=n(400),s=n(8385);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},5084:function(e,t,n){var r=n(7768),o=n(8385),i=n(8084);r({target:"Object",stat:!0,forced:n(2837)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},5202:function(e,t,n){var r=n(6042),o=n(7543),i=n(4289);r||o(Object.prototype,"toString",i,{unsafe:!0})},7506:function(e,t,n){"use strict";var r=n(7768),o=n(8513),i=n(6724),a=n(246),s=n(3752),l=n(4439);r({target:"Promise",stat:!0,forced:n(1321)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,u=s((function(){var n=i(t.resolve),a=[],s=0,u=1;l(e,(function(e){var i=s++,l=!1;u++,o(n,t,e).then((function(e){l||(l=!0,a[i]=e,--u||r(a))}),c)})),--u||r(a)}));return u.error&&c(u.value),n.promise}})},223:function(e,t,n){"use strict";var r=n(7768),o=n(3608),i=n(7426).CONSTRUCTOR,a=n(31),s=n(1240),l=n(9218),c=n(7543),u=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&l(a)){var d=s("Promise").prototype.catch;u.catch!==d&&c(u,"catch",d,{unsafe:!0})}},5072:function(e,t,n){"use strict";var r,o,i,a=n(7768),s=n(3608),l=n(1653),c=n(6840),u=n(8513),d=n(7543),f=n(4381),p=n(3370),h=n(2267),m=n(6724),v=n(9218),g=n(3931),y=n(4817),b=n(917),x=n(1625).set,w=n(4410),k=n(5995),S=n(3752),_=n(9033),E=n(9671),C=n(31),T=n(7426),I=n(246),B="Promise",O=T.CONSTRUCTOR,P=T.REJECTION_EVENT,R=T.SUBCLASSING,A=E.getterFor(B),M=E.set,N=C&&C.prototype,D=C,L=N,j=c.TypeError,z=c.document,W=c.process,Z=I.f,F=Z,H=!!(z&&z.createEvent&&c.dispatchEvent),U="unhandledrejection",$=function(e){var t;return!(!g(e)||!v(t=e.then))&&t},G=function(e,t){var n,r,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?n=i:(d&&d.enter(),n=s(i),d&&(d.exit(),o=!0)),n===e.promise?c(j("Promise-chain cycle")):(r=$(n))?u(r,n,l,c):l(n)):c(i)}catch(f){d&&!o&&d.exit(),c(f)}},q=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)G(n,e);e.notified=!1,t&&!e.rejection&&V(e)})))},K=function(e,t,n){var r,o;H?((r=z.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!P&&(o=c["on"+e])?o(r):e===U&&k("Unhandled promise rejection",n)},V=function(e){u(x,c,(function(){var t,n=e.facade,r=e.value;if(Y(e)&&(t=S((function(){l?W.emit("unhandledRejection",r,n):K(U,n,r)})),e.rejection=l||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},X=function(e){u(x,c,(function(){var t=e.facade;l?W.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)}))},J=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q(e,!0))},ee=function e(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw j("Promise can't be resolved itself");var o=$(n);o?w((function(){var r={done:!1};try{u(o,n,J(e,r,t),J(Q,r,t))}catch(i){Q(r,i,t)}})):(t.value=n,t.state=1,q(t,!1))}catch(i){Q({done:!1},i,t)}}};if(O&&(L=(D=function(e){y(this,L),m(e),u(r,this);var t=A(this);try{e(J(ee,t),J(Q,t))}catch(n){Q(t,n)}}).prototype,(r=function(e){M(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=d(L,"then",(function(e,t){var n=A(this),r=Z(b(this,D));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=l?W.domain:void 0,0==n.state?n.reactions.add(r):w((function(){G(r,n)})),r.promise})),o=function(){var e=new r,t=A(e);this.promise=e,this.resolve=J(ee,t),this.reject=J(Q,t)},I.f=Z=function(e){return e===D||undefined===e?new o(e):F(e)},!s&&v(C)&&N!==Object.prototype)){i=N.then,R||d(N,"then",(function(e,t){var n=this;return new D((function(e,t){u(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete N.constructor}catch(te){}f&&f(N,L)}a({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:D}),p(D,B,!1,!0),h(B)},7675:function(e,t,n){n(5072),n(7506),n(223),n(6522),n(8001),n(7510)},6522:function(e,t,n){"use strict";var r=n(7768),o=n(8513),i=n(6724),a=n(246),s=n(3752),l=n(4439);r({target:"Promise",stat:!0,forced:n(1321)},{race:function(e){var t=this,n=a.f(t),r=n.reject,c=s((function(){var a=i(t.resolve);l(e,(function(e){o(a,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},8001:function(e,t,n){"use strict";var r=n(7768),o=n(8513),i=n(246);r({target:"Promise",stat:!0,forced:n(7426).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},7510:function(e,t,n){"use strict";var r=n(7768),o=n(1240),i=n(3608),a=n(31),s=n(7426).CONSTRUCTOR,l=n(6321),c=o("Promise"),u=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return l(u&&this===c?a:this,e)}})},4584:function(e,t,n){var r=n(7768),o=n(1240),i=n(6339),a=n(6448),s=n(611),l=n(5884),c=n(3931),u=n(4385),d=n(2837),f=o("Reflect","construct"),p=Object.prototype,h=[].push,m=d((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),v=!d((function(){f((function(){}))})),g=m||v;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(v&&!m)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(h,r,t),new(i(a,e,r))}var o=n.prototype,d=u(c(o)?o:p),g=i(e,d,t);return c(g)?g:d}})},447:function(e,t,n){"use strict";var r=n(7768),o=n(4087);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},4208:function(e,t,n){"use strict";var r=n(3211).PROPER,o=n(7543),i=n(5884),a=n(6124),s=n(2837),l=n(7667),c="toString",u=RegExp.prototype.toString,d=s((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=r&&u.name!=c;(d||f)&&o(RegExp.prototype,c,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},5012:function(e,t,n){"use strict";n(3309)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(3425))},6669:function(e,t,n){n(5012)},4121:function(e,t,n){"use strict";var r=n(7768),o=n(4932),i=n(9693),a=n(2244),s=n(6124),l=n(2525),c=o("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},9147:function(e,t,n){"use strict";var r=n(8424).charAt,o=n(6124),i=n(9671),a=n(4931),s=n(5927),l="String Iterator",c=i.set,u=i.getterFor(l);a(String,"String",(function(e){c(this,{type:l,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},6245:function(e,t,n){"use strict";var r=n(8513),o=n(8093),i=n(5884),a=n(9055),s=n(2347),l=n(6124),c=n(2244),u=n(3863),d=n(5466),f=n(2781);o("match",(function(e,t,n){return[function(t){var n=c(this),o=a(t)?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return f(r,o);var c=r.unicode;r.lastIndex=0;for(var u,p=[],h=0;null!==(u=f(r,o));){var m=l(u[0]);p[h]=m,""===m&&(r.lastIndex=d(o,s(r.lastIndex),c)),h++}return 0===h?null:p}]}))},4178:function(e,t,n){"use strict";var r=n(6339),o=n(8513),i=n(4932),a=n(8093),s=n(2837),l=n(5884),c=n(9218),u=n(9055),d=n(2128),f=n(2347),p=n(6124),h=n(2244),m=n(5466),v=n(3863),g=n(7794),y=n(2781),b=n(5028)("replace"),x=Math.max,w=Math.min,k=i([].concat),S=i([].push),_=i("".indexOf),E=i("".slice),C="$0"==="a".replace(/./,"$0"),T=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var i=T?"$":"$0";return[function(e,n){var r=h(this),i=u(e)?void 0:v(e,b);return i?o(i,e,r,n):o(t,p(r),e,n)},function(e,o){var a=l(this),s=p(e);if("string"==typeof o&&-1===_(o,i)&&-1===_(o,"$<")){var u=n(t,a,s,o);if(u.done)return u.value}var h=c(o);h||(o=p(o));var v=a.global;if(v){var b=a.unicode;a.lastIndex=0}for(var C=[];;){var T=y(a,s);if(null===T)break;if(S(C,T),!v)break;""===p(T[0])&&(a.lastIndex=m(s,f(a.lastIndex),b))}for(var I,B="",O=0,P=0;P<C.length;P++){for(var R=p((T=C[P])[0]),A=x(w(d(T.index),s.length),0),M=[],N=1;N<T.length;N++)S(M,void 0===(I=T[N])?I:String(I));var D=T.groups;if(h){var L=k([R],M,A,s);void 0!==D&&S(L,D);var j=p(r(o,void 0,L))}else j=g(R,s,A,M,D,o);A>=O&&(B+=E(s,O,A)+j,O=A+R.length)}return B+E(s,O)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!C||T)},9994:function(e,t,n){"use strict";var r=n(8513),o=n(8093),i=n(5884),a=n(9055),s=n(2244),l=n(8362),c=n(6124),u=n(3863),d=n(2781);o("search",(function(e,t,n){return[function(t){var n=s(this),o=a(t)?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](c(n))},function(e){var r=i(this),o=c(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var u=d(r,o);return l(r.lastIndex,s)||(r.lastIndex=s),null===u?-1:u.index}]}))},2872:function(e,t,n){"use strict";var r=n(6339),o=n(8513),i=n(4932),a=n(8093),s=n(5884),l=n(9055),c=n(670),u=n(2244),d=n(917),f=n(5466),p=n(2347),h=n(6124),m=n(3863),v=n(3278),g=n(2781),y=n(4087),b=n(8596),x=n(2837),w=b.UNSUPPORTED_Y,k=4294967295,S=Math.min,_=[].push,E=i(/./.exec),C=i(_),T=i("".slice),I=!x((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=h(u(this)),a=void 0===n?k:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!c(e))return o(t,i,e,a);for(var s,l,d,f=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=new RegExp(e.source,p+"g");(s=o(y,g,i))&&!((l=g.lastIndex)>m&&(C(f,T(i,m,s.index)),s.length>1&&s.index<i.length&&r(_,f,v(s,1)),d=s[0].length,m=l,f.length>=a));)g.lastIndex===s.index&&g.lastIndex++;return m===i.length?!d&&E(g,"")||C(f,""):C(f,T(i,m)),f.length>a?v(f,0,a):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=u(this),a=l(t)?void 0:m(t,e);return a?o(a,t,r,n):o(i,h(r),t,n)},function(e,r){var o=s(this),a=h(e),l=n(i,o,a,r,i!==t);if(l.done)return l.value;var c=d(o,RegExp),u=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(w?"g":"y"),v=new c(w?"^(?:"+o.source+")":o,m),y=void 0===r?k:r>>>0;if(0===y)return[];if(0===a.length)return null===g(v,a)?[a]:[];for(var b=0,x=0,_=[];x<a.length;){v.lastIndex=w?0:x;var E,I=g(v,w?T(a,x):a);if(null===I||(E=S(p(v.lastIndex+(w?x:0)),a.length))===b)x=f(a,x,u);else{if(C(_,T(a,b,x)),_.length===y)return _;for(var B=1;B<=I.length-1;B++)if(C(_,I[B]),_.length===y)return _;x=b=E}}return C(_,T(a,b)),_}]}),!I,w)},288:function(e,t,n){"use strict";var r=n(7768),o=n(4932),i=n(2573).f,a=n(2347),s=n(6124),l=n(9693),c=n(2244),u=n(2525),d=n(3608),f=o("".startsWith),p=o("".slice),h=Math.min,m=u("startsWith");r({target:"String",proto:!0,forced:!(!d&&!m&&!!function(){var e=i(String.prototype,"startsWith");return e&&!e.writable}())&&!m},{startsWith:function(e){var t=s(c(this));l(e);var n=a(h(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return f?f(t,r,n):p(t,n,n+r.length)===r}})},7550:function(e,t,n){"use strict";var r=n(7768),o=n(6840),i=n(8513),a=n(4932),s=n(3608),l=n(1196),c=n(166),u=n(2837),d=n(3013),f=n(8946),p=n(5884),h=n(5770),m=n(4655),v=n(6124),g=n(2037),y=n(4385),b=n(8084),x=n(3772),w=n(8910),k=n(400),S=n(2573),_=n(1592),E=n(1697),C=n(2845),T=n(7543),I=n(1778),B=n(9378),O=n(6196),P=n(6520),R=n(5028),A=n(1384),M=n(2162),N=n(2745),D=n(3370),L=n(9671),j=n(5880).forEach,z=B("hidden"),W="Symbol",Z=L.set,F=L.getterFor(W),H=Object.prototype,U=o.Symbol,$=U&&U.prototype,G=o.TypeError,q=o.QObject,K=S.f,V=_.f,Y=w.f,X=C.f,J=a([].push),Q=I("symbols"),ee=I("op-symbols"),te=I("wks"),ne=!q||!q.prototype||!q.prototype.findChild,re=l&&u((function(){return 7!=y(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(H,t);r&&delete H[t],V(e,t,n),r&&e!==H&&V(H,t,r)}:V,oe=function(e,t){var n=Q[e]=y($);return Z(n,{type:W,tag:e,description:t}),l||(n.description=t),n},ie=function(e,t,n){e===H&&ie(ee,t,n),p(e);var r=m(t);return p(n),d(Q,r)?(n.enumerable?(d(e,z)&&e[z][r]&&(e[z][r]=!1),n=y(n,{enumerable:g(0,!1)})):(d(e,z)||V(e,z,g(1,{})),e[z][r]=!0),re(e,r,n)):V(e,r,n)},ae=function(e,t){p(e);var n=h(t),r=b(n).concat(ue(n));return j(r,(function(t){l&&!i(se,n,t)||ie(e,t,n[t])})),e},se=function(e){var t=m(e),n=i(X,this,t);return!(this===H&&d(Q,t)&&!d(ee,t))&&(!(n||!d(this,t)||!d(Q,t)||d(this,z)&&this[z][t])||n)},le=function(e,t){var n=h(e),r=m(t);if(n!==H||!d(Q,r)||d(ee,r)){var o=K(n,r);return!o||!d(Q,r)||d(n,z)&&n[z][r]||(o.enumerable=!0),o}},ce=function(e){var t=Y(h(e)),n=[];return j(t,(function(e){d(Q,e)||d(O,e)||J(n,e)})),n},ue=function(e){var t=e===H,n=Y(t?ee:h(e)),r=[];return j(n,(function(e){!d(Q,e)||t&&!d(H,e)||J(r,Q[e])})),r};c||(U=function(){if(f($,this))throw G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=P(e),n=function e(n){this===H&&i(e,ee,n),d(this,z)&&d(this[z],t)&&(this[z][t]=!1),re(this,t,g(1,n))};return l&&ne&&re(H,t,{configurable:!0,set:n}),oe(t,e)},T($=U.prototype,"toString",(function(){return F(this).tag})),T(U,"withoutSetter",(function(e){return oe(P(e),e)})),C.f=se,_.f=ie,E.f=ae,S.f=le,x.f=w.f=ce,k.f=ue,A.f=function(e){return oe(R(e),e)},l&&(V($,"description",{configurable:!0,get:function(){return F(this).description}}),s||T(H,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),j(b(te),(function(e){M(e)})),r({target:W,stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?y(e):ae(y(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ce}),N(),D(U,W),O[z]=!0},4772:function(e,t,n){"use strict";var r=n(7768),o=n(1196),i=n(6840),a=n(4932),s=n(3013),l=n(9218),c=n(8946),u=n(6124),d=n(1592).f,f=n(189),p=i.Symbol,h=p&&p.prototype;if(o&&l(p)&&(!("description"in h)||void 0!==p().description)){var m={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(v,p),v.prototype=h,h.constructor=v;var g="Symbol(test)"==String(p("test")),y=a(h.valueOf),b=a(h.toString),x=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),k=a("".slice);d(h,"description",{configurable:!0,get:function(){var e=y(this);if(s(m,e))return"";var t=b(e),n=g?k(t,7,-1):w(t,x,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},104:function(e,t,n){var r=n(7768),o=n(1240),i=n(3013),a=n(6124),s=n(1778),l=n(2102),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(c,t))return c[t];var n=o("Symbol")(t);return c[t]=n,u[n]=t,n}})},5625:function(e,t,n){n(2162)("iterator")},8116:function(e,t,n){n(7550),n(104),n(7649),n(8344),n(1565)},7649:function(e,t,n){var r=n(7768),o=n(3013),i=n(8287),a=n(1772),s=n(1778),l=n(2102),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(c,e))return c[e]}})},5790:function(e,t,n){"use strict";var r=n(4932),o=n(3866),i=r(n(4739)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},6678:function(e,t,n){"use strict";var r=n(3866),o=n(5880).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},4847:function(e,t,n){"use strict";var r=n(3866),o=n(6012),i=n(9818),a=n(7205),s=n(8513),l=n(4932),c=n(2837),u=r.aTypedArray,d=r.exportTypedArrayMethod,f=l("".slice);d("fill",(function(e){var t=arguments.length;u(this);var n="Big"===f(a(this),0,3)?i(e):+e;return s(o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},8884:function(e,t,n){"use strict";var r=n(3866),o=n(5880).filter,i=n(3702),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},5669:function(e,t,n){"use strict";var r=n(3866),o=n(5880).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},7582:function(e,t,n){"use strict";var r=n(3866),o=n(5880).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},14:function(e,t,n){"use strict";var r=n(3866),o=n(5880).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8890:function(e,t,n){"use strict";var r=n(3866),o=n(488).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8850:function(e,t,n){"use strict";var r=n(3866),o=n(488).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},697:function(e,t,n){"use strict";var r=n(6840),o=n(2837),i=n(4932),a=n(3866),s=n(8887),l=n(5028)("iterator"),c=r.Uint8Array,u=i(s.values),d=i(s.keys),f=i(s.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,m=c&&c.prototype,v=!o((function(){m[l].call([1])})),g=!!m&&m.values&&m[l]===m.values&&"values"===m.values.name,y=function(){return u(p(this))};h("entries",(function(){return f(p(this))}),v),h("keys",(function(){return d(p(this))}),v),h("values",y,v||!g,{name:"values"}),h(l,y,v||!g,{name:"values"})},3517:function(e,t,n){"use strict";var r=n(3866),o=n(4932),i=r.aTypedArray,a=r.exportTypedArrayMethod,s=o([].join);a("join",(function(e){return s(i(this),e)}))},8591:function(e,t,n){"use strict";var r=n(3866),o=n(6339),i=n(2561),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},4516:function(e,t,n){"use strict";var r=n(3866),o=n(5880).map,i=n(7349),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},5977:function(e,t,n){"use strict";var r=n(3866),o=n(4512).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},1937:function(e,t,n){"use strict";var r=n(3866),o=n(4512).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},1283:function(e,t,n){"use strict";var r=n(3866),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,n=o(t).length,r=a(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t}))},6332:function(e,t,n){"use strict";var r=n(6840),o=n(8513),i=n(3866),a=n(3385),s=n(5303),l=n(8385),c=n(2837),u=r.RangeError,d=r.Int8Array,f=d&&d.prototype,p=f&&f.set,h=i.aTypedArray,m=i.exportTypedArrayMethod,v=!c((function(){var e=new Uint8ClampedArray(2);return o(p,e,{length:1,0:3},1),3!==e[1]})),g=v&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(v)return o(p,this,n,t);var r=this.length,i=a(n),c=0;if(i+t>r)throw u("Wrong length");for(;c<i;)this[t+c]=n[c++]}),!v||g)},2040:function(e,t,n){"use strict";var r=n(3866),o=n(7349),i=n(2837),a=n(5618),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(s(this),e,t),r=o(this),i=0,l=n.length,c=new r(l);l>i;)c[i]=n[i++];return c}),i((function(){new Int8Array(1).slice()})))},718:function(e,t,n){"use strict";var r=n(3866),o=n(5880).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},4777:function(e,t,n){"use strict";var r=n(6840),o=n(4932),i=n(2837),a=n(6724),s=n(7732),l=n(3866),c=n(8336),u=n(4891),d=n(3359),f=n(4469),p=l.aTypedArray,h=l.exportTypedArrayMethod,m=r.Uint16Array,v=m&&o(m.prototype.sort),g=!!v&&!(i((function(){v(new m(2),null)}))&&i((function(){v(new m(2),{})}))),y=!!v&&!i((function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(f)return f<602;var e,t,n=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(v(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),y?v(this,e):s(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||g)},1447:function(e,t,n){"use strict";var r=n(6840),o=n(6339),i=n(3866),a=n(2837),s=n(5618),l=r.Int8Array,c=i.aTypedArray,u=i.exportTypedArrayMethod,d=[].toLocaleString,f=!!l&&a((function(){d.call(new l(1))}));u("toLocaleString",(function(){return o(d,f?s(c(this)):c(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!a((function(){l.prototype.toLocaleString.call([1,2])})))},4319:function(e,t,n){"use strict";var r=n(3866).exportTypedArrayMethod,o=n(2837),i=n(6840),a=n(4932),s=i.Uint8Array,l=s&&s.prototype||{},c=[].toString,u=a([].join);o((function(){c.call({})}))&&(c=function(){return u(this)});var d=l.toString!=c;r("toString",c,d)},3966:function(e,t,n){n(2859)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},2583:function(e,t,n){var r=n(6840),o=n(650),i=n(2752),a=n(8129),s=n(3873),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in o)o[c]&&l(r[c]&&r[c].prototype);l(i)},1740:function(e,t,n){var r=n(6840),o=n(650),i=n(2752),a=n(8887),s=n(3873),l=n(5028),c=l("iterator"),u=l("toStringTag"),d=a.values,f=function(e,t){if(e){if(e[c]!==d)try{s(e,c,d)}catch(r){e[c]=d}if(e[u]||s(e,u,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var p in o)f(r[p]&&r[p].prototype,p);f(i,"DOMTokenList")},1477:function(e,t,n){"use strict";n(8887);var r=n(7768),o=n(6840),i=n(8513),a=n(4932),s=n(1196),l=n(1451),c=n(7543),u=n(7544),d=n(3370),f=n(1331),p=n(9671),h=n(4817),m=n(9218),v=n(3013),g=n(5851),y=n(7205),b=n(5884),x=n(3931),w=n(6124),k=n(4385),S=n(2037),_=n(8131),E=n(443),C=n(4974),T=n(5028),I=n(7732),B=T("iterator"),O="URLSearchParams",P="URLSearchParamsIterator",R=p.set,A=p.getterFor(O),M=p.getterFor(P),N=Object.getOwnPropertyDescriptor,D=function(e){if(!s)return o[e];var t=N(o,e);return t&&t.value},L=D("fetch"),j=D("Request"),z=D("Headers"),W=j&&j.prototype,Z=z&&z.prototype,F=o.RegExp,H=o.TypeError,U=o.decodeURIComponent,$=o.encodeURIComponent,G=a("".charAt),q=a([].join),K=a([].push),V=a("".replace),Y=a([].shift),X=a([].splice),J=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=F("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return U(e)}catch(t){return e}},oe=function(e){var t=V(e,ee," "),n=4;try{return U(t)}catch(r){for(;n;)t=V(t,ne(n--),re);return t}},ie=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},le=function(e){return V($(e),ie,se)},ce=f((function(e,t){R(this,{type:P,iterator:_(A(e).entries),kind:t})}),"Iterator",(function(){var e=M(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),ue=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?Q(e,1):e:w(e)))};ue.prototype={type:O,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,a,s,l,c=E(e);if(c)for(n=(t=_(e,c)).next;!(r=i(n,t)).done;){if(a=(o=_(b(r.value))).next,(s=i(a,o)).done||(l=i(a,o)).done||!i(a,o).done)throw H("Expected sequence with length 2");K(this.entries,{key:w(s.value),value:w(l.value)})}else for(var u in e)v(e,u)&&K(this.entries,{key:u,value:w(e[u])})},parseQuery:function(e){if(e)for(var t,n,r=J(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=J(t,"="),K(this.entries,{key:oe(Y(n)),value:oe(q(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],K(n,le(e.key)+"="+le(e.value));return q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var de=function(){h(this,fe);var e=arguments.length>0?arguments[0]:void 0;R(this,new ue(e))},fe=de.prototype;if(u(fe,{append:function(e,t){C(arguments.length,2);var n=A(this);K(n.entries,{key:w(e),value:w(t)}),n.updateURL()},delete:function(e){C(arguments.length,1);for(var t=A(this),n=t.entries,r=w(e),o=0;o<n.length;)n[o].key===r?X(n,o,1):o++;t.updateURL()},get:function(e){C(arguments.length,1);for(var t=A(this).entries,n=w(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){C(arguments.length,1);for(var t=A(this).entries,n=w(e),r=[],o=0;o<t.length;o++)t[o].key===n&&K(r,t[o].value);return r},has:function(e){C(arguments.length,1);for(var t=A(this).entries,n=w(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){C(arguments.length,1);for(var n,r=A(this),o=r.entries,i=!1,a=w(e),s=w(t),l=0;l<o.length;l++)(n=o[l]).key===a&&(i?X(o,l--,1):(i=!0,n.value=s));i||K(o,{key:a,value:s}),r.updateURL()},sort:function(){var e=A(this);I(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=A(this).entries,r=g(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(fe,B,fe.entries,{name:"entries"}),c(fe,"toString",(function(){return A(this).serialize()}),{enumerable:!0}),d(de,O),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:de}),!l&&m(z)){var pe=a(Z.has),he=a(Z.set),me=function(e){if(x(e)){var t,n=e.body;if(y(n)===O)return t=e.headers?new z(e.headers):new z,pe(t,"content-type")||he(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:S(0,w(n)),headers:S(0,t)})}return e};if(m(L)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return L(e,arguments.length>1?me(arguments[1]):{})}}),m(j)){var ve=function(e){return h(this,W),new j(e,arguments.length>1?me(arguments[1]):{})};W.constructor=ve,ve.prototype=W,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:de,getState:A}},588:function(e,t,n){"use strict";n(9147);var r,o=n(7768),i=n(1196),a=n(1451),s=n(6840),l=n(5851),c=n(4932),u=n(7543),d=n(695),f=n(4817),p=n(3013),h=n(2526),m=n(2422),v=n(3278),g=n(8424).codeAt,y=n(1649),b=n(6124),x=n(3370),w=n(4974),k=n(1477),S=n(9671),_=S.set,E=S.getterFor("URL"),C=k.URLSearchParams,T=k.getState,I=s.URL,B=s.TypeError,O=s.parseInt,P=Math.floor,R=Math.pow,A=c("".charAt),M=c(/./.exec),N=c([].join),D=c(1..toString),L=c([].pop),j=c([].push),z=c("".replace),W=c([].shift),Z=c("".split),F=c("".slice),H=c("".toLowerCase),U=c([].unshift),$="Invalid scheme",G="Invalid host",q="Invalid port",K=/[a-z]/i,V=/[\d+-.a-z]/i,Y=/\d/,X=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ie=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)U(t,e%256),e=P(e/256);return N(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=D(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ae={},se=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),le=h({},se,{"#":1,"?":1,"{":1,"}":1}),ce=h({},le,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ue=function(e,t){var n=g(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fe=function(e,t){var n;return 2==e.length&&M(K,A(e,0))&&(":"==(n=A(e,1))||!t&&"|"==n)},pe=function(e){var t;return e.length>1&&fe(F(e,0,2))&&(2==e.length||"/"===(t=A(e,2))||"\\"===t||"?"===t||"#"===t)},he=function(e){return"."===e||"%2e"===H(e)},me={},ve={},ge={},ye={},be={},xe={},we={},ke={},Se={},_e={},Ee={},Ce={},Te={},Ie={},Be={},Oe={},Pe={},Re={},Ae={},Me={},Ne={},De=function e(t,n,r){var o,i,a,s=b(t);if(n){if(i=this.parse(s))throw B(i);this.searchParams=null}else{if(void 0!==r&&(o=new e(r,!0)),i=this.parse(s,null,o))throw B(i);(a=T(new C)).bindURL(this),this.searchParams=a}};De.prototype={type:"URL",parse:function(e,t,n){var o,i,a,s,l,c=this,u=t||me,d=0,f="",h=!1,g=!1,y=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=z(e,re,"")),e=z(e,oe,""),o=m(e);d<=o.length;){switch(i=o[d],u){case me:if(!i||!M(K,i)){if(t)return $;u=ge;continue}f+=H(i),u=ve;break;case ve:if(i&&(M(V,i)||"+"==i||"-"==i||"."==i))f+=H(i);else{if(":"!=i){if(t)return $;f="",u=ge,d=0;continue}if(t&&(c.isSpecial()!=p(de,f)||"file"==f&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&de[c.scheme]==c.port&&(c.port=null));f="","file"==c.scheme?u=Ie:c.isSpecial()&&n&&n.scheme==c.scheme?u=ye:c.isSpecial()?u=ke:"/"==o[d+1]?(u=be,d++):(c.cannotBeABaseURL=!0,j(c.path,""),u=Ae)}break;case ge:if(!n||n.cannotBeABaseURL&&"#"!=i)return $;if(n.cannotBeABaseURL&&"#"==i){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Ne;break}u="file"==n.scheme?Ie:xe;continue;case ye:if("/"!=i||"/"!=o[d+1]){u=xe;continue}u=Se,d++;break;case be:if("/"==i){u=_e;break}u=Re;continue;case xe:if(c.scheme=n.scheme,i==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==i||"\\"==i&&c.isSpecial())u=we;else if("?"==i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",u=Me;else{if("#"!=i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,u=Re;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",u=Ne}break;case we:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Re;continue}u=_e}else u=Se;break;case ke:if(u=Se,"/"!=i||"/"!=A(f,d+1))continue;d++;break;case Se:if("/"!=i&&"\\"!=i){u=_e;continue}break;case _e:if("@"==i){h&&(f="%40"+f),h=!0,a=m(f);for(var x=0;x<a.length;x++){var w=a[x];if(":"!=w||y){var k=ue(w,ce);y?c.password+=k:c.username+=k}else y=!0}f=""}else if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(h&&""==f)return"Invalid authority";d-=m(f).length+1,f="",u=Ee}else f+=i;break;case Ee:case Ce:if(t&&"file"==c.scheme){u=Oe;continue}if(":"!=i||g){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(c.isSpecial()&&""==f)return G;if(t&&""==f&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(f))return s;if(f="",u=Pe,t)return;continue}"["==i?g=!0:"]"==i&&(g=!1),f+=i}else{if(""==f)return G;if(s=c.parseHost(f))return s;if(f="",u=Te,t==Ce)return}break;case Te:if(!M(Y,i)){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()||t){if(""!=f){var S=O(f,10);if(S>65535)return q;c.port=c.isSpecial()&&S===de[c.scheme]?null:S,f=""}if(t)return;u=Pe;continue}return q}f+=i;break;case Ie:if(c.scheme="file","/"==i||"\\"==i)u=Be;else{if(!n||"file"!=n.scheme){u=Re;continue}if(i==r)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==i)c.host=n.host,c.path=v(n.path),c.query="",u=Me;else{if("#"!=i){pe(N(v(o,d),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),u=Re;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",u=Ne}}break;case Be:if("/"==i||"\\"==i){u=Oe;break}n&&"file"==n.scheme&&!pe(N(v(o,d),""))&&(fe(n.path[0],!0)?j(c.path,n.path[0]):c.host=n.host),u=Re;continue;case Oe:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&fe(f))u=Re;else if(""==f){if(c.host="",t)return;u=Pe}else{if(s=c.parseHost(f))return s;if("localhost"==c.host&&(c.host=""),t)return;f="",u=Pe}continue}f+=i;break;case Pe:if(c.isSpecial()){if(u=Re,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=r&&(u=Re,"/"!=i))continue}else c.fragment="",u=Ne;else c.query="",u=Me;break;case Re:if(i==r||"/"==i||"\\"==i&&c.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(l=H(l=f))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||j(c.path,"")):he(f)?"/"==i||"\\"==i&&c.isSpecial()||j(c.path,""):("file"==c.scheme&&!c.path.length&&fe(f)&&(c.host&&(c.host=""),f=A(f,0)+":"),j(c.path,f)),f="","file"==c.scheme&&(i==r||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)W(c.path);"?"==i?(c.query="",u=Me):"#"==i&&(c.fragment="",u=Ne)}else f+=ue(i,le);break;case Ae:"?"==i?(c.query="",u=Me):"#"==i?(c.fragment="",u=Ne):i!=r&&(c.path[0]+=ue(i,ae));break;case Me:t||"#"!=i?i!=r&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":ue(i,ae)):(c.fragment="",u=Ne);break;case Ne:i!=r&&(c.fragment+=ue(i,se))}d++}},parseHost:function(e){var t,n,r;if("["==A(e,0)){if("]"!=A(e,e.length-1))return G;if(t=function(e){var t,n,r,o,i,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,f=function(){return A(e,d)};if(":"==f()){if(":"!=A(e,1))return;d+=2,u=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&M(ee,f());)t=16*t+O(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,c>6)return;for(r=0;f();){if(o=null,r>0){if(!("."==f()&&r<4))return;d++}if(!M(Y,f()))return;for(;M(Y,f());){if(i=O(f(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}l[c]=256*l[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l}(F(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=y(e),M(te,e))return G;if(t=function(e){var t,n,r,o,i,a,s,l=Z(e,".");if(l.length&&""==l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=l[r]))return e;if(i=10,o.length>1&&"0"==A(o,0)&&(i=M(X,o)?16:8,o=F(o,8==i?1:2)),""===o)a=0;else{if(!M(10==i?Q:8==i?J:ee,o))return e;a=O(o,i)}j(n,a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=R(256,5-t))return null}else if(a>255)return null;for(s=L(n),r=0;r<n.length;r++)s+=n[r]*R(256,3-r);return s}(e),null===t)return G;this.host=t}else{if(M(ne,e))return G;for(t="",n=m(e),r=0;r<n.length;r++)t+=ue(n[r],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(de,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&fe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=ie(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+N(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw B(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Le(e.path[0]).origin}catch(n){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ue(t[n],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ue(t[n],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=b(e))?this.port=null:this.parse(e,Te))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+N(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Pe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=b(e))?this.query=null:("?"==A(e,0)&&(e=F(e,1)),this.query="",this.parse(e,Me)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=b(e))?("#"==A(e,0)&&(e=F(e,1)),this.fragment="",this.parse(e,Ne)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Le=function(e){var t=f(this,je),n=w(arguments.length,1)>1?arguments[1]:void 0,r=_(t,new De(e,!1,n));i||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},je=Le.prototype,ze=function(e,t){return{get:function(){return E(this)[e]()},set:t&&function(e){return E(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(d(je,"href",ze("serialize","setHref")),d(je,"origin",ze("getOrigin")),d(je,"protocol",ze("getProtocol","setProtocol")),d(je,"username",ze("getUsername","setUsername")),d(je,"password",ze("getPassword","setPassword")),d(je,"host",ze("getHost","setHost")),d(je,"hostname",ze("getHostname","setHostname")),d(je,"port",ze("getPort","setPort")),d(je,"pathname",ze("getPathname","setPathname")),d(je,"search",ze("getSearch","setSearch")),d(je,"searchParams",ze("getSearchParams")),d(je,"hash",ze("getHash","setHash"))),u(je,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),u(je,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),I){var We=I.createObjectURL,Ze=I.revokeObjectURL;We&&u(Le,"createObjectURL",l(We,I)),Ze&&u(Le,"revokeObjectURL",l(Ze,I))}x(Le,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Le})},9330:function(e,t,n){n(588)},9718:function(e,t,n){var r,o,i,a=n(6115).default,s=n(2122).default,l=n(861).default,c=n(1588).default,u=n(3808).default,d=n(1655).default,f=n(6389).default,p=n(7424).default,h=n(6690).default,m=n(9728).default,v=n(4704).default,g=n(8416).default;o="undefined"!=typeof window?window:this,i=function(e){"use strict";var t={};function n(t,n,r,o){!t.hasOwnProperty(n)&&(t[n]=o.apply(null,r),e&&"function"==typeof CustomEvent&&e.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:n,module:t[n]}})))}return n(t,"Core/Globals.js",[],(function(){var t,n;return(n=t||(t={})).SVG_NS="http://www.w3.org/2000/svg",n.product="Highcharts",n.version="11.4.8",n.win=void 0!==e?e:{},n.doc=n.win.document,n.svg=n.doc&&n.doc.createElementNS&&!!n.doc.createElementNS(n.SVG_NS,"svg").createSVGRect,n.userAgent=n.win.navigator&&n.win.navigator.userAgent||"",n.isChrome=n.win.chrome,n.isFirefox=-1!==n.userAgent.indexOf("Firefox"),n.isMS=/(edge|msie|trident)/i.test(n.userAgent)&&!n.win.opera,n.isSafari=!n.isChrome&&-1!==n.userAgent.indexOf("Safari"),n.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(n.userAgent),n.isWebKit=-1!==n.userAgent.indexOf("AppleWebKit"),n.deg2rad=2*Math.PI/360,n.hasBidiBug=n.isFirefox&&4>parseInt(n.userAgent.split("Firefox/")[1],10),n.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],n.noop=function(){},n.supportsPassiveEvents=function(){var e=!1;if(!n.isMS){var t=Object.defineProperty({},"passive",{get:function(){e=!0}});n.win.addEventListener&&n.win.removeEventListener&&(n.win.addEventListener("testPassive",n.noop,t),n.win.removeEventListener("testPassive",n.noop,t))}return e}(),n.charts=[],n.composed=[],n.dateFormats={},n.seriesTypes={},n.symbolSizes={},n.chartCount=0,t})),n(t,"Core/Utilities.js",[t["Core/Globals.js"]],(function(e){var t,n=e.charts,r=e.doc,o=e.win;function i(t,n,r,a){var s=n?"Highcharts error":"Highcharts warning";32===t&&(t="".concat(s,": Deprecated member"));var l=f(t),c=l?"".concat(s," #").concat(t,": www.highcharts.com/errors/").concat(t,"/"):t.toString();if(void 0!==a){var u="";l&&(c+="?"),_(a,(function(e,t){u+="\n - ".concat(t,": ").concat(e),l&&(c+=encodeURI(t)+"="+encodeURI(e))})),c+=u}C(e,"displayError",{chart:r,code:t,message:c,params:a},(function(){if(n)throw Error(c);o.console&&-1===i.messages.indexOf(c)&&console.warn(c)})),i.messages.push(c)}function a(e,t){return parseInt(e,t||10)}function s(e){return"string"==typeof e}function l(e){var t=Object.prototype.toString.call(e);return"[object Array]"===t||"[object Array Iterator]"===t}function c(e,t){return!!e&&"object"==typeof e&&(!t||!l(e))}function u(e){return c(e)&&"number"==typeof e.nodeType}function d(e){var t=e&&e.constructor;return!(!c(e,!0)||u(e)||!t||!t.name||"Object"===t.name)}function f(e){return"number"==typeof e&&!isNaN(e)&&e<1/0&&e>-1/0}function p(e){return null!=e}function h(e,t,n){var r,o=s(t)&&!p(n),i=function(t,n){p(t)?e.setAttribute(n,t):o?(r=e.getAttribute(n))||"class"!==n||(r=e.getAttribute(n+"Name")):e.removeAttribute(n)};return s(t)?i(n,t):_(t,i),r}function m(e){return l(e)?e:[e]}function y(e,t){var n;for(n in e||(e={}),t)e[n]=t[n];return e}function b(){for(var e=arguments,t=e.length,n=0;n<t;n++){var r=e[n];if(null!=r)return r}}function x(e,t){y(e.style,t)}function w(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function k(e,t){return e>1e14?e:parseFloat(e.toPrecision(t||14))}(i||(i={})).messages=[],Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var S=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){var n,r=e.length;for(n=0;n<r;n++)if(t(e[n],n))return e[n]};function _(e,t,n){for(var r in e)Object.hasOwnProperty.call(e,r)&&t.call(n||e[r],e[r],r,e)}function E(e,t,n){function r(t,n){var r=e.removeEventListener;r&&r.call(e,t,n,!1)}function o(n){var o,i;e.nodeName&&(t?(o={})[t]=!0:o=n,_(o,(function(e,t){if(n[t])for(i=n[t].length;i--;)r(t,n[t][i].fn)})))}var i="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(i,"hcEvents")){var a=i.hcEvents;if(t){var s=a[t]||[];n?(a[t]=s.filter((function(e){return n!==e.fn})),r(t,n)):(o(a),a[t]=[])}else o(a),delete i.hcEvents}}function C(t,n,o,i){if(o=o||{},r.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==e)){var a=r.createEvent("Events");a.initEvent(n,!0,!0),o=y(a,o),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(n,o)}else if(t.hcEvents){o.target||y(o,{preventDefault:function(){o.defaultPrevented=!0},target:t,type:n});for(var s=[],l=t,c=!1;l.hcEvents;)Object.hasOwnProperty.call(l,"hcEvents")&&l.hcEvents[n]&&(s.length&&(c=!0),s.unshift.apply(s,l.hcEvents[n])),l=Object.getPrototypeOf(l);c&&s.sort((function(e,t){return e.order-t.order})),s.forEach((function(e){!1===e.fn.call(t,o)&&o.preventDefault()}))}i&&!o.defaultPrevented&&i.call(t,o)}_({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(t,n){e[n]=function(e){return i(32,!1,void 0,g({},"Highcharts.".concat(n),"use Array.".concat(t))),Array.prototype[t].apply(e,[].slice.call(arguments,1))}}));var T=function(){var e=Math.random().toString(36).substring(2,9)+"-",n=0;return function(){return"highcharts-"+(t?"":e)+n++}}();return o.jQuery&&(o.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new(e[s(t[0])?t.shift():"Chart"])(this[0],t[0],t[1]),this):n[h(this[0],"data-highcharts-chart")]}),{addEvent:function(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(i,"hcEvents")||(i.hcEvents={});var a=i.hcEvents;e.Point&&t instanceof e.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,n,r,!!e.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==n.indexOf("touch"):o.passive,capture:!1}),a[n]||(a[n]=[]);var l={fn:r,order:"number"==typeof o.order?o.order:1/0};return a[n].push(l),a[n].sort((function(e,t){return e.order-t.order})),function(){E(t,n,r)}},arrayMax:function(e){for(var t=e.length,n=e[0];t--;)e[t]>n&&(n=e[t]);return n},arrayMin:function(e){for(var t=e.length,n=e[0];t--;)e[t]<n&&(n=e[t]);return n},attr:h,clamp:function(e,t,n){return e>t?e<n?e:n:t},clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){p(e)&&clearTimeout(e)})),correctFloat:k,createElement:function(e,t,n,o,i){var a=r.createElement(e);return t&&y(a,t),i&&x(a,{padding:"0",border:"none",margin:"0"}),n&&x(a,n),o&&o.appendChild(a),a},crisp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=t%2/2,o=n?-1:1;return(Math.round(e*o-r)+r)*o},css:x,defined:p,destroyObjectProperties:function(e,t,n){_(e,(function(r,o){r!==t&&null!==r&&void 0!==r&&r.destroy&&r.destroy(),((null===r||void 0===r?void 0:r.destroy)||!n)&&delete e[o]}))},diffObjects:function(e,t,n,r){var o={};return function e(t,o,i,a){var s=n?o:t;_(t,(function(n,u){if(!a&&r&&r.indexOf(u)>-1&&o[u]){n=m(n),i[u]=[];for(var d=0;d<Math.max(n.length,o[u].length);d++)o[u][d]&&(void 0===n[d]?i[u][d]=o[u][d]:(i[u][d]={},e(n[d],o[u][d],i[u][d],a+1)))}else c(n,!0)&&!n.nodeType?(i[u]=l(n)?[]:{},e(n,o[u]||{},i[u],a+1),0!==Object.keys(i[u]).length||"colorAxis"===u&&0===a||delete i[u]):(t[u]!==o[u]||u in t&&!(u in o))&&"__proto__"!==u&&"constructor"!==u&&(i[u]=s[u])}))}(e,t,o,0),o},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,t){for(var n=e.length;n--;)if(e[n]===t){e.splice(n,1);break}},error:i,extend:y,extendClass:function(e,t){var n=function(){};return y(n.prototype=new e,t),n},find:S,fireEvent:C,getClosestDistance:function(e,t){var n,r,o,i=!t;return e.forEach((function(e){if(e.length>1)for(o=e.length-1;o>0;o--){var a;(r=e[o]-e[o-1])<0&&!i?(null!==(a=t)&&void 0!==a&&a(),t=void 0):r&&(void 0===n||r<n)&&(n=r)}})),n},getMagnitude:w,getNestedProperty:function(e,t){for(var n=e.split(".");n.length&&p(t);){var r=n.shift();if(void 0===r||"__proto__"===r)return;if("this"===r){var i,a=void 0;return c(t)&&(a=t["@this"]),null!==(i=a)&&void 0!==i?i:t}var s=t[r];if(!p(s)||"function"==typeof s||"number"==typeof s.nodeType||s===o)return;t=s}return t},getStyle:function e(t,n,r){var i;if("width"===n){var s=Math.min(t.offsetWidth,t.scrollWidth),l=t.getBoundingClientRect&&t.getBoundingClientRect().width;return l<s&&l>=s-1&&(s=Math.floor(l)),Math.max(0,s-(e(t,"padding-left",!0)||0)-(e(t,"padding-right",!0)||0))}if("height"===n)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(e(t,"padding-top",!0)||0)-(e(t,"padding-bottom",!0)||0));var c=o.getComputedStyle(t,void 0);return c&&(i=c.getPropertyValue(n),b(r,"opacity"!==n)&&(i=a(i))),i},inArray:function(e,t,n){return i(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),t.indexOf(e,n)},insertItem:function(e,t){var n,r=e.options.index,o=t.length;for(n=e.options.isInternal?o:0;n<o+1;n++)if(!t[n]||f(r)&&r<b(t[n].options.index,t[n]._i)||t[n].options.isInternal){t.splice(n,0,e);break}return n},isArray:l,isClass:d,isDOMElement:u,isFunction:function(e){return"function"==typeof e},isNumber:f,isObject:c,isString:s,keys:function(e){return i(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,t=arguments,n={},r=function e(t,n){return"object"!=typeof t&&(t={}),_(n,(function(r,o){"__proto__"!==o&&"constructor"!==o&&(!c(r,!0)||d(r)||u(r)?t[o]=n[o]:t[o]=e(t[o]||{},r))})),t};!0===t[0]&&(n=t[1],t=Array.prototype.slice.call(t,2));var o=t.length;for(e=0;e<o;e++)n=r(n,t[e]);return n},normalizeTickInterval:function(e,t,n,r,o){var i,a=e,s=e/(n=b(n,w(e)));for(!t&&(t=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?t=t.filter((function(e){return e%1==0})):n<=.1&&(t=[1/n]))),i=0;i<t.length&&(a=t[i],(!o||!(a*n>=e))&&(o||!(s<=(t[i]+(t[i+1]||t[i]))/2)));i++);return k(a*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:_,offset:function(e){var t=r.documentElement,n=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:n.top+(o.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(o.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:n.width,height:n.height}},pad:function(e,t,n){return Array((t||2)+1-String(e).replace("-","").length).join(n||"0")+e},pick:b,pInt:a,pushUnique:function(e,t){return 0>e.indexOf(t)&&!!e.push(t)},relativeLength:function(e,t,n){return/%$/.test(e)?t*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:E,replaceNested:function(e){for(var t,n,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];do{var a,s=v((t=e,o));try{for(s.s();!(a=s.n()).done;)n=a.value,e=e.replace(n[0],n[1])}catch(l){s.e(l)}finally{s.f()}}while(e!==t);return e},splat:m,stableSort:function(e,t){var n,r,o=e.length;for(r=0;r<o;r++)e[r].safeI=r;for(e.sort((function(e,r){return 0===(n=t(e,r))?e.safeI-r.safeI:n})),r=0;r<o;r++)delete e[r].safeI},syncTimeout:function(e,t,n){return t>0?setTimeout(e,t,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:T,useSerialIds:function(e){return t=b(e,t)},wrap:function(e,t,n){var r=e[t];e[t]=function(){var e=arguments,t=this;return n.apply(this,[function(){return r.apply(t,arguments.length?arguments:e)}].concat([].slice.call(arguments)))}}}})),n(t,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),n(t,"Core/Color/Palettes.js",[],(function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}})),n(t,"Core/Time.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t){var n=e.win,r=t.defined,o=t.error,i=t.extend,a=t.isNumber,s=t.isObject,l=t.merge,c=t.objectEach,u=t.pad,d=t.pick,f=t.splat,v=t.timeUnits,g=e.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,y=e.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange,b=function(){function t(e){h(this,t),this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(e)}return m(t,[{key:"get",value:function(e,t){if(this.variableTimezone||this.timezoneOffset){var n=t.getTime(),r=n-this.getTimezoneOffset(t);t.setTime(r);var o=t["getUTC"+e]();return t.setTime(n),o}return this.useUTC?t["getUTC"+e]():t["get"+e]()}},{key:"set",value:function(e,t,n){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===e||"Seconds"===e||"Minutes"===e&&this.getTimezoneOffset(t)%36e5==0)return t["setUTC"+e](n);var r=this.getTimezoneOffset(t),o=t.getTime()-r;t.setTime(o),t["setUTC"+e](n);var i=this.getTimezoneOffset(t);return o=t.getTime()+i,t.setTime(o)}return this.useUTC||g&&"FullYear"===e?t["setUTC"+e](n):t["set"+e](n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=d(e.useUTC,!0);this.options=e=l(!0,this.options,e),this.Date=e.Date||n.Date||Date,this.useUTC=t,this.timezoneOffset=t&&e.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=t&&!(!e.getTimezoneOffset&&!e.timezone)}},{key:"makeTime",value:function(e,t,n,r,o,i){var a,s,l;return this.useUTC?(a=this.Date.UTC.apply(0,arguments),a+=s=this.getTimezoneOffset(a),s!==(l=this.getTimezoneOffset(a))?a+=l-s:s-36e5!==this.getTimezoneOffset(a-36e5)||y||(a-=36e5)):a=new this.Date(e,t,d(n,1),d(r,0),d(o,0),d(i,0)).getTime(),a}},{key:"timezoneOffsetFunction",value:function(){var e=this,n=this.options,r=n.getTimezoneOffset;return this.useUTC?n.timezone?function(e){try{var r="shortOffset,".concat(n.timezone||""),i=(t.formatCache[r]=t.formatCache[r]||Intl.DateTimeFormat("en",{timeZone:n.timezone,timeZoneName:"shortOffset"})).format(e).split(/(GMT|:)/).map(Number),s=p(i,5),l=(s[0],s[1],s[2]),c=(s[3],s[4]),u=-36e5*(l+(void 0===c?0:c)/60);if(a(u))return u}catch(e){o(34)}return 0}:this.useUTC&&r?function(e){return 6e4*r(e.valueOf())}:function(){return 6e4*(e.timezoneOffset||0)}:function(e){return 6e4*new Date(e.toString()).getTimezoneOffset()}}},{key:"dateFormat",value:function(t,n,o){if(!r(n)||isNaN(n))return e.defaultOptions.lang&&e.defaultOptions.lang.invalidDate||"";t=d(t,"%Y-%m-%d %H:%M:%S");var a=this,s=new this.Date(n),l=this.get("Hours",s),f=this.get("Day",s),p=this.get("Date",s),h=this.get("Month",s),m=this.get("FullYear",s),v=e.defaultOptions.lang,g=v&&v.weekdays,y=v&&v.shortWeekdays;return c(i({a:y?y[f]:g[f].substr(0,3),A:g[f],d:u(p),e:u(p,2," "),w:f,b:v.shortMonths[h],B:v.months[h],m:u(h+1),o:h+1,y:m.toString().substr(2,2),Y:m,H:u(l),k:l,I:u(l%12||12),l:l%12||12,M:u(this.get("Minutes",s)),p:l<12?"AM":"PM",P:l<12?"am":"pm",S:u(this.get("Seconds",s)),L:u(Math.floor(n%1e3),3)},e.dateFormats),(function(e,r){for(;-1!==t.indexOf("%"+r);)t=t.replace("%"+r,"function"==typeof e?e.call(a,n):e)})),o?t.substr(0,1).toUpperCase()+t.substr(1):t}},{key:"resolveDTLFormat",value:function(e){return s(e,!0)?e:{main:(e=f(e))[0],from:e[1],to:e[2]}}},{key:"getTimeTicks",value:function(e,t,n,o){var a,s,l,c,u=this,f=u.Date,p=[],h={},m=new f(t),g=e.unitRange,y=e.count||1;if(o=d(o,1),r(t)){u.set("Milliseconds",m,g>=v.second?0:y*Math.floor(u.get("Milliseconds",m)/y)),g>=v.second&&u.set("Seconds",m,g>=v.minute?0:y*Math.floor(u.get("Seconds",m)/y)),g>=v.minute&&u.set("Minutes",m,g>=v.hour?0:y*Math.floor(u.get("Minutes",m)/y)),g>=v.hour&&u.set("Hours",m,g>=v.day?0:y*Math.floor(u.get("Hours",m)/y)),g>=v.day&&u.set("Date",m,g>=v.month?1:Math.max(1,y*Math.floor(u.get("Date",m)/y))),g>=v.month&&(u.set("Month",m,g>=v.year?0:y*Math.floor(u.get("Month",m)/y)),s=u.get("FullYear",m)),g>=v.year&&(s-=s%y,u.set("FullYear",m,s)),g===v.week&&(c=u.get("Day",m),u.set("Date",m,u.get("Date",m)-c+o+(c<o?-7:0))),s=u.get("FullYear",m);var b=u.get("Month",m),x=u.get("Date",m),w=u.get("Hours",m);t=m.getTime(),(u.variableTimezone||!u.useUTC)&&r(n)&&(l=n-t>4*v.month||u.getTimezoneOffset(t)!==u.getTimezoneOffset(n));var k=m.getTime();for(a=1;k<n;)p.push(k),g===v.year?k=u.makeTime(s+a*y,0):g===v.month?k=u.makeTime(s,b+a*y):!l||g!==v.day&&g!==v.week?l&&g===v.hour&&y>1?k=u.makeTime(s,b,x,w+a*y):k+=g*y:k=u.makeTime(s,b,x+a*y*(g===v.day?1:7)),a++;p.push(k),g<=v.hour&&p.length<1e4&&p.forEach((function(e){e%18e5==0&&"000000000"===u.dateFormat("%H%M%S%L",e)&&(h[e]="day")}))}return p.info=i(e,{higherRanks:h,totalRange:g*y}),p}},{key:"getDateFormat",value:function(e,t,n,r){var o=this.dateFormat("%m-%d %H:%M:%S.%L",t),i="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},s="millisecond",l=s;for(s in v){if(e===v.week&&+this.dateFormat("%w",t)===n&&o.substr(6)===i.substr(6)){s="week";break}if(v[s]>e){s=l;break}if(a[s]&&o.substr(a[s])!==i.substr(a[s]))break;"week"!==s&&(l=s)}return this.resolveDTLFormat(r[s]).main}}]),t}();return b.formatCache={},b})),n(t,"Core/Defaults.js",[t["Core/Chart/ChartDefaults.js"],t["Core/Globals.js"],t["Core/Color/Palettes.js"],t["Core/Time.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o){var i=t.isTouchDevice,a=o.fireEvent,s=o.merge,l={colors:n.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:e,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:function(e){return Math.sqrt(1-Math.pow(e-1,2))}},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:i?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};l.chart.styledMode=!1;var c=new r(l.time);return{defaultOptions:l,defaultTime:c,getOptions:function(){return l},setOptions:function(e){return a(t,"setOptions",{options:e}),s(!0,l,e),(e.time||e.global)&&(t.time?t.time.update(s(l.global,l.time,e.global,e.time)):t.time=c),l}}})),n(t,"Core/Color/Color.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t){var n=t.isNumber,r=t.merge,o=t.pInt,i=function(){function t(n){var r,o,i,a;h(this,t),this.rgba=[NaN,NaN,NaN,NaN],this.input=n;var s=e.Color;if(s&&s!==t)return new s(n);if("object"==typeof n&&void 0!==n.stops)this.stops=n.stops.map((function(e){return new t(e[1])}));else if("string"==typeof n){if(this.input=n=t.names[n.toLowerCase()]||n,"#"===n.charAt(0)){var l=n.length,c=parseInt(n.substr(1),16);7===l?o=[(16711680&c)>>16,(65280&c)>>8,255&c,1]:4===l&&(o=[(3840&c)>>4|(3840&c)>>8,(240&c)>>4|240&c,(15&c)<<4|15&c,1])}if(!o)for(i=t.parsers.length;i--&&!o;)(r=(a=t.parsers[i]).regex.exec(n))&&(o=a.parse(r))}o&&(this.rgba=o)}return m(t,[{key:"get",value:function(e){var t=this.input,o=this.rgba;if("object"==typeof t&&void 0!==this.stops){var i=r(t);return i.stops=[].slice.call(i.stops),this.stops.forEach((function(t,n){i.stops[n]=[i.stops[n][0],t.get(e)]})),i}return o&&n(o[0])?"rgb"===e||!e&&1===o[3]?"rgb("+o[0]+","+o[1]+","+o[2]+")":"a"===e?"".concat(o[3]):"rgba("+o.join(",")+")":t}},{key:"brighten",value:function(e){var t=this.rgba;if(this.stops)this.stops.forEach((function(t){t.brighten(e)}));else if(n(e)&&0!==e)for(var r=0;r<3;r++)t[r]+=o(255*e),t[r]<0&&(t[r]=0),t[r]>255&&(t[r]=255);return this}},{key:"setOpacity",value:function(e){return this.rgba[3]=e,this}},{key:"tweenTo",value:function(e,t){var r=this.rgba,o=e.rgba;if(!n(r[0])||!n(o[0]))return e.input||"none";var i=1!==o[3]||1!==r[3];return(i?"rgba(":"rgb(")+Math.round(o[0]+(r[0]-o[0])*(1-t))+","+Math.round(o[1]+(r[1]-o[1])*(1-t))+","+Math.round(o[2]+(r[2]-o[2])*(1-t))+(i?","+(o[3]+(r[3]-o[3])*(1-t)):"")+")"}}],[{key:"parse",value:function(e){return e?new t(e):t.None}}]),t}();return i.names={white:"#ffffff",black:"#000000"},i.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(e){return[o(e[1]),o(e[2]),o(e[3]),parseFloat(e[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(e){return[o(e[1]),o(e[2]),o(e[3]),1]}}],i.None=new i(""),i})),n(t,"Core/Animation/Fx.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=e.parse,o=t.win,i=n.isNumber,a=n.objectEach,s=function(){function e(t,n,r){h(this,e),this.pos=NaN,this.options=n,this.elem=t,this.prop=r}return m(e,[{key:"dSetter",value:function(){var e=this.paths,t=e&&e[0],n=e&&e[1],r=this.now||0,o=[];if(1!==r&&t&&n)if(t.length===n.length&&r<1)for(var a=0;a<n.length;a++){for(var s=t[a],l=n[a],c=[],u=0;u<l.length;u++){var d=s[u],f=l[u];i(d)&&i(f)&&("A"!==l[0]||4!==u&&5!==u)?c[u]=d+r*(f-d):c[u]=f}o.push(c)}else o=n;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)}},{key:"update",value:function(){var e=this.elem,t=this.prop,n=this.now,r=this.options.step;this[t+"Setter"]?this[t+"Setter"]():e.attr?e.element&&e.attr(t,n,null,!0):e.style[t]=n+this.unit,r&&r.call(e,n,this)}},{key:"run",value:function(t,n,r){var i=this,a=i.options,s=function e(t){return!e.stopped&&i.step(t)},l=o.requestAnimationFrame||function(e){setTimeout(e,13)};t!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=n,this.unit=r,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===e.timers.push(s)&&l((function t(){for(var n=0;n<e.timers.length;n++)e.timers[n]()||e.timers.splice(n--,1);e.timers.length&&l(t)}))):(delete a.curAnim[this.prop],a.complete&&0===Object.keys(a.curAnim).length&&a.complete.call(this.elem))}},{key:"step",value:function(e){var t,n,r=+new Date,o=this.options,i=this.elem,s=o.complete,l=o.duration,c=o.curAnim;return i.attr&&!i.element?t=!1:e||r>=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),c[this.prop]=!0,n=!0,a(c,(function(e){!0!==e&&(n=!1)})),n&&s&&s.call(i),t=!1):(this.pos=o.easing((r-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t}},{key:"initPath",value:function(e,t,n){var r,o,a,s,l=e.startX,c=e.endX,u=n.slice(),d=e.isArea,f=d?2:1,p=t&&n.length>t.length&&n.hasStackedCliffs,h=t&&t.slice();if(!h||p)return[u,u];function m(e,t){for(;e.length<o;){var n=e[0],r=t[o-e.length];if(r&&"M"===n[0]&&("C"===r[0]?e[0]=["C",n[1],n[2],n[1],n[2],n[1],n[2]]:e[0]=["L",n[1],n[2]]),e.unshift(n),d){var i=e.pop();e.push(e[e.length-1],i)}}}function v(e){for(;e.length<o;){var t=e[Math.floor(e.length/f)-1].slice();if("C"===t[0]&&(t[1]=t[5],t[2]=t[6]),d){var n=e[Math.floor(e.length/f)].slice();e.splice(e.length/2,0,t,n)}else e.push(t)}}if(l&&c&&c.length){for(a=0;a<l.length;a++){if(l[a]===c[0]){r=a;break}if(l[0]===c[c.length-l.length+a]){r=a,s=!0;break}if(l[l.length-1]===c[c.length-l.length+a]){r=l.length-a;break}}void 0===r&&(h=[])}return h.length&&i(r)&&(o=u.length+r*f,s?(m(h,u),v(u)):(m(u,h),v(h))),[h,u]}},{key:"fillSetter",value:function(){e.prototype.strokeSetter.apply(this,arguments)}},{key:"strokeSetter",value:function(){this.elem.attr(this.prop,r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}}]),e}();return s.timers=[],s})),n(t,"Core/Animation/AnimationUtilities.js",[t["Core/Animation/Fx.js"],t["Core/Utilities.js"]],(function(e,t){var n=t.defined,r=t.getStyle,o=t.isArray,i=t.isNumber,a=t.isObject,s=t.merge,l=t.objectEach,c=t.pick;function u(e){return a(e)?s({duration:500,defer:0},e):{duration:e?500:0,defer:0}}function d(t,n){for(var r=e.timers.length;r--;)e.timers[r].elem!==t||n&&n!==e.timers[r].prop||(e.timers[r].stopped=!0)}return{animate:function(t,n,c){var u,f,p,h,m="";a(c)||(c={duration:(h=arguments)[2],easing:h[3],complete:h[4]}),i(c.duration)||(c.duration=400),c.easing="function"==typeof c.easing?c.easing:Math[c.easing]||Math.easeInOutSine,c.curAnim=s(n),l(n,(function(i,a){d(t,a),p=new e(t,c,a),f=void 0,"d"===a&&o(n.d)?(p.paths=p.initPath(t,t.pathArray,n.d),p.toD=n.d,u=0,f=1):t.attr?u=t.attr(a):(u=parseFloat(r(t,a))||0,"opacity"!==a&&(m="px")),f||(f=i),"string"==typeof f&&f.match("px")&&(f=f.replace(/px/g,"")),p.run(u,f,m)}))},animObject:u,getDeferredAnimation:function(e,t,r){var o=u(t),i=r?[r]:e.series,s=0,l=0;return i.forEach((function(e){var r=u(e.options.animation);s=a(t)&&n(t.defer)?o.defer:Math.max(s,r.duration+r.defer),l=Math.min(o.duration,r.duration)})),e.renderer.forExport&&(s=0),{defer:Math.max(0,s-l),duration:Math.min(s,l)}},setAnimation:function(e,t){t.renderer.globalAnimation=c(e,t.options.chart.animation,!0)},stop:d}})),n(t,"Core/Renderer/HTML/AST.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t){var n=e.SVG_NS,r=e.win,o=t.attr,i=t.createElement,a=t.css,s=t.error,l=t.isFunction,c=t.isString,u=t.objectEach,d=t.splat,f=r.trustedTypes,p=f&&l(f.createPolicy)&&f.createPolicy("highcharts",{createHTML:function(e){return e}}),v=p?p.createHTML(""):"",g=function(){try{return!!(new DOMParser).parseFromString(v,"text/html")}catch(e){return!1}}(),y=function(){function t(e){h(this,t),this.nodes="string"==typeof e?this.parseMarkup(e):e}return m(t,[{key:"addToDOM",value:function(r){return function r(i,l){var c;return d(i).forEach((function(i){var d,f=i.tagName,p=i.textContent?e.doc.createTextNode(i.textContent):void 0,h=t.bypassHTMLFiltering;if(f)if("#text"===f)d=p;else if(-1!==t.allowedTags.indexOf(f)||h){var m="svg"===f?n:l.namespaceURI||n,v=e.doc.createElementNS(m,f),g=i.attributes||{};u(i,(function(e,t){"tagName"!==t&&"attributes"!==t&&"children"!==t&&"style"!==t&&"textContent"!==t&&(g[t]=e)})),o(v,h?g:t.filterUserAttributes(g)),i.style&&a(v,i.style),p&&v.appendChild(p),r(i.children||[],v),d=v}else s(33,!1,void 0,{"Invalid tagName in config":f});d&&l.appendChild(d),c=d})),c}(this.nodes,r)}},{key:"parseMarkup",value:function(e){var n,r=[];if(e=e.trim().replace(/ style=(["'])/g," data-style=$1"),g)n=(new DOMParser).parseFromString(p?p.createHTML(e):e,"text/html");else{var o=i("div");o.innerHTML=e,n={body:o}}var a=function e(n,r){var o=n.nodeName.toLowerCase(),i={tagName:o};"#text"===o&&(i.textContent=n.textContent||"");var a=n.attributes;if(a){var s={};[].forEach.call(a,(function(e){"data-style"===e.name?i.style=t.parseStyle(e.value):s[e.name]=e.value})),i.attributes=s}if(n.childNodes.length){var l=[];[].forEach.call(n.childNodes,(function(t){e(t,l)})),l.length&&(i.children=l)}r.push(i)};return[].forEach.call(n.body.childNodes,(function(e){return a(e,r)})),r}}],[{key:"filterUserAttributes",value:function(e){return u(e,(function(n,r){var o=!0;-1===t.allowedAttributes.indexOf(r)&&(o=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(r)&&(o=c(n)&&t.allowedReferences.some((function(e){return 0===n.indexOf(e)}))),o||(s(33,!1,void 0,{"Invalid attribute in config":"".concat(r)}),delete e[r]),c(n)&&e[r]&&(e[r]=n.replace(/</g,"&lt;"))})),e}},{key:"parseStyle",value:function(e){return e.split(";").reduce((function(e,t){var n=t.split(":").map((function(e){return e.trim()})),r=n.shift();return r&&n.length&&(e[r.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))]=n.join(":")),e}),{})}},{key:"setElementHTML",value:function(e,n){e.innerHTML=t.emptyHTML,n&&new t(n).addToDOM(e)}}]),t}();return y.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],y.allowedReferences=["https://","http://","mailto:","/","../","./","#"],y.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],y.emptyHTML=v,y.bypassHTMLFiltering=!1,y})),n(t,"Core/Templating.js",[t["Core/Defaults.js"],t["Core/Utilities.js"]],(function(e,t){var n=e.defaultOptions,r=e.defaultTime,o=t.extend,i=t.getNestedProperty,a=t.isArray,s=t.isNumber,l=t.isObject,c=t.pick,u=t.pInt,d={add:function(e,t){return e+t},divide:function(e,t){return 0!==t?e/t:""},eq:function(e,t){return e==t},each:function(e){var t=arguments[arguments.length-1];return!!a(e)&&e.map((function(n,r){return f(t.body,o(l(n)?n:{"@this":n},{"@index":r,"@first":0===r,"@last":r===e.length-1}))})).join("")},ge:function(e,t){return e>=t},gt:function(e,t){return e>t},if:function(e){return!!e},le:function(e,t){return e<=t},lt:function(e,t){return e<t},multiply:function(e,t){return e*t},ne:function(e,t){return e!=t},subtract:function(e,t){return e-t},unless:function(e){return!e}};function f(){for(var e,t,o,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,u=/\{([\w\:\.\,;\-\/<>%@"'\u2019=#\(\)]+)\}/g,h=/\(([\w\:\.\,;\-\/<>%@"'=]+)\)/g,m=[],v=/f$/,g=/\.(\d)/,y=n.lang,b=l&&l.time||r,x=l&&l.numberFormatter||p,w=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===t||"false"!==t&&((e=Number(t)).toString()===t?e:i(t,s))},k=0;null!==(e=u.exec(a));){var S,_=h.exec(e[1]);_&&(e=_,o=!0),t&&t.isBlock||(t={ctx:s,expression:e[1],find:e[0],isBlock:"#"===e[1].charAt(0),start:e.index,startInner:e.index+e[0].length,length:e[0].length});var E=e[1].split(" ")[0].replace("#","");d[E]&&(t.isBlock&&E===t.fn&&k++,t.fn||(t.fn=E));var C="else"===e[1];if(t.isBlock&&t.fn&&(e[1]==="/".concat(t.fn)||C))if(k)!C&&k--;else{var T=t.startInner,I=a.substr(T,e.index-T);void 0===t.body?(t.body=I,t.startInner=e.index+e[0].length):t.elseBody=I,t.find+=I+e[0],C||(m.push(t),t=void 0)}else t.isBlock||m.push(t);if(_&&(null===(S=t)||void 0===S||!S.isBlock))break}return m.forEach((function(e){var t,n,r=e.body,o=e.elseBody,i=e.expression,u=e.fn;if(u){var p=[e],h=i.split(" ");for(n=d[u].length;n--;)p.unshift(w(h[n+1]));t=d[u].apply(s,p),e.isBlock&&"boolean"==typeof t&&(t=f(t?r:o,s,l))}else{var m=i.split(":");if(t=w(m.shift()||""),m.length&&"number"==typeof t){var k=m.join(":");if(v.test(k)){var S=parseInt((k.match(g)||["","-1"])[1],10);null!==t&&(t=x(t,S,y.decimalPoint,k.indexOf(",")>-1?y.thousandsSep:""))}else t=b.dateFormat(k,t)}}a=a.replace(e.find,c(t,""))})),o?f(a,s,l):a}function p(e,t,r,o){var i,a;e=+e||0,t=+t;var l=n.lang,d=(e.toString().split(".")[1]||"").split("e")[0].length,f=e.toString().split("e"),p=t;-1===t?t=Math.min(d,20):s(t)?t&&f[1]&&f[1]<0&&((a=t+ +f[1])>=0?(f[0]=(+f[0]).toExponential(a).split("e")[0],t=a):(f[0]=f[0].split(".")[0]||0,e=t<20?(f[0]*Math.pow(10,f[1])).toFixed(t):0,f[1]=0)):t=2;var h=(Math.abs(f[1]?f[0]:e)+Math.pow(10,-Math.max(t,d)-1)).toFixed(t),m=String(u(h)),v=m.length>3?m.length%3:0;return r=c(r,l.decimalPoint),o=c(o,l.thousandsSep),i=(e<0?"-":"")+(v?m.substr(0,v)+o:""),0>+f[1]&&!p?i="0":i+=m.substr(v).replace(/(\d{3})(?=\d)/g,"$1"+o),t?i+=r+h.slice(-t):0==+i&&(i="0"),f[1]&&0!=+i&&(i+="e"+f[1]),i}return{dateFormat:function(e,t,n){return r.dateFormat(e,t,n)},format:f,helpers:d,numberFormat:p}})),n(t,"Core/Renderer/RendererRegistry.js",[t["Core/Globals.js"]],(function(e){var t,n,r;return(n=t||(t={})).rendererTypes={},n.getRendererType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return n.rendererTypes[e]||n.rendererTypes[r]},n.registerRendererType=function(t,o,i){n.rendererTypes[t]=o,(!r||i)&&(r=t,e.Renderer=o)},t})),n(t,"Core/Renderer/RendererUtilities.js",[t["Core/Utilities.js"]],(function(e){var t,n=e.clamp,r=e.pick,o=e.pushUnique,i=e.stableSort;return(t||(t={})).distribute=function e(t,a,s){var l,c,u,d,f,p,h=t,m=h.reducedLen||a,v=function(e,t){return e.target-t.target},g=[],y=t.length,b=[],x=g.push,w=!0,k=0;for(l=y;l--;)k+=t[l].size;if(k>m){for(i(t,(function(e,t){return(t.rank||0)-(e.rank||0)})),u=(p=t[0].rank===t[t.length-1].rank)?y/2:-1,c=p?u:y-1;u&&k>m;)d=t[l=Math.floor(c)],o(b,l)&&(k-=d.size),c+=u,p&&c>=t.length&&(c=u/=2);b.sort((function(e,t){return t-e})).forEach((function(e){return x.apply(g,t.splice(e,1))}))}for(i(t,v),t=t.map((function(e){return{size:e.size,targets:[e.target],align:r(e.align,.5)}}));w;){for(l=t.length;l--;)d=t[l],f=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=n(f-d.size*d.align,0,a-d.size);for(l=t.length,w=!1;l--;)l>0&&t[l-1].pos+t[l-1].size>t[l].pos&&(t[l-1].size+=t[l].size,t[l-1].targets=t[l-1].targets.concat(t[l].targets),t[l-1].align=.5,t[l-1].pos+t[l-1].size>a&&(t[l-1].pos=a-t[l-1].size),t.splice(l,1),w=!0)}return x.apply(h,g),l=0,t.some((function(t){var n=0;return(t.targets||[]).some((function(){return h[l].pos=t.pos+n,void 0!==s&&Math.abs(h[l].pos-h[l].target)>s?(h.slice(0,l+1).forEach((function(e){return delete e.pos})),h.reducedLen=(h.reducedLen||a)-.1*a,h.reducedLen>.1*a&&e(h,a,s),!0):(n+=h[l].size,l++,!1)}))})),i(h,v),h},t})),n(t,"Core/Renderer/SVG/SVGElement.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n,r){var o=e.animate,i=e.animObject,a=e.stop,s=n.deg2rad,l=n.doc,c=n.svg,u=n.SVG_NS,d=n.win,f=r.addEvent,v=r.attr,g=r.createElement,y=r.crisp,b=r.css,x=r.defined,w=r.erase,k=r.extend,S=r.fireEvent,_=r.isArray,E=r.isFunction,C=r.isObject,T=r.isString,I=r.merge,B=r.objectEach,O=r.pick,P=r.pInt,R=r.pushUnique,A=r.replaceNested,M=r.syncTimeout,N=r.uniqueKey,D=function(){function e(t,n){h(this,e),this.onEvents={},this.opacity=1,this.SVG_NS=u,this.element="span"===n||"body"===n?g(n):l.createElementNS(this.SVG_NS,n),this.renderer=t,this.styles={},S(this,"afterInit")}return m(e,[{key:"_defaultGetter",value:function(e){var t=O(this[e+"Value"],this[e],this.element?this.element.getAttribute(e):null,0);return/^-?[\d\.]+$/.test(t)&&(t=parseFloat(t)),t}},{key:"_defaultSetter",value:function(e,t,n){n.setAttribute(t,e)}},{key:"add",value:function(e){var t,n=this.renderer,r=this.element;return e&&(this.parentGroup=e),void 0!==this.textStr&&"text"===this.element.nodeName&&n.buildText(this),this.added=!0,(!e||e.handleZ||this.zIndex)&&(t=this.zIndexSetter()),t||(e?e.element:n.box).appendChild(r),this.onAdd&&this.onAdd(),this}},{key:"addClass",value:function(e,t){var n=t?"":this.attr("class")||"";return(e=(e||"").split(/ /g).reduce((function(e,t){return-1===n.indexOf(t)&&e.push(t),e}),n?[n]:[]).join(" "))!==n&&this.attr("class",e),this}},{key:"afterSetters",value:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}},{key:"align",value:function(e,t,n){var r,o,i,a,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l={},c=this.renderer,u=c.alignedObjects,d=!!e;e?(this.alignOptions=e,this.alignByTranslate=t,this.alignTo=n):(e=this.alignOptions||{},t=this.alignByTranslate,n=this.alignTo);var f=!n||T(n)?n||"renderer":void 0;f&&(d&&R(u,this),n=void 0);var p=O(n,c[f],c),h=e.align,m=e.verticalAlign;return r=(p.x||0)+(e.x||0),o=(p.y||0)+(e.y||0),"right"===h?i=1:"center"===h&&(i=2),i&&(r+=((p.width||0)-(e.width||0))/i),l[t?"translateX":"x"]=Math.round(r),"bottom"===m?a=1:"middle"===m&&(a=2),a&&(o+=((p.height||0)-(e.height||0))/a),l[t?"translateY":"y"]=Math.round(o),s&&(this[this.placed?"animate":"attr"](l),this.placed=!0),this.alignAttr=l,this}},{key:"alignSetter",value:function(e){var t={left:"start",center:"middle",right:"end"};t[e]&&(this.alignValue=e,this.element.setAttribute("text-anchor",t[e]))}},{key:"animate",value:function(e,t,n){var r=this,a=i(O(t,this.renderer.globalAnimation,!0)),s=a.defer;return l.hidden&&(a.duration=0),0!==a.duration?(n&&(a.complete=n),M((function(){r.element&&o(r,e,a)}),s)):(this.attr(e,void 0,n||a.complete),B(e,(function(e,t){a.step&&a.step.call(this,e,{prop:t,pos:1,elem:this})}),this)),this}},{key:"applyTextOutline",value:function(e){var t=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(t.style.fill)));var r=e.split(" "),o=r[r.length-1],i=r[0];if(i&&"none"!==i&&n.svg){this.fakeTS=!0,i=i.replace(/(^[\d\.]+)(.*?)$/g,(function(e,t,n){return 2*Number(t)+n})),this.removeTextOutline();var a=l.createElementNS(u,"tspan");v(a,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":i,"stroke-linejoin":"round"});var s=t.querySelector("textPath")||t;[].forEach.call(s.childNodes,(function(e){var t=e.cloneNode(!0);t.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(e){return t.removeAttribute(e)})),a.appendChild(t)}));var c=0;[].forEach.call(s.querySelectorAll("text tspan"),(function(e){c+=Number(e.getAttribute("dy"))}));var d=l.createElementNS(u,"tspan");d.textContent="\u200b",v(d,{x:Number(t.getAttribute("x")),dy:-c}),a.appendChild(d),s.insertBefore(a,s.firstChild)}}},{key:"attr",value:function(t,n,r,o){var i,s,l,c=this.element,u=e.symbolCustomAttribs,d=this;return"string"==typeof t&&void 0!==n&&(i=t,(t={})[i]=n),"string"==typeof t?d=(this[t+"Getter"]||this._defaultGetter).call(this,t,c):(B(t,(function(e,n){l=!1,o||a(this,n),this.symbolName&&-1!==u.indexOf(n)&&(s||(this.symbolAttr(t),s=!0),l=!0),this.rotation&&("x"===n||"y"===n)&&(this.doTransform=!0),l||(this[n+"Setter"]||this._defaultSetter).call(this,e,n,c)}),this),this.afterSetters()),r&&r.call(this),d}},{key:"clip",value:function(e){if(e&&!e.clipPath){var t=N()+"-",n=this.renderer.createElement("clipPath").attr({id:t}).add(this.renderer.defs);k(e,{clipPath:n,id:t,count:0}),e.add(n)}return this.attr("clip-path",e?"url(".concat(this.renderer.url,"#").concat(e.id,")"):"none")}},{key:"crisp",value:function(e,t){t=Math.round(t||e.strokeWidth||0);var n=e.x||this.x||0,r=e.y||this.y||0,o=(e.width||this.width||0)+n,i=(e.height||this.height||0)+r,a=y(n,t),s=y(r,t);return k(e,{x:a,y:s,width:y(o,t)-a,height:y(i,t)-s}),x(e.strokeWidth)&&(e.strokeWidth=t),e}},{key:"complexColor",value:function(e,n,r){var o,i,a,s,l,c,u,d,f,p,h,m=this.renderer,v=[];S(this.renderer,"complexColor",{args:arguments},(function(){if(e.radialGradient?i="radialGradient":e.linearGradient&&(i="linearGradient"),i){if(a=e[i],l=m.gradients,c=e.stops,f=r.radialReference,_(a)&&(e[i]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===i&&f&&!x(a.gradientUnits)&&(s=a,a=I(a,m.getRadialAttr(f,s),{gradientUnits:"userSpaceOnUse"})),B(a,(function(e,t){"id"!==t&&v.push(t,e)})),B(c,(function(e){v.push(e)})),l[v=v.join(",")])p=l[v].attr("id");else{a.id=p=N();var g=l[v]=m.createElement(i).attr(a).add(m.defs);g.radAttr=s,g.stops=[],c.forEach((function(e){0===e[1].indexOf("rgba")?(u=(o=t.parse(e[1])).get("rgb"),d=o.get("a")):(u=e[1],d=1);var n=m.createElement("stop").attr({offset:e[0],"stop-color":u,"stop-opacity":d}).add(g);g.stops.push(n)}))}h="url("+m.url+"#"+p+")",r.setAttribute(n,h),r.gradient=v,e.toString=function(){return h}}}))}},{key:"css",value:function(e){var t,n=this.styles,r={},o=this.element,i=!n;if(n&&B(e,(function(e,t){n&&n[t]!==e&&(r[t]=e,i=!0)})),i){n&&(e=k(n,r)),null===e.width||"auto"===e.width?delete this.textWidth:"text"===o.nodeName.toLowerCase()&&e.width&&(t=this.textWidth=P(e.width)),k(this.styles,e),t&&!c&&this.renderer.forExport&&delete e.width;var a=I(e);o.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach((function(e){return a&&delete a[e]})),a.color&&(a.fill=a.color)),b(o,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),e.textOutline&&this.applyTextOutline(e.textOutline)),this}},{key:"dashstyleSetter",value:function(e){var t,n=this["stroke-width"];if("inherit"===n&&(n=1),e=e&&e.toLowerCase()){var r=e.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=r.length;t--;)r[t]=""+P(r[t])*O(n,NaN);e=r.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",e)}}},{key:"destroy",value:function(){var e,t,n,r=this,o=r.element||{},i=r.renderer,s=o.ownerSVGElement,l="SPAN"===o.nodeName&&r.parentGroup||void 0;if(o.onclick=o.onmouseout=o.onmouseover=o.onmousemove=o.point=null,a(r),r.clipPath&&s){var c=r.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(e){e.getAttribute("clip-path").indexOf(c.element.id)>-1&&e.removeAttribute("clip-path")})),r.clipPath=c.destroy()}if(r.connector=null===(e=r.connector)||void 0===e?void 0:e.destroy(),r.stops){for(n=0;n<r.stops.length;n++)r.stops[n].destroy();r.stops.length=0,r.stops=void 0}for(r.safeRemoveChild(o);l&&l.div&&0===l.div.childNodes.length;)t=l.parentGroup,r.safeRemoveChild(l.div),delete l.div,l=t;r.alignOptions&&w(i.alignedObjects,r),B(r,(function(e,t){r[t]&&r[t].parentGroup===r&&r[t].destroy&&r[t].destroy(),delete r[t]}))}},{key:"dSetter",value:function(e,t,n){_(e)&&("string"==typeof e[0]&&(e=this.renderer.pathToSegments(e)),this.pathArray=e,e=e.reduce((function(e,t,n){return t&&t.join?(n?e+" ":"")+t.join(" "):(t||"").toString()}),"")),/(NaN| {2}|^$)/.test(e)&&(e="M 0 0"),this[t]!==e&&(n.setAttribute(t,e),this[t]=e)}},{key:"fillSetter",value:function(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.complexColor(e,t,n)}},{key:"hrefSetter",value:function(e,t,n){n.setAttributeNS("http://www.w3.org/1999/xlink",t,e)}},{key:"getBBox",value:function(t,n){var r,o,i,a,s=this.alignValue,l=this.element,c=this.renderer,u=this.styles,d=this.textStr,f=c.cache,p=c.cacheKeys,h=l.namespaceURI===this.SVG_NS,m=O(n,this.rotation,0),v=c.styledMode?l&&e.prototype.getStyle.call(l,"font-size"):u.fontSize;if(x(d)&&(-1===(a=d.toString()).indexOf("<")&&(a=a.replace(/\d/g,"0")),a+=["",c.rootFontSize,v,m,this.textWidth,s,u.textOverflow,u.fontWeight].join(",")),a&&!t&&(r=f[a]),!r||r.polygon){if(h||c.forExport){try{i=this.fakeTS&&function(e){var t=l.querySelector(".highcharts-text-outline");t&&b(t,{display:e})},E(i)&&i("none"),r=l.getBBox?k({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight,x:0,y:0},E(i)&&i("")}catch(t){}(!r||r.width<0)&&(r={x:0,y:0,width:0,height:0})}else r=this.htmlGetBBox();o=r.height,h&&(r.height=o={"11px,17":14,"13px,20":16}["".concat(v||"",",").concat(Math.round(o))]||o),m&&(r=this.getRotatedBox(r,m));var g={bBox:r};S(this,"afterGetBBox",g),r=g.bBox}if(a&&(""===d||r.height>0)){for(;p.length>250;)delete f[p.shift()];f[a]||p.push(a),f[a]=r}return r}},{key:"getRotatedBox",value:function(e,t){var n=e.x,r=e.y,o=e.width,i=e.height,a=this.alignValue,l=this.translateY,c=this.rotationOriginX,u=void 0===c?0:c,d=this.rotationOriginY,f=void 0===d?0:d,h={right:1,center:.5}[a||0]||0,m=Number(this.element.getAttribute("y")||0)-(l?0:r),v=t*s,g=(t-90)*s,y=Math.cos(v),b=Math.sin(v),x=o*y,w=o*b,k=Math.cos(g),S=Math.sin(g),_=[u,f].map((function(e){return[e-e*y,e*b]})),E=p(_,2),C=p(E[0],2),T=C[0],I=C[1],B=p(E[1],2),O=B[0],P=n+h*(o-x)+T+B[1]+m*k,R=P+x,A=R-i*k,M=A-x,N=r+m-h*w-I+O+m*S,D=N+w,L=D-i*S,j=L-w,z=Math.min(P,R,A,M),W=Math.min(N,D,L,j);return{x:z,y:W,width:Math.max(P,R,A,M)-z,height:Math.max(N,D,L,j)-W,polygon:[[P,N],[R,D],[A,L],[M,j]]}}},{key:"getStyle",value:function(e){return d.getComputedStyle(this.element||this,"").getPropertyValue(e)}},{key:"hasClass",value:function(e){return-1!==(""+this.attr("class")).split(" ").indexOf(e)}},{key:"hide",value:function(){return this.attr({visibility:"hidden"})}},{key:"htmlGetBBox",value:function(){return{height:0,width:0,x:0,y:0}}},{key:"on",value:function(e,t){var n=this.onEvents;return n[e]&&n[e](),n[e]=f(this.element,e,t),this}},{key:"opacitySetter",value:function(e,t,n){var r=Number(Number(e).toFixed(3));this.opacity=r,n.setAttribute(t,r)}},{key:"reAlign",value:function(){var e;(null===(e=this.alignOptions)||void 0===e?void 0:e.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}},{key:"removeClass",value:function(e){return this.attr("class",(""+this.attr("class")).replace(T(e)?RegExp("(^|)".concat(e,"(|$)")):e," ").replace(/ +/g," ").trim())}},{key:"removeTextOutline",value:function(){var e=this.element.querySelector("tspan.highcharts-text-outline");e&&this.safeRemoveChild(e)}},{key:"safeRemoveChild",value:function(e){var t=e.parentNode;t&&t.removeChild(e)}},{key:"setRadialReference",value:function(e){var t=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=e,t&&t.radAttr&&t.animate(this.renderer.getRadialAttr(e,t.radAttr)),this}},{key:"shadow",value:function(e){var t,n=this.renderer,r=I(90===(null===(t=this.parentGroup)||void 0===t?void 0:t.rotation)?{offsetX:-1,offsetY:-1}:{},C(e)?e:{}),o=n.shadowDefinition(r);return this.attr({filter:e?"url(".concat(n.url,"#").concat(o,")"):"none"})}},{key:"show",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.attr({visibility:e?"inherit":"visible"})}},{key:"stroke-widthSetter",value:function(e,t,n){this[t]=e,n.setAttribute(t,e)}},{key:"strokeWidth",value:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var e,t=this.getStyle("stroke-width"),n=0;return/px$/.test(t)?n=P(t):""!==t&&(v(e=l.createElementNS(u,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),n=e.getBBox().width,e.parentNode.removeChild(e)),n}},{key:"symbolAttr",value:function(t){var n=this;e.symbolCustomAttribs.forEach((function(e){n[e]=O(t[e],n[e])})),n.attr({d:n.renderer.symbols[n.symbolName](n.x,n.y,n.width,n.height,n)})}},{key:"textSetter",value:function(e){e!==this.textStr&&(delete this.textPxLength,this.textStr=e,this.added&&this.renderer.buildText(this),this.reAlign())}},{key:"titleSetter",value:function(e){var t=this.element,n=t.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");t.insertBefore?t.insertBefore(n,t.firstChild):t.appendChild(n),n.textContent=A(O(e,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}},{key:"toFront",value:function(){var e=this.element;return e.parentNode.appendChild(e),this}},{key:"translate",value:function(e,t){return this.attr({translateX:e,translateY:t})}},{key:"updateTransform",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform",n=this.element,r=this.matrix,o=this.rotation,i=void 0===o?0:o,a=this.rotationOriginX,s=this.rotationOriginY,l=this.scaleX,c=this.scaleY,u=this.translateX,d=void 0===u?0:u,f=this.translateY,p=void 0===f?0:f,h=["translate("+d+","+p+")"];x(r)&&h.push("matrix("+r.join(",")+")"),i&&(h.push("rotate("+i+" "+O(a,n.getAttribute("x"),0)+" "+O(s,n.getAttribute("y")||0)+")"),"SPAN"===(null===(e=this.text)||void 0===e?void 0:e.element.tagName)&&this.text.attr({rotation:i,rotationOriginX:(a||0)-this.padding,rotationOriginY:(s||0)-this.padding})),(x(l)||x(c))&&h.push("scale("+O(l,1)+" "+O(c,1)+")"),h.length&&!(this.text||this).textPath&&n.setAttribute(t,h.join(" "))}},{key:"visibilitySetter",value:function(e,t,n){"inherit"===e?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e}},{key:"xGetter",value:function(e){return"circle"===this.element.nodeName&&("x"===e?e="cx":"y"===e&&(e="cy")),this._defaultGetter(e)}},{key:"zIndexSetter",value:function(e,t){var n,r,o,i,a,s=this.renderer,l=this.parentGroup,c=(l||s).element||s.box,u=this.element,d=c===s.box,f=!1,p=this.added;if(x(e)?(u.setAttribute("data-z-index",e),e=+e,this[t]===e&&(p=!1)):x(this[t])&&u.removeAttribute("data-z-index"),this[t]=e,p){for((e=this.zIndex)&&l&&(l.handleZ=!0),a=(n=c.childNodes).length-1;a>=0&&!f;a--)i=!x(o=(r=n[a]).getAttribute("data-z-index")),r!==u&&(e<0&&i&&!d&&!a?(c.insertBefore(u,n[a]),f=!0):(P(o)<=e||i&&(!x(e)||e>=0))&&(c.insertBefore(u,n[a+1]),f=!0));f||(c.insertBefore(u,n[d?3:0]),f=!0)}return f}}]),e}();return D.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],D.prototype.strokeSetter=D.prototype.fillSetter,D.prototype.yGetter=D.prototype.xGetter,D.prototype.matrixSetter=D.prototype.rotationOriginXSetter=D.prototype.rotationOriginYSetter=D.prototype.rotationSetter=D.prototype.scaleXSetter=D.prototype.scaleYSetter=D.prototype.translateXSetter=D.prototype.translateYSetter=D.prototype.verticalAlignSetter=function(e,t){this[t]=e,this.doTransform=!0},D})),n(t,"Core/Renderer/SVG/SVGLabel.js",[t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,t){var n=t.defined,r=t.extend,o=t.isNumber,i=t.merge,a=t.pick,s=t.removeEvent,l=function(t){d(p,t);var l=f(p);function p(e,t,n,r,o,i,a,s,c,u){var d,f;return h(this,p),(d=l.call(this,e,"g")).paddingLeftSetter=d.paddingSetter,d.paddingRightSetter=d.paddingSetter,d.doUpdate=!1,d.textStr=t,d.x=n,d.y=r,d.anchorX=i,d.anchorY=a,d.baseline=c,d.className=u,d.addClass("button"===u?"highcharts-no-tooltip":"highcharts-label"),u&&d.addClass("highcharts-"+u),d.text=e.text(void 0,0,0,s).attr({zIndex:1}),"string"==typeof o&&((f=/^url\((.*?)\)$/.test(o))||d.renderer.symbols[o])&&(d.symbolKey=o),d.bBox=p.emptyBBox,d.padding=3,d.baselineOffset=0,d.needsBox=e.styledMode||f,d.deferredAttr={},d.alignFactor=0,d}return m(p,[{key:"alignSetter",value:function(e){var t={left:0,center:.5,right:1}[e];t!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))}},{key:"anchorXSetter",value:function(e,t){this.anchorX=e,this.boxAttr(t,Math.round(e)-this.getCrispAdjust()-this.xSetting)}},{key:"anchorYSetter",value:function(e,t){this.anchorY=e,this.boxAttr(t,e-this.ySetting)}},{key:"boxAttr",value:function(e,t){this.box?this.box.attr(e,t):this.deferredAttr[e]=t}},{key:"css",value:function(t){if(t){var n={};t=i(t),p.textProps.forEach((function(e){void 0!==t[e]&&(n[e]=t[e],delete t[e])})),this.text.css(n),"fontSize"in n||"fontWeight"in n?this.updateTextPadding():("width"in n||"textOverflow"in n)&&this.updateBoxSize()}return e.prototype.css.call(this,t)}},{key:"destroy",value:function(){s(this.element,"mouseenter"),s(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),e.prototype.destroy.call(this)}},{key:"fillSetter",value:function(e,t){e&&(this.needsBox=!0),this.fill=e,this.boxAttr(t,e)}},{key:"getBBox",value:function(e,t){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var n=this.padding,r=this.height,o=void 0===r?0:r,i=this.translateX,s=void 0===i?0:i,l=this.translateY,c=void 0===l?0:l,u=this.width,d=void 0===u?0:u,f=a(this.paddingLeft,n),p=null!==t&&void 0!==t?t:this.rotation||0,h={width:d,height:o,x:s+this.bBox.x-f,y:c+this.bBox.y-n+this.baselineOffset};return p&&(h=this.getRotatedBox(h,p)),h}},{key:"getCrispAdjust",value:function(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}},{key:"heightSetter",value:function(e){this.heightSetting=e,this.doUpdate=!0}},{key:"afterSetters",value:function(){c(u(p.prototype),"afterSetters",this).call(this),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}},{key:"onAdd",value:function(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&n(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}},{key:"paddingSetter",value:function(e,t){o(e)?e!==this[t]&&(this[t]=e,this.updateTextPadding()):this[t]=void 0}},{key:"rSetter",value:function(e,t){this.boxAttr(t,e)}},{key:"strokeSetter",value:function(e,t){this.stroke=e,this.boxAttr(t,e)}},{key:"stroke-widthSetter",value:function(e,t){e&&(this.needsBox=!0),this["stroke-width"]=e,this.boxAttr(t,e)}},{key:"text-alignSetter",value:function(e){this.textAlign=e}},{key:"textSetter",value:function(e){void 0!==e&&this.text.attr({text:e}),this.updateTextPadding(),this.reAlign()}},{key:"updateBoxSize",value:function(){var e,t=this.text,i={},a=this.padding,s=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!n(t.textStr)?p.emptyBBox:t.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||s.height||0)+2*a;var l=this.renderer.fontMetrics(t);if(this.baselineOffset=a+Math.min((this.text.firstLineMetrics||l).b,s.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-l.h)/2),this.needsBox&&!t.textPath){if(!this.box){var c=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();c.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),c.add(this)}e=this.getCrispAdjust(),i.x=e,i.y=(this.baseline?-this.baselineOffset:0)+e,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(r(i,this.deferredAttr)),this.deferredAttr={}}}},{key:"updateTextPadding",value:function(){var e=this.text;if(!e.textPath){this.updateBoxSize();var t=this.baseline?0:this.baselineOffset,r=a(this.paddingLeft,this.padding);n(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(r+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(r!==e.x||t!==e.y)&&(e.attr("x",r),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),void 0!==t&&e.attr("y",t)),e.x=r,e.y=t}}},{key:"widthSetter",value:function(e){this.widthSetting=o(e)?e:void 0,this.doUpdate=!0}},{key:"getPaddedWidth",value:function(){var e=this.padding,t=a(this.paddingLeft,e),n=a(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+t+n}},{key:"xSetter",value:function(e){this.x=e,this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(e),this.attr("translateX",this.xSetting)}},{key:"ySetter",value:function(e){this.ySetting=this.y=Math.round(e),this.attr("translateY",this.ySetting)}}]),p}(e);return l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],l})),n(t,"Core/Renderer/SVG/Symbols.js",[t["Core/Utilities.js"]],(function(e){var t=e.defined,n=e.isNumber,r=e.pick;function o(e,n,o,i,a){var s=[];if(a){var l=a.start||0,c=r(a.r,o),u=r(a.r,i||o),d=2e-4/(a.borderRadius?1:Math.max(c,1)),f=Math.abs((a.end||0)-l-2*Math.PI)<d,p=(a.end||0)-(f?d:0),h=a.innerR,m=r(a.open,f),v=Math.cos(l),g=Math.sin(l),y=Math.cos(p),b=Math.sin(p),x=r(a.longArc,p-l-Math.PI<d?0:1),w=["A",c,u,0,x,r(a.clockwise,1),e+c*y,n+u*b];w.params={start:l,end:p,cx:e,cy:n},s.push(["M",e+c*v,n+u*g],w),t(h)&&((w=["A",h,h,0,x,t(a.clockwise)?1-a.clockwise:0,e+h*v,n+h*g]).params={start:p,end:l,cx:e,cy:n},s.push(m?["M",e+h*y,n+h*b]:["L",e+h*y,n+h*b],w)),m||s.push(["Z"])}return s}function i(e,t,n,r,o){return o&&o.r?a(e,t,n,r,o):[["M",e,t],["L",e+n,t],["L",e+n,t+r],["L",e,t+r],["Z"]]}function a(e,t,n,r,o){var i=(null===o||void 0===o?void 0:o.r)||0;return[["M",e+i,t],["L",e+n-i,t],["A",i,i,0,0,1,e+n,t+i],["L",e+n,t+r-i],["A",i,i,0,0,1,e+n-i,t+r],["L",e+i,t+r],["A",i,i,0,0,1,e,t+r-i],["L",e,t+i],["A",i,i,0,0,1,e+i,t],["Z"]]}return{arc:o,callout:function(e,t,r,o,i){var s=Math.min(i&&i.r||0,r,o),l=s+6,c=i&&i.anchorX,u=i&&i.anchorY||0,d=a(e,t,r,o,{r:s});if(!n(c)||c<r&&c>0&&u<o&&u>0)return d;if(e+c>r-l)if(u>t+l&&u<t+o-l)d.splice(3,1,["L",e+r,u-6],["L",e+r+6,u],["L",e+r,u+6],["L",e+r,t+o-s]);else if(c<r){var f=u<t+l,p=f?t:t+o;d.splice(f?2:5,0,["L",c,u],["L",e+r-s,p])}else d.splice(3,1,["L",e+r,o/2],["L",c,u],["L",e+r,o/2],["L",e+r,t+o-s]);else if(e+c<l)if(u>t+l&&u<t+o-l)d.splice(7,1,["L",e,u+6],["L",e-6,u],["L",e,u-6],["L",e,t+s]);else if(c>0){var h=u<t+l,m=h?t:t+o;d.splice(h?1:6,0,["L",c,u],["L",e+s,m])}else d.splice(7,1,["L",e,o/2],["L",c,u],["L",e,o/2],["L",e,t+s]);else u>o&&c<r-l?d.splice(5,1,["L",c+6,t+o],["L",c,t+o+6],["L",c-6,t+o],["L",e+s,t+o]):u<0&&c>l&&d.splice(1,1,["L",c-6,t],["L",c,t-6],["L",c+6,t],["L",r-s,t]);return d},circle:function(e,t,n,r){return o(e+n/2,t+r/2,n/2,r/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r/2],["L",e+n/2,t+r],["L",e,t+r/2],["Z"]]},rect:i,roundedRect:a,square:i,triangle:function(e,t,n,r){return[["M",e+n/2,t],["L",e+n,t+r],["L",e,t+r],["Z"]]},"triangle-down":function(e,t,n,r){return[["M",e,t],["L",e+n,t],["L",e+n/2,t+r],["Z"]]}}})),n(t,"Core/Renderer/SVG/TextBuilder.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=t.doc,o=t.SVG_NS,i=t.win,a=n.attr,s=n.extend,l=n.fireEvent,c=n.isString,u=n.objectEach,d=n.pick;return function(){function t(e){h(this,t);var n=e.styles;this.renderer=e.renderer,this.svgElement=e,this.width=e.textWidth,this.textLineHeight=n&&n.lineHeight,this.textOutline=n&&n.textOutline,this.ellipsis=!(!n||"ellipsis"!==n.textOverflow),this.noWrap=!(!n||"nowrap"!==n.whiteSpace)}return m(t,[{key:"buildSVG",value:function(){var t=this.svgElement,n=t.element,o=t.renderer,i=d(t.textStr,"").toString(),a=-1!==i.indexOf("<"),s=n.childNodes,l=!t.added&&o.box,u=[i,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),this.width].join(",");if(u!==t.textCache){t.textCache=u,delete t.actualWidth;for(var f=s.length;f--;)n.removeChild(s[f]);if(a||this.ellipsis||this.width||t.textPath||-1!==i.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(i))){if(""!==i){l&&l.appendChild(n);var p=new e(i);this.modifyTree(p.nodes),p.addToDOM(n),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("\u2026")&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),l&&l.removeChild(n)}}else n.appendChild(r.createTextNode(this.unescapeEntities(i)));c(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}}},{key:"modifyDOM",value:function(){var e,t=this,n=this.svgElement,s=a(n.element,"x");for(n.firstLineMetrics=void 0;(e=n.element.firstChild)&&/^[\s\u200B]*$/.test(e.textContent||" ");)n.element.removeChild(e);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),(function(e,r){e.nextSibling&&e.previousSibling&&(0===r&&1===e.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(e.previousSibling)),a(e,{dy:t.getLineHeight(e.nextSibling),x:s}))}));var l=this.width||0;if(l){var c=function(e,i){var c=e.textContent||"",u=c.replace(/([^\^])-/g,"$1- ").split(" "),d=!t.noWrap&&(u.length>1||n.element.childNodes.length>1),f=t.getLineHeight(i),p=0,h=n.actualWidth;if(t.ellipsis)c&&t.truncate(e,c,void 0,0,Math.max(0,l-.8*f),(function(e,t){return e.substring(0,t)+"\u2026"}));else if(d){for(var m=[],v=[];i.firstChild&&i.firstChild!==e;)v.push(i.firstChild),i.removeChild(i.firstChild);for(;u.length;)u.length&&!t.noWrap&&p>0&&(m.push(e.textContent||""),e.textContent=u.join(" ").replace(/- /g,"-")),t.truncate(e,void 0,u,0===p&&h||0,l,(function(e,t){return u.slice(0,t).join(" ").replace(/- /g,"-")})),h=n.actualWidth,p++;v.forEach((function(t){i.insertBefore(t,e)})),m.forEach((function(t){i.insertBefore(r.createTextNode(t),e);var n=r.createElementNS(o,"tspan");n.textContent="\u200b",a(n,{dy:f,x:s}),i.insertBefore(n,e)}))}};!function e(t){[].slice.call(t.childNodes).forEach((function(r){r.nodeType===i.Node.TEXT_NODE?c(r,t):(-1!==r.className.baseVal.indexOf("highcharts-br")&&(n.actualWidth=0),e(r))}))}(n.element)}}},{key:"getLineHeight",value:function(e){var t=e.nodeType===i.Node.TEXT_NODE?e.parentElement:e;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}},{key:"modifyTree",value:function(e){var t=this;e.forEach((function n(r,o){var i=r.attributes,a=void 0===i?{}:i,l=r.children,c=r.style,u=void 0===c?{}:c,d=r.tagName,f=t.renderer.styledMode;if("b"===d||"strong"===d?f?a.class="highcharts-strong":u.fontWeight="bold":("i"===d||"em"===d)&&(f?a.class="highcharts-emphasized":u.fontStyle="italic"),u&&u.color&&(u.fill=u.color),"br"===d){a.class="highcharts-br",r.textContent="\u200b";var p=e[o+1];p&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===d&&l&&l.some((function(e){return"#text"===e.tagName}))&&(r.children=[{children:l,tagName:"tspan"}]);"#text"!==d&&"a"!==d&&(r.tagName="tspan"),s(r,{attributes:a,style:u}),l&&l.filter((function(e){return"#text"!==e.tagName})).forEach(n)})),l(this.svgElement,"afterModifyTree",{nodes:e})}},{key:"truncate",value:function(e,t,n,r,o,i){var a,s,l=this.svgElement,c=l.rotation,u=[],d=n?1:0,f=(t||n||"").length,p=f,h=function(t,o){var i=o||t,a=e.parentNode;if(a&&void 0===u[i]&&a.getSubStringLength)try{u[i]=r+a.getSubStringLength(0,n?i+1:i)}catch(e){}return u[i]};if(l.rotation=0,r+(s=h(e.textContent.length))>o){for(;d<=f;)p=Math.ceil((d+f)/2),n&&(a=i(n,p)),s=h(p,a&&a.length-1),d===f?d=f+1:s>o?f=p-1:d=p;0===f?e.textContent="":t&&f===t.length-1||(e.textContent=a||i(t||n,p))}n&&n.splice(0,p),l.actualWidth=s,l.rotation=c}},{key:"unescapeEntities",value:function(e,t){return u(this.renderer.escapes,(function(n,r){t&&-1!==t.indexOf(n)||(e=e.toString().replace(RegExp(n,"g"),r))})),e}}]),t}()})),n(t,"Core/Renderer/SVG/SVGRenderer.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Defaults.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGLabel.js"],t["Core/Renderer/SVG/Symbols.js"],t["Core/Renderer/SVG/TextBuilder.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o,i,a,s,c,u){var d,f=t.defaultOptions,v=r.charts,g=r.deg2rad,y=r.doc,b=r.isFirefox,x=r.isMS,w=r.isWebKit,k=r.noop,S=r.SVG_NS,_=r.symbolSizes,E=r.win,C=u.addEvent,T=u.attr,I=u.createElement,B=u.crisp,O=u.css,P=u.defined,R=u.destroyObjectProperties,A=u.extend,M=u.isArray,N=u.isNumber,D=u.isObject,L=u.isString,j=u.merge,z=u.pick,W=u.pInt,Z=u.replaceNested,F=u.uniqueKey,H=function(){function t(e,n,r,o,i,a,s){var l,c;h(this,t);var u=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=u.element;s||u.css(this.getStyle(o||{})),e.appendChild(d),T(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&T(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=u,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(y.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=i,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=u.getStyle("font-size"),this.setSize(n,r,!1),b&&e.getBoundingClientRect&&((l=function(){O(e,{left:0,top:0}),c=e.getBoundingClientRect(),O(e,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=C(E,"resize",l))}return m(t,[{key:"definition",value:function(t){return new e([t]).addToDOM(this.defs.element)}},{key:"getReferenceURL",value:function(){if((b||w)&&y.getElementsByTagName("base").length){if(!P(d)){var t=F(),n=new e([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(t,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(y.body);O(n,{position:"fixed",top:0,left:0,zIndex:9e5});var r=y.elementFromPoint(6,6);d="hitme"===(r&&r.id),y.body.removeChild(n)}if(d)return Z(E.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}},{key:"getStyle",value:function(e){return this.style=A({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},e),this.style}},{key:"setStyle",value:function(e){this.boxWrapper.css(this.getStyle(e))}},{key:"isHidden",value:function(){return!this.boxWrapper.getBBox().width}},{key:"destroy",value:function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),R(this.gradients||{}),this.gradients=null,this.defs=e.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}},{key:"createElement",value:function(e){return new this.Element(this,e)}},{key:"getRadialAttr",value:function(e,t){return{cx:e[0]-e[2]/2+(t.cx||0)*e[2],cy:e[1]-e[2]/2+(t.cy||0)*e[2],r:(t.r||0)*e[2]}}},{key:"shadowDefinition",value:function(e){var t=["highcharts-drop-shadow-".concat(this.chartIndex)].concat(l(Object.keys(e).map((function(t){return"".concat(t,"-").concat(e[t])})))).join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),n=j({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},e);return this.defs.element.querySelector("#".concat(t))||this.definition({tagName:"filter",attributes:{id:t,filterUnits:n.filterUnits},children:this.getShadowFilterContent(n)}),t}},{key:"getShadowFilterContent",value:function(e){return[{tagName:"feDropShadow",attributes:{dx:e.offsetX,dy:e.offsetY,"flood-color":e.color,"flood-opacity":Math.min(5*e.opacity,1),stdDeviation:e.width/2}}]}},{key:"buildText",value:function(e){new c(e).buildSVG()}},{key:"getContrast",value:function(e){var t=n.parse(e).rgba.map((function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),r=.2126*t[0]+.7152*t[1]+.0722*t[2];return 1.05/(r+.05)>(r+.05)/.05?"#FFFFFF":"#000000"}},{key:"button",value:function(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>8?arguments[8]:void 0,s=arguments.length>9?arguments[9]:void 0,l=this.label(t,n,r,a,void 0,void 0,s,void 0,"button"),c=this.styledMode,u=arguments,d=0;i=j(f.global.buttonTheme,i),c&&(delete i.fill,delete i.stroke,delete i["stroke-width"]);var p=i.states||{},h=i.style||{};delete i.states,delete i.style;var m=[e.filterUserAttributes(i)],v=[h];return c||["hover","select","disabled"].forEach((function(t,n){m.push(j(m[0],e.filterUserAttributes(u[n+5]||p[t]||{}))),v.push(m[n+1].style),delete m[n+1].style})),C(l.element,x?"mouseover":"mouseenter",(function(){3!==d&&l.setState(1)})),C(l.element,x?"mouseout":"mouseleave",(function(){3!==d&&l.setState(d)})),l.setState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(1!==e&&(l.state=d=e),l.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][e]),!c){l.attr(m[e]);var t=v[e];D(t)&&l.css(t)}},l.attr(m[0]),!c&&(l.css(A({cursor:"default"},h)),s&&l.text.css({pointerEvents:"none"})),l.on("touchstart",(function(e){return e.stopPropagation()})).on("click",(function(e){3!==d&&o.call(l,e)}))}},{key:"crispLine",value:function(e,t){var n=p(e,2),r=n[0],o=n[1];return P(r[1])&&r[1]===o[1]&&(r[1]=o[1]=B(r[1],t)),P(r[2])&&r[2]===o[2]&&(r[2]=o[2]=B(r[2],t)),e}},{key:"path",value:function(e){var t=this.styledMode?{}:{fill:"none"};return M(e)?t.d=e:D(e)&&A(t,e),this.createElement("path").attr(t)}},{key:"circle",value:function(e,t,n){var r=D(e)?e:void 0===e?{}:{x:e,y:t,r:n},o=this.createElement("circle");return o.xSetter=o.ySetter=function(e,t,n){n.setAttribute("c"+t,e)},o.attr(r)}},{key:"arc",value:function(e,t,n,r,o,i){var a;D(e)?(t=(a=e).y,n=a.r,r=a.innerR,o=a.start,i=a.end,e=a.x):a={innerR:r,start:o,end:i};var s=this.symbol("arc",e,t,n,n,a);return s.r=n,s}},{key:"rect",value:function(e,t,n,r,o,i){var a=D(e)?e:void 0===e?{}:{x:e,y:t,r:o,width:Math.max(n||0,0),height:Math.max(r||0,0)},s=this.createElement("rect");return this.styledMode||(void 0!==i&&(a["stroke-width"]=i,A(a,s.crisp(a))),a.fill="none"),s.rSetter=function(e,t,n){s.r=e,T(n,{rx:e,ry:e})},s.rGetter=function(){return s.r||0},s.attr(a)}},{key:"roundedRect",value:function(e){return this.symbol("roundedRect").attr(e)}},{key:"setSize",value:function(e,t,n){this.width=e,this.height=t,this.boxWrapper.animate({width:e,height:t},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:z(n,!0)?void 0:0}),this.alignElements()}},{key:"g",value:function(e){var t=this.createElement("g");return e?t.attr({class:"highcharts-"+e}):t}},{key:"image",value:function(e,t,n,r,o,i){var a={preserveAspectRatio:"none"};N(t)&&(a.x=t),N(n)&&(a.y=n),N(r)&&(a.width=r),N(o)&&(a.height=o);var s=this.createElement("image").attr(a),l=function(t){s.attr({href:e}),i.call(s,t)};if(i){s.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});var c=new E.Image;C(c,"load",l),c.src=e,c.complete&&l({})}else s.attr({href:e});return s}},{key:"symbol",value:function(e,t,n,r,o,i){var a,s,l,c,u=this,d=/^url\((.*?)\)$/,f=d.test(e),p=!f&&(this.symbols[e]?e:"circle"),h=p&&this.symbols[p];if(h)"number"==typeof t&&(s=h.call(this.symbols,t||0,n||0,r||0,o||0,i)),a=this.path(s),u.styledMode||a.attr("fill","none"),A(a,{symbolName:p||void 0,x:t,y:n,width:r,height:o}),i&&A(a,i);else if(f){l=e.match(d)[1];var m=a=this.image(l);m.imgwidth=z(i&&i.width,_[l]&&_[l].width),m.imgheight=z(i&&i.height,_[l]&&_[l].height),c=function(e){return e.attr({width:e.width,height:e.height})},["width","height"].forEach((function(e){m["".concat(e,"Setter")]=function(e,t){this[t]=e;var n=this.alignByTranslate,r=this.element,o=this.width,a=this.height,s=this.imgwidth,l=this.imgheight,c="width"===t?s:l,u=1;i&&"within"===i.backgroundSize&&o&&a&&s&&l?(u=Math.min(o/s,a/l),T(r,{width:Math.round(s*u),height:Math.round(l*u)})):r&&c&&r.setAttribute(t,c),!n&&s&&l&&this.translate(((o||0)-s*u)/2,((a||0)-l*u)/2)}})),P(t)&&m.attr({x:t,y:n}),m.isImg=!0,m.symbolUrl=e,P(m.imgwidth)&&P(m.imgheight)?c(m):(m.attr({width:0,height:0}),I("img",{onload:function(){var e=v[u.chartIndex];0===this.width&&(O(this,{position:"absolute",top:"-999em"}),y.body.appendChild(this)),_[l]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&c(m),this.parentNode&&this.parentNode.removeChild(this),u.imgCount--,u.imgCount||!e||e.hasLoaded||e.onload()},src:l}),this.imgCount++)}return a}},{key:"clipRect",value:function(e,t,n,r){return this.rect(e,t,n,r,0)}},{key:"text",value:function(e,t,n,r){var o={};if(r&&(this.allowHTML||!this.forExport))return this.html(e,t,n);o.x=Math.round(t||0),n&&(o.y=Math.round(n)),P(e)&&(o.text=e);var i=this.createElement("text").attr(o);return r&&(!this.forExport||this.allowHTML)||(i.xSetter=function(e,t,n){for(var r,o=n.getElementsByTagName("tspan"),i=n.getAttribute(t),a=0;a<o.length;a++)(r=o[a]).getAttribute(t)===i&&r.setAttribute(t,e);n.setAttribute(t,e)}),i}},{key:"fontMetrics",value:function(e){var t=W(i.prototype.getStyle.call(e,"font-size")||0),n=t<24?t+3:Math.round(1.2*t);return{h:n,b:Math.round(.8*n),f:t}}},{key:"rotCorr",value:function(e,t,n){var r=e;return t&&n&&(r=Math.max(r*Math.cos(t*g),4)),{x:-e/3*Math.sin(t*g),y:r}}},{key:"pathToSegments",value:function(e){for(var t=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},o=0;o<e.length;o++)L(n[0])&&N(e[o])&&n.length===r[n[0].toUpperCase()]&&e.splice(o,0,n[0].replace("M","L").replace("m","l")),"string"==typeof e[o]&&(n.length&&t.push(n.slice(0)),n.length=0),n.push(e[o]);return t.push(n.slice(0)),t}},{key:"label",value:function(e,t,n,r,o,i,s,l,c){return new a(this,e,t,n,r,o,i,s,l,c)}},{key:"alignElements",value:function(){this.alignedObjects.forEach((function(e){return e.align()}))}}]),t}();return A(H.prototype,{Element:i,SVG_NS:S,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:s,draw:k}),o.registerRendererType("svg",H,!0),H})),n(t,"Core/Renderer/HTML/HTMLElement.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,t,n,r){var o=t.composed,i=r.attr,a=r.css,l=r.createElement,c=r.defined,u=r.extend,p=r.pInt,g=r.pushUnique;function y(e,t,r){var o,i=(null===(o=this.div)||void 0===o?void 0:o.style)||r.style;n.prototype["".concat(t,"Setter")].call(this,e,t,r),i&&(i[t]=e)}var b=function(e,t){if(!e.div){var r,o=i(e.element,"class"),a=e.css,c=l("div",o?{className:o}:void 0,s(s({position:"absolute",left:"".concat(e.translateX||0,"px"),top:"".concat(e.translateY||0,"px")},e.styles),{},{display:e.display,opacity:e.opacity,visibility:e.visibility}),(null===(r=e.parentGroup)||void 0===r?void 0:r.div)||t);e.classSetter=function(e,t,n){n.setAttribute("class",e),c.className=e},e.translateXSetter=e.translateYSetter=function(t,n){e[n]=t,c.style["translateX"===n?"left":"top"]="".concat(t,"px"),e.doTransform=!0},e.opacitySetter=e.visibilitySetter=y,e.css=function(t){return a.call(e,t),t.cursor&&(c.style.cursor=t.cursor),t.pointerEvents&&(c.style.pointerEvents=t.pointerEvents),e},e.on=function(){return n.prototype.on.apply({element:c,onEvents:e.onEvents},arguments),e},e.div=c}return e.div},x=function(t){d(r,t);var n=f(r);function r(e,t){var o;return h(this,r),(o=n.call(this,e,t)).css(s({position:"absolute"},e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize})),o.element.style.whiteSpace="nowrap",o}return m(r,[{key:"getSpanCorrection",value:function(e,t,n){this.xCorr=-e*n,this.yCorr=-t}},{key:"css",value:function(e){var t,n=this.element,r="SPAN"===n.tagName&&e&&"width"in e,o=r&&e.width;return r&&(delete e.width,this.textWidth=p(o)||void 0,t=!0),"ellipsis"===(null===e||void 0===e?void 0:e.textOverflow)&&(e.whiteSpace="nowrap",e.overflow="hidden"),u(this.styles,e),a(n,e),t&&this.updateTransform(),this}},{key:"htmlGetBBox",value:function(){var e=this.element;return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}},{key:"updateTransform",value:function(){if(this.added){var e=this.element,t=this.renderer,n=this.rotation,r=this.rotationOriginX,o=this.rotationOriginY,i=this.styles,s=this.textAlign,l=void 0===s?"left":s,u=this.textWidth,d=this.translateX,f=void 0===d?0:d,p=this.translateY,h=void 0===p?0:p,m=this.x,v=void 0===m?0:m,g=this.y,y=void 0===g?0:g,b={left:0,center:.5,right:1}[l],x=i.whiteSpace;if(a(e,{marginLeft:"".concat(f,"px"),marginTop:"".concat(h,"px")}),"SPAN"===e.tagName){var w,k,S=[n,l,e.innerHTML,u,this.textAlign].join(","),_=-1*(null===(w=this.parentGroup)||void 0===w?void 0:w.padding)||0,E=!1;if(u!==this.oldTextWidth){var C=this.textPxLength?this.textPxLength:(a(e,{width:"",whiteSpace:x||"nowrap"}),e.offsetWidth),T=u||0;(T>this.oldTextWidth||C>T)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(a(e,{width:C>T||n?u+"px":"auto",display:"block",whiteSpace:x||"normal"}),this.oldTextWidth=u,E=!0)}this.hasBoxWidthChanged=E,S!==this.cTT&&(k=t.fontMetrics(e).b,c(n)&&(n!==(this.oldRotation||0)||l!==this.oldAlign)&&this.setSpanRotation(n,_,_),this.getSpanCorrection(!c(n)&&this.textPxLength||e.offsetWidth,k,b));var I=this.xCorr,B=void 0===I?0:I,O=this.yCorr,P=void 0===O?0:O,R=(null!==r&&void 0!==r?r:v)-B-v-_,A=(null!==o&&void 0!==o?o:y)-P-y-_;a(e,{left:"".concat(v+B,"px"),top:"".concat(y+P,"px"),transformOrigin:"".concat(R,"px ").concat(A,"px")}),this.cTT=S,this.oldRotation=n,this.oldAlign=l}}else this.alignOnAdd=!0}},{key:"setSpanRotation",value:function(e,t,n){a(this.element,{transform:"rotate(".concat(e,"deg)"),transformOrigin:"".concat(t,"% ").concat(n,"px")})}},{key:"add",value:function(e){var t,n=this.renderer.box.parentNode,r=[];if(this.parentGroup=e,e&&!(t=e.div)){for(var o=e;o;)r.push(o),o=o.parentGroup;var i,a=v(r.reverse());try{for(a.s();!(i=a.n()).done;){var s=i.value;t=b(s,n)}}catch(l){a.e(l)}finally{a.f()}}return(t||n).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}},{key:"textSetter",value:function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,null!==t&&void 0!==t?t:""),this.textStr=t,this.doTransform=!0)}},{key:"alignSetter",value:function(e){this.alignValue=this.textAlign=e,this.doTransform=!0}},{key:"xSetter",value:function(e,t){this[t]=e,this.doTransform=!0}}],[{key:"compose",value:function(e){g(o,this.compose)&&(e.prototype.html=function(e,t,n){return new r(this,"span").attr({text:e,x:Math.round(t),y:Math.round(n)})})}}]),r}(n),w=x.prototype;return w.visibilitySetter=w.opacitySetter=y,w.ySetter=w.rotationSetter=w.rotationOriginXSetter=w.rotationOriginYSetter=w.xSetter,x})),n(t,"Core/Axis/AxisDefaults.js",[],(function(){var e,t;return(t=e||(e={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},t.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},e})),n(t,"Core/Foundation.js",[t["Core/Utilities.js"]],(function(e){var t,n=e.addEvent,r=e.isFunction,o=e.objectEach,i=e.removeEvent;return(t||(t={})).registerEventOptions=function(e,t){e.eventOptions=e.eventOptions||{},o(t.events,(function(t,o){e.eventOptions[o]!==t&&(e.eventOptions[o]&&(i(e,o,e.eventOptions[o]),delete e.eventOptions[o]),r(t)&&(e.eventOptions[o]=t,n(e,o,t,{order:0})))}))},t})),n(t,"Core/Axis/Tick.js",[t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=t.deg2rad,o=n.clamp,i=n.correctFloat,a=n.defined,s=n.destroyObjectProperties,l=n.extend,c=n.fireEvent,u=n.isNumber,d=n.merge,f=n.objectEach,p=n.pick;return function(){function t(e,n,r,o,i){h(this,t),this.isNew=!0,this.isNewLabel=!0,this.axis=e,this.pos=n,this.type=r||"",this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,c(this,"init"),r||o||this.addLabel()}return m(t,[{key:"addLabel",value:function(){var t,n,r,o=this,s=o.axis,d=s.options,f=s.chart,h=s.categories,m=s.logarithmic,v=s.names,g=o.pos,y=p(o.options&&o.options.labels,d.labels),b=s.tickPositions,x=g===b[0],w=g===b[b.length-1],k=(!y.step||1===y.step)&&1===s.tickInterval,S=b.info,_=o.label,E=this.parameters.category||(h?p(h[g],v[g],g):g);m&&u(E)&&(E=i(m.lin2log(E))),s.dateTime&&(S?t=(n=f.time.resolveDTLFormat(d.dateTimeLabelFormats[!d.grid&&S.higherRanks[g]||S.unitName])).main:u(E)&&(t=s.dateTime.getXDateFormat(E,d.dateTimeLabelFormats||{}))),o.isFirst=x,o.isLast=w;var C={axis:s,chart:f,dateTimeLabelFormat:t,isFirst:x,isLast:w,pos:g,tick:o,tickPositionInfo:S,value:E};c(this,"labelFormat",C);var T=function(t){return y.formatter?y.formatter.call(t,t):y.format?(t.text=s.defaultLabelFormatter.call(t),e.format(y.format,t,f)):s.defaultLabelFormatter.call(t)},I=T.call(C,C),B=n&&n.list;o.shortenLabel=B?function(){for(r=0;r<B.length;r++)if(l(C,{dateTimeLabelFormat:B[r]}),_.attr({text:T.call(C,C)}),_.getBBox().width<s.getSlotWidth(o)-2*(y.padding||0))return;_.attr({text:""})}:void 0,k&&s._addedPlotLB&&o.moveLabel(I,y),a(_)||o.movedLabel?_&&_.textStr!==I&&!k&&(!_.textWidth||y.style.width||_.styles.width||_.css({width:null}),_.attr({text:I}),_.textPxLength=_.getBBox().width):(o.label=_=o.createLabel(I,y),o.rotation=0)}},{key:"createLabel",value:function(e,t,n){var r=this.axis,o=r.chart,i=a(e)&&t.enabled?o.renderer.text(e,null===n||void 0===n?void 0:n.x,null===n||void 0===n?void 0:n.y,t.useHTML).add(r.labelGroup):void 0;return i&&(o.styledMode||i.css(d(t.style)),i.textPxLength=i.getBBox().width),i}},{key:"destroy",value:function(){s(this,this.axis)}},{key:"getPosition",value:function(e,t,n,r){var a=this.axis,s=a.chart,l=r&&s.oldChartHeight||s.chartHeight,u={x:e?i(a.translate(t+n,void 0,void 0,r)+a.transB):a.left+a.offset+(a.opposite?(r&&s.oldChartWidth||s.chartWidth)-a.right-a.left:0),y:e?l-a.bottom+a.offset-(a.opposite?a.height:0):i(l-a.translate(t+n,void 0,void 0,r)-a.transB)};return u.y=o(u.y,-1e9,1e9),c(this,"afterGetPosition",{pos:u}),u}},{key:"getLabelPosition",value:function(e,t,n,o,i,s,l,u){var d,f,h=this.axis,m=h.transA,v=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,g=h.staggerLines,y=h.tickRotCorr||{x:0,y:0},b=o||h.reserveSpaceDefault?0:-h.labelOffset*("center"===h.labelAlign?.5:1),x=i.distance,w={};return d=0===h.side?n.rotation?-x:-n.getBBox().height:2===h.side?y.y+x:Math.cos(n.rotation*r)*(y.y-n.getBBox(!1,0).height/2),a(i.y)&&(d=0===h.side&&h.horiz?i.y+d:i.y),e=e+p(i.x,[0,1,0,-1][h.side]*x)+b+y.x-(s&&o?s*m*(v?-1:1):0),t=t+d-(s&&!o?s*m*(v?1:-1):0),g&&(f=l/(u||1)%g,h.opposite&&(f=g-f-1),t+=f*(h.labelOffset/g)),w.x=e,w.y=Math.round(t),c(this,"afterGetLabelPosition",{pos:w,tickmarkOffset:s,index:l}),w}},{key:"getLabelSize",value:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}},{key:"getMarkPath",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0;return i.crispLine([["M",e,t],["L",e+(o?0:-n),t+(o?n:0)]],r)}},{key:"handleOverflow",value:function(e){var t,n,o=this.axis,i=o.options.labels,a=e.x,s=o.chart.chartWidth,l=o.chart.spacing,c=p(o.labelLeft,Math.min(o.pos,l[3])),u=p(o.labelRight,Math.max(o.isRadial?0:o.pos+o.len,s-l[1])),d=this.label,f=this.rotation,h={left:0,center:.5,right:1}[o.labelAlign||d.attr("align")],m=d.getBBox().width,v=o.getSlotWidth(this),g={},y=v,b=1;f||"justify"!==i.overflow?f<0&&a-h*m<c?n=Math.round(a/Math.cos(f*r)-c):f>0&&a+h*m>u&&(n=Math.round((s-a)/Math.cos(f*r))):(t=a+(1-h)*m,a-h*m<c?y=e.x+y*(1-h)-c:t>u&&(y=u-e.x+y*h,b=-1),(y=Math.min(v,y))<v&&"center"===o.labelAlign&&(e.x+=b*(v-y-h*(v-Math.min(m,y)))),(m>y||o.autoRotation&&(d.styles||{}).width)&&(n=y)),n&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(n)+"px",(i.style||{}).textOverflow||(g.textOverflow="ellipsis"),d.css(g)))}},{key:"moveLabel",value:function(e,t){var n,r=this,o=r.label,i=r.axis,a=!1;o&&o.textStr===e?(r.movedLabel=o,a=!0,delete r.label):f(i.ticks,(function(t){a||t.isNew||t===r||!t.label||t.label.textStr!==e||(r.movedLabel=t.label,a=!0,t.labelPos=r.movedLabel.xy,delete t.label)})),!a&&(r.labelPos||o)&&(n=r.labelPos||o.xy,r.movedLabel=r.createLabel(e,t,n),r.movedLabel&&r.movedLabel.attr({opacity:0}))}},{key:"render",value:function(e,t,n){var r=this.axis,o=r.horiz,a=this.pos,s=p(this.tickmarkOffset,r.tickmarkOffset),l=this.getPosition(o,a,s,t),u=l.x,d=l.y,f=r.pos,h=f+r.len,m=o?u:d;!r.chart.polar&&this.isNew&&(i(m)<f||m>h)&&(n=0);var v=p(n,this.label&&this.label.newOpacity,1);n=p(n,1),this.isActive=!0,this.renderGridLine(t,n),this.renderMark(l,n),this.renderLabel(l,t,v,e),this.isNew=!1,c(this,"afterRender")}},{key:"renderGridLine",value:function(e,t){var n,r=this.axis,o=r.options,i={},a=this.pos,s=this.type,l=p(this.tickmarkOffset,r.tickmarkOffset),c=r.chart.renderer,u=this.gridLine,d=o.gridLineWidth,f=o.gridLineColor,h=o.gridLineDashStyle;"minor"===this.type&&(d=o.minorGridLineWidth,f=o.minorGridLineColor,h=o.minorGridLineDashStyle),u||(r.chart.styledMode||(i.stroke=f,i["stroke-width"]=d||0,i.dashstyle=h),s||(i.zIndex=1),e&&(t=0),this.gridLine=u=c.path().attr(i).addClass("highcharts-"+(s?s+"-":"")+"grid-line").add(r.gridGroup)),u&&(n=r.getPlotLinePath({value:a+l,lineWidth:u.strokeWidth(),force:"pass",old:e,acrossPanes:!1}))&&u[e||this.isNew?"attr":"animate"]({d:n,opacity:t})}},{key:"renderMark",value:function(e,t){var n=this.axis,r=n.options,o=n.chart.renderer,i=this.type,a=n.tickSize(i?i+"Tick":"tick"),s=e.x,l=e.y,c=p(r["minor"!==i?"tickWidth":"minorTickWidth"],!i&&n.isXAxis?1:0),u=r["minor"!==i?"tickColor":"minorTickColor"],d=this.mark,f=!d;a&&(n.opposite&&(a[0]=-a[0]),d||(this.mark=d=o.path().addClass("highcharts-"+(i?i+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||d.attr({stroke:u,"stroke-width":c})),d[f?"attr":"animate"]({d:this.getMarkPath(s,l,a[0],d.strokeWidth(),n.horiz,o),opacity:t}))}},{key:"renderLabel",value:function(e,t,n,r){var o=this.axis,i=o.horiz,a=o.options,s=this.label,l=a.labels,c=l.step,d=p(this.tickmarkOffset,o.tickmarkOffset),f=e.x,h=e.y,m=!0;s&&u(f)&&(s.xy=e=this.getLabelPosition(f,h,s,i,l,d,r,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?m=!1:!i||l.step||l.rotation||t||0===n||this.handleOverflow(e),c&&r%c&&(m=!1),m&&u(e.y)?(e.opacity=n,s[this.isNewLabel?"attr":"animate"](e).show(!0),this.isNewLabel=!1):(s.hide(),this.isNewLabel=!0))}},{key:"replaceMovedLabel",value:function(){var e=this.label,t=this.axis;e&&!this.isNew&&(e.animate({opacity:0},void 0,e.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}]),t}()})),n(t,"Core/Axis/Axis.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/AxisDefaults.js"],t["Core/Color/Color.js"],t["Core/Defaults.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Axis/Tick.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o,i,a,s){var l=e.animObject,c=t.xAxis,u=t.yAxis,d=r.defaultOptions,f=o.registerEventOptions,p=i.deg2rad,g=s.arrayMax,y=s.arrayMin,b=s.clamp,x=s.correctFloat,w=s.defined,k=s.destroyObjectProperties,S=s.erase,_=s.error,E=s.extend,C=s.fireEvent,T=s.getClosestDistance,I=s.insertItem,B=s.isArray,O=s.isNumber,P=s.isString,R=s.merge,A=s.normalizeTickInterval,M=s.objectEach,N=s.pick,D=s.relativeLength,L=s.removeEvent,j=s.splat,z=s.syncTimeout,W=function(e,t){return A(t,void 0,void 0,N(e.options.allowDecimals,t<.5||void 0!==e.tickAmount),!!e.tickAmount)};E(d,{xAxis:c,yAxis:R(c,u)});var Z=function(){function e(t,n,r){h(this,e),this.init(t,n,r)}return m(e,[{key:"init",value:function(e,t){var n,r,o,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.coll,s="xAxis"===a,l=this.isZAxis||(e.inverted?!s:s);this.chart=e,this.horiz=l,this.isXAxis=s,this.coll=a,C(this,"init",{userOptions:t}),this.opposite=N(t.opposite,this.opposite),this.side=N(t.side,this.side,l?this.opposite?0:2:this.opposite?1:3),this.setOptions(t);var c=this.options,u=c.labels;null!==(n=this.type)&&void 0!==n||(this.type=c.type||"linear"),null!==(r=this.uniqueNames)&&void 0!==r||(this.uniqueNames=null===(o=c.uniqueNames)||void 0===o||o),C(this,"afterSetType"),this.userOptions=t,this.minPixelPadding=0,this.reversed=N(c.reversed,this.reversed),this.visible=c.visible,this.zoomEnabled=c.zoomEnabled,this.hasNames="category"===this.type||!0===c.categories,this.categories=B(c.categories)&&c.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=w(c.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},null!==(i=this.len)&&void 0!==i||(this.len=0),this.minRange=this.userMinRange=c.minRange||c.maxZoom,this.range=c.range,this.offset=c.offset||0,this.max=void 0,this.min=void 0;var d=N(c.crosshair,j(e.options.tooltip.crosshairs)[s?0:1]);this.crosshair=!0===d?{}:d,-1===e.axes.indexOf(this)&&(s?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),I(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&s&&!w(this.reversed)&&(this.reversed=!0),this.labelRotation=O(u.rotation)?u.rotation:void 0,f(this,c),C(this,"afterInit")}},{key:"setOptions",value:function(e){var t=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=R(t,d[this.coll],e),C(this,"afterSetOptions",{userOptions:e})}},{key:"defaultLabelFormatter",value:function(){var e,t,n=this.axis,r=this.chart.numberFormatter,o=O(this.value)?this.value:NaN,i=n.chart.time,a=n.categories,s=this.dateTimeLabelFormat,l=d.lang,c=l.numericSymbols,u=l.numericSymbolMagnitude||1e3,f=n.logarithmic?Math.abs(o):n.tickInterval,p=c&&c.length;if(a)t="".concat(this.value);else if(s)t=i.dateFormat(s,o);else if(p&&c&&f>=1e3)for(;p--&&void 0===t;)f>=(e=Math.pow(u,p+1))&&10*o%e==0&&null!==c[p]&&0!==o&&(t=r(o/e,-1)+c[p]);return void 0===t&&(t=Math.abs(o)>=1e4?r(o,-1):r(o,-1,void 0,"")),t}},{key:"getSeriesExtremes",value:function(){var e,t=this;C(this,"getSeriesExtremes",null,(function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=void 0,t.softThreshold=!t.isXAxis,t.series.forEach((function(n){if(n.reserveSpace()){var r,o,i,a=n.options,s=a.threshold;if(t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=(s||0)&&(s=void 0),t.isXAxis)(r=n.xData)&&r.length&&(r=t.logarithmic?r.filter((function(e){return e>0})):r,o=(e=n.getXExtremes(r)).min,i=e.max,O(o)||o instanceof Date||(r=r.filter(O),o=(e=n.getXExtremes(r)).min,i=e.max),r.length&&(t.dataMin=Math.min(N(t.dataMin,o),o),t.dataMax=Math.max(N(t.dataMax,i),i)));else{var l=n.applyExtremes();O(l.dataMin)&&(o=l.dataMin,t.dataMin=Math.min(N(t.dataMin,o),o)),O(l.dataMax)&&(i=l.dataMax,t.dataMax=Math.max(N(t.dataMax,i),i)),w(s)&&(t.threshold=s),(!a.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1)}}}))})),C(this,"afterGetSeriesExtremes")}},{key:"translate",value:function(e,t,n,r,o,i){var a,s=this.linkedParent||this,l=r&&s.old?s.old.min:s.min;if(!O(l))return NaN;var c=s.minPixelPadding,u=(s.isOrdinal||(null===(a=s.brokenAxis)||void 0===a?void 0:a.hasBreaks)||s.logarithmic&&o)&&s.lin2val,d=1,f=0,p=r&&s.old?s.old.transA:s.transA,h=0;return p||(p=s.transA),n&&(d*=-1,f=s.len),s.reversed&&(f-=(d*=-1)*(s.sector||s.len)),t?(h=(e=e*d+f-c)/p+l,u&&(h=s.lin2val(h))):(u&&(e=s.val2lin(e)),h=d*(e-l)*p+f+d*c+(O(i)?p*i:0),s.isRadial||(h=x(h))),h}},{key:"toPixels",value:function(e,t){return this.translate(e,!1,!this.horiz,void 0,!0)+(t?0:this.pos)}},{key:"toValue",value:function(e,t){return this.translate(e-(t?0:this.pos),!0,!this.horiz,void 0,!0)}},{key:"getPlotLinePath",value:function(e){var t,n,r,o,i,a=this,s=a.chart,l=a.left,c=a.top,u=e.old,d=e.value,f=e.lineWidth,p=u&&s.oldChartHeight||s.chartHeight,h=u&&s.oldChartWidth||s.chartWidth,m=a.transB,v=e.translatedValue,g=e.force;function y(e,t,n){return"pass"!==g&&(e<t||e>n)&&(g?e=b(e,t,n):i=!0),e}var x={value:d,lineWidth:f,old:u,force:g,acrossPanes:e.acrossPanes,translatedValue:v};return C(this,"getPlotLinePath",x,(function(e){t=r=(v=b(v=N(v,a.translate(d,void 0,void 0,u)),-1e9,1e9))+m,n=o=p-v-m,O(v)?a.horiz?(n=c,o=p-a.bottom+(a.options.isInternal?0:s.scrollablePixelsY||0),t=r=y(t,l,l+a.width)):(t=l,r=h-a.right+(s.scrollablePixelsX||0),n=o=y(n,c,c+a.height)):(i=!0,g=!1),e.path=i&&!g?void 0:s.renderer.crispLine([["M",t,n],["L",r,o]],f||1)})),x.path}},{key:"getLinearTickPositions",value:function(e,t,n){var r,o,i,a=x(Math.floor(t/e)*e),s=x(Math.ceil(n/e)*e),l=[];if(x(a+e)===a&&(i=20),this.single)return[t];for(r=a;r<=s&&(l.push(r),(r=x(r+e,i))!==o);)o=r;return l}},{key:"getMinorTickInterval",value:function(){var e=this.options,t=e.minorTicks,n=e.minorTickInterval;return!0===t?N(n,"auto"):!1!==t?n:void 0}},{key:"getMinorTickPositions",value:function(){var e,t=this.options,n=this.tickPositions,r=this.minorTickInterval,o=this.pointRangePadding||0,i=(this.min||0)-o,a=(this.max||0)+o,s=a-i,l=[];if(s&&s/r<this.len/3){var c=this.logarithmic;if(c)this.paddedTicks.forEach((function(e,t,n){t&&l.push.apply(l,c.getLogTickPositions(r,n[t-1],n[t],!0))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(r),i,a,t.startOfWeek));else for(e=i+(n[0]-i)%r;e<=a&&e!==l[0];e+=r)l.push(e)}return 0!==l.length&&this.trimTicks(l),l}},{key:"adjustForMinRange",value:function(){var e,t,n,r,o=this.options,i=this.logarithmic,a=this.max,s=this.min,l=this.minRange;this.isXAxis&&void 0===l&&!i&&(l=w(o.min)||w(o.max)||w(o.floor)||w(o.ceiling)?null:Math.min(5*(T(this.series.map((function(e){var t;return(e.xIncrement?null===(t=e.xData)||void 0===t?void 0:t.slice(0,2):e.xData)||[]})))||0),this.dataMax-this.dataMin)),O(a)&&O(s)&&O(l)&&a-s<l&&(t=this.dataMax-this.dataMin>=l,n=[s-(e=(l-a+s)/2),N(o.min,s-e)],t&&(n[2]=i?i.log2lin(this.dataMin):this.dataMin),r=[(s=g(n))+l,N(o.max,s+l)],t&&(r[2]=i?i.log2lin(this.dataMax):this.dataMax),(a=y(r))-s<l&&(n[0]=a-l,n[1]=N(o.min,a-l),s=g(n))),this.minRange=l,this.min=s,this.max=a}},{key:"getClosest",value:function(){var e,t;if(this.categories)t=1;else{var n=[];this.series.forEach((function(e){var r,o=e.closestPointRange;1===(null===(r=e.xData)||void 0===r?void 0:r.length)?n.push(e.xData[0]):!e.noSharedTooltip&&w(o)&&e.reserveSpace()&&(t=w(t)?Math.min(t,o):o)})),n.length&&(n.sort((function(e,t){return e-t})),e=T([n]))}return e&&t?Math.min(e,t):e||t}},{key:"nameToX",value:function(e){var t,n=B(this.options.categories),r=n?this.categories:this.names,o=e.options.x;return e.series.requireSorting=!1,w(o)||(o=this.uniqueNames&&r?n?r.indexOf(e.name):N(r.keys[e.name],-1):e.series.autoIncrement()),-1===o?!n&&r&&(t=r.length):t=o,void 0!==t?(this.names[t]=e.name,this.names.keys[e.name]=t):e.x&&(t=e.x),t}},{key:"updateNames",value:function(){var e=this,t=this.names;t.length>0&&(Object.keys(t.keys).forEach((function(e){delete t.keys[e]})),t.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(t){t.xIncrement=null,(!t.points||t.isDirtyData)&&(e.max=Math.max(e.max,t.xData.length-1),t.processData(),t.generatePoints()),t.data.forEach((function(n,r){var o;(null===n||void 0===n?void 0:n.options)&&void 0!==n.name&&void 0!==(o=e.nameToX(n))&&o!==n.x&&(n.x=o,t.xData[r]=o)}))})))}},{key:"setAxisTranslation",value:function(){var e,t,n=this,r=n.max-n.min,o=n.linkedParent,i=!!n.categories,a=n.isXAxis,s=n.axisPointRange||0,l=0,c=0,u=n.transA;(a||i||s)&&(e=n.getClosest(),o?(l=o.minPointOffset,c=o.pointRangePadding):n.series.forEach((function(t){var r=i?1:a?N(t.options.pointRange,e,0):n.axisPointRange||0,o=t.options.pointPlacement;if(s=Math.max(s,r),!n.single||i){var u=t.is("xrange")?!a:a;l=Math.max(l,u&&P(o)?0:r/2),c=Math.max(c,u&&"on"===o?0:r)}})),t=n.ordinal&&n.ordinal.slope&&e?n.ordinal.slope/e:1,n.minPointOffset=l*=t,n.pointRangePadding=c*=t,n.pointRange=Math.min(s,n.single&&i?1:r),a&&e&&(n.closestPointRange=e)),n.translationSlope=n.transA=u=n.staticScale||n.len/(r+c||1),n.transB=n.horiz?n.left:n.bottom,n.minPixelPadding=u*l,C(this,"afterSetAxisTranslation")}},{key:"minFromRange",value:function(){var e=this.max,t=this.min;return O(e)&&O(t)&&e-t||void 0}},{key:"setTickInterval",value:function(e){var t,n,r,o,i,a,s=this.categories,l=this.chart,c=this.dataMax,u=this.dataMin,d=this.dateTime,f=this.isXAxis,p=this.logarithmic,h=this.options,m=this.softThreshold,v=O(this.threshold)?this.threshold:void 0,g=this.minRange||0,y=h.ceiling,b=h.floor,k=h.linkedTo,S=h.softMax,E=h.softMin,T=O(k)&&(null===(t=l[this.coll])||void 0===t?void 0:t[k]),I=h.tickPixelInterval,B=h.maxPadding,P=h.minPadding,R=0,A=O(h.tickInterval)&&h.tickInterval>=0?h.tickInterval:void 0;if(d||s||T||this.getTickAmount(),i=N(this.userMin,h.min),a=N(this.userMax,h.max),T?(this.linkedParent=T,n=T.getExtremes(),this.min=N(n.min,n.dataMin),this.max=N(n.max,n.dataMax),this.type!==T.type&&_(11,!0,l)):(m&&w(v)&&O(c)&&O(u)&&(u>=v?(r=v,P=0):c<=v&&(o=v,B=0)),this.min=N(i,r,u),this.max=N(a,o,c)),O(this.max)&&O(this.min)&&(p&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,N(u,this.min))&&_(10,!0,l),this.min=x(p.log2lin(this.min),16),this.max=x(p.log2lin(this.max),16)),this.range&&O(u)&&(this.userMin=this.min=i=Math.max(u,this.minFromRange()||0),this.userMax=a=this.max,this.range=void 0)),C(this,"foundExtremes"),this.adjustForMinRange(),O(this.min)&&O(this.max)){var M;if(!O(this.userMin)&&O(E)&&E<this.min&&(this.min=i=E),!O(this.userMax)&&O(S)&&S>this.max&&(this.max=a=S),s||this.axisPointRange||null!==(M=this.stacking)&&void 0!==M&&M.usePercentage||T||!(R=this.max-this.min)||(!w(i)&&P&&(this.min-=R*P),w(a)||!B||(this.max+=R*B)),!O(this.userMin)&&O(b)&&(this.min=Math.max(this.min,b)),!O(this.userMax)&&O(y)&&(this.max=Math.min(this.max,y)),m&&O(u)&&O(c)){var D=v||0;!w(i)&&this.min<D&&u>=D?this.min=h.minRange?Math.min(D,this.max-g):D:!w(a)&&this.max>D&&c<=D&&(this.max=h.minRange?Math.max(D,this.min+g):D)}!l.polar&&this.min>this.max&&(w(h.min)?this.max=this.min:w(h.max)&&(this.min=this.max)),R=this.max-this.min}if(this.min!==this.max&&O(this.min)&&O(this.max)?T&&!A&&I===T.options.tickPixelInterval?this.tickInterval=A=T.tickInterval:this.tickInterval=N(A,this.tickAmount?R/Math.max(this.tickAmount-1,1):void 0,s?1:R*I/Math.max(this.len,I)):this.tickInterval=1,f&&!e){var L,j,z=this.min!==(null===(L=this.old)||void 0===L?void 0:L.min)||this.max!==(null===(j=this.old)||void 0===j?void 0:j.max);this.series.forEach((function(e){var t;e.forceCrop=null===(t=e.forceCropping)||void 0===t?void 0:t.call(e),e.processData(z)})),C(this,"postProcessData",{hasExtremesChanged:z})}this.setAxisTranslation(),C(this,"initialAxisTranslation"),this.pointRange&&!A&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));var Z=N(h.minTickInterval,d&&!this.series.some((function(e){return e.noSharedTooltip}))?this.closestPointRange:0);!A&&this.tickInterval<Z&&(this.tickInterval=Z),d||p||A||(this.tickInterval=W(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}},{key:"setTickPositions",value:function(){var e,t=this.options,n=t.tickPositions,r=t.tickPositioner,o=this.getMinorTickInterval(),i=!this.isPanning,a=i&&t.startOnTick,s=i&&t.endOnTick,l=[];if(this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&w(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==t.allowDecimals),n)l=n.slice();else if(O(this.min)&&O(this.max)){var c,u;if((null===(c=this.ordinal)||void 0===c||!c.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))l=[this.min,this.max],_(19,!1,this.chart);else if(this.dateTime)l=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,null===(u=this.ordinal)||void 0===u?void 0:u.positions,this.closestPointRange,!0);else if(this.logarithmic)l=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var d=this.tickInterval,f=d;f<=2*d&&(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&l.length>this.tickAmount);)this.tickInterval=W(this,f*=1.1);l.length>this.len&&(l=[l[0],l[l.length-1]])[0]===l[1]&&(l.length=1),r&&(this.tickPositions=l,(e=r.apply(this,[this.min,this.max]))&&(l=e))}this.tickPositions=l,this.minorTickInterval="auto"===o&&this.tickInterval?this.tickInterval/t.minorTicksPerMajor:o,this.paddedTicks=l.slice(0),this.trimTicks(l,a,s),!this.isLinked&&O(this.min)&&O(this.max)&&(this.single&&l.length<2&&!this.categories&&!this.series.some((function(e){return e.is("heatmap")&&"between"===e.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),n||e||this.adjustTickAmount()),C(this,"afterSetTickPositions")}},{key:"trimTicks",value:function(e,t,n){var r=e[0],o=e[e.length-1],i=!this.isOrdinal&&this.minPointOffset||0;if(C(this,"trimTicks"),!this.isLinked){if(t&&r!==-1/0)this.min=r;else for(;this.min-i>e[0];)e.shift();if(n)this.max=o;else for(;this.max+i<e[e.length-1];)e.pop();0===e.length&&w(r)&&!this.options.tickPositions&&e.push((o+r)/2)}}},{key:"alignToOthers",value:function(){var e,t=this,n=t.chart,r=[this],o=t.options,i=n.options.chart,a="yAxis"===this.coll&&i.alignThresholds,s=[];if(t.thresholdAlignment=void 0,(!1!==i.alignTicks&&o.alignTicks||a)&&!1!==o.startOnTick&&!1!==o.endOnTick&&!t.logarithmic){var l=function(e){var t=e.horiz,n=e.options;return[t?n.left:n.top,n.width,n.height,n.pane].join(",")},c=l(this);n[this.coll].forEach((function(n){var o=n.series;o.length&&o.some((function(e){return e.visible}))&&n!==t&&l(n)===c&&(e=!0,r.push(n))}))}if(e&&a){r.forEach((function(e){var n=e.getThresholdAlignment(t);O(n)&&s.push(n)}));var u=s.length>1?s.reduce((function(e,t){return e+t}),0)/s.length:void 0;r.forEach((function(e){e.thresholdAlignment=u}))}return e}},{key:"getThresholdAlignment",value:function(e){if((!O(this.dataMin)||this!==e&&this.series.some((function(e){return e.isDirty||e.isDirtyData})))&&this.getSeriesExtremes(),O(this.threshold)){var t=b((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t=1-t),t}}},{key:"getTickAmount",value:function(){var e=this.options,t=e.tickPixelInterval,n=e.tickAmount;w(e.tickInterval)||n||!(this.len<t)||this.isRadial||this.logarithmic||!e.startOnTick||!e.endOnTick||(n=2),!n&&this.alignToOthers()&&(n=Math.ceil(this.len/t)+1),n<4&&(this.finalTickAmt=n,n=5),this.tickAmount=n}},{key:"adjustTickAmount",value:function(){var e,t,n,r=this,o=r.finalTickAmt,i=r.max,a=r.min,s=r.options,l=r.tickPositions,c=r.tickAmount,u=r.thresholdAlignment,d=null===l||void 0===l?void 0:l.length,f=N(r.threshold,r.softThreshold?0:null),p=r.tickInterval,h=function(){return l.push(x(l[l.length-1]+p))},m=function(){return l.unshift(x(l[0]-p))};if(O(u)&&(n=u<.5?Math.ceil(u*(c-1)):Math.floor(u*(c-1)),s.reversed&&(n=c-1-n)),r.hasData()&&O(a)&&O(i)){var v=function(){r.transA*=(d-1)/(c-1),r.min=s.startOnTick?l[0]:Math.min(a,l[0]),r.max=s.endOnTick?l[l.length-1]:Math.max(i,l[l.length-1])};if(O(n)&&O(r.threshold)){for(;l[n]!==f||l.length!==c||l[0]>a||l[l.length-1]<i;){for(l.length=0,l.push(r.threshold);l.length<c;)void 0===l[n]||l[n]>r.threshold?m():h();if(p>8*r.tickInterval)break;p*=2}v()}else if(d<c){for(;l.length<c;)l.length%2||a===f?h():m();v()}if(w(o)){for(t=e=l.length;t--;)(3===o&&t%2==1||o<=2&&t>0&&t<e-1)&&l.splice(t,1);r.finalTickAmt=void 0}}}},{key:"setScale",value:function(){var e,t,n=this.coll,r=this.stacking,o=!1,i=!1;this.series.forEach((function(e){o=o||e.isDirtyData||e.isDirty,i=i||e.xAxis&&e.xAxis.isDirty||!1})),this.setAxisSize();var a=this.len!==(this.old&&this.old.len);a||o||i||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(r&&"yAxis"===n&&r.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),r&&"xAxis"===n&&r.buildStacks(),this.isDirty||(this.isDirty=a||this.min!==(null===(e=this.old)||void 0===e?void 0:e.min)||this.max!==(null===(t=this.old)||void 0===t?void 0:t.max))):r&&r.cleanStacks(),o&&delete this.allExtremes,C(this,"afterSetScale")}},{key:"setExtremes",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;this.series.forEach((function(e){delete e.kdTree})),C(this,"setExtremes",i=E(i,{min:e,max:t}),(function(e){n.userMin=e.min,n.userMax=e.max,n.eventArgs=e,r&&n.chart.redraw(o)}))}},{key:"setAxisSize",value:function(){var e=this.chart,t=this.options,n=t.offsets||[0,0,0,0],r=this.horiz,o=this.width=Math.round(D(N(t.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),i=this.height=Math.round(D(N(t.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),a=this.top=Math.round(D(N(t.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),s=this.left=Math.round(D(N(t.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-i-a,this.right=e.chartWidth-o-s,this.len=Math.max(r?o:i,0),this.pos=r?s:a}},{key:"getExtremes",value:function(){var e=this.logarithmic;return{min:e?x(e.lin2log(this.min)):this.min,max:e?x(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}},{key:"getThreshold",value:function(e){var t=this.logarithmic,n=t?t.lin2log(this.min):this.min,r=t?t.lin2log(this.max):this.max;return null===e||e===-1/0?e=n:e===1/0?e=r:n>e?e=n:r<e&&(e=r),this.translate(e,0,1,0,1)}},{key:"autoLabelAlign",value:function(e){var t=(N(e,0)-90*this.side+720)%360,n={align:"center"};return C(this,"autoLabelAlign",n,(function(e){t>15&&t<165?e.align="right":t>195&&t<345&&(e.align="left")})),n.align}},{key:"tickSize",value:function(e){var t,n=this.options,r=N(n["tick"===e?"tickWidth":"minorTickWidth"],"tick"===e&&this.isXAxis&&!this.categories?1:0),o=n["tick"===e?"tickLength":"minorTickLength"];r&&o&&("inside"===n[e+"Position"]&&(o=-o),t=[o,r]);var i={tickSize:t};return C(this,"afterTickSize",i),i.tickSize}},{key:"labelMetrics",value:function(){var e=this.chart.renderer,t=this.ticks,n=t[Object.keys(t)[0]]||{};return this.chart.renderer.fontMetrics(n.label||n.movedLabel||e.box)}},{key:"unsquish",value:function(){var e,t,n=this.options.labels,r=n.padding||0,o=this.horiz,i=this.tickInterval,a=this.len/(((this.categories?1:0)+this.max-this.min)/i),s=n.rotation,l=x(.8*this.labelMetrics().h),c=Math.max(this.max-this.min,0),u=function(e){var t=(e+2*r)/(a||1);return(t=t>1?Math.ceil(t):1)*i>c&&e!==1/0&&a!==1/0&&c&&(t=Math.ceil(c/i)),x(t*i)},d=i,f=Number.MAX_VALUE;if(o){if(!n.staggerLines&&(O(s)?t=[s]:a<n.autoRotationLimit&&(t=n.autoRotation)),t){var h,m,g,y=v(t);try{for(y.s();!(g=y.n()).done;){var b=g.value;(b===s||b&&b>=-90&&b<=90)&&(m=(h=u(Math.abs(l/Math.sin(p*b))))+Math.abs(b/360))<f&&(f=m,e=b,d=h)}}catch(w){y.e(w)}finally{y.f()}}}else d=u(.75*l);return this.autoRotation=t,this.labelRotation=N(e,O(s)?s:0),n.step?i:d}},{key:"getSlotWidth",value:function(e){var t=this.chart,n=this.horiz,r=this.options.labels,o=Math.max(this.tickPositions.length-(this.categories?0:1),1),i=t.margin[3];if(e&&O(e.slotWidth))return e.slotWidth;if(n&&r.step<2)return r.rotation?0:(this.staggerLines||1)*this.len/o;if(!n){var a=r.style.width;if(void 0!==a)return parseInt(String(a),10);if(i)return i-t.spacing[3]}return.33*t.chartWidth}},{key:"renderUnsquish",value:function(){var e,t,n,r,o=this.chart,i=o.renderer,a=this.tickPositions,s=this.ticks,l=this.options.labels,c=l.style,u=this.horiz,d=this.getSlotWidth(),f=Math.max(1,Math.round(d-(u?2*(l.padding||0):l.distance||0))),p={},h=this.labelMetrics(),m=c.textOverflow,v=0;if(P(l.rotation)||(p.rotation=l.rotation||0),a.forEach((function(e){var t=s[e];t.movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>v&&(v=t.label.textPxLength)})),this.maxLabelLength=v,this.autoRotation)v>f&&v>h.h?p.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(e=f,!m))for(t="clip",r=a.length;!u&&r--;)(n=s[a[r]].label)&&("ellipsis"===n.styles.textOverflow?n.css({textOverflow:"clip"}):n.textPxLength>d&&n.css({width:d+"px"}),n.getBBox().height>this.len/a.length-(h.h-h.f)&&(n.specificTextOverflow="ellipsis"));p.rotation&&(e=v>.5*o.chartHeight?.33*o.chartHeight:v,m||(t="ellipsis")),this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(p.align=this.labelAlign),a.forEach((function(n){var r=s[n],o=r&&r.label,i=c.width,a={};o&&(o.attr(p),r.shortenLabel?r.shortenLabel():e&&!i&&"nowrap"!==c.whiteSpace&&(e<o.textPxLength||"SPAN"===o.element.tagName)?(a.width=e+"px",m||(a.textOverflow=o.specificTextOverflow||t),o.css(a)):!o.styles.width||a.width||i||o.css({width:null}),delete o.specificTextOverflow,r.rotation=p.rotation)}),this),this.tickRotCorr=i.rotCorr(h.b,this.labelRotation||0,0!==this.side)}},{key:"hasData",value:function(){return this.series.some((function(e){return e.hasData()}))||this.options.showEmpty&&w(this.min)&&w(this.max)}},{key:"addTitle",value:function(e){var t,n=this.chart.renderer,r=this.horiz,o=this.opposite,i=this.options.title,a=this.chart.styledMode;this.axisTitle||((t=i.textAlign)||(t=(r?{low:"left",middle:"center",high:"right"}:{low:o?"right":"left",middle:"center",high:o?"left":"right"})[i.align]),this.axisTitle=n.text(i.text||"",0,0,i.useHTML).attr({zIndex:7,rotation:i.rotation||0,align:t}).addClass("highcharts-axis-title"),a||this.axisTitle.css(R(i.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||i.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)}},{key:"generateTick",value:function(e){var t=this.ticks;t[e]?t[e].addLabel():t[e]=new a(this,e)}},{key:"createGroups",value:function(){var e=this,t=this.axisParent,n=this.chart,r=this.coll,o=this.options,i=n.renderer,a=function(n,a,s){return i.g(n).attr({zIndex:s}).addClass("highcharts-".concat(r.toLowerCase()).concat(a," ")+(e.isRadial?"highcharts-radial-axis".concat(a," "):"")+(o.className||"")).add(t)};this.axisGroup||(this.gridGroup=a("grid","-grid",o.gridZIndex),this.axisGroup=a("axis","",o.zIndex),this.labelGroup=a("axis-labels","-labels",o.labels.zIndex))}},{key:"getOffset",value:function(){var e,t,n,r,o=this,i=o.chart,a=o.horiz,s=o.options,l=o.side,c=o.ticks,u=o.tickPositions,d=o.coll,f=i.inverted&&!o.isZAxis?[1,0,3,2][l]:l,p=o.hasData(),h=s.title,m=s.labels,v=O(s.crossing),g=i.axisOffset,y=i.clipOffset,b=[-1,1,1,-1][l],x=0,k=0,S=0;if(o.showAxis=e=p||s.showEmpty,o.staggerLines=o.horiz&&m.staggerLines||void 0,o.createGroups(),p||o.isLinked?(u.forEach((function(e){o.generateTick(e)})),o.renderUnsquish(),o.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===o.labelAlign,N(m.reserveSpace,!v&&null,"center"===o.labelAlign||null,o.reserveSpaceDefault)&&u.forEach((function(e){S=Math.max(c[e].getLabelSize(),S)})),o.staggerLines&&(S*=o.staggerLines),o.labelOffset=S*(o.opposite?-1:1)):M(c,(function(e,t){e.destroy(),delete c[t]})),null!==h&&void 0!==h&&h.text&&!1!==h.enabled&&(o.addTitle(e),e&&!v&&!1!==h.reserveSpace&&(o.titleOffset=x=o.axisTitle.getBBox()[a?"height":"width"],k=w(t=h.offset)?0:N(h.margin,a?5:10))),o.renderLine(),o.offset=b*N(s.offset,g[l]?g[l]+(s.margin||0):0),o.tickRotCorr=o.tickRotCorr||{x:0,y:0},r=0===l?-o.labelMetrics().h:2===l?o.tickRotCorr.y:0,n=Math.abs(S)+k,S&&(n-=r,n+=b*(a?N(m.y,o.tickRotCorr.y+b*m.distance):N(m.x,b*m.distance))),o.axisTitleMargin=N(t,n),o.getMaxLabelDimensions&&(o.maxLabelDimensions=o.getMaxLabelDimensions(c,u)),"colorAxis"!==d&&y){var _=this.tickSize("tick");g[l]=Math.max(g[l],(o.axisTitleMargin||0)+x+b*o.offset,n,u&&u.length&&_?_[0]+b*o.offset:0);var E=!o.axisLine||s.offset?0:o.axisLine.strokeWidth()/2;y[f]=Math.max(y[f],E)}C(this,"afterGetOffset")}},{key:"getLinePath",value:function(e){var t=this.chart,n=this.opposite,r=this.offset,o=this.horiz,i=this.left+(n?this.width:0)+r,a=t.chartHeight-this.bottom-(n?this.height:0)+r;return n&&(e*=-1),t.renderer.crispLine([["M",o?this.left:i,o?a:this.top],["L",o?t.chartWidth-this.right:i,o?a:t.chartHeight-this.bottom]],e)}},{key:"renderLine",value:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}},{key:"getTitlePosition",value:function(e){var t=this.horiz,n=this.left,r=this.top,o=this.len,i=this.options.title,a=t?n:r,s=this.opposite,l=this.offset,c=i.x,u=i.y,d=this.chart.renderer.fontMetrics(e),f=e?Math.max(e.getBBox(!1,0).height-d.h-1,0):0,p={low:a+(t?0:o),middle:a+o/2,high:a+(t?o:0)}[i.align],h=(t?r+this.height:n)+(t?1:-1)*(s?-1:1)*(this.axisTitleMargin||0)+[-f,f,d.f,-f][this.side],m={x:t?p+c:h+(s?this.width:0)+l+c,y:t?h+u-(s?this.height:0)+l:p+u};return C(this,"afterGetTitlePosition",{titlePosition:m}),m}},{key:"renderMinorTick",value:function(e,t){var n=this.minorTicks;n[e]||(n[e]=new a(this,e,"minor")),t&&n[e].isNew&&n[e].render(null,!0),n[e].render(null,!1,1)}},{key:"renderTick",value:function(e,t,n){var r=this.isLinked,o=this.ticks;(!r||e>=this.min&&e<=this.max||this.grid&&this.grid.isColumn)&&(o[e]||(o[e]=new a(this,e)),n&&o[e].isNew&&o[e].render(t,!0,-1),o[e].render(t))}},{key:"render",value:function(){var e,t,n=this,r=n.chart,o=n.logarithmic,s=r.renderer,c=n.options,u=n.isLinked,d=n.tickPositions,f=n.axisTitle,p=n.ticks,h=n.minorTicks,m=n.alternateBands,v=c.stackLabels,g=c.alternateGridColor,y=c.crossing,b=n.tickmarkOffset,x=n.axisLine,w=n.showAxis,k=l(s.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[p,h,m].forEach((function(e){M(e,(function(e){e.isActive=!1}))})),O(y)){var S=this.isXAxis?r.yAxis[0]:r.xAxis[0],_=[1,-1,-1,1][this.side];if(S){var E=S.toPixels(y,!0);n.horiz&&(E=S.len-E),n.offset=_*E}}if(n.hasData()||u){var T=n.chart.hasRendered&&n.old&&O(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(e){n.renderMinorTick(e,T)})),d.length&&(d.forEach((function(e,t){n.renderTick(e,t,T)})),b&&(0===n.min||n.single)&&(p[-1]||(p[-1]=new a(n,-1,null,!0)),p[-1].render(-1))),g&&d.forEach((function(a,s){t=void 0!==d[s+1]?d[s+1]+b:n.max-b,s%2==0&&a<n.max&&t<=n.max+(r.polar?-b:b)&&(m[a]||(m[a]=new i.PlotLineOrBand (n,{})),e=a+b,m[a].options={from:o?o.lin2log(e):e,to:o?o.lin2log(t):t,color:g,className:"highcharts-alternate-grid"},m[a].render(),m[a].isActive=!0)})),n._addedPlotLB||(n._addedPlotLB=!0,(c.plotLines||[]).concat(c.plotBands||[]).forEach((function(e){n.addPlotBandOrLine(e)})))}[p,h,m].forEach((function(e){var t=[],n=k.duration;M(e,(function(e,n){e.isActive||(e.render(n,!1,0),e.isActive=!1,t.push(n))})),z((function(){for(var n=t.length;n--;)e[t[n]]&&!e[t[n]].isActive&&(e[t[n]].destroy(),delete e[t[n]])}),e!==m&&r.hasRendered&&n?n:0)})),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[w?"show":"hide"](w)),f&&w&&(f[f.isNew?"attr":"animate"](n.getTitlePosition(f)),f.isNew=!1),v&&v.enabled&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,C(this,"afterRender")}},{key:"redraw",value:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(e){e.render()}))),this.series.forEach((function(e){e.isDirty=!0}))}},{key:"getKeepProps",value:function(){return this.keepProps||e.keepProps}},{key:"destroy",value:function(e){var t=this,n=t.plotLinesAndBands,r=this.eventOptions;if(C(this,"destroy",{keepEvents:e}),e||L(t),[t.ticks,t.minorTicks,t.alternateBands].forEach((function(e){k(e)})),n)for(var o=n.length;o--;)n[o].destroy();for(var i in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),t.plotLinesAndBandsGroups)t.plotLinesAndBandsGroups[i]=t.plotLinesAndBandsGroups[i].destroy();M(t,(function(e,n){-1===t.getKeepProps().indexOf(n)&&delete t[n]})),this.eventOptions=r}},{key:"drawCrosshair",value:function(e,t){var r,o,i,a,s=this.crosshair,l=N(s&&s.snap,!0),c=this.chart,u=this.cross;if(C(this,"drawCrosshair",{e:e,point:t}),e||(e=this.cross&&this.cross.e),s&&!1!==(w(t)||!l)){if(l?w(t)&&(o=N("colorAxis"!==this.coll?t.crosshairPos:null,this.isXAxis?t.plotX:this.len-t.plotY)):o=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),w(o)&&(a={value:t&&(this.isXAxis?t.x:N(t.stackY,t.y)),translatedValue:o},c.polar&&E(a,{isCrosshair:!0,chartX:e&&e.chartX,chartY:e&&e.chartY,point:t}),r=this.getPlotLinePath(a)||null),!w(r))return void this.hideCrosshair();i=this.categories&&!this.isRadial,u||(this.cross=u=c.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(i?"category ":"thin ")+(s.className||"")).attr({zIndex:N(s.zIndex,2)}).add(),!c.styledMode&&(u.attr({stroke:s.color||(i?n.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":N(s.width,1)}).css({"pointer-events":"none"}),s.dashStyle&&u.attr({dashstyle:s.dashStyle}))),u.show().attr({d:r}),i&&!s.width&&u.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();C(this,"afterDrawCrosshair",{e:e,point:t})}},{key:"hideCrosshair",value:function(){this.cross&&this.cross.hide(),C(this,"afterHideCrosshair")}},{key:"update",value:function(e,t){var n=this.chart;e=R(this.userOptions,e),this.destroy(!0),this.init(n,e),n.isDirtyBox=!0,N(t,!0)&&n.redraw()}},{key:"remove",value:function(e){for(var t=this.chart,n=this.coll,r=this.series,o=r.length;o--;)r[o]&&r[o].remove(!1);S(t.axes,this),S(t[n]||[],this),t.orderItems(n),this.destroy(),t.isDirtyBox=!0,N(e,!0)&&t.redraw()}},{key:"setTitle",value:function(e,t){this.update({title:e},t)}},{key:"setCategories",value:function(e,t){this.update({categories:e},t)}}]),e}();return Z.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],Z})),n(t,"Core/Axis/DateTimeAxis.js",[t["Core/Utilities.js"]],(function(e){var t,n=e.addEvent,r=e.getMagnitude,o=e.normalizeTickInterval,i=e.timeUnits;return function(e){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function a(){"datetime"===this.type?this.dateTime||(this.dateTime=new s(this)):this.dateTime=void 0}e.compose=function(e){return e.keepProps.includes("dateTime")||(e.keepProps.push("dateTime"),e.prototype.getTimeTicks=t,n(e,"afterSetType",a)),e};var s=function(){function e(t){h(this,e),this.axis=t}return m(e,[{key:"normalizeTimeTickInterval",value:function(e,t){var n,a=t||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],s=a[a.length-1],l=i[s[0]],c=s[1];for(n=0;n<a.length&&(l=i[(s=a[n])[0]],c=s[1],!a[n+1]||!(e<=(l*c[c.length-1]+i[a[n+1][0]])/2));n++);return l===i.year&&e<5*l&&(c=[1,2,5]),{unitRange:l,count:o(e/l,c,"year"===s[0]?Math.max(r(e/l),1):1),unitName:s[0]}}},{key:"getXDateFormat",value:function(e,t){var n=this.axis,r=n.chart.time;return n.closestPointRange?r.getDateFormat(n.closestPointRange,e,n.options.startOfWeek,t)||r.resolveDTLFormat(t.year).main:r.resolveDTLFormat(t.day).main}}]),e}();e.Additions=s}(t||(t={})),t})),n(t,"Core/Axis/LogarithmicAxis.js",[t["Core/Utilities.js"]],(function(e){var t,n=e.addEvent,r=e.normalizeTickInterval,o=e.pick;return function(e){function t(){var e;"logarithmic"!==this.type?this.logarithmic=void 0:null!==(e=this.logarithmic)&&void 0!==e||(this.logarithmic=new a(this))}function i(){var e=this.logarithmic;e&&(this.lin2val=function(t){return e.lin2log(t)},this.val2lin=function(t){return e.log2lin(t)})}e.compose=function(e){return e.keepProps.includes("logarithmic")||(e.keepProps.push("logarithmic"),n(e,"afterSetType",t),n(e,"afterInit",i)),e};var a=function(){function e(t){h(this,e),this.axis=t}return m(e,[{key:"getLogTickPositions",value:function(e,t,n,i){var a=this.axis,s=a.len,l=a.options,c=[];if(i||(this.minorAutoInterval=void 0),e>=.5)e=Math.round(e),c=a.getLinearTickPositions(e,t,n);else if(e>=.08){var u,d,f,p,h,m,v;for(u=e>.3?[1,2,4]:e>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],d=Math.floor(t);d<n+1&&!v;d++)for(f=0,p=u.length;f<p&&!v;f++)(h=this.log2lin(this.lin2log(d)*u[f]))>t&&(!i||m<=n)&&void 0!==m&&c.push(m),m>n&&(v=!0),m=h}else{var g=this.lin2log(t),y=this.lin2log(n),b=i?a.getMinorTickInterval():l.tickInterval,x=l.tickPixelInterval/(i?5:1),w=i?s/a.tickPositions.length:s;e=r(e=o("auto"===b?null:b,this.minorAutoInterval,(y-g)*x/(w||1))),c=a.getLinearTickPositions(e,g,y).map(this.log2lin),i||(this.minorAutoInterval=e/5)}return i||(a.tickInterval=e),c}},{key:"lin2log",value:function(e){return Math.pow(10,e)}},{key:"log2lin",value:function(e){return Math.log(e)/Math.LN10}}]),e}();e.Additions=a}(t||(t={})),t})),n(t,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[t["Core/Utilities.js"]],(function(e){var t,n=e.erase,r=e.extend,o=e.isNumber;return function(e){var t;function i(e){return this.addPlotBandOrLine(e,"plotBands")}function a(e,n){var r=this,o=this.userOptions,i=new t(this,e);if(this.visible&&(i=i.render()),i){if(this._addedPlotLB||(this._addedPlotLB=!0,(o.plotLines||[]).concat(o.plotBands||[]).forEach((function(e){r.addPlotBandOrLine(e)}))),n){var a=o[n]||[];a.push(e),o[n]=a}this.plotLinesAndBands.push(i)}return i}function s(e){return this.addPlotBandOrLine(e,"plotLines")}function l(e,t,n){n=n||this.options;var r,i,a=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),s=[],l=this.horiz,c=!o(this.min)||!o(this.max)||e<this.min&&t<this.min||e>this.max&&t>this.max,u=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),d=1;if(u&&a)for(c&&(i=u.toString()===a.toString(),d=0),r=0;r<u.length;r+=2){var f=u[r],p=u[r+1],h=a[r],m=a[r+1];("M"===f[0]||"L"===f[0])&&("M"===p[0]||"L"===p[0])&&("M"===h[0]||"L"===h[0])&&("M"===m[0]||"L"===m[0])&&(l&&h[1]===f[1]?(h[1]+=d,m[1]+=d):l||h[2]!==f[2]||(h[2]+=d,m[2]+=d),s.push(["M",f[1],f[2]],["L",p[1],p[2]],["L",m[1],m[2]],["L",h[1],h[2]],["Z"])),s.isFlat=i}return s}function c(e){this.removePlotBandOrLine(e)}function u(e){var t=this.plotLinesAndBands,r=this.options,o=this.userOptions;if(t){for(var i=t.length;i--;)t[i].id===e&&t[i].destroy();[r.plotLines||[],o.plotLines||[],r.plotBands||[],o.plotBands||[]].forEach((function(t){for(i=t.length;i--;)(t[i]||{}).id===e&&n(t,t[i])}))}}function d(e){this.removePlotBandOrLine(e)}e.compose=function(e,n){var o=n.prototype;return o.addPlotBand||(t=e,r(o,{addPlotBand:i,addPlotLine:s,addPlotBandOrLine:a,getPlotBandPath:l,removePlotBand:c,removePlotLine:d,removePlotBandOrLine:u})),n}}(t||(t={})),t})),n(t,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[t["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],t["Core/Utilities.js"]],(function(e,t){var n=t.addEvent,r=t.arrayMax,o=t.arrayMin,i=t.defined,a=t.destroyObjectProperties,l=t.erase,c=t.fireEvent,u=t.merge,d=t.objectEach,f=t.pick,p=function(){function t(e,n){h(this,t),this.axis=e,this.options=n,this.id=n.id}return m(t,[{key:"render",value:function(){var e,t,n,r=this;c(this,"render");var o,a=this.axis,l=this.options,p=a.horiz,h=a.logarithmic,m=l.color,v=l.events,g=l.zIndex,y=void 0===g?0:g,b={},x=a.chart.renderer,w=l.to,k=l.from,S=l.value,_=l.borderWidth,E=l.label,C=this.label,T=this.svgElem,I=[],B=i(k)&&i(w),O=i(S),P=!T,R={class:"highcharts-plot-"+(B?"band ":"line ")+(l.className||"")},A=B?"bands":"lines";if(!a.chart.styledMode&&(O?(R.stroke=m||"#999999",R["stroke-width"]=f(l.width,1),l.dashStyle&&(R.dashstyle=l.dashStyle)):B&&(R.fill=m||"#e6e9ff",_&&(R.stroke=l.borderColor,R["stroke-width"]=_))),b.zIndex=y,A+="-"+y,(o=a.plotLinesAndBandsGroups[A])||(a.plotLinesAndBandsGroups[A]=o=x.g("plot-"+A).attr(b).add()),T||(this.svgElem=T=x.path().attr(R).add(o)),i(S))I=a.getPlotLinePath({value:null!==(e=null===h||void 0===h?void 0:h.log2lin(S))&&void 0!==e?e:S,lineWidth:T.strokeWidth(),acrossPanes:l.acrossPanes});else{var M,N;if(!i(k)||!i(w))return;I=a.getPlotBandPath(null!==(M=null===h||void 0===h?void 0:h.log2lin(k))&&void 0!==M?M:k,null!==(N=null===h||void 0===h?void 0:h.log2lin(w))&&void 0!==N?N:w,l)}return!this.eventsAdded&&v&&(d(v,(function(e,t){var n;null===(n=T)||void 0===n||n.on(t,(function(e){v[t].apply(r,[e])}))})),this.eventsAdded=!0),!P&&T.d||null===(t=I)||void 0===t||!t.length?T&&(I?(T.show(),T.animate({d:I})):T.d&&(T.hide(),C&&(this.label=C=C.destroy()))):T.attr({d:I}),E&&(i(E.text)||i(E.formatter))&&null!==(n=I)&&void 0!==n&&n.length&&a.width>0&&a.height>0&&!I.isFlat?(E=u(s({align:p&&B?"center":void 0,x:p?!B&&4:10,verticalAlign:!p&&B?"middle":void 0,y:p?B?16:10:B?6:-4,rotation:p&&!B?90:0},B?{inside:!0}:{}),E),this.renderLabel(E,I,B,y)):C&&C.hide(),this}},{key:"renderLabel",value:function(e,t,n,a){var s,l=this.axis,c=l.chart.renderer,d=e.inside,f=this.label;f||(this.label=f=c.text(this.getLabelText(e),0,0,e.useHTML).attr({align:e.textAlign||e.align,rotation:e.rotation,class:"highcharts-plot-"+(n?"band":"line")+"-label "+(e.className||""),zIndex:a}),l.chart.styledMode||f.css(u({fontSize:"0.8em",textOverflow:n&&!d?"":"ellipsis"},e.style)),f.add());var p=t.xBounds||[t[0][1],t[1][1],n?t[2][1]:t[0][1]],h=t.yBounds||[t[0][2],t[1][2],n?t[2][2]:t[0][2]],m=o(p),v=o(h),g=r(p)-m;f.align(e,!1,{x:m,y:v,width:g,height:r(h)-v}),(!f.alignValue||"left"===f.alignValue||i(d))&&f.css({width:((null===(s=e.style)||void 0===s?void 0:s.width)||(n&&d?g:90===f.rotation?l.height-(f.alignAttr.y-l.top):(e.clip?l.width:l.chart.chartWidth)-(f.alignAttr.x-l.left)))+"px"}),f.show(!0)}},{key:"getLabelText",value:function(e){return i(e.formatter)?e.formatter.call(this):e.text}},{key:"destroy",value:function(){l(this.axis.plotLinesAndBands,this),delete this.axis,a(this)}}],[{key:"compose",value:function(r,o){return n(r,"afterInit",(function(){var e=this;this.labelCollectors.push((function(){var t,n=[],r=v(e.axes);try{for(r.s();!(t=r.n()).done;){var o,i=t.value,a=v(i.plotLinesAndBands);try{for(a.s();!(o=a.n()).done;){var s,l=o.value,c=l.label,u=l.options;c&&(null===u||void 0===u||null===(s=u.label)||void 0===s||!s.allowOverlap)&&n.push(c)}}catch(d){a.e(d)}finally{a.f()}}}catch(d){r.e(d)}finally{r.f()}return n}))})),e.compose(t,o)}}]),t}();return p})),n(t,"Core/Tooltip.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o,i){var a,s=e.animObject,l=t.format,c=n.composed,u=n.doc,d=n.isSafari,f=r.distribute,p=i.addEvent,v=i.clamp,g=i.css,y=i.discardElement,b=i.extend,x=i.fireEvent,w=i.isArray,k=i.isNumber,S=i.isString,_=i.merge,E=i.pick,C=i.pushUnique,T=i.splat,I=i.syncTimeout,B=function(){function e(t,n,r){h(this,e),this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,n),this.pointer=r}return m(e,[{key:"bodyFormatter",value:function(e){return e.map((function(e){var t=e.series.tooltipOptions;return(t[(e.point.formatPrefix||"point")+"Formatter"]||e.point.tooltipFormatter).call(e.point,t[(e.point.formatPrefix||"point")+"Format"]||"")}))}},{key:"cleanSplit",value:function(e){this.chart.series.forEach((function(t){var n=t&&t.tt;n&&(!n.isActive||e?t.tt=n.destroy():n.isActive=!1)}))}},{key:"defaultFormatter",value:function(e){var t,n=this.points||T(this);return(t=(t=[e.tooltipFooterHeaderFormatter(n[0])]).concat(e.bodyFormatter(n))).push(e.tooltipFooterHeaderFormatter(n[0],!0)),t}},{key:"destroy",value:function(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),y(this.container)),i.clearTimeout(this.hideTimer)}},{key:"getAnchor",value:function(e,t){var n,r=this.chart,o=this.pointer,i=r.inverted,a=r.plotTop,s=r.plotLeft;if((e=T(e))[0].series&&e[0].series.yAxis&&!e[0].series.yAxis.options.reversedStacks&&(e=e.slice().reverse()),this.followPointer&&t)void 0===t.chartX&&(t=o.normalize(t)),n=[t.chartX-s,t.chartY-a];else if(e[0].tooltipPos)n=e[0].tooltipPos;else{var l=0,c=0;e.forEach((function(e){var t=e.pos(!0);t&&(l+=t[0],c+=t[1])})),l/=e.length,c/=e.length,this.shared&&e.length>1&&t&&(i?l=t.chartX:c=t.chartY),n=[l-s,c-a]}return n.map(Math.round)}},{key:"getClassName",value:function(e,t,n){var r=this.options,o=e.series,i=o.options;return[r.className,"highcharts-label",n&&"highcharts-tooltip-header",t?"highcharts-tooltip-box":"highcharts-tooltip",!n&&"highcharts-color-"+E(e.colorIndex,o.colorIndex),i&&i.className].filter(S).join(" ")}},{key:"getLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{anchorX:0,anchorY:0},t=e.anchorX,r=e.anchorY,i=this,a=this.chart.styledMode,s=this.options,l=this.split&&this.allowShared,c=this.container,u=this.chart.renderer;if(this.label){var d=!this.label.hasClass("highcharts-label");(!l&&d||l&&!d)&&this.destroy()}if(!this.label){if(this.outside){var f=this.chart.options.chart.style,p=o.getRendererType();this.container=c=n.doc.createElement("div"),c.className="highcharts-tooltip-container",g(c,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(f&&f.zIndex||0)+3)}),this.renderer=u=new p(c,0,0,f,void 0,void 0,u.styledMode)}if(l?this.label=u.g("tooltip"):(this.label=u.label("",t,r,s.shape,void 0,void 0,s.useHTML,void 0,"tooltip").attr({padding:s.padding,r:s.borderRadius}),a||this.label.attr({fill:s.backgroundColor,"stroke-width":s.borderWidth||0}).css(s.style).css({pointerEvents:s.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){var h=this.label;[h.xSetter,h.ySetter].forEach((function(e,t){h[t?"ySetter":"xSetter"]=function(n){e.call(h,i.distance),h[t?"y":"x"]=n,c&&(c.style[t?"top":"left"]="".concat(n,"px"))}}))}this.label.attr({zIndex:8}).shadow(s.shadow).add()}return c&&!c.parentElement&&n.doc.body.appendChild(c),this.label}},{key:"getPlayingField",value:function(){var e=u.body,t=u.documentElement,n=this.chart,r=this.distance,o=this.outside;return{width:o?Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)-2*r:n.chartWidth,height:o?Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight):n.chartHeight}}},{key:"getPosition",value:function(e,t,n){var r,o,i,a=this.distance,s=this.chart,l=this.outside,c=this.pointer,u=s.inverted,d=s.plotLeft,f=s.plotTop,p=s.polar,h=n.plotX,m=void 0===h?0:h,v=n.plotY,g=void 0===v?0:v,y={},b=u&&n.h||0,x=this.getPlayingField(),w=x.height,k=x.width,S=c.getChartPosition(),_=function(e){return e*S.scaleX},C=function(e){return e*S.scaleY},T=function(n){var r="x"===n;return[n,r?k:w,r?e:t].concat(l?[r?_(e):C(t),r?S.left-a+_(m+d):S.top-a+C(g+f),0,r?k:w]:[r?e:t,r?m+d:g+f,r?d:f,r?d+s.plotWidth:f+s.plotHeight])},I=T("y"),B=T("x"),O=!!n.negative;!p&&(null===(r=s.hoverSeries)||void 0===r||null===(o=r.yAxis)||void 0===o?void 0:o.reversed)&&(O=!O);var P=!this.followPointer&&E(n.ttBelow,!p&&!u===O),R=function(e,t,n,r,o,i,s){var c=l?"y"===e?C(a):_(a):a,u=(n-r)/2,d=r<o-a,f=o+a+r<t,p=o-c-n+u,h=o+c-u;if(P&&f)y[e]=h;else if(!P&&d)y[e]=p;else if(d)y[e]=Math.min(s-r,p-b<0?p:p-b);else{if(!f)return!1;y[e]=Math.max(i,h+b+n>t?h:h+b)}},A=function(e,t,n,r,o){if(o<a||o>t-a)return!1;y[e]=o<n/2?1:o>t-r/2?t-r-2:o-n/2},M=function(e){var t;I=(t=[B,I])[0],B=t[1],i=e};return(u&&!p||this.len>1)&&M(),function e(){!1!==R.apply(0,I)?!1!==A.apply(0,B)||i||(M(!0),e()):i?y.x=y.y=0:(M(!0),e())}(),y}},{key:"hide",value:function(e){var t=this;i.clearTimeout(this.hideTimer),e=E(e,this.options.hideDelay),this.isHidden||(this.hideTimer=I((function(){var n=t.getLabel();t.getLabel().animate({opacity:0},{duration:e?150:e,complete:function(){n.hide(),t.container&&t.container.remove()}}),t.isHidden=!0}),e))}},{key:"init",value:function(e,t){this.chart=e,this.options=t,this.crosshairs=[],this.isHidden=!0,this.split=t.split&&!e.inverted&&!e.polar,this.shared=t.shared||this.split,this.outside=E(t.outside,!(!e.scrollablePixelsX&&!e.scrollablePixelsY))}},{key:"shouldStickOnContact",value:function(e){return!(this.followPointer||!this.options.stickOnContact||e&&!this.pointer.inClass(e.target,"highcharts-tooltip"))}},{key:"move",value:function(e,t,n,r){var o=this,i=s(!o.isHidden&&o.options.animation),a={x:e,y:t};o.followPointer||(o.len||0)>1||(a.anchorX=n,a.anchorY=r),i.step=function(){return o.drawTracker()},o.getLabel().animate(a,i)}},{key:"refresh",value:function(e,t){var n=this.chart,r=this.options,o=this.pointer,a=this.shared,s=T(e),c=s[0],u=[],d=r.format,f=r.formatter||this.defaultFormatter,p=n.styledMode,h={},m=this.allowShared;if(r.enabled&&c.series){i.clearTimeout(this.hideTimer),this.allowShared=!(!w(e)&&e.series&&e.series.noSharedTooltip),m=m&&!this.allowShared,this.followPointer=!this.split&&c.series.tooltipOptions.followPointer;var g=this.getAnchor(e,t),y=g[0],b=g[1];a&&this.allowShared?(o.applyInactiveState(s),s.forEach((function(e){e.setState("hover"),u.push(e.getLabelConfig())})),(h=c.getLabelConfig()).points=u):h=c.getLabelConfig(),this.len=u.length;var k=S(d)?l(d,h,n):f.call(h,this),_=c.series;if(this.distance=E(_.tooltipOptions.distance,16),!1===k)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(k,s);else{var C=y,I=b;if(t&&o.isDirectTouch&&(C=t.chartX-n.plotLeft,I=t.chartY-n.plotTop),!n.polar&&!1!==_.options.clip&&!s.some((function(e){return o.isDirectTouch||e.series.shouldShowTooltip(C,I)})))return void this.hide();var B=this.getLabel(m&&this.tt||{});(!r.style.width||p)&&B.css({width:(this.outside?this.getPlayingField():n.spacingBox).width+"px"}),B.attr({class:this.getClassName(c),text:k&&k.join?k.join(""):k}),this.outside&&B.attr({x:v(B.x||0,0,this.getPlayingField().width-(B.width||0))}),p||B.attr({stroke:r.borderColor||c.color||_.color||"#666666"}),this.updatePosition({plotX:y,plotY:b,negative:c.negative,ttBelow:c.ttBelow,h:g[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}x(this,"refresh")}}},{key:"renderSplit",value:function(e,t){var n,r=this,o=r.chart,i=r.chart,a=i.chartWidth,s=i.chartHeight,l=i.plotHeight,c=i.plotLeft,p=i.plotTop,h=i.scrollablePixelsY,m=void 0===h?0:h,g=i.scrollablePixelsX,y=i.styledMode,x=r.distance,w=r.options,k=r.options.positioner,_=r.pointer,C=(null===(n=o.scrollablePlotArea)||void 0===n?void 0:n.scrollingContainer)||{},T=C.scrollLeft,I=void 0===T?0:T,B=C.scrollTop,O=void 0===B?0:B,P=r.outside&&"number"!=typeof g?u.documentElement.getBoundingClientRect():{left:I,right:I+a,top:O,bottom:O+s},R=r.getLabel(),A=this.renderer||o.renderer,M=!(!o.xAxis[0]||!o.xAxis[0].opposite),N=_.getChartPosition(),D=N.left,L=N.top,j=p+O,z=0,W=l-m;function Z(e,t,n,o){var i,a,s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return n?(i=M?0:W,a=v(e-o/2,P.left,P.right-o-(r.outside?D:0))):(i=t-j,a=v(a=s?e-o-x:e+x,s?a:P.left,P.right)),{x:a,y:i}}S(e)&&(e=[!1,e]);var F=e.slice(0,t.length+1).reduce((function(e,n,o){if(!1!==n&&""!==n){var i=t[o-1]||{isHeader:!0,plotX:t[0].plotX,plotY:l,series:{}},a=i.isHeader,s=a?r:i.series,u=s.tt=function(e,t,n){var o=e,i=t.isHeader,a=t.series;if(!o){var s,l={padding:w.padding,r:w.borderRadius};y||(l.fill=w.backgroundColor,l["stroke-width"]=null!==(s=w.borderWidth)&&void 0!==s?s:1),o=A.label("",0,0,w[i?"headerShape":"shape"],void 0,void 0,w.useHTML).addClass(r.getClassName(t,!0,i)).attr(l).add(R)}return o.isActive=!0,o.attr({text:n}),y||o.css(w.style).attr({stroke:w.borderColor||t.color||a.color||"#333333"}),o}(s.tt,i,n.toString()),d=u.getBBox(),f=d.width+u.strokeWidth();a&&(z=d.height,W+=z,M&&(j-=z));var h=function(e){var t,n,r=e.isHeader,o=e.plotX,i=void 0===o?0:o,a=e.plotY,s=void 0===a?0:a,u=e.series;if(r)t=Math.max(c+i,c),n=p+l/2;else{var d=u.xAxis,f=u.yAxis;t=d.pos+v(i,-x,d.len+x),u.shouldShowTooltip(0,f.pos-p+s,{ignoreX:!0})&&(n=f.pos+s)}return{anchorX:t=v(t,P.left-x,P.right+x),anchorY:n}}(i),m=h.anchorX,g=h.anchorY;if("number"==typeof g){var b=d.height+1,S=k?k.call(r,f,b,i):Z(m,g,a,f);e.push({align:k?0:void 0,anchorX:m,anchorY:g,boxWidth:f,point:i,rank:E(S.rank,a?1:0),size:b,target:S.y,tt:u,x:S.x})}else u.isActive=!1}return e}),[]);!k&&F.some((function(e){var t=(r.outside?D:0)+e.anchorX;return t<P.left&&t+e.boxWidth<P.right||t<D-P.left+e.boxWidth&&P.right-t>t}))&&(F=F.map((function(e){var t=Z(e.anchorX,e.anchorY,e.point.isHeader,e.boxWidth,!1),n=t.x,r=t.y;return b(e,{target:r,x:n})}))),r.cleanSplit(),f(F,W);var H={left:D,right:D};F.forEach((function(e){var t=e.x,n=e.boxWidth,o=e.isHeader;!o&&(r.outside&&D+t<H.left&&(H.left=D+t),!o&&r.outside&&H.left+n>H.right&&(H.right=D+t))})),F.forEach((function(e){var t=e.x,n=e.anchorX,o=e.anchorY,i=e.pos,a=e.point.isHeader,s={visibility:void 0===i?"hidden":"inherit",x:t,y:(i||0)+j,anchorX:n,anchorY:o};if(r.outside&&t<n){var l=D-H.left;l>0&&(a||(s.x=t+l,s.anchorX=n+l),a&&(s.x=(H.right-H.left)/2,s.anchorX=n+l))}e.tt.attr(s)}));var U=r.container,$=r.outside,G=r.renderer;if($&&U&&G){var q=R.getBBox(),K=q.width,V=q.height,Y=q.x,X=q.y;G.setSize(K+Y,V+X,!1),U.style.left=H.left+"px",U.style.top=L+"px"}d&&R.attr({opacity:1===R.opacity?.999:1})}},{key:"drawTracker",value:function(){if(this.shouldStickOnContact()){var e=this.chart,t=this.label,n=this.shared?e.hoverPoints:e.hoverPoint;if(t&&n){var r={x:0,y:0,width:0,height:0},o=this.getAnchor(n),i=t.getBBox();o[0]+=e.plotLeft-(t.translateX||0),o[1]+=e.plotTop-(t.translateY||0),r.x=Math.min(0,o[0]),r.y=Math.min(0,o[1]),r.width=o[0]<0?Math.max(Math.abs(o[0]),i.width-o[0]):Math.max(Math.abs(o[0]),i.width),r.height=o[1]<0?Math.max(Math.abs(o[1]),i.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),i.height),this.tracker?this.tracker.attr(r):(this.tracker=t.renderer.rect(r).addClass("highcharts-tracker").add(t),e.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}},{key:"styledModeFormat",value:function(e){return e.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}},{key:"tooltipFooterHeaderFormatter",value:function(e,t){var n=e.series,r=n.tooltipOptions,o=n.xAxis,i=o&&o.dateTime,a={isFooter:t,labelConfig:e},s=r.xDateFormat,c=r[t?"footerFormat":"headerFormat"];return x(this,"headerFormatter",a,(function(t){i&&!s&&k(e.key)&&(s=i.getXDateFormat(e.key,r.dateTimeLabelFormats)),i&&s&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach((function(e){c=c.replace("{point."+e+"}","{point."+e+":"+s+"}")})),n.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=l(c,{point:e,series:n},this.chart)})),a.text}},{key:"update",value:function(e){this.destroy(),this.init(this.chart,_(!0,this.options,e))}},{key:"updatePosition",value:function(e){var t,n=this.chart,r=this.container,o=this.distance,i=this.options,a=this.pointer,s=this.renderer,l=this.getLabel(),c=l.height,u=void 0===c?0:c,d=l.width,f=void 0===d?0:d,p=a.getChartPosition(),h=p.left,m=p.top,v=p.scaleX,y=p.scaleY,b=(i.positioner||this.getPosition).call(this,f,u,e),x=(e.plotX||0)+n.plotLeft,w=(e.plotY||0)+n.plotTop;s&&r&&(i.positioner&&(b.x+=h-o,b.y+=m-o),t=(i.borderWidth||0)+2*o+2,s.setSize(f+t,u+t,!1),(1!==v||1!==y)&&(g(r,{transform:"scale(".concat(v,", ").concat(y,")")}),x*=v,w*=y),x+=h-b.x,w+=m-b.y),this.move(Math.round(b.x),Math.round(b.y||0),x,w)}}]),e}();return(a=B||(B={})).compose=function(e){C(c,"Core.Tooltip")&&p(e,"afterInit",(function(){var e=this.chart;e.options.tooltip&&(e.tooltip=new a(e,e.options.tooltip,this))}))},B})),n(t,"Core/Series/Point.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o){var i=t.animObject,a=n.defaultOptions,s=r.format,l=o.addEvent,c=o.crisp,u=o.erase,d=o.extend,f=o.fireEvent,p=o.getNestedProperty,v=o.isArray,g=o.isFunction,y=o.isNumber,b=o.isObject,x=o.merge,w=o.pick,k=o.syncTimeout,S=o.removeEvent,_=o.uniqueKey,E=function(){function t(e,n,r){var o;h(this,t),this.formatPrefix="point",this.visible=!0,this.series=e,this.applyOptions(n,r),null!==(o=this.id)&&void 0!==o||(this.id=_()),this.resolveColor(),e.chart.pointCount++,f(this,"afterInit")}return m(t,[{key:"animateBeforeDestroy",value:function(){var e=this,t={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach((function(n){e[n]=e[n].animate("dataLabel"===n?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:t)})),n.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.animate(d({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))}))}))}},{key:"applyOptions",value:function(e,n){var r=this.series,o=r.options.pointValKey||r.pointValKey;return d(this,e=t.prototype.optionsToObject.call(this,e)),this.options=this.options?d(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,o&&(this.y=t.prototype.getNestedProperty.call(this,o)),this.selected&&(this.state="select"),"name"in this&&void 0===n&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),void 0===this.x&&r?this.x=null!==n&&void 0!==n?n:r.autoIncrement():y(e.x)&&r.options.relativeXValue&&(this.x=r.autoIncrement(e.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}},{key:"destroy",value:function(){if(!this.destroyed){var e=this,t=e.series,n=t.chart,r=t.options.dataSorting,o=n.hoverPoints,a=i(e.series.chart.renderer.globalAnimation),s=function(){for(var t in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(S(e),e.destroyElements()),e)delete e[t]};e.legendItem&&n.legend.destroyItem(e),o&&(e.setState(),u(o,e),o.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),r&&r.enabled?(this.animateBeforeDestroy(),k(s,a.duration)):s(),n.pointCount--}this.destroyed=!0}},{key:"destroyElements",value:function(e){var t=this,n=t.getGraphicalProps(e);n.singular.forEach((function(e){t[e]=t[e].destroy()})),n.plural.forEach((function(e){t[e].forEach((function(e){e&&e.element&&e.destroy()})),delete t[e]}))}},{key:"firePointEvent",value:function(e,t,n){var r=this,o=this.series.options;r.manageEvent(e),"click"===e&&o.allowPointSelect&&(n=function(e){!r.destroyed&&r.select&&r.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),f(r,e,t,n)}},{key:"getClassName",value:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}},{key:"getGraphicalProps",value:function(e){var t,n,r=this,o=[],i={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","connector"),e.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),n=o.length;n--;)r[t=o[n]]&&i.singular.push(t);return["graphic","dataLabel"].forEach((function(t){var n=t+"s";e[t]&&r[n]&&i.plural.push(n)})),i}},{key:"getLabelConfig",value:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}},{key:"getNestedProperty",value:function(e){return e?0===e.indexOf("custom.")?p(e,this.options):this[e]:void 0}},{key:"getZone",value:function(){var e,t=this.series,n=t.zones,r=t.zoneAxis||"y",o=0;for(e=n[0];this[r]>=e.value;)e=n[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),e&&e.color&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e}},{key:"hasNewShapeType",value:function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}},{key:"isValid",value:function(){return(y(this.x)||this.x instanceof Date)&&y(this.y)}},{key:"optionsToObject",value:function(e){var n,r=this.series,o=r.options.keys,i=o||r.pointArrayMap||["y"],a=i.length,s={},l=0,c=0;if(y(e)||null===e)s[i[0]]=e;else if(v(e))for(!o&&e.length>a&&("string"==(n=typeof e[0])?s.name=e[0]:"number"===n&&(s.x=e[0]),l++);c<a;)o&&void 0===e[l]||(i[c].indexOf(".")>0?t.prototype.setNestedProperty(s,e[l],i[c]):s[i[c]]=e[l]),l++,c++;else"object"==typeof e&&(s=e,e.dataLabels&&(r.hasDataLabels=function(){return!0}),e.marker&&(r._hasPointMarkers=!0));return s}},{key:"pos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.plotY;if(!this.destroyed){var n=this.plotX,r=this.series,o=r.chart,i=r.xAxis,a=r.yAxis,s=0,l=0;if(y(n)&&y(t))return e&&(s=i?i.pos:o.plotLeft,l=a?a.pos:o.plotTop),o.inverted&&i&&a?[a.len-t+l,i.len-n+s]:[n+s,t+l]}}},{key:"resolveColor",value:function(){var e,t,n,r=this.series,o=r.chart.options.chart,i=r.chart.styledMode,a=o.colorCount;delete this.nonZonedColor,r.options.colorByPoint?(i||(e=(t=r.options.colors||r.chart.options.colors)[r.colorCounter],a=t.length),n=r.colorCounter,r.colorCounter++,r.colorCounter===a&&(r.colorCounter=0)):(i||(e=r.color),n=r.colorIndex),this.colorIndex=w(this.options.colorIndex,n),this.color=w(this.options.color,e)}},{key:"setNestedProperty",value:function(e,t,n){return n.split(".").reduce((function(e,n,r,o){var i=o.length-1===r;return e[n]=i?t:b(e[n],!0)?e[n]:{},e[n]}),e),e}},{key:"shouldDraw",value:function(){return!this.isNull}},{key:"tooltipFormatter",value:function(e){var t=this.series,n=t.tooltipOptions,r=w(n.valueDecimals,""),o=n.valuePrefix||"",i=n.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach((function(t){t="{point."+t,(o||i)&&(e=e.replace(RegExp(t+"}","g"),o+t+"}"+i)),e=e.replace(RegExp(t+"}","g"),t+":,."+r+"f}")})),s(e,{point:this,series:this.series},t.chart)}},{key:"update",value:function(e,t,n,r){var o,i=this,a=i.series,s=i.graphic,l=a.chart,c=a.options;function u(){i.applyOptions(e);var r=s&&i.hasMockGraphic,u=null===i.y?!r:r;s&&u&&(i.graphic=s.destroy(),delete i.hasMockGraphic),b(e,!0)&&(s&&s.element&&e&&e.marker&&void 0!==e.marker.symbol&&(i.graphic=s.destroy()),null!==e&&void 0!==e&&e.dataLabels&&i.dataLabel&&(i.dataLabel=i.dataLabel.destroy())),o=i.index,a.updateParallelArrays(i,o),c.data[o]=b(c.data[o],!0)||b(e,!0)?i.options:w(e,c.data[o]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),t&&l.redraw(n)}t=w(t,!0),!1===r?u():i.firePointEvent("update",{options:e},u)}},{key:"remove",value:function(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}},{key:"select",value:function(e,t){var n=this,r=n.series,o=r.chart;e=w(e,!n.selected),this.selectedStaging=e,n.firePointEvent(e?"select":"unselect",{accumulate:t},(function(){n.selected=n.options.selected=e,r.options.data[r.data.indexOf(n)]=n.options,n.setState(e&&"select"),t||o.getSelectedPoints().forEach((function(e){var t=e.series;e.selected&&e!==n&&(e.selected=e.options.selected=!1,t.options.data[t.data.indexOf(e)]=e.options,e.setState(o.hoverPoints&&t.options.inactiveOtherPoints?"inactive":""),e.firePointEvent("unselect"))}))})),delete this.selectedStaging}},{key:"onMouseOver",value:function(e){var t=this.series.chart,n=t.inverted,r=t.pointer;r&&(e=e?r.normalize(e):r.getChartCoordinatesFromPoint(this,n),r.runPointActions(e,this))}},{key:"onMouseOut",value:function(){var e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach((function(e){e.setState()})),e.hoverPoints=e.hoverPoint=null}},{key:"manageEvent",value:function(e){var t,n,r,o,i,a,s=null===(t=x(this.series.options.point,this.options).events)||void 0===t?void 0:t[e];!g(s)||null!==(n=this.hcEvents)&&void 0!==n&&n[e]&&-1!==(null===(r=this.hcEvents)||void 0===r||null===(o=r[e])||void 0===o?void 0:o.map((function(e){return e.fn})).indexOf(s))?this.importedUserEvent&&!s&&(null===(a=this.hcEvents)||void 0===a?void 0:a[e])&&(S(this,e),delete this.hcEvents[e],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null!==(i=this.importedUserEvent)&&void 0!==i&&i.call(this),this.importedUserEvent=l(this,e,s))}},{key:"setState",value:function(t,n){var r,o,i,s,l,c,u=this.series,p=this.state,h=u.options.states[t||"normal"]||{},m=a.plotOptions[u.type].marker&&u.options.marker,v=m&&!1===m.enabled,g=m&&m.states&&m.states[t||"normal"]||{},b=!1===g.enabled,x=this.marker||{},k=u.chart,S=m&&u.markerAttribs,_=u.halo,E=u.stateMarkerGraphic;if(!((t=t||"")===this.state&&!n||this.selected&&"select"!==t||!1===h.enabled||t&&(b||v&&!1===g.enabled)||t&&x.states&&x.states[t]&&!1===x.states[t].enabled)){if(this.state=t,S&&(i=u.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(p&&this.graphic.removeClass("highcharts-point-"+p),t&&this.graphic.addClass("highcharts-point-"+t),!k.styledMode){s=u.pointAttribs(this,t),l=w(k.options.chart.animation,h.animation);var C=s.opacity;u.options.inactiveOtherPoints&&y(C)&&(this.dataLabels||[]).forEach((function(e){e&&!e.hasClass("highcharts-data-label-hidden")&&(e.animate({opacity:C},l),e.connector&&e.connector.animate({opacity:C},l))})),this.graphic.animate(s,l)}i&&this.graphic.animate(i,w(k.options.chart.animation,g.animation,m.animation)),E&&E.hide()}else t&&g&&(c=x.symbol||u.symbol,E&&E.currentSymbol!==c&&(E=E.destroy()),i&&(E?E[n?"animate":"attr"]({x:i.x,y:i.y}):c&&(u.stateMarkerGraphic=E=k.renderer.symbol(c,i.x,i.y,i.width,i.height).add(u.markerGroup),E.currentSymbol=c)),!k.styledMode&&E&&"inactive"!==this.state&&E.attr(u.pointAttribs(this,t))),E&&(E[t&&this.isInside?"show":"hide"](),E.element.point=this,E.addClass(this.getClassName(),!0));var T=h.halo,I=this.graphic||E,B=I&&I.visibility||"inherit";T&&T.size&&I&&"hidden"!==B&&!this.isCluster?(_||(u.halo=_=k.renderer.path().add(I.parentGroup)),_.show()[n?"animate":"attr"]({d:this.haloPath(T.size)}),_.attr({class:"highcharts-halo highcharts-color-"+w(this.colorIndex,u.colorIndex)+(this.className?" "+this.className:""),visibility:B,zIndex:-1}),_.point=this,k.styledMode||_.attr(d({fill:this.color||u.color,"fill-opacity":T.opacity},e.filterUserAttributes(T.attributes||{})))):(null===(r=_)||void 0===r||null===(o=r.point)||void 0===o?void 0:o.haloPath)&&!_.point.destroyed&&_.animate({d:_.point.haloPath(0)},null,_.hide),f(this,"afterSetState",{state:t})}}},{key:"haloPath",value:function(e){var t=this.pos();return t?this.series.chart.renderer.symbols.circle(c(t[0],1)-e,t[1]-e,2*e,2*e):[]}}]),t}();return E})),n(t,"Core/Pointer.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){var r,o=e.parse,i=t.charts,a=t.composed,l=t.isTouchDevice,c=n.addEvent,u=n.attr,d=n.css,f=n.extend,p=n.find,g=n.fireEvent,y=n.isNumber,b=n.isObject,x=n.objectEach,w=n.offset,k=n.pick,S=n.pushUnique,_=n.splat,E=function(){function e(t,n){var r;h(this,e),this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=n,this.chart=t,this.runChartClick=!(null===(r=n.chart.events)||void 0===r||!r.click),this.pinchDown=[],this.setDOMEvents(),g(this,"afterInit")}return m(e,[{key:"applyInactiveState",value:function(e){var t,n=[];(e||[]).forEach((function(e){t=e.series,n.push(t),t.linkedParent&&n.push(t.linkedParent),t.linkedSeries&&(n=n.concat(t.linkedSeries)),t.navigatorSeries&&n.push(t.navigatorSeries)})),this.chart.series.forEach((function(e){-1===n.indexOf(e)?e.setState("inactive",!0):e.options.inactiveOtherPoints&&e.setAllPointsToState("inactive")}))}},{key:"destroy",value:function(){var n=this;this.eventsToUnbind.forEach((function(e){return e()})),this.eventsToUnbind=[],!t.chartCount&&(e.unbindDocumentMouseUp&&e.unbindDocumentMouseUp.forEach((function(e){return e()})),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),x(n,(function(e,t){n[t]=void 0}))}},{key:"getSelectionMarkerAttrs",value:function(e,t){var n=this,r={args:{chartX:e,chartY:t},attrs:{},shapeType:"rect"};return g(this,"getSelectionMarkerAttrs",r,(function(r){var o,i=n.chart,a=n.zoomHor,s=n.zoomVert,l=i.mouseDownX,c=void 0===l?0:l,u=i.mouseDownY,d=void 0===u?0:u,f=r.attrs;f.x=i.plotLeft,f.y=i.plotTop,f.width=a?1:i.plotWidth,f.height=s?1:i.plotHeight,a&&(o=e-c,f.width=Math.max(1,Math.abs(o)),f.x=(o>0?0:o)+c),s&&(o=t-d,f.height=Math.max(1,Math.abs(o)),f.y=(o>0?0:o)+d)})),r}},{key:"drag",value:function(e){var t,n=this.chart,r=n.mouseDownX,i=void 0===r?0:r,a=n.mouseDownY,s=void 0===a?0:a,l=n.options.chart,c=l.panning,u=l.panKey,d=l.selectionMarkerFill,f=n.plotLeft,p=n.plotTop,h=n.plotWidth,m=n.plotHeight,v=b(c)?c.enabled:c,g=u&&e["".concat(u,"Key")],y=e.chartX,x=e.chartY,w=this.selectionMarker;if((!w||!w.touch)&&(y<f?y=f:y>f+h&&(y=f+h),x<p?x=p:x>p+m&&(x=p+m),this.hasDragged=Math.sqrt(Math.pow(i-y,2)+Math.pow(s-x,2)),this.hasDragged>10)){t=n.isInsidePlot(i-f,s-p,{visiblePlotOnly:!0});var k=this.getSelectionMarkerAttrs(y,x),S=k.shapeType,_=k.attrs;(n.hasCartesianSeries||n.mapView)&&this.hasZoom&&t&&!g&&!w&&(this.selectionMarker=w=n.renderer[S](),w.attr({class:"highcharts-selection-marker",zIndex:7}).add(),n.styledMode||w.attr({fill:d||o("#334eff").setOpacity(.25).get()})),w&&w.attr(_),t&&!w&&v&&n.pan(e,c)}}},{key:"dragStart",value:function(e){var t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=e.chartX,t.mouseDownY=e.chartY}},{key:"getSelectionBox",value:function(e){var t={args:{marker:e},result:e.getBBox()};return g(this,"getSelectionBox",t),t.result}},{key:"drop",value:function(e){var t,n,r=this,o=this.chart,i=this.selectionMarker,a=v(o.axes);try{for(a.s();!(n=a.n()).done;){var l=n.value;l.isPanning&&(l.isPanning=!1,(l.options.startOnTick||l.options.endOnTick||l.series.some((function(e){return e.boosted})))&&(l.forceRedraw=!0,l.setExtremes(l.userMin,l.userMax,!1),t=!0))}}catch(u){a.e(u)}finally{a.f()}if(t&&o.redraw(),i&&e){if(this.hasDragged){var c=this.getSelectionBox(i);o.transform({axes:o.axes.filter((function(e){return e.zoomEnabled&&("xAxis"===e.coll&&r.zoomX||"yAxis"===e.coll&&r.zoomY)})),selection:s({originalEvent:e,xAxis:[],yAxis:[]},c),from:c})}y(o.index)&&(this.selectionMarker=i.destroy())}o&&y(o.index)&&(d(o.container,{cursor:o._cursor}),o.cancelClick=this.hasDragged>10,o.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}},{key:"findNearestKDPoint",value:function(e,t,n){var r;return e.forEach((function(e){var o=!(e.noSharedTooltip&&t)&&0>e.options.findNearestPointBy.indexOf("y"),i=e.searchPoint(n,o);b(i,!0)&&i.series&&(!b(r,!0)||function(e,n,r,o){var i=e.distX-n.distX,a=e.dist-n.dist,s=(null===(r=n.series.group)||void 0===r?void 0:r.zIndex)-(null===(o=e.series.group)||void 0===o?void 0:o.zIndex);return 0!==i&&t?i:0!==a?a:0!==s?s:e.series.index>n.series.index?-1:1}(r,i)>0)&&(r=i)})),r}},{key:"getChartCoordinatesFromPoint",value:function(e,t){var n=e.series,r=n.xAxis,o=n.yAxis,i=e.shapeArgs;if(r&&o){var a,s,l=null!==(a=null!==(s=e.clientX)&&void 0!==s?s:e.plotX)&&void 0!==a?a:0,c=e.plotY||0;return e.isNode&&i&&y(i.x)&&y(i.y)&&(l=i.x,c=i.y),t?{chartX:o.len+o.pos-c,chartY:r.len+r.pos-l}:{chartX:l+r.pos,chartY:c+o.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}}},{key:"getChartPosition",value:function(){if(this.chartPosition)return this.chartPosition;var e=this.chart.container,t=w(e);this.chartPosition={left:t.left,top:t.top,scaleX:1,scaleY:1};var n=e.offsetHeight,r=e.offsetWidth;return r>2&&n>2&&(this.chartPosition.scaleX=t.width/r,this.chartPosition.scaleY=t.height/n),this.chartPosition}},{key:"getCoordinates",value:function(e){var t,n={xAxis:[],yAxis:[]},r=v(this.chart.axes);try{for(r.s();!(t=r.n()).done;){var o=t.value;n[o.isXAxis?"xAxis":"yAxis"].push({axis:o,value:o.toValue(e[o.horiz?"chartX":"chartY"])})}}catch(i){r.e(i)}finally{r.f()}return n}},{key:"getHoverData",value:function(e,t,n,r,o,i){var a,s=[],l=function(e){return e.visible&&!(!o&&e.directTouch)&&k(e.options.enableMouseTracking,!0)},c=t,u={chartX:i?i.chartX:void 0,chartY:i?i.chartY:void 0,shared:o};g(this,"beforeGetHoverData",u),a=c&&!c.stickyTracking?[c]:n.filter((function(e){return e.stickyTracking&&(u.filter||l)(e)}));var d=r&&e||!i?e:this.findNearestKDPoint(a,o,i);return c=d&&d.series,d&&(o&&!c.noSharedTooltip?(a=n.filter((function(e){return u.filter?u.filter(e):l(e)&&!e.noSharedTooltip}))).forEach((function(e){var t=p(e.points,(function(e){return e.x===d.x&&!e.isNull}));b(t)&&(e.boosted&&e.boost&&(t=e.boost.getPoint(t)),s.push(t))})):s.push(d)),g(this,"afterGetHoverData",u={hoverPoint:d}),{hoverPoint:u.hoverPoint,hoverSeries:c,hoverPoints:s}}},{key:"getPointFromEvent",value:function(e){for(var t,n=e.target;n&&!t;)t=n.point,n=n.parentNode;return t}},{key:"onTrackerMouseOut",value:function(e){var t=this.chart,n=e.relatedTarget,r=t.hoverSeries;this.isDirectTouch=!1,!r||!n||r.stickyTracking||this.inClass(n,"highcharts-tooltip")||this.inClass(n,"highcharts-series-"+r.index)&&this.inClass(n,"highcharts-tracker")||r.onMouseOut()}},{key:"inClass",value:function(e,t){for(var n,r=e;r;){if(n=u(r,"class")){if(-1!==n.indexOf(t))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}r=r.parentElement}}},{key:"normalize",value:function(e,t){var n=e.touches,r=n?n.length?n.item(0):k(n.changedTouches,e.changedTouches)[0]:e;t||(t=this.getChartPosition());var o=r.pageX-t.left,i=r.pageY-t.top;return f(e,{chartX:Math.round(o/=t.scaleX),chartY:Math.round(i/=t.scaleY)})}},{key:"onContainerClick",value:function(e){var t=this.chart,n=t.hoverPoint,r=this.normalize(e),o=t.plotLeft,i=t.plotTop;!t.cancelClick&&(n&&this.inClass(r.target,"highcharts-tracker")?(g(n.series,"click",f(r,{point:n})),t.hoverPoint&&n.firePointEvent("click",r)):(f(r,this.getCoordinates(r)),t.isInsidePlot(r.chartX-o,r.chartY-i,{visiblePlotOnly:!0})&&g(t,"click",r)))}},{key:"onContainerMouseDown",value:function(e){var n,r,o=1==(1&(e.buttons||e.button));e=this.normalize(e),t.isFirefox&&0!==e.button&&this.onContainerMouseMove(e),(void 0===e.button||o)&&(this.zoomOption(e),o&&null!==(n=(r=e).preventDefault)&&void 0!==n&&n.call(r),this.dragStart(e))}},{key:"onContainerMouseLeave",value:function(t){var n=(i[k(e.hoverChartIndex,-1)]||{}).pointer;t=this.normalize(t),this.onContainerMouseMove(t),n&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(n.reset(),n.chartPosition=void 0)}},{key:"onContainerMouseEnter",value:function(){delete this.chartPosition}},{key:"onContainerMouseMove",value:function(e){var t=this.chart,n=t.tooltip,r=this.normalize(e);this.setHoverChartIndex(e),("mousedown"===t.mouseIsDown||this.touchSelect(r))&&this.drag(r),!t.openMenu&&(this.inClass(r.target,"highcharts-tracker")||t.isInsidePlot(r.chartX-t.plotLeft,r.chartY-t.plotTop,{visiblePlotOnly:!0}))&&(!n||!n.shouldStickOnContact(r))&&(this.inClass(r.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(r))}},{key:"onDocumentTouchEnd",value:function(e){this.onDocumentMouseUp(e)}},{key:"onContainerTouchMove",value:function(e){this.touchSelect(e)?this.onContainerMouseMove(e):this.touch(e)}},{key:"onContainerTouchStart",value:function(e){this.touchSelect(e)?this.onContainerMouseDown(e):(this.zoomOption(e),this.touch(e,!0))}},{key:"onDocumentMouseMove",value:function(e){var t=this.chart,n=t.tooltip,r=this.chartPosition,o=this.normalize(e,r);!r||t.isInsidePlot(o.chartX-t.plotLeft,o.chartY-t.plotTop,{visiblePlotOnly:!0})||n&&n.shouldStickOnContact(o)||o.target!==t.container.ownerDocument&&this.inClass(o.target,"highcharts-tracker")||this.reset()}},{key:"onDocumentMouseUp",value:function(t){var n,r;null===(n=i[k(e.hoverChartIndex,-1)])||void 0===n||null===(r=n.pointer)||void 0===r||r.drop(t)}},{key:"pinch",value:function(e){var t=this,n=this,r=n.chart,o=n.hasZoom,i=n.lastTouches,a=[].map.call(e.touches||[],(function(e){return n.normalize(e)})),s=a.length,l=1===s&&(n.inClass(e.target,"highcharts-tracker")&&r.runTrackerClick||n.runChartClick),c=r.tooltip,u=1===s&&k(null===c||void 0===c?void 0:c.options.followTouchMove,!0);s>1?n.initiated=!0:u&&(n.initiated=!1),o&&n.initiated&&!l&&!1!==e.cancelable&&e.preventDefault(),"touchstart"===e.type?(n.pinchDown=a,n.res=!0,r.mouseDownX=e.chartX):u?this.runPointActions(n.normalize(e)):i&&(g(r,"touchpan",{originalEvent:e,touches:a},(function(){var n=function(e){var t=e[0],n=e[1]||t;return{x:t.chartX,y:t.chartY,width:n.chartX-t.chartX,height:n.chartY-t.chartY}};r.transform({axes:r.axes.filter((function(e){return e.zoomEnabled&&(t.zoomHor&&e.horiz||t.zoomVert&&!e.horiz)})),to:n(a),from:n(i),trigger:e.type})})),n.res&&(n.res=!1,this.reset(!1,0))),n.lastTouches=a}},{key:"reset",value:function(e,t){var n=this.chart,r=n.hoverSeries,o=n.hoverPoint,i=n.hoverPoints,a=n.tooltip,s=a&&a.shared?i:o;e&&s&&_(s).forEach((function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)})),e?a&&s&&_(s).length&&(a.refresh(s),a.shared&&i?i.forEach((function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))})):o&&(o.setState(o.state,!0),n.axes.forEach((function(e){e.crosshair&&o.series[e.coll]===e&&e.drawCrosshair(null,o)})))):(o&&o.onMouseOut(),i&&i.forEach((function(e){e.setState()})),r&&r.onMouseOut(),a&&a.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(e){e.hideCrosshair()})),n.hoverPoints=n.hoverPoint=void 0)}},{key:"runPointActions",value:function(t,n,r){var o=this.chart,a=o.series,s=o.tooltip&&o.tooltip.options.enabled?o.tooltip:void 0,l=!!s&&s.shared,u=n||o.hoverPoint,d=u&&u.series||o.hoverSeries,f=(!t||"touchmove"!==t.type)&&(!!n||d&&d.directTouch&&this.isDirectTouch),h=this.getHoverData(u,d,a,f,l,t);u=h.hoverPoint,d=h.hoverSeries;var m=h.hoverPoints,v=d&&d.tooltipOptions.followPointer&&!d.tooltipOptions.split,g=l&&d&&!d.noSharedTooltip;if(u&&(r||u!==o.hoverPoint||s&&s.isHidden)){if((o.hoverPoints||[]).forEach((function(e){-1===m.indexOf(e)&&e.setState()})),o.hoverSeries!==d&&d.onMouseOver(),this.applyInactiveState(m),(m||[]).forEach((function(e){e.setState("hover")})),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!u.series)return;o.hoverPoints=m,o.hoverPoint=u,u.firePointEvent("mouseOver",void 0,(function(){s&&u&&s.refresh(g?m:u,t)}))}else if(v&&s&&!s.isHidden){var y=s.getAnchor([{}],t);o.isInsidePlot(y[0],y[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:y[0],plotY:y[1]})}this.unDocMouseMove||(this.unDocMouseMove=c(o.container.ownerDocument,"mousemove",(function(t){var n,r,o;return null===(n=i[null!==(o=e.hoverChartIndex)&&void 0!==o?o:-1])||void 0===n||null===(r=n.pointer)||void 0===r?void 0:r.onDocumentMouseMove(t)})),this.eventsToUnbind.push(this.unDocMouseMove)),o.axes.forEach((function(e){var n,r=k((e.crosshair||{}).snap,!0);!r||(n=o.hoverPoint)&&n.series[e.coll]===e||(n=p(m,(function(t){return t.series&&t.series[e.coll]===e}))),n||!r?e.drawCrosshair(t,n):e.hideCrosshair()}))}},{key:"setDOMEvents",value:function(){var t=this,n=this.chart.container,r=n.ownerDocument;n.onmousedown=this.onContainerMouseDown.bind(this),n.onmousemove=this.onContainerMouseMove.bind(this),n.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(c(n,"mouseenter",this.onContainerMouseEnter.bind(this)),c(n,"mouseleave",this.onContainerMouseLeave.bind(this))),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=[]),e.unbindDocumentMouseUp.push(c(r,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(c(o,"scroll",(function(){delete t.chartPosition}))),o=o.parentElement;this.eventsToUnbind.push(c(n,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),c(n,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=c(r,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),c(this.chart,"redraw",this.setPointerCapture.bind(this))}},{key:"setPointerCapture",value:function(){var e,t;if(l){var n=this.pointerCaptureEventsToUnbind,r=this.chart,o=r.container,i=k(null===(e=r.options.tooltip)||void 0===e?void 0:e.followTouchMove,!0)&&r.series.some((function(e){return e.options.findNearestPointBy.indexOf("y")>-1}));!this.hasPointerCapture&&i?(n.push(c(o,"pointerdown",(function(e){var t,n;(null===(t=e.target)||void 0===t?void 0:t.hasPointerCapture(e.pointerId))&&(null===(n=e.target)||void 0===n||n.releasePointerCapture(e.pointerId))})),c(o,"pointermove",(function(e){var t,n;null===(t=r.pointer)||void 0===t||null===(n=t.getPointFromEvent(e))||void 0===n||n.onMouseOver(e)}))),r.styledMode||d(o,{"touch-action":"none"}),o.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!i&&(n.forEach((function(e){return e()})),n.length=0,r.styledMode||d(o,{"touch-action":k(null===(t=r.options.chart.style)||void 0===t?void 0:t["touch-action"],"manipulation")}),o.className=o.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}}},{key:"setHoverChartIndex",value:function(n){var r=this.chart,o=t.charts[k(e.hoverChartIndex,-1)];if(o&&o!==r){var i,a,l={relatedTarget:r.container};n&&!(null!==(i=n)&&void 0!==i&&i.relatedTarget)&&(n=s(s({},l),n)),null===(a=o.pointer)||void 0===a||a.onContainerMouseLeave(n||l)}o&&o.mouseIsDown||(e.hoverChartIndex=r.index)}},{key:"touch",value:function(e,t){var n,r=this.chart,o=this.pinchDown,i=void 0===o?[]:o;this.setHoverChartIndex(),1===(e=this.normalize(e)).touches.length?r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop,{visiblePlotOnly:!0})&&!r.openMenu?(t&&this.runPointActions(e),"touchmove"===e.type&&(n=!!i[0]&&Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2)>=16),k(n,!0)&&this.pinch(e)):t&&this.reset():2===e.touches.length&&this.pinch(e)}},{key:"touchSelect",value:function(e){return!(!this.chart.zooming.singleTouch||!e.touches||1!==e.touches.length)}},{key:"zoomOption",value:function(e){var t,n,r=this.chart,o=r.inverted,i=r.zooming.type||"";/touch/.test(e.type)&&(i=k(r.zooming.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=n=/y/.test(i),this.zoomHor=t&&!o||n&&o,this.zoomVert=n&&!o||t&&o,this.hasZoom=t||n}}]),e}();return(r=E||(E={})).compose=function(e){S(a,"Core.Pointer")&&c(e,"beforeRender",(function(){this.pointer=new r(this,this.options)}))},E})),n(t,"Core/Legend/LegendSymbol.js",[t["Core/Utilities.js"]],(function(e){var t,n=e.extend,r=e.merge,o=e.pick;return function(e){function t(e,t,i){var a,s,l=this.legendItem=this.legendItem||{},c=this.chart,u=this.options,d=e.baseline,f=void 0===d?0:d,p=e.symbolWidth,h=e.symbolHeight,m=this.symbol||"circle",v=h/2,g=c.renderer,y=l.group,b=f-Math.round(((null===(a=e.fontMetrics)||void 0===a?void 0:a.b)||h)*(i?.4:.3)),x={},w=u.marker,k=0;if(c.styledMode||(x["stroke-width"]=Math.min(u.lineWidth||0,24),u.dashStyle?x.dashstyle=u.dashStyle:"square"===u.linecap||(x["stroke-linecap"]="round")),l.line=g.path().addClass("highcharts-graph").attr(x).add(y),i&&(l.area=g.path().addClass("highcharts-area").add(y)),x["stroke-linecap"]&&(k=Math.min(l.line.strokeWidth(),p)/2),p){var S,_=[["M",k,b],["L",p-k,b]];l.line.attr({d:_}),null===(S=l.area)||void 0===S||S.attr({d:[].concat(_,[["L",p-k,f],["L",k,f]])})}if(w&&!1!==w.enabled&&p){var E=Math.min(o(w.radius,v),v);0===m.indexOf("url")&&(w=r(w,{width:h,height:h}),E=0),l.symbol=s=g.symbol(m,p/2-E,b-E,2*E,2*E,n({context:"legend"},w)).addClass("highcharts-point").add(y),s.isMarker=!0}}e.areaMarker=function(e,n){t.call(this,e,n,!0)},e.lineMarker=t,e.rectangle=function(e,t){var n=t.legendItem||{},r=e.options,i=e.symbolHeight,a=r.squareSymbol,s=a?i:e.symbolWidth;n.symbol=this.chart.renderer.rect(a?(e.symbolWidth-i)/2:0,e.baseline-i+1,s,i,o(e.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(n.group)}}(t||(t={})),t})),n(t,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var e=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":e(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),n(t,"Core/Series/SeriesRegistry.js",[t["Core/Globals.js"],t["Core/Defaults.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(e,t,n,r){var o,i=t.defaultOptions,a=r.extend,s=r.extendClass,l=r.merge;return function(t){function r(e,r){var o=i.plotOptions||{},a=r.defaultOptions,s=r.prototype;return s.type=e,s.pointClass||(s.pointClass=n),!t.seriesTypes[e]&&(a&&(o[e]=a),t.seriesTypes[e]=r,!0)}t.seriesTypes=e.seriesTypes,t.registerSeriesType=r,t.seriesType=function(e,o,c,u,p){var v=i.plotOptions||{};if(o=o||"",v[e]=l(v[o],c),delete t.seriesTypes[e],r(e,s(t.seriesTypes[o]||function(){},u)),t.seriesTypes[e].prototype.type=e,p){var g=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n)}(n);a(g.prototype,p),t.seriesTypes[e].prototype.pointClass=g}return t.seriesTypes[e]}}(o||(o={})),o})),n(t,"Core/Series/Series.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Defaults.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o,i,a,c,u,d){var f=e.animObject,g=e.setAnimation,y=t.defaultOptions,b=n.registerEventOptions,x=r.svg,w=r.win,k=c.seriesTypes,S=d.arrayMax,_=d.arrayMin,E=d.clamp,C=d.correctFloat,T=d.crisp,I=d.defined,B=d.destroyObjectProperties,O=d.diffObjects,P=d.erase,R=d.error,A=d.extend,M=d.find,N=d.fireEvent,D=d.getClosestDistance,L=d.getNestedProperty,j=d.insertItem,z=d.isArray,W=d.isNumber,Z=d.isString,F=d.merge,H=d.objectEach,U=d.pick,$=d.removeEvent,G=d.splat,q=d.syncTimeout,K=function(){function e(){h(this,e),this.zoneAxis="y"}return m(e,[{key:"init",value:function(e,t){var n;N(this,"init",{options:t});var r=this,o=e.series;this.eventsToUnbind=[],r.chart=e,r.options=r.setOptions(t);var i=r.options,a=!1!==i.visible;r.linkedSeries=[],r.bindAxes(),A(r,{name:i.name,state:"",visible:a,selected:!0===i.selected}),b(this,i);var s=i.events;(s&&s.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),r.getColor(),r.getSymbol(),r.parallelArrays.forEach((function(e){r[e+"Data"]||(r[e+"Data"]=[])})),r.isCartesian&&(e.hasCartesianSeries=!0),o.length&&(n=o[o.length-1]),r._i=U(n&&n._i,-1)+1,r.opacity=r.options.opacity,e.orderItems("series",j(this,o)),i.dataSorting&&i.dataSorting.enabled?r.setDataSortingOptions():r.points||r.data||r.setData(i.data,!1),N(this,"afterInit")}},{key:"is",value:function(e){return k[e]&&this instanceof k[e]}},{key:"bindAxes",value:function(){var e,t=this,n=t.options,r=t.chart;N(this,"bindAxes",null,(function(){(t.axisTypes||[]).forEach((function(o){(r[o]||[]).forEach((function(r){e=r.options,(U(n[o],0)===r.index||void 0!==n[o]&&n[o]===e.id)&&(j(t,r.series),t[o]=r,r.isDirty=!0)})),t[o]||t.optionalAxis===o||R(18,!0,r)}))})),N(this,"afterBindAxes")}},{key:"updateParallelArrays",value:function(e,t,n){var r=e.series,o=W(t)?function(n){var o="y"===n&&r.toYData?r.toYData(e):e[n];r[n+"Data"][t]=o}:function(e){Array.prototype[t].apply(r[e+"Data"],n)};r.parallelArrays.forEach(o)}},{key:"hasData",value:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&this.yData.length>0}},{key:"hasMarkerChanged",value:function(e,t){var n=e.marker,r=t.marker||{};return n&&(r.enabled&&!n.enabled||r.symbol!==n.symbol||r.height!==n.height||r.width!==n.width)}},{key:"autoIncrement",value:function(e){var t,n,r=this.options,o=r.pointIntervalUnit,i=r.relativeXValue,a=this.chart.time,s=this.xIncrement;return s=U(s,r.pointStart,0),this.pointInterval=n=U(this.pointInterval,r.pointInterval,1),i&&W(e)&&(n*=e),o&&(t=new a.Date(s),"day"===o?a.set("Date",t,a.get("Date",t)+n):"month"===o?a.set("Month",t,a.get("Month",t)+n):"year"===o&&a.set("FullYear",t,a.get("FullYear",t)+n),n=t.getTime()-s),i&&W(e)?s+n:(this.xIncrement=s+n,s)}},{key:"setDataSortingOptions",value:function(){var e=this.options;A(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),I(e.pointRange)||(e.pointRange=1)}},{key:"setOptions",value:function(e){var t,n,r,o=this.chart,i=o.options.plotOptions,a=o.userOptions||{},l=F(e),c=o.styledMode,u={plotOptions:i,userOptions:l};N(this,"setOptions",u);var d=u.plotOptions[this.type],f=a.plotOptions||{},p=f.series||{},h=y.plotOptions[this.type]||{},m=f[this.type]||{};this.userOptions=u.userOptions;var v=F(d,i.series,m,l);this.tooltipOptions=F(y.tooltip,null===(t=y.plotOptions.series)||void 0===t?void 0:t.tooltip,null===h||void 0===h?void 0:h.tooltip,o.userOptions.tooltip,null===(n=f.series)||void 0===n?void 0:n.tooltip,m.tooltip,l.tooltip),this.stickyTracking=U(l.stickyTracking,m.stickyTracking,p.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||v.stickyTracking),null===d.marker&&delete v.marker,this.zoneAxis=v.zoneAxis||"y";var g=this.zones=(v.zones||[]).map((function(e){return s({},e)}));return(v.negativeColor||v.negativeFillColor)&&!v.zones&&(r={value:v[this.zoneAxis+"Threshold"]||v.threshold||0,className:"highcharts-negative"},c||(r.color=v.negativeColor,r.fillColor=v.negativeFillColor),g.push(r)),g.length&&I(g[g.length-1].value)&&g.push(c?{}:{color:this.color,fillColor:this.fillColor}),N(this,"afterSetOptions",{options:v}),v}},{key:"getName",value:function(){return U(this.options.name,"Series "+(this.index+1))}},{key:"getCyclic",value:function(e,t,n){var r,o,i=this.chart,a="".concat(e,"Index"),s="".concat(e,"Counter"),l=(null===n||void 0===n?void 0:n.length)||i.options.chart.colorCount;!t&&(I(o=U("color"===e?this.options.colorIndex:void 0,this[a]))?r=o:(i.series.length||(i[s]=0),r=i[s]%l,i[s]+=1),n&&(t=n[r])),void 0!==r&&(this[a]=r),this[e]=t}},{key:"getColor",value:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||y.plotOptions[this.type].color,this.chart.options.colors)}},{key:"getPointsCollection",value:function(){return(this.hasGroupedData?this.points:this.data)||[]}},{key:"getSymbol",value:function(){var e=this.options.marker;this.getCyclic("symbol",e.symbol,this.chart.options.symbols)}},{key:"findPointIndex",value:function(e,t){var n,r,o,a=e.id,s=e.x,l=this.points,c=this.options.dataSorting;if(a){var u=this.chart.get(a);u instanceof i&&(n=u)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var d=function(t){return!t.touched&&t.index===e.index};if(c&&c.matchByName?d=function(t){return!t.touched&&t.name===e.name}:this.options.relativeXValue&&(d=function(t){return!t.touched&&t.options.x===e.x}),!(n=M(l,d)))return}return n&&void 0!==(o=n&&n.index)&&(r=!0),void 0===o&&W(s)&&(o=this.xData.indexOf(s,t)),-1!==o&&void 0!==o&&this.cropped&&(o=o>=this.cropStart?o-this.cropStart:o),!r&&W(o)&&l[o]&&l[o].touched&&(o=void 0),o}},{key:"updateData",value:function(e,t){var n,r,o,i,a=this.options,s=a.dataSorting,l=this.points,c=[],u=this.requireSorting,d=e.length===l.length,f=!0;if(this.xIncrement=null,e.forEach((function(e,t){var r,o=I(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e)||{},f=o.x;o.id||W(f)?(-1===(r=this.findPointIndex(o,i))||void 0===r?c.push(e):l[r]&&e!==a.data[r]?(l[r].update(e,!1,null,!1),l[r].touched=!0,u&&(i=r+1)):l[r]&&(l[r].touched=!0),(!d||t!==r||s&&s.enabled||this.hasDerivedData)&&(n=!0)):c.push(e)}),this),n)for(r=l.length;r--;)(o=l[r])&&!o.touched&&o.remove&&o.remove(!1,t);else!d||s&&s.enabled?f=!1:(e.forEach((function(e,t){e===l[t].y||l[t].destroyed||l[t].update(e,!1,null,!1)})),c.length=0);return l.forEach((function(e){e&&(e.touched=!1)})),!!f&&(c.forEach((function(e){this.addPoint(e,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=S(this.xData),this.autoIncrement()),!0)}},{key:"setData",value:function(e){var t,n,r,o,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=this,c=l.points,u=c&&c.length||0,d=l.options,f=l.chart,p=d.dataSorting,h=l.xAxis,m=d.turboThreshold,v=this.xData,g=this.yData,y=l.pointArrayMap,b=y&&y.length,x=d.keys,w=0,k=1;f.options.chart.allowMutatingData||(d.data&&delete l.options.data,l.userOptions.data&&delete l.userOptions.data,o=F(!0,e));var S=(e=o||e||[]).length;if(p&&p.enabled&&(e=this.sortData(e)),f.options.chart.allowMutatingData&&!1!==s&&S&&u&&!l.cropped&&!l.hasGroupedData&&l.visible&&!l.boosted&&(r=this.updateData(e,a)),!r){l.xIncrement=null,l.colorCounter=0,this.parallelArrays.forEach((function(e){l[e+"Data"].length=0}));var _=m&&S>m;if(_){var E=l.getFirstValidPoint(e),C=l.getFirstValidPoint(e,S-1,-1),T=function(e){return!(!z(e)||!x&&!W(e[0]))};if(W(E)&&W(C))for(t=0;t<S;t++)v[t]=this.autoIncrement(),g[t]=e[t];else if(T(E)&&T(C))if(b)if(E.length===b)for(t=0;t<S;t++)v[t]=this.autoIncrement(),g[t]=e[t];else for(t=0;t<S;t++)n=e[t],v[t]=n[0],g[t]=n.slice(1,b+1);else if(x&&(w=(w=x.indexOf("x"))>=0?w:0,k=(k=x.indexOf("y"))>=0?k:1),1===E.length&&(k=0),w===k)for(t=0;t<S;t++)v[t]=this.autoIncrement(),g[t]=e[t][k];else for(t=0;t<S;t++)n=e[t],v[t]=n[w],g[t]=n[k];else _=!1}if(!_)for(t=0;t<S;t++)n={series:l},l.pointClass.prototype.applyOptions.apply(n,[e[t]]),l.updateParallelArrays(n,t);for(g&&Z(g[0])&&R(14,!0,f),l.data=[],l.options.data=l.userOptions.data=e,t=u;t--;){var I;null===(I=c[t])||void 0===I||I.destroy()}h&&(h.minRange=h.userMinRange),l.isDirty=f.isDirtyBox=!0,l.isDirtyData=!!c,a=!1}"point"===d.legendType&&(this.processData(),this.generatePoints()),i&&f.redraw(a)}},{key:"sortData",value:function(e){var t=this,n=t.options.dataSorting.sortKey||"y",r=function(e,t){return I(t)&&e.pointClass.prototype.optionsToObject.call({series:e},t)||{}};return e.forEach((function(n,o){e[o]=r(t,n),e[o].index=o}),this),e.concat().sort((function(e,t){var r=L(n,e),o=L(n,t);return o<r?-1:o>r?1:0})).forEach((function(e,t){e.x=t}),this),t.linkedSeries&&t.linkedSeries.forEach((function(t){var n=t.options,o=n.data;n.dataSorting&&n.dataSorting.enabled||!o||(o.forEach((function(n,i){o[i]=r(t,n),e[i]&&(o[i].x=e[i].x,o[i].index=i)})),t.setData(o,!1))})),e}},{key:"getProcessedData",value:function(e){var t,n,r,o,i,a=this,s=a.xAxis,l=a.options.cropThreshold,c=null===s||void 0===s?void 0:s.logarithmic,u=a.isCartesian,d=0,f=a.xData,p=a.yData,h=!1,m=f.length;s&&(o=(r=s.getExtremes()).min,i=r.max,h=!(!s.categories||s.names.length)),u&&a.sorted&&!e&&(!l||m>l||a.forceCrop)&&(f[m-1]<o||f[0]>i?(f=[],p=[]):a.yData&&(f[0]<o||f[m-1]>i)&&(f=(t=this.cropData(a.xData,a.yData,o,i)).xData,p=t.yData,d=t.start,n=!0));var v=D([c?f.map(c.log2lin):f],(function(){return a.requireSorting&&!h&&R(15,!1,a.chart)}));return{xData:f,yData:p,cropped:n,cropStart:d,closestPointRange:v}}},{key:"processData",value:function(e){var t=this.xAxis;if(this.isCartesian&&!this.isDirty&&!t.isDirty&&!this.yAxis.isDirty&&!e)return!1;var n=this.getProcessedData();this.cropped=n.cropped,this.cropStart=n.cropStart,this.processedXData=n.xData,this.processedYData=n.yData,this.closestPointRange=this.basePointRange=n.closestPointRange,N(this,"afterProcessData")}},{key:"cropData",value:function(e,t,n,r){var o,i,a=e.length,s=0,l=a;for(o=0;o<a;o++)if(e[o]>=n){s=Math.max(0,o-1);break}for(i=o;i<a;i++)if(e[i]>r){l=i+1;break}return{xData:e.slice(s,l),yData:t.slice(s,l),start:s,end:l}}},{key:"generatePoints",value:function(){var e,t,n,r,o=this.options,i=this.processedData||o.data,a=this.processedXData,s=this.processedYData,l=this.pointClass,c=a.length,u=this.cropStart||0,d=this.hasGroupedData,f=o.keys,p=[],h=o.dataGrouping&&o.dataGrouping.groupAll?u:0,m=this.data;if(!m&&!d){var v=[];v.length=i.length,m=this.data=v}for(f&&d&&(this.options.keys=!1),r=0;r<c;r++)t=u+r,d?((n=new l(this,[a[r]].concat(G(s[r])))).dataGroup=this.groupMap[h+r],n.dataGroup.options&&(n.options=n.dataGroup.options,A(n,n.dataGroup.options),delete n.dataLabels)):(n=m[t])||void 0===i[t]||(m[t]=n=new l(this,i[t],a[r])),n&&(n.index=d?h+r:t,p[r]=n);if(this.options.keys=f,m&&(c!==(e=m.length)||d))for(r=0;r<e;r++)r!==u||d||(r+=c),m[r]&&(m[r].destroyElements(),m[r].plotX=void 0);this.data=m,this.points=p,N(this,"afterGeneratePoints")}},{key:"getXExtremes",value:function(e){return{min:_(e),max:S(e)}}},{key:"getExtremes",value:function(e,t){var n,r,o,i,a,s,l,c=this.xAxis,u=this.yAxis,d=[],f=this.requireSorting&&!this.is("column")?1:0,p=!!u&&u.positiveValuesOnly,h=t||this.getExtremesFromAll||this.options.getExtremesFromAll,m=this.processedXData,v=this.processedYData,g=0,y=0,b=0;if(this.cropped&&h){var x=this.getProcessedData(!0);m=x.xData,v=x.yData}var w=(e=e||this.stackedYData||v||[]).length,k=m||this.xData;for(c&&(g=(n=c.getExtremes()).min,y=n.max),s=0;s<w;s++)if(i=k[s],r=(W(a=e[s])||z(a))&&((W(a)?a>0:a.length)||!p),o=t||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!c||(k[s+f]||i)>=g&&(k[s-f]||i)<=y,r&&o)if(l=a.length)for(;l--;)W(a[l])&&(d[b++]=a[l]);else d[b++]=a;var E={activeYData:d,dataMin:_(d),dataMax:S(d)};return N(this,"afterGetExtremes",{dataExtremes:E}),E}},{key:"applyExtremes",value:function(){var e=this.getExtremes();return this.dataMin=e.dataMin,this.dataMax=e.dataMax,e}},{key:"getFirstValidPoint",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.length,o=t;o>=0&&o<r;){if(I(e[o]))return e[o];o+=n}}},{key:"translate",value:function(){this.processedXData||this.processData(),this.generatePoints();var e,t,n,r,o=this.options,i=o.stacking,a=this.xAxis,s=a.categories,l=this.enabledDataSorting,c=this.yAxis,u=this.points,d=u.length,f=this.pointPlacementToXValue(),p=!!f,h=o.threshold,m=o.startFromThreshold?h:0,v=Number.MAX_VALUE;function g(e){return E(e,-1e9,1e9)}for(e=0;e<d;e++){var y,b=void 0,x=u[e],w=x.x,k=void 0,S=void 0,_=x.y,T=x.low,B=i&&(null===(y=c.stacking)||void 0===y?void 0:y.stacks[(this.negStacks&&_<(m?0:h)?"-":"")+this.stackKey]);t=a.translate(w,!1,!1,!1,!0,f),x.plotX=W(t)?C(g(t)):void 0,i&&this.visible&&B&&B[w]&&(r=this.getStackIndicator(r,w,this.index),!x.isNull&&r.key&&(S=(k=B[w]).points[r.key]),k&&z(S)&&(T=S[0],_=S[1],T===m&&r.key===B[w].base&&(T=U(W(h)?h:c.min)),c.positiveValuesOnly&&I(T)&&T<=0&&(T=void 0),x.total=x.stackTotal=U(k.total),x.percentage=I(x.y)&&k.total?x.y/k.total*100:void 0,x.stackY=_,this.irregularWidths||k.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),x.yBottom=I(T)?g(c.translate(T,!1,!0,!1,!0)):void 0,this.dataModify&&(_=this.dataModify.modifyValue(_,e)),W(_)&&void 0!==x.plotX&&(b=W(b=c.translate(_,!1,!0,!1,!0))?g(b):void 0),x.plotY=b,x.isInside=this.isPointInside(x),x.clientX=p?C(a.translate(w,!1,!1,!1,!0,f)):t,x.negative=(x.y||0)<(h||0),x.category=U(s&&s[x.x],x.x),x.isNull||!1===x.visible||(void 0!==n&&(v=Math.min(v,Math.abs(t-n))),n=t),x.zone=this.zones.length?x.getZone():void 0,!x.graphic&&this.group&&l&&(x.isNew=!0)}this.closestPointRangePx=v,N(this,"afterTranslate")}},{key:"getValidPoints",value:function(e,t,n){var r=this.chart;return(e||this.points||[]).filter((function(e){var o=e.plotX,i=e.plotY;return!(!(n||!e.isNull&&W(i))||t&&!r.isInsidePlot(o,i,{inverted:r.inverted}))&&!1!==e.visible}))}},{key:"getClipBox",value:function(){var e,t=this.chart,n=this.xAxis,r=this.yAxis,o=F(t.clipBox),i=o.x,a=o.y,s=o.width,l=o.height;return n&&n.len!==t.plotSizeX&&(s=n.len),r&&r.len!==t.plotSizeY&&(l=r.len),t.inverted&&!this.invertible&&(s=(e=[l,s])[0],l=e[1]),{x:i,y:a,width:s,height:l}}},{key:"getSharedClipKey",value:function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}},{key:"setClip",value:function(){var e=this.chart,t=this.group,n=this.markerGroup,r=e.sharedClips,o=e.renderer,i=this.getClipBox(),a=this.getSharedClipKey(),s=r[a];s?s.animate(i):r[a]=s=o.clipRect(i),t&&t.clip(!1===this.options.clip?void 0:s),n&&n.clip()}},{key:"animate",value:function(e){var t=this.chart,n=this.group,r=this.markerGroup,o=t.inverted,i=f(this.options.animation),a=[this.getSharedClipKey(),i.duration,i.easing,i.defer].join(","),s=t.sharedClips[a],l=t.sharedClips[a+"m"];if(e&&n){var c=this.getClipBox();if(s)s.attr("height",c.height);else{c.width=0,o&&(c.x=t.plotHeight),s=t.renderer.clipRect(c),t.sharedClips[a]=s;var u={x:-99,y:-99,width:o?t.plotWidth+199:99,height:o?99:t.plotHeight+199};l=t.renderer.clipRect(u),t.sharedClips[a+"m"]=l}n.clip(s),null===r||void 0===r||r.clip(l)}else if(s&&!s.hasClass("highcharts-animating")){var d=this.getClipBox(),p=i.step;(null!==r&&void 0!==r&&r.element.childNodes.length||t.series.length>1)&&(i.step=function(e,t){var n;p&&p.apply(t,arguments),"width"===t.prop&&(null===(n=l)||void 0===n?void 0:n.element)&&l.attr(o?"height":"width",e+99)}),s.addClass("highcharts-animating").animate(d,i)}}},{key:"afterAnimate",value:function(){var e=this;this.setClip(),H(this.chart.sharedClips,(function(t,n,r){t&&!e.chart.container.querySelector('[clip-path="url(#'.concat(t.id,')"]'))&&(t.destroy(),delete r[n])})),this.finishedAnimating=!0,N(this,"afterAnimate")}},{key:"drawPoints",value:function(){var e,t,n,r,o,i,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,l=this.chart,c=l.styledMode,u=this.colorAxis,d=this.options,f=d.marker,p=this[this.specialGroup||"markerGroup"],h=this.xAxis,m=U(f.enabled,!h||!!h.isRadial||null,this.closestPointRangePx>=f.enabledThreshold*f.radius);if(!1!==f.enabled||this._hasPointMarkers)for(e=0;e<s.length;e++)if(r=(n=(t=s[e]).graphic)?"animate":"attr",o=t.marker||{},i=!!t.marker,(m&&void 0===o.enabled||o.enabled)&&!t.isNull&&!1!==t.visible){var v=U(o.symbol,this.symbol,"rect");a=this.markerAttribs(t,t.selected&&"select"),this.enabledDataSorting&&(t.startXPos=h.reversed?-(a.width||0):h.width);var g=!1!==t.isInside;if(!n&&g&&((a.width||0)>0||t.hasImage)&&(t.graphic=n=l.renderer.symbol(v,a.x,a.y,a.width,a.height,i?o:f).add(p),this.enabledDataSorting&&l.hasRendered&&(n.attr({x:t.startXPos}),r="animate")),n&&"animate"===r&&n[g?"show":"hide"](g).animate(a),n){var y=this.pointAttribs(t,c||!t.selected?void 0:"select");c?u&&n.css({fill:y.fill}):n[r](y)}n&&n.addClass(t.getClassName(),!0)}else n&&(t.graphic=n.destroy())}},{key:"markerAttribs",value:function(e,t){var n,r,o=this.options,i=o.marker,a=e.marker||{},s=a.symbol||i.symbol,l={},c=U(a.radius,i&&i.radius);t&&(n=i.states[t],c=U((r=a.states&&a.states[t])&&r.radius,n&&n.radius,c&&c+(n&&n.radiusPlus||0))),e.hasImage=s&&0===s.indexOf("url"),e.hasImage&&(c=0);var u=e.pos();return W(c)&&u&&(o.crisp&&(u[0]=T(u[0],e.hasImage?0:"rect"===s?(null===i||void 0===i?void 0:i.lineWidth)||0:1)),l.x=u[0]-c,l.y=u[1]-c),c&&(l.width=l.height=2*c),l}},{key:"pointAttribs",value:function(e,t){var n,r,o,i,a=this.options.marker,s=e&&e.options,l=s&&s.marker||{},c=s&&s.color,u=e&&e.color,d=e&&e.zone&&e.zone.color,f=this.color,p=U(l.lineWidth,a.lineWidth),h=1;return f=c||d||u||f,o=l.fillColor||a.fillColor||f,i=l.lineColor||a.lineColor||f,t=t||"normal",n=a.states[t]||{},p=U((r=l.states&&l.states[t]||{}).lineWidth,n.lineWidth,p+U(r.lineWidthPlus,n.lineWidthPlus,0)),o=r.fillColor||n.fillColor||o,{stroke:i=r.lineColor||n.lineColor||i,"stroke-width":p,fill:o,opacity:h=U(r.opacity,n.opacity,h)}}},{key:"destroy",value:function(e){var t,n,r,o=this,i=o.chart,a=/AppleWebKit\/533/.test(w.navigator.userAgent),s=o.data||[];for(N(o,"destroy",{keepEventsForUpdate:e}),this.removeEvents(e),(o.axisTypes||[]).forEach((function(e){(r=o[e])&&r.series&&(P(r.series,o),r.isDirty=r.forceRedraw=!0)})),o.legendItem&&o.chart.legend.destroyItem(o),t=s.length;t--;)(n=s[t])&&n.destroy&&n.destroy();var l,c=v(o.zones);try{for(c.s();!(l=c.n()).done;){var f=l.value;B(f,void 0,!0)}}catch(p){c.e(p)}finally{c.f()}d.clearTimeout(o.animationTimeout),H(o,(function(e,t){e instanceof u&&!e.survive&&e[a&&"group"===t?"hide":"destroy"]()})),i.hoverSeries===o&&(i.hoverSeries=void 0),P(i.series,o),i.orderItems("series"),H(o,(function(t,n){e&&"hcEvents"===n||delete o[n]}))}},{key:"applyZones",value:function(){var e=this.area,t=this.chart,n=this.graph,r=this.zones,o=this.points,i=this.xAxis,a=this.yAxis,s=this.zoneAxis,c=t.inverted,u=t.renderer,d=this["".concat(s,"Axis")],f=d||{},p=f.isXAxis,h=f.len,m=void 0===h?0:h,g=((null===n||void 0===n?void 0:n.strokeWidth())||0)/2+1,y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;c&&(n=m-n);var r=e.translated,o=void 0===r?0:r,i=e.lineClip,a=n-o;null===i||void 0===i||i.push(["L",t,Math.abs(a)<g?n-g*(a<=0?-1:1):o])};if(r.length&&(n||e)&&d&&W(d.min)){var b=d.getExtremes().max,x=function(e){e.forEach((function(t,n){("M"===t[0]||"L"===t[0])&&(e[n]=[t[0],p?m-t[1]:t[1],p?t[2]:m-t[2]])}))};if(r.forEach((function(e){e.lineClip=[],e.translated=E(d.toPixels(U(e.value,b),!0)||0,0,m)})),n&&!this.showLine&&n.hide(),e&&e.hide(),"y"===s&&o.length<i.len){var w,k=v(o);try{for(k.s();!(w=k.n()).done;){var S=w.value,_=S.plotX,C=S.plotY,T=S.zone,I=T&&r[r.indexOf(T)-1];T&&y(T,_,C),I&&y(I,_,C)}}catch(P){k.e(P)}finally{k.f()}}var B=[],O=d.toPixels(d.getExtremes().min,!0);r.forEach((function(t){var r,o,s,d=t.lineClip||[],f=Math.round(t.translated||0);i.reversed&&d.reverse();var h=t.clip,m=t.simpleClip,v=0,g=0,y=i.len,b=a.len;p?(v=f,y=O):(g=f,b=O);var w=[["M",v,g],["L",y,g],["L",y,b],["L",v,b],["Z"]],k=[w[0]].concat(l(d),[w[1],w[2]],l(B),[w[3],w[4]]);B=d.reverse(),O=f,c&&(x(k),e&&x(w)),h?(h.animate({d:k}),null===(r=m)||void 0===r||r.animate({d:w})):(h=t.clip=u.path(k),e&&(m=t.simpleClip=u.path(w))),n&&null!==(o=t.graph)&&void 0!==o&&o.clip(h),e&&(null===(s=t.area)||void 0===s||s.clip(m))}))}else this.visible&&(n&&n.show(),e&&e.show())}},{key:"plotGroup",value:function(e,t,n,r,o){var i=this[e],a=!i,s={visibility:n,zIndex:r||.1};return I(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(s.opacity=this.opacity),i||(this[e]=i=this.chart.renderer.g().add(o)),i.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(I(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(i.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),i.attr(s)[a?"attr":"animate"](this.getPlotBox(t)),i}},{key:"getPlotBox",value:function(e){var t=this.xAxis,n=this.yAxis,r=this.chart,o=r.inverted&&!r.polar&&t&&this.invertible&&"series"===e;return r.inverted&&(t=n,n=this.xAxis),{translateX:t?t.left:r.plotLeft,translateY:n?n.top:r.plotTop,rotation:o?90:0,rotationOriginX:o?(t.len-n.len)/2:0,rotationOriginY:o?(t.len+n.len)/2:0,scaleX:o?-1:1,scaleY:1}}},{key:"removeEvents",value:function(e){var t=this.eventsToUnbind;e||$(this),t.length&&(t.forEach((function(e){e()})),t.length=0)}},{key:"render",value:function(){var e,t,n,r,o,i=this,a=i.chart,s=i.options,l=i.hasRendered,c=f(s.animation),u=i.visible?"inherit":"hidden",d=s.zIndex,p=a.seriesGroup,h=i.finishedAnimating?0:c.duration;N(this,"render"),i.plotGroup("group","series",u,d,p),i.markerGroup=i.plotGroup("markerGroup","markers",u,d,p),!1!==s.clip&&i.setClip(),h&&null!==(e=i.animate)&&void 0!==e&&e.call(i,!0),i.drawGraph&&(i.drawGraph(),i.applyZones()),i.visible&&i.drawPoints(),null!==(t=i.drawDataLabels)&&void 0!==t&&t.call(i),null!==(n=i.redrawPoints)&&void 0!==n&&n.call(i),s.enableMouseTracking&&null!==(r=i.drawTracker)&&void 0!==r&&r.call(i),h&&null!==(o=i.animate)&&void 0!==o&&o.call(i),l||(h&&c.defer&&(h+=c.defer),i.animationTimeout=q((function(){i.afterAnimate()}),h||0)),i.isDirty=!1,i.hasRendered=!0,N(i,"afterRender")}},{key:"redraw",value:function(){var e=this.isDirty||this.isDirtyData;this.translate(),this.render(),e&&delete this.kdTree}},{key:"reserveSpace",value:function(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}},{key:"searchPoint",value:function(e,t){var n=this.xAxis,r=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:o?r.len-e.chartX+r.pos:e.chartY-r.pos},t,e)}},{key:"buildKDTree",value:function(e){this.buildingKdTree=!0;var t=this,n=t.options.findNearestPointBy.indexOf("y")>-1?2:1;delete t.kdTree,q((function(){t.kdTree=function e(n,r,o){var i,a,s=null===n||void 0===n?void 0:n.length;if(s)return i=t.kdAxisArray[r%o],n.sort((function(e,t){return(e[i]||0)-(t[i]||0)})),{point:n[a=Math.floor(s/2)],left:e(n.slice(0,a),r+1,o),right:e(n.slice(a+1),r+1,o)}}(t.getValidPoints(void 0,!t.directTouch),n,n),t.buildingKdTree=!1}),t.options.kdNow||"touchstart"===(null===e||void 0===e?void 0:e.type)?0:1)}},{key:"searchKDTree",value:function(e,t,n){var r=this,o=p(this.kdAxisArray,2),i=o[0],a=o[1],s=t?"distX":"dist",l=(r.options.findNearestPointBy||"").indexOf("y")>-1?2:1,c=!!r.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(n),this.kdTree)return function e(t,n,o,l){var u,d,f,p=n.point,h=r.kdAxisArray[o%l],m=p;!function(e,t,n){var r=e[i],o=t[i],s=I(r)&&I(o)?r-o:null,l=e[a],u=t[a],d=I(l)&&I(u)?l-u:0,f=c&&(null===(n=t.marker)||void 0===n?void 0:n.radius)||0;t.dist=Math.sqrt((s&&s*s||0)+d*d)-f,t.distX=I(s)?Math.abs(s)-f:Number.MAX_VALUE}(t,p);var v=(t[h]||0)-(p[h]||0)+(c&&(null===(u=p.marker)||void 0===u?void 0:u.radius)||0),g=v<0?"left":"right",y=v<0?"right":"left";return n[g]&&(m=(d=e(t,n[g],o+1,l))[s]<m[s]?d:p),n[y]&&Math.sqrt(v*v)<m[s]&&(m=(f=e(t,n[y],o+1,l))[s]<m[s]?f:m),m}(e,this.kdTree,l,l)}},{key:"pointPlacementToXValue",value:function(){var e=this.options,t=this.xAxis,n=e.pointPlacement;return"between"===n&&(n=t.reversed?-.5:.5),W(n)?n*(e.pointRange||t.pointRange):0}},{key:"isPointInside",value:function(e){var t=this.chart,n=this.xAxis,r=this.yAxis,o=e.plotX,i=void 0===o?-1:o,a=e.plotY,s=void 0===a?-1:a;return s>=0&&s<=(r?r.len:t.plotHeight)&&i>=0&&i<=(n?n.len:t.plotWidth)}},{key:"drawTracker",value:function(){var e,t=this,n=t.options,r=n.trackByArea,o=[].concat((r?t.areaPath:t.graphPath)||[]),i=t.chart,a=i.pointer,s=i.renderer,l=(null===(e=i.options.tooltip)||void 0===e?void 0:e.snap)||0,c=function(){n.enableMouseTracking&&i.hoverSeries!==t&&t.onMouseOver()},u="rgba(192,192,192,"+(x?1e-4:.002)+")",d=t.tracker;d?d.attr({d:o}):t.graph&&(t.tracker=d=s.path(o).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(r?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),i.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:u,fill:r?u:"none","stroke-width":t.graph.strokeWidth()+(r?0:2*l)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach((function(e){e&&(e.addClass("highcharts-tracker").on("mouseover",c).on("mouseout",(function(e){null===a||void 0===a||a.onTrackerMouseOut(e)})),n.cursor&&!i.styledMode&&e.css({cursor:n.cursor}),e.on("touchstart",c))}))),N(this,"afterDrawTracker")}},{key:"addPoint",value:function(e,t,n,r,o){var i,a,s=this.options,l=this.data,c=this.chart,u=this.xAxis,d=u&&u.hasNames&&u.names,f=s.data,p=this.xData;t=U(t,!0);var h={series:this};this.pointClass.prototype.applyOptions.apply(h,[e]);var m=h.x;if(a=p.length,this.requireSorting&&m<p[a-1])for(i=!0;a&&p[a-1]>m;)a--;this.updateParallelArrays(h,"splice",[a,0,0]),this.updateParallelArrays(h,a),d&&h.name&&(d[m]=h.name),f.splice(a,0,e),(i||this.processedData)&&(this.data.splice(a,0,null),this.processData()),"point"===s.legendType&&this.generatePoints(),n&&(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays(h,"shift"),f.shift())),!1!==o&&N(this,"addPoint",{point:h}),this.isDirty=!0,this.isDirtyData=!0,t&&c.redraw(r)}},{key:"removePoint",value:function(e,t,n){var r=this,o=r.data,i=o[e],a=r.points,s=r.chart,l=function(){a&&a.length===o.length&&a.splice(e,1),o.splice(e,1),r.options.data.splice(e,1),r.updateParallelArrays(i||{series:r},"splice",[e,1]),i&&i.destroy(),r.isDirty=!0,r.isDirtyData=!0,t&&s.redraw()};g(n,s),t=U(t,!0),i?i.firePointEvent("remove",null,l):l()}},{key:"remove",value:function(e,t,n,r){var o=this,i=o.chart;function a(){o.destroy(r),i.isDirtyLegend=i.isDirtyBox=!0,i.linkSeries(r),U(e,!0)&&i.redraw(t)}!1!==n?N(o,"remove",null,a):a()}},{key:"update",value:function(e,t){var n,r,o,i;N(this,"update",{options:e=O(e,this.userOptions)});var a,s,l=this,c=l.chart,u=l.userOptions,d=l.initialType||l.type,f=c.options.plotOptions,p=k[d].prototype,h=l.finishedAnimating&&{animation:!1},m={},g=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],y=e.type||u.type||c.options.chart.type,b=!(this.hasDerivedData||y&&y!==this.type||void 0!==e.pointStart||void 0!==e.pointInterval||void 0!==e.relativeXValue||e.joinBy||e.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some((function(e){return l.hasOptionChanged(e)})));y=y||d,b&&(g.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),!1!==e.visible&&g.push("area","graph"),l.parallelArrays.forEach((function(e){g.push(e+"Data")})),e.data&&(e.dataSorting&&A(l.options.dataSorting,e.dataSorting),this.setData(e.data,!1))),e=F(u,{index:void 0===u.index?l.index:u.index,pointStart:null!==(n=null!==(r=null===f||void 0===f||null===(o=f.series)||void 0===o?void 0:o.pointStart)&&void 0!==r?r:u.pointStart)&&void 0!==n?n:null===(i=l.xData)||void 0===i?void 0:i[0]},!b&&{data:l.options.data},e,h),b&&e.data&&(e.data=l.options.data),(g=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(g)).forEach((function(e){g[e]=l[e],delete l[e]}));var x=!1;if(k[y]){if(x=y!==l.type,l.remove(!1,!1,!1,!0),x)if(c.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(l,k[y].prototype);else{var w=Object.hasOwnProperty.call(l,"hcEvents")&&l.hcEvents;for(s in p)l[s]=void 0;A(l,k[y].prototype),w?l.hcEvents=w:delete l.hcEvents}}else R(17,!0,c,{missingModuleFor:y});if(g.forEach((function(e){l[e]=g[e]})),l.init(c,e),b&&this.points){var S,_,E=v((!1===(a=l.options).visible?(m.graphic=1,m.dataLabel=1):(this.hasMarkerChanged(a,u)&&(m.graphic=1),(null===(S=l.hasDataLabels)||void 0===S?void 0:S.call(l))||(m.dataLabel=1)),this.points));try{for(E.s();!(_=E.n()).done;){var C=_.value;C&&C.series&&(C.resolveColor(),Object.keys(m).length&&C.destroyElements(m),!1===a.showInLegend&&C.legendItem&&c.legend.destroyItem(C))}}catch(T){E.e(T)}finally{E.f()}}l.initialType=d,c.linkSeries(),c.setSortedData(),x&&l.linkedSeries.length&&(l.isDirtyData=!0),N(this,"afterUpdate"),U(t,!0)&&c.redraw(!!b&&void 0)}},{key:"setName",value:function(e){this.name=this.options.name=this.userOptions.name=e,this.chart.isDirtyLegend=!0}},{key:"hasOptionChanged",value:function(e){var t,n,r=this.chart,o=this.options[e],i=r.options.plotOptions,a=this.userOptions[e],s=U(null===i||void 0===i||null===(t=i[this.type])||void 0===t?void 0:t[e],null===i||void 0===i||null===(n=i.series)||void 0===n?void 0:n[e]);return a&&!I(s)?o!==a:o!==U(s,o)}},{key:"onMouseOver",value:function(){var e=this.chart,t=e.hoverSeries,n=e.pointer;null!==n&&void 0!==n&&n.setHoverChartIndex(),t&&t!==this&&t.onMouseOut(),this.options.events.mouseOver&&N(this,"mouseOver"),this.setState("hover"),e.hoverSeries=this}},{key:"onMouseOut",value:function(){var e=this.options,t=this.chart,n=t.tooltip,r=t.hoverPoint;t.hoverSeries=null,r&&r.onMouseOut(),this&&e.events.mouseOut&&N(this,"mouseOut"),n&&!this.stickyTracking&&(!n.shared||this.noSharedTooltip)&&n.hide(),t.series.forEach((function(e){e.setState("",!0)}))}},{key:"setState",value:function(e,t){var n=this,r=n.options,o=n.graph,i=r.inactiveOtherPoints,a=r.states,s=U(a[e||"normal"]&&a[e||"normal"].animation,n.chart.options.chart.animation),c=r.lineWidth,u=r.opacity;if(e=e||"",n.state!==e&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach((function(t){t&&(n.state&&t.removeClass("highcharts-series-"+n.state),e&&t.addClass("highcharts-series-"+e))})),n.state=e,!n.chart.styledMode)){if(a[e]&&!1===a[e].enabled)return;if(e&&(c=a[e].lineWidth||c+(a[e].lineWidthPlus||0),u=U(a[e].opacity,u)),o&&!o.dashstyle&&W(c))for(var d=0,f=[o].concat(l(this.zones.map((function(e){return e.graph}))));d<f.length;d++){var p=f[d];null===p||void 0===p||p.animate({"stroke-width":c},s)}i||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(e){e&&e.animate({opacity:u},s)}))}t&&i&&n.points&&n.setAllPointsToState(e||void 0)}},{key:"setAllPointsToState",value:function(e){this.points.forEach((function(t){t.setState&&t.setState(e)}))}},{key:"setVisible",value:function(e,t){var n,r=this,o=r.chart,i=o.options.chart.ignoreHiddenSeries,a=r.visible;r.visible=e=r.options.visible=r.userOptions.visible=void 0===e?!a:e;var s=e?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(e){var t;null===(t=r[e])||void 0===t||t[s]()})),(o.hoverSeries===r||(null===(n=o.hoverPoint)||void 0===n?void 0:n.series)===r)&&r.onMouseOut(),r.legendItem&&o.legend.colorizeItem(r,e),r.isDirty=!0,r.options.stacking&&o.series.forEach((function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)})),r.linkedSeries.forEach((function(t){t.setVisible(e,!1)})),i&&(o.isDirtyBox=!0),N(r,s),!1!==t&&o.redraw()}},{key:"show",value:function(){this.setVisible(!0)}},{key:"hide",value:function(){this.setVisible(!1)}},{key:"select",value:function(e){this.selected=e=this.options.selected=void 0===e?!this.selected:e,this.checkbox&&(this.checkbox.checked=e),N(this,e?"select":"unselect")}},{key:"shouldShowTooltip",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(e,t,n)}},{key:"drawLegendSymbol",value:function(e,t){var n;null===(n=o[this.options.legendSymbol||"rectangle"])||void 0===n||n.call(this,e,t)}}]),e}();return K.defaultOptions=a,K.types=c.seriesTypes,K.registerType=c.registerSeriesType,A(K.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:i,requireSorting:!0,sorted:!0}),c.series=K,K})),n(t,"Core/Legend/Legend.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Series/Point.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o,i,a,s){var l,c=e.animObject,u=e.setAnimation,d=t.registerEventOptions,f=n.composed,p=n.marginNames,g=i.distribute,y=a.format,b=s.addEvent,x=s.createElement,w=s.css,k=s.defined,S=s.discardElement,_=s.find,E=s.fireEvent,C=s.isNumber,T=s.merge,I=s.pick,B=s.pushUnique,O=s.relativeLength,P=s.stableSort,R=s.syncTimeout,A=function(){function e(t,n){var r=this;h(this,e),this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(n),n.enabled&&(this.render(),d(this,n),b(this.chart,"endResize",(function(){this.legend.positionCheckboxes()}))),b(this.chart,"render",(function(){r.options.enabled&&r.proximate&&(r.proximatePositions(),r.positionItems())}))}return m(e,[{key:"setOptions",value:function(e){var t=I(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=T(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=I(e.symbolWidth,16),this.pages=[],this.proximate="proximate"===e.layout&&!this.chart.inverted,this.baseline=void 0}},{key:"update",value:function(e,t){var n=this.chart;this.setOptions(T(!0,this.options,e)),"events"in this.options&&d(this,this.options),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,I(t,!0)&&n.redraw(),E(this,"afterUpdate",{redraw:t})}},{key:"colorizeItem",value:function(e,t){var n=e.legendItem||{},r=n.area,o=n.group,i=n.label,a=n.line,s=n.symbol;if(null!==o&&void 0!==o&&o[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var l=this.itemHiddenStyle,c=void 0===l?{}:l,u=c.color,d=e.options,f=d.fillColor,p=d.fillOpacity,h=d.lineColor,m=d.marker,v=function(e){return!t&&(e.fill&&(e.fill=u),e.stroke&&(e.stroke=u)),e};null!==i&&void 0!==i&&i.css(T(t?this.itemStyle:c)),null!==a&&void 0!==a&&a.attr(v({stroke:h||e.color})),s&&s.attr(v(m&&s.isMarker?e.pointAttribs():{fill:e.color})),null===r||void 0===r||r.attr(v({fill:f||e.color,"fill-opacity":f?1:null!==p&&void 0!==p?p:.75}))}E(this,"afterColorizeItem",{item:e,visible:t})}},{key:"positionItems",value:function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}},{key:"positionItem",value:function(e){var t=this,n=e.legendItem||{},r=n.group,o=n.x,i=void 0===o?0:o,a=n.y,s=void 0===a?0:a,l=this.options,c=l.symbolPadding,u=!l.rtl,d=e.checkbox;if(r&&r.element){var f={translateX:u?i:this.legendWidth-i-2*c-4,translateY:s};r[k(r.translateY)?"animate":"attr"](f,void 0,(function(){E(t,"afterPositionItem",{item:e})}))}d&&(d.x=i,d.y=s)}},{key:"destroyItem",value:function(e){for(var t=e.checkbox,n=e.legendItem||{},r=0,o=["group","label","line","symbol"];r<o.length;r++){var i=o[r];n[i]&&(n[i]=n[i].destroy())}t&&S(t),e.legendItem=void 0}},{key:"destroy",value:function(){var e,t=v(this.getAllItems());try{for(t.s();!(e=t.n()).done;){var n=e.value;this.destroyItem(n)}}catch(a){t.e(a)}finally{t.f()}for(var r=0,o=["clipRect","up","down","pager","nav","box","title","group"];r<o.length;r++){var i=o[r];this[i]&&(this[i]=this[i].destroy())}this.display=null}},{key:"positionCheckboxes",value:function(){var e,t=this.group&&this.group.alignAttr,n=this.clipHeight||this.legendHeight,r=this.titleHeight;t&&(e=t.translateY,this.allItems.forEach((function(o){var i,a=o.checkbox;a&&(i=e+r+a.y+(this.scrollOffset||0)+3,w(a,{left:t.translateX+o.checkboxOffset+a.x-20+"px",top:i+"px",display:this.proximate||i>e-6&&i<e+n-6?"":"none"}))}),this))}},{key:"renderTitle",value:function(){var e,t=this.options,n=this.padding,r=t.title,o=0;r.text&&(this.title||(this.title=this.chart.renderer.label(r.text,n-3,n-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(r.style),this.title.add(this.group)),r.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}},{key:"setText",value:function(e){var t=this.options;e.legendItem.label.attr({text:t.labelFormat?y(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}},{key:"renderItem",value:function(e){var t=e.legendItem=e.legendItem||{},n=this.chart,r=n.renderer,o=this.options,i="horizontal"===o.layout,a=this.symbolWidth,s=o.symbolPadding||0,l=this.itemStyle,c=this.itemHiddenStyle,u=i?I(o.itemDistance,20):0,d=!o.rtl,f=!e.series,p=!f&&e.series.drawLegendSymbol?e.series:e,h=p.options,m=!!this.createCheckboxForItem&&h&&h.showCheckbox,v=o.useHTML,g=e.options.className,y=t.label,b=a+s+u+(m?20:0);!y&&(t.group=r.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+e.colorIndex+(g?" "+g:"")+(f?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=y=r.text("",d?a+s:-s,this.baseline||0,v),n.styledMode||y.css(T(e.visible?l:c)),y.attr({align:d?"left":"right",zIndex:2}).add(t.group),!this.baseline&&(this.fontMetrics=r.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=I(o.symbolHeight,this.fontMetrics.f),o.squareSymbol&&(this.symbolWidth=I(o.symbolWidth,Math.max(this.symbolHeight,16)),b=this.symbolWidth+s+u+(m?20:0),d&&y.attr("x",this.symbolWidth+s))),p.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,y,v)),m&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),(n.styledMode||!l.width)&&y.css({width:(o.itemWidth||this.widthOption||n.spacingBox.width)-b+"px"}),this.setText(e);var x=y.getBBox(),w=this.fontMetrics&&this.fontMetrics.h||0;e.itemWidth=e.checkboxOffset=o.itemWidth||t.labelWidth||x.width+b,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(x.height>1.5*w?x.height:w))}},{key:"layoutItem",value:function(e){var t=this.options,n=this.padding,r="horizontal"===t.layout,o=e.itemHeight,i=this.itemMarginBottom,a=this.itemMarginTop,s=r?I(t.itemDistance,20):0,l=this.maxLegendWidth,c=t.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:e.itemWidth,u=e.legendItem||{};r&&this.itemX-n+c>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+i),this.lastLineHeight=0),this.lastItemY=a+this.itemY+i,this.lastLineHeight=Math.max(o,this.lastLineHeight),u.x=this.itemX,u.y=this.itemY,r?this.itemX+=c:(this.itemY+=a+o+i,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(e.checkbox?0:s):c)+n,this.offsetWidth)}},{key:"getAllItems",value:function(){var e=[];return this.chart.series.forEach((function(t){var n=t&&t.options;t&&I(n.showInLegend,!k(n.linkedTo)&&void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||("point"===n.legendType?t.data:t)))})),E(this,"afterGetAllItems",{allItems:e}),e}},{key:"getAlignment",value:function(){var e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}},{key:"adjustMargins",value:function(e,t){var n=this.chart,r=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(i,a){i.test(o)&&!k(e[a])&&(n[p[a]]=Math.max(n[p[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+I(r.margin,12)+t[a]+(n.titleOffset[a]||0)))}))}},{key:"proximatePositions",value:function(){var e,t,n=this.chart,r=[],o="left"===this.options.align,i=v((this.allItems.forEach((function(e){var t,i,a,s,l=o;e.yAxis&&(e.xAxis.options.reversed&&(l=!l),e.points&&(t=_(l?e.points:e.points.slice(0).reverse(),(function(e){return C(e.plotY)}))),i=this.itemMarginTop+e.legendItem.label.getBBox().height+this.itemMarginBottom,s=e.yAxis.top-n.plotTop,a=e.visible?(t?t.plotY:e.yAxis.height)+(s-.3*i):s+e.yAxis.height,r.push({target:a,size:i,item:e}))}),this),g(r,n.plotHeight)));try{for(i.s();!(t=i.n()).done;){var a=t.value;e=a.item.legendItem||{},C(a.pos)&&(e.y=n.plotTop-n.spacing[0]+a.pos)}}catch(s){i.e(s)}finally{i.f()}}},{key:"render",value:function(){var e,t,n,r,o=this.chart,i=o.renderer,a=this.options,s=this.padding,l=this.getAllItems(),c=this.group,u=this.box;this.itemX=s,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=O(a.width,o.spacingBox.width-s),r=o.spacingBox.width-2*s-a.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(r/=2),this.maxLegendWidth=this.widthOption||r,c||(this.group=c=i.g("legend").addClass(a.className||"").attr({zIndex:7}).add(),this.contentGroup=i.g().attr({zIndex:1}).add(c),this.scrollGroup=i.g().add(this.contentGroup)),this.renderTitle(),P(l,(function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)})),a.reversed&&l.reverse(),this.allItems=l,this.display=e=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),t=(this.widthOption||this.offsetWidth)+s,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n)+s,u||(this.box=u=i.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(c)),o.styledMode||u.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),t>0&&n>0&&u[u.placed?"animate":"attr"](u.crisp.call({},{x:0,y:0,width:t,height:n},u.strokeWidth())),c[e?"show":"hide"](),o.styledMode&&"none"===c.getStyle("display")&&(t=n=0),this.legendWidth=t,this.legendHeight=n,e&&this.align(),this.proximate||this.positionItems(),E(this,"afterRender")}},{key:"align",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.spacingBox,t=this.chart,n=this.options,r=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&t.titleOffset[0]>0?r+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&t.titleOffset[2]>0&&(r-=t.titleOffset[2]),r!==e.y&&(e=T(e,{y:r})),t.hasRendered||(this.group.placed=!1),this.group.align(T(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,e)}},{key:"handleOverflow",value:function(e){var t,n,r,o=this,i=this.chart,a=i.renderer,s=this.options,l=s.y,c="top"===s.verticalAlign,u=this.padding,d=s.maxHeight,f=s.navigation,p=I(f.animation,!0),h=f.arrowSize||12,m=this.pages,v=this.allItems,g=function(e){"number"==typeof e?w.attr({height:e}):w&&(o.clipRect=w.destroy(),o.contentGroup.clip()),o.contentGroup.div&&(o.contentGroup.div.style.clip=e?"rect("+u+"px,9999px,"+(u+e)+"px,0)":"auto")},y=function(e){return o[e]=a.circle(0,0,1.3*h).translate(h/2,h/2).add(x),i.styledMode||o[e].attr("fill","rgba(0,0,0,0.0001)"),o[e]},b=i.spacingBox.height+(c?-l:l)-u,x=this.nav,w=this.clipRect;return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(b/=2),d&&(b=Math.min(b,d)),m.length=0,e&&b>0&&e>b&&!1!==f.enabled?(this.clipHeight=t=Math.max(b-20-this.titleHeight-u,0),this.currentPage=I(this.currentPage,1),this.fullHeight=e,v.forEach((function(e,o){var i=(r=e.legendItem||{}).y||0,a=Math.round(r.label.getBBox().height),s=m.length;(!s||i-m[s-1]>t&&(n||i)!==m[s-1])&&(m.push(n||i),s++),r.pageIx=s-1,n&&((v[o-1].legendItem||{}).pageIx=s-1),o===v.length-1&&i+a-m[s-1]>t&&i>m[s-1]&&(m.push(i),r.pageIx=s),i!==n&&(n=i)})),w||(w=o.clipRect=a.clipRect(0,u-2,9999,0),o.contentGroup.clip(w)),g(t),x||(this.nav=x=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,h,h).add(x),y("upTracker").on("click",(function(){o.scroll(-1,p)})),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&f.style&&this.pager.css(f.style),this.pager.add(x),this.down=a.symbol("triangle-down",0,0,h,h).add(x),y("downTracker").on("click",(function(){o.scroll(1,p)}))),o.scroll(0),e=b):x&&(g(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}},{key:"scroll",value:function(e,t){var n=this,r=this.chart,o=this.pages,i=o.length,a=this.clipHeight,s=this.options.navigation,l=this.pager,d=this.padding,f=this.currentPage+e;f>i&&(f=i),f>0&&(void 0!==t&&u(t,r),this.nav.attr({translateX:d,translateY:a+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(e){e.attr({class:1===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),l.attr({text:f+"/"+i}),[this.down,this.downTracker].forEach((function(e){e.attr({x:18+this.pager.getBBox().width,class:f===i?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),r.styledMode||(this.up.attr({fill:1===f?s.inactiveColor:s.activeColor}),this.upTracker.css({cursor:1===f?"default":"pointer"}),this.down.attr({fill:f===i?s.inactiveColor:s.activeColor}),this.downTracker.css({cursor:f===i?"default":"pointer"})),this.scrollOffset=-o[f-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=f,this.positionCheckboxes(),R((function(){E(n,"afterScroll",{currentPage:f})}),c(I(t,r.renderer.globalAnimation,!0)).duration))}},{key:"setItemEvents",value:function(e,t,n){for(var i=this,a=e.legendItem||{},s=i.chart.renderer.boxWrapper,l=e instanceof o,c=e instanceof r,u="highcharts-legend-"+(l?"point":"series")+"-active",d=i.chart.styledMode,f=n?[t,a.symbol]:[a.group],p=function(t){i.allItems.forEach((function(n){e!==n&&[n].concat(n.linkedSeries||[]).forEach((function(e){e.setState(t,!l)}))}))},h=0,m=f;h<m.length;h++){var v=m[h];v&&v.on("mouseover",(function(){e.visible&&p("inactive"),e.setState("hover"),e.visible&&s.addClass(u),d||t.css(i.options.itemHoverStyle)})).on("mouseout",(function(){i.chart.styledMode||t.css(T(e.visible?i.itemStyle:i.itemHiddenStyle)),p(""),s.removeClass(u),e.setState()})).on("click",(function(t){s.removeClass(u),E(i,"itemClick",{browserEvent:t,legendItem:e},(function(){e.setVisible&&e.setVisible(),p(e.visible?"inactive":"")})),l?e.firePointEvent("legendItemClick",{browserEvent:t}):c&&E(e,"legendItemClick",{browserEvent:t})}))}}},{key:"createCheckboxForItem",value:function(e){e.checkbox=x("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),b(e.checkbox,"click",(function(t){var n=t.target;E(e.series||e,"checkboxClick",{checked:n.checked,item:e},(function(){e.select()}))}))}}]),e}();return(l=A||(A={})).compose=function(e){B(f,"Core.Legend")&&b(e,"beforeMargins",(function(){this.legend=new l(this,this.options.legend)}))},A})),n(t,"Core/Chart/Chart.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Templating.js"],t["Core/Foundation.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Time.js"],t["Core/Utilities.js"],t["Core/Renderer/HTML/AST.js"],t["Core/Axis/Tick.js"]],(function(e,t,n,r,o,i,a,l,c,u,d,f,g,y){var b=e.animate,x=e.animObject,w=e.setAnimation,k=n.defaultOptions,S=n.defaultTime,_=r.numberFormat,E=o.registerEventOptions,C=i.charts,T=i.doc,I=i.marginNames,B=i.svg,O=i.win,P=c.seriesTypes,R=f.addEvent,A=f.attr,M=f.createElement,N=f.css,D=f.defined,L=f.diffObjects,j=f.discardElement,z=f.erase,W=f.error,Z=f.extend,F=f.find,H=f.fireEvent,U=f.getStyle,$=f.isArray,G=f.isNumber,q=f.isObject,K=f.isString,V=f.merge,Y=f.objectEach,X=f.pick,J=f.pInt,Q=f.relativeLength,ee=f.removeEvent,te=f.splat,ne=f.syncTimeout,re=f.uniqueKey,oe=function(){function e(t,n,r){h(this,e),this.sharedClips={};var o=Array.prototype.slice.call(arguments);(K(t)||t.nodeName)&&(this.renderTo=o.shift()),this.init(o[0],o[1])}return m(e,[{key:"setZoomOptions",value:function(){var e=this.options.chart,t=e.zooming;this.zooming=s(s({},t),{},{type:X(e.zoomType,t.type),key:X(e.zoomKey,t.key),pinchType:X(e.pinchType,t.pinchType),singleTouch:X(e.zoomBySingleTouch,t.singleTouch,!1),resetButton:V(t.resetButton,e.resetZoomButton)})}},{key:"init",value:function(e,t){H(this,"init",{args:arguments},(function(){var n=V(k,e),r=n.chart;this.userOptions=Z({},e),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=t,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new d(e.time):i.time,this.numberFormatter=r.numberFormatter||_,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes,this.index=C.length,C.push(this),i.chartCount++,E(this,r),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),H(this,"afterInit"),this.firstRender()}))}},{key:"initSeries",value:function(e){var t=this.options.chart,n=e.type||t.type,r=P[n];r||W(17,!0,this,{missingModuleFor:n});var o=new r;return"function"==typeof o.init&&o.init(this,e),o}},{key:"setSortedData",value:function(){this.getSeriesOrderByLinks().forEach((function(e){e.points||e.data||!e.enabledDataSorting||e.setData(e.options.data,!1)}))}},{key:"getSeriesOrderByLinks",value:function(){return this.series.concat().sort((function(e,t){return e.linkedSeries.length||t.linkedSeries.length?t.linkedSeries.length-e.linkedSeries.length:0}))}},{key:"orderItems",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this[e],r=this.options[e]=te(this.options[e]).slice(),o=this.userOptions[e]=this.userOptions[e]?te(this.userOptions[e]).slice():[];if(this.hasRendered&&(r.splice(t),o.splice(t)),n)for(var i=t,a=n.length;i<a;++i){var s=n[i];s&&(s.index=i,s instanceof l&&(s.name=s.getName()),s.options.isInternal||(r[i]=s.options,o[i]=s.userOptions))}}},{key:"isInsidePlot",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.inverted,i=this.plotBox,a=this.plotLeft,s=this.plotTop,l=this.scrollablePlotBox,c=r.visiblePlotOnly&&(null===(n=this.scrollablePlotArea)||void 0===n?void 0:n.scrollingContainer)||{},u=c.scrollLeft,d=void 0===u?0:u,f=c.scrollTop,p=void 0===f?0:f,h=r.series,m=r.visiblePlotOnly&&l||i,v=r.inverted?t:e,g=r.inverted?e:t,y={x:v,y:g,isInsidePlot:!0,options:r};if(!r.ignoreX){var b=h&&(o&&!this.polar?h.yAxis:h.xAxis)||{pos:a,len:1/0},x=r.paneCoordinates?b.pos+v:a+v;x>=Math.max(d+a,b.pos)&&x<=Math.min(d+a+m.width,b.pos+b.len)||(y.isInsidePlot=!1)}if(!r.ignoreY&&y.isInsidePlot){var w=!o&&r.axis&&!r.axis.isXAxis&&r.axis||h&&(o?h.xAxis:h.yAxis)||{pos:s,len:1/0},k=r.paneCoordinates?w.pos+g:s+g;k>=Math.max(p+s,w.pos)&&k<=Math.min(p+s+m.height,w.pos+w.len)||(y.isInsidePlot=!1)}return H(this,"afterIsInsidePlot",y),y.isInsidePlot}},{key:"redraw",value:function(e){H(this,"beforeRedraw");var t,n,r,o,i=this.hasCartesianSeries?this.axes:this.colorAxis||[],a=this.series,s=this.pointer,l=this.legend,c=this.userOptions.legend,u=this.renderer,d=u.isHidden(),f=[],p=this.isDirtyBox,h=this.isDirtyLegend;for(u.rootFontSize=u.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),w(!!this.hasRendered&&e,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),r=a.length;r--;)if(((o=a[r]).options.stacking||o.options.centerInCategory)&&(n=!0,o.isDirty)){t=!0;break}if(t)for(r=a.length;r--;)(o=a[r]).options.stacking&&(o.isDirty=!0);a.forEach((function(e){e.isDirty&&("point"===e.options.legendType?("function"==typeof e.updateTotals&&e.updateTotals(),h=!0):c&&(c.labelFormatter||c.labelFormat)&&(h=!0)),e.isDirtyData&&H(e,"updatedData")})),h&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),n&&this.getStacks(),i.forEach((function(e){e.updateNames(),e.setScale()})),this.getMargins(),i.forEach((function(e){e.isDirty&&(p=!0)})),i.forEach((function(e){var t=e.min+","+e.max;e.extKey!==t&&(e.extKey=t,f.push((function(){H(e,"afterSetExtremes",Z(e.eventArgs,e.getExtremes())),delete e.eventArgs}))),(p||n)&&e.redraw()})),p&&this.drawChartBox(),H(this,"predraw"),a.forEach((function(e){(p||e.isDirty)&&e.visible&&e.redraw(),e.isDirtyData=!1})),s&&s.reset(!0),u.draw(),H(this,"redraw"),H(this,"render"),d&&this.temporaryDisplay(!0),f.forEach((function(e){e.call()}))}},{key:"get",value:function(e){var t=this.series;function n(t){return t.id===e||t.options&&t.options.id===e}for(var r=F(this.axes,n)||F(this.series,n),o=0;!r&&o<t.length;o++)r=F(t[o].points||[],n);return r}},{key:"getAxes",value:function(){for(var e=this.userOptions,n=0,r=(H(this,"getAxes"),["xAxis","yAxis"]);n<r.length;n++){var o,i=r[n],a=v(e[i]=te(e[i]||{}));try{for(a.s();!(o=a.n()).done;){var s=o.value;new t(this,s,i)}}catch(l){a.e(l)}finally{a.f()}}H(this,"afterGetAxes")}},{key:"getSelectedPoints",value:function(){return this.series.reduce((function(e,t){return t.getPointsCollection().forEach((function(t){X(t.selectedStaging,t.selected)&&e.push(t)})),e}),[])}},{key:"getSelectedSeries",value:function(){return this.series.filter((function(e){return e.selected}))}},{key:"setTitle",value:function(e,t,n){this.applyDescription("title",e),this.applyDescription("subtitle",t),this.applyDescription("caption",void 0),this.layOutTitles(n)}},{key:"applyDescription",value:function(e,t){var n=this,r=this.options[e]=V(this.options[e],t),o=this[e];o&&t&&(this[e]=o=o.destroy()),r&&!o&&((o=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+e,zIndex:r.zIndex||4}).add()).update=function(t,r){n.applyDescription(e,t),n.layOutTitles(r)},this.styledMode||o.css(Z("title"===e?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),this[e]=o)}},{key:"layOutTitles",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[0,0,0],n=this.renderer,r=this.spacingBox;["title","subtitle","caption"].forEach((function(e){var o=this[e],i=this.options[e],a=i.verticalAlign||"top",s="title"===e?"top"===a?-3:0:"top"===a?t[0]+2:0;if(o){o.css({width:(i.width||r.width+(i.widthAdjust||0))+"px"});var l=n.fontMetrics(o).b,c=Math.round(o.getBBox(i.useHTML).height);o.align(Z({y:"bottom"===a?l:s+l,height:c},i),!1,"spacingBox"),i.floating||("top"===a?t[0]=Math.ceil(t[0]+c):"bottom"===a&&(t[2]=Math.ceil(t[2]+c)))}}),this),t[0]&&"top"===(this.options.title.verticalAlign||"top")&&(t[0]+=this.options.title.margin),t[2]&&"bottom"===this.options.caption.verticalAlign&&(t[2]+=this.options.caption.margin);var o=!this.titleOffset||this.titleOffset.join(",")!==t.join(",");this.titleOffset=t,H(this,"afterLayOutTitles"),!this.isDirtyBox&&o&&(this.isDirtyBox=this.isDirtyLegend=o,this.hasRendered&&e&&this.isDirtyBox&&this.redraw())}},{key:"getContainerBox",value:function(){var e=this,t=[].map.call(this.renderTo.children,(function(t){if(t!==e.container){var n=t.style.display;return t.style.display="none",[t,n]}})),n={width:U(this.renderTo,"width",!0)||0,height:U(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach((function(e){var t=p(e,2),n=t[0],r=t[1];n.style.display=r})),n}},{key:"getChartSize",value:function(){var e,t=this.options.chart,n=t.width,r=t.height,o=this.getContainerBox(),i=o.height>1&&!((null===(e=this.renderTo.parentElement)||void 0===e||!e.style.height)&&"100%"===this.renderTo.style.height);this.chartWidth=Math.max(0,n||o.width||600),this.chartHeight=Math.max(0,Q(r,this.chartWidth)||(i?o.height:400)),this.containerBox=o}},{key:"temporaryDisplay",value:function(e){var t,n=this.renderTo;if(e)for(;n&&n.style;)n.hcOrigStyle&&(N(n,n.hcOrigStyle),delete n.hcOrigStyle),n.hcOrigDetached&&(T.body.removeChild(n),n.hcOrigDetached=!1),n=n.parentNode;else for(;n&&n.style&&(T.body.contains(n)||n.parentNode||(n.hcOrigDetached=!0,T.body.appendChild(n)),("none"===U(n,"display",!1)||n.hcOricDetached)&&(n.hcOrigStyle={display:n.style.display,height:n.style.height,overflow:n.style.overflow},t={display:"block",overflow:"hidden"},n!==this.renderTo&&(t.height=0),N(n,t),n.offsetWidth||n.style.setProperty("display","block","important")),(n=n.parentNode)!==T.body););}},{key:"setClassName",value:function(e){this.container.className="highcharts-container "+(e||"")}},{key:"getContainer",value:function(){var e,t,n=this.options,r=n.chart,o="data-highcharts-chart",i=re(),s=this.renderTo;s||(this.renderTo=s=r.renderTo),K(s)&&(this.renderTo=s=T.getElementById(s)),s||W(13,!0,this);var l=J(A(s,o));G(l)&&C[l]&&C[l].hasRendered&&C[l].destroy(),A(s,o,this.index),s.innerHTML=g.emptyHTML,r.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize();var c=this.chartHeight,d=this.chartWidth;N(s,{overflow:"hidden"}),this.styledMode||(t=Z({position:"relative",overflow:"hidden",width:d+"px",height:c+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},r.style||{}));var f=M("div",{id:i},t,s);this.container=f,this.getChartSize(),d===this.chartWidth||(d=this.chartWidth,this.styledMode||N(f,{width:X(null===(e=r.style)||void 0===e?void 0:e.width,d+"px")})),this.containerBox=this.getContainerBox(),this._cursor=f.style.cursor;var p=r.renderer||!B?a.getRendererType(r.renderer):u;if(this.renderer=new p(f,d,c,void 0,r.forExport,n.exporting&&n.exporting.allowHTML,this.styledMode),w(void 0,this),this.setClassName(r.className),this.styledMode)for(var h in n.defs)this.renderer.definition(n.defs[h]);else this.renderer.setStyle(r.style);this.renderer.chartIndex=this.index,H(this,"afterGetContainer")}},{key:"getMargins",value:function(e){var t=this.spacing,n=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!D(n[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+t[0])),r[2]&&!D(n[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+t[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(n,t),H(this,"getMargins"),e||this.getAxisMargins()}},{key:"getAxisMargins",value:function(){var e=this,t=e.axisOffset=[0,0,0,0],n=e.colorAxis,r=e.margin,o=function(e){e.forEach((function(e){e.visible&&e.getOffset()}))};e.hasCartesianSeries?o(e.axes):n&&n.length&&o(n),I.forEach((function(n,o){D(r[o])||(e[n]+=t[o])})),e.setChartSize()}},{key:"getOptions",value:function(){return L(this.userOptions,k)}},{key:"reflow",value:function(e){var t,n=this,r=n.containerBox,o=n.getContainerBox();null===(t=n.pointer)||void 0===t||delete t.chartPosition,!n.isPrinting&&!n.isResizing&&r&&o.width&&((o.width!==r.width||o.height!==r.height)&&(f.clearTimeout(n.reflowTimeout),n.reflowTimeout=ne((function(){n.container&&n.setSize(void 0,void 0,!1)}),e?100:0)),n.containerBox=o)}},{key:"setReflow",value:function(){var e=this,t=function(t){var n;(null===(n=e.options)||void 0===n?void 0:n.chart.reflow)&&e.hasLoaded&&e.reflow(t)};if("function"==typeof ResizeObserver)new ResizeObserver(t).observe(e.renderTo);else{var n=R(O,"resize",t);R(this,"destroy",n)}}},{key:"setSize",value:function(e,t,n){var r=this,o=r.renderer;r.isResizing+=1,w(n,r);var i=o.globalAnimation;r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,void 0!==e&&(r.options.chart.width=e),void 0!==t&&(r.options.chart.height=t),r.getChartSize();var a=r.chartWidth,s=r.chartHeight,l=r.scrollablePixelsX,c=void 0===l?0:l,u=r.scrollablePixelsY,d=void 0===u?0:u;(r.isDirtyBox||a!==r.oldChartWidth||s!==r.oldChartHeight)&&(r.styledMode||(i?b:N)(r.container,{width:"".concat(a+c,"px"),height:"".concat(s+d,"px")},i),r.setChartSize(!0),o.setSize(a,s,i),r.axes.forEach((function(e){e.isDirty=!0,e.setScale()})),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(i),r.oldChartHeight=void 0,H(r,"resize"),setTimeout((function(){r&&H(r,"endResize")}),x(i).duration)),r.isResizing-=1}},{key:"setChartSize",value:function(e){var t,n,r,o,i=this.chartHeight,a=this.chartWidth,s=this.inverted,l=this.spacing,c=this.renderer,u=this.clipOffset,d=Math[s?"floor":"round"];this.plotLeft=t=Math.round(this.plotLeft),this.plotTop=n=Math.round(this.plotTop),this.plotWidth=r=Math.max(0,Math.round(a-t-this.marginRight)),this.plotHeight=o=Math.max(0,Math.round(i-n-this.marginBottom)),this.plotSizeX=s?o:r,this.plotSizeY=s?r:o,this.spacingBox=c.spacingBox={x:l[3],y:l[0],width:a-l[3]-l[1],height:i-l[0]-l[2]},this.plotBox=c.plotBox={x:t,y:n,width:r,height:o},u&&(this.clipBox={x:d(u[3]),y:d(u[0]),width:d(this.plotSizeX-u[1]-u[3]),height:d(this.plotSizeY-u[0]-u[2])}),e||(this.axes.forEach((function(e){e.setAxisSize(),e.setAxisTranslation()})),c.alignElements()),H(this,"afterSetChartSize",{skipAxes:e})}},{key:"resetMargins",value:function(){H(this,"resetMargins");var e=this,t=e.options.chart,n=t.plotBorderWidth||0,r=n/2;["margin","spacing"].forEach((function(n){var r=t[n],o=q(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach((function(r,i){e[n][i]=X(t[n+r],o[i])}))})),I.forEach((function(t,n){e[t]=X(e.margin[n],e.spacing[n])})),e.axisOffset=[0,0,0,0],e.clipOffset=[r,r,r,r],e.plotBorderWidth=n}},{key:"drawChartBox",value:function(){var e,t,n,r=this.options.chart,o=this.renderer,i=this.chartWidth,a=this.chartHeight,s=this.styledMode,l=this.plotBGImage,c=r.backgroundColor,u=r.plotBackgroundColor,d=r.plotBackgroundImage,f=this.plotLeft,p=this.plotTop,h=this.plotWidth,m=this.plotHeight,v=this.plotBox,g=this.clipRect,y=this.clipBox,b=this.chartBackground,x=this.plotBackground,w=this.plotBorder,k="animate";b||(this.chartBackground=b=o.rect().addClass("highcharts-background").add(),k="attr"),s?e=t=b.strokeWidth():(t=(e=r.borderWidth||0)+(r.shadow?8:0),n={fill:c||"none"},(e||b["stroke-width"])&&(n.stroke=r.borderColor,n["stroke-width"]=e),b.attr(n).shadow(r.shadow)),b[k]({x:t/2,y:t/2,width:i-t-e%2,height:a-t-e%2,r:r.borderRadius}),k="animate",x||(k="attr",this.plotBackground=x=o.rect().addClass("highcharts-plot-background").add()),x[k](v),!s&&(x.attr({fill:u||"none"}).shadow(r.plotShadow),d&&(l?(d!==l.attr("href")&&l.attr("href",d),l.animate(v)):this.plotBGImage=o.image(d,f,p,h,m).add())),g?g.animate({width:y.width,height:y.height}):this.clipRect=o.clipRect(y),k="animate",w||(k="attr",this.plotBorder=w=o.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),s||w.attr({stroke:r.plotBorderColor,"stroke-width":r.plotBorderWidth||0,fill:"none"}),w[k](w.crisp({x:f,y:p,width:h,height:m},-w.strokeWidth())),this.isDirtyBox=!1,H(this,"afterDrawChartBox")}},{key:"propFromSeries",value:function(){var e,t,n,r=this,o=r.options.chart,i=r.options.series;["inverted","angular","polar"].forEach((function(a){for(t=P[o.type],n=o[a]||t&&t.prototype[a],e=i&&i.length;!n&&e--;)(t=P[i[e].type])&&t.prototype[a]&&(n=!0);r[a]=n}))}},{key:"linkSeries",value:function(e){var t=this,n=t.series;n.forEach((function(e){e.linkedSeries.length=0})),n.forEach((function(e){var n,r=e.options.linkedTo;K(r)&&(n=":previous"===r?t.series[e.index-1]:t.get(r))&&n.linkedParent!==e&&(n.linkedSeries.push(e),e.linkedParent=n,n.enabledDataSorting&&e.setDataSortingOptions(),e.visible=X(e.options.visible,n.options.visible,e.visible))})),H(this,"afterLinkSeries",{isUpdating:e})}},{key:"renderSeries",value:function(){this.series.forEach((function(e){e.translate(),e.render()}))}},{key:"render",value:function(){var e,t,n,r=this.axes,o=this.colorAxis,i=this.renderer,a=this.options.chart.axisLayoutRuns||2,s=function(e){e.forEach((function(e){e.visible&&e.render()}))},l=0,c=!0,u=0,d=v((this.setTitle(),H(this,"beforeMargins"),null!==(e=this.getStacks)&&void 0!==e&&e.call(this),this.getMargins(!0),this.setChartSize(),r));try{for(d.s();!(n=d.n()).done;){var f=n.value,p=f.options,h=p.labels;if(this.hasCartesianSeries&&f.horiz&&f.visible&&h.enabled&&f.series.length&&"colorAxis"!==f.coll&&!this.polar){l=p.tickLength,f.createGroups();var m=new y(f,0,"",!0),g=m.createLabel("x",h);if(m.destroy(),g&&X(h.reserveSpace,!G(p.crossing))&&(l=g.getBBox().height+h.distance+Math.max(p.offset||0,0)),l){null===g||void 0===g||g.destroy();break}}}}catch(_){d.e(_)}finally{d.f()}for(this.plotHeight=Math.max(this.plotHeight-l,0);(c||t||a>1)&&u<a;){var b,x=this.plotWidth,w=this.plotHeight,k=v(r);try{for(k.s();!(b=k.n()).done;){var S=b.value;0===u?S.setScale():(S.horiz&&c||!S.horiz&&t)&&S.setTickInterval(!0)}}catch(_){k.e(_)}finally{k.f()}0===u?this.getAxisMargins():this.getMargins(),c=x/this.plotWidth>(u?1:1.1),t=w/this.plotHeight>(u?1:1.05),u++}this.drawChartBox(),this.hasCartesianSeries?s(r):o&&o.length&&s(o),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}},{key:"addCredits",value:function(e){var t=this,n=V(!0,this.options.credits,e);n.enabled&&!this.credits&&(this.credits=this.renderer.text(n.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){n.href&&(O.location.href=n.href)})).attr({align:n.position.align,zIndex:8}),t.styledMode||this.credits.css(n.style),this.credits.add().align(n.position),this.credits.update=function(e){t.credits=t.credits.destroy(),t.addCredits(e)})}},{key:"destroy",value:function(){var e,t=this,n=t.axes,r=t.series,o=t.container,a=o&&o.parentNode;for(H(t,"destroy"),t.renderer.forExport?z(C,t):C[t.index]=void 0,i.chartCount--,t.renderTo.removeAttribute("data-highcharts-chart"),ee(t),e=n.length;e--;)n[e]=n[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=r.length;e--;)r[e]=r[e].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach((function(e){var n=t[e];n&&n.destroy&&(t[e]=n.destroy())})),o&&(o.innerHTML=g.emptyHTML,ee(o),a&&j(o)),Y(t,(function(e,n){delete t[n]}))}},{key:"firstRender",value:function(){var e,t=this,n=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes();var r=$(n.series)?n.series:[];n.series=[],r.forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSortedData(),H(t,"beforeRender"),t.render(),null!==(e=t.pointer)&&void 0!==e&&e.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}},{key:"onload",value:function(){this.callbacks.concat([this.callback]).forEach((function(e){e&&void 0!==this.index&&e.apply(this,[this])}),this),H(this,"load"),H(this,"render"),D(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}},{key:"warnIfA11yModuleNotLoaded",value:function(){var e=this.options,t=this.title;!e||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(t&&t.element.textContent||"").replace(/</g,"&lt;")}),e.accessibility&&!1===e.accessibility.enabled||W('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))}},{key:"addSeries",value:function(e,t,n){var r,o=this;return e&&(t=X(t,!0),H(o,"addSeries",{options:e},(function(){r=o.initSeries(e),o.isDirtyLegend=!0,o.linkSeries(),r.enabledDataSorting&&r.setData(e.data,!1),H(o,"afterAddSeries",{series:r}),t&&o.redraw(n)}))),r}},{key:"addAxis",value:function(e,t,n,r){return this.createAxis(t?"xAxis":"yAxis",{axis:e,redraw:n,animation:r})}},{key:"addColorAxis",value:function(e,t,n){return this.createAxis("colorAxis",{axis:e,redraw:t,animation:n})}},{key:"createAxis",value:function(e,n){var r=new t(this,n.axis,e);return X(n.redraw,!0)&&this.redraw(n.animation),r}},{key:"showLoading",value:function(e){var t=this,n=t.options,r=n.loading,o=function(){i&&N(i,{left:t.plotLeft+"px",top:t.plotTop+"px",width:t.plotWidth+"px",height:t.plotHeight+"px"})},i=t.loadingDiv,a=t.loadingSpan;i||(t.loadingDiv=i=M("div",{className:"highcharts-loading highcharts-loading-hidden"},null,t.container)),a||(t.loadingSpan=a=M("span",{className:"highcharts-loading-inner"},null,i),R(t,"redraw",o)),i.className="highcharts-loading",g.setElementHTML(a,X(e,n.lang.loading,"")),t.styledMode||(N(i,Z(r.style,{zIndex:10})),N(a,r.labelStyle),t.loadingShown||(N(i,{opacity:0,display:""}),b(i,{opacity:r.style.opacity||.5},{duration:r.showDuration||0}))),t.loadingShown=!0,o()}},{key:"hideLoading",value:function(){var e=this.options,t=this.loadingDiv;t&&(t.className="highcharts-loading highcharts-loading-hidden",this.styledMode||b(t,{opacity:0},{duration:e.loading.hideDuration||100,complete:function(){N(t,{display:"none"})}})),this.loadingShown=!1}},{key:"update",value:function(e,t,n,r){var o,i,a,s=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=e.isResponsiveOptions,u=[];H(s,"update",{options:e}),c||s.setResponsive(!1,!0),e=L(e,s.options),s.userOptions=V(s.userOptions,e);var f=e.chart;f&&(V(!0,s.options.chart,f),this.setZoomOptions(),"className"in f&&s.setClassName(f.className),("inverted"in f||"polar"in f||"type"in f)&&(s.propFromSeries(),o=!0),"alignTicks"in f&&(o=!0),"events"in f&&E(this,f),Y(f,(function(e,t){-1!==s.propsRequireUpdateSeries.indexOf("chart."+t)&&(i=!0),-1!==s.propsRequireDirtyBox.indexOf(t)&&(s.isDirtyBox=!0),-1===s.propsRequireReflow.indexOf(t)||(s.isDirtyBox=!0,c||(a=!0))})),!s.styledMode&&f.style&&s.renderer.setStyle(s.options.chart.style||{})),!s.styledMode&&e.colors&&(this.options.colors=e.colors),e.time&&(this.time===S&&(this.time=new d(e.time)),V(!0,s.options.time,e.time)),Y(e,(function(t,n){s[n]&&"function"==typeof s[n].update?s[n].update(t,!1):"function"==typeof s[l[n]]?s[l[n]](t):"colors"!==n&&-1===s.collectionsWithUpdate.indexOf(n)&&V(!0,s.options[n],e[n]),"chart"!==n&&-1!==s.propsRequireUpdateSeries.indexOf(n)&&(i=!0)})),this.collectionsWithUpdate.forEach((function(t){e[t]&&(te(e[t]).forEach((function(e,r){var o,i=D(e.id);i&&(o=s.get(e.id)),!o&&s[t]&&(o=s[t][X(e.index,r)])&&(i&&D(o.options.id)||o.options.isInternal)&&(o=void 0),o&&o.coll===t&&(o.update(e,!1),n&&(o.touched=!0)),!o&&n&&s.collectionsWithInit[t]&&(s.collectionsWithInit[t][0].apply(s,[e].concat(s.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)})),n&&s[t].forEach((function(e){e.touched||e.options.isInternal?delete e.touched:u.push(e)})))})),u.forEach((function(e){e.chart&&e.remove&&e.remove(!1)})),o&&s.axes.forEach((function(e){e.update({},!1)})),i&&s.getSeriesOrderByLinks().forEach((function(e){e.chart&&e.update({},!1)}),this);var p=f&&f.width,h=f&&(K(f.height)?Q(f.height,p||s.chartWidth):f.height);a||G(p)&&p!==s.chartWidth||G(h)&&h!==s.chartHeight?s.setSize(p,h,r):X(t,!0)&&s.redraw(r),H(s,"afterUpdate",{options:e,redraw:t,animation:r})}},{key:"setSubtitle",value:function(e,t){this.applyDescription("subtitle",e),this.layOutTitles(t)}},{key:"setCaption",value:function(e,t){this.applyDescription("caption",e),this.layOutTitles(t)}},{key:"showResetZoom",value:function(){var e=this,t=k.lang,n=e.zooming.resetButton,r=n.theme,o="chart"===n.relativeTo||"spacingBox"===n.relativeTo?null:"plotBox";function i(){e.zoomOut()}H(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(t.resetZoom,null,null,i,r).attr({align:n.position.align,title:t.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,o)})),H(this,"afterShowResetZoom")}},{key:"zoomOut",value:function(){var e=this;H(this,"selection",{resetSelection:!0},(function(){return e.transform({reset:!0,trigger:"zoom"})}))}},{key:"pan",value:function(e,t){var n=this,r="object"==typeof t?t:{enabled:t,type:"x"},o=r.type,i=o&&n[{x:"xAxis",xy:"axes",y:"yAxis"}[o]].filter((function(e){return e.options.panningEnabled&&!e.options.isInternal})),a=n.options.chart;null!==a&&void 0!==a&&a.panning&&(a.panning=r),H(this,"pan",{originalEvent:e},(function(){n.transform({axes:i,event:e,to:{x:e.chartX-(n.mouseDownX||0),y:e.chartY-(n.mouseDownY||0)},trigger:"pan"}),N(n.container,{cursor:"move"})}))}},{key:"transform",value:function(e){var t,n,r,o,i,a=this,s=e.axes,l=void 0===s?this.axes:s,c=e.event,u=e.from,d=void 0===u?{}:u,f=e.reset,p=e.selection,h=e.to,m=void 0===h?{}:h,g=e.trigger,y=this.inverted,b=!1,x=v((null!==(n=this.hoverPoints)&&void 0!==n&&n.forEach((function(e){return e.setState()})),l));try{for(x.s();!(i=x.n()).done;){var w,k,S,_,E=i.value,C=E.horiz,T=E.len,I=E.minPointOffset,B=void 0===I?0:I,O=E.options,P=E.reversed,R=C?"width":"height",A=C?"x":"y",M=X(m[R],E.len),N=X(d[R],E.len),L=10>Math.abs(M)?1:M/N,j=(d[A]||0)+N/2-E.pos,z=j-((null!==(w=m[A])&&void 0!==w?w:E.pos)+M/2-E.pos)/L,W=P&&!y||!P&&y?-1:1;if(f||!(j<0||j>E.len)){var F=E.toValue(z,!0)+(p||E.isOrdinal?0:B*W),U=E.toValue(z+T/L,!0)-(p||E.isOrdinal?0:B*W||0),$=E.allExtremes;if(F>U&&(F=(k=[U,F])[0],U=k[1]),1===L&&!f&&"yAxis"===E.coll&&!$){var q,K=v(E.series);try{for(K.s();!(q=K.n()).done;){var V,Y=q.value,J=Y.getExtremes(Y.getProcessedData(!0).yData,!0);null!==(V=$)&&void 0!==V||($={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),G(J.dataMin)&&G(J.dataMax)&&($.dataMin=Math.min(J.dataMin,$.dataMin),$.dataMax=Math.max(J.dataMax,$.dataMax))}}catch(pe){K.e(pe)}finally{K.f()}E.allExtremes=$}var Q=Z(E.getExtremes(),$||{}),ee=Q.dataMin,te=Q.dataMax,ne=Q.min,re=Q.max,oe=null!==ee&&void 0!==ee?ee:O.min,ie=null!==te&&void 0!==te?te:O.max,ae=U-F,se=E.categories?0:Math.min(ae,ie-oe),le=oe-se*(D(O.min)?0:O.minPadding),ce=ie+se*(D(O.max)?0:O.maxPadding),ue=E.allowZoomOutside||1===L||"zoom"!==g&&L>1,de=Math.min(null!==(S=O.min)&&void 0!==S?S:le,le,ue?ne:le),fe=Math.max(null!==(_=O.max)&&void 0!==_?_:ce,ce,ue?re:ce);(!E.isOrdinal||E.options.overscroll||1!==L||f)&&(F<de&&(F=de,L>=1&&(U=F+ae)),U>fe&&(U=fe,L>=1&&(F=U-ae)),(f||E.series.length&&(F!==ne||U!==re)&&F>=de&&U<=fe)&&(p?p[E.coll].push({axis:E,min:F,max:U}):(E.isPanning="zoom"!==g,E.isPanning&&(o=!0),E.setExtremes(f?void 0:F,f?void 0:U,!1,!1,{move:z,trigger:g,scale:L}),!f&&(F>de||U<fe)&&"mousewheel"!==g&&(r=!0)),b=!0),c&&(this[C?"mouseDownX":"mouseDownY"]=c[C?"chartX":"chartY"]))}}}catch(pe){x.e(pe)}finally{x.f()}return b&&(p?H(this,"selection",p,(function(){delete e.selection,e.trigger="zoom",a.transform(e)})):(!r||o||this.resetZoomButton?!r&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===g&&(null!==(t=this.options.chart.animation)&&void 0!==t?t:this.pointCount<100)))),b}}],[{key:"chart",value:function(t,n,r){return new e(t,n,r)}}]),e}();return Z(oe.prototype,{callbacks:[],collectionsWithInit:{xAxis:[oe.prototype.addAxis,[!0]],yAxis:[oe.prototype.addAxis,[!1]],series:[oe.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),oe})),n(t,"Extensions/ScrollablePlotArea.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r){var o=e.stop,i=t.composed,a=r.addEvent,s=r.createElement,l=r.css,c=r.defined,u=r.merge,d=r.pushUnique;function f(){var e,t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new g(this)),null===(e=t)||void 0===e||e.applyFixed()}function p(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}var g=function(){function e(t){var r,o,i;h(this,e);var c=t.options.chart,u=n.getRendererType(),d=c.scrollablePlotArea||{},f=this.moveFixedElements.bind(this),p={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(p.overflowX="auto"),t.scrollablePixelsY&&(p.overflowY="auto"),this.chart=t;var m=this.parentDiv=s("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),v=this.scrollingContainer=s("div",{className:"highcharts-scrolling"},p,m),g=this.innerContainer=s("div",{className:"highcharts-inner-container"},void 0,v),y=this.fixedDiv=s("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null===(r=c.style)||void 0===r?void 0:r.zIndex)||0)+2,top:0},void 0,!0),b=this.fixedRenderer=new u(y,t.chartWidth,t.chartHeight,c.style);this.mask=b.path().attr({fill:c.backgroundColor||"#fff","fill-opacity":null!==(o=d.opacity)&&void 0!==o?o:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),v.parentNode.insertBefore(y,v),l(t.renderTo,{overflow:"visible"}),a(t,"afterShowResetZoom",f),a(t,"afterApplyDrilldown",f),a(t,"afterLayOutTitles",f),a(v,"scroll",(function(){var e=t.pointer,n=t.hoverPoint;e&&(delete e.chartPosition,n&&(i=n),e.runPointActions(void 0,i,!0))})),g.appendChild(t.container)}return m(e,[{key:"applyFixed",value:function(){var e,t=this.chart,n=this.fixedRenderer,r=this.isDirty,i=this.scrollingContainer,a=t.axisOffset,s=t.chartWidth,u=t.chartHeight,d=t.container,f=t.plotHeight,p=t.plotLeft,h=t.plotTop,m=t.plotWidth,v=t.scrollablePixelsX,g=void 0===v?0:v,y=t.scrollablePixelsY,b=void 0===y?0:y,x=t.options.chart.scrollablePlotArea||{},w=x.scrollPositionX,k=void 0===w?0:w,S=x.scrollPositionY,_=void 0===S?0:S,E=s+g,C=u+b;n.setSize(s,u),(null===r||void 0===r||r)&&(this.isDirty=!1,this.moveFixedElements()),o(t.container),l(d,{width:"".concat(E,"px"),height:"".concat(C,"px")}),t.renderer.boxWrapper.attr({width:E,height:C,viewBox:[0,0,E,C].join(" ")}),null!==(e=t.chartBackground)&&void 0!==e&&e.attr({width:E,height:C}),l(i,{width:"".concat(s,"px"),height:"".concat(u,"px")}),c(r)||(i.scrollLeft=g*k,i.scrollTop=b*_);var T=h-a[0]-1,I=p-a[3]-1,B=h+f+a[2]+1,O=p+m+a[1]+1,P=p+m-g,R=h+f-b,A=[["M",0,0]];g?A=[["M",0,T],["L",p-1,T],["L",p-1,B],["L",0,B],["Z"],["M",P,T],["L",s,T],["L",s,B],["L",P,B],["Z"]]:b&&(A=[["M",I,0],["L",I,h-1],["L",O,h-1],["L",O,0],["Z"],["M",I,R],["L",I,u],["L",O,u],["L",O,R],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:A})}},{key:"moveFixedElements",value:function(){var t,n,r=this.chart,o=r.container,i=r.inverted,a=r.scrollablePixelsX,s=r.scrollablePixelsY,l=this.fixedRenderer,c=e.fixedSelectors,u=v((a&&!i?t=".highcharts-yaxis":a&&i||s&&!i?t=".highcharts-xaxis":s&&i&&(t=".highcharts-yaxis"),t&&c.push("".concat(t,":not(.highcharts-radial-axis)"),"".concat(t,"-labels:not(.highcharts-radial-axis-labels)")),c));try{for(u.s();!(n=u.n()).done;){var d=n.value;[].forEach.call(o.querySelectorAll(d),(function(e){(e.namespaceURI===l.SVG_NS?l.box:l.box.parentNode).appendChild(e),e.style.pointerEvents="auto"}))}}catch(f){u.e(f)}finally{u.f()}}}],[{key:"compose",value:function(e,t,n){var r=this;d(i,this.compose)&&(a(e,"afterInit",p),a(t,"afterSetChartSize",(function(e){return r.afterSetSize(e.target,e)})),a(t,"render",f),a(n,"show",p))}},{key:"afterSetSize",value:function(e,t){var n,r,o,i=e.options.chart.scrollablePlotArea||{},a=i.minWidth,s=i.minHeight,l=e.clipBox,d=e.plotBox,f=e.inverted;if(!e.renderer.forExport&&(a?(e.scrollablePixelsX=n=Math.max(0,a-e.chartWidth),n&&(e.scrollablePlotBox=u(e.plotBox),d.width=e.plotWidth+=n,l[f?"height":"width"]+=n,o=!0)):s&&(e.scrollablePixelsY=r=Math.max(0,s-e.chartHeight),c(r)&&(e.scrollablePlotBox=u(e.plotBox),d.height=e.plotHeight+=r,l[f?"width":"height"]+=r,o=!1)),c(o)&&!t.skipAxes)){var p,h=v(e.axes);try{for(h.s();!(p=h.n()).done;){var m=p.value;m.horiz===o&&(m.setAxisSize(),m.setAxisTranslation())}}catch(g){h.e(g)}finally{h.f()}}}}]),e}();return g.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],g})),n(t,"Core/Axis/Stacking/StackItem.js",[t["Core/Templating.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=e.format,o=t.series,i=n.destroyObjectProperties,a=n.fireEvent,s=n.isNumber,l=n.pick;return function(){function e(t,n,r,o,i){h(this,e);var a=t.chart.inverted,s=t.reversed;this.axis=t;var l=this.isNegative=!!r!=!!s;this.options=n=n||{},this.x=o,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=i,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:n.align||(a?l?"left":"right":"center"),verticalAlign:n.verticalAlign||(a?"middle":l?"bottom":"top"),y:n.y,x:n.x},this.textAlign=n.textAlign||(a?l?"right":"left":"center")}return m(e,[{key:"destroy",value:function(){i(this,this.axis)}},{key:"render",value:function(e){var t=this.axis.chart,n=this.options,o=n.format,i=o?r(o,this,t):n.formatter.call(this);if(this.label)this.label.attr({text:i,visibility:"hidden"});else{this.label=t.renderer.label(i,null,void 0,n.shape,void 0,void 0,n.useHTML,!1,"stack-labels");var s={r:n.borderRadius||0,text:i,padding:l(n.padding,5),visibility:"hidden"};t.styledMode||(s.fill=n.backgroundColor,s.stroke=n.borderColor,s["stroke-width"]=n.borderWidth,this.label.css(n.style||{})),this.label.attr(s),this.label.added||this.label.add(e)}this.label.labelrank=t.plotSizeY,a(this,"afterRender")}},{key:"setOffset",value:function(e,t,n,r,i,c){var u=this.alignOptions,d=this.axis,f=this.label,p=this.options,h=this.textAlign,m=d.chart,v=this.getStackBox({xOffset:e,width:t,boxBottom:n,boxTop:r,defaultX:i,xAxis:c}),g=u.verticalAlign;if(f&&v){var y,b=f.getBBox(void 0,0),x=f.padding,w="justify"===l(p.overflow,"justify");u.x=p.x||0,u.y=p.y||0;var k=this.adjustStackPosition({labelBox:b,verticalAlign:g,textAlign:h}),S=k.x,_=k.y;v.x-=S,v.y-=_,f.align(u,!1,v),(y=m.isInsidePlot(f.alignAttr.x+u.x+S,f.alignAttr.y+u.y+_))||(w=!1),w&&o.prototype.justifyDataLabel.call(d,f,u,f.alignAttr,b,v),f.attr({x:f.alignAttr.x,y:f.alignAttr.y,rotation:p.rotation,rotationOriginX:b.width*{left:0,center:.5,right:1}[p.textAlign||"center"],rotationOriginY:b.height/2}),l(!w&&p.crop,!0)&&(y=s(f.x)&&s(f.y)&&m.isInsidePlot(f.x-x+(f.width||0),f.y)&&m.isInsidePlot(f.x+x,f.y)),f[y?"show":"hide"]()}a(this,"afterSetOffset",{xOffset:e,width:t})}},{key:"adjustStackPosition",value:function(e){var t=e.labelBox,n=e.verticalAlign,r=e.textAlign,o={bottom:0,middle:1,top:2,right:1,center:0,left:-1},i=o[n],a=o[r];return{x:t.width/2+t.width/2*a,y:t.height/2*i}}},{key:"getStackBox",value:function(e){var t=this.axis,n=t.chart,r=e.boxTop,o=e.defaultX,i=e.xOffset,a=e.width,c=e.boxBottom,u=t.stacking.usePercentage?100:l(r,this.total,0),d=t.toPixels(u),f=e.xAxis||n.xAxis[0],p=l(o,f.translate(this.x))+i,h=Math.abs(d-t.toPixels(c||s(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),m=n.inverted,v=this.isNegative;return m?{x:(v?d:d-h)-n.plotLeft,y:f.height-p-a+f.top-n.plotTop,width:h,height:a}:{x:p+f.transB-n.plotLeft,y:(v?d-h:d)-n.plotTop,width:a,height:h}}}]),e}()})),n(t,"Core/Axis/Stacking/StackingAxis.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Axis/Axis.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o){var i,a=e.getDeferredAnimation,s=n.series.prototype,l=o.addEvent,c=o.correctFloat,u=o.defined,d=o.destroyObjectProperties,f=o.fireEvent,p=o.isArray,v=o.isNumber,g=o.objectEach,y=o.pick;function b(){var e=this.inverted;this.axes.forEach((function(e){e.stacking&&e.stacking.stacks&&e.hasVisibleSeries&&(e.stacking.oldStacks=e.stacking.stacks)})),this.series.forEach((function(t){var n=t.xAxis&&t.xAxis.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,y(t.options.stack,""),e?n.top:n.left,e?n.height:n.width].join(","))}))}function x(){var e=this.stacking;if(e){var t,n=e.stacks;g(n,(function(e,t){d(e),delete n[t]})),null===(t=e.stackTotalGroup)||void 0===t||t.destroy()}}function w(){this.stacking||(this.stacking=new T(this))}function k(e,t,n,r){return!u(e)||e.x!==t||r&&e.stackKey!==r?e={x:t,index:0,key:r,stackKey:r}:e.index++,e.key=[n,t,e.index].join(","),e}function S(){var e,t=this,n=t.yAxis,r=t.stackKey||"",o=n.stacking.stacks,i=t.processedXData,a=t.options.stacking,s=t[a+"Stacker"];s&&[r,"-"+r].forEach((function(n){for(var r,a,l,c=i.length;c--;){var u,d;r=i[c],e=t.getStackIndicator(e,r,t.index,n),(l=null===(d=a=null===(u=o[n])||void 0===u?void 0:u[r])||void 0===d?void 0:d.points[e.key||""])&&s.call(t,l,a,c)}}))}function _(e,t,n){var r=t.total?100/t.total:0;e[0]=c(e[0]*r),e[1]=c(e[1]*r),this.stackedYData[n]=e[1]}function E(e){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?s.setStackedPoints.call(this,e,"group"):e.stacking.resetStacks())}function C(e,t){var n,o,i,a,s,l,d,f,h,m=t||this.options.stacking;if(m&&this.reserveSpace()&&({group:"xAxis"}[m]||"yAxis")===e.coll){var v=this.processedXData,g=this.processedYData,b=[],x=g.length,w=this.options,k=w.threshold||0,S=w.startFromThreshold?k:0,_=w.stack,E=t?"".concat(this.type,",").concat(m):this.stackKey||"",C="-"+E,T=this.negStacks,I=e.stacking,B=I.stacks,O=I.oldStacks;for(I.stacksTouched+=1,d=0;d<x;d++){var P,R;f=v[d],h=g[d],l=(n=this.getStackIndicator(n,f,this.index)).key||"",B[s=(o=T&&h<(S?0:k))?C:E]||(B[s]={}),B[s][f]||(null!==(P=O[s])&&void 0!==P&&P[f]?(B[s][f]=O[s][f],B[s][f].total=null):B[s][f]=new r(e,e.options.stackLabels,!!o,f,_)),i=B[s][f],null!==h?(i.points[l]=i.points[this.index]=[y(i.cumulative,S)],u(i.cumulative)||(i.base=l),i.touched=I.stacksTouched,n.index>0&&!1===this.singleStacks&&(i.points[l][0]=i.points[this.index+","+f+",0"][0])):(delete i.points[l],delete i.points[this.index]);var A=i.total||0;"percent"===m?(a=o?E:C,A=T&&null!==(R=B[a])&&void 0!==R&&R[f]?(a=B[a][f]).total=Math.max(a.total||0,A)+Math.abs(h)||0:c(A+(Math.abs(h)||0))):"group"===m?(p(h)&&(h=h[0]),null!==h&&A++):A=c(A+(h||0)),i.cumulative="group"===m?(A||1)-1:c(y(i.cumulative,S)+(h||0)),i.total=A,null!==h&&(i.points[l].push(i.cumulative),b[d]=i.cumulative,i.hasValidPoints=!0)}"percent"===m&&(I.usePercentage=!0),"group"!==m&&(this.stackedYData=b),I.oldStacks={}}}var T=function(){function e(t){h(this,e),this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return m(e,[{key:"buildStacks",value:function(){var e,t,n=this.axis,r=n.series,o="xAxis"===n.coll,i=n.options.reversedStacks,a=r.length;for(this.resetStacks(),this.usePercentage=!1,t=a;t--;)e=r[i?t:a-t-1],o&&e.setGroupedPoints(n),e.setStackedPoints(n);if(!o)for(t=0;t<a;t++)r[t].modifyStacks();f(n,"afterBuildStacks")}},{key:"cleanStacks",value:function(){this.oldStacks&&(this.stacks=this.oldStacks,g(this.stacks,(function(e){g(e,(function(e){e.cumulative=e.total}))})))}},{key:"resetStacks",value:function(){var e=this;g(this.stacks,(function(t){g(t,(function(n,r){v(n.touched)&&n.touched<e.stacksTouched?(n.destroy(),delete t[r]):(n.total=null,n.cumulative=null)}))}))}},{key:"renderStackTotals",value:function(){var e,t=this.axis,n=t.chart,r=n.renderer,o=this.stacks,i=a(n,(null===(e=t.options.stackLabels)||void 0===e?void 0:e.animation)||!1),s=this.stackTotalGroup=this.stackTotalGroup||r.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(n.plotLeft,n.plotTop),g(o,(function(e){g(e,(function(e){e.render(s)}))})),s.animate({opacity:1},i)}}]),e}();return(i||(i={})).compose=function(e,t,n){var r=t.prototype,o=n.prototype;r.getStacks||(l(e,"init",w),l(e,"destroy",x),r.getStacks=b,o.getStackIndicator=k,o.modifyStacks=S,o.percentStacker=_,o.setGroupedPoints=E,o.setStackedPoints=C)},i})),n(t,"Series/Line/LineSeries.js",[t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=n.defined,o=n.merge,i=n.isObject,a=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"drawGraph",value:function(){var e=this,t=this.options,n=(this.gappedPath||this.getGraphPath).call(this),r=this.chart.styledMode;[this].concat(l(this.zones)).forEach((function(a,s){var l,c=a.graph,u=c?"animate":"attr",d=a.dashStyle||t.dashStyle;c?(c.endX=e.preventGraphAnimation?null:n.xMap,c.animate({d:n})):n.length&&(a.graph=c=e.chart.renderer.path(n).addClass("highcharts-graph"+(s?" highcharts-zone-graph-".concat(s-1," "):" ")+(s&&a.className||"")).attr({zIndex:1}).add(e.group)),c&&!r&&(l={stroke:!s&&t.lineColor||a.color||e.color||"#cccccc","stroke-width":t.lineWidth||0,fill:e.fillGraph&&e.color||"none"},d?l.dashstyle=d:"square"!==t.linecap&&(l["stroke-linecap"]=l["stroke-linejoin"]="round"),c[u](l).shadow(s<2&&t.shadow&&o({filterUnits:"userSpaceOnUse"},i(t.shadow)?t.shadow:{}))),c&&(c.startX=n.xMap,c.isArea=n.isArea)}))}},{key:"getGraphPath",value:function(e,t,n){var o,i=this,a=i.options,s=[],l=[],c=a.step,u=(e=e||i.points).reversed;return u&&e.reverse(),(c={right:1,center:2}[c]||c&&3)&&u&&(c=4-c),(e=this.getValidPoints(e,!1,!(a.connectNulls&&!t&&!n))).forEach((function(u,d){var f,p=u.plotX,h=u.plotY,m=e[d-1],v=u.isNull||"number"!=typeof h;(u.leftCliff||m&&m.rightCliff)&&!n&&(o=!0),v&&!r(t)&&d>0?o=!a.connectNulls:v&&!t?o=!0:(0===d||o?f=[["M",u.plotX,u.plotY]]:i.getPointSpline?f=[i.getPointSpline(e,u,d)]:c?(f=1===c?[["L",m.plotX,h]]:2===c?[["L",(m.plotX+p)/2,m.plotY],["L",(m.plotX+p)/2,h]]:[["L",p,m.plotY]]).push(["L",p,h]):f=[["L",p,h]],l.push(u.x),c&&(l.push(u.x),2===c&&l.push(u.x)),s.push.apply(s,f),o=!1)})),s.xMap=l,i.graphPath=s,s}}]),n}(e);return a.defaultOptions=o(e.defaultOptions,{legendSymbol:"lineMarker"}),t.registerSeriesType("line",a),a})),n(t,"Series/Area/AreaSeriesDefaults.js",[],(function(){return{threshold:0,legendSymbol:"areaMarker"}})),n(t,"Series/Area/AreaSeries.js",[t["Series/Area/AreaSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=t.seriesTypes.line,o=n.extend,i=n.merge,a=n.objectEach,s=n.pick,p=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"drawGraph",value:function(){var e=this;this.areaPath=[],c(u(n.prototype),"drawGraph",this).apply(this);var t=this.areaPath,r=this.options;[this].concat(l(this.zones)).forEach((function(n,o){var i,a={},s=n.fillColor||r.fillColor,l=n.area,c=l?"animate":"attr";l?(l.endX=e.preventGraphAnimation?null:t.xMap,l.animate({d:t})):(a.zIndex=0,(l=n.area=e.chart.renderer.path(t).addClass("highcharts-area"+(o?" highcharts-zone-area-".concat(o-1," "):" ")+(o&&n.className||"")).add(e.group)).isArea=!0),e.chart.styledMode||(a.fill=s||n.color||e.color,a["fill-opacity"]=s?1:null!==(i=r.fillOpacity)&&void 0!==i?i:.75,l.css({pointerEvents:e.stickyTracking?"none":"auto"})),l[c](a),l.startX=t.xMap,l.shiftUnit=r.step?2:1}))}},{key:"getGraphPath",value:function(e){var t,n,o,i=r.prototype.getGraphPath,a=this.options,l=a.stacking,c=this.yAxis,u=[],d=[],f=this.index,p=c.stacking.stacks[this.stackKey],h=a.threshold,m=Math.round(c.getThreshold(a.threshold)),v=s(a.connectNulls,"percent"===l),g=function(n,r,o){var i,a,s=e[n],v=l&&p[s.x].points[f],g=s[o+"Null"]||0,y=s[o+"Cliff"]||0,b=!0;y||g?(i=(g?v[0]:v[1])+y,a=v[0]+y,b=!!g):!l&&e[r]&&e[r].isNull&&(i=a=h),void 0!==i&&(d.push({plotX:t,plotY:null===i?m:c.getThreshold(i),isNull:b,isCliff:!0}),u.push({plotX:t,plotY:null===a?m:c.getThreshold(a),doCurve:!1}))};e=e||this.points,l&&(e=this.getStackPoints(e));for(var y=0,b=e.length;y<b;++y)l||(e[y].leftCliff=e[y].rightCliff=e[y].leftNull=e[y].rightNull=void 0),n=e[y].isNull,t=s(e[y].rectPlotX,e[y].plotX),o=l?s(e[y].yBottom,m):m,n&&!v||(v||g(y,y-1,"left"),n&&!l&&v||(d.push(e[y]),u.push({x:y,plotX:t,plotY:o})),v||g(y,y+1,"right"));var x=i.call(this,d,!0,!0);u.reversed=!0;var w=i.call(this,u,!0,!0),k=w[0];k&&"M"===k[0]&&(w[0]=["L",k[1],k[2]]);var S=x.concat(w);S.length&&S.push(["Z"]);var _=i.call(this,d,!1,v);return this.chart.series.length>1&&l&&d.some((function(e){return e.isCliff}))&&(S.hasStackedCliffs=_.hasStackedCliffs=!0),S.xMap=x.xMap,this.areaPath=S,_}},{key:"getStackPoints",value:function(e){var t=this,n=[],r=[],o=this.xAxis,i=this.yAxis,l=i.stacking.stacks[this.stackKey],c={},u=i.series,d=u.length,f=i.options.reversedStacks?1:-1,p=u.indexOf(t);if(e=e||this.points,this.options.stacking){for(var h=0;h<e.length;h++)e[h].leftNull=e[h].rightNull=void 0,c[e[h].x]=e[h];a(l,(function(e,t){null!==e.total&&r.push(t)})),r.sort((function(e,t){return e-t}));var m=u.map((function(e){return e.visible}));r.forEach((function(e,a){var h,v,g=0;if(c[e]&&!c[e].isNull)n.push(c[e]),[-1,1].forEach((function(n){var o=1===n?"rightNull":"leftNull",i=l[r[a+n]],s=0;if(i)for(var g=p;g>=0&&g<d;){var y=u[g].index;!(h=i.points[y])&&(y===t.index?c[e][o]=!0:m[g]&&(v=l[e].points[y])&&(s-=v[1]-v[0])),g+=f}c[e][1===n?"rightCliff":"leftCliff"]=s}));else{for(var y=p;y>=0&&y<d;){var b=u[y].index;if(h=l[e].points[b]){g=h[1];break}y+=f}g=s(g,0),g=i.translate(g,0,1,0,1),n.push({isNull:!0,plotX:o.translate(e,0,0,0,1),x:e,plotY:g,yBottom:g})}}))}return n}}]),n}(r);return p.defaultOptions=i(r.defaultOptions,e),o(p.prototype,{singleStacks:!1}),t.registerSeriesType("area",p),p})),n(t,"Series/Spline/SplineSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t){var n=e.seriesTypes.line,r=t.merge,o=t.pick,i=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"getPointSpline",value:function(e,t,n){var r,i,a,s,l=t.plotX||0,c=t.plotY||0,u=e[n-1],d=e[n+1];function f(e){return e&&!e.isNull&&!1!==e.doCurve&&!t.isCliff}if(f(u)&&f(d)){var p=u.plotX||0,h=u.plotY||0,m=d.plotX||0,v=d.plotY||0,g=0;i=(1.5*c+h)/2.5,s=(1.5*c+v)/2.5,(a=(1.5*l+m)/2.5)!==(r=(1.5*l+p)/2.5)&&(g=(s-i)*(a-l)/(a-r)+c-s),s+=g,(i+=g)>h&&i>c?s=2*c-(i=Math.max(h,c)):i<h&&i<c&&(s=2*c-(i=Math.min(h,c))),s>v&&s>c?i=2*c-(s=Math.max(v,c)):s<v&&s<c&&(i=2*c-(s=Math.min(v,c))),t.rightContX=a,t.rightContY=s,t.controlPoints={low:[r,i],high:[a,s]}}var y=["C",o(u.rightContX,u.plotX,0),o(u.rightContY,u.plotY,0),o(r,l,0),o(i,c,0),l,c];return u.rightContX=u.rightContY=void 0,y}}]),n}(n);return i.defaultOptions=r(n.defaultOptions),e.registerSeriesType("spline",i),i})),n(t,"Series/AreaSpline/AreaSplineSeries.js",[t["Series/Spline/SplineSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=t.seriesTypes,o=r.area,i=r.area.prototype,a=n.extend,s=n.merge,l=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n)}(e);return l.defaultOptions=s(e.defaultOptions,o.defaultOptions),a(l.prototype,{getGraphPath:i.getGraphPath,getStackPoints:i.getStackPoints,drawGraph:i.drawGraph}),t.registerSeriesType("areaspline",l),l})),n(t,"Series/Column/ColumnSeriesDefaults.js",[],(function(){return{borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}})),n(t,"Series/Column/ColumnSeries.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Series/Column/ColumnSeriesDefaults.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o,i,a){var s=e.animObject,l=t.parse,p=r.noop,v=a.clamp,g=a.crisp,y=a.defined,b=a.extend,x=a.fireEvent,w=a.isArray,k=a.isNumber,S=a.merge,_=a.pick,E=a.objectEach,C=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"animate",value:function(e){var t,n,r=this,o=this.yAxis,i=o.pos,a=o.reversed,l=r.options,c=this.chart,u=c.clipOffset,d=c.inverted,f={},p=d?"translateX":"translateY";e&&u?(f.scaleY=.001,n=v(o.toPixels(l.threshold),i,i+o.len),d?(n+=a?-Math.floor(u[0]):Math.ceil(u[2]),f.translateX=n-o.len):(n+=a?Math.ceil(u[0]):-Math.floor(u[2]),f.translateY=n),r.clipBox&&r.setClip(),r.group.attr(f)):(t=Number(r.group.attr(p)),r.group.animate({scaleY:1},b(s(r.options.animation),{step:function(e,n){r.group&&(f[p]=t+n.pos*(i-t),r.group.attr(f))}})))}},{key:"init",value:function(e,t){c(u(n.prototype),"init",this).apply(this,arguments);var r=this;(e=r.chart).hasRendered&&e.series.forEach((function(e){e.type===r.type&&(e.isDirty=!0)}))}},{key:"getColumnMetrics",value:function(){var e,t,n,r=this,o=r.options,i=r.xAxis,a=r.yAxis,s=i.options.reversedStacks,l=i.reversed&&!s||!i.reversed&&s,c={},u=0;!1===o.grouping?u=1:r.chart.series.forEach((function(e){var t,o=e.yAxis,i=e.options;e.type===r.type&&e.reserveSpace()&&a.len===o.len&&a.pos===o.pos&&(i.stacking&&"group"!==i.stacking?(void 0===c[n=e.stackKey]&&(c[n]=u++),t=c[n]):!1!==i.grouping&&(t=u++),e.columnIndex=t)}));var d=Math.min(Math.abs(i.transA)*(!(null!==(e=i.brokenAxis)&&void 0!==e&&e.hasBreaks)&&(null===(t=i.ordinal)||void 0===t?void 0:t.slope)||o.pointRange||i.closestPointRange||i.tickInterval||1),i.len),f=d*o.groupPadding,p=(d-2*f)/(u||1),h=Math.min(o.maxPointWidth||i.len,_(o.pointWidth,p*(1-2*o.pointPadding))),m=(r.columnIndex||0)+(l?1:0);return r.columnMetrics={width:h,offset:(p-h)/2+(f+m*p-d/2)*(l?-1:1),paddedWidth:p,columnCount:u},r.columnMetrics}},{key:"crispCol",value:function(e,t,n,r){var o=this.borderWidth,i=this.chart.inverted;return r=g(t+r,o,i)-(t=g(t,o,i)),this.options.crisp&&(n=g(e+n,o)-(e=g(e,o))),{x:e,y:t,width:n,height:r}}},{key:"adjustForMissingColumns",value:function(e,t,n,r){var o=this;if(!n.isNull&&r.columnCount>1){var i,a=this.xAxis.series.filter((function(e){return e.visible})).map((function(e){return e.index})),s=0,l=0;E(null===(i=this.xAxis.stacking)||void 0===i?void 0:i.stacks,(function(e){if("number"==typeof n.x){var t=e[n.x.toString()];if(t&&w(t.points[o.index])){var r=Object.keys(t.points).filter((function(e){return!e.match(",")&&t.points[e]&&t.points[e].length>1})).map(parseFloat).filter((function(e){return-1!==a.indexOf(e)})).sort((function(e,t){return t-e}));s=r.indexOf(o.index),l=r.length}}})),s=this.xAxis.reversed?l-1-s:s;var c=(l-1)*r.paddedWidth+t;e=(n.plotX||0)+c/2-t-s*r.paddedWidth}return e}},{key:"translate",value:function(){var e=this,t=e.chart,n=e.options,r=e.dense=e.closestPointRange*e.xAxis.transA<2,i=e.borderWidth=_(n.borderWidth,r?0:1),a=e.xAxis,s=e.yAxis,l=n.threshold,c=_(n.minPointLength,5),u=e.getColumnMetrics(),d=u.width,f=e.pointXOffset=u.offset,p=e.dataMin,h=e.dataMax,m=e.translatedThreshold=s.getThreshold(l),g=e.barW=Math.max(d,1+2*i);n.pointPadding&&(g=Math.ceil(g)),o.prototype.translate.apply(e),e.points.forEach((function(r){var o,i=_(r.yBottom,m),b=999+Math.abs(i),x=r.plotX||0,w=v(r.plotY,-b,s.len+b),S=Math.min(w,i),E=Math.max(w,i)-S,C=d,T=x+f,I=g;c&&Math.abs(E)<c&&(E=c,o=!s.reversed&&!r.negative||s.reversed&&r.negative,k(l)&&k(h)&&r.y===l&&h<=l&&(s.min||0)<l&&(p!==h||(s.max||0)<=l)&&(o=!o,r.negative=!r.negative),S=Math.abs(S-m)>c?i-c:m-(o?c:0)),y(r.options.pointWidth)&&(T-=Math.round(((C=I=Math.ceil(r.options.pointWidth))-d)/2)),n.centerInCategory&&!n.stacking&&(T=e.adjustForMissingColumns(T,C,r,u)),r.barX=T,r.pointWidth=C,r.tooltipPos=t.inverted?[v(s.len+s.pos-t.plotLeft-w,s.pos-t.plotLeft,s.len+s.pos-t.plotLeft),a.len+a.pos-t.plotTop-T-I/2,E]:[a.left-t.plotLeft+T+I/2,v(w+s.pos-t.plotTop,s.pos-t.plotTop,s.len+s.pos-t.plotTop),E],r.shapeType=e.pointClass.prototype.shapeType||"roundedRect",r.shapeArgs=e.crispCol(T,r.isNull?m:S,I,r.isNull?0:E)})),x(this,"afterColumnTranslate")}},{key:"drawGraph",value:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}},{key:"pointAttribs",value:function(e,t){var n,r,o,i=this.options,a=this.pointAttrToOptions||{},s=a.stroke||"borderColor",c=a["stroke-width"]||"borderWidth",u=e&&e.color||this.color,d=e&&e[s]||i[s]||u,f=e&&e.options.dashStyle||i.dashStyle,p=e&&e[c]||i[c]||this[c]||0,h=_(e&&e.opacity,i.opacity,1);e&&this.zones.length&&(r=e.getZone(),u=e.options.color||r&&(r.color||e.nonZonedColor)||this.color,r&&(d=r.borderColor||d,f=r.dashStyle||f,p=r.borderWidth||p)),t&&e&&(o=(n=S(i.states[t],e.options.states&&e.options.states[t]||{})).brightness,u=n.color||void 0!==o&&l(u).brighten(n.brightness).get()||u,d=n[s]||d,p=n[c]||p,f=n.dashStyle||f,h=_(n.opacity,h));var m={fill:u,stroke:d,"stroke-width":p,opacity:h};return f&&(m.dashstyle=f),m}},{key:"drawPoints",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,n=this,r=this.chart,o=n.options,i=r.renderer,a=o.animationLimit||250;t.forEach((function(t){var s=t.plotY,l=t.graphic,c=!!l,u=l&&r.pointCount<a?"animate":"attr";k(s)&&null!==t.y?(e=t.shapeArgs,l&&t.hasNewShapeType()&&(l=l.destroy()),n.enabledDataSorting&&(t.startXPos=n.xAxis.reversed?-(e&&e.width||0):n.xAxis.width),!l&&(t.graphic=l=i[t.shapeType](e).add(t.group||n.group),l&&n.enabledDataSorting&&r.hasRendered&&r.pointCount<a&&(l.attr({x:t.startXPos}),c=!0,u="animate")),l&&c&&l[u](S(e)),r.styledMode||l[u](n.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&o.shadow),l&&(l.addClass(t.getClassName(),!0),l.attr({visibility:t.visible?"inherit":"hidden"}))):l&&(t.graphic=l.destroy())}))}},{key:"drawTracker",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,n=this,r=n.chart,o=r.pointer,i=function(e){var t=null===o||void 0===o?void 0:o.getPointFromEvent(e);o&&t&&n.options.enableMouseTracking&&(o.isDirectTouch=!0,t.onMouseOver(e))};t.forEach((function(t){e=w(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach((function(e){(e.div||e.element).point=t}))})),n._hasTracking||(n.trackerGroups.forEach((function(e){n[e]&&(n[e].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",(function(e){null===o||void 0===o||o.onTrackerMouseOut(e)})).on("touchstart",i),!r.styledMode&&n.options.cursor&&n[e].css({cursor:n.options.cursor}))})),n._hasTracking=!0),x(this,"afterDrawTracker")}},{key:"remove",value:function(){var e=this,t=e.chart;t.hasRendered&&t.series.forEach((function(t){t.type===e.type&&(t.isDirty=!0)})),o.prototype.remove.apply(e,arguments)}}]),n}(o);return C.defaultOptions=S(o.defaultOptions,n),b(C.prototype,{directTouch:!0,getSymbol:p,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),i.registerSeriesType("column",C),C})),n(t,"Core/Series/DataLabel.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],(function(e,t,n){var r,o=e.getDeferredAnimation,i=t.format,a=n.defined,s=n.extend,l=n.fireEvent,c=n.isArray,u=n.isString,d=n.merge,f=n.objectEach,p=n.pick,h=n.pInt,m=n.splat;return function(e){function t(){return x(this).some((function(e){return null===e||void 0===e?void 0:e.enabled}))}function n(e,t,n,r,o){var i=this.chart,l=this.enabledDataSorting,c=this.isCartesian&&i.inverted,u=e.plotX,f=e.plotY,h=n.rotation||0,m=a(u)&&a(f)&&i.isInsidePlot(u,Math.round(f),{inverted:c,paneCoordinates:!0,series:this}),v=0===h&&"justify"===p(n.overflow,l?"none":"justify"),g=this.visible&&!1!==e.visible&&a(u)&&(e.series.forceDL||l&&!v||m||p(n.inside,!!this.options.stacking)&&r&&i.isInsidePlot(u,c?r.x+1:r.y+r.height-1,{inverted:c,paneCoordinates:!0,series:this})),y=e.pos();if(g&&y){var b,x,w=t.getBBox(),k=t.getBBox(void 0,0),S={right:1,center:.5}[n.align||0]||0,_={bottom:1,middle:.5}[n.verticalAlign||0]||0;if(r=s({x:y[0],y:Math.round(y[1]),width:0,height:0},r||{}),"plotEdges"===n.alignTo&&this.isCartesian&&(r[c?"x":"y"]=0,r[c?"width":"height"]=(null===(b=this.yAxis)||void 0===b?void 0:b.len)||0),s(n,{width:w.width,height:w.height}),x=r,l&&this.xAxis&&!v&&this.setDataLabelStartPos(e,t,o,m,x),t.align(d(n,{width:k.width,height:k.height}),!1,r,!1),t.alignAttr.x+=S*(k.width-w.width),t.alignAttr.y+=_*(k.height-w.height),t[t.placed?"animate":"attr"]({x:t.alignAttr.x+(w.width-k.width)/2,y:t.alignAttr.y+(w.height-k.height)/2,rotationOriginX:(t.width||0)/2,rotationOriginY:(t.height||0)/2}),v&&r.height>=0)this.justifyDataLabel(t,n,t.alignAttr,w,r,o);else if(p(n.crop,!0)){var E=t.alignAttr,C=E.x,T=E.y;g=i.isInsidePlot(C,T,{paneCoordinates:!0,series:this})&&i.isInsidePlot(C+w.width-1,T+w.height-1,{paneCoordinates:!0,series:this})}n.shape&&!h&&t[o?"attr":"animate"]({anchorX:y[0],anchorY:y[1]})}o&&l&&(t.placed=!1),g||l&&!v?(t.show(),t.placed=!0):(t.hide(),t.placed=!1)}function r(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function v(e){var t=this.hasRendered||0,n=this.initDataLabelsGroup().attr({opacity:+t});return!t&&n&&(this.visible&&n.show(),this.options.animation?n.animate({opacity:1},e):n.attr({opacity:1})),n}function g(e){var t,n;e=e||this.points;var r=this,s=r.chart,c=r.options,d=s.renderer,v=s.options.chart,g=v.backgroundColor,y=v.plotBackgroundColor,w=d.getContrast(u(y)&&y||u(g)&&g||"#000000"),k=x(r),S=k[0],_=S.animation,E=S.defer?o(s,_,r):{defer:0,duration:0};l(this,"drawDataLabels"),null!==(t=r.hasDataLabels)&&void 0!==t&&t.call(r)&&(n=this.initDataLabels(E),e.forEach((function(e){var t,o=e.dataLabels||[];m(b(k,e.dlOptions||(null===(t=e.options)||void 0===t?void 0:t.dataLabels))).forEach((function(t,m){var v,g,y,b,x,k=t.enabled&&(e.visible||e.dataLabelOnHidden)&&(!e.isNull||e.dataLabelOnNull)&&function(e,t){var n=t.filter;if(n){var r=n.operator,o=e[n.property],i=n.value;return">"===r&&o>i||"<"===r&&o<i||">="===r&&o>=i||"<="===r&&o<=i||"=="===r&&o==i||"==="===r&&o===i||"!="===r&&o!=i||"!=="===r&&o!==i}return!0}(e,t),S=t.backgroundColor,_=t.borderColor,E=t.distance,C=t.style,T=void 0===C?{}:C,I={},B=o[m],O=!B;k&&(g=p(t[e.formatPrefix+"Format"],t.format),v=e.getLabelConfig(),y=a(g)?i(g,v,s):(t[e.formatPrefix+"Formatter"]||t.formatter).call(v,t),b=t.rotation,!s.styledMode&&(T.color=p(t.color,T.color,u(r.color)?r.color:void 0,"#000000"),"contrast"===T.color?("none"!==S&&(x=S),e.contrastColor=d.getContrast("auto"!==x&&x||e.color||r.color),T.color=x||!a(E)&&t.inside||0>h(E||0)||c.stacking?e.contrastColor:w):delete e.contrastColor,c.cursor&&(T.cursor=c.cursor)),I={r:t.borderRadius||0,rotation:b,padding:t.padding,zIndex:1},s.styledMode||(I.fill="auto"===S?e.color:S,I.stroke="auto"===_?e.color:_,I["stroke-width"]=t.borderWidth),f(I,(function(e,t){void 0===e&&delete I[t]}))),!B||k&&a(y)&&!!B.div==!!t.useHTML&&(B.rotation&&t.rotation||B.rotation===t.rotation)||(B=void 0,O=!0),k&&a(y)&&(B?I.text=y:(B=d.label(y,0,0,t.shape,void 0,void 0,t.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":"")),B&&(B.options=t,B.attr(I),s.styledMode?T.width&&B.css({width:T.width,textOverflow:T.textOverflow}):B.css(T).shadow(t.shadow),l(B,"beforeAddingDataLabel",{labelOptions:t,point:e}),B.added||B.add(n),r.alignDataLabel(e,B,t,void 0,O),B.isActive=!0,o[m]&&o[m]!==B&&o[m].destroy(),o[m]=B))}));for(var v=o.length;v--;){var g;o[v]&&o[v].isActive?o[v].isActive=!1:(null!==(g=o[v])&&void 0!==g&&g.destroy(),o.splice(v,1))}e.dataLabel=o[0],e.dataLabels=o}))),l(this,"afterDrawDataLabels")}function y(e,t,n,r,o,i){var a,s,l=this.chart,c=t.align,u=t.verticalAlign,d=e.box?0:e.padding||0,f=l.inverted?this.yAxis:this.xAxis,p=f?f.left-l.plotLeft:0,h=l.inverted?this.xAxis:this.yAxis,m=h?h.top-l.plotTop:0,v=t.x,g=void 0===v?0:v,y=t.y,b=void 0===y?0:y;return(a=(n.x||0)+d+p)<0&&("right"===c&&g>=0?(t.align="left",t.inside=!0):g-=a,s=!0),(a=(n.x||0)+r.width-d+p)>l.plotWidth&&("left"===c&&g<=0?(t.align="right",t.inside=!0):g+=l.plotWidth-a,s=!0),(a=n.y+d+m)<0&&("bottom"===u&&b>=0?(t.verticalAlign="top",t.inside=!0):b-=a,s=!0),(a=(n.y||0)+r.height-d+m)>l.plotHeight&&("top"===u&&b<=0?(t.verticalAlign="bottom",t.inside=!0):b+=l.plotHeight-a,s=!0),s&&(t.x=g,t.y=b,e.placed=!i,e.align(t,void 0,o)),s}function b(e,t){var n,r=[];if(c(e)&&!c(t))r=e.map((function(e){return d(e,t)}));else if(c(t)&&!c(e))r=t.map((function(t){return d(e,t)}));else if(c(e)||c(t)){if(c(e)&&c(t))for(n=Math.max(e.length,t.length);n--;)r[n]=d(e[n],t[n])}else r=d(e,t);return r}function x(e){var t,n,r=e.chart.options.plotOptions;return m(b(b(null===r||void 0===r||null===(t=r.series)||void 0===t?void 0:t.dataLabels,null===r||void 0===r||null===(n=r[e.type])||void 0===n?void 0:n.dataLabels),e.options.dataLabels))}function w(e,t,n,r,o){var i=this.chart,a=i.inverted,s=this.xAxis,l=s.reversed,c=((a?t.height:t.width)||0)/2,u=e.pointWidth,d=u?u/2:0;t.startXPos=a?o.x:l?-c-d:s.width-c+d,t.startYPos=a?l?this.yAxis.height-c+d:-c-d:o.y,r?"hidden"===t.visibility&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0},void 0,t.hide),i.hasRendered&&(n&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}e.compose=function(e){var o=e.prototype;o.initDataLabels||(o.initDataLabels=v,o.initDataLabelsGroup=r,o.alignDataLabel=n,o.drawDataLabels=g,o.justifyDataLabel=y,o.setDataLabelStartPos=w,o.hasDataLabels=t)}}(r||(r={})),r})),n(t,"Series/Column/ColumnDataLabel.js",[t["Core/Series/DataLabel.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r){var o,i=t.composed,a=n.series,s=r.merge,l=r.pick,c=r.pushUnique;return function(t){function n(e,t,n,r,o){var i=this.chart.inverted,c=e.series,u=(c.xAxis?c.xAxis.len:this.chart.plotSizeX)||0,d=(c.yAxis?c.yAxis.len:this.chart.plotSizeY)||0,f=e.dlBox||e.shapeArgs,p=l(e.below,e.plotY>l(this.translatedThreshold,d)),h=l(n.inside,!!this.options.stacking);if(f){if(r=s(f),"allow"!==n.overflow||!1!==n.crop){r.y<0&&(r.height+=r.y,r.y=0);var m=r.y+r.height-d;m>0&&m<r.height-1&&(r.height-=m)}i&&(r={x:d-r.y-r.height,y:u-r.x-r.width,width:r.height,height:r.width}),h||(i?(r.x+=p?0:r.width,r.width=0):(r.y+=p?r.height:0,r.height=0))}n.align=l(n.align,!i||h?"center":p?"right":"left"),n.verticalAlign=l(n.verticalAlign,i||h?"middle":p?"top":"bottom"),a.prototype.alignDataLabel.call(this,e,t,n,r,o),n.inside&&e.contrastColor&&t.css({color:e.contrastColor})}t.compose=function(t){e.compose(a),c(i,"ColumnDataLabel")&&(t.prototype.alignDataLabel=n)}}(o||(o={})),o})),n(t,"Series/Bar/BarSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=n.extend,o=n.merge,i=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n)}(e);return i.defaultOptions=o(e.defaultOptions,{}),r(i.prototype,{inverted:!0}),t.registerSeriesType("bar",i),i})),n(t,"Series/Scatter/ScatterSeriesDefaults.js",[],(function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}})),n(t,"Series/Scatter/ScatterSeries.js",[t["Series/Scatter/ScatterSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=t.seriesTypes,o=r.column,i=r.line,a=n.addEvent,s=n.extend,l=n.merge,p=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"applyJitter",value:function(){var e=this,t=this.options.jitter,n=this.points.length;t&&this.points.forEach((function(r,o){["x","y"].forEach((function(i,a){if(t[i]&&!r.isNull){var s="plot".concat(i.toUpperCase()),l=e["".concat(i,"Axis")],c=t[i]*l.transA;if(l&&!l.logarithmic){var u=Math.max(0,(r[s]||0)-c),d=Math.min(l.len,(r[s]||0)+c);r[s]=u+(d-u)*function(e){var t=1e4*Math.sin(e);return t-Math.floor(t)}(o+a*n),"x"===i&&(r.clientX=r.plotX)}}}))}))}},{key:"drawGraph",value:function(){this.options.lineWidth?c(u(n.prototype),"drawGraph",this).call(this):this.graph&&(this.graph=this.graph.destroy())}}]),n}(i);return p.defaultOptions=l(i.defaultOptions,e),s(p.prototype,{drawTracker:o.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),a(p,"afterTranslate",(function(){this.applyJitter()})),t.registerSeriesType("scatter",p),p})),n(t,"Series/CenteredUtilities.js",[t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],(function(e,t,n){var r,o,i=e.deg2rad,a=n.fireEvent,s=n.isNumber,l=n.pick,c=n.relativeLength;return(o=r||(r={})).getCenter=function(){var e,n,r,o=this.options,i=this.chart,u=2*(o.slicedOffset||0),d=i.plotWidth-2*u,f=i.plotHeight-2*u,p=o.center,h=Math.min(d,f),m=o.thickness,v=o.size,g=o.innerSize||0;"string"==typeof v&&(v=parseFloat(v)),"string"==typeof g&&(g=parseFloat(g));var y=[l(p[0],"50%"),l(p[1],"50%"),l(v&&v<0?void 0:o.size,"100%"),l(g&&g<0?void 0:o.innerSize||0,"0%")];for(!i.angular||this instanceof t||(y[3]=0),n=0;n<4;++n)r=y[n],e=n<2||2===n&&/%$/.test(r),y[n]=c(r,[d,f,h,y[2]][n])+(e?u:0);return y[3]>y[2]&&(y[3]=y[2]),s(m)&&2*m<y[2]&&m>0&&(y[3]=y[2]-2*m),a(this,"afterGetCenter",{positions:y}),y},o.getStartAndEndRadians=function(e,t){var n=s(e)?e:0,r=s(t)&&t>n&&t-n<360?t:n+360;return{start:i*(n+-90),end:i*(r+-90)}},r})),n(t,"Series/Pie/PiePoint.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=e.setAnimation,o=n.addEvent,i=n.defined,l=n.extend,c=n.isNumber,u=n.pick,v=n.relativeLength,g=function(e){d(n,e);var t=f(n);function n(e,r,i){var s,l;h(this,n),(l=t.call(this,e,r,i)).half=0,null!==(s=l.name)&&void 0!==s||(l.name="Slice");var c=function(e){l.slice("select"===e.type)};return o(a(l),"select",c),o(a(l),"unselect",c),l}return m(n,[{key:"getConnectorPath",value:function(e){var t=e.dataLabelPosition,n=e.options||{},r=n.connectorShape,o=this.connectorShapes[r]||r;return t&&o.call(this,s(s({},t.computed),{},{alignment:t.alignment}),t.connectorPosition,n)||[]}},{key:"getTranslate",value:function(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}},{key:"haloPath",value:function(e){var t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:t.r-1,start:t.start,end:t.end,borderRadius:t.borderRadius})}},{key:"isValid",value:function(){return c(this.y)&&this.y>=0}},{key:"setVisible",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e!==this.visible&&this.update({visible:null!==e&&void 0!==e?e:!this.visible},t,void 0,!1)}},{key:"slice",value:function(e,t,n){var o=this.series;r(n,o.chart),t=u(t,!0),this.sliced=this.options.sliced=e=i(e)?e:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}]),n}(t);return l(g.prototype,{connectorShapes:{fixedOffset:function(e,t,n){var r=t.breakAt,o=t.touchingSliceAt,i=n.softConnector?["C",e.x+("left"===e.alignment?-5:5),e.y,2*r.x-o.x,2*r.y-o.y,r.x,r.y]:["L",r.x,r.y];return[["M",e.x,e.y],i,["L",o.x,o.y]]},straight:function(e,t){var n=t.touchingSliceAt;return[["M",e.x,e.y],["L",n.x,n.y]]},crookedLine:function(e,t,n){var r=t.breakAt,o=t.touchingSliceAt,i=this.series,a=p(i.center,3),s=a[0],l=a[1],c=a[2]/2,u=i.chart,d=u.plotLeft,f=u.plotWidth,h="left"===e.alignment,m=e.x,g=e.y,y=r.x;if(n.crookDistance){var b=v(n.crookDistance,1);y=h?s+c+(f+d-s-c)*(1-b):d+(s-c)*b}else y=s+(l-g)*Math.tan((this.angle||0)-Math.PI/2);var x=[["M",m,g]];return(h?y<=m&&y>=r.x:y>=m&&y<=r.x)&&x.push(["L",y,g]),x.push(["L",r.x,r.y],["L",o.x,o.y]),x}}}),g})),n(t,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}})),n(t,"Series/Pie/PieSeries.js",[t["Series/CenteredUtilities.js"],t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Series/Pie/PiePoint.js"],t["Series/Pie/PieSeriesDefaults.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o,i,a,s,l){var p=e.getStartAndEndRadians,v=n.noop,g=l.clamp,y=l.extend,b=l.fireEvent,x=l.merge,w=l.pick,k=function(e){d(n,e);var t=f(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"animate",value:function(e){var t=this,n=t.points,r=t.startAngleRad;e||n.forEach((function(e){var n=e.graphic,o=e.shapeArgs;n&&o&&(n.attr({r:w(e.startR,t.center&&t.center[3]/2),start:r,end:r}),n.animate({r:o.r,start:o.start,end:o.end},t.options.animation))}))}},{key:"drawEmpty",value:function(){var e,t,n=this.startAngleRad,r=this.endAngleRad,o=this.options;0===this.total&&this.center?(e=this.center[0],t=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(e,t,this.center[1]/2,0,n,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:s.arc(e,t,this.center[2]/2,0,{start:n,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}},{key:"drawPoints",value:function(){var e=this.chart.renderer;this.points.forEach((function(t){t.graphic&&t.hasNewShapeType()&&(t.graphic=t.graphic.destroy()),t.graphic||(t.graphic=e[t.shapeType](t.shapeArgs).add(t.series.group),t.delayedRendering=!0)}))}},{key:"generatePoints",value:function(){c(u(n.prototype),"generatePoints",this).call(this),this.updateTotals()}},{key:"getX",value:function(e,t,n,r){var o=this.center,i=this.radii?this.radii[n.index]||0:o[2]/2,a=r.dataLabelPosition,s=(null===a||void 0===a?void 0:a.distance)||0,l=Math.asin(g((e-o[1])/(i+s),-1,1));return o[0]+Math.cos(l)*(i+s)*(t?-1:1)+(s>0?(t?-1:1)*(r.padding||0):0)}},{key:"hasData",value:function(){return!!this.processedXData.length}},{key:"redrawPoints",value:function(){var e,t,n,r,o=this,i=o.chart;this.drawEmpty(),o.group&&!i.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach((function(a){var s={};t=a.graphic,!a.isNull&&t?(r=a.shapeArgs,e=a.getTranslate(),i.styledMode||(n=o.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(t.setRadialReference(o.center).attr(r).attr(e),i.styledMode||t.attr(n).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(t.setRadialReference(o.center),i.styledMode||x(!0,s,n),x(!0,s,r,e),t.animate(s)),t.attr({visibility:a.visible?"inherit":"hidden"}),t.addClass(a.getClassName(),!0)):t&&(a.graphic=t.destroy())}))}},{key:"sortByAngle",value:function(e,t){e.sort((function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t}))}},{key:"translate",value:function(e){b(this,"translate"),this.generatePoints();var t,n,r,o,i,a,s,l=this.options,c=l.slicedOffset,u=p(l.startAngle,l.endAngle),d=this.startAngleRad=u.start,f=(this.endAngleRad=u.end)-d,h=this.points,m=l.ignoreHiddenPoint,v=h.length,g=0;for(e||(this.center=e=this.getCenter()),a=0;a<v;a++){t=d+g*f,(s=h[a]).isValid()&&(!m||s.visible)&&(g+=s.percentage/100),n=d+g*f;var y={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1e3*t)/1e3,end:Math.round(1e3*n)/1e3};s.shapeType="arc",s.shapeArgs=y,(r=(n+t)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(r)*c),translateY:Math.round(Math.sin(r)*c)},o=Math.cos(r)*e[2]/2,i=Math.sin(r)*e[2]/2,s.tooltipPos=[e[0]+.7*o,e[1]+.7*i],s.half=r<-Math.PI/2||r>Math.PI/2?1:0,s.angle=r}b(this,"afterTranslate")}},{key:"updateTotals",value:function(){var e,t,n=this.points,r=n.length,o=this.options.ignoreHiddenPoint,i=0;for(e=0;e<r;e++)(t=n[e]).isValid()&&(!o||t.visible)&&(i+=t.y);for(e=0,this.total=i;e<r;e++)(t=n[e]).percentage=i>0&&(t.visible||!o)?t.y/i*100:0,t.total=i}}]),n}(i);return k.defaultOptions=x(i.defaultOptions,o),y(k.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:t.prototype.drawTracker,getCenter:e.getCenter,getSymbol:v,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:t.prototype.pointAttribs,pointClass:r,requireSorting:!1,searchPoint:v,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",k),k})),n(t,"Series/Pie/PieDataLabel.js",[t["Core/Series/DataLabel.js"],t["Core/Globals.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(e,t,n,r,o){var i,a=t.composed,s=t.noop,l=n.distribute,c=r.series,u=o.arrayMax,d=o.clamp,f=o.defined,p=o.pick,h=o.pushUnique,m=o.relativeLength;return function(t){var n={radialDistributionY:function(e,t){var n;return((null===(n=t.dataLabelPosition)||void 0===n?void 0:n.top)||0)+e.distributeBox.pos},radialDistributionX:function(e,t,n,r,o){var i=o.dataLabelPosition;return e.getX(n<((null===i||void 0===i?void 0:i.top)||0)+2||n>((null===i||void 0===i?void 0:i.bottom)||0)-2?r:n,t.half,t,o)},justify:function(e,t,n,r){var o;return r[0]+(e.half?-1:1)*(n+((null===(o=t.dataLabelPosition)||void 0===o?void 0:o.distance)||0))},alignToPlotEdges:function(e,t,n,r){var o=e.getBBox().width;return t?o+r:n-o-r},alignToConnectors:function(e,t,n,r){var o,i=0;return e.forEach((function(e){(o=e.dataLabel.getBBox().width)>i&&(i=o)})),t?i+r:n-i-r}};function r(e,t){var n=this.center,r=this.options,o=n[2]/2,i=e.angle||0,a=Math.cos(i),s=Math.sin(i),l=n[0]+a*o,c=n[1]+s*o,u=Math.min((r.slicedOffset||0)+(r.borderWidth||0),t/5);return{natural:{x:l+a*t,y:c+s*t},computed:{},alignment:t<0?"center":e.half?"right":"left",connectorPosition:{breakAt:{x:l+a*u,y:c+s*u},touchingSliceAt:{x:l,y:c}},distance:t}}function o(){var e,t,n,r,o=this,i=this,a=i.points,s=i.chart,d=s.plotWidth,h=s.plotHeight,v=s.plotLeft,g=Math.round(s.chartWidth/3),y=i.center,b=y[2]/2,x=y[1],w=[[],[]],k=[0,0,0,0],S=i.dataLabelPositioners,_=0;i.visible&&(null===(e=i.hasDataLabels)||void 0===e?void 0:e.call(i))&&(a.forEach((function(e){(e.dataLabels||[]).forEach((function(e){e.shortened&&(e.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.shortened=!1)}))})),c.prototype.drawDataLabels.apply(i),a.forEach((function(e){(e.dataLabels||[]).forEach((function(t,n){var r,i=y[2]/2,a=t.options,s=m((null===a||void 0===a?void 0:a.distance)||0,i);0===n&&w[e.half].push(e),!f(null===a||void 0===a||null===(r=a.style)||void 0===r?void 0:r.width)&&t.getBBox().width>g&&(t.css({width:Math.round(.7*g)+"px"}),t.shortened=!0),t.dataLabelPosition=o.getDataLabelPosition(e,s),_=Math.max(_,s)}))})),w.forEach((function(e,t){var o,a,c,u=e.length,m=[],g=0;u&&(i.sortByAngle(e,t-.5),_>0&&(o=Math.max(0,x-b-_),a=Math.min(x+b+_,s.plotHeight),e.forEach((function(e){(e.dataLabels||[]).forEach((function(t){var n,r=t.dataLabelPosition;r&&r.distance>0&&(r.top=Math.max(0,x-b-r.distance),r.bottom=Math.min(x+b+r.distance,s.plotHeight),g=t.getBBox().height||21,t.lineHeight=s.renderer.fontMetrics(t.text||t).h+2*t.padding,e.distributeBox={target:((null===(n=t.dataLabelPosition)||void 0===n?void 0:n.natural.y)||0)-r.top+t.lineHeight/2,size:g,rank:e.y},m.push(e.distributeBox))}))})),l(m,c=a+g-o,c/5)),e.forEach((function(o){(o.dataLabels||[]).forEach((function(a){var s=a.options||{},l=o.distributeBox,c=a.dataLabelPosition,u=(null===c||void 0===c?void 0:c.natural.y)||0,g=s.connectorPadding||0,x=a.lineHeight||21,w=(x-a.getBBox().height)/2,_=0,E=u,C="inherit";if(c){if(m&&f(l)&&c.distance>0&&(void 0===l.pos?C="hidden":(r=l.size,E=S.radialDistributionY(o,a))),s.justify)_=S.justify(o,a,b,y);else switch(s.alignTo){case"connectors":_=S.alignToConnectors(e,t,d,v);break;case"plotEdges":_=S.alignToPlotEdges(a,t,d,v);break;default:_=S.radialDistributionX(i,o,E-w,u,a)}var T;c.attribs={visibility:C,align:c.alignment},c.posAttribs={x:_+(s.x||0)+({left:g,right:-g}[c.alignment]||0),y:E+(s.y||0)-x/2},c.computed.x=_,c.computed.y=E-w,p(s.crop,!0)&&(_-(n=a.getBBox().width)<g&&1===t?(T=Math.round(n-_+g),k[3]=Math.max(T,k[3])):_+n>d-g&&0===t&&(T=Math.round(_+n-d+g),k[1]=Math.max(T,k[1])),E-r/2<0?k[0]=Math.max(Math.round(r/2-E),k[0]):E+r/2>h&&(k[2]=Math.max(Math.round(E+r/2-h),k[2])),c.sideOverflow=T)}}))})))})),(0===u(k)||this.verifyDataLabelOverflow(k))&&(this.placeDataLabels(),this.points.forEach((function(e){(e.dataLabels||[]).forEach((function(n){var r,o,a=n.options||{},l=a.connectorColor,c=a.connectorWidth,u=void 0===c?1:c,d=n.dataLabelPosition;u&&(t=n.connector,d&&d.distance>0?(o=!t,t||(n.connector=t=s.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(i.dataLabelsGroup)),s.styledMode||t.attr({"stroke-width":u,stroke:l||e.color||"#666666"}),t[o?"attr":"animate"]({d:e.getConnectorPath(n)}),t.attr({visibility:null===(r=d.attribs)||void 0===r?void 0:r.visibility})):t&&(n.connector=t.destroy()))}))}))))}function i(){this.points.forEach((function(e){(e.dataLabels||[]).forEach((function(e){var t,n=e.dataLabelPosition;n?(n.sideOverflow&&(e.css({width:Math.max(e.getBBox().width-n.sideOverflow,0)+"px",textOverflow:((null===(t=e.options)||void 0===t?void 0:t.style)||{}).textOverflow||"ellipsis"}),e.shortened=!0),e.attr(n.attribs),e[e.moved?"animate":"attr"](n.posAttribs),e.moved=!0):e&&e.attr({y:-9999})})),delete e.distributeBox}),this)}function v(e){var t=this.center,n=this.options,r=n.center,o=n.minSize||80,i=o,a=null!==n.size;return!a&&(null!==r[0]?i=Math.max(t[2]-Math.max(e[1],e[3]),o):(i=Math.max(t[2]-e[1]-e[3],o),t[0]+=(e[3]-e[1])/2),null!==r[1]?i=d(i,o,t[2]-Math.max(e[0],e[2])):(i=d(i,o,t[2]-e[0]-e[2]),t[1]+=(e[0]-e[2])/2),i<t[2]?(t[2]=i,t[3]=Math.min(n.thickness?Math.max(0,i-2*n.thickness):Math.max(0,m(n.innerSize||0,i)),i),this.translate(t),this.drawDataLabels&&this.drawDataLabels()):a=!0),a}t.compose=function(t){if(e.compose(c),h(a,"PieDataLabel")){var l=t.prototype;l.dataLabelPositioners=n,l.alignDataLabel=s,l.drawDataLabels=o,l.getDataLabelPosition=r,l.placeDataLabels=i,l.verifyDataLabelOverflow=v}}}(i||(i={})),i})),n(t,"Core/Geometry/GeometryUtilities.js",[],(function(){var e,t;return(t=e||(e={})).getCenterOfPoints=function(e){var t=e.reduce((function(e,t){return e.x+=t.x,e.y+=t.y,e}),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}},t.getDistanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},t.getAngleBetweenPoints=function(e,t){return Math.atan2(t.x-e.x,t.y-e.y)},t.pointInPolygon=function(e,t){var n,r,o=e.x,i=e.y,a=t.length,s=!1;for(n=0,r=a-1;n<a;r=n++){var l=p(t[n],2),c=l[0],u=l[1],d=p(t[r],2),f=d[0],h=d[1];u>i!=h>i&&o<(f-c)*(i-u)/(h-u)+c&&(s=!s)}return s},e})),n(t,"Extensions/OverlappingDataLabels.js",[t["Core/Geometry/GeometryUtilities.js"],t["Core/Utilities.js"]],(function(e,t){var n=e.pointInPolygon,r=t.addEvent,o=t.fireEvent,i=t.objectEach,a=t.pick;function s(e){for(var t,r,i,a,s,c=e.length,u=function(e,t){return!(t.x>=e.x+e.width||t.x+t.width<=e.x||t.y>=e.y+e.height||t.y+t.height<=e.y)},d=function(e,t){var r,o=v(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(n({x:i[0],y:i[1]},t))return!0}}catch(a){o.e(a)}finally{o.f()}return!1},f=!1,p=0;p<c;p++)(t=e[p])&&(t.oldOpacity=t.opacity,t.newOpacity=1,t.absoluteBox=function(e){if(e&&(!e.alignAttr||e.placed)){var t,n,r=e.box?0:e.padding||0,o=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},i=e.getBBox();return e.width=i.width,e.height=i.height,{x:o.x+((null===(t=e.parentGroup)||void 0===t?void 0:t.translateX)||0)+r,y:o.y+((null===(n=e.parentGroup)||void 0===n?void 0:n.translateY)||0)+r,width:(e.width||0)-2*r,height:(e.height||0)-2*r,polygon:null===i||void 0===i?void 0:i.polygon}}}(t));e.sort((function(e,t){return(t.labelrank||0)-(e.labelrank||0)}));for(var h=0;h<c;++h)for(var m,g=null===(m=a=(r=e[h])&&r.absoluteBox)||void 0===m?void 0:m.polygon,y=h+1;y<c;++y){s=(i=e[y])&&i.absoluteBox;var b=!1;if(a&&s&&r!==i&&0!==r.newOpacity&&0!==i.newOpacity&&"hidden"!==r.visibility&&"hidden"!==i.visibility){var x=s.polygon;if(g&&x&&g!==x?d(g,x)&&(b=!0):u(a,s)&&(b=!0),b){var w=r.labelrank<i.labelrank?r:i,k=w.text;w.newOpacity=0,(null===k||void 0===k?void 0:k.element.querySelector("textPath"))&&k.hide()}}}var S,_=v(e);try{for(_.s();!(S=_.n()).done;)l(S.value,this)&&(f=!0)}catch(E){_.e(E)}finally{_.f()}f&&o(this,"afterHideAllOverlappingLabels")}function l(e,t){var n,r,i=!1;return e&&(r=e.newOpacity,e.oldOpacity!==r&&(e.hasClass("highcharts-data-label")?(e[r?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=function(){t.styledMode||e.css({pointerEvents:r?"auto":"none"})},i=!0,e[e.isOld?"animate":"attr"]({opacity:r},void 0,n),o(t,"afterHideOverlappingLabel")):e.attr({opacity:r})),e.isOld=!0),i}function c(){var e,t=this,n=[],r=v(t.labelCollectors||[]);try{for(r.s();!(e=r.n()).done;){var o=e.value;n=n.concat(o())}}catch(g){r.e(g)}finally{r.f()}var s,c=v(t.yAxis||[]);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.stacking&&u.options.stackLabels&&!u.options.stackLabels.allowOverlap&&i(u.stacking.stacks,(function(e){i(e,(function(e){e.label&&n.push(e.label)}))}))}}catch(g){c.e(g)}finally{c.f()}var d,f=v(t.series||[]);try{for(f.s();!(d=f.n()).done;){var p,h=d.value;if(h.visible&&null!==(p=h.hasDataLabels)&&void 0!==p&&p.call(h)){var m=function(e){var r,o=v(e);try{var i=function(){var e=r.value;e.visible&&(e.dataLabels||[]).forEach((function(r){var o,i,s=r.options||{};r.labelrank=a(s.labelrank,e.labelrank,null===(o=e.shapeArgs)||void 0===o?void 0:o.height),(null!==(i=s.allowOverlap)&&void 0!==i?i:Number(s.distance)>0)?(r.oldOpacity=r.opacity,r.newOpacity=1,l(r,t)):n.push(r)}))};for(o.s();!(r=o.n()).done;)i()}catch(g){o.e(g)}finally{o.f()}};m(h.nodes||[]),m(h.points)}}}catch(g){f.e(g)}finally{f.f()}this.hideOverlappingLabels(n)}return{compose:function(e){var t=e.prototype;t.hideOverlappingLabels||(t.hideOverlappingLabels=s,r(e,"render",c))}}})),n(t,"Extensions/BorderRadius.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(e,t,n){var r=e.defaultOptions,o=t.noop,i=n.addEvent,a=n.extend,s=n.isObject,l=n.merge,c=n.relativeLength,u={radius:0,scope:"stack",where:void 0},d=o,f=o;function p(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=d(e,t,n,r,o),a=o.innerR,s=void 0===a?0:a,l=o.r,u=void 0===l?n:l,f=o.start,p=void 0===f?0:f,h=o.end,m=void 0===h?0:h;if(o.open||!o.borderRadius)return i;for(var v=m-p,g=Math.sin(v/2),y=Math.max(Math.min(c(o.borderRadius||0,u-s),(u-s)/2,u*g/(1+g)),0),b=Math.min(y,v/Math.PI*2*s),x=i.length-1;x--;)!function(e,t,n){var r,o,i,a=e[t],s=e[t+1];if("Z"===s[0]&&(s=e[0]),"M"!==a[0]&&"L"!==a[0]||"A"!==s[0]?"A"===a[0]&&("M"===s[0]||"L"===s[0])&&(r=s,o=a):(r=a,o=s,i=!0),r&&o&&o.params){var l=o[1],c=o[5],u=o.params,d=u.start,f=u.end,p=u.cx,h=u.cy,m=c?l-n:l+n,v=m?Math.asin(n/m):0,g=c?v:-v,y=Math.cos(v)*m;i?(u.start=d+g,r[1]=p+y*Math.cos(d),r[2]=h+y*Math.sin(d),e.splice(t+1,0,["A",n,n,0,0,1,p+l*Math.cos(u.start),h+l*Math.sin(u.start)])):(u.end=f-g,o[6]=p+l*Math.cos(u.end),o[7]=h+l*Math.sin(u.end),e.splice(t+1,0,["A",n,n,0,0,1,p+y*Math.cos(f),h+y*Math.sin(f)])),o[4]=Math.abs(u.end-u.start)<Math.PI?0:1}}(i,x,x>1?b:y);return i}function h(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){var e,t,n,o=this.options,i=this.yAxis,l="percent"===o.stacking,u=null===(e=r.plotOptions)||void 0===e||null===(t=e[this.type])||void 0===t?void 0:t.borderRadius,d=m(o.borderRadius,s(u)?u:{}),f=i.options.reversed,p=v(this.points);try{for(p.s();!(n=p.n()).done;){var h=n.value,g=h.shapeArgs;if("roundedRect"===h.shapeType&&g){var y=g.width,b=void 0===y?0:y,x=g.height,w=void 0===x?0:x,k=g.y,S=void 0===k?0:k,_=w;if("stack"===d.scope&&h.stackTotal){var E=i.translate(l?100:h.stackTotal,!1,!0,!1,!0),C=i.translate(o.threshold||0,!1,!0,!1,!0),T=this.crispCol(0,Math.min(E,C),0,Math.abs(E-C));S=T.y,_=T.height}var I=(h.negative?-1:1)*(f?-1:1)==-1,B=d.where;!B&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(B="all"),B||(B="end");var O=Math.min(c(d.radius,b),b/2,"all"===B?w/2:1/0)||0;"end"===B&&(I&&(S-=O),_+=O),a(g,{brBoxHeight:_,brBoxY:S,r:O})}}}catch(P){p.e(P)}finally{p.f()}}}function m(e,t){return s(e)||(e={radius:e||0}),l(u,t,e)}function g(){var e,t=m(this.options.borderRadius),n=v(this.points);try{for(n.s();!(e=n.n()).done;){var r=e.value.shapeArgs;r&&(r.borderRadius=c(t.radius,(r.r||0)-(r.innerR||0)))}}catch(o){n.e(o)}finally{n.f()}}function y(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=f(e,t,n,r,o),a=o.r,s=void 0===a?0:a,l=o.brBoxHeight,c=void 0===l?r:l,u=o.brBoxY,d=void 0===u?t:u,p=t-d,h=d+c-(t+r),m=p-s>-.1?0:s,v=h-s>-.1?0:s,g=Math.max(m&&p,0),y=Math.max(v&&h,0),b=[e+m,t],x=[e+n-m,t],w=[e+n,t+m],k=[e+n,t+r-v],S=[e+n-v,t+r],_=[e+v,t+r],E=[e,t+r-v],C=[e,t+m],T=function(e,t){return Math.sqrt(Math.pow(e,2)-Math.pow(t,2))};if(g){var I=T(m,m-g);b[0]-=I,x[0]+=I,w[1]=C[1]=t+m-g}if(r<m-g){var B=T(m,m-g-r);w[0]=k[0]=e+n-m+B,S[0]=Math.min(w[0],S[0]),_[0]=Math.max(k[0],_[0]),E[0]=C[0]=e+m-B,w[1]=C[1]=t+r}if(y){var O=T(v,v-y);S[0]+=O,_[0]-=O,k[1]=E[1]=t+r-v+y}if(r<v-y){var P=T(v,v-y-r);w[0]=k[0]=e+n-v+P,x[0]=Math.min(w[0],x[0]),b[0]=Math.max(k[0],b[0]),E[0]=C[0]=e+v-P,k[1]=E[1]=t}return i.length=0,i.push(["M"].concat(b),["L"].concat(x),["A",m,m,0,0,1].concat(w),["L"].concat(k),["A",v,v,0,0,1].concat(S),["L"].concat(_),["A",v,v,0,0,1].concat(E),["L"].concat(C),["A",m,m,0,0,1].concat(b),["Z"]),i}return{compose:function(e,t,n){var r=e.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){var o=n.prototype.symbols;i(e,"afterColumnTranslate",h,{order:9}),i(r,"afterTranslate",g),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),d=o.arc,f=o.roundedRect,o.arc=p,o.roundedRect=y}},optionsToObject:m}})),n(t,"Core/Responsive.js",[t["Core/Utilities.js"]],(function(e){var t,n=e.diffObjects,r=e.extend,o=e.find,i=e.merge,a=e.pick,s=e.uniqueKey;return function(e){function t(e,t){var n=e.condition;(n.callback||function(){return this.chartWidth<=a(n.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=a(n.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=a(n.minWidth,0)&&this.chartHeight>=a(n.minHeight,0)}).call(this)&&t.push(e._id)}function c(e,t){var r,a=this,c=this.options.responsive,u=this.currentResponsive,d=[];!t&&c&&c.rules&&c.rules.forEach((function(e){void 0===e._id&&(e._id=s()),a.matchResponsiveRule(e,d)}),this);var f=i.apply(void 0,l(d.map((function(e){return o((c||{}).rules||[],(function(t){return t._id===e}))})).map((function(e){return e&&e.chartOptions}))));f.isResponsiveOptions=!0,d=d.toString()||void 0;var p=u&&u.ruleIds;d===p||(u&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(u.undoOptions,e,!0),this.updatingResponsive=!1),d?((r=n(f,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:d,mergedOptions:f,undoOptions:r},this.updatingResponsive||this.update(f,e,!0)):this.currentResponsive=void 0)}e.compose=function(e){var n=e.prototype;return n.matchResponsiveRule||r(n,{matchResponsiveRule:t,setResponsive:c}),e}}(t||(t={})),t})),n(t,"masters/highcharts.src.js",[t["Core/Globals.js"],t["Core/Utilities.js"],t["Core/Defaults.js"],t["Core/Animation/Fx.js"],t["Core/Animation/AnimationUtilities.js"],t["Core/Renderer/HTML/AST.js"],t["Core/Templating.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Renderer/HTML/HTMLElement.js"],t["Core/Axis/Axis.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Axis/LogarithmicAxis.js"],t["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],t["Core/Axis/Tick.js"],t["Core/Tooltip.js"],t["Core/Series/Point.js"],t["Core/Pointer.js"],t["Core/Legend/Legend.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Chart/Chart.js"],t["Extensions/ScrollablePlotArea.js"],t["Core/Axis/Stacking/StackingAxis.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Series/Series.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Column/ColumnDataLabel.js"],t["Series/Pie/PieDataLabel.js"],t["Core/Series/DataLabel.js"],t["Extensions/OverlappingDataLabels.js"],t["Extensions/BorderRadius.js"],t["Core/Responsive.js"],t["Core/Color/Color.js"],t["Core/Time.js"]],(function(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,v,g,y,b,x,w,k,S,_,E,C,T,I,B,O,P,R,A,M,N){return e.AST=i,e.Axis=f,e.Chart=k,e.Color=M,e.DataLabel=O,e.Fx=r,e.HTMLElement=d,e.Legend=x,e.LegendSymbol=w,e.OverlappingDataLabels=e.OverlappingDataLabels||P,e.PlotLineOrBand=m,e.Point=y,e.Pointer=b,e.RendererRegistry=s,e.Series=C,e.SeriesRegistry=T,e.StackItem=E,e.SVGElement=c,e.SVGRenderer=u,e.Templating=a,e.Tick=v,e.Time=N,e.Tooltip=g,e.animate=o.animate,e.animObject=o.animObject,e.chart=k.chart,e.color=M.parse,e.dateFormat=a.dateFormat,e.defaultOptions=n.defaultOptions,e.distribute=l.distribute,e.format=a.format,e.getDeferredAnimation=o.getDeferredAnimation,e.getOptions=n.getOptions,e.numberFormat=a.numberFormat,e.seriesType=T.seriesType,e.setAnimation=o.setAnimation,e.setOptions=n.setOptions,e.stop=o.stop,e.time=n.defaultTime,e.timers=r.timers,R.compose(e.Series,e.SVGElement,e.SVGRenderer),I.compose(e.Series.types.column),O.compose(e.Series),p.compose(e.Axis),d.compose(e.SVGRenderer),x.compose(e.Chart),h.compose(e.Axis),P.compose(e.Chart),B.compose(e.Series.types.pie),m.compose(e.Chart,e.Axis),b.compose(e.Chart),A.compose(e.Chart),S.compose(e.Axis,e.Chart,e.Series),_.compose(e.Axis,e.Chart,e.Series),g.compose(e.Pointer),t.extend(e,t),e})),t["masters/highcharts.src.js"]._modules=t,t["masters/highcharts.src.js"]},e.exports?(i.default=i,e.exports=o&&o.document?i(o):i):void 0===(r=function(){return i(o)}.call(t,n,t,e))||(e.exports=r)},2110:function(e,t,n){"use strict";var r=n(8309),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v<a.length;++v){var g=a[v];if(!i[g]&&(!r||!r[g])&&(!m||!m[g])&&(!s||!s[g])){var y=f(n,g);try{c(t,g,y)}catch(b){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case v:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=w},8309:function(e,t,n){"use strict";e.exports=n(746)},2764:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["weeks","years","months","days","hours","minutes","seconds"],r=t.pattern=new RegExp("P(?:(\\d+(?:[\\.,]\\d+)?W)|(\\d+(?:[\\.,]\\d+)?Y)?(\\d+(?:[\\.,]\\d+)?M)?(\\d+(?:[\\.,]\\d+)?D)?(?:T(\\d+(?:[\\.,]\\d+)?H)?(\\d+(?:[\\.,]\\d+)?M)?(\\d+(?:[\\.,]\\d+)?S)?)?)"),o=t.parse=function(e){return e.match(r).slice(1).reduce((function(e,t,r){return e[n[r]]=parseFloat(t)||0,e}),{})},i=t.end=function(e,t){var n=t?t.getTime():Date.now(),r=new Date(n);return r.setFullYear(r.getFullYear()+e.years),r.setMonth(r.getMonth()+e.months),r.setDate(r.getDate()+e.days),r.setHours(r.getHours()+e.hours),r.setMinutes(r.getMinutes()+e.minutes),r.setMilliseconds(r.getMilliseconds()+1e3*e.seconds),r.setDate(r.getDate()+7*e.weeks),r},a=t.toSeconds=function(e,t){var n=t?t.getTime():Date.now(),r=new Date(n);return(i(e,r).getTime()-r.getTime())/1e3};t.default={end:i,toSeconds:a,pattern:r,parse:o}},1583:function(e){e.exports=window.FormData},8566:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";e.exports=function(e,t){var n,r,o;for(n=1;n<arguments.length;n++)for(o in r=arguments[n])r.hasOwnProperty(o)&&(e[o]=r[o]);return e}},function(e,t,n){"use strict";var r=n(0);e.exports={build:function(e,t){var n,o,i,a=t.plugins;for(n=0,o=a.length;n<o;n++)(i=a[n]).methods&&r(e,i.methods),i.properties&&Object.defineProperties(e,i.properties)},hook:function(e,t,n){var r,o,i,a,s=e.config.plugins,l=[e.context];for(n&&(l=l.concat(n)),r=0,o=s.length;r<o;r++)a=s[r],(i=s[r][t])&&i.apply(a,l)}}},function(e,t,n){"use strict";function r(e){if(0===e.length)return e;var t,n,r=e.split(/[_-]/);if(1===r.length&&r[0][0].toLowerCase()===r[0][0])return e;for(n=r[0].toLowerCase(),t=1;t<r.length;t++)n=n+r[t].charAt(0).toUpperCase()+r[t].substring(1).toLowerCase();return n}r.prepended=function(e,t){return e+(t=r(t))[0].toUpperCase()+t.substring(1)},e.exports=r},function(e,t,n){"use strict";var r=n(0),o=n(2);function i(e,t){e=e||{},this.options=e,this.defaults=t.defaults,this.states=[],this.transitions=[],this.map={},this.lifecycle=this.configureLifecycle(),this.init=this.configureInitTransition(e.init),this.data=this.configureData(e.data),this.methods=this.configureMethods(e.methods),this.map[this.defaults.wildcard]={},this.configureTransitions(e.transitions||[]),this.plugins=this.configurePlugins(e.plugins,t.plugin)}r(i.prototype,{addState:function(e){this.map[e]||(this.states.push(e),this.addStateLifecycleNames(e),this.map[e]={})},addStateLifecycleNames:function(e){this.lifecycle.onEnter[e]=o.prepended("onEnter",e),this.lifecycle.onLeave[e]=o.prepended("onLeave",e),this.lifecycle.on[e]=o.prepended("on",e)},addTransition:function(e){this.transitions.indexOf(e)<0&&(this.transitions.push(e),this.addTransitionLifecycleNames(e))},addTransitionLifecycleNames:function(e){this.lifecycle.onBefore[e]=o.prepended("onBefore",e),this.lifecycle.onAfter[e]=o.prepended("onAfter",e),this.lifecycle.on[e]=o.prepended("on",e)},mapTransition:function(e){var t=e.name,n=e.from,r=e.to;return this.addState(n),"function"!==typeof r&&this.addState(r),this.addTransition(t),this.map[n][t]=e,e},configureLifecycle:function(){return{onBefore:{transition:"onBeforeTransition"},onAfter:{transition:"onAfterTransition"},onEnter:{state:"onEnterState"},onLeave:{state:"onLeaveState"},on:{transition:"onTransition"}}},configureInitTransition:function(e){return"string"===typeof e?this.mapTransition(r({},this.defaults.init,{to:e,active:!0})):"object"===typeof e?this.mapTransition(r({},this.defaults.init,e,{active:!0})):(this.addState(this.defaults.init.from),this.defaults.init)},configureData:function(e){return"function"===typeof e?e:"object"===typeof e?function(){return e}:function(){return{}}},configureMethods:function(e){return e||{}},configurePlugins:function(e,t){var n,r,o;for(n=0,r=(e=e||[]).length;n<r;n++)"function"===typeof(o=e[n])&&(e[n]=o=o()),o.configure&&o.configure(this);return e},configureTransitions:function(e){var t,n,r,o,i,a=this.defaults.wildcard;for(n=0;n<e.length;n++)for(r=e[n],o=Array.isArray(r.from)?r.from:[r.from||a],i=r.to||a,t=0;t<o.length;t++)this.mapTransition({name:r.name,from:o[t],to:i})},transitionFor:function(e,t){var n=this.defaults.wildcard;return this.map[e][t]||this.map[n][t]},transitionsFor:function(e){var t=this.defaults.wildcard;return Object.keys(this.map[e]).concat(Object.keys(this.map[t]))},allStates:function(){return this.states},allTransitions:function(){return this.transitions}}),e.exports=i},function(e,t,n){var r=n(0),o=n(6),i=n(1),a=[null,[]];function s(e,t){this.context=e,this.config=t,this.state=t.init.from,this.observers=[e]}r(s.prototype,{init:function(e){if(r(this.context,this.config.data.apply(this.context,e)),i.hook(this,"init"),this.config.init.active)return this.fire(this.config.init.name,[])},is:function(e){return Array.isArray(e)?e.indexOf(this.state)>=0:this.state===e},isPending:function(){return this.pending},can:function(e){return!this.isPending()&&!!this.seek(e)},cannot:function(e){return!this.can(e)},allStates:function(){return this.config.allStates()},allTransitions:function(){return this.config.allTransitions()},transitions:function(){return this.config.transitionsFor(this.state)},seek:function(e,t){var n=this.config.defaults.wildcard,r=this.config.transitionFor(this.state,e),o=r&&r.to;return"function"===typeof o?o.apply(this.context,t):o===n?this.state:o},fire:function(e,t){return this.transit(e,this.state,this.seek(e,t),t)},transit:function(e,t,n,r){var o=this.config.lifecycle,i=this.config.options.observeUnchangedState||t!==n;return n?this.isPending()?this.context.onPendingTransition(e,t,n):(this.config.addState(n),this.beginTransit(),r.unshift({transition:e,from:t,to:n,fsm:this.context}),this.observeEvents([this.observersForEvent(o.onBefore.transition),this.observersForEvent(o.onBefore[e]),i?this.observersForEvent(o.onLeave.state):a,i?this.observersForEvent(o.onLeave[t]):a,this.observersForEvent(o.on.transition),i?["doTransit",[this]]:a,i?this.observersForEvent(o.onEnter.state):a,i?this.observersForEvent(o.onEnter[n]):a,i?this.observersForEvent(o.on[n]):a,this.observersForEvent(o.onAfter.transition),this.observersForEvent(o.onAfter[e]),this.observersForEvent(o.on[e])],r)):this.context.onInvalidTransition(e,t,n)},beginTransit:function(){this.pending=!0},endTransit:function(e){return this.pending=!1,e},failTransit:function(e){throw this.pending=!1,e},doTransit:function(e){this.state=e.to},observe:function(e){if(2===e.length){var t={};t[e[0]]=e[1],this.observers.push(t)}else this.observers.push(e[0])},observersForEvent:function(e){for(var t,n=0,r=this.observers.length,o=[];n<r;n++)(t=this.observers[n])[e]&&o.push(t);return[e,o,!0]},observeEvents:function(e,t,n,r){if(0===e.length)return this.endTransit(void 0===r||r);var o=e[0][0],a=e[0][1],s=e[0][2];if(t[0].event=o,o&&s&&o!==n&&i.hook(this,"lifecycle",t),0===a.length)return e.shift(),this.observeEvents(e,t,o,r);var l=a.shift(),c=l[o].apply(l,t);return c&&"function"===typeof c.then?c.then(this.observeEvents.bind(this,e,t,o)).catch(this.failTransit.bind(this)):!1===c?this.endTransit(!1):this.observeEvents(e,t,o,c)},onInvalidTransition:function(e,t,n){throw new o("transition is invalid in current state",e,t,n,this.state)},onPendingTransition:function(e,t,n){throw new o("transition is invalid while previous transition is still in progress",e,t,n,this.state)}}),e.exports=s},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(1),a=n(3),s=n(4),l={is:function(e){return this._fsm.is(e)},can:function(e){return this._fsm.can(e)},cannot:function(e){return this._fsm.cannot(e)},observe:function(){return this._fsm.observe(arguments)},transitions:function(){return this._fsm.transitions()},allTransitions:function(){return this._fsm.allTransitions()},allStates:function(){return this._fsm.allStates()},onInvalidTransition:function(e,t,n){return this._fsm.onInvalidTransition(e,t,n)},onPendingTransition:function(e,t,n){return this._fsm.onPendingTransition(e,t,n)}},c={state:{configurable:!1,enumerable:!0,get:function(){return this._fsm.state},set:function(e){throw Error("use transitions to change state")}}};function u(e){return d(this||{},e)}function d(e,t){return f(e,new a(t,u)),e._fsm(),e}function f(e,t){if("object"!==typeof e||Array.isArray(e))throw Error("StateMachine can only be applied to objects");i.build(e,t),Object.defineProperties(e,c),r(e,l),r(e,t.methods),t.allTransitions().forEach((function(t){e[o(t)]=function(){return this._fsm.fire(t,[].slice.call(arguments))}})),e._fsm=function(){this._fsm=new s(this,t),this._fsm.init(arguments)}}u.version="3.0.1",u.factory=function(){var e,t;"function"===typeof arguments[0]?(e=arguments[0],t=arguments[1]||{}):(e=function(){this._fsm.apply(this,arguments)},t=arguments[0]||{});var n=new a(t,u);return f(e.prototype,n),e.prototype._fsm.config=n,e},u.apply=d,u.defaults={wildcard:"*",init:{name:"init",from:"none"}},e.exports=u},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){this.message=e,this.transition=t,this.from=n,this.to=r,this.current=o}}])},e.exports=t()},2467:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",h="[object Promise]",m="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",b="[object WeakMap]",x="[object ArrayBuffer]",w="[object DataView]",k=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[i]=_[a]=_[x]=_[s]=_[w]=_[l]=_[c]=_[u]=_[d]=_[f]=_[p]=_[m]=_[v]=_[g]=_[b]=!1;var E="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,C="object"==typeof self&&self&&self.Object===Object&&self,T=E||C||Function("return this")(),I=t&&!t.nodeType&&t,B=I&&e&&!e.nodeType&&e,O=B&&B.exports===I,P=O&&E.process,R=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),A=R&&R.isTypedArray;function M(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var L,j,z=Array.prototype,W=Function.prototype,Z=Object.prototype,F=T["__core-js_shared__"],H=W.toString,U=Z.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),G=Z.toString,q=RegExp("^"+H.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=O?T.Buffer:void 0,V=T.Symbol,Y=T.Uint8Array,X=Z.propertyIsEnumerable,J=z.splice,Q=V?V.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=K?K.isBuffer:void 0,ne=(L=Object.keys,j=Object,function(e){return L(j(e))}),re=Pe(T,"DataView"),oe=Pe(T,"Map"),ie=Pe(T,"Promise"),ae=Pe(T,"Set"),se=Pe(T,"WeakMap"),le=Pe(Object,"create"),ce=Ne(re),ue=Ne(oe),de=Ne(ie),fe=Ne(ae),pe=Ne(se),he=V?V.prototype:void 0,me=he?he.valueOf:void 0;function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function xe(e){var t=this.__data__=new ge(e);this.size=t.size}function we(e,t){var n=je(e),r=!n&&Le(e),o=!n&&!r&&ze(e),i=!n&&!r&&!o&&Ue(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!U.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Me(c,l))||s.push(c);return s}function ke(e,t){for(var n=e.length;n--;)if(De(e[n][0],t))return n;return-1}function Se(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=U.call(e,Q),n=e[Q];try{e[Q]=void 0;var r=!0}catch(i){}var o=G.call(e);r&&(t?e[Q]=n:delete e[Q]);return o}(e):function(e){return G.call(e)}(e)}function _e(e){return He(e)&&Se(e)==i}function Ee(e,t,n,r,o){return e===t||(null==e||null==t||!He(e)&&!He(t)?e!==e&&t!==t:function(e,t,n,r,o,u){var h=je(e),b=je(t),k=h?a:Ae(e),S=b?a:Ae(t),_=(k=k==i?p:k)==p,E=(S=S==i?p:S)==p,C=k==S;if(C&&ze(e)){if(!ze(t))return!1;h=!0,_=!1}if(C&&!_)return u||(u=new xe),h||Ue(e)?Ie(e,t,n,r,o,u):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!i(new Y(e),new Y(t)));case s:case l:case f:return De(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case d:var u=N;case v:var p=1&r;if(u||(u=D),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Ie(u(e),u(t),r,o,i,a);return a.delete(e),b;case y:if(me)return me.call(e)==me.call(t)}return!1}(e,t,k,n,r,o,u);if(!(1&n)){var T=_&&U.call(e,"__wrapped__"),I=E&&U.call(t,"__wrapped__");if(T||I){var B=T?e.value():e,O=I?t.value():t;return u||(u=new xe),o(B,O,n,r,u)}}if(!C)return!1;return u||(u=new xe),function(e,t,n,r,o,i){var a=1&n,s=Be(e),l=s.length,c=Be(t).length;if(l!=c&&!a)return!1;var u=l;for(;u--;){var d=s[u];if(!(a?d in t:U.call(t,d)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var p=!0;i.set(e,t),i.set(t,e);var h=a;for(;++u<l;){var m=e[d=s[u]],v=t[d];if(r)var g=a?r(v,m,d,t,e,i):r(m,v,d,e,t,i);if(!(void 0===g?m===v||o(m,v,n,r,i):g)){p=!1;break}h||(h="constructor"==d)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,u)}(e,t,n,r,Ee,o))}function Ce(e){return!(!Fe(e)||function(e){return!!$&&$ in e}(e))&&(We(e)?q:k).test(Ne(e))}function Te(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Z;return e===n}(e))return ne(e);var t=[];for(var n in Object(e))U.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ie(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,f=2&n?new be:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var p=e[u],h=t[u];if(r)var m=a?r(h,p,u,t,e,i):r(p,h,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!M(t,(function(e,t){if(a=t,!f.has(a)&&(p===e||o(p,e,n,r,i)))return f.push(t);var a}))){d=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Be(e){return function(e,t,n){var r=t(e);return je(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,$e,Re)}function Oe(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ce(n)?n:void 0}ve.prototype.clear=function(){this.__data__=le?le(null):{},this.size=0},ve.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve.prototype.get=function(e){var t=this.__data__;if(le){var n=t[e];return n===r?void 0:n}return U.call(t,e)?t[e]:void 0},ve.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:U.call(t,e)},ve.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=le&&void 0===t?r:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=ke(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,n=ke(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return ke(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(oe||ge),string:new ve}},ye.prototype.delete=function(e){var t=Oe(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return Oe(this,e).get(e)},ye.prototype.has=function(e){return Oe(this,e).has(e)},ye.prototype.set=function(e,t){var n=Oe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ge,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var Re=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(ee(e),(function(t){return X.call(e,t)})))}:function(){return[]},Ae=Se;function Me(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function Ne(e){if(null!=e){try{return H.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function De(e,t){return e===t||e!==e&&t!==t}(re&&Ae(new re(new ArrayBuffer(1)))!=w||oe&&Ae(new oe)!=d||ie&&Ae(ie.resolve())!=h||ae&&Ae(new ae)!=v||se&&Ae(new se)!=b)&&(Ae=function(e){var t=Se(e),n=t==p?e.constructor:void 0,r=n?Ne(n):"";if(r)switch(r){case ce:return w;case ue:return d;case de:return h;case fe:return v;case pe:return b}return t});var Le=_e(function(){return arguments}())?_e:function(e){return He(e)&&U.call(e,"callee")&&!X.call(e,"callee")},je=Array.isArray;var ze=te||function(){return!1};function We(e){if(!Fe(e))return!1;var t=Se(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ze(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function He(e){return null!=e&&"object"==typeof e}var Ue=A?function(e){return function(t){return e(t)}}(A):function(e){return He(e)&&Ze(e.length)&&!!_[Se(e)]};function $e(e){return null!=(t=e)&&Ze(t.length)&&!We(t)?we(e):Te(e);var t}e.exports=function(e,t){return Ee(e,t)}},7381:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[i]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[a]=u["[object Map]"]=u["[object Number]"]=u[s]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=d||f||Function("return this")(),h=t&&!t.nodeType&&t,m=h&&e&&!e.nodeType&&e,v=m&&m.exports===h,g=v&&d.process,y=function(){try{var e=m&&m.require&&m.require("util").types;return e||g&&g.binding&&g.binding("util")}catch(t){}}(),b=y&&y.isTypedArray;function x(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var w,k,S=Array.prototype,_=Function.prototype,E=Object.prototype,C=p["__core-js_shared__"],T=_.toString,I=E.hasOwnProperty,B=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),O=E.toString,P=T.call(Object),R=RegExp("^"+T.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=v?p.Buffer:void 0,M=p.Symbol,N=p.Uint8Array,D=A?A.allocUnsafe:void 0,L=(w=Object.getPrototypeOf,k=Object,function(e){return w(k(e))}),j=Object.create,z=E.propertyIsEnumerable,W=S.splice,Z=M?M.toStringTag:void 0,F=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),H=A?A.isBuffer:void 0,U=Math.max,$=Date.now,G=he(p,"Map"),q=he(Object,"create"),K=function(){function e(){}return function(t){if(!Ce(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function J(e){var t=this.__data__=new Y(e);this.size=t.size}function Q(e,t){var n=we(e),r=!n&&xe(e),o=!n&&!r&&Se(e),i=!n&&!r&&!o&&Ie(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!I.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||me(c,l))||s.push(c);return s}function ee(e,t,n){(void 0!==n&&!be(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];I.call(e,t)&&be(r,n)&&(void 0!==n||t in e)||re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(be(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&F?F(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}V.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},V.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},V.prototype.get=function(e){var t=this.__data__;if(q){var n=t[e];return n===r?void 0:n}return I.call(t,e)?t[e]:void 0},V.prototype.has=function(e){var t=this.__data__;return q?void 0!==t[e]:I.call(t,e)},V.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=q&&void 0===t?r:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():W.call(t,n,1),--this.size,!0)},Y.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},Y.prototype.has=function(e){return ne(this.__data__,e)>-1},Y.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new V,map:new(G||Y),string:new V}},X.prototype.delete=function(e){var t=pe(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return pe(this,e).get(e)},X.prototype.has=function(e){return pe(this,e).has(e)},X.prototype.set=function(e,t){var n=pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},J.prototype.clear=function(){this.__data__=new Y,this.size=0},J.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!G||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new X(r)}return n.set(e,t),this.size=n.size,this};var oe,ie=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[oe?a:++r];if(!1===t(o[s],s,o))break}return e};function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=I.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(i){}var o=O.call(e);r&&(t?e[Z]=n:delete e[Z]);return o}(e):function(e){return O.call(e)}(e)}function se(e){return Te(e)&&ae(e)==i}function le(e){return!(!Ce(e)||function(e){return!!B&&B in e}(e))&&(_e(e)?R:l).test(function(e){if(null!=e){try{return T.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function ce(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ve(e),n=[];for(var r in e)("constructor"!=r||!t&&I.call(e,r))&&n.push(r);return n}function ue(e,t,n,r,o){e!==t&&ie(t,(function(i,a){if(o||(o=new J),Ce(i))!function(e,t,n,r,o,i,a){var l=ge(e,n),c=ge(t,n),u=a.get(c);if(u)return void ee(e,n,u);var d=i?i(l,c,n+"",e,t,a):void 0,f=void 0===d;if(f){var p=we(c),h=!p&&Se(c),m=!p&&!h&&Ie(c);d=c,p||h||m?we(l)?d=l:Te(v=l)&&ke(v)?d=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(l):h?(f=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=D?D(n):new e.constructor(n);return e.copy(r),r}(c,!0)):m?(f=!1,d=function(e,t){var n=t?function(e){var t=new e.constructor(e.byteLength);return new N(t).set(new N(e)),t}(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(c,!0)):d=[]:function(e){if(!Te(e)||ae(e)!=s)return!1;var t=L(e);if(null===t)return!0;var n=I.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&T.call(n)==P}(c)||xe(c)?(d=l,xe(l)?d=function(e){return function(e,t,n,r){var o=!n;n||(n={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?re(n,s,l):te(n,s,l)}return n}(e,Be(e))}(l):Ce(l)&&!_e(l)||(d=function(e){return"function"!=typeof e.constructor||ve(e)?{}:K(L(e))}(c))):f=!1}var v;f&&(a.set(c,d),o(d,c,r,i,a),a.delete(c));ee(e,n,d)}(e,t,a,n,ue,r,o);else{var l=r?r(ge(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),ee(e,a,l)}}),Be)}function de(e,t){return ye(function(e,t,n){return t=U(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=U(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),x(e,this,s)}}(e,t,Re),e+"")}var fe=F?function(e,t){return F(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Re;function pe(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function he(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return le(n)?n:void 0}function me(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&c.test(e))&&e>-1&&e%1==0&&e<t}function ve(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||E)}function ge(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var ye=function(e){var t=0,n=0;return function(){var r=$(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(fe);function be(e,t){return e===t||e!==e&&t!==t}var xe=se(function(){return arguments}())?se:function(e){return Te(e)&&I.call(e,"callee")&&!z.call(e,"callee")},we=Array.isArray;function ke(e){return null!=e&&Ee(e.length)&&!_e(e)}var Se=H||function(){return!1};function _e(e){if(!Ce(e))return!1;var t=ae(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==typeof e}var Ie=b?function(e){return function(t){return e(t)}}(b):function(e){return Te(e)&&Ee(e.length)&&!!u[ae(e)]};function Be(e){return ke(e)?Q(e,!0):ce(e)}var Oe,Pe=(Oe=function(e,t,n){ue(e,t,n)},de((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Oe.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!Ce(n))return!1;var r=typeof t;return!!("number"==r?ke(n)&&me(t,n.length):"string"==r&&t in n)&&be(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&Oe(e,a,n,o)}return e})));function Re(e){return e}e.exports=Pe},3881:function(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),f=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return d.Date.now()};function v(e,t,n){var o,i,a,s,l,c,u=0,d=!1,f=!1,v=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=o,r=i;return o=i=void 0,u=t,s=e.apply(r,n)}function x(e){return u=e,l=setTimeout(k,t),d?b(e):s}function w(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=a}function k(){var e=m();if(w(e))return S(e);l=setTimeout(k,function(e){var n=t-(e-c);return f?h(n,a-(e-u)):n}(e))}function S(e){return l=void 0,v&&o?b(e):(o=i=void 0,s)}function _(){var e=m(),n=w(e);if(o=arguments,i=this,c=e,n){if(void 0===l)return x(c);if(f)return l=setTimeout(k,t),b(c)}return void 0===l&&(l=setTimeout(k,t)),s}return t=y(t)||0,g(n)&&(d=!!n.leading,a=(f="maxWait"in n)?p(y(n.maxWait)||0,t):a,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==l&&clearTimeout(l),u=0,o=c=i=l=void 0},_.flush=function(){return void 0===l?s:S(m())},_}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return g(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),v(e,t,{leading:o,maxWait:t,trailing:i})}},2895:function(e,t,n){var r,o;!function(i,a){"use strict";r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function o(e,t){var n=e[t];if("function"===typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(r){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?i:void 0!==console[r]?o(console,r):void 0!==console.log?o(console,"log"):e)}function s(t,n){for(var o=0;o<r.length;o++){var i=r[o];this[i]=o<t?e:this.methodFactory(i,t,n)}this.log=this.debug}function l(e,n,r){return function(){typeof console!==t&&(s.call(this,n,r),this[e].apply(this,arguments))}}function c(e,t,n){return a(e)||l.apply(this,arguments)}function u(e,n,o){var i,a=this;n=null==n?"WARN":n;var l="loglevel";function u(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&l){try{return void(window.localStorage[l]=n)}catch(o){}try{window.document.cookie=encodeURIComponent(l)+"="+n+";"}catch(o){}}}function d(){var e;if(typeof window!==t&&l){try{e=window.localStorage[l]}catch(o){}if(typeof e===t)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(l)+"=");-1!==r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(o){}return void 0===a.levels[e]&&(e=void 0),e}}function f(){if(typeof window!==t&&l){try{return void window.localStorage.removeItem(l)}catch(e){}try{window.document.cookie=encodeURIComponent(l)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}"string"===typeof e?l+=":"+e:"symbol"===typeof e&&(l=void 0),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=o||c,a.getLevel=function(){return i},a.setLevel=function(n,r){if("string"===typeof n&&void 0!==a.levels[n.toUpperCase()]&&(n=a.levels[n.toUpperCase()]),!("number"===typeof n&&n>=0&&n<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(i=n,!1!==r&&u(n),s.call(a,n,e),typeof console===t&&n<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){n=e,d()||a.setLevel(e,!1)},a.resetLevel=function(){a.setLevel(n,!1),f()},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var p=d();null==p&&(p=n),a.setLevel(p,!1)}var d=new u,f={};d.getLogger=function(e){if("symbol"!==typeof e&&"string"!==typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new u(e,d.getLevel(),d.methodFactory)),t};var p=typeof window!==t?window.log:void 0;return d.noConflict=function(){return typeof window!==t&&window.log===d&&(window.log=p),d},d.getLoggers=function(){return f},d.default=d,d},void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)}()},4924:function(e,t,n){e.exports=n(3765)},6518:function(e,t,n){"use strict";var r=n(4924),o=n(9421).extname,i=/^\s*([^;\s]*)(?:;|\s|$)/,a=/^text\//i;function s(e){if(!e||"string"!==typeof e)return!1;var t=i.exec(e),n=t&&r[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!a.test(t[1]))&&"UTF-8"}t.charset=s,t.charsets={lookup:s},t.contentType=function(e){if(!e||"string"!==typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var r=t.charset(n);r&&(n+="; charset="+r.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!==typeof e)return!1;var n=i.exec(e),r=n&&t.extensions[n[1].toLowerCase()];if(!r||!r.length)return!1;return r[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!==typeof e)return!1;var n=o("x."+e).toLowerCase().substr(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),function(e,t){var n=["nginx","apache",void 0,"iana"];Object.keys(r).forEach((function(o){var i=r[o],a=i.extensions;if(a&&a.length){e[o]=a;for(var s=0;s<a.length;s++){var l=a[s];if(t[l]){var c=n.indexOf(r[t[l]].source),u=n.indexOf(i.source);if("application/octet-stream"!==t[l]&&(c>u||c===u&&"application/"===t[l].substr(0,12)))continue}t[l]=o}}}))}(t.extensions,t.types)},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},3912:function(e,t,n){var r;e=n.nmd(e),function(){"use strict";var o={function:!0,object:!0},i=o[typeof window]&&window||this,a=o[typeof t]&&t,s=o.object&&e&&!e.nodeType&&e,l=a&&s&&"object"==typeof n.g&&n.g;!l||l.global!==l&&l.window!==l&&l.self!==l||(i=l);var c=Math.pow(2,53)-1,u=/\bOpera/,d=Object.prototype,f=d.hasOwnProperty,p=d.toString;function h(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function m(e){return e=x(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:h(e)}function v(e,t){for(var n in e)f.call(e,n)&&t(e[n],n,e)}function g(e){return null==e?h(e):p.call(e).slice(8,-1)}function y(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function b(e,t){var n=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=c)for(;++n<r;)t(e[n],n,e);else v(e,t)}(e,(function(r,o){n=t(n,r,o,e)})),n}function x(e){return String(e).replace(/^ +| +$/g,"")}var w=function e(t){var n=i,r=t&&"object"==typeof t&&"String"!=g(t);r&&(n=t,t=null);var o=n.navigator||{},a=o.userAgent||"";t||(t=a);var s,l,c=r?!!o.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(p.toString()),d="Object",f=r?d:"ScriptBridgingProxyObject",h=r?d:"Environment",w=r&&n.java?"JavaPackage":g(n.java),k=r?d:"RuntimeObject",S=/\bJava/.test(w)&&n.java,_=S&&g(n.environment)==h,E=S?"a":"\u03b1",C=S?"b":"\u03b2",T=n.document||{},I=n.operamini||n.opera,B=u.test(B=r&&I?I["[[Class]]"]:g(I))?B:I=null,O=t,P=[],R=null,A=t==a,M=A&&I&&"function"==typeof I.version&&I.version(),N=b([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,n){return e||RegExp("\\b"+(n.pattern||y(n))+"\\b","i").exec(t)&&(n.label||n)})),D=function(e){return b(e,(function(e,n){return e||RegExp("\\b"+(n.pattern||y(n))+"\\b","i").exec(t)&&(n.label||n)}))}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),L=W([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),j=function(e){return b(e,(function(e,n,r){return e||(n[L]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+y(r)+"(?:\\b|\\w*\\d)","i").exec(t))&&r}))}({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),z=function(e){return b(e,(function(e,n){var r=n.pattern||y(n);return!e&&(e=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),m(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,r,n.label||n)),e}))}(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function W(e){return b(e,(function(e,n){var r=n.pattern||y(n);return!e&&(e=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=m(e[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}function Z(e){return b(e,(function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))}if(N&&(N=[N]),/\bAndroid\b/.test(z)&&!L&&(s=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(t))&&(L=x(s[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),j&&!L?L=W([j]):j&&L&&(L=L.replace(RegExp("^("+y(j)+")[-_.\\s]","i"),j+" ").replace(RegExp("^("+y(j)+")[-_.]?(\\w)","i"),j+" $2")),(s=/\bGoogle TV\b/.exec(L))&&(L=s[0]),/\bSimulator\b/i.test(t)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==D&&/\bOPiOS\b/.test(t)&&P.push("running in Turbo/Uncompressed mode"),"IE"==D&&/\blike iPhone OS\b/.test(t)?(j=(s=e(t.replace(/like iPhone OS/,""))).manufacturer,L=s.product):/^iP/.test(L)?(D||(D="Safari"),z="iOS"+((s=/ OS ([\d_]+)/i.exec(t))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"==D&&/^Linux\b/i.test(z)?z="Kubuntu":j&&"Google"!=j&&(/Chrome/.test(D)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(L))||/\bAndroid\b/.test(z)&&/^Chrome/.test(D)&&/\bVersion\//i.test(t)?(D="Android Browser",z=/\bAndroid\b/.test(z)?z:"Android"):"Silk"==D?(/\bMobi/i.test(t)||(z="Android",P.unshift("desktop mode")),/Accelerated *=*true/i.test(t)&&P.unshift("accelerated")):"UC Browser"==D&&/\bUCWEB\b/.test(t)?P.push("speed mode"):"PaleMoon"==D&&(s=/\bFirefox\/([\d.]+)\b/.exec(t))?P.push("identifying as Firefox "+s[1]):"Firefox"==D&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(z||(z="Firefox OS"),L||(L=s[1])):!D||(s=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(D))?(D&&!L&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(s+"/")+8))&&(D=null),(s=L||j||z)&&(L||j||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(z))&&(D=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(z)?z:s)+" Browser")):"Electron"==D&&(s=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&P.push("Chromium "+s),M||(M=Z(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",y(D),"(?:Firefox|Minefield|NetFront)"])),(s=("iCab"==N&&parseFloat(M)>3?"WebKit":/\bOpera\b/.test(D)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(N)&&"WebKit"||!N&&/\bMSIE\b/i.test(t)&&("Mac OS"==z?"Tasman":"Trident")||"WebKit"==N&&/\bPlayStation\b(?! Vita\b)/i.test(D)&&"NetFront")&&(N=[s]),"IE"==D&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(D+=" Mobile",z="Windows Phone "+(/\+$/.test(s)?s:s+".x"),P.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(D="IE Mobile",z="Windows Phone 8.x",P.unshift("desktop mode"),M||(M=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=D&&"Trident"==N&&(s=/\brv:([\d.]+)/.exec(t))&&(D&&P.push("identifying as "+D+(M?" "+M:"")),D="IE",M=s[1]),A){if(function(e,t){var n=null!=e?typeof e[t]:"number";return!/^(?:boolean|number|string|undefined)$/.test(n)&&("object"!=n||!!e[t])}(n,"global"))if(S&&(O=(s=S.lang.System).getProperty("os.arch"),z=z||s.getProperty("os.name")+" "+s.getProperty("os.version")),_){try{M=n.require("ringo/engine").version.join("."),D="RingoJS"}catch(H){(s=n.system)&&s.global.system==n.system&&(D="Narwhal",z||(z=s[0].os||null))}D||(D="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(P.push("Node "+s.versions.node),D="Electron",M=s.versions.electron):"string"==typeof s.versions.nw&&(P.push("Chromium "+M,"Node "+s.versions.node),D="NW.js",M=s.versions.nw)),D||(D="Node.js",O=s.arch,z=s.platform,M=(M=/[\d.]+/.exec(s.version))?M[0]:null));else g(s=n.runtime)==f?(D="Adobe AIR",z=s.flash.system.Capabilities.os):g(s=n.phantom)==k?(D="PhantomJS",M=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof T.documentMode&&(s=/\bTrident\/(\d+)/i.exec(t))?(M=[M,T.documentMode],(s=+s[1]+4)!=M[1]&&(P.push("IE "+M[1]+" mode"),N&&(N[1]=""),M[1]=s),M="IE"==D?String(M[1].toFixed(1)):M[0]):"number"==typeof T.documentMode&&/^(?:Chrome|Firefox)\b/.test(D)&&(P.push("masking as "+D+" "+M),D="IE",M="11.0",N=["Trident"],z="Windows");z=z&&m(z)}if(M&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(M)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(A&&o.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(R=/b/i.test(s)?"beta":"alpha",M=M.replace(RegExp(s+"\\+?$"),"")+("beta"==R?C:E)+(/\d+\+?/.exec(s)||"")),"Fennec"==D||"Firefox"==D&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(z))D="Firefox Mobile";else if("Maxthon"==D&&M)M=M.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(z=null),"Xbox 360"==L&&/\bIEMobile\b/.test(t)&&P.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(D)&&(!D||L||/Browser|Mobi/.test(D))||"Windows CE"!=z&&!/Mobi/i.test(t))if("IE"==D&&A)try{null===n.external&&P.unshift("platform preview")}catch(H){P.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(t))&&(s=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||M)?(z=((s=[s,/BB10/.test(t)])[1]?(L=null,j="BlackBerry"):"Device Software")+" "+s[0],M=null):this!=v&&"Wii"!=L&&(A&&I||/Opera/.test(D)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==D&&/\bOS X (?:\d+\.){2,}/.test(z)||"IE"==D&&(z&&!/^Win/.test(z)&&M>5.5||/\bWindows XP\b/.test(z)&&M>8||8==M&&!/\bTrident\b/.test(t)))&&!u.test(s=e.call(v,t.replace(u,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),u.test(D)?(/\bIE\b/.test(s)&&"Mac OS"==z&&(z=null),s="identify"+s):(s="mask"+s,D=B?m(B.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(z=null),A||(M=null)),N=["Presto"],P.push(s));else D+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==D&&"+"==s[1].slice(-1)?(D="WebKit Nightly",R="alpha",M=s[1].slice(0,-1)):M!=s[1]&&M!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(M=null),s[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==N&&(N=["Blink"]),A&&(c||s[1])?(N&&(N[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=N?"27":"28")):(N&&(N[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:s<602?9:s<604?10:s<606?11:s<608?12:"12"),N&&(N[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==D&&(!M||parseInt(M)>45)?M=s:"Chrome"==D&&/\bHeadlessChrome/i.test(t)&&P.unshift("headless")),"Opera"==D&&(s=/\bzbov|zvav$/.exec(z))?(D+=" ",P.unshift("desktop mode"),"zvav"==s?(D+="Mini",M=null):D+="Mobile",z=z.replace(RegExp(" *"+s+"$"),"")):"Safari"==D&&/\bChrome\b/.exec(N&&N[1])?(P.unshift("desktop mode"),D="Chrome Mobile",M=null,/\bOS X\b/.test(z)?(j="Apple",z="iOS 4.3+"):z=null):/\bSRWare Iron\b/.test(D)&&!M&&(M=Z("Chrome")),M&&0==M.indexOf(s=/[\d.]+$/.exec(z))&&t.indexOf("/"+s+"-")>-1&&(z=x(z.replace(s,""))),z&&-1!=z.indexOf(D)&&!RegExp(D+" OS").test(z)&&(z=z.replace(RegExp(" *"+y(D)+" *"),"")),N&&!/\b(?:Avant|Nook)\b/.test(D)&&(/Browser|Lunascape|Maxthon/.test(D)||"Safari"!=D&&/^iOS/.test(z)&&/\bSafari\b/.test(N[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(D)&&N[1])&&(s=N[N.length-1])&&P.push(s),P.length&&(P=["("+P.join("; ")+")"]),j&&L&&L.indexOf(j)<0&&P.push("on "+j),L&&P.push((/^on /.test(P[P.length-1])?"":"on ")+L),z&&(s=/ ([\d.+]+)$/.exec(z),l=s&&"/"==z.charAt(z.length-s[0].length-1),z={architecture:32,family:s&&!l?z.replace(s[0],""):z,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(O))&&!/\bi686\b/i.test(O)?(z&&(z.architecture=64,z.family=z.family.replace(RegExp(" *"+s),"")),D&&(/\bWOW64\b/i.test(t)||A&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(t))&&P.unshift("32-bit")):z&&/^OS X/.test(z.family)&&"Chrome"==D&&parseFloat(M)>=39&&(z.architecture=64),t||(t=null);var F={};return F.description=t,F.layout=N&&N[0],F.manufacturer=j,F.name=D,F.prerelease=R,F.product=L,F.ua=t,F.version=D&&M,F.os=z||{architecture:null,family:null,version:null,toString:function(){return"null"}},F.parse=e,F.toString=function(){return this.description||""},F.version&&P.unshift(M),F.name&&P.unshift(D),z&&D&&(z!=String(z).split(" ")[0]||z!=D.split(" ")[0]&&!L)&&P.push(L?"("+z+")":"on "+z),P.length&&(F.description=P.join(" ")),F}();i.platform=w,void 0===(r=function(){return w}.call(t,n,t,e))||(e.exports=r)}.call(this)},4463:function(e,t,n){"use strict";var r=n(2791),o=n(1725),i=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(m,e)||!p.call(h,e)&&(f.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,_=60107,E=60108,C=60114,T=60109,I=60110,B=60112,O=60113,P=60120,R=60115,A=60116,M=60121,N=60128,D=60129,L=60130,j=60131;if("function"===typeof Symbol&&Symbol.for){var z=Symbol.for;k=z("react.element"),S=z("react.portal"),_=z("react.fragment"),E=z("react.strict_mode"),C=z("react.profiler"),T=z("react.provider"),I=z("react.context"),B=z("react.forward_ref"),O=z("react.suspense"),P=z("react.suspense_list"),R=z("react.memo"),A=z("react.lazy"),M=z("react.block"),z("react.scope"),N=z("react.opaque.id"),D=z("react.debug_trace_mode"),L=z("react.offscreen"),j=z("react.legacy_hidden")}var W,Z="function"===typeof Symbol&&Symbol.iterator;function F(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=Z&&e[Z]||e["@@iterator"])?e:null}function H(e){if(void 0===W)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);W=t&&t[1]||""}return"\n"+W+e}var U=!1;function $(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var o=l.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function G(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=$(e.type,!1);case 11:return e=$(e.type.render,!1);case 22:return e=$(e.type._render,!1);case 1:return e=$(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case C:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case B:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return q(e.type);case M:return q(e._render);case A:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ce(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ge=(ve=function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Ie=null,Be=null;function Oe(e){if(e=ro(e)){if("function"!==typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=io(t),Te(e.stateNode,e.type,t))}}function Pe(e){Ie?Be?Be.push(e):Be=[e]:Ie=e}function Re(){if(Ie){var e=Ie,t=Be;if(Be=Ie=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Ae(e,t){return e(t)}function Me(e,t,n,r,o){return e(t,n,r,o)}function Ne(){}var De=Ae,Le=!1,je=!1;function ze(){null===Ie&&null===Be||(Ne(),Re())}function We(e,t){var n=e.stateNode;if(null===n)return null;var r=io(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ze=!1;if(d)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Ze=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ve){Ze=!1}function He(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ue=!1,$e=null,Ge=!1,qe=null,Ke={onError:function(e){Ue=!0,$e=e}};function Ve(e,t,n,r,o,i,a,s,l){Ue=!1,$e=null,He.apply(Ke,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Ye(e)!==e)throw Error(a(188))}function Qe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Je(o),e;if(i===r)return Je(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,ft=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function vt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function gt(e){var t=no(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function xt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),ut.forEach(bt),dt.forEach(bt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,xt)))}function kt(e){function t(t){return wt(t,e)}if(0<at.length){wt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&wt(st,e),null!==lt&&wt(lt,e),null!==ct&&wt(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)gt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Et={},Ct={};function Tt(e){if(Et[e])return Et[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return Et[e]=n[t];return e}d&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var It=Tt("animationend"),Bt=Tt("animationiteration"),Ot=Tt("animationstart"),Pt=Tt("transitionend"),Rt=new Map,At=new Map,Mt=["abort","abort",It,"animationEnd",Bt,"animationIteration",Ot,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Nt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),At.set(r,t),Rt.set(r,o),c(o,[r])}}(0,i.unstable_now)();var Dt=8;function Lt(e){if(0!==(1&e))return Dt=15,1;if(0!==(2&e))return Dt=14,2;if(0!==(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!==(32&e)?(Dt=11,32):0!==(t=192&e)?(Dt=10,t):0!==(256&e)?(Dt=9,256):0!==(t=3584&e)?(Dt=8,t):0!==(4096&e)?(Dt=7,4096):0!==(t=4186112&e)?(Dt=6,t):0!==(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!==(134217728&e)?(Dt=3,134217728):0!==(t=805306368&e)?(Dt=2,t):0!==(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function jt(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=Dt=15;else if(0!==(i=134217727&n)){var l=i&~a;0!==l?(r=Lt(l),o=Dt):0!==(s&=i)&&(r=Lt(s),o=Dt)}else 0!==(i=n&~a)?(r=Lt(i),o=Dt):0!==s&&(r=Lt(s),o=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Ut(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Lt(t),o<=Dt)return t;Dt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ut(t)),r|=e[n],t&=~o;return r}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Wt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Zt(24&~t))?Wt(10,t):e;case 10:return 0===(e=Zt(192&~t))?Wt(8,t):e;case 8:return 0===(e=Zt(3584&~t))&&(0===(e=Zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Zt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Zt(e){return e&-e}function Ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ut(t)]=n}var Ut=Math.clz32?Math.clz32:function(e){return 0===e?32:31-($t(e)/Gt|0)|0},$t=Math.log,Gt=Math.LN2;var qt=i.unstable_UserBlockingPriority,Kt=i.unstable_runWithPriority,Vt=!0;function Yt(e,t,n,r){Le||Ne();var o=Jt,i=Le;Le=!0;try{Me(o,e,t,n,r)}finally{(Le=i)||ze()}}function Xt(e,t,n,r){Kt(qt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var o;if(Vt)if((o=0===(4&t))&&0<at.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=Qt(e,t,n,r);if(null===i)o&&mt(e,r);else{if(o){if(-1<pt.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return st=vt(st,e,t,n,r,o),!0;case"dragenter":return lt=vt(lt,e,t,n,r,o),!0;case"mouseover":return ct=vt(ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,vt(ut.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,vt(dt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Nr(e,t,r,null,n)}}}function Qt(e,t,n,r){var o=Ce(r);if(null!==(o=no(o))){var i=Ye(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Nr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function sn(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:sn,this.isPropagationStopped=sn,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,un,dn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=ln(fn),hn=o({},fn,{view:0,detail:0}),mn=ln(hn),vn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:In,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,un=e.screenY-dn.screenY):un=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),gn=ln(vn),yn=ln(o({},vn,{dataTransfer:0})),bn=ln(o({},hn,{relatedTarget:0})),xn=ln(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kn=ln(wn),Sn=ln(o({},fn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function In(){return Tn}var Bn=o({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:In,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=ln(Bn),Pn=ln(o({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=ln(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:In})),An=ln(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=o({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=ln(Mn),Dn=[9,13,27,32],Ln=d&&"CompositionEvent"in window,jn=null;d&&"documentMode"in document&&(jn=document.documentMode);var zn=d&&"TextEvent"in window&&!jn,Wn=d&&(!Ln||jn&&8<jn&&11>=jn),Zn=String.fromCharCode(32),Fn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Kn(e,t,n,r){Pe(r),0<(t=Lr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Yn=null;function Xn(e){Br(e,0)}function Jn(e){if(X(oo(e)))return e}function Qn(e,t){if("change"===e)return t}var er=!1;if(d){var tr;if(d){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){Vn&&(Vn.detachEvent("onpropertychange",ir),Yn=Vn=null)}function ir(e){if("value"===e.propertyName&&Jn(Yn)){var t=[];if(Kn(t,Yn,e,Ce(e)),e=Xn,Le)e(t);else{Le=!0;try{Ae(e,t)}finally{Le=!1,ze()}}}}function ar(e,t,n){"focusin"===e?(or(),Yn=n,(Vn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&or()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Yn)}function lr(e,t){if("click"===e)return Jn(t)}function cr(e,t){if("input"===e||"change"===e)return Jn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},dr=Object.prototype.hasOwnProperty;function fr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!dr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=d&&"documentMode"in document&&11>=document.documentMode,br=null,xr=null,wr=null,kr=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==br||br!==J(r)||("selectionStart"in(r=br)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&fr(wr,r)||(wr=r,0<(r=Lr(xr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Nt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Nt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Nt(Mt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<_r.length;Er++)At.set(_r[Er],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function Ir(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if(Ve.apply(this,arguments),Ue){if(!Ue)throw Error(a(198));var u=$e;Ue=!1,$e=null,Ge||(Ge=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Br(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ir(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ir(o,s,c),i=l}}}if(Ge)throw e=qe,Ge=!1,qe=null,e}function Or(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Mr(t,e,2,!1),n.add(r))}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Rr(e){e[Pr]||(e[Pr]=!0,s.forEach((function(t){Tr.has(t)||Ar(t,!1,e,null),Ar(t,!0,e,null)})))}function Ar(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Tr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ao(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Mr(i,e,o,t),a.add(s))}function Mr(e,t,n,r){var o=At.get(t);switch(void 0===o?2:o){case 0:o=Yt;break;case 1:o=Xt;break;default:o=Jt}n=o.bind(null,t,n,e),o=void 0,!Ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=no(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(je)return e(t,n);je=!0;try{De(e,t,n)}finally{je=!1,ze()}}((function(){var r=i,o=Ce(n),a=[];e:{var s=Rt.get(e);if(void 0!==s){var l=pn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":c="focus",l=bn;break;case"focusout":c="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case It:case Bt:case Ot:l=xn;break;case Pt:l=An;break;case"scroll":l=mn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=We(h,f))&&u.push(Dr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!no(c)&&!c[eo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?no(c):null)&&(c!==(d=Ye(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Pn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:oo(l),p=null==c?s:oo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,no(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=jr(p))h++;for(p=0,m=f;m;m=jr(m))p++;for(;0<h-p;)u=jr(u),h--;for(;0<p-h;)f=jr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=jr(u),f=jr(f)}u=null}else u=null;null!==l&&zr(a,s,l,u,!1),null!==c&&null!==d&&zr(a,d,c,u,!0)}if("select"===(l=(s=r?oo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Qn;else if(qn(s))if(er)v=cr;else{v=sr;var g=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=lr);switch(v&&(v=v(e,r))?Kn(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&oe(s,"number",s.value)),g=r?oo(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(br=g,xr=r,wr=null);break;case"focusout":wr=xr=br=null;break;case"mousedown":kr=!0;break;case"contextmenu":case"mouseup":case"dragend":kr=!1,Sr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(a,n,o)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Wn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=rn()):(tn="value"in(en=o)?en.value:en.textContent,$n=!0)),0<(g=Lr(r,b)).length&&(b=new Sn(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=zn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,Zn);case"textInput":return(e=t.data)===Zn&&Fn?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Ln&&Hn(e,t)?(e=rn(),nn=tn=en=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Wn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(o=new Sn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Br(a,t)}))}function Dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=We(e,n))&&r.unshift(Dr(e,i,o)),null!=(i=We(e,t))&&r.push(Dr(e,i,o))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=We(n,i))&&a.unshift(Dr(n,l,s)):o||null!=(l=We(n,i))&&a.push(Dr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Wr(){}var Zr=null,Fr=null;function Hr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var $r="function"===typeof setTimeout?setTimeout:void 0,Gr="function"===typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Kr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Vr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Xr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Xr,Qr="__reactProps$"+Xr,eo="__reactContainer$"+Xr,to="__reactEvents$"+Xr;function no(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Vr(e);null!==e;){if(n=e[Jr])return n;e=Vr(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Jr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function io(e){return e[Qr]||null}function ao(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var so=[],lo=-1;function co(e){return{current:e}}function uo(e){0>lo||(e.current=so[lo],so[lo]=null,lo--)}function fo(e,t){lo++,so[lo]=e.current,e.current=t}var po={},ho=co(po),mo=co(!1),vo=po;function go(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bo(){uo(mo),uo(ho)}function xo(e,t,n){if(ho.current!==po)throw Error(a(168));fo(ho,t),fo(mo,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,q(t)||"Unknown",i));return o({},n,r)}function ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,vo=ho.current,fo(ho,e),fo(mo,mo.current),!0}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wo(e,t,vo),r.__reactInternalMemoizedMergedChildContext=e,uo(mo),uo(ho),fo(ho,e)):uo(mo),fo(mo,n)}var _o=null,Eo=null,Co=i.unstable_runWithPriority,To=i.unstable_scheduleCallback,Io=i.unstable_cancelCallback,Bo=i.unstable_shouldYield,Oo=i.unstable_requestPaint,Po=i.unstable_now,Ro=i.unstable_getCurrentPriorityLevel,Ao=i.unstable_ImmediatePriority,Mo=i.unstable_UserBlockingPriority,No=i.unstable_NormalPriority,Do=i.unstable_LowPriority,Lo=i.unstable_IdlePriority,jo={},zo=void 0!==Oo?Oo:function(){},Wo=null,Zo=null,Fo=!1,Ho=Po(),Uo=1e4>Ho?Po:function(){return Po()-Ho};function $o(){switch(Ro()){case Ao:return 99;case Mo:return 98;case No:return 97;case Do:return 96;case Lo:return 95;default:throw Error(a(332))}}function Go(e){switch(e){case 99:return Ao;case 98:return Mo;case 97:return No;case 96:return Do;case 95:return Lo;default:throw Error(a(332))}}function qo(e,t){return e=Go(e),Co(e,t)}function Ko(e,t,n){return e=Go(e),To(e,t,n)}function Vo(){if(null!==Zo){var e=Zo;Zo=null,Io(e)}Yo()}function Yo(){if(!Fo&&null!==Wo){Fo=!0;var e=0;try{var t=Wo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Wo=null}catch(n){throw null!==Wo&&(Wo=Wo.slice(e+1)),To(Ao,Vo),n}finally{Fo=!1}}}var Xo=w.ReactCurrentBatchConfig;function Jo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qo=co(null),ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e){var t=Qo.current;uo(Qo),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(La=!0),e.firstContext=null)}function si(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var li=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hi(e,t,n,r){var i=e.updateQueue;li=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(f=i.baseState,s=0,d=u=c=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){f=h.call(p,f,l);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"===typeof(h=m.payload)?h.call(p,f,l):h)||void 0===l)break e;f=o({},f,l);break e;case 2:li=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=p,c=f):d=d.next=p,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(c=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Zs|=s,e.lanes=s,e.memoizedState=f}}function mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var vi=(new r.Component).refs;function gi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fl(),o=pl(e),i=di(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),fi(e,i),hl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fl(),o=pl(e),i=di(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),fi(e,i),hl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fl(),r=pl(e),o=di(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),fi(e,o),hl(e,r,n)}};function bi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!fr(n,r)||!fr(o,i))}function xi(e,t,n){var r=!1,o=po,i=t.contextType;return"object"===typeof i&&null!==i?i=si(i):(o=yo(t)?vo:ho.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?go(e,o):po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function ki(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=vi,ci(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=si(i):(i=yo(t)?vo:ho.current,o.context=go(e,i)),hi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yi.enqueueReplaceState(o,o.state,null),hi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var Si=Array.isArray;function _i(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===vi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ci(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Gl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=_i(e,t,n),r.return=e,r):((r=ql(n.type,n.key,n.props,null,e.mode,r)).ref=_i(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Kl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=ql(t.type,t.key,t.props,null,e.mode,n)).ref=_i(e,null,t),n.return=e,n;case S:return(t=Xl(t,e.mode,n)).return=e,t}if(Si(t)||F(t))return(t=Kl(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===o?n.type===_?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null}if(Si(n)||F(n))return null!==o?null:d(e,t,n,r,null);Ei(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===_?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Si(r)||F(r))return d(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(o,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g,d=v}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(v=h(d,o,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v);return e&&d.forEach((function(e){return t(o,e)})),c}function v(o,s,l,c){var u=F(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,v),null===d?u=b:d.sibling=b,d=b,m=g}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(o,y.value,c))&&(s=i(y,s,v),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(o,m);!y.done;v++,y=l.next())null!==(y=h(m,o,v,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=i(y,s,v),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"===typeof i&&null!==i&&i.type===_&&null===i.key;c&&(i=i.props.children);var u="object"===typeof i&&null!==i;if(u)switch(i.$$typeof){case k:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===_){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=_i(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===_?((r=Kl(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=ql(i.type,i.key,i.props,null,e.mode,l)).ref=_i(e,r,i),l.return=e,e=l)}return s(e);case S:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Yl(i,e.mode,l)).return=e,e=r),s(e);if(Si(i))return m(e,r,i,l);if(F(i))return v(e,r,i,l);if(u&&Ei(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,q(e.type)||"Component"))}return n(e,r)}}var Ti=Ci(!0),Ii=Ci(!1),Bi={},Oi=co(Bi),Pi=co(Bi),Ri=co(Bi);function Ai(e){if(e===Bi)throw Error(a(174));return e}function Mi(e,t){switch(fo(Ri,t),fo(Pi,e),fo(Oi,Bi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Oi),fo(Oi,t)}function Ni(){uo(Oi),uo(Pi),uo(Ri)}function Di(e){Ai(Ri.current);var t=Ai(Oi.current),n=he(t,e.type);t!==n&&(fo(Pi,e),fo(Oi,n))}function Li(e){Pi.current===e&&(uo(Oi),uo(Pi))}var ji=co(0);function zi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wi=null,Zi=null,Fi=!1;function Hi(e,t){var n=Ul(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function $i(e){if(Fi){var t=Zi;if(t){var n=t;if(!Ui(e,t)){if(!(t=Kr(n.nextSibling))||!Ui(e,t))return e.flags=-1025&e.flags|2,Fi=!1,void(Wi=e);Hi(Wi,n)}Wi=e,Zi=Kr(t.firstChild)}else e.flags=-1025&e.flags|2,Fi=!1,Wi=e}}function Gi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Wi=e}function qi(e){if(e!==Wi)return!1;if(!Fi)return Gi(e),Fi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=Zi;t;)Hi(e,t),t=Kr(t.nextSibling);if(Gi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Zi=Kr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Zi=null}}else Zi=Wi?Kr(e.stateNode.nextSibling):null;return!0}function Ki(){Zi=Wi=null,Fi=!1}var Vi=[];function Yi(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Xi=w.ReactCurrentDispatcher,Ji=w.ReactCurrentBatchConfig,Qi=0,ea=null,ta=null,na=null,ra=!1,oa=!1;function ia(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,o,i){if(Qi=i,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?Aa:Ma,e=n(r,o),oa){i=0;do{if(oa=!1,!(25>i))throw Error(a(301));i+=1,na=ta=null,t.updateQueue=null,Xi.current=Na,e=n(r,o)}while(oa)}if(Xi.current=Ra,t=null!==ta&&null!==ta.next,Qi=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ca(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ua(e,t){return"function"===typeof t?t(e):t}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.lane;if((Qi&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,ea.lanes|=u,Zs|=u}c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,ur(r,t.memoizedState)||(La=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fa(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ur(i,t.memoizedState)||(La=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function pa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Qi&e)===e)&&(t._workInProgressVersionPrimary=r,Vi.push(t))),e)return n(t._source);throw Vi.push(t),Error(a(350))}function ha(e,t,n,r){var o=As;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),l=Xi.current,c=l.useState((function(){return pa(o,t,n)})),u=c[1],d=c[0];c=na;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var v=ea;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=i(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(u(e),e=pl(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-Ut(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=pl(v);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=u=Pa.bind(null,ea,e),c.queue=e,c.baseQueue=null,d=pa(o,t,n),c.memoizedState=c.baseState=d),d}function ma(e,t,n){return ha(ca(),e,t,n)}function va(e){var t=la();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Pa.bind(null,ea,e),[t.memoizedState,e]}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},la().memoizedState=e}function ba(){return ca().memoizedState}function xa(e,t,n,r){var o=la();ea.flags|=e,o.memoizedState=ga(1|t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var o=ca();r=void 0===r?null:r;var i=void 0;if(null!==ta){var a=ta.memoizedState;if(i=a.destroy,null!==r&&aa(r,a.deps))return void ga(t,n,i,r)}ea.flags|=e,o.memoizedState=ga(1|t,n,i,r)}function ka(e,t){return xa(516,4,e,t)}function Sa(e,t){return wa(516,4,e,t)}function _a(e,t){return wa(4,2,e,t)}function Ea(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ca(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,Ea.bind(null,t,e),n)}function Ta(){}function Ia(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ba(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oa(e,t){var n=$o();qo(98>n?98:n,(function(){e(!0)})),qo(97<n?97:n,(function(){var n=Ji.transition;Ji.transition=1;try{e(!1),t()}finally{Ji.transition=n}}))}function Pa(e,t,n){var r=fl(),o=pl(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ea||null!==a&&a===ea)oa=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,ur(l,s))return}catch(c){}hl(e,o,r)}}var Ra={readContext:si,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Aa={readContext:si,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:si,useEffect:ka,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xa(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xa(4,2,e,t)},useMemo:function(e,t){var n=la();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=la();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Pa.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:va,useDebugValue:Ta,useDeferredValue:function(e){var t=va(e),n=t[0],r=t[1];return ka((function(){var t=Ji.transition;Ji.transition=1;try{r(e)}finally{Ji.transition=t}}),[e]),n},useTransition:function(){var e=va(!1),t=e[0];return ya(e=Oa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=la();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Fi){var e=!1,t=function(e){return{$$typeof:N,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(a(355))})),n=va(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,ga(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return va(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Ma={readContext:si,useCallback:Ia,useContext:si,useEffect:Sa,useImperativeHandle:Ca,useLayoutEffect:_a,useMemo:Ba,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:Ta,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return Sa((function(){var t=Ji.transition;Ji.transition=1;try{r(e)}finally{Ji.transition=t}}),[e]),n},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},Na={readContext:si,useCallback:Ia,useContext:si,useEffect:Sa,useImperativeHandle:Ca,useLayoutEffect:_a,useMemo:Ba,useReducer:fa,useRef:ba,useState:function(){return fa(ua)},useDebugValue:Ta,useDeferredValue:function(e){var t=fa(ua),n=t[0],r=t[1];return Sa((function(){var t=Ji.transition;Ji.transition=1;try{r(e)}finally{Ji.transition=t}}),[e]),n},useTransition:function(){var e=fa(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return fa(ua)[0]},unstable_isNewReconciler:!1},Da=w.ReactCurrentOwner,La=!1;function ja(e,t,n,r){t.child=null===e?Ii(t,null,n,r):Ti(t,e.child,n,r)}function za(e,t,n,r,o){n=n.render;var i=t.ref;return ai(t,o),r=sa(e,t,n,r,i,o),null===e||La?(t.flags|=1,ja(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Wa(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||$l(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ql(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Za(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(o,r)&&e.ref===t.ref)?is(e,t,i):(t.flags|=1,(e=Gl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Za(e,t,n,r,o,i){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(La=!1,0===(i&o))return t.lanes=e.lanes,is(e,t,i);0!==(16384&e.flags)&&(La=!0)}return Ua(e,t,n,r,i)}function Fa(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},kl(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},kl(t,e),null;t.memoizedState={baseLanes:0},kl(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,kl(t,r);return ja(e,t,o,n),t.child}function Ha(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ua(e,t,n,r,o){var i=yo(n)?vo:ho.current;return i=go(t,i),ai(t,o),n=sa(e,t,n,r,i,o),null===e||La?(t.flags|=1,ja(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function $a(e,t,n,r,o){if(yo(n)){var i=!0;ko(t)}else i=!1;if(ai(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),xi(t,n,r),ki(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=si(c):c=go(t,c=yo(n)?vo:ho.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&wi(t,a,r,c),li=!1;var f=t.memoizedState;a.state=f,hi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||mo.current||li?("function"===typeof u&&(gi(t,n,u,r),l=t.memoizedState),(s=li||bi(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ui(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Jo(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=si(l):l=go(t,l=yo(n)?vo:ho.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&wi(t,a,r,l),li=!1,f=t.memoizedState,a.state=f,hi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||mo.current||li?("function"===typeof p&&(gi(t,n,p,r),h=t.memoizedState),(c=li||bi(t,n,c,r,f,h,l))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Ga(e,t,n,r,i,o)}function Ga(e,t,n,r,o,i){Ha(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&So(t,n,!1),is(e,t,i);r=t.stateNode,Da.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ti(t,e.child,null,i),t.child=Ti(t,null,s,i)):ja(e,t,s,i),t.memoizedState=r.state,o&&So(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?xo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&xo(0,t.context,!1),Mi(e,t.containerInfo)}var Ka,Va,Ya,Xa={dehydrated:null,retryLane:0};function Ja(e,t,n){var r,o=t.pendingProps,i=ji.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),fo(ji,1&i),null===e?(void 0!==o.fallback&&$i(t),e=o.children,i=o.fallback,a?(e=Qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"===typeof o.unstable_expectedLoadTime?(e=Qa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Vl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ts(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,o):(n=es(e,t,o.children,n),t.memoizedState=null,n))}function Qa(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Vl(t,o,0,null),n=Kl(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function es(e,t,n,r){var o=e.child;return e=o.sibling,n=Gl(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Gl(a,s),null!==e?r=Gl(e,r):(r=Kl(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function rs(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function os(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ja(e,t,r.children,n),0!==(2&(r=ji.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(ji,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===zi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===zi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rs(t,!0,n,null,i,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function is(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Zs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Gl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Gl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Fi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yo(t.type)&&bo(),null;case 3:return Ni(),uo(mo),uo(ho),Yi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Li(t);var i=Ai(Ri.current);if(n=t.type,null!==e&&null!=t.stateNode)Va(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ai(Oi.current),qi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Qr]=s,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Or(Cr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,s),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Or("invalid",r);break;case"textarea":le(r,s),Or("invalid",r)}for(var c in _e(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Or("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Wr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Jr]=t,e[Qr]=r,Ka(e,t),t.stateNode=e,c=Ee(n,r),n){case"dialog":Or("cancel",e),Or("close",e),i=r;break;case"iframe":case"object":case"embed":Or("load",e),i=r;break;case"video":case"audio":for(i=0;i<Cr.length;i++)Or(Cr[i],e);i=r;break;case"source":Or("error",e),i=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),i=r;break;case"details":Or("toggle",e),i=r;break;case"input":ee(e,r),i=Q(e,r),Or("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Or("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Or("invalid",e);break;default:i=r}_e(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?ke(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ge(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"===typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Or("scroll",e):null!=d&&x(e,s,d,c))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Wr)}Hr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Ai(Ri.current),Ai(Oi.current),qi(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return uo(ji),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&ji.current)?0===js&&(js=3):(0!==js&&3!==js||(js=4),null===As||0===(134217727&Zs)&&0===(134217727&Fs)||yl(As,Ns))),(r||n)&&(t.flags|=4),null);case 4:return Ni(),null===e&&Rr(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(uo(ji),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)as(r,!1);else{if(0!==js||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=zi(e))){for(t.flags|=64,as(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fo(ji,1&ji.current|2),t.child}e=e.sibling}null!==r.tail&&Uo()>Gs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=zi(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Fi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Uo()-r.renderingStartTime>Gs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Uo(),n.sibling=null,t=ji.current,fo(ji,s?1&t|2:1&t),n):null;case 23:case 24:return Sl(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ls(e){switch(e.tag){case 1:yo(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ni(),uo(mo),uo(ho),Yi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Li(e),null;case 13:return uo(ji),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(ji),null;case 4:return Ni(),null;case 10:return oi(e),null;case 23:case 24:return Sl(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function us(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ka=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ai(Oi.current);var a,s=null;switch(n){case"input":i=Q(e,i),r=Q(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Wr)}for(d in _e(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Or("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===N?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ya=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"===typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Xs=r),us(0,t)},n}function ps(e,t,n){(n=di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return us(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Js?Js=new Set([this]):Js.add(this),us(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hs="function"===typeof WeakSet?WeakSet:Set;function ms(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Wl(e,n)}else t.current=null}function vs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(a(163))}function gs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Ll(n,e),Dl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Jo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))))}throw Error(a(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(Eo&&"function"===typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(_o,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Ll(t,n);else{r=t;try{o()}catch(i){Wl(r,i)}}n=n.next}while(n!==e)}break;case 1:if(ms(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Wl(t,i)}break;case 5:ms(t);break;case 4:Es(e,t)}}function xs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ws(e){return 5===e.tag||3===e.tag||4===e.tag}function ks(e){e:{for(var t=e.return;null!==t;){if(ws(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ws(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Ss(e,n,t):_s(e,n,t)}function Ss(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Wr));else if(4!==r&&null!==(e=e.child))for(Ss(e,t,n),e=e.sibling;null!==e;)Ss(e,t,n),e=e.sibling}function _s(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function Es(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(bs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Cs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,o),t=Ee(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?ke(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?ye(n,l):x(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 13:return null!==t.memoizedState&&($s=Uo(),ys(t.child,!0)),void Ts(t);case 19:return void Ts(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(a(163))}function Ts(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new hs),t.forEach((function(t){var r=Fl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Is(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Bs=Math.ceil,Os=w.ReactCurrentDispatcher,Ps=w.ReactCurrentOwner,Rs=0,As=null,Ms=null,Ns=0,Ds=0,Ls=co(0),js=0,zs=null,Ws=0,Zs=0,Fs=0,Hs=0,Us=null,$s=0,Gs=1/0;function qs(){Gs=Uo()+500}var Ks,Vs=null,Ys=!1,Xs=null,Js=null,Qs=!1,el=null,tl=90,nl=[],rl=[],ol=null,il=0,al=null,sl=-1,ll=0,cl=0,ul=null,dl=!1;function fl(){return 0!==(48&Rs)?Uo():-1!==sl?sl:sl=Uo()}function pl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===$o()?1:2;if(0===ll&&(ll=Ws),0!==Xo.transition){0!==cl&&(cl=null!==Us?Us.pendingLanes:0),e=ll;var t=4186112&~cl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=$o(),0!==(4&Rs)&&98===e?e=Wt(12,ll):e=Wt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function hl(e,t,n){if(50<il)throw il=0,al=null,Error(a(185));if(null===(e=ml(e,t)))return null;Ht(e,t,n),e===As&&(Fs|=t,4===js&&yl(e,Ns));var r=$o();1===t?0!==(8&Rs)&&0===(48&Rs)?bl(e):(vl(e,n),0===Rs&&(qs(),Vo())):(0===(4&Rs)||98!==r&&99!==r||(null===ol?ol=new Set([e]):ol.add(e)),vl(e,n)),Us=e}function ml(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function vl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ut(s),c=1<<l,u=i[l];if(-1===u){if(0===(c&r)||0!==(c&o)){u=t,Lt(c);var d=Dt;i[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=jt(e,e===As?Ns:0),t=Dt,0===r)null!==n&&(n!==jo&&Io(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==jo&&Io(n)}15===t?(n=bl.bind(null,e),null===Wo?(Wo=[n],Zo=To(Ao,Yo)):Wo.push(n),n=jo):14===t?n=Ko(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Ko(n,gl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gl(e){if(sl=-1,cl=ll=0,0!==(48&Rs))throw Error(a(327));var t=e.callbackNode;if(Nl()&&e.callbackNode!==t)return null;var n=jt(e,e===As?Ns:0);if(0===n)return null;var r=n,o=Rs;Rs|=16;var i=Cl();for(As===e&&Ns===r||(qs(),_l(e,r));;)try{Bl();break}catch(l){El(e,l)}if(ri(),Os.current=i,Rs=o,null!==Ms?r=0:(As=null,Ns=0,r=js),0!==(Ws&Fs))_l(e,0);else if(0!==r){if(2===r&&(Rs|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=zt(e))&&(r=Tl(e,n))),1===r)throw t=zs,_l(e,0),yl(e,n),vl(e,Uo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Rl(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=$s+500-Uo())){if(0!==jt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){fl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=$r(Rl.bind(null,e),r);break}Rl(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Ut(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Uo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Bs(n/1960))-n)){e.timeoutHandle=$r(Rl.bind(null,e),n);break}Rl(e);break;default:throw Error(a(329))}}return vl(e,Uo()),e.callbackNode===t?gl.bind(null,e):null}function yl(e,t){for(t&=~Hs,t&=~Fs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!==(48&Rs))throw Error(a(327));if(Nl(),e===As&&0!==(e.expiredLanes&Ns)){var t=Ns,n=Tl(e,t);0!==(Ws&Fs)&&(n=Tl(e,t=jt(e,t)))}else n=Tl(e,t=jt(e,0));if(0!==e.tag&&2===n&&(Rs|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=zt(e))&&(n=Tl(e,t))),1===n)throw n=zs,_l(e,0),yl(e,t),vl(e,Uo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Rl(e),vl(e,Uo()),null}function xl(e,t){var n=Rs;Rs|=1;try{return e(t)}finally{0===(Rs=n)&&(qs(),Vo())}}function wl(e,t){var n=Rs;Rs&=-2,Rs|=8;try{return e(t)}finally{0===(Rs=n)&&(qs(),Vo())}}function kl(e,t){fo(Ls,Ds),Ds|=t,Ws|=t}function Sl(){Ds=Ls.current,uo(Ls)}function _l(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Gr(n)),null!==Ms)for(n=Ms.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bo();break;case 3:Ni(),uo(mo),uo(ho),Yi();break;case 5:Li(r);break;case 4:Ni();break;case 13:case 19:uo(ji);break;case 10:oi(r);break;case 23:case 24:Sl()}n=n.return}As=e,Ms=Gl(e.current,null),Ns=Ds=Ws=t,js=0,zs=null,Hs=Fs=Zs=0}function El(e,t){for(;;){var n=Ms;try{if(ri(),Xi.current=Ra,ra){for(var r=ea.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ra=!1}if(Qi=0,na=ta=ea=null,oa=!1,Ps.current=null,null===n||null===n.return){js=1,zs=t,Ms=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=Ns,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&ji.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var v=f.updateQueue;if(null===v){var g=new Set;g.add(c),f.updateQueue=g}else v.add(c);if(0===(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=di(-1,1);y.tag=2,fi(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ds,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var x=Zl.bind(null,i,c,s);c.then(x,x)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==js&&(js=2),l=cs(l,s),f=a;do{switch(f.tag){case 3:i=l,f.flags|=4096,t&=-t,f.lanes|=t,pi(f,fs(0,i,t));break e;case 1:i=l;var w=f.type,k=f.stateNode;if(0===(64&f.flags)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Js||!Js.has(k)))){f.flags|=4096,t&=-t,f.lanes|=t,pi(f,ps(f,i,t));break e}}f=f.return}while(null!==f)}Pl(n)}catch(S){t=S,Ms===n&&null!==n&&(Ms=n=n.return);continue}break}}function Cl(){var e=Os.current;return Os.current=Ra,null===e?Ra:e}function Tl(e,t){var n=Rs;Rs|=16;var r=Cl();for(As===e&&Ns===t||_l(e,t);;)try{Il();break}catch(o){El(e,o)}if(ri(),Rs=n,Os.current=r,null!==Ms)throw Error(a(261));return As=null,Ns=0,js}function Il(){for(;null!==Ms;)Ol(Ms)}function Bl(){for(;null!==Ms&&!Bo();)Ol(Ms)}function Ol(e){var t=Ks(e.alternate,e,Ds);e.memoizedProps=e.pendingProps,null===t?Pl(e):Ms=t,Ps.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Ds)))return void(Ms=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ds)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Ms=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ms=t);Ms=t=e}while(null!==t);0===js&&(js=5)}function Rl(e){var t=$o();return qo(99,Al.bind(null,e,t)),null}function Al(e,t){do{Nl()}while(null!==el);if(0!==(48&Rs))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-Ut(i),u=1<<c;o[c]=0,s[c]=-1,l[c]=-1,i&=~u}if(null!==ol&&0===(24&r)&&ol.has(e)&&ol.delete(e),e===As&&(Ms=As=null,Ns=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Rs,Rs|=32,Ps.current=null,Zr=Vt,gr(s=vr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(C){l=null;break e}var d=0,f=-1,p=-1,h=0,m=0,v=s,g=null;t:for(;;){for(var y;v!==l||0!==i&&3!==v.nodeType||(f=d+i),v!==c||0!==u&&3!==v.nodeType||(p=d+u),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===s)break t;if(g===l&&++h===i&&(f=d),g===c&&++m===u&&(p=d),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Fr={focusedElem:s,selectionRange:l},Vt=!1,ul=null,dl=!1,Vs=r;do{try{Ml()}catch(C){if(null===Vs)throw Error(a(330));Wl(Vs,C),Vs=Vs.nextEffect}}while(null!==Vs);ul=null,Vs=r;do{try{for(s=e;null!==Vs;){var b=Vs.flags;if(16&b&&ye(Vs.stateNode,""),128&b){var x=Vs.alternate;if(null!==x){var w=x.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:ks(Vs),Vs.flags&=-3;break;case 6:ks(Vs),Vs.flags&=-3,Cs(Vs.alternate,Vs);break;case 1024:Vs.flags&=-1025;break;case 1028:Vs.flags&=-1025,Cs(Vs.alternate,Vs);break;case 4:Cs(Vs.alternate,Vs);break;case 8:Es(s,l=Vs);var k=l.alternate;xs(l),null!==k&&xs(k)}Vs=Vs.nextEffect}}catch(C){if(null===Vs)throw Error(a(330));Wl(Vs,C),Vs=Vs.nextEffect}}while(null!==Vs);if(w=Fr,x=vr(),b=w.focusedElem,s=w.selectionRange,x!==b&&b&&b.ownerDocument&&mr(b.ownerDocument.documentElement,b)){null!==s&&gr(b)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,k=Math.min(s.start,l),s=void 0===s.end?k:Math.min(s.end,l),!w.extend&&k>s&&(l=s,s=k,k=l),l=hr(b,k),i=hr(b,s),l&&i&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==i.node||w.focusOffset!==i.offset)&&((x=x.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),k>s?(w.addRange(x),w.extend(i.node,i.offset)):(x.setEnd(i.node,i.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Vt=!!Zr,Fr=Zr=null,e.current=n,Vs=r;do{try{for(b=e;null!==Vs;){var S=Vs.flags;if(36&S&&gs(b,Vs.alternate,Vs),128&S){x=void 0;var _=Vs.ref;if(null!==_){var E=Vs.stateNode;Vs.tag,x=E,"function"===typeof _?_(x):_.current=x}}Vs=Vs.nextEffect}}catch(C){if(null===Vs)throw Error(a(330));Wl(Vs,C),Vs=Vs.nextEffect}}while(null!==Vs);Vs=null,zo(),Rs=o}else e.current=n;if(Qs)Qs=!1,el=e,tl=t;else for(Vs=r;null!==Vs;)t=Vs.nextEffect,Vs.nextEffect=null,8&Vs.flags&&((S=Vs).sibling=null,S.stateNode=null),Vs=t;if(0===(r=e.pendingLanes)&&(Js=null),1===r?e===al?il++:(il=0,al=e):il=0,n=n.stateNode,Eo&&"function"===typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(_o,n,void 0,64===(64&n.current.flags))}catch(C){}if(vl(e,Uo()),Ys)throw Ys=!1,e=Xs,Xs=null,e;return 0!==(8&Rs)||Vo(),null}function Ml(){for(;null!==Vs;){var e=Vs.alternate;dl||null===ul||(0!==(8&Vs.flags)?et(Vs,ul)&&(dl=!0):13===Vs.tag&&Is(e,Vs)&&et(Vs,ul)&&(dl=!0));var t=Vs.flags;0!==(256&t)&&vs(e,Vs),0===(512&t)||Qs||(Qs=!0,Ko(97,(function(){return Nl(),null}))),Vs=Vs.nextEffect}}function Nl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,qo(e,jl)}return!1}function Dl(e,t){nl.push(t,e),Qs||(Qs=!0,Ko(97,(function(){return Nl(),null})))}function Ll(e,t){rl.push(t,e),Qs||(Qs=!0,Ko(97,(function(){return Nl(),null})))}function jl(){if(null===el)return!1;var e=el;if(el=null,0!==(48&Rs))throw Error(a(331));var t=Rs;Rs|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===i)throw Error(a(330));Wl(i,c)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(c){if(null===i)throw Error(a(330));Wl(i,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Rs=t,Vo(),!0}function zl(e,t,n){fi(e,t=fs(0,t=cs(n,t),1)),t=fl(),null!==(e=ml(e,1))&&(Ht(e,1,t),vl(e,t))}function Wl(e,t){if(3===e.tag)zl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r))){var o=ps(n,e=cs(t,e),1);if(fi(n,o),o=fl(),null!==(n=ml(n,1)))Ht(n,1,o),vl(n,o);else if("function"===typeof r.componentDidCatch&&(null===Js||!Js.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Zl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&n,As===e&&(Ns&n)===n&&(4===js||3===js&&(62914560&Ns)===Ns&&500>Uo()-$s?_l(e,0):Hs|=n),vl(e,t)}function Fl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===$o()?1:2:(0===ll&&(ll=Ws),0===(t=Zt(62914560&~ll))&&(t=4194304))),n=fl(),null!==(e=ml(e,t))&&(Ht(e,t,n),vl(e,n))}function Hl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ul(e,t,n,r){return new Hl(e,t,n,r)}function $l(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gl(e,t){var n=e.alternate;return null===n?((n=Ul(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ql(e,t,n,r,o,i){var s=2;if(r=e,"function"===typeof e)$l(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case _:return Kl(n.children,o,i,t);case D:s=8,o|=16;break;case E:s=8,o|=1;break;case C:return(e=Ul(12,n,t,8|o)).elementType=C,e.type=C,e.lanes=i,e;case O:return(e=Ul(13,n,t,o)).type=O,e.elementType=O,e.lanes=i,e;case P:return(e=Ul(19,n,t,o)).elementType=P,e.lanes=i,e;case L:return Vl(n,o,i,t);case j:return(e=Ul(24,n,t,o)).elementType=j,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case I:s=9;break e;case B:s=11;break e;case R:s=14;break e;case A:s=16,r=null;break e;case M:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ul(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Kl(e,t,n,r){return(e=Ul(7,e,r,t)).lanes=n,e}function Vl(e,t,n,r){return(e=Ul(23,e,r,t)).elementType=L,e.lanes=n,e}function Yl(e,t,n){return(e=Ul(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=Ul(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ft(0),this.expirationTimes=Ft(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ft(0),this.mutableSourceEagerHydrationData=null}function Ql(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e,t,n,r){var o=t.current,i=fl(),s=pl(o);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(yo(c)){n=wo(n,c,l);break e}}n=l}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=di(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fi(o,t),hl(o,s,i),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function oc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Jl(e,t,null!=n&&!0===n.hydrate),t=Ul(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ci(t),e[eo]=n.current,Rr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ac(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var s=o;o=function(){var e=tc(a);s.call(e)}}ec(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var l=o;o=function(){var e=tc(a);l.call(e)}}wl((function(){ec(t,a,e,o)}))}return tc(a)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return Ql(e,t,null,n)}Ks=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mo.current)La=!0;else{if(0===(n&r)){switch(La=!1,t.tag){case 3:qa(t),Ki();break;case 5:Di(t);break;case 1:yo(t.type)&&ko(t);break;case 4:Mi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;fo(Qo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ja(e,t,n):(fo(ji,1&ji.current),null!==(t=is(e,t,n))?t.sibling:null);fo(ji,1&ji.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return os(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),fo(ji,ji.current),r)break;return null;case 23:case 24:return t.lanes=0,Fa(e,t,n)}return is(e,t,n)}La=0!==(16384&e.flags)}else La=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=go(t,ho.current),ai(t,n),o=sa(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;ko(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&gi(t,r,s,e),o.updater=yi,t.stateNode=o,o._reactInternals=t,ki(t,r,e,n),t=Ga(null,t,r,!0,i,n)}else t.tag=0,ja(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return $l(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===B)return 11;if(e===R)return 14}return 2}(o),e=Jo(o,e),i){case 0:t=Ua(null,t,o,e,n);break e;case 1:t=$a(null,t,o,e,n);break e;case 11:t=za(null,t,o,e,n);break e;case 14:t=Wa(null,t,o,Jo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 1:return r=t.type,o=t.pendingProps,$a(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),hi(t,r,null,n),(r=t.memoizedState.element)===o)Ki(),t=is(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Zi=Kr(t.stateNode.containerInfo.firstChild),Wi=t,i=Fi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Vi.push(i);for(n=Ii(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ja(e,t,r,n),Ki();t=t.child}return t;case 5:return Di(t),null===e&&$i(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Ur(r,o)?s=null:null!==i&&Ur(r,i)&&(t.flags|=16),Ha(e,t),ja(e,t,s,n),t.child;case 6:return null===e&&$i(t),null;case 13:return Ja(e,t,n);case 4:return Mi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ti(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(fo(Qo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=ur(l,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!mo.current){t=is(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&i)){1===l.tag&&((u=di(-1,n&-n)).tag=2,fi(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ii(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}ja(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(o=si(o,i.unstable_observedBits)),t.flags|=1,ja(e,t,r,n),t.child;case 14:return i=Jo(o=t.type,t.pendingProps),Wa(e,t,o,i=Jo(o.type,i),r,n);case 15:return Za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,ko(t)):e=!1,ai(t,n),xi(t,r,o),ki(t,r,o,n),Ga(null,t,r,!0,e,n);case 19:return os(e,t,n);case 23:case 24:return Fa(e,t,n)}throw Error(a(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(hl(e,4,fl()),rc(e,4))},nt=function(e){13===e.tag&&(hl(e,67108864,fl()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=fl(),n=pl(e);hl(e,n,t),rc(e,n)}},ot=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=io(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ae=xl,Me=function(e,t,n,r,o){var i=Rs;Rs|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{0===(Rs=i)&&(qs(),Vo())}},Ne=function(){0===(49&Rs)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,vl(e,Uo())}))}Vo()}(),Nl())},De=function(e,t){var n=Rs;Rs|=2;try{return e(t)}finally{0===(Rs=n)&&(qs(),Vo())}};var lc={Events:[ro,oo,io,Pe,Re,Nl,{current:!1}]},cc={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dc.isDisabled&&dc.supportsFiber)try{_o=dc.inject(uc),Eo=dc}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=sc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Rs;if(0!==(48&n))return e(t);Rs|=1;try{if(e)return qo(99,e.bind(null,t))}finally{Rs=n,Vo()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(wl((function(){ac(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=xl,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ac(e,t,n,!1,r)},t.version="17.0.2"},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},1372:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,c=60112,u=60113,d=60120,f=60115,p=60116,h=60121,m=60122,v=60117,g=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),h=b("react.block"),m=b("react.server.block"),v=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}},7441:function(e,t,n){"use strict";n(1372)},6374:function(e,t,n){"use strict";n(1725);var r=n(2791),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},9117:function(e,t,n){"use strict";var r=n(1725),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:x.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var E=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+C(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),T(a,t,n,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+C(s=e[c],c);l+=T(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,n,u=r+C(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function I(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function B(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var O={current:null};function P(){var e=O.current;if(null===e)throw Error(p(321));return e}var R={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)w.call(t,u)&&!k.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:B}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";var n,r,o,i;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,g=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,w=x.port2;x.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?w.postMessage(null):(m=!1,v=null)}catch(n){throw w.postMessage(null),n}}else m=!1},n=function(e){v=e,m||(m=!0,w.postMessage(null))},r=function(e,n){g=f((function(){e(t.unstable_now())}),n)},o=function(){p(g),g=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<E(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>E(a,n))void 0!==l&&0>E(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],T=[],I=1,B=null,O=3,P=!1,R=!1,A=!1;function M(e){for(var t=S(T);null!==t;){if(null===t.callback)_(T);else{if(!(t.startTime<=e))break;_(T),t.sortIndex=t.expirationTime,k(C,t)}t=S(T)}}function N(e){if(A=!1,M(e),!R)if(null!==S(C))R=!0,n(D);else{var t=S(T);null!==t&&r(N,t.startTime-e)}}function D(e,n){R=!1,A&&(A=!1,o()),P=!0;var i=O;try{for(M(n),B=S(C);null!==B&&(!(B.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=B.callback;if("function"===typeof a){B.callback=null,O=B.priorityLevel;var s=a(B.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?B.callback=s:B===S(C)&&_(C),M(n)}else _(C);B=S(C)}if(null!==B)var l=!0;else{var c=S(T);null!==c&&r(N,c.startTime-n),l=!1}return l}finally{B=null,O=i,P=!1}}var L=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||P||(R=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:I++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,k(T,e),null===S(C)&&e===S(T)&&(A?o():A=!0,r(N,a-s))):(e.sortIndex=l,k(C,e),R||P||(R=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},4774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(5084),n(8116),n(3858),n(7264),n(2583),n(8894),n(4584);var r=n(7156),o=n(6690),i=n(9728),a=n(6115),s=n(1655),l=n(4993),c=n(3808),u=n(8416);n(2463),n(5202),n(7675);var d=n(4687),f=n(8698),p=n(1263),h=n(8868),m=n(3496);n(4778),n(8225),n(9104),n(9147);var v=n(2895);n(9258),n(4772),n(5625);var g=n(7424);n(8887),n(5742),n(1740),n(3265),n(447),n(6245);var y=n(8645);n(4178);var b=n(4610),x=n(1588);n(974);var w=n(3912);function k(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function S(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var _=k(r),E=k(o),C=k(i),T=k(a),I=k(s),B=k(l),O=k(c),P=k(u),R=k(d),A=k(f),M=k(m),N=S(v),D=k(g),L=S(b),j=k(x),z=S(w);function W(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":A.default(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function Z(e,t){if("object"===("undefined"===typeof Reflect?"undefined":A.default(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function F(){}function H(){H.init.call(this)}function U(e){return void 0===e._maxListeners?H.defaultMaxListeners:e._maxListeners}function $(e,t,n){if(t)e.call(n);else for(var r=e.length,o=Q(e,r),i=0;i<r;++i)o[i].call(n)}function G(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=Q(e,o),a=0;a<o;++a)i[a].call(n,r)}function q(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=Q(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function K(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=Q(e,a),l=0;l<a;++l)s[l].call(n,r,o,i)}function V(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=Q(e,o),a=0;a<o;++a)i[a].apply(n,r)}function Y(e,t,n,r){var o,i,a,s;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new F,e._eventsCount=0),a){if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=U(e))&&o>0&&a.length>o){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,"function"===typeof console.warn?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function X(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function J(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function Q(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}F.prototype=Object.create(null),H.EventEmitter=H,H.usingDomains=!1,H.prototype.domain=void 0,H.prototype._events=void 0,H.prototype._maxListeners=void 0,H.defaultMaxListeners=10,H.init=function(){this.domain=null,H.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new F,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},H.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},H.prototype.getMaxListeners=function(){return U(this)},H.prototype.emit=function(e){var t,n,r,o,i,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u="function"===typeof n;switch(r=arguments.length){case 1:$(n,u,this);break;case 2:G(n,u,this,arguments[1]);break;case 3:q(n,u,this,arguments[1],arguments[2]);break;case 4:K(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];V(n,u,this,o)}return!0},H.prototype.addListener=function(e,t){return Y(this,e,t,!1)},H.prototype.on=H.prototype.addListener,H.prototype.prependListener=function(e,t){return Y(this,e,t,!0)},H.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,X(this,e,t)),this},H.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,X(this,e,t)),this},H.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new F:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new F,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o);r.removeListener&&this.emit("removeListener",e,a||t)}return this},H.prototype.off=function(e,t){return this.removeListener(e,t)},H.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new F,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new F:delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new F,this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},H.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"===typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},H.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):J.call(e,t)},H.prototype.listenerCount=J,H.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var ee=function(){function e(t){E.default(this,e),this.base=t,this.args=new Array,this.paths=new Array}return C.default(e,[{key:"pathSegment",value:function(e){return this.paths.push(encodeURIComponent(e)),this}},{key:"queryParam",value:function(e,t){return"undefined"!==typeof t&&this.args.push(encodeURIComponent(e)+"="+encodeURIComponent(t)),this}},{key:"build",value:function(){var e=this.base;return this.paths.length&&(e+="/"+this.paths.join("/")),this.args.length&&(e+="?"+this.args.join("&")),e}}]),e}();function te(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var ne=function(e){I.default(n,e);var t=te(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return E.default(this,n),(r=t.call(this)).name=r.constructor.name,r.message="".concat(e," (status: ").concat(o,", code: ").concat(i,")"),r.status=o,r.code=i,r}return n}(M.default(Error)),re=function(e){I.default(n,e);var t=te(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0;return E.default(this,n),(r=t.call(this,e,o,i)).body=a,r}return n}(ne);function oe(e){return JSON.parse(JSON.stringify(e))}function ie(e){if(!(void 0===e||ae(e)))throw new ne("Invalid pageSize parameter. Expected a positive integer, was '".concat(e,"'."),400,20007)}function ae(e){return function(e){return!isNaN(parseInt(e))&&isFinite(e)}(e)&&e>0}var se=N.getLogger("twilio-sync");function le(e,t){return["".concat((new Date).toISOString()," Sync ").concat(e,":")].concat(Array.from(t))}var ce=function(e){se.setLevel(e)},ue=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];se.trace.apply(null,le("T",t))},de=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];se.debug.apply(null,le("D",t))},fe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];se.warn.apply(null,le("W",t))},pe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];se.error.apply(null,le("E",t))},he="/v4/Subscriptions",me="/v3/Maps",ve="/v3/Lists",ge="/v3/Documents",ye="/v3/Streams",be="/v3/Insights";function xe(e,t,n){return e&&"undefined"!==typeof e[t]?e[t]:n}var we=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E.default(this,e);var n=t.region||"us1",r="https://cds.".concat(n,".twilio.com"),o=t.cdsUri||r;this.settings={subscriptionsUri:o+he,documentsUri:o+ge,listsUri:o+ve,mapsUri:o+me,streamsUri:o+ye,insightsUri:o+be,sessionStorageEnabled:xe(t.Sync,"enableSessionStorage",!0),productId:t.productId}}return C.default(e,[{key:"subscriptionsUri",get:function(){return this.settings.subscriptionsUri}},{key:"documentsUri",get:function(){return this.settings.documentsUri}},{key:"listsUri",get:function(){return this.settings.listsUri}},{key:"mapsUri",get:function(){return this.settings.mapsUri}},{key:"streamsUri",get:function(){return this.settings.streamsUri}},{key:"insightsUri",get:function(){return this.settings.insightsUri}},{key:"backoffConfig",get:function(){return this.settings.backoffConfig||{}}},{key:"sessionStorageEnabled",get:function(){return this.settings.sessionStorageEnabled}},{key:"productId",get:function(){return this.settings.productId}}]),e}();function ke(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _e=function(){function e(t){E.default(this,e),this.localObject=t,this.pendingCorrelationId=null,this.pendingAction=null,this.established=!1,this.retryCount=0}return C.default(e,[{key:"sid",get:function(){return this.localObject.sid}},{key:"type",get:function(){return this.localObject.type}},{key:"lastEventId",get:function(){return this.localObject.lastEventId}},{key:"indexName",get:function(){return this.localObject.indexName}},{key:"queryString",get:function(){return this.localObject.queryString}},{key:"isEstablished",get:function(){return this.established}},{key:"update",value:function(e,t){this.localObject._update(e,t)}},{key:"updatePending",value:function(e,t){this.pendingAction=e,this.pendingCorrelationId=t}},{key:"reset",value:function(){this.updatePending(null,null),this.retryCount=0,this.established=!1,this.setSubscriptionState("none")}},{key:"markAsFailed",value:function(e){this.rejectedWithError=e.error,this.updatePending(null,null),this.localObject.reportFailure(new ne("Failed to subscribe on service events: ".concat(e.error.message),e.error.status,e.error.code))}},{key:"complete",value:function(e){this.updatePending(null,null),this.established=!0,this.localObject._advanceLastEventId(e)}},{key:"setSubscriptionState",value:function(e){this.localObject._setSubscriptionState(e)}}]),e}(),Ee=function(){function e(t){var n=this;E.default(this,e),P.default(this,"isConnected",!1),P.default(this,"maxBatchSize",100),P.default(this,"subscriptionTtlTimer",null),P.default(this,"pendingPokeReason",null),this.services=t,this.subscriptions=new Map,this.persisted=new Map,this.latestPokeResponseArrivalTimestampByCorrelationId=new Map;this.backoff=y.Backoff.exponential(Object.assign({randomisationFactor:.2,initialDelay:100,maxDelay:12e4},this.services.config.backoffConfig)),this.backoff.on("ready",(function(){var e=n.getSubscriptionUpdateBatch(),t=e.action,r=e.subscriptions;t?n.applyNewSubscriptionUpdateBatch(t,r):(n.backoff.reset(),de("All subscriptions resolved."))}))}return C.default(e,[{key:"getSubscriptionUpdateBatch",value:function(){function e(e,t,n,r){var o,i=[],a=ke(e);try{for(a.s();!(o=a.n()).done;){var s=D.default(o.value,2),l=s[0],c=s[1];if(!t.get(l)&&n!==c.pendingAction&&!c.rejectedWithError&&(i.push(c),r&&i.length>=r))break}}catch(u){a.e(u)}finally{a.f()}return i}var t=e(this.subscriptions,this.persisted,"establish",this.maxBatchSize);if(t.length>0)return{action:"establish",subscriptions:t};var n=e(this.persisted,this.subscriptions,"cancel",this.maxBatchSize);return n.length>0?{action:"cancel",subscriptions:n}:{action:null,subscriptions:null}}},{key:"persist",value:function(){this.backoff.backoff()}},{key:"applyNewSubscriptionUpdateBatch",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o,i,a,s,l,c,u,d,f,p,m,v,g,y=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isConnected){e.next=4;break}return de("Twilsock connection (required for subscription) not ready; waiting\u2026"),this.backoff.reset(),e.abrupt("return");case 4:n=this.processLocalActions(t,n),r=(new Date).getTime(),o=ke(n);try{for(o.s();!(i=o.n()).done;)a=i.value,this.recordActionAttemptOn(a,t,r)}catch(b){o.e(b)}finally{o.f()}return s=this.pendingPokeReason,this.pendingPokeReason=null,e.prev=10,e.next=13,this.request(t,r,s,n);case 13:l=e.sent,c=l.body.max_batch_size,!isNaN(parseInt(c))&&isFinite(c)&&c>0&&(this.maxBatchSize=c),this.subscriptionTtlTimer||(u=l.body.ttl_in_s,d=!isNaN(parseFloat(u))&&isFinite(u),d&&u>0&&(this.subscriptionTtlTimer=setTimeout((function(){return y.onSubscriptionTtlElapsed()}),1e3*u))),"establish"===t&&(f=l.body.estimated_delivery_in_ms,p=!isNaN(parseFloat(f))&&isFinite(f),p&&f>0?setTimeout((function(){return y.verifyPokeDelivery(r,f,n)}),f):pe("Invalid timeout: ".concat(f)),n.filter((function(e){return e.pendingCorrelationId===r})).forEach((function(e){return e.setSubscriptionState("response_in_flight")}))),this.backoff.reset(),e.next=26;break;case 21:e.prev=21,e.t0=e.catch(10),m=ke(n);try{for(m.s();!(v=m.n()).done;)g=v.value,this.recordActionFailureOn(g,t)}catch(b){m.e(b)}finally{m.f()}e.t0 instanceof h.TransportUnavailableError?(de("Twilsock connection (required for subscription) not ready (c:".concat(r,"); waiting\u2026")),this.backoff.reset()):(de("Failed an attempt to ".concat(t," subscriptions (c:").concat(r,"); retrying"),e.t0),this.persist());case 26:case"end":return e.stop()}}),e,this,[[10,21]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"verifyPokeDelivery",value:function(e,t,n){var r=this,o=this.latestPokeResponseArrivalTimestampByCorrelationId.get(e),i=o?(new Date).getTime()-o:t;i>=t?(n.filter((function(t){return t.pendingCorrelationId===e})).forEach((function(e){e.updatePending(null,null),e.retryCount++,r.persisted.delete(e.sid)})),this.persist(),this.latestPokeResponseArrivalTimestampByCorrelationId.delete(e)):setTimeout((function(){return r.verifyPokeDelivery(e,t,n)}),t-i)}},{key:"processLocalActions",value:function(e,t){return"cancel"===e?t.filter((function(e){return!e.rejectedWithError})):t}},{key:"recordActionAttemptOn",value:function(e,t,n){if(e.setSubscriptionState("request_in_flight"),"establish"===t)this.persisted.set(e.sid,e),e.updatePending(t,n);else{var r=this.persisted.get(e.sid);r&&r.updatePending(t,n)}}},{key:"recordActionFailureOn",value:function(e,t){e.setSubscriptionState("none"),e.updatePending(null,null),"establish"===t&&this.persisted.delete(e.sid)}},{key:"request",value:function(e,t,n,r){var o=r.map((function(t){return{object_sid:t.sid,object_type:t.type,last_event_id:"establish"===e?t.lastEventId:void 0,index_name:"establish"===e?t.indexName:void 0,query_string:"establish"===e?t.queryString:void 0}})),i=r.filter((function(e){return e.retryCount>0})).length;de("Attempting '".concat(e,"' request (c:").concat(t,"):"),o);var a={event_protocol_version:4,action:e,correlation_id:t,retried_requests:i,ttl_in_s:-1,requests:o};return"ttl"===n&&(a.reason=n),this.services.network.post(this.services.config.subscriptionsUri,a)}},{key:"add",value:function(e,t){de("Establishing intent to subscribe to ".concat(e));var n=this.subscriptions.get(e);n&&t&&n.lastEventId===t.lastEventId||(this.persisted.delete(e),this.subscriptions.set(e,new _e(t)),this.persist())}},{key:"remove",value:function(e){de("Establishing intent to unsubscribe from ".concat(e)),this.subscriptions.delete(e)&&this.persist()}},{key:"acceptMessage",value:function(e,t){ue("Subscriptions received",e);var n=e.event_type,r="undefined"!==typeof e.events?e.events:[e.event],o=e.correlation_id;o&&this.latestPokeResponseArrivalTimestampByCorrelationId.set(o,(new Date).getTime());var i,a=ke(r);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=void 0;switch(e.event_type){case"subscription_established":this.applySubscriptionEstablishedMessage(s,o);break;case"subscription_canceled":this.applySubscriptionCancelledMessage(s,o);break;case"subscription_failed":this.applySubscriptionFailedMessage(s,o);break;case(l=n.match(/^(?:map|list|document|stream|live_query)_/)||{}).input:var c=void 0;switch(l[0]){case"map_":c=s.map_sid;break;case"list_":c=s.list_sid;break;case"document_":c=s.document_sid;break;case"stream_":c=s.stream_sid;break;case"live_query_":c=s.query_id,t=!1,!0===e.strictly_ordered&&(t=!0);break;default:c=void 0}this.applyEventToSubscribedEntity(c,s,n,t);break;default:de("Dropping unknown message type ".concat(n))}}}catch(u){a.e(u)}finally{a.f()}}},{key:"applySubscriptionEstablishedMessage",value:function(e,t){var n=e.object_sid,r=this.persisted.get(e.object_sid);r&&r.pendingCorrelationId===t?"interrupted"===e.replay_status?(de("Event Replay for subscription to ".concat(n," (c:").concat(t,") interrupted; continuing eagerly.")),r.updatePending(null,null),this.persisted.delete(r.sid),this.backoff.reset()):"completed"===e.replay_status&&(de("Event Replay for subscription to ".concat(n," (c:").concat(t,") completed. Subscription is ready.")),r.complete(e.last_event_id),this.persisted.set(e.object_sid,r),r.setSubscriptionState("established"),this.backoff.reset()):de("Late message for ".concat(e.object_sid," (c:").concat(t,") dropped.")),this.persist()}},{key:"applySubscriptionCancelledMessage",value:function(e,t){var n=this.persisted.get(e.object_sid);n&&n.pendingCorrelationId===t?(n.updatePending(null,null),n.setSubscriptionState("none"),this.persisted.delete(e.object_sid)):de("Late message for ".concat(e.object_sid," (c:").concat(t,") dropped.")),this.persist()}},{key:"applySubscriptionFailedMessage",value:function(e,t){var n=e.object_sid,r=this.subscriptions.get(n),o=this.persisted.get(n);r&&o?o.pendingCorrelationId===t&&(pe("Failed to subscribe on ".concat(o.sid),e.error),o.markAsFailed(e),o.setSubscriptionState("none")):!r&&o&&(this.persisted.delete(n),o.setSubscriptionState("none")),this.persist()}},{key:"applyEventToSubscribedEntity",value:function(e,t,n,r){var o=this;if(e){r=r||function(){var t=o.persisted.get(e);return t&&t.isEstablished}();var i=this.subscriptions.get(e);i?(t.type=n,i.update(t,r)):de("Message dropped for SID '".concat(e,"', for which there is no subscription."))}}},{key:"onConnectionStateChanged",value:function(e){this.isConnected=e,e&&this.poke("reconnect")}},{key:"onSubscriptionTtlElapsed",value:function(){this.isConnected&&this.poke("ttl")}},{key:"poke",value:function(e){de("Triggering event replay for all subscriptions, reason=".concat(e)),this.pendingPokeReason=e,this.subscriptionTtlTimer&&(clearTimeout(this.subscriptionTtlTimer),this.subscriptionTtlTimer=null);var t,n=[],r=ke(this.persisted.values());try{for(r.s();!(t=r.n()).done;){var o=t.value;o.reset(),o.rejectedWithError&&n.push(o)}}catch(l){r.e(l)}finally{r.f()}this.persisted.clear();for(var i=0,a=n;i<a.length;i++){var s=a[i];this.persisted.set(s.sid,s)}this.persist()}},{key:"shutdown",value:function(){this.backoff.reset(),this.subscriptions.clear()}}]),e}();function Ce(e){if(e.body&&e.body.message)return e.body.message;switch(e.status){case 429:return"Throttled by server";case 404:return"Not found from server";default:return"Error from server"}}function Te(e){return e.body?e.body.code:0}function Ie(e){return 409===e.status?new re(Ce(e),e.status,Te(e),e.body):e.status?new ne(Ce(e),e.status,Te(e)):e instanceof h.TransportUnavailableError?e:new ne(e.message,0,0)}var Be=function(){function e(t,n,r){E.default(this,e),this.clientInfo=t,this.config=n,this.transport=r}return C.default(e,[{key:"createHeaders",value:function(){return{"Content-Type":"application/json","Twilio-Sync-Client-Info":JSON.stringify(this.clientInfo),"Twilio-Request-Id":"RQ"+L.v4().replace(/-/g,"")}}},{key:"backoffConfig",value:function(){return Object.assign({min:4e3,max:6e4,maxAttemptsTime:9e4,randomness:.2},this.config.backoffConfig)}},{key:"executeWithRetry",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(r,o){var i=[502,503,504];n&&i.push(429);var a=new y.Retrier(t.backoffConfig());a.on("attempt",(function(){e().then((function(e){return a.succeeded(e)})).catch((function(e){if(i.includes(e.status)){var t=parseInt(e.headers?e.headers["Retry-After"]:null);a.failed(Ie(e),isNaN(t)?null:1e3*t)}else"Twilsock disconnected"===e.message?a.failed(Ie(e)):(a.removeAllListeners(),a.cancel(),o(Ie(e)))}))})),a.on("succeeded",(function(e){r(e)})),a.on("cancelled",(function(e){return o(Ie(e))})),a.on("failed",(function(e){return o(Ie(e))})),a.start()}))}},{key:"get",value:function(e){var t=this,n=this.createHeaders();return de("GET",e,"ID:",n["Twilio-Request-Id"]),this.executeWithRetry((function(){return t.transport.get(e,n,t.config.productId)}),!0)}},{key:"post",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.createHeaders();return"undefined"!==typeof n&&null!==n&&(i["If-Match"]=n),de("POST",e,"ID:",i["Twilio-Request-Id"]),this.executeWithRetry((function(){return r.transport.post(e,i,t,r.config.productId)}),o)}},{key:"put",value:function(e,t,n){var r=this,o=this.createHeaders();return"undefined"!==typeof n&&null!==n&&(o["If-Match"]=n),de("PUT",e,"ID:",o["Twilio-Request-Id"]),this.executeWithRetry((function(){return r.transport.put(e,o,t,r.config.productId)}),!1)}},{key:"delete",value:function(e){var t=this,n=this.createHeaders();return de("DELETE",e,"ID:",n["Twilio-Request-Id"]),this.executeWithRetry((function(){return t.transport.delete(e,n,t.config.productId)}),!1)}}]),e}(),Oe=function(){function e(t,n){E.default(this,e),this.config=t,this.storageId=null;try{this.storage=n||sessionStorage}catch(r){}}return C.default(e,[{key:"storageKey",value:function(e,t){return"".concat(this.storageId,"::").concat(e,"::").concat(t)}},{key:"isReady",get:function(){return this.config.sessionStorageEnabled&&!!this.storageId}},{key:"updateStorageId",value:function(e){this.storageId=e}},{key:"store",value:function(e,t,n){return this.isReady?this._store(this.storageKey(e,t),n):null}},{key:"read",value:function(e,t){return this.isReady?this._read(this.storageKey(e,t)):null}},{key:"remove",value:function(e,t,n){if(!this.isReady)return null;try{this.storage.removeItem(this.storageKey(e,t)),n&&this.storage.removeItem(this.storageKey(e,n))}catch(r){}}},{key:"update",value:function(e,t,n,r){if(!this.isReady)return null;this._apply(this.storageKey(e,t),r),n&&this._apply(this.storageKey(e,n),r)}},{key:"_store",value:function(e,t){try{this.storage.setItem(e,JSON.stringify(t))}catch(n){}}},{key:"_read",value:function(e){try{var t=this.storage.getItem(e);if(t)return JSON.parse(t)}catch(n){}return null}},{key:"_apply",value:function(e,t){var n=this._read(e);if(!n)return!1;this._store(e,Object.assign(n,t))}}]),e}();function Pe(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Re(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ae=function(){function e(t,n){E.default(this,e),this.services=t,this.removalHandler=n,this.subscriptionState="none",this._attachedListeners=new Map}return C.default(e,[{key:"_advanceLastEventId",value:function(e,t){}},{key:"reportFailure",value:function(e){404===e.status?this.onRemoved(!1):this.broadcastEventToListeners("failure",e)}},{key:"_subscribe",value:function(){this.services.router._subscribe(this.sid,this)}},{key:"_unsubscribe",value:function(){this.services.router._unsubscribe(this.sid)}},{key:"_setSubscriptionState",value:function(e){this.subscriptionState=e,this.broadcastEventToListeners("_subscriptionStateChanged",e)}},{key:"close",value:function(){this._unsubscribe(),null!=this.removalHandler&&this.removalHandler(this.type,this.sid,this.uniqueName)}},{key:"attach",value:function(e){var t=e.listenerUuid;this._attachedListeners.get(t)||(this._attachedListeners.size||this._subscribe(),this._attachedListeners.set(t,e))}},{key:"detach",value:function(e){this._attachedListeners.delete(e),this._attachedListeners.size||this.close()}},{key:"broadcastEventToListeners",value:function(e,t){var n,r=Pe(this._attachedListeners.values());try{for(r.s();!(n=r.n()).done;){n.value.emit(e,t)}}catch(o){r.e(o)}finally{r.f()}}}]),e}(),Me=function(){function e(t){E.default(this,e),P.default(this,"queuedRequests",[]),P.default(this,"isRequestInFlight",!1),this.inputMergingFunction=t}return C.default(e,[{key:"add",value:function(e,t){var n=this,r=new Promise((function(r,o){return n.queuedRequests.push({input:e,requestFunction:t,resolve:r,reject:o})}));return this.wakeupQueue(),r}},{key:"squashAndAdd",value:function(e,t){var n,r=this.queuedRequests;this.queuedRequests=[],r.length>0?(n=r.map((function(e){return e.input})).reduce(this.inputMergingFunction),n=this.inputMergingFunction(n,e)):n=e;var o=this.add(n,t);return r.forEach((function(e){return o.then(e.resolve,e.reject)})),o}},{key:"isEmpty",value:function(){return 0===this.queuedRequests.length&&!this.isRequestInFlight}},{key:"wakeupQueue",value:function(){var e=this;if(0!==this.queuedRequests.length&&!this.isRequestInFlight){var t=this.queuedRequests.shift();this.isRequestInFlight=!0,t.requestFunction(t.input).then(t.resolve,t.reject).then((function(t){e.isRequestInFlight=!1,e.wakeupQueue()}))}}}]),e}(),Ne=function(){function e(t){E.default(this,e),P.default(this,"queueByNamespaceKey",new Map),this.inputReducer=t}return C.default(e,[{key:"add",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.invokeQueueMethod(t,(function(e){return e.add(n,r)})));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"squashAndAdd",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.invokeQueueMethod(t,(function(e){return e.squashAndAdd(n,r)})));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"invokeQueueMethod",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.queueByNamespaceKey.has(t)||this.queueByNamespaceKey.set(t,new Me(this.inputReducer)),r=this.queueByNamespaceKey.get(t),o=n(r),this.queueByNamespaceKey.get(t).isEmpty()&&this.queueByNamespaceKey.delete(t),e.abrupt("return",o);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}();function De(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var Le=function(e){I.default(n,e);var t=De(n);function n(){var e;return E.default(this,n),(e=t.call(this)).closed=!1,e.uuid=b.v4(),e}return C.default(n,[{key:"listenerUuid",get:function(){return this.uuid}},{key:"close",value:function(){this.removeAllListeners(),this.closed=!0}},{key:"ensureNotClosed",value:function(){if(this.closed)throw new Error("Invalid operation on closed object")}}]),n}(H);function je(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var ze=function(e){I.default(n,e);var t=je(n);function n(e,r,o){var i;E.default(this,n),i=t.call(this,e,o),P.default(T.default(i),"isDeleted",!1);return i.updateMergingQueue=new Me((function(e,t){return"number"===typeof t.ttl?{ttl:t.ttl}:e})),i.descriptor=r,i.descriptor.data=i.descriptor.data||{},i.descriptor.date_updated=new Date(i.descriptor.date_updated),i}return C.default(n,[{key:"uri",get:function(){return this.descriptor.url}},{key:"revision",get:function(){return this.descriptor.revision}},{key:"lastEventId",get:function(){return this.descriptor.last_event_id}},{key:"dateExpires",get:function(){return this.descriptor.date_expires}},{key:"type",get:function(){return"document"}},{key:"indexName",get:function(){}},{key:"queryString",get:function(){}},{key:"sid",get:function(){return this.descriptor.sid}},{key:"data",get:function(){return this.descriptor.data}},{key:"dateUpdated",get:function(){return this.descriptor.date_updated}},{key:"uniqueName",get:function(){return this.descriptor.unique_name||null}},{key:"_update",value:function(e){switch(e.date_created=new Date(e.date_created),e.type){case"document_updated":if(e.id<=this.lastEventId){ue("Document update skipped, current:",this.lastEventId,", remote:",e.id);break}var t=void 0!==this.descriptor.data?oe(this.descriptor.data):null;this.descriptor.last_event_id=e.id,this.descriptor.revision=e.document_revision,this.descriptor.date_updated=e.date_created,this.descriptor.data=e.document_data,this.broadcastEventToListeners("updated",{data:e.document_data,isLocal:!1,previousData:t}),this.services.storage.update(this.type,this.sid,this.uniqueName,{last_event_id:e.id,revision:e.document_revision,date_updated:e.date_created,data:e.document_data});break;case"document_removed":this.onRemoved(!1)}}},{key:"set",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n||{},e.abrupt("return",this.updateMergingQueue.squashAndAdd(r,(function(e){return o._setUnconditionally(t,e.ttl)})));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"mutate",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n||{},e.abrupt("return",this.updateMergingQueue.add(r,(function(e){return o._setWithIfMatch(t,e.ttl)})));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=_.default(R.default.mark((function e(t,n){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.mutate((function(e){return Object.assign(e,t)}),n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"setTtl",value:function(){var e=_.default(R.default.mark((function e(t){var n;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._postUpdateToServer({ttl:t});case 2:n=e.sent,this.descriptor.date_expires=n.date_expires;case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setUnconditionally",value:function(){var e=_.default(R.default.mark((function e(t,n){var r;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._postUpdateToServer({data:t,revision:void 0,ttl:n});case 2:return r=e.sent,this._handleSuccessfulUpdateResult(r),e.abrupt("return",this.descriptor.data);case 5:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_setWithIfMatch",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o,i;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t(oe(this.descriptor.data)))){e.next=22;break}return o=this.revision,e.prev=3,e.next=6,this._postUpdateToServer({data:r,revision:o,ttl:n});case 6:return i=e.sent,this._handleSuccessfulUpdateResult(i),e.abrupt("return",this.descriptor.data);case 11:if(e.prev=11,e.t0=e.catch(3),412!==e.t0.status){e.next=19;break}return e.next=16,this._softSync();case 16:return e.abrupt("return",this._setWithIfMatch(t));case 19:throw e.t0;case 20:e.next=23;break;case 22:return e.abrupt("return",this.descriptor.data);case 23:case"end":return e.stop()}}),e,this,[[3,11]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_handleSuccessfulUpdateResult",value:function(e){if(!(e.last_event_id<=this.descriptor.last_event_id)){var t=void 0!==this.descriptor.data?oe(this.descriptor.data):null;this.descriptor.revision=e.revision,this.descriptor.data=e.data,this.descriptor.last_event_id=e.last_event_id,this.descriptor.date_expires=e.date_expires,this.descriptor.date_updated=new Date(e.date_updated),this.services.storage.update(this.type,this.sid,this.uniqueName,{last_event_id:e.last_event_id,revision:e.revision,date_updated:e.date_updated,data:e.data}),this.broadcastEventToListeners("updated",{data:this.descriptor.data,isLocal:!0,previousData:t})}}},{key:"_postUpdateToServer",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isDeleted){e.next=17;break}return n={data:t.data},void 0!==t.ttl&&(n.ttl=t.ttl),r=t.revision,e.prev=4,e.next=7,this.services.network.post(this.uri,n,r);case 7:return o=e.sent,e.abrupt("return",{revision:o.body.revision,data:t.data,last_event_id:o.body.last_event_id,date_updated:o.body.date_updated,date_expires:o.body.date_expires});case 11:throw e.prev=11,e.t0=e.catch(4),404===e.t0.status&&this.onRemoved(!1),e.t0;case 15:e.next=18;break;case 17:return e.abrupt("return",Promise.reject(new ne("The Document has been removed",404,54100)));case 18:case"end":return e.stop()}}),e,this,[[4,11]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_softSync",value:function(){var e=_.default(R.default.mark((function e(){var t=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.services.network.get(this.uri).then((function(e){var n={type:"document_updated",id:e.body.last_event_id,document_revision:e.body.revision,document_data:e.body.data,date_created:e.body.date_updated};return t._update(n),t})).catch((function(e){404===e.status?t.onRemoved(!1):pe("Can't get updates for ".concat(t.sid,":"),e)})));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onRemoved",value:function(e){if(!this.isDeleted){var t=void 0!==this.descriptor.data?oe(this.descriptor.data):null;this.isDeleted=!0,this._unsubscribe(),this.removalHandler(this.type,this.sid,this.uniqueName),this.broadcastEventToListeners("removed",{isLocal:e,previousData:t})}}},{key:"removeDocument",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isDeleted){e.next=6;break}return e.next=3,this.services.network.delete(this.uri);case 3:this.onRemoved(!0),e.next=7;break;case 6:return e.abrupt("return",Promise.reject(new ne("The Document has been removed",404,54100)));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}],[{key:"type",get:function(){return"document"}}]),n}(Ae),We=function(e){I.default(n,e);var t=je(n);function n(e){var r;return E.default(this,n),(r=t.call(this)).syncDocumentImpl=e,r.syncDocumentImpl.attach(T.default(r)),r}return C.default(n,[{key:"uri",get:function(){return this.syncDocumentImpl.uri}},{key:"revision",get:function(){return this.syncDocumentImpl.revision}},{key:"lastEventId",get:function(){return this.syncDocumentImpl.lastEventId}},{key:"dateExpires",get:function(){return this.syncDocumentImpl.dateExpires}},{key:"type",get:function(){return ze.type}},{key:"sid",get:function(){return this.syncDocumentImpl.sid}},{key:"data",get:function(){return this.syncDocumentImpl.data}},{key:"dateUpdated",get:function(){return this.syncDocumentImpl.dateUpdated}},{key:"uniqueName",get:function(){return this.syncDocumentImpl.uniqueName}},{key:"set",value:function(){var e=_.default(R.default.mark((function e(t,n){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncDocumentImpl.set(t,n));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"mutate",value:function(){var e=_.default(R.default.mark((function e(t,n){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncDocumentImpl.mutate(t,n));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=_.default(R.default.mark((function e(t,n){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncDocumentImpl.update(t,n));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"setTtl",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncDocumentImpl.setTtl(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"removeDocument",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncDocumentImpl.removeDocument());case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"close",value:function(){j.default(O.default(n.prototype),"close",this).call(this),this.syncDocumentImpl.detach(this.listenerUuid)}}],[{key:"type",get:function(){return ze.type}}]),n}(Le);P.default(We,"removed","removed"),P.default(We,"updated","updated"),W([p.validateTypesAsync(p.pureObject,["undefined",p.objectSchema("document metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Object,Object]),Z("design:returntype",Promise)],We.prototype,"set",null),W([p.validateTypesAsync("function",["undefined",p.objectSchema("document metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Function,Object]),Z("design:returntype",Promise)],We.prototype,"mutate",null),W([p.validateTypesAsync(p.pureObject,["undefined",p.objectSchema("document metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Object,Object]),Z("design:returntype",Promise)],We.prototype,"update",null),W([p.validateTypesAsync(p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[Number]),Z("design:returntype",Promise)],We.prototype,"setTtl",null);var Ze=function(){function e(t){E.default(this,e),this.descriptor=t}return C.default(e,[{key:"uri",get:function(){return this.descriptor.uri}},{key:"revision",get:function(){return this.descriptor.revision}},{key:"lastEventId",get:function(){return this.descriptor.lastEventId}},{key:"dateUpdated",get:function(){return this.descriptor.dateUpdated}},{key:"dateExpires",get:function(){return this.descriptor.dateExpires}},{key:"index",get:function(){return this.descriptor.index}},{key:"data",get:function(){return this.descriptor.data}},{key:"update",value:function(e,t,n,r){return this.descriptor.lastEventId=e,this.descriptor.revision=t,this.descriptor.data=n,this.descriptor.dateUpdated=r,this}},{key:"updateDateExpires",value:function(e){this.descriptor.dateExpires=e}}]),e}(),Fe=function(){function e(t,n,r,o){E.default(this,e),this.prevToken=r,this.nextToken=o,this.items=t,this.source=n}return C.default(e,[{key:"hasNextPage",get:function(){return!!this.nextToken}},{key:"hasPrevPage",get:function(){return!!this.prevToken}},{key:"nextPage",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasNextPage){e.next=2;break}throw new Error("No next page");case 2:return e.abrupt("return",this.source(this.nextToken));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"prevPage",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasPrevPage){e.next=2;break}throw new Error("No previous page");case 2:return e.abrupt("return",this.source(this.prevToken));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function He(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ue(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $e=function(){function e(t,n){E.default(this,e),this.balanceFactor=0,this.key=t,this.value=n,this.parent=null,this.left=null,this.right=null}return C.default(e,[{key:"isRoot",get:function(){return null===this.parent}},{key:"isLeaf",get:function(){return null===this.left&&null===this.right}},{key:"isLeftChild",get:function(){return this.parent.left===this}},{key:"update",value:function(e){this.value=e}},{key:"replace",value:function(e,t){e&&(this.left===t?this.left=t:this.right===t&&(this.right=t))}}]),e}(),Ge=function(){function e(t,n){E.default(this,e),this.isLessThan=t||function(e,t){return e<t},this.isEqual=n||function(e,t){return e===t},this.root=null,this.count=null}return C.default(e,[{key:"size",get:function(){return this.count}},{key:"clear",value:function(){this.root=null,this.count=0}},{key:"set",value:function(e,t){var n=this.getNode(e);n?n.update(t):this.insert(e,t)}},{key:"insert",value:function(e,t){var n=new $e(e,t);if(this.count++,this.root){for(var r=this.root;;)if(this.isLessThan(e,r.key)){if(!r.left){r.left=n;break}r=r.left}else{if(!r.right){r.right=n;break}r=r.right}for(n.parent=r,r=n;r.parent;){var o=r.parent,i=o.balanceFactor;if(r.isLeftChild?o.balanceFactor++:o.balanceFactor--,Math.abs(o.balanceFactor)<Math.abs(i))break;if(o.balanceFactor<-1||o.balanceFactor>1){this.rebalance(o);break}r=o}}else this.root=n}},{key:"get",value:function(e){for(var t=this.root;t;){if(this.isEqual(e,t.key))return t.value;t=this.isLessThan(e,t.key)?t.left:t.right}return null}},{key:"delete",value:function(e){var t=this.getNode(e);if(!t||t.key!==e)return null;var n=t.parent,r=t.left,o=t.right;if(!!r!==!!o){var i=r||o;n||i?n&&!i?this.root=i:(n.replace(t,null),this.rebalance(n)):this.root=null}else{for(var a=t.left;a.right;)a=a.right;if(t.left===a)t.isRoot?(this.root=a,a.parent=null):(t.isLeftChild?t.parent.left=a:t.parent.right=a,a.parent=t.parent),a.right=t.right,a.right.parent=a,a.balanceFactor=t.balanceFactor,t={parent:a,isLeftChild:!0};else{var s=a.parent,l=a.left;s.right=l,l&&(l.parent=s),t.isRoot?(this.root=a,a.parent=null):(t.isLeftChild?t.parent.left=a:t.parent.right=a,a.parent=t.parent),a.right=t.right,a.right.parent=a,a.left=t.left,a.left.parent=a,a.balanceFactor=t.balanceFactor,t={parent:s,isLeftChild:!1}}}for(this.count--;t.parent;){var c=t.parent,u=c.balanceFactor;if(t.isLeftChild?c.balanceFactor-=1:c.balanceFactor+=1,Math.abs(c.balanceFactor)>Math.abs(u)){if(!(c.balanceFactor<-1||c.balanceFactor>1))break;if(this.rebalance(c),0!==c.parent.balanceFactor)break;t=c.parent}else t=c}return null}},{key:"getNode",value:function(e){for(var t=this.root;t;){if(this.isEqual(e,t.key))return t;t=this.isLessThan(e,t.key)?t.left:t.right}return null}},{key:"rebalance",value:function(e){e.balanceFactor<0?e.right.balanceFactor>0?(this.rotateRight(e.right),this.rotateLeft(e)):this.rotateLeft(e):e.balanceFactor>0&&(e.left.balanceFactor<0?(this.rotateLeft(e.left),this.rotateRight(e)):this.rotateRight(e))}},{key:"rotateLeft",value:function(e){var t=e.right;e.right=t.left,null!==t.left&&(t.left.parent=e),t.parent=e.parent,null===t.parent?this.root=t:e.isLeftChild?t.parent.left=t:t.parent.right=t,t.left=e,e.parent=t,e.balanceFactor=e.balanceFactor+1-Math.min(t.balanceFactor,0),t.balanceFactor=t.balanceFactor+1-Math.max(e.balanceFactor,0)}},{key:"rotateRight",value:function(e){var t=e.left;e.left=t.right,null!==t.right&&(t.right.parent=e),t.parent=e.parent,null===t.parent?this.root=t:e.isLeftChild?t.parent.left=t:t.parent.right=t,t.right=e,e.parent=t,e.balanceFactor=e.balanceFactor-1-Math.min(t.balanceFactor,0),t.balanceFactor=t.balanceFactor-1-Math.max(e.balanceFactor,0)}},{key:Symbol.iterator,value:R.default.mark((function e(){var t,n,r;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=He(this.getIterator()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getIterator",value:R.default.mark((function e(){var t,n,r,o=arguments;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.length>0&&void 0!==o[0]?o[0]:null,n=this.root;case 2:if(!n){e.next=8;break}if(!this.isEqual(t,n.key)&&(null!==t||n.left)){e.next=5;break}return e.abrupt("break",8);case 5:n=this.isLessThan(t,n.key)||null===t?n.left:n.right,e.next=2;break;case 8:if(n){e.next=10;break}return e.abrupt("return",null);case 10:r=!0;case 11:if(!r){e.next=29;break}return e.next=14,[n.key,n.value];case 14:if(r=!1,!n.right){e.next=21;break}for(n=n.right;n.left;)n=n.left;r=!0,e.next=27;break;case 21:if(!n.parent){e.next=26;break}r=n.parent.left===n,n=n.parent,e.next=27;break;case 26:return e.abrupt("break",37);case 27:e.next=35;break;case 29:if(!n.parent){e.next=34;break}r=n.parent.left===n,n=n.parent,e.next=35;break;case 34:return e.abrupt("break",37);case 35:e.next=11;break;case 37:return e.abrupt("return",null);case 38:case"end":return e.stop()}}),e,this)}))},{key:"getReverseIterator",value:R.default.mark((function e(){var t,n,r,o=arguments;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.length>0&&void 0!==o[0]?o[0]:null,n=this.root;case 2:if(!n){e.next=8;break}if(!this.isEqual(t,n.key)&&(null!==t||n.right)){e.next=5;break}return e.abrupt("break",8);case 5:n=this.isLessThan(t,n.key)&&null!==t?n.left:n.right,e.next=2;break;case 8:if(n){e.next=10;break}return e.abrupt("return",null);case 10:r=!0;case 11:if(!r){e.next=29;break}return e.next=14,[n.key,n.value];case 14:if(r=!1,!n.left){e.next=21;break}for(n=n.left;n.right;)n=n.right;r=!0,e.next=27;break;case 21:if(!n.parent){e.next=26;break}r=n.parent.right===n,n=n.parent,e.next=27;break;case 26:return e.abrupt("break",37);case 27:e.next=35;break;case 29:if(!n.parent){e.next=34;break}r=n.parent.right===n,n=n.parent,e.next=35;break;case 34:return e.abrupt("break",37);case 35:e.next=11;break;case 37:return e.abrupt("return",null);case 38:case"end":return e.stop()}}),e,this)}))}]),e}();function qe(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return Ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ke(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ve=function(){function e(t,n){E.default(this,e),this.value=t,this.revision=n||0}return C.default(e,[{key:"isValid",get:function(){return!0}}]),e}(),Ye=function(){function e(t){E.default(this,e),this.revision=t}return C.default(e,[{key:"isValid",get:function(){return!1}}]),e}(),Xe=function(){function e(){E.default(this,e),this.items=new Ge}return C.default(e,[{key:"store",value:function(e,t,n){var r=this.items.get(e);return r&&r.revision>n?r.isValid?r.value:null:(this.items.set(e,new Ve(t,n)),t)}},{key:"delete",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.items.get(e);(!r||r.revision<t||r&&!0===n)&&this.items.set(e,new Ye(t))}},{key:"isKnown",value:function(e,t){var n=this.items.get(e);return n&&n.revision>=t}},{key:"get",value:function(e){var t=this.items.get(e);return t&&t.isValid?t.value:null}},{key:"has",value:function(e){var t=this.items.get(e);return t&&t.isValid}},{key:"forEach",value:function(e){if(this.items){var t,n=qe(this.items);try{for(n.s();!(t=n.n()).done;){var r=D.default(t.value,2),o=r[0],i=r[1];i.isValid&&e(o,i.value)}}catch(a){n.e(a)}finally{n.f()}}}}]),e}();function Je(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var Qe=function(e){I.default(n,e);var t=Je(n);function n(e,r,o){var i;E.default(this,n);return(i=t.call(this,e,o)).updateMergingQueue=new Ne((function(e,t){return"number"===typeof t.ttl?{ttl:t.ttl}:e})),i.cache=new Xe,i.descriptor=r,i.descriptor.date_updated=new Date(i.descriptor.date_updated),i}return C.default(n,[{key:"uri",get:function(){return this.descriptor.url}},{key:"revision",get:function(){return this.descriptor.revision}},{key:"lastEventId",get:function(){return this.descriptor.last_event_id}},{key:"links",get:function(){return this.descriptor.links}},{key:"dateExpires",get:function(){return this.descriptor.date_expires}},{key:"type",get:function(){return"list"}},{key:"indexName",get:function(){}},{key:"queryString",get:function(){}},{key:"sid",get:function(){return this.descriptor.sid}},{key:"uniqueName",get:function(){return this.descriptor.unique_name||null}},{key:"dateUpdated",get:function(){return this.descriptor.date_updated}},{key:"_addOrUpdateItemOnServer",value:function(){var e=_.default(R.default.mark((function e(t,n,r,o){var i,a;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={data:n},void 0!==o&&(i.ttl=o),e.next=4,this.services.network.post(t,i,r);case 4:return(a=e.sent).body.data=n,a.body.date_updated=new Date(a.body.date_updated),e.abrupt("return",a.body);case 8:case"end":return e.stop()}}),e,this)})));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"push",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o,i;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(n||{}).ttl,e.next=3,this._addOrUpdateItemOnServer(this.links.items,t,void 0,r);case 3:return o=e.sent,i=Number(o.index),this._handleItemMutated(i,o.url,o.last_event_id,o.revision,t,o.date_updated,o.date_expires,!0,!1),e.abrupt("return",this.cache.get(i));case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"set",value:function(){var e=_.default(R.default.mark((function e(t,n,r){var o,i=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r||{},e.abrupt("return",this.updateMergingQueue.squashAndAdd(t,o,(function(e){return i._updateItemUnconditionally(t,n,e.ttl)})));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_updateItemUnconditionally",value:function(){var e=_.default(R.default.mark((function e(t,n,r){var o,i;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(t);case 2:return o=e.sent,e.next=5,this._addOrUpdateItemOnServer(o.uri,n,void 0,r);case 5:return i=e.sent,this._handleItemMutated(t,i.url,i.last_event_id,i.revision,i.data,i.date_updated,i.date_expires,!1,!1),e.abrupt("return",this.cache.get(t));case 8:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_updateItemWithIfMatch",value:function(){var e=_.default(R.default.mark((function e(t,n,r){var o,i,a,s;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(t);case 2:if(o=e.sent,!(i=n(oe(o.data)))){e.next=25;break}return a=o.revision,e.prev=6,e.next=9,this._addOrUpdateItemOnServer(o.uri,i,a,r);case 9:return s=e.sent,this._handleItemMutated(t,s.url,s.last_event_id,s.revision,s.data,s.date_updated,s.date_expires,!1,!1),e.abrupt("return",this.cache.get(t));case 14:if(e.prev=14,e.t0=e.catch(6),412!==e.t0.status){e.next=22;break}return e.next=19,this._getItemFromServer(t);case 19:return e.abrupt("return",this._updateItemWithIfMatch(t,n,r));case 22:throw e.t0;case 23:e.next=26;break;case 25:return e.abrupt("return",o);case 26:case"end":return e.stop()}}),e,this,[[6,14]])})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"mutate",value:function(){var e=_.default(R.default.mark((function e(t,n,r){var o,i=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r||{},e.abrupt("return",this.updateMergingQueue.add(t,o,(function(e){return i._updateItemWithIfMatch(t,n,e.ttl)})));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.mutate(t,(function(e){return Object.assign(e,n)}),r));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"remove",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(t);case 2:return n=e.sent,r=oe(n.data),e.next=6,this.services.network.delete(n.uri);case 6:o=e.sent,this._handleItemRemoved(t,o.body.last_event_id,r,new Date(o.body.date_updated),!1);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=_.default(R.default.mark((function e(t){var n;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.cache.get(t))){e.next=5;break}return e.abrupt("return",n);case 5:return e.abrupt("return",this._getItemFromServer(t));case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getItemFromServer",value:function(){var e=_.default(R.default.mark((function e(t){var n;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.queryItems({index:t});case 2:if(!((n=e.sent).items.length<1)){e.next=7;break}throw new ne("No item with index ".concat(t," found"),404,54151);case 7:return e.abrupt("return",n.items[0]);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"queryItems",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t||{},n=new ee(this.links.items).queryParam("From",t.from).queryParam("PageSize",t.limit).queryParam("Index",t.index).queryParam("PageToken",t.pageToken).queryParam("Order",t.order).build(),e.next=4,this.services.network.get(n);case 4:return r=e.sent,o=r.body.items.map((function(e){return e.date_updated=new Date(e.date_updated),a.cache.get(e.index)?a._handleItemMutated(e.index,e.url,e.last_event_id,e.revision,e.data,e.date_updated,e.date_expires,!1,!0):a.cache.store(Number(e.index),new Ze({index:Number(e.index),uri:e.url,revision:e.revision,lastEventId:e.last_event_id,dateUpdated:e.date_updated,dateExpires:e.date_expires,data:e.data}),e.last_event_id),a.cache.get(e.index)})),i=r.body.meta,e.abrupt("return",new Fe(o,(function(e){return a.queryItems({pageToken:e})}),i.previous_token,i.next_token));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getItems",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ie((t=t||{}).pageSize),t.limit=t.pageSize||t.limit||50,t.order=t.order||"asc",e.abrupt("return",this.queryItems(t));case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getContext",value:function(){var e=_.default(R.default.mark((function e(){var t;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.context){e.next=5;break}return e.next=3,this.services.network.get(this.links.context);case 3:t=e.sent,this._updateContextIfRequired(t.body.data,t.body.last_event_id);case 5:return e.abrupt("return",this.context);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setTtl",value:function(){var e=_.default(R.default.mark((function e(t){var n,r;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={ttl:t},e.next=4,this.services.network.post(this.uri,n);case 4:r=e.sent,this.descriptor.date_expires=r.body.date_expires,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),404===e.t0.status&&this.onRemoved(!1),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()},{key:"setItemTtl",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o,i;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(t);case 2:return r=e.sent,o={ttl:n},e.next=6,this.services.network.post(r.uri,o);case 6:i=e.sent,r.updateDateExpires(i.body.date_expires);case 8:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"removeList",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.network.delete(this.uri);case 2:this.onRemoved(!0);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onRemoved",value:function(e){this._unsubscribe(),this.removalHandler(this.type,this.sid,this.uniqueName),this.broadcastEventToListeners("removed",{isLocal:e})}},{key:"shouldIgnoreEvent",value:function(e,t){return this.cache.isKnown(e,t)}},{key:"_update",value:function(e,t){var n=Number(e.item_index);switch(e.date_created=new Date(e.date_created),e.type){case"list_item_added":case"list_item_updated":this._handleItemMutated(n,e.item_url,e.id,e.item_revision,e.item_data,e.date_created,void 0,"list_item_added"===e.type,!0);break;case"list_item_removed":this._handleItemRemoved(n,e.id,e.item_data,e.date_created,!0);break;case"list_context_updated":this._handleContextUpdate(e.context_data,e.id,e.date_created);break;case"list_removed":this.onRemoved(!1)}t&&this._advanceLastEventId(e.id,e.list_revision)}},{key:"_advanceLastEventId",value:function(e,t){this.lastEventId<e&&(this.descriptor.last_event_id=e,t&&(this.descriptor.revision=t))}},{key:"_updateRootDateUpdated",value:function(e){(!this.descriptor.date_updated||e.getTime()>this.descriptor.date_updated.getTime())&&(this.descriptor.date_updated=e,this.services.storage.update(this.type,this.sid,this.uniqueName,{date_updated:e}))}},{key:"_handleItemMutated",value:function(e,t,n,r,o,i,a,s,l){if(this.shouldIgnoreEvent(e,n))ue("Item ".concat(e," update skipped, current: ").concat(this.lastEventId,", remote: ").concat(n));else{this._updateRootDateUpdated(i);var c=this.cache.get(e);if(!c){var u=new Ze({index:e,uri:t,lastEventId:n,revision:r,data:o,dateUpdated:i,dateExpires:a});return this.cache.store(e,u,n),void this.emitItemMutationEvent(u,l,s)}var d=oe(c.data);c.update(n,r,o,i),this.cache.store(e,c,n),void 0!==a&&c.updateDateExpires(a),this.emitItemMutationEvent(c,l,!1,d)}}},{key:"emitItemMutationEvent",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=n?"itemAdded":"itemUpdated",i={item:e,isLocal:!t};n||(i.previousItemData=r),this.broadcastEventToListeners(o,i)}},{key:"_handleItemRemoved",value:function(e,t,n,r,o){this._updateRootDateUpdated(r),this.cache.delete(e,t),this.broadcastEventToListeners("itemRemoved",{index:e,isLocal:!o,previousItemData:n})}},{key:"_handleContextUpdate",value:function(e,t,n){this._updateRootDateUpdated(n),this._updateContextIfRequired(e,t)&&this.broadcastEventToListeners("contextUpdated",{context:e,isLocal:!1})}},{key:"_updateContextIfRequired",value:function(e,t){return!this.contextEventId||t>this.contextEventId?(this.context=e,this.contextEventId=t,!0):(ue("Context update skipped, current:",this.lastEventId,", remote:",t),!1)}}],[{key:"type",get:function(){return"list"}}]),n}(Ae),et=function(e){I.default(n,e);var t=Je(n);function n(e){var r;return E.default(this,n),(r=t.call(this)).syncListImpl=e,r.syncListImpl.attach(T.default(r)),r}return C.default(n,[{key:"uri",get:function(){return this.syncListImpl.uri}},{key:"revision",get:function(){return this.syncListImpl.revision}},{key:"lastEventId",get:function(){return this.syncListImpl.lastEventId}},{key:"links",get:function(){return this.syncListImpl.links}},{key:"dateExpires",get:function(){return this.syncListImpl.dateExpires}},{key:"type",get:function(){return Qe.type}},{key:"sid",get:function(){return this.syncListImpl.sid}},{key:"uniqueName",get:function(){return this.syncListImpl.uniqueName}},{key:"dateUpdated",get:function(){return this.syncListImpl.dateUpdated}},{key:"push",value:function(){var e=_.default(R.default.mark((function e(t,n){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.push(t,n));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"set",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.set(t,n,r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"mutate",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.mutate(t,n,r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.update(t,n,r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"remove",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.remove(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.get(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getContext",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.getContext());case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getItems",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.getItems(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setTtl",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.setTtl(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setItemTtl",value:function(){var e=_.default(R.default.mark((function e(t,n){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.setItemTtl(t,n));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"removeList",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncListImpl.removeList());case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"close",value:function(){j.default(O.default(n.prototype),"close",this).call(this),this.syncListImpl.detach(this.listenerUuid)}}],[{key:"type",get:function(){return Qe.type}}]),n}(Le);P.default(et,"itemAdded","itemAdded"),P.default(et,"itemUpdated","itemUpdated"),P.default(et,"itemRemoved","itemRemoved"),P.default(et,"removed","removed"),W([p.validateTypesAsync(p.pureObject,["undefined",p.objectSchema("item metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Object,Object]),Z("design:returntype",Promise)],et.prototype,"push",null),W([p.validateTypesAsync(p.nonNegativeInteger,p.pureObject,["undefined",p.objectSchema("item metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Number,Object,Object]),Z("design:returntype",Promise)],et.prototype,"set",null),W([p.validateTypesAsync(p.nonNegativeInteger,"function",["undefined",p.objectSchema("item metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Number,Function,Object]),Z("design:returntype",Promise)],et.prototype,"mutate",null),W([p.validateTypesAsync(p.nonNegativeInteger,p.pureObject,["undefined",p.objectSchema("item metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Number,Object,Object]),Z("design:returntype",Promise)],et.prototype,"update",null),W([p.validateTypesAsync(p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[Number]),Z("design:returntype",Promise)],et.prototype,"remove",null),W([p.validateTypesAsync(p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[Number]),Z("design:returntype",Promise)],et.prototype,"get",null),W([p.validateTypesAsync(["undefined",p.objectSchema("query options",{from:[p.nonNegativeInteger,"undefined"],pageSize:[p.custom((function(e){return[ae(e),"a positive integer"]})),"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",Promise)],et.prototype,"getItems",null),W([p.validateTypesAsync(p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[Number]),Z("design:returntype",Promise)],et.prototype,"setTtl",null),W([p.validateTypesAsync(p.nonNegativeInteger,p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[Number,Number]),Z("design:returntype",Promise)],et.prototype,"setItemTtl",null);var tt=function(){function e(t){E.default(this,e),this.descriptor=t}return C.default(e,[{key:"uri",get:function(){return this.descriptor.url}},{key:"revision",get:function(){return this.descriptor.revision}},{key:"lastEventId",get:function(){return this.descriptor.last_event_id}},{key:"dateExpires",get:function(){return this.descriptor.date_expires}},{key:"key",get:function(){return this.descriptor.key}},{key:"data",get:function(){return this.descriptor.data}},{key:"dateUpdated",get:function(){return this.descriptor.date_updated}},{key:"update",value:function(e,t,n,r){return this.descriptor.last_event_id=e,this.descriptor.revision=t,this.descriptor.data=n,this.descriptor.date_updated=r,this}},{key:"updateDateExpires",value:function(e){this.descriptor.date_expires=e}}]),e}();function nt(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var rt=function(e){I.default(n,e);var t=nt(n);function n(e,r,o){var i;E.default(this,n);return(i=t.call(this,e,o)).updateMergingQueue=new Ne((function(e,t){return"number"===typeof t.ttl?{ttl:t.ttl}:e})),i.cache=new Xe,i.descriptor=r,i.descriptor.date_updated=new Date(i.descriptor.date_updated),r.items&&r.items.forEach((function(e){e.date_updated=new Date(e.date_updated),i.cache.store(e.key,new tt(e),e.last_event_id)})),i}return C.default(n,[{key:"uri",get:function(){return this.descriptor.url}},{key:"links",get:function(){return this.descriptor.links}},{key:"revision",get:function(){return this.descriptor.revision}},{key:"lastEventId",get:function(){return this.descriptor.last_event_id}},{key:"dateExpires",get:function(){return this.descriptor.date_expires}},{key:"type",get:function(){return"map"}},{key:"indexName",get:function(){}},{key:"queryString",get:function(){}},{key:"sid",get:function(){return this.descriptor.sid}},{key:"uniqueName",get:function(){return this.descriptor.unique_name||null}},{key:"dateUpdated",get:function(){return this.descriptor.date_updated}},{key:"set",value:function(){var e=_.default(R.default.mark((function e(t,n,r){var o,i=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r||{},e.abrupt("return",this.updateMergingQueue.squashAndAdd(t,o,(function(e){return i._putItemUnconditionally(t,n,e.ttl)})));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t&&void 0!==t){e.next=2;break}throw new ne("SyncMapItem key may not be empty",400,54209);case 2:if(!this.cache.has(t)){e.next=6;break}return e.abrupt("return",this.cache.get(t));case 6:return e.abrupt("return",this._getItemFromServer(t));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getItemFromServer",value:function(){var e=_.default(R.default.mark((function e(t){var n;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.queryItems({key:t});case 2:if(!((n=e.sent).items.length<1)){e.next=7;break}throw new ne("The specified Map Item does not exist",404,54201);case 7:return e.abrupt("return",n.items[0]);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"mutate",value:function(){var e=_.default(R.default.mark((function e(t,n,r){var o,i=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r||{},e.abrupt("return",this.updateMergingQueue.add(t,o,(function(e){return i._putItemWithIfMatch(t,n,e.ttl)})));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.mutate(t,(function(e){return Object.assign(e,n)}),r));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_putItemUnconditionally",value:function(){var e=_.default(R.default.mark((function e(t,n,r){var o,i;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._putItemToServer(t,n,void 0,r);case 2:return o=e.sent,i=o.item,this._handleItemMutated(i.key,i.url,i.last_event_id,i.revision,i.data,i.date_updated,i.date_expires,o.added,!1),e.abrupt("return",this.cache.get(i.key));case 6:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_putItemWithIfMatch",value:function(){var e=_.default(R.default.mark((function e(t,n,r){var o,i,a,s,l;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(t).catch((function(e){if(404===e.status)return new tt({key:t,data:{},last_event_id:-1,revision:"-1",url:null,date_updated:null,date_expires:null});throw e}));case 2:if(o=e.sent,!(i=n(oe(o.data)))){e.next=26;break}return a=o.revision,e.prev=6,e.next=9,this._putItemToServer(t,i,a,r);case 9:return s=e.sent,l=s.item,this._handleItemMutated(l.key,l.url,l.last_event_id,l.revision,l.data,l.date_updated,l.date_expires,s.added,!1),e.abrupt("return",this.cache.get(l.key));case 15:if(e.prev=15,e.t0=e.catch(6),412!==e.t0.status){e.next=23;break}return e.next=20,this._getItemFromServer(t);case 20:return e.abrupt("return",this._putItemWithIfMatch(t,n,r));case 23:throw e.t0;case 24:e.next=27;break;case 26:return e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this,[[6,15]])})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"_putItemToServer",value:function(){var e=_.default(R.default.mark((function e(t,n,r,o){var i,a,s,l,c;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new ee(this.links.items).pathSegment(t).build(),a={data:n},void 0!==o&&(a.ttl=o),e.prev=3,e.next=6,this.services.network.put(i,a,r);case 6:return s=e.sent,(l=s.body).data=n,l.date_updated=new Date(l.date_updated),c=201===s.status.code,e.abrupt("return",{added:c,item:l});case 14:throw e.prev=14,e.t0=e.catch(3),404===e.t0.status&&this.onRemoved(!1),e.t0;case 18:case"end":return e.stop()}}),e,this,[[3,14]])})));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"remove",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(t);case 2:return n=e.sent,r=oe(n.data),e.next=6,this.services.network.delete(n.uri);case 6:o=e.sent,this._handleItemRemoved(t,o.body.last_event_id,r,new Date(o.body.date_updated),!1);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"queryItems",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=t||{},n=new ee(this.links.items).queryParam("From",t.from).queryParam("PageSize",t.limit).queryParam("Key",t.key).queryParam("PageToken",t.pageToken).queryParam("Order",t.order).build(),e.next=4,this.services.network.get(n);case 4:return r=e.sent,o=r.body.items.map((function(e){return e.date_updated=new Date(e.date_updated),a.cache.get(e.key)?a._handleItemMutated(e.key,e.url,e.last_event_id,e.revision,e.data,e.date_updated,e.date_expires,!1,!0):a.cache.store(e.key,new tt(e),e.last_event_id),a.cache.get(e.key)})),i=r.body.meta,e.abrupt("return",new Fe(o,(function(e){return a.queryItems({pageToken:e})}),i.previous_token,i.next_token));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getItems",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ie((t=t||{}).pageSize),t.limit=t.pageSize||t.limit||50,t.order=t.order||"asc",e.abrupt("return",this.queryItems(t));case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldIgnoreEvent",value:function(e,t){return this.cache.isKnown(e,t)}},{key:"_update",value:function(e,t){switch(e.date_created=new Date(e.date_created),e.type){case"map_item_added":case"map_item_updated":this._handleItemMutated(e.item_key,e.item_url,e.id,e.item_revision,e.item_data,e.date_created,void 0,"map_item_added"===e.type,!0);break;case"map_item_removed":this._handleItemRemoved(e.item_key,e.id,e.item_data,e.date_created,!0);break;case"map_removed":this.onRemoved(!1)}t&&this._advanceLastEventId(e.id,e.map_revision)}},{key:"_advanceLastEventId",value:function(e,t){this.lastEventId<e&&(this.descriptor.last_event_id=e,t&&(this.descriptor.revision=t))}},{key:"_updateRootDateUpdated",value:function(e){(!this.descriptor.date_updated||e.getTime()>this.descriptor.date_updated.getTime())&&(this.descriptor.date_updated=e,this.services.storage.update(this.type,this.sid,this.uniqueName,{date_updated:e}))}},{key:"_handleItemMutated",value:function(e,t,n,r,o,i,a,s,l){if(this.shouldIgnoreEvent(e,n))ue("SyncMapItem ",e," update skipped, current:",this.lastEventId,", remote:",n);else{this._updateRootDateUpdated(i);var c=this.cache.get(e);if(!c){var u=new tt({key:e,url:t,last_event_id:n,revision:r,data:o,date_updated:i,date_expires:a});return this.cache.store(e,u,n),void this.emitItemMutationEvent(u,l,s)}var d=oe(c.data);c.update(n,r,o,i),this.cache.store(e,c,n),void 0!==a&&c.updateDateExpires(a),this.emitItemMutationEvent(c,l,!1,d)}}},{key:"emitItemMutationEvent",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=n?"itemAdded":"itemUpdated",i={item:e,isLocal:!t};n||(i.previousItemData=r),this.broadcastEventToListeners(o,i)}},{key:"_handleItemRemoved",value:function(e,t,n,r,o){this._updateRootDateUpdated(r),this.cache.delete(e,t),this.broadcastEventToListeners("itemRemoved",{key:e,isLocal:!o,previousItemData:n})}},{key:"onRemoved",value:function(e){this._unsubscribe(),this.removalHandler(this.type,this.sid,this.uniqueName),this.broadcastEventToListeners("removed",{isLocal:e})}},{key:"setTtl",value:function(){var e=_.default(R.default.mark((function e(t){var n,r;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={ttl:t},e.next=4,this.services.network.post(this.uri,n);case 4:r=e.sent,this.descriptor.date_expires=r.body.date_expires,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),404===e.t0.status&&this.onRemoved(!1),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()},{key:"setItemTtl",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o,i;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get(t);case 2:return r=e.sent,o={ttl:n},e.next=6,this.services.network.post(r.uri,o);case 6:i=e.sent,r.updateDateExpires(i.body.date_expires);case 8:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"removeMap",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.network.delete(this.uri);case 2:this.onRemoved(!0);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}],[{key:"type",get:function(){return"map"}}]),n}(Ae),ot=function(e){I.default(n,e);var t=nt(n);function n(e){var r;return E.default(this,n),(r=t.call(this)).syncMapImpl=e,r.syncMapImpl.attach(T.default(r)),r}return C.default(n,[{key:"uri",get:function(){return this.syncMapImpl.uri}},{key:"links",get:function(){return this.syncMapImpl.links}},{key:"revision",get:function(){return this.syncMapImpl.revision}},{key:"lastEventId",get:function(){return this.syncMapImpl.lastEventId}},{key:"dateExpires",get:function(){return this.syncMapImpl.dateExpires}},{key:"type",get:function(){return rt.type}},{key:"sid",get:function(){return this.syncMapImpl.sid}},{key:"uniqueName",get:function(){return this.syncMapImpl.uniqueName}},{key:"dateUpdated",get:function(){return this.syncMapImpl.dateUpdated}},{key:"set",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncMapImpl.set(t,n,r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncMapImpl.get(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"mutate",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncMapImpl.mutate(t,n,r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"update",value:function(){var e=_.default(R.default.mark((function e(t,n,r){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncMapImpl.update(t,n,r));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"remove",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncMapImpl.remove(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getItems",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncMapImpl.getItems(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setTtl",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncMapImpl.setTtl(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setItemTtl",value:function(){var e=_.default(R.default.mark((function e(t,n){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncMapImpl.setItemTtl(t,n));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"removeMap",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.next=3,this.syncMapImpl.removeMap();case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"close",value:function(){j.default(O.default(n.prototype),"close",this).call(this),this.syncMapImpl.detach(this.listenerUuid)}}],[{key:"type",get:function(){return rt.type}}]),n}(Le);function it(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}P.default(ot,"itemAdded","itemAdded"),P.default(ot,"itemUpdated","itemUpdated"),P.default(ot,"itemRemoved","itemRemoved"),P.default(ot,"removed","removed"),W([p.validateTypesAsync("string",p.pureObject,["undefined",p.objectSchema("item metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[String,Object,Object]),Z("design:returntype",Promise)],ot.prototype,"set",null),W([p.validateTypesAsync("string"),Z("design:type",Function),Z("design:paramtypes",[String]),Z("design:returntype",Promise)],ot.prototype,"get",null),W([p.validateTypesAsync("string","function",["undefined",p.objectSchema("item metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[String,Function,Object]),Z("design:returntype",Promise)],ot.prototype,"mutate",null),W([p.validateTypesAsync("string",p.pureObject,["undefined",p.objectSchema("item metadata",{ttl:[p.nonNegativeInteger,"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[String,Object,Object]),Z("design:returntype",Promise)],ot.prototype,"update",null),W([p.validateTypesAsync("string"),Z("design:type",Function),Z("design:paramtypes",[String]),Z("design:returntype",Promise)],ot.prototype,"remove",null),W([p.validateTypesAsync(["undefined",p.objectSchema("query options",{from:["string","undefined"],pageSize:[p.custom((function(e){return[ae(e),"a positive integer"]})),"undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",Promise)],ot.prototype,"getItems",null),W([p.validateTypesAsync(p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[Number]),Z("design:returntype",Promise)],ot.prototype,"setTtl",null),W([p.validateTypesAsync("string",p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[String,Number]),Z("design:returntype",Promise)],ot.prototype,"setItemTtl",null);var at=function(e){I.default(n,e);var t=it(n);function n(e,r,o){var i;return E.default(this,n),(i=t.call(this,e,o)).descriptor=r,i}return C.default(n,[{key:"uri",get:function(){return this.descriptor.url}},{key:"links",get:function(){return this.descriptor.links}},{key:"dateExpires",get:function(){return this.descriptor.date_expires}},{key:"type",get:function(){return"stream"}},{key:"lastEventId",get:function(){return null}},{key:"indexName",get:function(){}},{key:"queryString",get:function(){}},{key:"sid",get:function(){return this.descriptor.sid}},{key:"uniqueName",get:function(){return this.descriptor.unique_name||null}},{key:"publishMessage",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o,i;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={data:t},e.next=3,this.services.network.post(this.links.messages,n);case 3:return r=e.sent,o=r.body,i=this._handleMessagePublished(o.sid,t,!1),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setTtl",value:function(){var e=_.default(R.default.mark((function e(t){var n,r;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n={ttl:t},e.next=4,this.services.network.post(this.uri,n);case 4:r=e.sent,this.descriptor.date_expires=r.body.date_expires,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(0),404===e.t0.status&&this.onRemoved(!1),e.t0;case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()},{key:"removeStream",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.network.delete(this.uri);case 2:this.onRemoved(!0);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_update",value:function(e){switch(e.type){case"stream_message_published":this._handleMessagePublished(e.message_sid,e.message_data,!0);break;case"stream_removed":this.onRemoved(!1)}}},{key:"_handleMessagePublished",value:function(e,t,n){var r={sid:e,data:t};return this.broadcastEventToListeners("messagePublished",{message:r,isLocal:!n}),r}},{key:"onRemoved",value:function(e){this._unsubscribe(),this.removalHandler(this.type,this.sid,this.uniqueName),this.broadcastEventToListeners("removed",{isLocal:e})}}],[{key:"type",get:function(){return"stream"}}]),n}(Ae);W([p.validateTypesAsync(p.pureObject),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",Promise)],at.prototype,"publishMessage",null),W([p.validateTypesAsync(p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[Number]),Z("design:returntype",Promise)],at.prototype,"setTtl",null);var st=function(e){I.default(n,e);var t=it(n);function n(e){var r;return E.default(this,n),(r=t.call(this)).syncStreamImpl=e,r.syncStreamImpl.attach(T.default(r)),r}return C.default(n,[{key:"uri",get:function(){return this.syncStreamImpl.uri}},{key:"links",get:function(){return this.syncStreamImpl.links}},{key:"dateExpires",get:function(){return this.syncStreamImpl.dateExpires}},{key:"type",get:function(){return at.type}},{key:"lastEventId",get:function(){return null}},{key:"sid",get:function(){return this.syncStreamImpl.sid}},{key:"uniqueName",get:function(){return this.syncStreamImpl.uniqueName}},{key:"publishMessage",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncStreamImpl.publishMessage(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setTtl",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncStreamImpl.setTtl(t));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"removeStream",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.ensureNotClosed(),e.abrupt("return",this.syncStreamImpl.removeStream());case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"close",value:function(){j.default(O.default(n.prototype),"close",this).call(this),this.syncStreamImpl.detach(this.listenerUuid)}}],[{key:"type",get:function(){return at.type}}]),n}(Le);P.default(st,"messagePublished","messagePublished"),P.default(st,"removed","removed"),W([p.validateTypesAsync(p.pureObject),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",Promise)],st.prototype,"publishMessage",null),W([p.validateTypesAsync(p.nonNegativeInteger),Z("design:type",Function),Z("design:paramtypes",[Number]),Z("design:returntype",Promise)],st.prototype,"setTtl",null);var lt=function e(t){E.default(this,e),this.sdk="js",this.sdkVer=t,this.os=z.os.family,this.osVer=z.os.version,this.pl=z.name,this.plVer=z.version},ct=function(){function e(){E.default(this,e),this.names=new Map,this.entities=new Map}return C.default(e,[{key:"store",value:function(e){var t=this.entities.get(e.sid);return t||(this.entities.set(e.sid,e),e.uniqueName&&this.names.set(e.type+"::"+e.uniqueName,e.sid),e)}},{key:"getResolved",value:function(e,t){var n=this.names.get(t+"::"+e);return n?this.entities.get(n):null}},{key:"get",value:function(e,t){return this.entities.get(e)||this.getResolved(e,t)||null}},{key:"remove",value:function(e){var t=this.entities.get(e);t&&(this.entities.delete(e),t.uniqueName&&this.names.delete(t.type+"::"+t.uniqueName))}}]),e}();function ut(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var dt=function(e){I.default(n,e);var t=ut(n);function n(e,r,o,i){var a;return E.default(this,n),(a=t.call(this,r,o)).descriptor=e,a.cache=new Xe,i&&i.forEach((function(e){a.cache.store(e.key,{key:e.key,value:e.data},e.revision)})),a}return C.default(n,[{key:"sid",get:function(){return this.descriptor.sid}},{key:"uniqueName",get:function(){return null}},{key:"type",get:function(){return n.type}},{key:"lastEventId",get:function(){return this.descriptor.last_event_id}},{key:"indexName",get:function(){return this.descriptor.indexName}},{key:"queryString",get:function(){return this.descriptor.queryExpression}},{key:"queryUri",get:function(){return this.descriptor.queryUri}},{key:"liveQueryDescriptor",get:function(){return this.descriptor}},{key:"onRemoved",value:function(){}},{key:"getItems",value:function(){var e={};return this.cache.forEach((function(t,n){e[t]=n.value})),e}},{key:"_update",value:function(e,t){switch(e.type){case"live_query_item_updated":this.handleItemMutated(e.item_key,e.item_data,e.item_revision);break;case"live_query_item_removed":this.handleItemRemoved(e.item_key,e.item_revision);break;case"live_query_updated":this.handleBatchUpdate(e.items)}t&&this._advanceLastEventId(e.last_event_id)}},{key:"handleItemMutated",value:function(e,t,n){if(this.shouldIgnoreEvent(e,n))ue("Item ".concat(e," update skipped, revision: ").concat(n));else{var r={key:e,value:t};this.cache.store(e,r,n),this.broadcastEventToListeners("itemUpdated",r)}}},{key:"handleItemRemoved",value:function(e,t){var n=null===t;this.shouldIgnoreEvent(e,t)?ue("Item ".concat(e," delete skipped, revision: ").concat(t)):(this.cache.delete(e,t,n),this.broadcastEventToListeners("itemRemoved",{key:e}))}},{key:"handleBatchUpdate",value:function(e){var t=this,n={};for(var r in null!=e&&e.forEach((function(e){n[e.key]={data:e.data,revision:e.revision}})),this.cache.forEach((function(e,r){var o=n[e];null!=o?t.handleItemMutated(e,o.data,o.revision):t.handleItemRemoved(e,null),delete n[e]})),n)this.handleItemMutated(r,n[r].data,n[r].revision)}},{key:"shouldIgnoreEvent",value:function(e,t){return null!=e&&null!=t&&this.cache.isKnown(e,t)}},{key:"_advanceLastEventId",value:function(e,t){this.lastEventId<e&&(this.descriptor.last_event_id=e)}}],[{key:"type",get:function(){return"live_query"}}]),n}(Ae);function ft(e){return pt.apply(this,arguments)}function pt(){return(pt=_.default(R.default.mark((function e(t){var n,r,o,i,a,s;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.network,r=t.queryString,o=t.uri,i=t.type,null!=r){e.next=3;break}throw new ne("Invalid query",400,54507);case 3:return a={query_string:r},i===ht.type&&(a.type=i),e.next=7,n.post(o,a,void 0,!0);case 7:return s=e.sent,e.abrupt("return",s.body);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ht=function(e){I.default(n,e);var t=ut(n);function n(e){var r;return E.default(this,n),(r=t.call(this)).liveQueryImpl=e,r.liveQueryImpl.attach(T.default(r)),r}return C.default(n,[{key:"type",get:function(){return dt.type}},{key:"lastEventId",get:function(){return this.liveQueryImpl.lastEventId}},{key:"sid",get:function(){return this.liveQueryImpl.sid}},{key:"close",value:function(){j.default(O.default(n.prototype),"close",this).call(this),this.liveQueryImpl.detach(this.listenerUuid)}},{key:"getItems",value:function(){return this.ensureNotClosed(),this.liveQueryImpl.getItems()}}],[{key:"type",get:function(){return dt.type}}]),n}(Le);P.default(ht,"itemUpdated","itemUpdated"),P.default(ht,"itemRemoved","itemRemoved");var mt=function(e){I.default(n,e);var t=ut(n);function n(e){var r;return E.default(this,n),r=t.call(this),P.default(T.default(r),"queryExpression",null),P.default(T.default(r),"items",{}),Object.assign(T.default(r),e),r.updateIndexName(e.indexName),r}return C.default(n,[{key:"type",get:function(){return n.type}},{key:"search",value:function(){var e=_.default(R.default.mark((function e(t){var n=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.items={},e.abrupt("return",ft({network:this.network,uri:this.queryUri,queryString:t}).then((function(e){n.queryExpression=t,e.items&&e.items.forEach((function(e){n.items[e.key]=e.data})),n.emit("searchResult",n.getItems())})).catch((function(e){throw pe("Error '".concat(e.message,"' while executing query '").concat(t,"'")),n.queryExpression=null,e})));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"subscribe",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=this.queryExpression){e.next=2;break}return e.abrupt("return",Promise.reject(new ne("Invalid query",400,54507)));case 2:return e.abrupt("return",this.liveQueryCreator(this.indexName,this.queryExpression));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getItems",value:function(){return this.items}},{key:"updateIndexName",value:function(e){this.indexName=e,this.queryUri=this.generateQueryUri(this.indexName)}},{key:"generateQueryUri",value:function(e){return new ee(this.insightsUri).pathSegment(e).pathSegment("Items").build()}}],[{key:"type",get:function(){return"instant_query"}}]),n}(H);P.default(mt,"searchResult","searchResult"),W([p.validateTypesAsync("string"),Z("design:type",Function),Z("design:paramtypes",[String]),Z("design:returntype",Promise)],mt.prototype,"search",null),W([p.validateTypes(p.nonEmptyString),Z("design:type",Function),Z("design:paramtypes",[String]),Z("design:returntype",void 0)],mt.prototype,"updateIndexName",null);function vt(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){P.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bt="data_sync",xt="3.1.0";function wt(e){if(e){if("string"===typeof e)return{id:e,mode:"open_or_create"};var t=e.mode||(e.id?"open_or_create":"create_new");return yt(yt({},e),{},{mode:t})}return{mode:"create_new"}}var kt="com.twilio.rtd.cds.document",St="com.twilio.rtd.cds.list",_t="com.twilio.rtd.cds.map",Et="twilio.sync.event",Ct=function(e){I.default(n,e);var t=vt(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E.default(this,n),r=t.call(this),!e)throw new Error("Sync library needs a valid Twilio token to be passed");o.hasOwnProperty("logLevel")?ce(o.logLevel):ce("silent");var i=o.productId=o.productId||bt;o.clientMetadata=o.clientMetadata||{},o.clientMetadata.hasOwnProperty("type")||(o.clientMetadata.type="sync"),o.clientMetadata.hasOwnProperty("sdk")||(o.clientMetadata.sdk="JS",o.clientMetadata.sdkv=xt);var a=!o.twilsockClient;if(!o.initRegistrations){var s=new h.InitRegistration(i);n.populateInitRegistrations(s),o.initRegistrations=[s]}var l=o.twilsockClient=o.twilsockClient||new h.Twilsock(e,i,o);l.on("tokenAboutToExpire",(function(e){return r.emit("tokenAboutToExpire",e)})),l.on("tokenExpired",(function(){return r.emit("tokenExpired")})),l.on("connectionError",(function(e){return r.emit("connectionError",e)})),l.on("stateChanged",(function(e){r.emit("connectionStateChanged",e),r.services.subscriptions.onConnectionStateChanged("connected"===e)})),l.on("message",(function(e,t){return r._routeMessage(e,t)}));var c=new we(o),u=new Be(new lt(xt),c,l),d=new Oe(c);return r.services={config:c,twilsock:l,network:u,storage:d,router:T.default(r),subscriptions:null},r.services.subscriptions=new Ee(r.services),r.entities=new ct,a&&l.connect(),r}return C.default(n,[{key:"_routeMessage",value:function(e,t){switch(ue("Notification type:",e,"content:",t),e){case kt:case St:case _t:this.services.subscriptions.acceptMessage(t,!1);break;case Et:this.services.subscriptions.acceptMessage(t,!0)}}},{key:"_subscribe",value:function(e,t){this.services.subscriptions.add(e,t)}},{key:"_unsubscribe",value:function(e){this.services.subscriptions.remove(e)}},{key:"connectionState",get:function(){return this.services.twilsock.state}},{key:"ensureReady",value:function(){var e=_.default(R.default.mark((function e(){var t;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.services.config.sessionStorageEnabled){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,this.services.twilsock.storageId();case 5:t=e.sent,this.services.storage.updateStorageId(t.id),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),fe("Failed to initialize storage",e.t0);case 12:case"end":return e.stop()}}),e,this,[[2,9]])})));return function(){return e.apply(this,arguments)}}()},{key:"storeRootInSessionCache",value:function(e,t,n){if(this.services.config.sessionStorageEnabled&&t){var r=oe(n);e!==et.type&&e!==ot.type||(r.last_event_id=null,delete r.items),this.services.storage.store(e,t,r)}}},{key:"readRootFromSessionCache",value:function(e,t){return this.services.config.sessionStorageEnabled&&t?this.services.storage.read(e,t):null}},{key:"_get",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o,i,a=arguments;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.length>2&&void 0!==a[2]&&a[2],n){e.next=3;break}throw new ne("Cannot get entity without id",404);case 3:return o=new ee(t).pathSegment(n).queryParam("Include",r?"items":void 0).build(),e.next=6,this.services.network.get(o);case 6:return i=e.sent,e.abrupt("return",i.body);case 8:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_createDocument",value:function(e,t,n){var r={unique_name:e,data:t||{}};return void 0!==n&&(r.ttl=n),this.services.network.post(this.services.config.documentsUri,r).then((function(e){return e.body.data=r.data,e.body}))}},{key:"_getDocument",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.readRootFromSessionCache(We.type,t)||this._get(this.services.config.documentsUri,t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_createList",value:function(e,t,n,r){var o={unique_name:e,purpose:t,context:n};return void 0!==r&&(o.ttl=r),this.services.network.post(this.services.config.listsUri,o).then((function(e){return e.body}))}},{key:"_getList",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.readRootFromSessionCache(et.type,t)||this._get(this.services.config.listsUri,t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_createMap",value:function(e,t){var n={unique_name:e};return void 0!==t&&(n.ttl=t),this.services.network.post(this.services.config.mapsUri,n).then((function(e){return e.body}))}},{key:"_getMap",value:function(){var e=_.default(R.default.mark((function e(t){var n,r=arguments;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],e.abrupt("return",this.readRootFromSessionCache(ot.type,t)||this._get(this.services.config.mapsUri,t,n));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_getStream",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.readRootFromSessionCache(st.type,t)||this._get(this.services.config.streamsUri,t,!1));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_createStream",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={unique_name:t},void 0!==n&&(r.ttl=n),e.next=4,this.services.network.post(this.services.config.streamsUri,r);case 4:return o=e.sent,e.abrupt("return",o.body);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_getLiveQuery",value:function(e){return this.readRootFromSessionCache(ht.type,e)}},{key:"getCached",value:function(e,t){return e&&this.entities.get(e,t)||null}},{key:"removeFromCacheAndSession",value:function(e,t,n){this.entities.remove(t),this.services.config.sessionStorageEnabled&&this.services.storage.remove(e,t,n)}},{key:"document",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureReady();case 2:if("create_new"!==(n=wt(t)).mode){e.next=9;break}return e.next=6,this._createDocument(n.id,n.data,n.ttl);case 6:case 17:case 29:r=e.sent,e.next=39;break;case 9:if(!(o=this.getCached(n.id,We.type))){e.next=14;break}return e.abrupt("return",new We(o));case 14:return e.prev=14,e.next=17,this._getDocument(n.id);case 20:if(e.prev=20,e.t0=e.catch(14),404===e.t0.status&&"open_existing"!==n.mode){e.next=26;break}throw e.t0;case 26:return e.prev=26,e.next=29,this._createDocument(n.id,n.data,n.ttl);case 32:if(e.prev=32,e.t1=e.catch(26),409!==e.t1.status){e.next=38;break}return e.abrupt("return",this.document(t));case 38:throw e.t1;case 39:return this.storeRootInSessionCache(We.type,n.id,r),i=new ze(this.services,r,(function(e,t,n){return a.removeFromCacheAndSession(e,t,n)})),i=this.entities.store(i),e.abrupt("return",new We(i));case 43:case"end":return e.stop()}}),e,this,[[14,20],[26,32]])})));return function(t){return e.apply(this,arguments)}}()},{key:"map",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureReady();case 2:if("create_new"!==(n=wt(t)).mode){e.next=9;break}return e.next=6,this._createMap(n.id,n.ttl);case 6:case 17:case 29:r=e.sent,e.next=39;break;case 9:if(!(o=this.getCached(n.id,ot.type))){e.next=14;break}return e.abrupt("return",new ot(o));case 14:return e.prev=14,e.next=17,this._getMap(n.id,n.includeItems);case 20:if(e.prev=20,e.t0=e.catch(14),404===e.t0.status&&"open_existing"!==n.mode){e.next=26;break}throw e.t0;case 26:return e.prev=26,e.next=29,this._createMap(n.id,n.ttl);case 32:if(e.prev=32,e.t1=e.catch(26),409!==e.t1.status){e.next=38;break}return e.abrupt("return",this.map(t));case 38:throw e.t1;case 39:return this.storeRootInSessionCache(ot.type,n.id,r),i=new rt(this.services,r,(function(e,t,n){return a.removeFromCacheAndSession(e,t,n)})),i=this.entities.store(i),e.abrupt("return",new ot(i));case 43:case"end":return e.stop()}}),e,this,[[14,20],[26,32]])})));return function(t){return e.apply(this,arguments)}}()},{key:"list",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o,i,a=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureReady();case 2:if("create_new"!==(n=wt(t)).mode){e.next=9;break}return e.next=6,this._createList(n.id,n.purpose,n.context,n.ttl);case 6:case 17:case 29:r=e.sent,e.next=39;break;case 9:if(!(o=this.getCached(n.id,et.type))){e.next=14;break}return e.abrupt("return",new et(o));case 14:return e.prev=14,e.next=17,this._getList(n.id);case 20:if(e.prev=20,e.t0=e.catch(14),404===e.t0.status&&"open_existing"!==n.mode){e.next=26;break}throw e.t0;case 26:return e.prev=26,e.next=29,this._createList(n.id,n.purpose,n.context,n.ttl);case 32:if(e.prev=32,e.t1=e.catch(26),409!==e.t1.status){e.next=38;break}return e.abrupt("return",this.list(t));case 38:throw e.t1;case 39:return this.storeRootInSessionCache(et.type,n.id,r),i=new Qe(this.services,r,(function(e,t,n){return a.removeFromCacheAndSession(e,t,n)})),i=this.entities.store(i),e.abrupt("return",new et(i));case 43:case"end":return e.stop()}}),e,this,[[14,20],[26,32]])})));return function(t){return e.apply(this,arguments)}}()},{key:"stream",value:function(){var e=_.default(R.default.mark((function e(t){var n,r,o,i,a,s=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureReady();case 2:if("create_new"!==(n=wt(t)).mode){e.next=9;break}return e.next=6,this._createStream(n.id,n.ttl);case 6:case 17:case 29:r=e.sent,e.next=39;break;case 9:if(!(o=this.getCached(n.id,st.type))){e.next=14;break}return e.abrupt("return",new st(o));case 14:return e.prev=14,e.next=17,this._getStream(n.id);case 20:if(e.prev=20,e.t0=e.catch(14),404===e.t0.status&&"open_existing"!==n.mode){e.next=26;break}throw e.t0;case 26:return e.prev=26,e.next=29,this._createStream(n.id,n.ttl);case 32:if(e.prev=32,e.t1=e.catch(26),409!==e.t1.status){e.next=38;break}return e.abrupt("return",this.stream(t));case 38:throw e.t1;case 39:return this.storeRootInSessionCache(st.type,n.id,r),i=function(e,t,n){return s.removeFromCacheAndSession(e,t,n)},a=new at(this.services,r,i),a=this.entities.store(a),e.abrupt("return",new st(a));case 44:case"end":return e.stop()}}),e,this,[[14,20],[26,32]])})));return function(t){return e.apply(this,arguments)}}()},{key:"shutdown",value:function(){var e=_.default(R.default.mark((function e(){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.services.subscriptions.shutdown();case 2:return e.next=4,this.services.twilsock.disconnect();case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateToken",value:function(){var e=_.default(R.default.mark((function e(t){return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.services.twilsock.updateToken(t).catch((function(e){var t,n=null===e||void 0===e||null===(t=e.reply)||void 0===t?void 0:t.status;if(401===(null===n||void 0===n?void 0:n.code)&&"UNAUTHORIZED"===(null===n||void 0===n?void 0:n.status))throw new ne("Updated token was rejected by server",400,51130);throw e})));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"liveQuery",value:function(){var e=_.default(R.default.mark((function e(t,n){var r,o,i,a,s,l=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureReady();case 2:return r=new ee(this.services.config.insightsUri).pathSegment(t).pathSegment("Items").build(),e.next=5,ft({network:this.services.network,uri:r,queryString:n,type:ht.type});case 5:return o=e.sent,(i=this.getCached(o.query_id,ht.type))||((a=this._getLiveQuery(o.query_id))||(a={indexName:t,queryExpression:n,sid:o.query_id,queryUri:r,last_event_id:o.last_event_id}),s=function(e,t,n){return l.removeFromCacheAndSession(e,t,n)},i=new dt(a,this.services,s,o.items)),this.storeRootInSessionCache(ht.type,o.query_id,i.liveQueryDescriptor),i=this.entities.store(i),e.abrupt("return",new ht(i));case 11:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"instantQuery",value:function(){var e=_.default(R.default.mark((function e(t){var n,r=this;return R.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureReady();case 2:return n=function(e,t){return r.liveQuery(e,t)},e.abrupt("return",new mt({indexName:t,network:this.services.network,insightsUri:this.services.config.insightsUri,liveQueryCreator:n}));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}],[{key:"populateInitRegistrations",value:function(e){e.populateInitRegistrations([Et,kt,St,_t])}},{key:"version",get:function(){return xt}}]),n}(H);P.default(Ct,"connectionStateChanged","connectionStateChanged"),P.default(Ct,"connectionError","connectionError"),P.default(Ct,"tokenAboutToExpire","tokenAboutToExpire"),P.default(Ct,"tokenExpired","tokenExpired"),W([p.validateTypesAsync(["undefined","string",p.objectSchema("open document options",{id:["string","undefined"],mode:[p.literal("open_or_create","open_existing","create_new"),"undefined"],ttl:[p.nonNegativeInteger,"undefined"],data:[p.pureObject,"undefined",p.literal(null)]})]),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",Promise)],Ct.prototype,"document",null),W([p.validateTypesAsync(["undefined","string",p.objectSchema("open map options",{id:["string","undefined"],mode:[p.literal("open_or_create","open_existing","create_new"),"undefined"],ttl:[p.nonNegativeInteger,"undefined"],data:[p.pureObject,"undefined",p.literal(null)],includeItems:["boolean","undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",Promise)],Ct.prototype,"map",null),W([p.validateTypesAsync(["undefined","string",p.objectSchema("open list options",{id:["string","undefined"],mode:[p.literal("open_or_create","open_existing","create_new"),"undefined"],ttl:[p.nonNegativeInteger,"undefined"],data:[p.pureObject,"undefined",p.literal(null)],purpose:["string","undefined"],context:[p.pureObject,"undefined"],includeItems:["boolean","undefined"]})]),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",Promise)],Ct.prototype,"list",null),W([p.validateTypesAsync(["undefined","string",p.objectSchema("open stream options",{id:["string","undefined"],mode:[p.literal("open_or_create","open_existing","create_new"),"undefined"],ttl:[p.nonNegativeInteger,"undefined"],data:[p.pureObject,"undefined",p.literal(null)]})]),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",Promise)],Ct.prototype,"stream",null),W([p.validateTypesAsync(p.nonEmptyString),Z("design:type",Function),Z("design:paramtypes",[String]),Z("design:returntype",Promise)],Ct.prototype,"updateToken",null),W([p.validateTypesAsync(p.nonEmptyString,"string"),Z("design:type",Function),Z("design:paramtypes",[String,String]),Z("design:returntype",Promise)],Ct.prototype,"liveQuery",null),W([p.validateTypesAsync(p.nonEmptyString),Z("design:type",Function),Z("design:paramtypes",[String]),Z("design:returntype",Promise)],Ct.prototype,"instantQuery",null),t.Client=Ct,t.InsightsItem=function e(){E.default(this,e)},t.InstantQuery=mt,t.LiveQuery=ht,t.Paginator=Fe,t.SyncClient=Ct,t.SyncDocument=We,t.SyncList=et,t.SyncListItem=Ze,t.SyncMap=ot,t.SyncMapItem=tt,t.SyncStream=st},8868:function(e,t,n){"use strict";var r="undefined"!==typeof r?r:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};Object.defineProperty(t,"__esModule",{value:!0}),n(4584);var o=n(7156),i=n(9728),a=n(6115),s=n(1588),l=n(1655),c=n(4993),u=n(3808),d=n(6690),f=n(8416),p=n(4687);n(4778),n(5202),n(4208),n(2463);var h=n(8698),m=n(1263);n(9104),n(9147);var v=n(2895);n(8887),n(6669),n(1740),n(8116),n(4772),n(7675);var g=n(8566),y=n(4610);n(447),n(4178),n(974),n(3966),n(5790),n(6678),n(4847),n(8884),n(7582),n(5669),n(14),n(8890),n(8850),n(697),n(3517),n(8591),n(4516),n(1937),n(5977),n(1283),n(6332),n(2040),n(718),n(4777),n(1447),n(4319),n(2872);var b=n(3496);n(5084),n(3858),n(7264),n(2583),n(8894);var x=n(8645);n(5742);var w=n(3912);function k(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function S(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}n(6245),n(9994),n(5327);var _=k(o),E=k(i),C=k(a),T=k(s),I=k(l),B=k(c),O=k(u),P=k(d),R=k(f),A=k(p),M=k(h),N=S(v),D=S(g),L=k(b),j=S(w);function z(){}function W(){W.init.call(this)}function Z(e){return void 0===e._maxListeners?W.defaultMaxListeners:e._maxListeners}function F(e,t,n){if(t)e.call(n);else for(var r=e.length,o=Y(e,r),i=0;i<r;++i)o[i].call(n)}function H(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=Y(e,o),a=0;a<o;++a)i[a].call(n,r)}function U(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=Y(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function $(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=Y(e,a),l=0;l<a;++l)s[l].call(n,r,o,i)}function G(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=Y(e,o),a=0;a<o;++a)i[a].apply(n,r)}function q(e,t,n,r){var o,i,a,s;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new z,e._eventsCount=0),a){if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=Z(e))&&o>0&&a.length>o){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,"function"===typeof console.warn?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function K(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function V(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function Y(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}z.prototype=Object.create(null),W.EventEmitter=W,W.usingDomains=!1,W.prototype.domain=void 0,W.prototype._events=void 0,W.prototype._maxListeners=void 0,W.defaultMaxListeners=10,W.init=function(){this.domain=null,W.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new z,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},W.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},W.prototype.getMaxListeners=function(){return Z(this)},W.prototype.emit=function(e){var t,n,r,o,i,a,s,l="error"===e;if(a=this._events)l=l&&null==a.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var u="function"===typeof n;switch(r=arguments.length){case 1:F(n,u,this);break;case 2:H(n,u,this,arguments[1]);break;case 3:U(n,u,this,arguments[1],arguments[2]);break;case 4:$(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];G(n,u,this,o)}return!0},W.prototype.addListener=function(e,t){return q(this,e,t,!1)},W.prototype.on=W.prototype.addListener,W.prototype.prependListener=function(e,t){return q(this,e,t,!0)},W.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,K(this,e,t)),this},W.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,K(this,e,t)),this},W.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new z:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new z,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o);r.removeListener&&this.emit("removeListener",e,a||t)}return this},W.prototype.off=function(e,t){return this.removeListener(e,t)},W.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new z,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new z:delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new z,this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},W.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"===typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},W.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):V.call(e,t)},W.prototype.listenerCount=V,W.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var X=N.getLogger("twilsock");function J(e,t){return["".concat((new Date).toISOString()," Twilsock ").concat(e,":")].concat(Array.from(t))}var Q=function(){function e(t){P.default(this,e),R.default(this,"prefix",""),this.prefix=null!==t&&void 0!==t&&t.length>0?" "+t+":":""}return E.default(e,[{key:"setLevel",value:function(e){X.setLevel(e)}},{key:"trace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.trace.apply(null,J("T",t))}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.debug.apply(null,J("D",t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.info.apply(null,J("I",t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.warn.apply(null,J("W",t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.error.apply(null,J("E",t))}}],[{key:"setLevel",value:function(e){X.setLevel(e)}},{key:"trace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.trace.apply(null,J("T",t))}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.debug.apply(null,J("D",t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.info.apply(null,J("I",t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.warn.apply(null,J("W",t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];X.error.apply(null,J("E",t))}}]),e}(),ee=new Q(""),te="0.12.2",ne=function(){function e(t,n,r){P.default(this,e),R.default(this,"confirmedCapabilities",new Set),this.activeGrant=n,this._token=t;var o=r.region||"us1",i="wss://tsock.".concat(o,".twilio.com/v3/wsconnect"),a=r.twilsock||r.Twilsock||{};this.url=a.uri||i,this._continuationToken=r.continuationToken?r.continuationToken:null,this.logLevel=r.logLevel?r.logLevel:"error",this.retryPolicy=r.retryPolicy?r.retryPolicy:{min:1e3,max:12e4,randomness:.2},this.clientMetadata=r.clientMetadata?r.clientMetadata:{},this.clientMetadata.ver=te,this.initRegistrations=r.initRegistrations?r.initRegistrations:null,this.tweaks=r.tweaks?r.tweaks:null}return E.default(e,[{key:"token",get:function(){return this._token}},{key:"continuationToken",get:function(){return this._continuationToken}},{key:"updateToken",value:function(e){this._token=e}},{key:"updateContinuationToken",value:function(e){this._continuationToken=e}}]),e}(),re=function e(t){P.default(this,e),this.id=t||"TM".concat(y.v4())};function oe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var ie=function(e){I.default(n,e);var t=oe(n);function n(e,r,o,i,a){var s;return P.default(this,n),s=t.call(this),R.default(C.default(s),"method","init"),s.token=e,s.continuation_token=r,s.metadata=o,s.registrations=i,s.tweaks=a,s.capabilities=["client_update","offline_storage","telemetry.v1"],s}return n}(re);function ae(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var se=function(e){I.default(n,e);var t=ae(n);function n(e,r,o,i,a,s,l){var c;return P.default(this,n),(c=t.call(this,e)).continuationToken=r,c.continuationTokenStatus=i,c.offlineStorage=a,c.initRegistrations=s,c.debugInfo=l,c.confirmedCapabilities=o,c}return n}(re);function le(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var ce=function(e){I.default(n,e);var t=le(n);function n(e){var r;return P.default(this,n),r=t.call(this),R.default(C.default(r),"method","update"),r.token=e,r}return n}(re);function ue(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var de=function(e){I.default(n,e);var t=ue(n);function n(e,r,o){var i;return P.default(this,n),i=t.call(this),R.default(C.default(i),"method","message"),i.active_grant=e,i.payload_type=r,i.http_request=o,i}return n}(re);function fe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var pe=function(e){I.default(n,e);var t=fe(n);function n(e){var r;return P.default(this,n),r=t.call(this,e),R.default(C.default(r),"method","reply"),R.default(C.default(r),"payload_type","application/json"),R.default(C.default(r),"status",{code:200,status:"OK"}),r}return n}(re);function he(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var me=function(e){I.default(n,e);var t=he(n);function n(){var e;return P.default(this,n),e=t.call(this),R.default(C.default(e),"method","close"),e}return n}(re);function ve(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var ge=function e(t,n,r,o,i,a){P.default(this,e),this.start=t,this.end=n,this.title=r,this.details=o,this.id=i,this.type=a},ye=function(e){I.default(n,e);var t=ve(n);function n(e){var r;return P.default(this,n),r=t.call(this),R.default(C.default(r),"method","telemetry.v1"),r.events=e,r}return n}(re);function be(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(Number("0x"+t))})).length}function xe(e){var t=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(Number("0x"+t))})),n=new Uint8Array(t.length);return Array.prototype.forEach.call(t,(function(e,t){n[t]=e.charCodeAt(0)})),n}function we(e){var t=Array.prototype.map.call(e,(function(e){return String.fromCharCode(e)})).join("").replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}));return decodeURIComponent(t)}function ke(e){return JSON.parse(we(e))}var Se=function(){function e(){P.default(this,e)}return E.default(e,null,[{key:"parse",value:function(e){var t,n,r=new Uint8Array(e),o=function(e){for(var t="",n=0;n<e.length;++n){var r=String.fromCharCode(e[n]);if(t+=r,"\r"===r){n+=2;break}}var o=t.split(" ");return{size:n,protocol:o[0],version:o[1],headerSize:Number(o[2])}}(r);if("TWILSOCK"!==o.protocol||"V3.0"!==o.version)return ee.error("unsupported protocol: ".concat(o.protocol," ver ").concat(o.version)),null;try{t=ke(r.subarray(o.size,o.size+o.headerSize))}catch(s){return ee.error("failed to parse message header",s,e),null}if(ee.debug("message received: ",t.method),ee.trace("message received: ",t),t.payload_size>0){var i=2+o.size+o.headerSize,a=t.payload_size;if(t.hasOwnProperty("payload_type")&&0!==t.payload_type.indexOf("application/json"))0===t.payload_type.indexOf("text/plain")&&(n=we(r.subarray(i,i+a)));else try{n=ke(r.subarray(i,i+a))}catch(s){return ee.error("failed to parse message body",s,e),null}}return{method:t.method,header:t,payload:n}}},{key:"createPacket",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.payload_size=be(t);var n=JSON.stringify(e),r="TWILSOCK V3.0 "+be(n);ee.debug("send request:",r+n+t);var o=xe(r+"\r\n"+n+"\r\n"+t);return o.buffer}}]),e}();function _e(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var Ee=function(e){I.default(n,e);var t=_e(n);function n(e){return P.default(this,n),t.call(this,e)}return n}(L.default(Error));function Ce(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var Te=function(e){I.default(n,e);var t=Ce(n);function n(e,r){var o;return P.default(this,n),(o=t.call(this,e)).reply=r,o}return n}(Ee);function Ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){R.default(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var Pe=function(e){I.default(n,e);var t=Oe(n);function n(e){var r;return P.default(this,n),r=t.call(this),R.default(C.default(r),"newBackoff",null),R.default(C.default(r),"usedBackoff",null),R.default(C.default(r),"retrier",null),r.options=e?Be({},e):{},r}return E.default(n,[{key:"inProgress",get:function(){return!!this.retrier}},{key:"start",value:function(){if(this.inProgress)throw new Error("Already waiting for next attempt, call finishAttempt(success:boolean) to finish it");this.createRetrier()}},{key:"stop",value:function(){this.cleanRetrier(),this.newBackoff=null,this.usedBackoff=null}},{key:"modifyBackoff",value:function(e){this.newBackoff=e}},{key:"attemptFailed",value:function(){if(!this.inProgress)throw new Error("No attempt is in progress");var e,t;this.newBackoff?!this.usedBackoff||this.usedBackoff<this.newBackoff?this.createRetrier():null===(e=this.retrier)||void 0===e||e.failed(new Error):null===(t=this.retrier)||void 0===t||t.failed(new Error)}},{key:"cancel",value:function(){var e;null===(e=this.retrier)||void 0===e||e.cancel()}},{key:"cleanRetrier",value:function(){var e,t;null===(e=this.retrier)||void 0===e||e.removeAllListeners(),null===(t=this.retrier)||void 0===t||t.cancel(),this.retrier=null}},{key:"getRetryPolicy",value:function(){var e=Be({},this.options);return this.newBackoff&&(e.min=this.newBackoff,e.max=this.options.max&&this.options.max>this.newBackoff?this.options.max:this.newBackoff),e.maxAttemptsCount=this.options.maxAttemptsCount?this.options.maxAttemptsCount+1:void 0,e}},{key:"createRetrier",value:function(){var e=this;this.cleanRetrier();var t=this.getRetryPolicy();this.retrier=new x.Retrier(t),this.retrier.once("attempt",(function(){var t,n;null===(t=e.retrier)||void 0===t||t.on("attempt",(function(){return e.emit("attempt")})),null===(n=e.retrier)||void 0===n||n.failed(new Error("Skipping first attempt"))})),this.retrier.on("failed",(function(t){return e.emit("failed",t)})),this.usedBackoff=this.newBackoff,this.newBackoff=null,this.retrier.start()}}]),n}(W);function Re(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var Ae=function(e){I.default(n,e);var t=Re(n);function n(e,r,o){var i;P.default(this,n),i=t.call(this),R.default(C.default(i),"disconnectingTimer",null),R.default(C.default(i),"disconnectedPromiseResolve",null),R.default(C.default(i),"terminalStates",["disconnected","rejected"]),R.default(C.default(i),"tokenExpiredSasCode",20104),R.default(C.default(i),"terminationReason","Connection is not initialized"),i.websocket=e,i.websocket.on("connected",(function(){return i.fsm.socketConnected()})),i.websocket.on("disconnected",(function(){return i.fsm.socketClosed()})),i.websocket.on("message",(function(e){return i.onIncomingMessage(e)})),i.websocket.on("socketError",(function(e){return i.emit("connectionError",{terminal:!1,message:"Socket error: ".concat(e.message),httpStatusCode:null,errorCode:null})})),i.transport=r,i.config=o,i.retrier=new Pe(o.retryPolicy),i.retrier.on("attempt",(function(){return i.retry()})),i.retrier.on("failed",(function(e){ee.warn("Retrying failed: ".concat(e.message)),i.disconnect()})),"undefined"!==typeof window&&"undefined"!==typeof window.addEventListener&&(window.addEventListener("online",(function(){ee.debug("Browser reported connectivity state: online"),i.resetBackoff(),i.fsm.systemOnline()})),window.addEventListener("offline",(function(){ee.debug("Browser reported connectivity state: offline"),i.websocket.close(),i.fsm.socketClosed()})));var a=D.factory({init:"disconnected",transitions:[{name:"userConnect",from:["disconnected","rejected"],to:"connecting"},{name:"userConnect",from:["connecting","connected"]},{name:"userDisconnect",from:["connecting","initialising","connected","updating","retrying","rejected","waitSocketClosed","waitOffloadSocketClosed"],to:"disconnecting"},{name:"userRetry",from:["retrying"],to:"connecting"},{name:"socketConnected",from:["connecting"],to:"initialising"},{name:"socketClosed",from:["connecting","initialising","connected","updating","error","waitOffloadSocketClosed"],to:"retrying"},{name:"socketClosed",from:["disconnecting"],to:"disconnected"},{name:"socketClosed",from:["waitSocketClosed"],to:"disconnected"},{name:"socketClosed",from:["rejected"],to:"rejected"},{name:"initSuccess",from:["initialising"],to:"connected"},{name:"initError",from:["initialising"],to:"error"},{name:"tokenRejected",from:["initialising","updating"],to:"rejected"},{name:"protocolError",from:["initialising","connected","updating"],to:"error"},{name:"receiveClose",from:["initialising","connected","updating"],to:"waitSocketClosed"},{name:"receiveOffload",from:["initialising","connected","updating"],to:"waitOffloadSocketClosed"},{name:"unsupportedProtocol",from:["initialising","connected","updating"],to:"unsupported"},{name:"receiveFatalClose",from:["initialising","connected","updating"],to:"unsupported"},{name:"userUpdateToken",from:["disconnected","rejected","connecting","retrying"],to:"connecting"},{name:"userUpdateToken",from:["connected"],to:"updating"},{name:"updateSuccess",from:["updating"],to:"connected"},{name:"updateError",from:["updating"],to:"error"},{name:"userSend",from:["connected"],to:"connected"},{name:"systemOnline",from:["retrying"],to:"connecting"}],methods:{onConnecting:function(){i.setupSocket(),i.emit("connecting")},onEnterInitialising:function(){i.sendInit()},onLeaveInitialising:function(){i.cancelInit()},onEnterUpdating:function(){i.sendUpdate()},onLeaveUpdating:function(){i.cancelUpdate()},onEnterRetrying:function(){i.initRetry(),i.emit("connecting")},onEnterConnected:function(){i.resetBackoff(),i.onConnected()},onUserUpdateToken:function(){i.resetBackoff()},onTokenRejected:function(){i.resetBackoff(),i.closeSocket(!0),i.finalizeSocket()},onUserDisconnect:function(){i.closeSocket(!0)},onEnterDisconnecting:function(){i.startDisconnectTimer()},onLeaveDisconnecting:function(){i.cancelDisconnectTimer()},onEnterWaitSocketClosed:function(){i.startDisconnectTimer()},onLeaveWaitSocketClosed:function(){i.cancelDisconnectTimer()},onEnterWaitOffloadSocketClosed:function(){i.startDisconnectTimer()},onLeaveWaitOffloadSocketClosed:function(){i.cancelDisconnectTimer()},onDisconnected:function(){i.resetBackoff(),i.finalizeSocket()},onReceiveClose:function(){i.onCloseReceived()},onReceiveOffload:function(e,t){ee.debug("onreceiveoffload: ",t),i.modifyBackoff(t.body),i.onCloseReceived()},onUnsupported:function(){i.closeSocket(!0),i.finalizeSocket()},onError:function(e,t){i.closeSocket(t),i.finalizeSocket()},onEnterState:function(e){"none"!==e.from&&i.changeState(e)},onInvalidTransition:function(e,t,n){ee.warn("FSM: unexpected transition",t,n)}}});return i.fsm=new a,i}return E.default(n,[{key:"changeState",value:function(e){ee.debug("FSM: ".concat(e.transition,": ").concat(e.from," --\x3e ").concat(e.to)),this.lastEmittedState!==this.state&&(this.lastEmittedState=this.state,this.emit("stateChanged",this.state))}},{key:"resetBackoff",value:function(){ee.trace("resetBackoff"),this.retrier.stop()}},{key:"modifyBackoff",value:function(e){ee.trace("modifyBackoff",e);var t=e?e.backoff_policy:null;t&&"number"===typeof t.reconnect_min_ms&&this.retrier.modifyBackoff(t.reconnect_min_ms)}},{key:"startDisconnectTimer",value:function(){var e=this;ee.trace("startDisconnectTimer"),this.disconnectingTimer&&(clearTimeout(this.disconnectingTimer),this.disconnectingTimer=null),this.disconnectingTimer=setTimeout((function(){ee.debug("disconnecting is timed out"),e.closeSocket(!0)}),3e3)}},{key:"cancelDisconnectTimer",value:function(){ee.trace("cancelDisconnectTimer"),this.disconnectingTimer&&(clearTimeout(this.disconnectingTimer),this.disconnectingTimer=null)}},{key:"isConnected",get:function(){return"connected"===this.state&&this.websocket.isConnected}},{key:"state",get:function(){switch(this.fsm.state){case"connecting":case"initialising":case"retrying":case"error":return"connecting";case"updating":case"connected":return"connected";case"rejected":return"denied";case"disconnecting":case"waitSocketClosed":case"waitOffloadSocketClosed":return"disconnecting";default:return"disconnected"}}},{key:"initRetry",value:function(){ee.debug("initRetry"),this.retrier.inProgress?this.retrier.attemptFailed():this.retrier.start()}},{key:"retry",value:function(){"connecting"!=this.fsm.state?(ee.trace("retry"),this.websocket.close(),this.fsm.userRetry()):ee.trace("can\t retry as already connecting")}},{key:"onConnected",value:function(){this.emit("connected")}},{key:"finalizeSocket",value:function(){ee.trace("finalizeSocket"),this.websocket.close(),this.emit("disconnected"),this.disconnectedPromiseResolve&&(this.disconnectedPromiseResolve(),this.disconnectedPromiseResolve=null)}},{key:"setupSocket",value:function(){ee.trace("setupSocket:",this.config.token),this.emit("beforeConnect"),this.websocket.connect()}},{key:"onIncomingMessage",value:function(e){var t=Se.parse(e);if(t){var n=t.method,r=t.header,o=t.payload;if("reply"!==n&&this.confirmReceiving(r),"notification"===n)this.emit("message",r.message_type,o);else if("reply"===r.method)this.transport.processReply({id:r.id,status:r.status,header:r,body:o});else if("client_update"===r.method)"token_about_to_expire"===r.client_update_type&&this.emit("tokenAboutToExpire");else if("close"===r.method)if(308===r.status.code)ee.debug("Connection has been offloaded"),this.fsm.receiveOffload({status:r.status.status,body:o});else if(406===r.status.code){var i="Server closed connection because can't parse protocol: ".concat(JSON.stringify(r.status));this.emitReplyConnectionError(i,r,!0),ee.error(i),this.fsm.receiveFatalClose()}else 417===r.status.code?(ee.error("Server closed connection because can't parse client reply: ".concat(JSON.stringify(r.status))),this.fsm.receiveFatalClose(r.status.status)):410===r.status.code?(ee.warn("Server closed connection: ".concat(JSON.stringify(r.status))),this.fsm.receiveClose(r.status.status),this.emit("tokenExpired")):401===r.status.code?(ee.error("Server closed connection: ".concat(JSON.stringify(r.status))),this.fsm.receiveClose(r.status.status)):(ee.warn("unexpected message: ",r.status),this.fsm.receiveOffload({status:r.status.status,body:null}))}}},{key:"sendInit",value:function(){var e=_.default(A.default.mark((function e(){var t,n;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee.trace("sendInit"),e.prev=1,this.emit("beforeSendInit"),e.next=5,this.transport.sendInit();case 5:t=e.sent,this.config.updateContinuationToken(t.continuationToken),this.config.confirmedCapabilities=t.confirmedCapabilities,this.fsm.initSuccess(t),this.emit("initialized",t),this.emit("tokenUpdated"),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(1),e.t0 instanceof Te?(n=!1,ee.warn("Init rejected by server: ".concat(JSON.stringify(e.t0.reply.status))),this.emit("sendInitFailed"),401===e.t0.reply.status.code||403===e.t0.reply.status.code?(n=!0,this.fsm.tokenRejected(e.t0.reply.status),e.t0.reply.status.errorCode===this.tokenExpiredSasCode&&this.emit("tokenExpired")):429===e.t0.reply.status.code?(this.modifyBackoff(e.t0.reply.body),this.fsm.initError(!0)):500===e.t0.reply.status.code?this.fsm.initError(!1):this.fsm.initError(!0),this.emitReplyConnectionError(e.t0.message,e.t0.reply,n)):(this.terminationReason=e.t0.message,this.emit("connectionError",{terminal:!0,message:"Unknown error during connection initialisation: ".concat(e.t0.message,"\n").concat(JSON.stringify(e.t0,null,2)),httpStatusCode:null,errorCode:null}),this.fsm.initError(!0)),this.emit("tokenUpdated",e.t0);case 17:case"end":return e.stop()}}),e,this,[[1,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"sendUpdate",value:function(){var e=_.default(A.default.mark((function e(){var t,n,r;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee.trace("sendUpdate"),t=new ce(this.config.token),e.prev=2,e.next=5,this.transport.sendWithReply(t);case 5:n=e.sent,this.fsm.updateSuccess(n.body),this.emit("tokenUpdated"),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(2),e.t0 instanceof Te?(r=!1,ee.warn("Token update rejected by server: ".concat(JSON.stringify(e.t0.reply.status))),401===e.t0.reply.status.code||403===e.t0.reply.status.code?(r=!0,this.fsm.tokenRejected(e.t0.reply.status),e.t0.reply.status.errorCode===this.tokenExpiredSasCode&&this.emit("tokenExpired")):429===e.t0.reply.status.code?(this.modifyBackoff(e.t0.reply.body),this.fsm.updateError(e.t0.reply.status)):this.fsm.updateError(e.t0.reply.status),this.emitReplyConnectionError(e.t0.message,e.t0.reply,r)):(this.emit("error",!1,e.t0.message,null,null),this.fsm.updateError(e.t0)),this.emit("tokenUpdated",e.t0);case 14:case"end":return e.stop()}}),e,this,[[2,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"emitReplyConnectionError",value:function(e,t,n){var r=t.status&&t.status.description?t.status.description:e,o=t.status.code,i=t.status&&t.status.errorCode?t.status.errorCode:null;n&&(this.terminationReason=r),this.emit("connectionError",{terminal:n,message:"Connection error: ".concat(r),httpStatusCode:o,errorCode:i})}},{key:"cancelInit",value:function(){ee.trace("cancelInit")}},{key:"cancelUpdate",value:function(){ee.trace("cancelUpdate")}},{key:"confirmReceiving",value:function(e){ee.trace("confirmReceiving");try{this.transport.send(new pe(e.id))}catch(t){ee.debug("failed to confirm packet receiving",t)}}},{key:"closeSocket",value:function(e){var t=this;ee.trace("closeSocket (graceful: ".concat(e,")")),e&&this.transport.isConnected&&this.transport.sendClose(),this.websocket.close(),setTimeout((function(){return t.fsm.socketClosed()}),0)}},{key:"connect",value:function(){ee.trace("connect"),this.fsm.userConnect()}},{key:"disconnect",value:function(){var e=this;return ee.trace("disconnect"),this.fsm.is("disconnected")?Promise.resolve():new Promise((function(t){e.disconnectedPromiseResolve=t,e.fsm.userDisconnect()}))}},{key:"updateToken",value:function(e){var t=this;return ee.trace("updateToken:",e),new Promise((function(e,n){t.once("tokenUpdated",(function(t){t?n(t):e()})),t.fsm.userUpdateToken()}))}},{key:"isTerminalState",get:function(){return-1!==this.terminalStates.indexOf(this.fsm.state)}},{key:"getTerminationReason",get:function(){return this.terminationReason}},{key:"onCloseReceived",value:function(){this.websocket.close()}}]),n}(W),Me=function(){function e(){P.default(this,e)}return E.default(e,null,[{key:"getMetadata",value:function(e){var t,n,r,o,i,a,s,l,c=e&&e.clientMetadata?e.clientMetadata:{},u={env:null!==(t=j.name)&&void 0!==t?t:"unknown",envv:null!==(n=j.version)&&void 0!==n?n:"unknown",os:null!==(r=null===(o=j.os)||void 0===o?void 0:o.family)&&void 0!==r?r:"unknown",osv:null!==(i=null===(a=j.os)||void 0===a?void 0:a.version)&&void 0!==i?i:"unknown",osa:null!==(s=null===(l=j.os)||void 0===l?void 0:l.architecture)&&void 0!==s?s:"unknown",sdk:"js-default"},d={};return["ver","env","envv","os","osv","osa","type","sdk","sdkv","dev","devv","devt","app","appv"].filter((function(e){return e in c||e in u})).forEach((function(e){return d[e]=e in c?c[e]:u[e]})),d}}]),e}();var Ne=function(){function e(t,n){var r=this;P.default(this,e),this.config=n,this.activeRequests=new Map,this.channel=t,this.channel.on("reply",(function(e){return r.processReply(e)})),this.channel.on("disconnected",(function(){r.activeRequests.forEach((function(e){clearTimeout(e.timeout),e.reject(new Ee("disconnected"))})),r.activeRequests.clear()}))}return E.default(e,[{key:"isConnected",get:function(){return this.channel.isConnected}},{key:"processReply",value:function(e){var t,n=this.activeRequests.get(e.id);n&&(clearTimeout(n.timeout),this.activeRequests.delete(e.id),(t=e.status.code)>=200&&t<300?n.resolve(e):(n.reject(new Te("Transport failure: "+e.status.status,e)),ee.trace("message rejected")))}},{key:"storeRequest",value:function(e,t,n){var r={resolve:t,reject:n,timeout:setTimeout((function(){ee.trace("request",e,"is timed out"),n(new Ee("Twilsock: request timeout: "+e))}),3e4)};this.activeRequests.set(e,r)}},{key:"shutdown",value:function(){this.activeRequests.forEach((function(e){clearTimeout(e.timeout),e.reject(new Ee("Twilsock: request cancelled by user"))})),this.activeRequests.clear()}},{key:"sendInit",value:function(){var e=_.default(A.default.mark((function e(){var t,n,r;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee.trace("sendInit"),t=Me.getMetadata(this.config),n=new ie(this.config.token,this.config.continuationToken,t,this.config.initRegistrations,this.config.tweaks),e.next=5,this.sendWithReply(n);case 5:return r=e.sent,e.abrupt("return",new se(r.id,r.header.continuation_token,new Set(r.header.capabilities),r.header.continuation_token_status,r.header.offline_storage,r.header.init_registrations,r.header.debug_info));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"sendClose",value:function(){var e=new me;this.send(e)}},{key:"sendWithReply",value:function(e,t){var n=this;return new Promise((function(r,o){var i=n.send(e,t);n.storeRequest(i,r,o)}))}},{key:"send",value:function(e,t){e.id=e.id||"TM".concat(y.v4());var n=Se.createPacket(e,function(e){switch(M.default(e)){case"undefined":return"";case"object":return JSON.stringify(e);default:return e}}(t));try{return this.channel.send(n),e.id}catch(r){throw ee.debug("failed to send ",e,r),ee.trace(r.stack),r}}}]),e}();function De(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var Le=function(e){I.default(n,e);var t=De(n);function n(e){var o;return P.default(this,n),o=t.call(this),R.default(C.default(o),"socket",null),o.url=e,o.url=e,o.WebSocket=r.WebSocket||r.MozWebSocket||{},o}return E.default(n,[{key:"isConnected",get:function(){return!!this.socket&&1===this.socket.readyState}},{key:"connect",value:function(){var e,t=this;ee.trace("connecting to socket");try{e=new this.WebSocket(this.url)}catch(n){return ee.debug("Socket error: ".concat(this.url)),void this.emit("socketError",n)}e.binaryType="arraybuffer",e.onopen=function(){ee.debug("socket opened ".concat(t.url)),t.emit("connected")},e.onclose=function(e){ee.debug("socket closed",e),t.emit("disconnected",e)},e.onerror=function(e){ee.debug("Socket error:",e),t.emit("socketError",e)},e.onmessage=function(e){t.emit("message",e.data)},this.socket=e}},{key:"send",value:function(e){return this.socket&&this.socket.send(e)}},{key:"close",value:function(){if(ee.trace("closing socket"),this.socket){this.socket.onopen=null,this.socket.onclose=null,this.socket.onerror=null,this.socket.onmessage=null;try{this.socket.close()}finally{}}}}]),n}(W);function je(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var ze=function(e){I.default(n,e);var t=je(n);function n(e){var r;return P.default(this,n),(r=t.call(this)).transport=e,r.registrations=new Map,r.registrationsInProgress=new Map,r}return E.default(n,[{key:"putNotificationContext",value:function(){var e=_.default(A.default.mark((function e(t,n){var r;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={method:"put_notification_ctx",notification_ctx_id:t},e.next=3,this.transport.sendWithReply(r,n);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"deleteNotificationContext",value:function(){var e=_.default(A.default.mark((function e(t){var n;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={method:"delete_notification_ctx",notification_ctx_id:t},e.next=3,this.transport.sendWithReply(n);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateRegistration",value:function(){var e=_.default(A.default.mark((function e(t,n){var r,o;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee.debug("update registration for context",t),(r=this.registrationsInProgress.get(t))||(r=new Set,this.registrationsInProgress.set(t,r)),o=y.v4(),r.add(o),e.prev=5,e.next=8,this.putNotificationContext(t,n);case 8:ee.debug("registration attempt succeeded for context",n),r.delete(o),0===r.size&&(this.registrationsInProgress.delete(t),this.emit("registered",t)),e.next=19;break;case 13:e.prev=13,e.t0=e.catch(5),ee.warn("registration attempt failed for context",n),ee.debug(e.t0),r.delete(o),0===r.size&&(this.registrationsInProgress.delete(t),this.emit("registrationFailed",t,e.t0));case 19:case"end":return e.stop()}}),e,this,[[5,13]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"updateRegistrations",value:function(){var e=_.default(A.default.mark((function e(){var t,n=this;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee.trace("refreshing ".concat(this.registrations.size," registrations")),t=[],this.registrations.forEach((function(e,r){t.push(n.updateRegistration(r,e))})),e.next=5,Promise.all(t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setNotificationsContext",value:function(){var e=_.default(A.default.mark((function e(t,n){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&n){e.next=2;break}throw new Ee("Invalid arguments provided");case 2:return this.registrations.set(t,n),e.next=5,this.updateRegistration(t,n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"removeNotificationsContext",value:function(){var e=_.default(A.default.mark((function e(t){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.registrations.has(t)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.deleteNotificationContext(t);case 4:this.transport.isConnected&&this.registrations.delete(t);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(W);function We(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var Ze=function(e){I.default(n,e);var t=We(n);function n(e,r,o){var i;return P.default(this,n),(i=t.call(this,r)).status=e,i.description=r,i.body=o,i}return n}(Ee);function Fe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var He=function(e){I.default(n,e);var t=Fe(n);function n(e){return P.default(this,n),t.call(this,e)}return n}(Ee);function Ue(e,t){var n=function(e){var t=e.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)(\/[^?#]*)(\?[^#]*|)(#.*|)$/);if(t){var n={protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7],params:{}};if(n.search.length>0){var r=n.search.substring(1);n.params=r.split("&").map((function(e){return e.split("=")})).reduce((function(e,t){return e.hasOwnProperty(t[0])?Array.isArray(e[t[0]])?e[t[0]].push(t[1]):e[t[0]]=[e[t[0]],t[1]]:e[t[0]]=t[1],e}),{})}return n}throw new Ee("Incorrect URI: "+e)}(t),r={method:e,host:n.host,path:n.pathname};return n.params&&(r.params=n.params),r}function $e(e,t,n,r,o){return{to:Ue(e,t),headers:n,body:r,grant:o}}var Ge=function(){function e(t,n,r){P.default(this,e),this.config=r,this.transport=t,this.pendingMessages=[],this.twilsock=n}return E.default(e,[{key:"saveMessage",value:function(e){var t=this;return new Promise((function(n,r){var o={message:e,resolve:n,reject:r,alreadyRejected:!1,timeout:setTimeout((function(){ee.debug("request is timed out"),r(new Ee("request '".concat(e.to.method,"' to '").concat(e.to.host,"' timed out"))),o.alreadyRejected=!0}),2e4)};t.pendingMessages.push(o)}))}},{key:"sendPendingMessages",value:function(){for(var e=this,t=function(){var t=e.pendingMessages[0];if(!t.alreadyRejected)try{var n=t.message;e.actualSend(n).then((function(e){return t.resolve(e)})).catch((function(e){return t.reject(e)})),clearTimeout(t.timeout)}catch(r){return ee.debug("Failed to send pending message",r),"break"}e.pendingMessages.splice(0,1)};this.pendingMessages.length>0;){if("break"===t())break}}},{key:"rejectPendingMessages",value:function(){var e=this;this.pendingMessages.forEach((function(t){t.reject(new He("Unable to connect: "+e.twilsock.getTerminationReason)),t.alreadyRejected=!0,clearTimeout(t.timeout)})),this.pendingMessages.splice(0,this.pendingMessages.length)}},{key:"actualSend",value:function(){var e=_.default(A.default.mark((function e(t){var n,r,o,i,a,s,l,c;return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.to,o=t.headers,i=t.body,a=null!==(n=t.grant)&&void 0!==n?n:this.config.activeGrant,s={host:r.host,path:r.path,method:r.method,params:r.params,headers:o},l=new de(a,o["Content-Type"]||"application/json",s),ee.trace("Sending upstream message",l),e.next=9,this.transport.sendWithReply(l,i);case 9:if(c=e.sent,ee.trace("Received upstream message response",c),!((d=c)&&d.header&&d.header.http_status)||(u=c.header.http_status.code)>=200&&u<300){e.next=13;break}throw new Ze(c.header.http_status.code,c.header.http_status.status,c.body);case 13:return e.abrupt("return",{status:c.header.http_status,headers:c.header.http_headers,body:c.body});case 14:case"end":return e.stop()}var u,d}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"send",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(this.twilsock.isTerminalState)return Promise.reject(new He("Unable to connect: "+this.twilsock.getTerminationReason));var i=$e(e,t,n,r,o);return this.twilsock.isConnected?this.actualSend(i):this.saveMessage(i)}}]),e}(),qe=function(){function e(){var t=this;P.default(this,e),this._promise=new Promise((function(e,n){t._resolve=e,t._reject=n}))}return E.default(e,[{key:"promise",get:function(){return this._promise}},{key:"update",value:function(e){this._resolve(e)}},{key:"set",value:function(e){this._resolve(e)}},{key:"fail",value:function(e){this._reject(e)}}]),e}(),Ke=function(){function e(t){P.default(this,e),this.id=t}return E.default(e,null,[{key:"create",value:function(t){if(t instanceof Object&&"storage_id"in t)return new e(t.storage_id);throw new Ee('Field "storage_id" is missing')}}]),e}(),Ve=function(){function e(){return P.default(this,e),R.default(this,"initializedFlag","twilio_twilsock_token_storage"),R.default(this,"tokenStoragePrefix","twilio_continuation_token_"),e._instance||(this.initialize(),e._instance=this),e._instance}return E.default(e,[{key:"sessionStorage",value:function(){try{return r.sessionStorage}catch(e){return null}}},{key:"window",value:function(){try{return r.window}catch(e){return null}}},{key:"storeToken",value:function(e,t){this.canStore()&&this.sessionStorage.setItem(this.getKeyName(t),e)}},{key:"getStoredToken",value:function(e){return this.canStore()?this.sessionStorage.getItem(this.getKeyName(e)):null}},{key:"initialize",value:function(){var e=this;if(this.canStore()){this.sessionStorage.getItem(this.initializedFlag)&&this.clear(),this.sessionStorage.setItem(this.initializedFlag,"true");var t=this.sessionStorage.removeItem;this.window.addEventListener("unload",(function(){t(e.initializedFlag)}))}}},{key:"clear",value:function(){if(this.canStore()){for(var e=[],t=0;t<this.sessionStorage.length;t++){var n=this.sessionStorage.key(t);n&&0===n.indexOf(this.tokenStoragePrefix)&&e.push(n)}var r=this.sessionStorage.removeItem;e.forEach((function(e){return r(e)})),r(this.initializedFlag)}}},{key:"getKeyName",value:function(e){return"".concat(this.tokenStoragePrefix).concat(e)}},{key:"canStore",value:function(){return!!(this.sessionStorage&&this.sessionStorage.length&&this.window)}}]),e}();R.default(Ve,"_instance",null);var Ye,Xe,Je=new Ve,Qe=function(){function e(t,n,r,o,i,a){P.default(this,e),this.title=t,this.details=n,this.start=r,this.type=i,this.id=a,this.end=o}return E.default(e,[{key:"toTelemetryEvent",value:function(){var e=new Date,t=this.start,n=this.end?this.end:e;if(n<t){var r=n;n=t,t=r}var o=t.getTime()-e.getTime(),i=n.getTime()-e.getTime();return new ge(o,i,this.title,this.details,this.id,this.type)}}]),e}();t.TelemetryPoint=void 0,(Ye=t.TelemetryPoint||(t.TelemetryPoint={}))[Ye.Start=0]="Start",Ye[Ye.End=1]="End",t.EventSendingLimitation=void 0,(Xe=t.EventSendingLimitation||(t.EventSendingLimitation={}))[Xe.MinEventsPortion=0]="MinEventsPortion",Xe[Xe.AnyEvents=1]="AnyEvents",Xe[Xe.AnyEventsIncludingUnfinished=2]="AnyEventsIncludingUnfinished";var et=function(){function e(t,n){P.default(this,e),R.default(this,"minEventsPortionToSend",50),R.default(this,"maxEventsPortionToSend",100),R.default(this,"pendingEvents",new Map),R.default(this,"readyEvents",[]),R.default(this,"hasInitializationFinished",!1),R.default(this,"_canSendTelemetry",!1),this.config=t,this.packetInterface=n}return E.default(e,[{key:"isTelemetryEnabled",get:function(){return this.config.confirmedCapabilities.has("telemetry.v1")}},{key:"canSendTelemetry",get:function(){return this._canSendTelemetry&&this.isTelemetryEnabled},set:function(e){ee.debug("TelemetryTracker.canSendTelemetry: ".concat(e," TelemetryTracker.isTelemetryEnabled: ").concat(this.isTelemetryEnabled)),this._canSendTelemetry&&!e&&(this.pendingEvents.clear(),this.readyEvents=[]),this._canSendTelemetry=e,e&&this.sendTelemetry(t.EventSendingLimitation.AnyEvents),e&&!this.hasInitializationFinished&&(this.hasInitializationFinished=!0)}},{key:"addTelemetryEvent",value:function(e){!this.canSendTelemetry&&this.hasInitializationFinished||this.readyEvents.push(e)}},{key:"addPartialEvent",value:function(e,n,r){ee.debug("Adding ".concat(r===t.TelemetryPoint.Start?"starting":"ending"," timepoint for '").concat(n,"' event"));var o=this.pendingEvents.has(n);if(r===t.TelemetryPoint.Start)o&&ee.debug("Overwriting starting point for '".concat(n,"' event")),this.pendingEvents.set(n,e);else{if(!o)return void ee.info("Could not find started event for '".concat(n,"' event"));this.addTelemetryEvent(this.merge(this.pendingEvents.get(n),e)),this.pendingEvents.delete(n)}}},{key:"getTelemetryToSend",value:function(e){return this.canSendTelemetry&&0!=this.readyEvents.length?e==t.EventSendingLimitation.MinEventsPortion&&this.readyEvents.length<this.minEventsPortionToSend?[]:this.getTelemetryPortion(e==t.EventSendingLimitation.AnyEventsIncludingUnfinished):[]}},{key:"getTelemetryPortion",value:function(e){var t=this,n=Math.min(this.readyEvents.length,this.maxEventsPortionToSend),r=this.readyEvents.splice(0,n);return e&&r.length<this.maxEventsPortionToSend&&this.pendingEvents.forEach((function(e,n){if(!(r.length>=t.maxEventsPortionToSend)){var o=t.pendingEvents.get(n);t.pendingEvents.delete(n),r.push(new Qe("[UNFINISHED] ".concat(o.title),o.details,o.start,null,o.type,o.id))}})),r}},{key:"merge",value:function(e,t){return new Qe(t.title?t.title:e.title,t.details?t.details:e.details,e.start,t.end,t.type?t.type:e.type,t.id?t.id:e.id)}},{key:"sendTelemetryIfMinimalPortionCollected",value:function(){this.sendTelemetry(t.EventSendingLimitation.MinEventsPortion)}},{key:"sendTelemetry",value:function(e){var t=this.getTelemetryToSend(e);if(0!==t.length)try{this.packetInterface.send(new ye(t.map((function(e){return e.toTelemetryEvent()}))))}catch(n){ee.debug("Error while sending ".concat(t.length," telemetry events due to ").concat(n,"; they will be resubmitted")),this.readyEvents=this.readyEvents.concat(t)}}}]),e}();function tt(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O.default(e);if(t){var o=O.default(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B.default(this,n)}}var nt=function e(){P.default(this,e)};R.default(nt,"TWILSOCK_CONNECT","twilsock.sdk.connect"),R.default(nt,"TWILSOCK_INIT","twilsock.sdk.init"),t.TwilsockClient=function(e){I.default(r,e);var n=tt(r);function r(e,o,i){var a;P.default(this,r),a=n.call(this),R.default(C.default(a),"version",te),R.default(C.default(a),"offlineStorageDeferred",new qe),i.continuationToken=i.continuationToken?i.continuationToken:Je.getStoredToken(o);var s=a.config=new ne(e,o,i);ee.setLevel(s.logLevel);var l=new Le(s.url),c=new Ne(l,s);return a.channel=new Ae(l,c,s),a.registrations=new ze(c),a.upstream=new Ge(c,a.channel,s),a.telemetryTracker=new et(s,c),a.channel.on("initialized",(function(){return a.telemetryTracker.canSendTelemetry=!0})),l.on("disconnected",(function(){return a.telemetryTracker.canSendTelemetry=!1})),a.registrations.on("registered",(function(e){return a.emit("registered",e)})),a.channel.on("message",(function(e,t){return setTimeout((function(){return a.emit("message",e,t)}),0)})),a.channel.on("stateChanged",(function(e){return setTimeout((function(){return a.emit("stateChanged",e)}),0)})),a.channel.on("connectionError",(function(e){return setTimeout((function(){return a.emit("connectionError",e)}),0)})),a.channel.on("tokenAboutToExpire",(function(){return setTimeout((function(){return a.emit("tokenAboutToExpire")}),0)})),a.channel.on("tokenExpired",(function(){return setTimeout((function(){return a.emit("tokenExpired")}),0)})),a.channel.on("connected",(function(){return a.registrations.updateRegistrations()})),a.channel.on("connected",(function(){return a.upstream.sendPendingMessages()})),a.channel.on("connected",(function(){return setTimeout((function(){return a.emit("connected")}),0)})),a.channel.on("beforeConnect",(function(){return a.telemetryTracker.addPartialEvent(new Qe("Establish WebSocket connection","",new Date),nt.TWILSOCK_CONNECT,t.TelemetryPoint.Start)})),a.channel.on("connected",(function(){return a.telemetryTracker.addPartialEvent(new Qe("Establish WebSocket connection","",new Date,new Date),nt.TWILSOCK_CONNECT,t.TelemetryPoint.End)})),a.channel.on("beforeSendInit",(function(){return a.telemetryTracker.addPartialEvent(new Qe("Send Twilsock init","",new Date),nt.TWILSOCK_INIT,t.TelemetryPoint.Start)})),a.channel.on("initialized",(function(){return a.telemetryTracker.addPartialEvent(new Qe("Send Twilsock init","Succeeded",new Date,new Date),nt.TWILSOCK_INIT,t.TelemetryPoint.End)})),a.channel.on("sendInitFailed",(function(){return a.telemetryTracker.addPartialEvent(new Qe("Send Twilsock init","Failed",new Date,new Date),nt.TWILSOCK_INIT,t.TelemetryPoint.End)})),a.channel.on("initialized",(function(e){a.handleStorageId(o,e),Je.storeToken(e.continuationToken,o),setTimeout((function(){return a.emit("initialized",e)}),0)})),a.channel.on("disconnected",(function(){return setTimeout((function(){return a.emit("disconnected")}),0)})),a.channel.on("disconnected",(function(){return a.upstream.rejectPendingMessages()})),a.channel.on("disconnected",(function(){return a.offlineStorageDeferred.fail(new Ee("Client disconnected"))})),a.offlineStorageDeferred.promise.catch((function(){})),a}return E.default(r,[{key:"emit",value:function(e){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return ee.debug("Emitting ".concat(e.toString(),"(").concat(o.map((function(e){return JSON.stringify(e)})).join(", "),")")),(t=T.default(O.default(r.prototype),"emit",this)).call.apply(t,[this,e].concat(o))}},{key:"handleStorageId",value:function(e,t){if(t.offlineStorage)if(t.offlineStorage.hasOwnProperty(e))try{this.offlineStorageDeferred.set(Ke.create(t.offlineStorage[e])),ee.debug("Offline storage for '".concat(e,"' product: ").concat(JSON.stringify(t.offlineStorage[e]),"."))}catch(n){this.offlineStorageDeferred.fail(new Ee("Failed to parse offline storage for ".concat(e," ").concat(JSON.stringify(t.offlineStorage[e]),". ").concat(n,".")))}else this.offlineStorageDeferred.fail(new Ee("No offline storage id for '".concat(e,"' product: ").concat(JSON.stringify(t.offlineStorage))));else this.offlineStorageDeferred.fail(new Ee("No offline storage id"))}},{key:"storageId",value:function(){return this.offlineStorageDeferred.promise}},{key:"isConnected",get:function(){return this.channel.isConnected}},{key:"state",get:function(){return this.channel.state}},{key:"updateToken",value:function(){var e=_.default(A.default.mark((function e(t){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ee.trace("updating token '".concat(t,"'")),this.config.token!==t){e.next=3;break}return e.abrupt("return");case 3:return this.config.updateToken(t),e.next=6,this.channel.updateToken(t);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setNotificationsContext",value:function(){var e=_.default(A.default.mark((function e(t,n){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.registrations.setNotificationsContext(t,n);case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"removeNotificationsContext",value:function(){var e=_.default(A.default.mark((function e(t){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.registrations.removeNotificationsContext(t);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"connect",value:function(){return this.channel.connect()}},{key:"disconnect",value:function(){var e=_.default(A.default.mark((function e(){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.telemetryTracker.sendTelemetry(t.EventSendingLimitation.AnyEventsIncludingUnfinished),e.next=3,this.channel.disconnect();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"get",value:function(){var e=_.default(A.default.mark((function e(n,r,o){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.telemetryTracker.sendTelemetry(t.EventSendingLimitation.AnyEvents),e.next=3,this.upstream.send("GET",n,r,void 0,o);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"post",value:function(){var e=_.default(A.default.mark((function e(n,r,o,i){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.telemetryTracker.sendTelemetry(t.EventSendingLimitation.AnyEvents),e.next=3,this.upstream.send("POST",n,r,o,i);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"put",value:function(){var e=_.default(A.default.mark((function e(n,r,o,i){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.telemetryTracker.sendTelemetry(t.EventSendingLimitation.AnyEvents),e.next=3,this.upstream.send("PUT",n,r,o,i);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=_.default(A.default.mark((function e(n,r,o,i){return A.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.telemetryTracker.sendTelemetry(t.EventSendingLimitation.AnyEvents),e.next=3,this.upstream.send("DELETE",n,r,o,i);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"addTelemetryEvent",value:function(e){this.telemetryTracker.addTelemetryEvent(e),this.telemetryTracker.sendTelemetryIfMinimalPortionCollected()}},{key:"addPartialTelemetryEvent",value:function(e,n,r){this.telemetryTracker.addPartialEvent(e,n,r),r===t.TelemetryPoint.End&&this.telemetryTracker.sendTelemetryIfMinimalPortionCollected()}}]),r}(W),t.TwilsockClient=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":M.default(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([m.validateConstructorTypes(m.nonEmptyString,m.nonEmptyString,[m.pureObject,"undefined",m.literal(null)]),function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":M.default(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[String,String,Object])],t.TwilsockClient);var rt=function(){function e(t){P.default(this,e),this.product=t,this.type="ers",this.notification_protocol_version=0,this.message_types=[]}return E.default(e,[{key:"populateInitRegistrations",value:function(e){var t=new Set(this.message_types);for(var n in e)t.add(e[n]);this.message_types=Array.from(t)}}]),e}();t.InitRegistration=rt,t.TelemetryEventDescription=Qe,t.TelemetryTracker=et,t.TransportUnavailableError=He,t.Twilsock=t.TwilsockClient,t.TwilsockError=Ee},4610:function(e,t,n){var r=n(7669),o=n(8560),i=o;i.v1=r,i.v4=o,e.exports=i},1874:function(e){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,o=t;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},7180:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},7669:function(e,t,n){var r,o,i=n(7180),a=n(1874),s=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],d=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==f){var p=i();null==d&&(d=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,v=h-s+(m-l)/1e4;if(v<0&&void 0===e.clockseq&&(f=f+1&16383),(v<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,l=m,o=f;var g=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;u[c++]=g>>>24&255,u[c++]=g>>>16&255,u[c++]=g>>>8&255,u[c++]=255&g;var y=h/4294967296*1e4&268435455;u[c++]=y>>>8&255,u[c++]=255&y,u[c++]=y>>>24&15|16,u[c++]=y>>>16&255,u[c++]=f>>>8|128,u[c++]=255&f;for(var b=0;b<6;++b)u[c+b]=d[b];return t||a(u)}},8560:function(e,t,n){var r=n(7180),o=n(1874);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}},9421:function(){},3897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},5372:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3405:function(e,t,n){var r=n(3897);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},7156:function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,l,"next",e)}function l(e){t(a,o,i,s,l,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,n){var r=n(6015),o=n(9617);function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},4704:function(e,t,n){var r=n(6116);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,n){var r=n(3808),o=n(9617),i=n(4993);e.exports=function(e){var t=o();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},8416:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},1588:function(e,t,n){var r=n(1753);function o(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},6035:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},9498:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},8872:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},2218:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},2281:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},2122:function(e,t,n){var r=n(8416);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,o=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7061:function(e,t,n){var r=n(8698).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,i=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(B){u=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(B){return{type:"throw",arg:B}}}t.wrap=d;var p={};function h(){}function m(){}function v(){}var g={};u(g,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==n&&i.call(b,s)&&(g=b);var x=v.prototype=h.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,s,l){var c=f(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return m.prototype=v,u(x,"constructor",v),u(v,"constructor",m),m.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},w(k.prototype),u(k.prototype,l,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),u(x,c,"Generator"),u(x,s,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7424:function(e,t,n){var r=n(5372),o=n(8872),i=n(6116),a=n(2218);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},1753:function(e,t,n){var r=n(3808);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,n){var r=n(3405),o=n(9498),i=n(6116),a=n(2281);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6116:function(e,t,n){var r=n(3897);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},3496:function(e,t,n){var r=n(3808),o=n(6015),i=n(6035),a=n(3515);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},4687:function(e,t,n){var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime=r")(r)}},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5861:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,l,"next",e)}function l(e){r(a,o,i,s,l,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return o}})},5671:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},3144:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},7762:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(181);function o(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}},9388:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(1120),o=n(8814),i=n(2963);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},1752:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1120);function o(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,r.Z)(e)););return e}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=o(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},i.apply(this,arguments)}},1120:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9611);function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},8814:function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},4925:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return r}})},2963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1002),o=n(7326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},4165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1002);function o(){o=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(I){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=d(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=u;var f={};function p(){}function h(){}function m(){}var v={};c(v,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(C([])));y&&y!==t&&n.call(y,a)&&(v=y);var b=m.prototype=p.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(i,a,s,l){var c=d(e[i],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==(0,r.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,s,l)}),(function(e){o("throw",e,s,l)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return o("throw",e,s,l)}))}l(c.arg)}var i;this._invoke=function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=m,c(b,"constructor",m),c(m,"constructor",h),h.displayName=c(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},x(w.prototype),c(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(b),c(b,l,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(181);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},168:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);var o=n(181);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(907);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},3765:function(e){"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.amdO={},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return r[e]}}));return a.default=function(){return r},n.d(i,a),i}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n.nc=void 0,function(){"use strict";var e=n(4165),t=n(5861),r=n(7381),o=n.n(r),i=n(4164),a=n(2791),s=a.createContext(null);var l=function(e){e()},c=function(){return l};var u={notify:function(){},get:function(){return[]}};function d(e,t){var n,r=u;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var f="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?a.useLayoutEffect:a.useEffect;var p=function(e){var t=e.store,n=e.context,r=e.children,o=(0,a.useMemo)((function(){var e=d(t);return{store:t,subscription:e}}),[t]),i=(0,a.useMemo)((function(){return t.getState()}),[t]);f((function(){var e=o.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),i!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,i]);var l=n||s;return a.createElement(l.Provider,{value:o},r)};n(2110),n(7441);function h(){return(0,a.useContext)(s)}function m(e){void 0===e&&(e=s);var t=e===s?h:function(){return(0,a.useContext)(e)};return function(){return t().store}}var v=m();function g(e){void 0===e&&(e=s);var t=e===s?v:m(e);return function(){return t().dispatch}}var y=g(),b=function(e,t){return e===t};function x(e){void 0===e&&(e=s);var t=e===s?h:function(){return(0,a.useContext)(e)};return function(e,n){void 0===n&&(n=b);var r=t(),o=function(e,t,n,r){var o,i=(0,a.useReducer)((function(e){return e+1}),0)[1],s=(0,a.useMemo)((function(){return d(n,r)}),[n,r]),l=(0,a.useRef)(),c=(0,a.useRef)(),u=(0,a.useRef)(),p=(0,a.useRef)(),h=n.getState();try{if(e!==c.current||h!==u.current||l.current){var m=e(h);o=void 0!==p.current&&t(m,p.current)?p.current:m}else o=p.current}catch(v){throw l.current&&(v.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),v}return f((function(){c.current=e,u.current=h,p.current=o,l.current=void 0})),f((function(){function e(){try{var e=n.getState();if(e===u.current)return;var r=c.current(e);if(t(r,p.current))return;p.current=r,u.current=e}catch(v){l.current=v}i()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,r.store,r.subscription);return(0,a.useDebugValue)(o),o}}var w,k=x();w=i.unstable_batchedUpdates,l=w;var S=n(1413);function _(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var E="function"===typeof Symbol&&Symbol.observable||"@@observable",C=function(){return Math.random().toString(36).substring(7).split("").join(".")},T={INIT:"@@redux/INIT"+C(),REPLACE:"@@redux/REPLACE"+C(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+C()}};function I(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function B(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(_(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(_(1));return n(B)(e,t)}if("function"!==typeof e)throw new Error(_(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(_(3));return i}function d(e){if("function"!==typeof e)throw new Error(_(4));if(l)throw new Error(_(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(_(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!I(e))throw new Error(_(7));if("undefined"===typeof e.type)throw new Error(_(8));if(l)throw new Error(_(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!==typeof e)throw new Error(_(10));o=e,f({type:T.REPLACE})}function h(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(_(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[E]=function(){return this},e}return f({type:T.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:p})[E]=h,r}function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function P(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var R=P();R.withExtraArgument=P;var A=R,M=n(2982),N="ACTION_LOAD_CONFIG",D="ACTION_CHANGE_EXPANDED_STATUS",L="ACTION_CHANGE_ENGAGEMENT_PHASE",j="ACTION_START_SESSION",z="ACTION_UPDATE_PARTICIPANT",W="ACTION_ADD_PARTICIPANT",Z="ACTION_REMOVE_PARTICIPANT",F="ACTION_UPDATE_MESSAGE",H="ACTION_ADD_MESSAGE",U="ACTION_REMOVE_MESSAGE",$="ACTION_ADD_MULTIPLE_MESSAGES",G="ACTION_ATTACH_FILES",q="ACTION_DETACH_FILES",K="ACTION_UPDATE_CONVERSATION_STATE",V="ACTION_UPDATE_SESSION_DATA",Y="ACTION_UPDATE_PRE_ENGAGEMENT_DATA",X="ACTION_SET_LOADING",J="ACTION_ADD_NOTIFICATION",Q="ACTION_REMOVE_NOTIFICATION",ee={};function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(e||[]).filter((function(e){return!t.some((function(t){return e.name===t.name&&e.type===t.type&&e.size===t.size}))}))}var ne,re={},oe=[];!function(e){e.PreEngagementForm="PreEngagementForm",e.MessagingCanvas="MessagingCanvas",e.Loading="Loading"}(ne||(ne={}));var ie={currentPhase:ne.Loading,expanded:!1,preEngagementData:{name:"",query:"",email:""}},ae=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||O,se=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:T.INIT}))throw new Error(_(12));if("undefined"===typeof n(void 0,{type:T.PROBE_UNKNOWN_ACTION()}))throw new Error(_(13))}))}(n)}catch(s){i=s}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(_(14))}o[l]=d,r=r||d!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}({chat:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case j:return(0,S.Z)((0,S.Z)({},e),{},{conversationsClient:t.payload.conversationsClient,conversation:t.payload.conversation,conversationState:t.payload.conversationState,users:t.payload.users,participants:t.payload.participants,messages:t.payload.messages});case $:return(0,S.Z)((0,S.Z)({},e),{},{messages:[].concat((0,M.Z)(t.payload.messages),(0,M.Z)(e.messages||[]))});case H:return(0,S.Z)((0,S.Z)({},e),{},{messages:[].concat((0,M.Z)(e.messages||[]),[t.payload.message])});case U:return(0,S.Z)((0,S.Z)({},e),{},{messages:(0,M.Z)((e.messages||[]).filter((function(e){return e.sid!==t.payload.message.sid})))});case F:return(0,S.Z)((0,S.Z)({},e),{},{messages:(0,M.Z)((e.messages||[]).reduce((function(e,n){return n.sid===t.payload.message.sid?e.push(t.payload.message):e.push(n),e}),[]))});case G:return(0,S.Z)((0,S.Z)({},e),{},{attachedFiles:[].concat((0,M.Z)(e.attachedFiles||[]),(0,M.Z)(t.payload.filesToAttach))});case q:var n=t.payload.filesToDetach;return(0,S.Z)((0,S.Z)({},e),{},{attachedFiles:te(e.attachedFiles,n)});case W:return(0,S.Z)((0,S.Z)({},e),{},{participants:[].concat((0,M.Z)(e.participants||[]),[t.payload.participant]),users:[].concat((0,M.Z)(e.users||[]),[t.payload.user])});case Z:return(0,S.Z)((0,S.Z)({},e),{},{participants:(0,M.Z)((e.participants||[]).filter((function(e){return e.sid!==t.payload.participant.sid}))),users:(0,M.Z)((e.users||[]).filter((function(e){return e.identity!==t.payload.participant.identity})))});case z:return(0,S.Z)((0,S.Z)({},e),{},{participants:(0,M.Z)((e.participants||[]).reduce((function(e,n){return n.sid===t.payload.participant.sid?e.push(t.payload.participant):e.push(n),e}),[]))});case K:return(0,S.Z)((0,S.Z)({},e),{},{conversationState:t.payload.conversationState});case X:return(0,S.Z)((0,S.Z)({},e),{},{loading:t.payload.loading});default:return e}},config:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0;return t.type===N?(0,S.Z)((0,S.Z)({},e),t.payload):e},notifications:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case J:return[].concat((0,M.Z)(e),[t.payload.notification]);case Q:return e.filter((function(e){return e.id!==t.payload.id}));default:return e}},session:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case j:return(0,S.Z)((0,S.Z)({},e),{},{token:t.payload.token,conversationSid:t.payload.conversationSid,currentPhase:t.payload.currentPhase});case V:return(0,S.Z)((0,S.Z)({},e),{},{token:t.payload.token,conversationSid:t.payload.conversationSid});case D:return(0,S.Z)((0,S.Z)({},e),{},{expanded:t.payload.expanded});case L:return(0,S.Z)((0,S.Z)({},e),{},{currentPhase:t.payload.currentPhase});case Y:return(0,S.Z)((0,S.Z)({},e),{},{preEngagementData:(0,S.Z)((0,S.Z)({},e.preEngagementData),t.payload.preEngagementData)});default:return e}}}),le=B(se,ae(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(_(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=O.apply(void 0,i)(n.dispatch),(0,S.Z)((0,S.Z)({},n),{},{dispatch:r})}}}(A))),ce=n(3536),ue=n(7949),de=n(885),fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=e.match(/^(.+)(\.[\S]*)$/)||[],r=(0,de.Z)(n,3),o=r[1],i=r[2];return"".concat(o.substr(0,t),"[...]").concat(i||"")},pe=function(e){var t=e.fileName;return{id:"FileAttachmentAlreadyAttachedNotification_".concat(Math.random()),dismissible:!0,message:"".concat(fe(t)," is already attached."),type:"error",timeout:1e4}},he=function(e){var t=e.fileName,n=e.maxFileSize;return{id:"FileAttachmentInvalidSizeNotification_".concat(Math.random()),dismissible:!0,message:"".concat(fe(t)," can\u2019t be attached because the file is too large. Maximum file size is ").concat(n),type:"error",timeout:1e4}},me=function(e){var t=e.fileName;return{id:"FileAttachmentInvalidTypeNotification_".concat(Math.random()),dismissible:!0,message:"".concat(fe(t)," can\u2019t be attached because that file type isn\u2019t supported. Please try a different file."),type:"error",timeout:1e4}},ve=function(e){var t=e.fileName,n=e.maxFileSize;return{id:"FileDownloadInvalidSizeNotification_".concat(Math.random()),dismissible:!0,message:"".concat(fe(t)," can\u2019t be downloaded because the file is too large. Maximum file size is ").concat(n),type:"error",timeout:1e4}},ge=function(e){var t=e.fileName;return{id:"FileDownloadInvalidTypeNotification_".concat(Math.random()),dismissible:!0,message:"".concat(fe(t)," can\u2019t be downloaded because the file type isn\u2019t supported."),type:"error",timeout:1e4}},ye=function(){return{id:"NoConnectionNotification",dismissible:!0,message:"Connection lost. Attempting to reconnect.",type:"warning"}},be=function(e){return{id:"FailedToInitSessionNotification",dismissible:!0,message:"Something went wrong. ".concat(e,". Please try again later."),type:"error"}};function xe(e){var t=e.phase;return{type:L,payload:{currentPhase:t}}}function we(e){return{type:J,payload:{notification:e}}}function ke(e){return{type:Q,payload:{id:e}}}function Se(n){var r=n.anchor,o=n.conversation;return function(){var n=(0,t.Z)((0,e.Z)().mark((function t(n){return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=n,e.t1=$,e.next=4,o.getMessages(20,r);case 4:return e.t2=e.sent.items,e.t3={messages:e.t2},e.t4={type:e.t1,payload:e.t3},e.abrupt("return",(0,e.t0)(e.t4));case 8:case"end":return e.stop()}}),t)})));return function(e){return n.apply(this,arguments)}}()}function _e(e){var t=e.expanded;return{type:D,payload:{expanded:t}}}function Ee(e){return{type:q,payload:{filesToDetach:e}}}function Ce(e){return{type:Y,payload:{preEngagementData:e}}}var Te=n(2431),Ie=n(9628),Be=n(8015),Oe=a.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,s=e.size,l=e.color,c=e.title,u=e.decorative,d="AttachIcon-".concat((0,Ie.Dt)());if(!u&&null==c)throw new Error("[AttachIcon]: Missing a title for non-decorative icon.");return a.createElement(Be.a,{as:n,display:r,element:i,size:s,color:l,ref:t},a.createElement("svg",{role:"img","aria-hidden":u,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 20 20","aria-labelledby":d},c?a.createElement("title",{id:d},c):null,a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.879 9.264l5.59-5.73a3.251 3.251 0 013.214-.924 3.347 3.347 0 012.36 2.42 3.447 3.447 0 01-.75 3.135l-.145.153-5.623 5.767a1.87 1.87 0 01-2.668-.023 1.987 1.987 0 01-.116-2.627l.099-.113 5.618-5.761c.195-.2.512-.2.708 0a.523.523 0 01.058.655l-.058.07-5.612 5.755a.94.94 0 00.011 1.295.885.885 0 001.174.09l.083-.073 5.624-5.767a2.4 2.4 0 00.628-2.296 2.333 2.333 0 00-1.645-1.686 2.264 2.264 0 00-2.117.523l-.129.127L4.587 9.99a3.866 3.866 0 000 5.371 3.64 3.64 0 005.097.139l.143-.139 6.818-6.99c.196-.2.513-.2.708 0a.523.523 0 01.058.655l-.058.071-6.818 6.99a4.626 4.626 0 01-6.656 0c-1.787-1.832-1.837-4.77-.15-6.663l.15-.16z"})))}));Oe.displayName="AttachIcon";var Pe=n(168),Re=n(9611);var Ae=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)===0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Me=function(e){function t(e,r,l,c,f){for(var p,h,m,v,x,k=0,S=0,_=0,E=0,C=0,R=0,M=m=p=0,D=0,L=0,j=0,z=0,W=l.length,Z=W-1,F="",H="",U="",$="";D<W;){if(h=l.charCodeAt(D),D===Z&&0!==S+E+_+k&&(0!==S&&(h=47===S?10:47),E=_=k=0,W++,Z++),0===S+E+_+k){if(D===Z&&(0<L&&(F=F.replace(d,"")),0<F.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:F+=l.charAt(D)}h=59}switch(h){case 123:for(p=(F=F.trim()).charCodeAt(0),m=1,z=++D;D<W;){switch(h=l.charCodeAt(D)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(D+1)){case 42:case 47:e:{for(M=D+1;M<Z;++M)switch(l.charCodeAt(M)){case 47:if(42===h&&42===l.charCodeAt(M-1)&&D+2!==M){D=M+1;break e}break;case 10:if(47===h){D=M+1;break e}}D=M}}break;case 91:h++;case 40:h++;case 34:case 39:for(;D++<Z&&l.charCodeAt(D)!==h;);}if(0===m)break;D++}if(m=l.substring(z,D),0===p&&(p=(F=F.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<L&&(F=F.replace(d,"")),h=F.charCodeAt(1)){case 100:case 109:case 115:case 45:L=r;break;default:L=P}if(z=(m=t(r,L,m,h,f+1)).length,0<A&&(x=s(3,m,L=n(P,F,j),r,I,T,z,h,f,c),F=L.join(""),void 0!==x&&0===(z=(m=x.trim()).length)&&(h=0,m="")),0<z)switch(h){case 115:F=F.replace(w,a);case 100:case 109:case 45:m=F+"{"+m+"}";break;case 107:m=(F=F.replace(g,"$1 $2"))+"{"+m+"}",m=1===O||2===O&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=F+m,112===c&&(H+=m,m="")}else m=""}else m=t(r,n(r,F,j),m,c,f+1);U+=m,m=j=L=M=p=0,F="",h=l.charCodeAt(++D);break;case 125:case 59:if(1<(z=(F=(0<L?F.replace(d,""):F).trim()).length))switch(0===M&&(p=F.charCodeAt(0),45===p||96<p&&123>p)&&(z=(F=F.replace(" ",":")).length),0<A&&void 0!==(x=s(1,F,r,e,I,T,H.length,c,f,c))&&0===(z=(F=x.trim()).length)&&(F="\0\0"),p=F.charCodeAt(0),h=F.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){$+=F+l.charAt(D);break}default:58!==F.charCodeAt(z-1)&&(H+=o(F,p,h,F.charCodeAt(2)))}j=L=M=p=0,F="",h=l.charCodeAt(++D)}}switch(h){case 13:case 10:47===S?S=0:0===1+p&&107!==c&&0<F.length&&(L=1,F+="\0"),0<A*N&&s(0,F,r,e,I,T,H.length,c,f,c),T=1,I++;break;case 59:case 125:if(0===S+E+_+k){T++;break}default:switch(T++,v=l.charAt(D),h){case 9:case 32:if(0===E+k+S)switch(C){case 44:case 58:case 9:case 32:v="";break;default:32!==h&&(v=" ")}break;case 0:v="\\0";break;case 12:v="\\f";break;case 11:v="\\v";break;case 38:0===E+S+k&&(L=j=1,v="\f"+v);break;case 108:if(0===E+S+k+B&&0<M)switch(D-M){case 2:112===C&&58===l.charCodeAt(D-3)&&(B=C);case 8:111===R&&(B=R)}break;case 58:0===E+S+k&&(M=D);break;case 44:0===S+_+E+k&&(L=1,v+="\r");break;case 34:case 39:0===S&&(E=E===h?0:0===E?h:E);break;case 91:0===E+S+_&&k++;break;case 93:0===E+S+_&&k--;break;case 41:0===E+S+k&&_--;break;case 40:if(0===E+S+k){if(0===p)if(2*C+3*R===533);else p=1;_++}break;case 64:0===S+_+E+k+M+m&&(m=1);break;case 42:case 47:if(!(0<E+k+_))switch(S){case 0:switch(2*h+3*l.charCodeAt(D+1)){case 235:S=47;break;case 220:z=D,S=42}break;case 42:47===h&&42===C&&z+2!==D&&(33===l.charCodeAt(z+2)&&(H+=l.substring(z,D+1)),v="",S=0)}}0===S&&(F+=v)}R=C,C=h,D++}if(0<(z=H.length)){if(L=r,0<A&&(void 0!==(x=s(2,H,L,e,I,T,z,c,f,c))&&0===(H=x).length))return $+H+U;if(H=L.join(",")+"{"+H+"}",0!==O*B){switch(2!==O||i(H,2)||(B=0),B){case 111:H=H.replace(b,":-moz-$1")+H;break;case 112:H=H.replace(y,"::-webkit-input-$1")+H.replace(y,"::-moz-$1")+H.replace(y,":-ms-input-$1")+H}B=0}}return $+H+U}function n(e,t,n){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===O||2===O&&i(l,1)?"-webkit-"+l+l:l}if(0===O||2===O&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(x,"tb");break;case 232:l=a.replace(x,"tb-rl");break;case 220:l=a.replace(x,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),M(2!==t?r:r.replace(_,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,l,u){for(var d,f=0,p=t;f<A;++f)switch(d=R[f].call(c,e,p,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(M=null,e?"function"!==typeof e?O=1:(O=2,M=e):O=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<A){var o=s(-1,n,r,r,I,T,0,0,0,0);void 0!==o&&"string"===typeof o&&(n=o)}var i=t(P,r,n,0,0);return 0<A&&(void 0!==(o=s(-2,i,r,r,I,T,i.length,0,0,0))&&(i=o)),"",B=0,T=I=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,m=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,S=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,T=1,I=1,B=0,O=1,P=[],R=[],A=0,M=null,N=0;return c.use=function e(t){switch(t){case void 0:case null:A=R.length=0;break;default:if("function"===typeof t)R[A++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else N=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},Ne="";function De(e){e&&Le.current.insert(e+"}")}var Le={current:null},je=function(e,t,n,r,o,i,a,s,l,c){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Le.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+Ne;break;case 3:switch(s){case 102:case 112:return Le.current.insert(n[0]+t),"";default:return t+(0===c?Ne:"")}case-2:t.split("}").forEach(De)}},ze=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Me(t);var o,i={};o=e.container||document.head;var a,s=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(s,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(je),a=function(e,t,n,o){var i=t.name;Le.current=n,r(e,t.styles),o&&(l.inserted[i]=!0)};var l={key:n,sheet:new Ae({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return l};var We=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Ze={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Fe=/[A-Z]|^ms/g,He=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ue=function(e){return 45===e.charCodeAt(1)},$e=function(e){return null!=e&&"boolean"!==typeof e},Ge=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Ue(e)?e:e.replace(Fe,"-$&").toLowerCase()})),qe=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(He,(function(e,t,n){return Ve={name:t,styles:n,next:Ve},t}))}return 1===Ze[e]||Ue(e)||"number"!==typeof t||0===t?t:t+"px"};function Ke(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ve={name:n.name,styles:n.styles,next:Ve},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Ve={name:o.name,styles:o.styles,next:Ve},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ke(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":$e(a)&&(r+=Ge(i)+":"+qe(i,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Ke(e,t,a,!1);switch(i){case"animation":case"animationName":r+=Ge(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)$e(a[l])&&(r+=Ge(i)+":"+qe(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=Ve,a=n(e);return Ve=i,Ke(e,t,a,r)}}if(null==t)return n;var s=t[n];return void 0===s||r?n:s}var Ve,Ye=/label:\s*([^\s;\n{]+)\s*;/g;var Xe=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ve=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Ke(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=Ke(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);Ye.lastIndex=0;for(var s,l="";null!==(s=Ye.exec(o));)l+="-"+s[1];return{name:We(o)+l,styles:o,next:Ve}},Je=(Object.prototype.hasOwnProperty,(0,a.createContext)("undefined"!==typeof HTMLElement?ze():null)),Qe=(0,a.createContext)({}),et=(Je.Provider,function(e){var t=function(t,n){return(0,a.createElement)(Je.Consumer,null,(function(r){return e(t,r,n)}))};return(0,a.forwardRef)(t)});var tt=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var nt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xe(t)},rt=(a.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function ot(e,t,n){var r=[],o=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}(e,r,n);return r.length<2?n:o+t(r)}var it,at=function(){return null},st=(et((function(e,t){return(0,a.createElement)(Qe.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Xe(n,t.registered);return tt(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return ot(t.registered,r,rt(n))},theme:n},i=e.children(o);var s=(0,a.createElement)(at,null);return(0,a.createElement)(a.Fragment,null,s,i)}))})),function(){var e=nt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(it||(it=(0,Pe.Z)(["\n    0% {\n        opacity: 0;\n        transform: scale(0.9);\n    }\n    100% {\n        opacity: 1;\n        transform: scale(1);\n    }\n"])))),lt={position:"relative",display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},ct={position:"absolute",zIndex:"zIndex10",top:"space30",left:"space30",bottom:"space30",right:"space30",backgroundColor:"colorBackgroundBody",opacity:.96,borderColor:"colorBorderPrimary",borderWidth:"borderWidth20",borderStyle:"dashed",borderRadius:"borderRadius30",display:"flex",flexDirection:"column",alignContent:"center",justifyContent:"center",textAlign:"center",pointerEvents:"none",animation:"".concat(st," 0.1s forwards")},ut={marginLeft:"auto",marginRight:"auto",color:"colorTextLink"},dt={fontSize:"fontSize40",fontWeight:"fontWeightBold",lineHeight:"lineHeight40",color:"colorText"},ft=n(6518),pt=function(e){var t=e/1024/1024,n=Math.max(0,3-Math.ceil(Math.log10(t+1))),r=t.toFixed(n);return Number(r)>.01?r:"0.01"},ht=n(184),mt=function(e){var t=e.children,n=k((function(e){return{attachedFiles:e.chat.attachedFiles||[],fileAttachmentConfig:e.config.fileAttachment}})),r=n.attachedFiles,o=n.fileAttachmentConfig,i=y(),s=(0,a.useState)(!1),l=(0,de.Z)(s,2),c=l[0],u=l[1],d=function(e){var t;return Boolean(null===e||void 0===e||null===(t=e.types)||void 0===t?void 0:t.find((function(e){return"Files"===e})))};return(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},lt),{},{onDrop:function(e){if(e.preventDefault(),d(e.dataTransfer)){var t=e.dataTransfer.files;if(t&&t.length){var n=function(e,t,n,r){return e.reduce((function(e,o){return n&&n.some((function(e){return o.name===e.name&&o.type===e.type&&o.size===e.size}))?t(we(pe({fileName:o.name}))):null!==r&&void 0!==r&&r.maxFileSize&&o.size>r.maxFileSize?t(we(he({fileName:o.name,maxFileSize:"".concat(pt(null===r||void 0===r?void 0:r.maxFileSize),"MB")}))):null!==r&&void 0!==r&&r.acceptedExtensions&&!r.acceptedExtensions.includes((0,ft.extension)(o.type))?t(we(me({fileName:o.name}))):e.push(o),e}),[])}(Array.from(t),i,r,o);i(function(e){return{type:G,payload:{filesToAttach:e}}}(n))}}u(!1)},onDragOver:function(e){e.preventDefault(),c||d(e.dataTransfer)&&u(!0)},onDragLeave:function(e){e.preventDefault();var t=e.nativeEvent.relatedTarget;t&&(e.currentTarget.contains(t)||t.getRootNode()instanceof ShadowRoot)||u(!1)},children:[c&&(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},ct),{},{children:[(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},ut),{},{children:(0,ht.jsx)(Oe,{decorative:!0,size:"sizeIcon60"})})),(0,ht.jsx)(Te.Text,(0,S.Z)((0,S.Z)({as:"p"},dt),{},{children:"Drop a file or image here"}))]})),t]}))},vt=n(618),gt=n(2895),yt=n.n(gt),bt="TWILIO_WEBCHAT_WIDGET",xt="";function wt(e){return kt.apply(this,arguments)}function kt(){return kt=(0,t.Z)((0,e.Z)().mark((function t(n){var r,o,i=arguments;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:{},e.next=3,fetch(xt+n,{method:"POST",credentials:"include",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)});case 3:if((o=e.sent).ok){e.next=6;break}throw new Error("Request to backend failed");case 6:return e.abrupt("return",o.json());case 7:case"end":return e.stop()}}),t)}))),kt.apply(this,arguments)}function St(e){localStorage.setItem(bt,JSON.stringify(e))}function _t(){var e,t=localStorage.getItem(bt);if(!t)return null;try{e=JSON.parse(t)}catch(n){return yt().log("Couldn't parse locally stored data"),null}return e}var Et={setEndpoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";xt=e},getEndpoint:function(){return xt},tryResumeExistingSession:function(){yt().debug("sessionDataHandler: trying to refresh existing session");var e=_t();return e?Date.now()>=new Date(e.expiration).getTime()?(yt().debug("sessionDataHandler: token expired, ignoring existing sessions"),null):(yt().debug("sessionDataHandler: existing token still valid, using existing session data"),e):(yt().debug("sessionDataHandler: no tokens stored, no session to refresh"),null)},getUpdatedToken:function(){return(0,t.Z)((0,e.Z)().mark((function t(){var n,r,o;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(yt().debug("sessionDataHandler: trying to get updated token from BE"),n=_t()){e.next=4;break}throw Error("Can't update token: current token doesn't exist");case 4:return e.prev=4,e.next=7,wt("/refreshToken",{token:n.token});case 7:r=e.sent,e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(4),Error("Something went wrong when trying to get an updated token: ".concat(e.t0));case 13:return St(o=(0,S.Z)((0,S.Z)({},n),r)),e.abrupt("return",o);case 16:case"end":return e.stop()}}),t,null,[[4,10]])})))()},fetchAndStoreNewSession:function(){var n=(0,t.Z)((0,e.Z)().mark((function t(n){var r,o;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.formData,yt().debug("sessionDataHandler: trying to create new session"),e.prev=2,e.next=5,wt("/initWebchat",{formData:r});case 5:o=e.sent,e.next=11;break;case 8:throw e.prev=8,e.t0=e.catch(2),Error("No results from server");case 11:return yt().debug("sessionDataHandler: new session successfully created"),St(o),e.abrupt("return",o);case 14:case"end":return e.stop()}}),t,null,[[2,8]])})));return function(e){return n.apply(this,arguments)}}(),clear:function(){localStorage.removeItem(bt)}},Ct={padding:"space60",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",backgroundColor:"colorBackground",textAlign:"center"},Tt={fontSize:"fontSize50"},It={marginBottom:"space50",marginTop:"space50"},Bt=function(){var e=y(),t=k((function(e){var t;return{messages:e.chat.messages,users:e.chat.users,preEngagementData:null===(t=e.chat.conversation)||void 0===t?void 0:t.attributes.pre_engagement_data,transcriptConfig:e.config.transcript}}));t.messages,t.users,t.preEngagementData,t.transcriptConfig;return(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},Ct),{},{children:[(0,ht.jsx)(Te.Text,(0,S.Z)((0,S.Z)({as:"h3"},Tt),{},{children:"Thanks for chatting with us!"})),(0,ht.jsx)(a.Fragment,{}),(0,ht.jsx)(Te.Text,(0,S.Z)((0,S.Z)({as:"p"},It),{},{children:"If you have any more questions, feel free to reach out again."})),(0,ht.jsx)(vt.Button,{variant:"primary","data-test":"start-new-chat-button",onClick:function(){Et.clear(),e(Ce({email:"",name:"",query:""})),e(xe({phase:ne.PreEngagementForm}))},children:"Start new chat"})]}))},Ot="dots_dots__V7YBl",Pt="dots_dot__Gsfd8",Rt=function(){return(0,ht.jsx)(ht.Fragment,{children:(0,ht.jsxs)("div",{className:Ot,children:[(0,ht.jsx)("div",{className:Pt}),(0,ht.jsx)("div",{className:Pt}),(0,ht.jsx)("div",{className:Pt})]})})},At={display:"flex",justifyContent:"space-between",flexDirection:"column",alignItems:"start",backgroundColor:"colorBackgroundPrimary",padding:"space20",paddingTop:"space40",paddingBottom:"space40",borderTopLeftRadius:"borderRadius20",borderTopRightRadius:"borderRadius20"},Mt={color:"colorTextWeakest",paddingLeft:"space30",fontWeight:"fontWeightSemibold"},Nt={color:"colorTextWeakest",paddingLeft:"space30",fontWeight:"fontWeightLight",fontSize:"fontSize20"},Dt=n(3447),Lt=function(e){e.customTitle;var t=y();return(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({as:"header"},At),{},{children:(0,ht.jsxs)(Dt.Flex,{vAlignContent:"center",marginX:"space40",width:"90%",hAlignContent:"between",children:[(0,ht.jsxs)(Dt.Flex,{vAlignContent:"center",children:[(0,ht.jsxs)("div",{style:{position:"relative",width:"30px",marginRight:5},children:[(0,ht.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iMTYiIGZpbGw9IiNmZmYiLz4KPG1hc2sgaWQ9ImEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgcng9IjE2IiBmaWxsPSIjZmZmIi8+CjwvbWFzaz4KPHBhdGggZD0iTTE3LjIgOGgtMy44Yy0uNCAwLS44LjMtMSAuN2wtMiA3Yy0uMi43LjMgMS4zLjkgMS4zSDE1bC0xLjUgNyA3LjMtOS40Yy41LS42IDAtMS42LS44LTEuNmgtM2wxLjEtMy43Yy4yLS43LS4zLTEuMy0uOS0xLjN6IiBmaWxsPSIjMjE1NjgyIi8+Cjwvc3ZnPgo=",alt:""}),(0,ht.jsx)("span",{style:{position:"absolute",width:"7px",height:"7px",borderRadius:"50%",backgroundColor:"#12b886",bottom:"5px",right:0,outline:"#215682 solid 2px"}})]}),(0,ht.jsxs)(Dt.Flex,{vertical:!0,children:[(0,ht.jsx)(Te.Text,(0,S.Z)((0,S.Z)({as:"h2"},Mt),{},{children:"Assistente Virtuale"})),(0,ht.jsx)(Te.Text,(0,S.Z)((0,S.Z)({as:"h6"},Nt),{},{children:"Risponde istantaneamente"}))]})]}),(0,ht.jsx)(Dt.Button,{variant:"link",onClick:function(){return t(_e({expanded:!1}))},children:(0,ht.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ht.jsx)("path",{d:"M12 1.5L10.5 0 6 4.5 1.5 0 0 1.5 4.5 6 0 10.5 1.5 12 6 7.5l4.5 4.5 1.5-1.5L7.5 6 12 1.5z",fill:"white"})})})]})}))},jt=n(3881),zt=n.n(jt),Wt=n(5862),Zt=n(9839),Ft=a.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,s=e.size,l=e.color,c=e.title,u=e.decorative,d="SendIcon-".concat((0,Ie.Dt)());if(!u&&null==c)throw new Error("[SendIcon]: Missing a title for non-decorative icon.");return a.createElement(Be.a,{as:n,display:r,element:i,size:s,color:l,ref:t},a.createElement("svg",{role:"img","aria-hidden":u,xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 20 20","aria-labelledby":d},c?a.createElement("title",{id:d},c):null,a.createElement("path",{fill:"currentColor",d:"M16.999 10.032a.337.337 0 00-.044-.175.274.274 0 00-.123-.114L4.365 4.02a.244.244 0 00-.148-.014.266.266 0 00-.132.075.322.322 0 00-.076.147.355.355 0 00.004.172l1.19 4.46c.004.03.016.056.034.077a.124.124 0 00.067.041l7.054.857a.13.13 0 01.082.052.17.17 0 01.033.101.17.17 0 01-.033.101.13.13 0 01-.082.052l-7.042.87a.124.124 0 00-.067.041.157.157 0 00-.036.077l-1.189 4.46a.355.355 0 00-.008.17.324.324 0 00.072.15.26.26 0 00.13.083c.048.013.1.01.147-.01l12.482-5.644a.28.28 0 00.118-.125.342.342 0 00.034-.181z"})))}));Ft.displayName="SendIcon";var Ht={borderTopColor:"colorBorderWeaker",borderTopWidth:"borderWidth10",borderTopStyle:"solid",padding:"space20"},Ut={display:"flex",flexDirection:"row",alignItems:"flex-start",boxShadow:"none"},$t={marginTop:"auto",marginBottom:"auto",flex:1},Gt={margin:"space30",marginLeft:"space20",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"left",_notLast:{marginRight:"space0"}},qt=n(2714),Kt=function(){var n=y(),r=(0,a.useState)(""),o=(0,de.Z)(r,2),i=o[0],s=o[1],l=(0,a.useState)(!1),c=(0,de.Z)(l,2),u=c[0],d=c[1],f=k((function(e){return{conversation:e.chat.conversation,attachedFiles:e.chat.attachedFiles||[],fileAttachmentConfig:e.config.fileAttachment}})),p=f.conversation,h=f.attachedFiles,m=(f.fileAttachmentConfig,(0,a.useRef)((h||[]).length)),v=(0,a.useRef)(null),g=(0,a.useRef)(null),b=(0,qt.Fg)(),x=(0,a.useMemo)((function(){return zt()((function(){var e;null===p||void 0===p||p.typing(),(null===p||void 0===p?void 0:p.lastReadMessageIndex)!==(null===p||void 0===p||null===(e=p.lastMessage)||void 0===e?void 0:e.index)&&(null===p||void 0===p||p.setAllMessagesRead())}),500)}),[p]),w=!i.trim()&&!(null!==h&&void 0!==h&&h.length)||u,_=function(){var r=(0,t.Z)((0,e.Z)().mark((function t(){var r,o,a;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w){e.next=2;break}return e.abrupt("return");case 2:if(p){e.next=5;break}return yt().error("Failed sending message: no conversation found"),e.abrupt("return");case 5:return o=i,s(""),d(!0),n({type:X,payload:{loading:!0}}),a=(a=p.prepareMessage()).setBody(o),h.forEach((function(e){var t=new FormData;t.append(e.name,e),a.addMedia(t)})),e.next=14,a.build().send();case 14:n(Ee(h)),d(!1),n({type:X,payload:{loading:!1}}),null===(r=v.current)||void 0===r||r.focus();case 18:case"end":return e.stop()}}),t)})));return function(){return r.apply(this,arguments)}}();return(0,a.useEffect)((function(){var e,t;null===(e=v.current)||void 0===e||e.setAttribute("rows","1"),null===(t=v.current)||void 0===t||t.focus()}),[v]),(0,a.useEffect)((function(){if(g.current){var e;if(h.length>m.current)null===(e=g.current.lastChild)||void 0===e||e.scrollIntoView();m.current=h.length}}),[h]),(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({as:"form"},Ht),{},{onSubmit:function(e){e.preventDefault(),_()},children:(0,ht.jsx)(Wt.InputBox,{element:"MESSAGE_INPUT_BOX",disabled:u,children:(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({as:"div"},Ut),{},{children:[(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},$t),{},{children:(0,ht.jsx)(Zt.TextArea,{ref:v,"data-test":"message-input-textarea",placeholder:"Scrivi qui",value:i,element:"MESSAGE_INPUT",onChange:function(e){s(e.target.value),x()},onFocus:function(){null===p||void 0===p||p.setAllMessagesRead()},readOnly:u,onKeyPress:function(e){var t;"Enter"!==e.key||e.shiftKey||(e.preventDefault(),null===(t=e.target.form)||void 0===t||t.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0})))},maxLength:32768})})),(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},Gt),{},{children:(0,ht.jsx)(vt.Button,{"data-test":"message-send-button",variant:"primary_icon",size:"icon_small",type:"submit","aria-disabled":w,children:(0,ht.jsx)(Ft,{color:b.backgroundColors.colorBackgroundPrimary,decorative:!1,title:"Send message",size:"sizeIcon30"})})}))]}))})}))},Vt=n(4793),Yt=n(5198),Xt=n(3976),Jt=n(7258),Qt={display:"flex",flexDirection:"column",marginBottom:"space40"},en={display:"flex",alignItems:"flex-end"},tn={color:"inherit",whiteSpace:"pre-wrap",wordBreak:"break-word"};var nn="((?:http|https|rtsp):\\/\\/)",rn="".concat("(?:\\b|^)","(?:").concat(nn,"\\S+|(?:").concat(nn,")?").concat("(?:(?:[a-zA-Z0-9][-]*)*[a-zA-Z0-9]\\.)+","(?:").concat("aero|arpa|asia|app|biz|buzz|cat|com|coop|credit|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel","|").concat("a[cdefgilmnoqrstuwxz]|b[abdefghijlmnoqrstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[ceghrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdefghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnorstuvxyz]|t[cdfghjklmnoprtvwz]|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw]",")").concat("(?:\\:\\d{1,5})?").concat('(?:[/?#][^\\s"]*)?',")").concat("(?:\\b|$)"),on=new RegExp(rn,"gi"),an=function(e,t,n,r){var o=[],i=new RegExp(/[\n\r]/);return e.split(i).forEach((function(e){var i,s=0,l=function(e){return"Dentalpro"===e}(r);if("Chiedi informazioni"===e&&l)o.push((0,ht.jsx)(vt.Button,{variant:"primary",onClick:function(){return n()},children:"Chiedi informazioni"},s));else if(function(e){return/^Scopri altri centri (https?:\/\/[^\s]+|www\.[^\s]+)$/.test(e)}(e)&&l){var c=e.match(/^Scopri altri centri (https?:\/\/[^\s]+|www\.[^\s]+)$/);if(c&&c[1]){var u=c[1];o.push((0,ht.jsxs)(Xt.Anchor,{href:u,"data-paste-anchor":"anchor-button",children:[(0,ht.jsx)(Jt.P,{decorative:!0}),"Scopri Altri Centri"]},s))}}else if(function(e){return/^Prenota una visita (https?:\/\/[^\s]+|www\.[^\s]+)$/.test(e)}(e)&&l){var d=e.match(/^Prenota una visita (https?:\/\/[^\s]+|www\.[^\s]+)$/);if(d&&d[1]){var f=d[1];o.push((0,ht.jsxs)(Xt.Anchor,{href:f,"data-paste-anchor":"anchor-button",children:[(0,ht.jsx)(Jt.P,{decorative:!0}),"Prenota visita"]},s))}}else if(function(e){return/^Chiama (\+?\d{1,3}\s?\d+)$/.test(e)}(e)&&l){var p=e.match(/^Chiama (\+?\d{1,3}\s?\d+)$/);if(p&&p[1]){var h=p[1];o.push((0,ht.jsxs)(Xt.Anchor,{href:"tel:".concat(h),"data-paste-anchor":"anchor-button",children:[(0,ht.jsx)(Jt.P,{decorative:!0}),"Chiama ",h]},s))}}else if(s<e.length)o.push((0,a.createElement)(Te.Text,(0,S.Z)((0,S.Z)({},tn),{},{as:"p",key:s}),e.substring(s,e.length)));else for(;i=on.exec(e);){o.push((0,a.createElement)(Te.Text,(0,S.Z)((0,S.Z)({},tn),{},{as:"p",key:s}),e.substring(s,i.index)));var m=i,v=(0,de.Z)(m,2),g=v[0],y=v[1]?g:"http://".concat(g);o.push((0,ht.jsx)(Xt.Anchor,{href:y,variant:t?"inverse":"default",children:g},s)),s=i.index+i[0].length}o.push("\n")})),o.pop(),o},sn=a.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,s=e.size,l=e.color,c=e.title,u=e.decorative,d="FileIcon-".concat((0,Ie.Dt)());if(!u&&null==c)throw new Error("[FileIcon]: Missing a title for non-decorative icon.");return a.createElement(Be.a,{as:n,display:r,element:i,size:s,color:l,ref:t},a.createElement("svg",{role:"img","aria-hidden":u,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none","aria-labelledby":d},c?a.createElement("title",{id:d},c):null,a.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M16.5 17h-13a.5.5 0 01-.5-.5v-13a.5.5 0 01.5-.5h9.879a.5.5 0 01.353.146l3.122 3.122A.5.5 0 0117 6.62v9.88a.5.5 0 01-.5.5zM2 3.5A1.5 1.5 0 013.5 2h9.879a1.5 1.5 0 011.06.44l3.122 3.12A1.5 1.5 0 0118 6.622V16.5a1.5 1.5 0 01-1.5 1.5h-13A1.5 1.5 0 012 16.5v-13zM5.5 6a.5.5 0 000 1h6a.5.5 0 000-1h-6zM5 10a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9A.5.5 0 015 10zm.5 3a.5.5 0 000 1h8a.5.5 0 000-1h-8z"})))}));sn.displayName="FileIcon";var ln=n(8045),cn=n(2614),un={position:"relative"},dn=function(e,t){return{display:"flex",flexDirection:"row",justifyContent:"flex-start",height:"fit-content",width:"100%",alignItems:"center",paddingTop:"space30",paddingBottom:"space30",paddingLeft:"space30",paddingRight:e?"space30":"space120",marginTop:"space30",marginBottom:"space30",borderColor:"colorBorderWeak",borderWidth:"borderWidth10",borderStyle:"solid",borderRadius:"borderRadius20",background:"inherit",color:"inherit",_hover:t?{}:{cursor:"pointer",borderColor:"inherit"},_focusVisible:t?{}:{boxShadow:"shadowFocus",borderColor:"transparent",outline:"none"}}},fn={paddingLeft:"space20",paddingRight:"space50"},pn={position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",top:"0px",bottom:"0px",right:"0px",margin:"space50",marginRight:"space40",color:"colorTextWeaker",_hover:{color:"inherit"}},hn={display:"flex",flexDirection:"column",overflow:"hidden",textAlign:"left"},mn={color:"inherit",fontWeight:"fontWeightBold",fontSize:"fontSize20",lineHeight:"lineHeight10"},vn={color:"inherit",fontSize:"fontSize10",lineHeight:"lineHeight10"},gn=function(n){var r=n.file,o=n.isBubble,i=n.disabled,s=n.media,l=n.focusable,c=(0,a.useState)(!1),u=(0,de.Z)(c,2),d=u[0],f=u[1],p=y(),h=k((function(e){return e.config.fileAttachment})),m=function(){var n=(0,t.Z)((0,e.Z)().mark((function t(){var n;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null!==h&&void 0!==h&&h.maxFileSize&&r.size>h.maxFileSize)){e.next=3;break}return p(we(ve({fileName:r.name,maxFileSize:"".concat(pt(h.maxFileSize),"MB")}))),e.abrupt("return");case 3:if(null===h||void 0===h||!h.acceptedExtensions||h.acceptedExtensions.includes((0,ft.extension)(r.type))){e.next=6;break}return p(we(ge({fileName:r.name}))),e.abrupt("return");case 6:if(e.prev=6,!s){e.next=13;break}return e.next=10,s.getContentTemporaryUrl();case 10:e.t0=e.sent,e.next=14;break;case 13:e.t0=URL.createObjectURL(r);case 14:n=e.t0,window.open(n),e.next=21;break;case 18:e.prev=18,e.t1=e.catch(6),yt().error("Failed downloading message attachment: ".concat(e.t1));case 21:case"end":return e.stop()}}),t,null,[[6,18]])})));return function(){return n.apply(this,arguments)}}();return(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},un),{},{children:[(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({as:"button",type:"button",appearance:"none","data-test":"file-preview-main-area"},dn(o,i)),{},{onClick:function(){i||m()},onMouseEnter:function(){return f(!0)},onFocus:function(){return f(!0)},onMouseLeave:function(){return f(!1)},onBlur:function(){return f(!1)},tabIndex:l?0:-1,children:[(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},fn),{},{children:(0,ht.jsx)(sn,{decorative:!1,title:"File attachment",size:"sizeIcon40"})})),(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},hn),{},{children:[(0,ht.jsx)(Te.Text,(0,S.Z)((0,S.Z)({as:"h1"},mn),{},{children:(0,ht.jsx)(cn.Truncate,{title:r.name,children:r.name})})),(0,ht.jsx)(Te.Text,(0,S.Z)((0,S.Z)({as:"p"},vn),{},{children:d?"Click to open":"".concat(pt(r.size),"MB")}))]}))]})),(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},pn),{},{children:!o&&(0,ht.jsx)(vt.Button,{variant:"secondary_icon",size:"icon_small",onClick:function(){p(Ee([r]))},type:"button","data-test":"message-file-attachment-remove-button",children:(0,ht.jsx)(ln.T,{decorative:!1,title:"Remove file attachment",size:"sizeIcon30",color:"inherit"})})}))]}))},yn=function(n){var r,o=n.message,i=n.isLast,s=(n.isLastOfUserGroup,n.focusable),l=n.updateFocus,c=(0,a.useState)(!1),u=(0,de.Z)(c,2),d=(u[0],u[1]),f=(0,a.useState)(!1),p=(0,de.Z)(f,2),h=p[0],m=p[1],v=k((function(e){return{conversationsClient:e.chat.conversationsClient,conversation:e.chat.conversation,participants:e.chat.participants,users:e.chat.users,fileAttachmentConfig:e.config.fileAttachment}})),g=v.conversationsClient,y=v.conversation,b=v.participants,x=v.users,w=v.fileAttachmentConfig,_=(0,a.useRef)(null),E=function(){var n=(0,t.Z)((0,e.Z)().mark((function t(){var n;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,y){e.next=4;break}return console.error("Conversation is undefined"),e.abrupt("return");case 4:return n=(n=y.prepareMessage()).setBody("Chiedi informazioni"),e.next=8,n.build().send();case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Error sending message",e.t0);case 13:case"end":return e.stop()}}),t,null,[[0,10]])})));return function(){return n.apply(this,arguments)}}(),C=o.author===(null===g||void 0===g?void 0:g.user.identity);(0,a.useEffect)((function(){if(i&&b&&C){var e=b.filter((function(e){return e.identity!==(null===g||void 0===g?void 0:g.user.identity)}));d(Boolean(e.length)&&e.every((function(e){return e.lastReadMessageIndex===o.index})))}else d(!1)}),[b,i,C,g,o]),(0,a.useEffect)((function(){var e;s&&(null===(e=_.current)||void 0===e||e.focus())}),[s]);var T,I=(null===x||void 0===x||null===(r=x.find((function(e){return e.identity===o.author})))||void 0===r?void 0:r.friendlyName)||o.author;return(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},Qt),{},{tabIndex:s?0:-1,onFocus:function(){h||l(o.index)},onKeyDown:function(e){if("ArrowUp"===e.key||"ArrowDown"===e.key){var t=o.index+("ArrowUp"===e.key?-1:1);l(t)}},onMouseDown:function(){m(!0)},onMouseUp:function(){m(!1)},ref:_,"data-message-bubble":!0,"data-testid":"message-bubble",children:(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},en),{},{children:[(!C||"Dentalpro"==I)&&(0,ht.jsx)("img",{width:"32px",src:"https://storage-platform-prod.s3.amazonaws.com/logos/6785/logo.png?cb=15813865",style:{marginRight:"16px",marginBottom:"10px",alignSelf:"end"}}),(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},(T=C,{paddingTop:"space30",paddingBottom:"space30",paddingLeft:"space40",paddingRight:"space40",backgroundColor:T?"colorBackgroundPrimary":null,color:T?"colorTextWeakest":"colorText",borderRadius:"borderRadius20",marginLeft:T?"auto":"space0",marginRight:T?"space0":"auto",maxWidth:"90%",borderWidth:"borderWidth10",borderStyle:"solid",borderColor:"colorBorderWeaker",padding:"space50"})),{},{children:[(0,ht.jsx)(Yt.Flex,{hAlignContent:"between",width:"100%",vAlignContent:"center",marginBottom:"space20"}),o.body?an(o.body,C,E,I):(0,ht.jsx)(ht.Fragment,{}),"media"===o.type?null!==w&&void 0!==w&&w.enabled?o.attachedMedia?o.attachedMedia.map((function(e,t){var n={name:e.filename,type:e.contentType,size:e.size};return(0,ht.jsx)(gn,{file:n,isBubble:!0,media:e,focusable:s},t)})):null:(0,ht.jsx)("i",{children:"Media messages are not supported"}):null]}))]}))}))},bn={flexGrow:1,justifyContent:"flex-end",overflow:"auto",display:"flex",flexDirection:"column-reverse"},xn={display:"flex",flexDirection:"column-reverse",flex:"1",marginTop:"auto",overflow:"auto"},wn={display:"flex",flexDirection:"column",padding:"space40",flex:1},kn={display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",height:"".concat(50,"px")},Sn={fontSize:"fontSize10",fontStyle:"italic",color:"colorTextWeak",marginTop:"auto"},_n={textAlign:"center",marginTop:"space40",marginBottom:"space60"},En={index:0,body:"Ciao, sono l'assistente virtuale di DentalPro, come posso aiutarti oggi?",author:"DentalPro",dateCreated:new Date},Cn=function(e,t,n){var r=n[t+1];return!r||r.author!==e.author},Tn=function(){var n=k((function(e){return{messages:e.chat.messages,participants:e.chat.participants,users:e.chat.users,conversation:e.chat.conversation,conversationsClient:e.chat.conversationsClient}})),r=n.messages,o=n.participants,i=n.users,s=n.conversation,l=n.conversationsClient,c=y(),u=(0,a.useRef)(null),d=(0,a.useRef)(!1),f=(0,a.useRef)((r||[]).length),p=(0,a.useState)(!0),h=(0,de.Z)(p,2),m=h[0],v=h[1],g=(0,a.useState)(r&&r.length?r[(null===r||void 0===r?void 0:r.length)-1].index:-1),b=(0,de.Z)(g,2),x=b[0],w=b[1],_=(0,a.useState)(!1),E=(0,de.Z)(_,2),C=E[0],T=E[1],I=function(e){e<0||!r||!r.length||e>r[r.length-1].index||(C?(w(r[r.length-1].index),T(!1)):w(e))};(0,a.useEffect)((function(){var e=function(e){var t;null!==(t=document.activeElement)&&void 0!==t&&t.hasAttribute("data-message-bubble")||T(!0),e.author===(null===l||void 0===l?void 0:l.user.identity)&&u.current&&(u.current.scrollTop=0)};return null===s||void 0===s||s.addListener("messageAdded",e),function(){null===s||void 0===s||s.removeListener("messageAdded",e)}}),[s,l]),(0,a.useEffect)((function(){var n=function(){var n=(0,t.Z)((0,e.Z)().mark((function t(){var n;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===s||void 0===s?void 0:s.getMessagesCount();case 2:(n=e.sent)&&v(n===(null===r||void 0===r?void 0:r.length)),r&&f.current<(null===r||void 0===r?void 0:r.length)&&(d.current=!1,f.current=r.length);case 5:case"end":return e.stop()}}),t)})));return function(){return n.apply(this,arguments)}}();n()}),[r,s]);var B=function(){var n=(0,t.Z)((0,e.Z)().mark((function t(n){var o,i;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.target,!(o.scrollHeight+o.scrollTop-50<=o.clientHeight&&s&&r)||m||d.current){e.next=9;break}return d.current=!0,f.current=r.length,e.next=7,null===s||void 0===s?void 0:s.getMessagesCount();case 7:(i=e.sent)&&r.length<i&&c(Se({anchor:i-r.length-1,conversation:s}));case 9:case"end":return e.stop()}}),t)})));return function(e){return n.apply(this,arguments)}}();return(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},bn),{},{children:(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},xn),{},{onScroll:zt()(B,1e3),ref:u,role:"main",children:(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({"aria-label":"Chat messages",role:"log","aria-relevant":"additions"},wn),{},{tabIndex:x>=0?-1:0,onFocus:function(){r&&r.length&&x<0&&w(r[r.length-1].index)},children:[m?(0,ht.jsx)(ht.Fragment,{children:(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},_n),{},{children:(0,ht.jsx)(Te.Text,{as:"h6",marginBottom:"space40",textAlign:"center",fontSize:"fontSize20",fontWeight:"fontWeightLight",children:(new Date).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"})})}))}):null,function(){var e;if(!r)return null;var t=((null===(e=r[0])||void 0===e?void 0:e.index)||0)-1,n=[{index:t}].concat((0,M.Z)(r));return[En].concat((0,M.Z)(n)).map((function(e,n){return e.index===t?m?null:(0,a.createElement)(ue.Box,(0,S.Z)((0,S.Z)({},kn),{},{key:e.index}),(0,ht.jsx)(Vt.Spinner,{color:"colorTextWeak",decorative:!1,title:"Loading"})):(n-=1,(0,ht.jsx)(ue.Box,{"data-test":"all-message-bubbles",children:(0,ht.jsx)(yn,{message:e,isLast:n===r.length-1,isLastOfUserGroup:Cn(e,n,r),focusable:e.index===x,updateFocus:I})},e.index))}))}(),null===o||void 0===o?void 0:o.filter((function(e){return e.isTyping&&e.identity!==(null===l||void 0===l?void 0:l.user.identity)})).map((function(e){var t;return(0,a.createElement)(Te.Text,(0,S.Z)((0,S.Z)({},Sn),{},{as:"p",key:e.identity}),null===i||void 0===i||null===(t=i.find((function(t){return t.identity===e.identity})))||void 0===t?void 0:t.friendlyName," is typing...")}))]}))}))}))},In=n(4160),Bn=function(e){var t=e.dismissible,n=e.id,r=e.message,o=e.onDismiss,i=e.timeout,s=e.type,l=y();(0,a.useEffect)((function(){var e;return i&&(e=setTimeout((function(){l(ke(n)),o&&o()}),i)),function(){clearTimeout(e)}}),[l,i,n,o]);return(0,ht.jsx)(In.Alert,{role:"status","aria-live":"polite",variant:s,onDismiss:t?function(){o&&o(),l(ke(n))}:void 0,"data-test":"alert-message",children:(0,ht.jsx)(Te.Text,{"data-test":"alert-message-text",as:"span",children:r})})},On={position:"relative"},Pn={position:"absolute",width:"100%",overflow:"hidden",zIndex:"zIndex10"},Rn=function(){var e=k((function(e){return e.notifications}));return(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},On),{},{children:(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},Pn),{},{children:e.map((function(e){return(0,ht.jsx)(Bn,(0,S.Z)({},e),e.id)}))}))}))},An=function(){var e=y(),t=k((function(e){return e.chat.conversationState})),n=k((function(e){return e.chat.loading}));(0,a.useEffect)((function(){e(ke(be("ds").id))}),[e]);var r="active"===t?mt:a.Fragment;return(0,ht.jsxs)(r,{children:[(0,ht.jsx)(Lt,{}),(0,ht.jsx)(Rn,{}),(0,ht.jsx)(Tn,{}),n&&(0,ht.jsx)(Rt,{}),"active"===t?(0,ht.jsx)(Kt,{}):(0,ht.jsx)(Bt,{})]})},Mn=n(5402),Nn=n(7996),Dn=function(e,t){e.addListener("messageAdded",(function(e){t({type:H,payload:{message:e}})})),e.addListener("messageRemoved",(function(e){t({type:U,payload:{message:e}})})),e.addListener("messageUpdated",(function(e){var n=e.message;t({type:F,payload:{message:n}})}))},Ln=function(n,r){n.addListener("participantJoined",function(){var n=(0,t.Z)((0,e.Z)().mark((function t(n){var o;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getUser();case 2:o=e.sent,r({type:W,payload:{participant:n,user:o}});case 4:case"end":return e.stop()}}),t)})));return function(e){return n.apply(this,arguments)}}()),n.addListener("participantLeft",(function(e){r({type:Z,payload:{participant:e}})}));var o=function(e){r({type:z,payload:{participant:e}})};n.addListener("participantUpdated",(function(e){var t=e.participant;return o(t)})),n.addListener("typingStarted",o),n.addListener("typingEnded",o)},jn=function(e,t){e.addListener("updated",(function(e){var n,r=e.conversation,o=e.updateReasons;null!==o&&void 0!==o&&o.includes("state")&&t({type:K,payload:{conversationState:null===r||void 0===r||null===(n=r.state)||void 0===n?void 0:n.current}})}))},zn=function(n,r){var o="tokenAboutToExpire",i="connectionStateChanged";n.removeAllListeners(o),n.addListener(o,(0,t.Z)((0,e.Z)().mark((function t(){var o;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return yt().debug("conversationClientListener: token about to expire"),e.next=3,Et.getUpdatedToken();case 3:if(null===(o=e.sent)||void 0===o||!o.token||null===o||void 0===o||!o.conversationSid){e.next=8;break}return e.next=7,n.updateToken(o.token);case 7:r({type:V,payload:{token:o.token,conversationSid:o.conversationSid}});case 8:case"end":return e.stop()}}),t)})))),n.removeAllListeners(i),n.addListener(i,(function(e){"connected"===e?r(ke(ye().id)):"connecting"===e&&r(we(ye()))}))};function Wn(e){return{type:N,payload:e}}function Zn(n){var r=n.token,o=n.conversationSid;return function(){var n=(0,t.Z)((0,e.Z)().mark((function n(i){var a,s,l,c,u,d;return(0,e.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Nn.KU.create(r);case 3:return s=n.sent,n.prev=4,n.next=7,s.getConversationBySid(o);case 7:l=n.sent,n.next=15;break;case 10:return n.prev=10,n.t0=n.catch(4),i(we(be("Couldn't load conversation"))),i(xe({phase:ne.PreEngagementForm})),n.abrupt("return");case 15:return n.next=17,l.getParticipants();case 17:return c=n.sent,n.next=20,Promise.all(c.map(function(){var n=(0,t.Z)((0,e.Z)().mark((function t(n){return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.getUser());case 1:case"end":return e.stop()}}),t)})));return function(e){return n.apply(this,arguments)}}()));case 20:return u=n.sent,n.next=23,l.getMessages(20);case 23:d=n.sent.items,n.next=30;break;case 26:throw n.prev=26,n.t1=n.catch(0),yt().error("Something went wrong when initializing session",n.t1),n.t1;case 30:i({type:j,payload:{token:r,conversationSid:o,conversationsClient:s,conversation:l,users:u,participants:c,messages:d,conversationState:null===(a=l.state)||void 0===a?void 0:a.current,currentPhase:ne.MessagingCanvas}}),zn(s,i),jn(l,i),Dn(l,i),Ln(l,i);case 35:case"end":return n.stop()}}),n,null,[[0,26],[4,10]])})));return function(e){return n.apply(this,arguments)}}()}var Fn={padding:"space40",paddingTop:"space80",overflow:"auto"},Hn={marginBottom:"space70"},Un={borderWidth:"borderWidth10",borderStyle:"solid",borderColor:"colorBorderWeaker",padding:"space50",borderRadius:"borderRadius20"},$n={display:"inline-flex",width:"100%",justifyContent:"space-between",alignItems:"center",paddingRight:"space40",borderWidth:"borderWidth10",borderStyle:"solid",borderColor:"colorBorderWeaker",borderRadius:"borderRadius20"},Gn=function(){var n=k((function(e){return e.session.preEngagementData}))||{},r=n.name,o=n.email,i=n.query,s=k((function(e){return e.session.currentPhase})),l=(0,a.useState)(i),c=(0,de.Z)(l,2),u=c[0],d=c[1],f=y(),p=(0,qt.Fg)(),h=function(){var n=(0,t.Z)((0,e.Z)().mark((function t(n){var a;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),f(xe({phase:ne.Loading})),e.prev=2,e.next=5,Et.fetchAndStoreNewSession({formData:{friendlyName:r,email:o,query:i}});case 5:a=e.sent,f(Zn({token:a.token,conversationSid:a.conversationSid})),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),f(we(be(e.t0.message))),f(xe({phase:ne.PreEngagementForm}));case 13:case"end":return e.stop()}}),t,null,[[2,9]])})));return function(e){return n.apply(this,arguments)}}();return(0,ht.jsxs)(ht.Fragment,{children:[(0,ht.jsx)(Lt,{}),(0,ht.jsx)(Rn,{}),(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({as:"form","data-test":"pre-engagement-chat-form",onSubmit:h},Fn),{},{children:(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},Hn),{},{children:[(0,ht.jsx)(Te.Text,{as:"h6",marginBottom:"space40",textAlign:"center",fontSize:"fontSize20",fontWeight:"fontWeightLight",children:(new Date).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"})}),(0,ht.jsxs)(Dt.Flex,{display:"inline-flex",marginBottom:"space70",children:[(0,ht.jsx)("img",{width:"32px",src:"https://storage-platform-prod.s3.amazonaws.com/logos/6785/logo.png?cb=15813865",style:{marginRight:"16px",marginBottom:"10px",alignSelf:"end"}}),(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({},Un),{},{children:(0,ht.jsx)(Te.Text,{as:"p",children:En.body})}))]}),s===ne.Loading&&(0,ht.jsx)(Rt,{}),(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},$n),{},{children:[(0,ht.jsx)(Mn.Input,{type:"text",placeholder:"Scrivi qui",name:"query",element:"write-here","data-test":"pre-engagement-chat-form-query-textarea",value:u,onChange:function(e){d(e.target.value),f(Ce({query:e.target.value}))},onKeyDown:function(e){"Enter"!==e.key||e.shiftKey||(d(""),e.preventDefault(),h(e))},required:!0}),(0,ht.jsx)(vt.Button,{variant:"link",type:"submit",children:(0,ht.jsx)(Ft,{color:p.backgroundColors.colorBackgroundPrimary,decorative:!1,title:"Send message",size:"sizeIcon30"})})]}))]}))}))]})},qn=a.forwardRef((function(e,t){var n=e.as,r=e.display,o=e.element,i=void 0===o?"ICON":o,s=e.size,l=e.color,c=e.title,u=e.decorative,d="ChatIcon-".concat((0,Ie.Dt)());if(!u&&null==c)throw new Error("[ChatIcon]: Missing a title for non-decorative icon.");return a.createElement(Be.a,{as:n,display:r,element:i,size:s,color:l,ref:t},a.createElement("svg",{role:"img","aria-hidden":u,width:"100%",height:"100%",viewBox:"0 0 20 20",fill:"none","aria-labelledby":d},c?a.createElement("title",{id:d},c):null,a.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M3.302 2.755A3.458 3.458 0 015.466 2h2.268a3.468 3.468 0 013.322 2.476.5.5 0 00.959-.286A4.468 4.468 0 007.734 1H5.468a4.458 4.458 0 00-2.2 8.34v3.493a.5.5 0 00.853.353l2.267-2.266a.5.5 0 00-.708-.707l-1.413 1.413V9.037a.5.5 0 00-.286-.452 3.458 3.458 0 01-.68-5.83zm8.965 3.911a4.466 4.466 0 100 8.933h.36l3.253 3.254a.5.5 0 00.853-.354v-3.492A4.459 4.459 0 0019 11.134a4.469 4.469 0 00-4.466-4.468h-2.267zM9.816 8.682a3.466 3.466 0 012.451-1.016h2.267A3.467 3.467 0 0118 11.132a3.459 3.459 0 01-1.98 3.12.5.5 0 00-.287.451v2.589l-2.546-2.546a.5.5 0 00-.353-.147h-.567a3.466 3.466 0 01-2.451-5.917z"})))}));qn.displayName="ChatIcon";var Kn=n(9282),Vn={border:"none",backgroundColor:"colorBackgroundPrimary",display:"flex",height:"sizeIcon90",width:"sizeIcon90",fontSize:"fontSize50",alignItems:"center",justifyContent:"center",borderRadius:"borderRadiusCircle",color:"colorTextWeakest",cursor:"pointer",transition:"background-color 0.2s",outline:"0px",padding:"space0",_hover:{backgroundColor:"colorBackgroundPrimaryStronger"},_focusVisible:{backgroundColor:"colorBackgroundPrimaryStronger",boxShadow:"shadowFocus"}},Yn=function(){var e=y(),t=k((function(e){return e.session.expanded}));return(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({as:"button","data-test":"entry-point-button",onClick:function(){return e(_e({expanded:!t}))}},Vn),{},{children:t?(0,ht.jsx)(Kn.v,{decorative:!1,title:"Minimize chat",size:"sizeIcon80"}):(0,ht.jsx)(qn,{decorative:!1,title:"Open chat",size:"sizeIcon60"})}))},Xn={position:"fixed",bottom:"space50",right:"space60",display:"flex",flexDirection:"column",alignItems:"flex-end"},Jn={boxShadow:"shadow",display:"flex",flexDirection:"column",width:"320px",height:"590px",marginBottom:"space50",borderRadius:"borderRadius30",backgroundColor:"colorBackgroundBody"},Qn=function(e){switch(e){case ne.MessagingCanvas:return(0,ht.jsx)(An,{});case ne.PreEngagementForm:default:return(0,ht.jsx)(Gn,{})}};function er(){var e=k((function(e){var t=e.session;return{currentPhase:t.currentPhase,expanded:t.expanded}})),t=e.currentPhase,n=e.expanded;return(0,ht.jsx)(ue.Box,{children:(0,ht.jsxs)(ue.Box,(0,S.Z)((0,S.Z)({},Xn),{},{children:[n&&(0,ht.jsx)(ue.Box,(0,S.Z)((0,S.Z)({"data-test":"root-container"},Jn),{},{children:Qn(t)})),(0,ht.jsx)(Yn,{})]}))})}function tr(){var e=k((function(e){return e.config.theme})),t=y();return(0,a.useEffect)((function(){var e=Et.tryResumeExistingSession();if(e)try{t(Zn({token:e.token,conversationSid:e.conversationSid}))}catch(n){t(xe({phase:ne.PreEngagementForm}))}else t(xe({phase:ne.PreEngagementForm}))}),[t]),(0,ht.jsx)("div",{style:{minHeight:"100%",minWidth:"100%"},children:(0,ht.jsx)(ce.CustomizationProvider,{baseTheme:null!==e&&void 0!==e&&e.isLight?"default":"dark",theme:null===e||void 0===e?void 0:e.overrides,elements:{MESSAGE_INPUT:{boxShadow:"none!important"},MESSAGE_INPUT_BOX:{display:"inline-block",boxShadow:"none"},ALERT:{paddingTop:"space30",paddingBottom:"space30"},BUTTON:{"&[aria-disabled='true'][color='colorTextLink']":{color:"colorTextLinkWeak"}}},children:(0,ht.jsx)(er,{})})})}var nr={serverUrl:"https://dentalpro-api.prd.aws1.dentalpro.it/v1/chat",theme:{isLight:!0,overrides:{backgroundColors:{colorBackgroundPrimary:"#215682"}}},fileAttachment:{enabled:!0,maxFileSize:16777216,acceptedExtensions:["jpg","jpeg","png","amr","mp3","mp4","pdf","txt"]},transcript:{downloadEnabled:!1,emailEnabled:!1,emailSubject:function(e){var t="Transcript of your chat";return e.length>0&&(t=t.concat(" with ".concat(e[0])),e.slice(1).forEach((function(e){return t=t.concat(" and ".concat(e))}))),t},emailContent:function(e,t){return'<div><h1 style="text-align:center;">Chat Transcript</h1><p>Hello '.concat(e,",<br><br>Please see below your transcript, with any associated files attached, as requested.<br><br>").concat(t,"</p></div>")}}},rr=function(){var n=(0,t.Z)((0,e.Z)().mark((function t(n){var r,a;return(0,e.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=o()({},nr,n),Et.setEndpoint(r.serverUrl),le.dispatch(Wn(r)),yt().setLevel("debug",!1),a=document.getElementById("twilio-webchat-widget-root"),(0,i.render)((0,ht.jsx)(p,{store:le,children:(0,ht.jsx)(tr,{})}),a),window.Cypress&&(window.store=le);case 7:case"end":return e.stop()}}),t)})));return function(e){return n.apply(this,arguments)}}();Object.assign(window,{Twilio:{initWebchat:rr}})}()}();