PageSourceSearch

https://www.smartchats.ai/_next/static/chunks/598.ce5886cf40f1c07a.js

js smartchats.ai collected 2026-10-05 15:06:28 UTC 376,448 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[598],{21207:function(e,t,r){"use strict";var n=r(5201),o=r(27573);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear")},35582:function(e,t,r){"use strict";var n=r(5201),o=r(27573);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},37404:function(e,t,r){"use strict";var n=r(5201),o=r(27573);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},55614:function(e,t,r){"use strict";var n=r(5201),o=r(27573);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search")},70933:function(e,t,r){"use strict";var n=r(5201),o=r(27573);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop")},26575:function(e,t,r){"use strict";var n=r(5201),o=r(27573);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune")},79814:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(7653),o=r(10607),i=r(88725),a=r(26487),s=r(33524),l=r(11854),c=r(27573),u=r(43882),d=r(75953),p=r(81420);let h=(0,r(14573).Z)("MuiBox",["root"]),f=(0,d.Z)();var m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{themeId:t,defaultTheme:r,defaultClassName:u="MuiBox-root",generateClassName:d}=e,p=(0,i.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(a.Z);return n.forwardRef(function(e,n){let i=(0,l.Z)(r),{className:a,component:h="div",...f}=(0,s.Z)(e);return(0,c.jsx)(p,{as:h,ref:n,className:(0,o.Z)(a,d?d(u):u),theme:t&&i[t]||i,...f})})}({themeId:p.Z,defaultTheme:f,defaultClassName:h.root,generateClassName:u.Z.generate})},94998:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(7653),o=r(10607),i=r(91891),a=r(3838),s=r(22243),l=r(36760),c=r(71533),u=r(71853),d=r(36757),p=r(34599),h=r(19488),f=r(10052),m=r(46401),g=r(92195),v=r(14573),y=r(37501);function b(e){return(0,y.ZP)("MuiButton",e)}let x=(0,v.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),w=n.createContext({}),k=n.createContext(void 0);var S=r(27573);let C=e=>{let{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,loading:s,loadingPosition:l,classes:c}=e,u={root:["root",s&&"loading",i,"".concat(i).concat((0,m.Z)(t)),"size".concat((0,m.Z)(o)
1),"".concat(i,"Size").concat((0,m.Z)(o)),"color".concat((0,m.Z)(t)),r&&"disableElevation",n&&"fullWidth",s&&"loadingPosition".concat((0,m.Z)(l))],startIcon:["icon","startIcon","iconSize".concat((0,m.Z)(o))],endIcon:["icon","endIcon","iconSize".concat((0,m.Z)(o))],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=(0,a.Z)(u,b,c);return{...c,...d}},R=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],T=(0,u.ZP)(h.Z,{shouldForwardProp:e=>(0,c.Z)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["".concat(r.variant).concat((0,m.Z)(r.color))],t["size".concat((0,m.Z)(r.size))],t["".concat(r.variant,"Size").concat((0,m.Z)(r.size))],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})((0,d.Z)(e=>{let{theme:t}=e,r="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],n="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},["&.".concat(x.disabled)]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},["&.".concat(x.focusVisible)]:{boxShadow:(t.vars||t).shadows[6]},["&.".concat(x.disabled)]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",["&.".concat(x.disabled)]:{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter((0,g.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / 0.5)"):(0,s.Fq)(t.palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette[r].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette[r].main,t.palette.action.hoverOpacity)}}}}}),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(x.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(x.disabled)]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),["&.".concat(x.loading)]:{color:"transparent"}}}]}})),E=(0,u.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t["iconSize".concat((0,m.Z)(r.size))]]}})(e=>{let{theme:t}=e;return{display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}
1},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...R]}}),A=(0,u.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t["iconSize".concat((0,m.Z)(r.size))]]}})(e=>{let{theme:t}=e;return{display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...R]}}),P=(0,u.ZP)("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(e=>{let{theme:t}=e;return{display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]}}),Z=(0,u.ZP)("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"});var _=n.forwardRef(function(e,t){let r=n.useContext(w),a=n.useContext(k),s=(0,i.Z)(r,e),c=(0,p.i)({props:s,name:"MuiButton"}),{children:u,color:d="primary",component:h="button",className:m,disabled:g=!1,disableElevation:v=!1,disableFocusRipple:y=!1,endIcon:b,focusVisibleClassName:x,fullWidth:R=!1,id:_,loading:L=null,loadingIndicator:M,loadingPosition:I="center",size:F="medium",startIcon:z,type:O,variant:N="text",...D}=c,B=(0,l.Z)(_),j=null!=M?M:(0,S.jsx)(f.Z,{"aria-labelledby":B,color:"inherit",size:16}),G={...c,color:d,component:h,disabled:g,disableElevation:v,disableFocusRipple:y,fullWidth:R,loading:L,loadingIndicator:j,loadingPosition:I,size:F,type:O,variant:N},W=C(G),U=(z||L&&"start"===I)&&(0,S.jsx)(E,{className:W.startIcon,ownerState:G,children:z||(0,S.jsx)(Z,{className:W.loadingIconPlaceholder,ownerState:G})}),H=(b||L&&"end"===I)&&(0,S.jsx)(A,{className:W.endIcon,ownerState:G,children:b||(0,S.jsx)(Z,{className:W.loadingIconPlaceholder,ownerState:G})}),q="boolean"==typeof L?(0,S.jsx)("span",{className:W.loadingWrapper,style:{display:"contents"},children:L&&(0,S.jsx)(P,{className:W.loadingIndicator,ownerState:G,children:j})}):null;return(0,S.jsxs)(T,{ownerState:G,className:(0,o.Z)(r.className,W.root,m,a||""),component:h,disabled:g||L,focusRipple:!y,focusVisibleClassName:(0,o.Z)(W.focusVisible,x),ref:t,type:O,id:L?B:_,...D,classes:W,children:[U,"end"!==I&&q,u,"end"===I&&q,H]})})},19488:function(e,t,r){"use strict";r.d(t,{Z:function(){return z}});var n=r(7653),o=r(10607),i=r(3838),a=r(66509),s=r(71853),l=r(34599),c=r(11406),u=r(34805),d=r(76563);class p{static create(){return new p}static use(){let e=(0,d.Z)(p.create).current,[t,r]=n.useState(!1);return e.shouldMount=t,e.setShouldMount=r,n.useEffect(e.mountEffect,[t]),e}mount(){return this.mounted||(this.mounted=function(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.start(...t)})}stop(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.stop(...t)})}pulsate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];this.mount().then(()=>{var e;return null===(e=this.ref.current)||void 0===e?void 0:e.pulsate(...t)})}constructor(){this.mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())},this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}}var h=r(56683),f=r(42090),m=r(27294),g=r(19017),v=r(27573),y=r(14573);let b=(0,y.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function x(){let e=(0,h._)(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"]);return x=function(){return e},e}function w(){let e=(0,h._)(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"]);return w=function(){return e},e}function k(){let e=(0,h._)(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"]);return k=function(){return e},e}function S(){let e=(0,h._)(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]);return S=function(){return e},e}let C=(0,g.F4)(x()),R=(0,g.F4)(w()),T=(0,g.F4)(k()),E=(0,s.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),A=(0,s.ZP)(function(e){let{className:t,classes:r,pulsate:i=!1,rippleX:a,rippleY:s,rippleSize:l,in:c,onExited:u,timeout:d}=e,[p,h]=n.useState(!1),f=(0,o.Z)(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),m=(0,o.Z)(r.child,p&&r.childLeaving,i&&r.childPulsate);return c||p||h(!0),n.useEffect(()=>{if(!c&&null!=u){let e=setTimeout(u,d);return()=>{clearTimeout(e)}}},[u,c,d]),(0,v.jsx)("span",{className:f,style:{width:l,height:l,top:-(l/2)+s,left:-(l/2)+a},children:(0,v.jsx)("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})(S(),b.rippleVisible,C,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},b.ripplePulsate,e=>{let{theme:t}=e;return t.transitions.duration.shorter},b.child,b.childLeaving,R,550,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut},b.childPulsate,T,e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),P=n.forwardRef(function(e,t){let{center:r=!1,classes:i={},className:a,...s}=(0,l.i)({props:e,name:"MuiTouchRipple"}),[c,u]=n.useState([]),d=n.useRef(0),p=n.useRef(null);n.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);let h=n.useRef(!1),g=(0,m.Z)(),y=n.useRef(null),x=n.useRef(null),w=n.useCallback(e=>{let{pulsate:t,rippleX:r,rippleY:n,rippleSize:a,cb:s}=e;u(e=>[...e,(0,v.jsx)(A,{classes:{ripple:(0,o.Z)(i.ripple,b.ripple),rippleVisible:(0,o.Z)(i.rippleVisible,b.rippleVisible),ripplePulsate:(0,o.Z)(i.ripplePulsate,b.ripplePulsate),
1child:(0,o.Z)(i.child,b.child),childLeaving:(0,o.Z)(i.childLeaving,b.childLeaving),childPulsate:(0,o.Z)(i.childPulsate,b.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:a},d.current)]),d.current+=1,p.current=s},[i]),k=n.useCallback(function(){let e,t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{pulsate:s=!1,center:l=r||i.pulsate,fakeElement:c=!1}=i;if((null==o?void 0:o.type)==="mousedown"&&h.current){h.current=!1;return}(null==o?void 0:o.type)==="touchstart"&&(h.current=!0);let u=c?null:x.current,d=u?u.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!l&&void 0!==o&&(0!==o.clientX||0!==o.clientY)&&(o.clientX||o.touches)){let{clientX:r,clientY:n}=o.touches&&o.touches.length>0?o.touches[0]:o;e=Math.round(r-d.left),t=Math.round(n-d.top)}else e=Math.round(d.width/2),t=Math.round(d.height/2);l?(n=Math.sqrt((2*d.width**2+d.height**2)/3))%2==0&&(n+=1):n=Math.sqrt((2*Math.max(Math.abs((u?u.clientWidth:0)-e),e)+2)**2+(2*Math.max(Math.abs((u?u.clientHeight:0)-t),t)+2)**2),(null==o?void 0:o.touches)?null===y.current&&(y.current=()=>{w({pulsate:s,rippleX:e,rippleY:t,rippleSize:n,cb:a})},g.start(80,()=>{y.current&&(y.current(),y.current=null)})):w({pulsate:s,rippleX:e,rippleY:t,rippleSize:n,cb:a})},[r,w,g]),S=n.useCallback(()=>{k({},{pulsate:!0})},[k]),C=n.useCallback((e,t)=>{if(g.clear(),(null==e?void 0:e.type)==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{C(e,t)});return}y.current=null,u(e=>e.length>0?e.slice(1):e),p.current=t},[g]);return n.useImperativeHandle(t,()=>({pulsate:S,start:k,stop:C}),[S,k,C]),(0,v.jsx)(E,{className:(0,o.Z)(b.root,i.root,a),ref:x,...s,children:(0,v.jsx)(f.Z,{component:null,exit:!0,children:c})})});var Z=r(37501);function _(e){return(0,Z.ZP)("MuiButtonBase",e)}let L=(0,y.Z)("MuiButtonBase",["root","disabled","focusVisible"]),M=e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,a=(0,i.Z)({root:["root",t&&"disabled",r&&"focusVisible"]},_,o);return r&&n&&(a.root+=" ".concat(n)),a},I=(0,s.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(L.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});function F(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,u.Z)(o=>(r&&r(o),n||e[t](o),!0))}var z=n.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:d,className:h,component:f="button",disabled:m=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:b=!1,focusVisibleClassName:x,LinkComponent:w="a",onBlur:k,onClick:S,onContextMenu:C,onDragLeave:R,onFocus:T,onFocusVisible:E,onKeyDown:A,onKeyUp:Z,onMouseDown:_,onMouseLeave:L,onMouseUp:z,onTouchEnd:O,onTouchMove:N,onTouchStart:D,tabIndex:B=0,TouchRippleProps:j,touchRippleRef:G,type:W,...U}=r,H=n.useRef(null),q=p.use(),V=(0,c.Z)(q.ref,G),[$,K]=n.useState(!1);m&&$&&K(!1),n.useImperativeHandle(i,()=>({focusVisible:()=>{K(!0),H.current.focus()}}),[]);let Y=q.shouldMount&&!g&&!m;n.useEffect(()=>{$&&b&&!g&&q.pulsate()},[g,b,$,q]);let X=F(q,"start",_,y),Q=F(q,"stop",C,y),J=F(q,"stop",R,y),ee=F(q,"stop",z,y),et=F(q,"stop",e=>{$&&e.preventDefault(),L&&L(e)},y),er=F(q,"start",D,y),en=F(q,"stop",O,y),eo=F(q,"stop",N,y),ei=F(q,"stop",e=>{(0,a.Z)(e.target)||K(!1),k&&k(e)},!1),ea=(0,u.Z)(e=>{H.current||(H.current=e.currentTarget),(0,a.Z)(e.target)&&(K(!0),E&&E(e)),T&&T(e)}),es=()=>{let e=H.current;return f&&"button"!==f&&!("A"===e.tagName&&e.href)},el=(0,u.Z)(e=>{b&&!e.repeat&&$&&" "===e.key&&q.stop(e,()=>{q.start(e)}),e.target===e.currentTarget&&es()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&es()&&"Enter"===e.key&&!m&&(e.preventDefault(),S&&S(e))}),ec=(0,u.Z)(e=>{b&&" "===e.key&&$&&!e.defaultPrevented&&q.stop(e,()=>{q.pulsate(e)}),Z&&Z(e),S&&e.target===e.currentTarget&&es()&&" "===e.key&&!e.defaultPrevented&&S(e)}),eu=f;"button"===eu&&(U.href||U.to)&&(eu=w);let ed={};"button"===eu?(ed.type=void 0===W?"button":W,ed.disabled=m):(U.href||U.to||(ed.role="button"),m&&(ed["aria-disabled"]=m));let ep=(0,c.Z)(t,H),eh={...r,centerRipple:s,component:f,disabled:m,disableRipple:g,disableTouchRipple:y,focusRipple:b,tabIndex:B,focusVisible:$},ef=M(eh);return(0,v.jsxs)(I,{as:eu,className:(0,o.Z)(ef.root,h),ownerState:eh,onBlur:ei,onClick:S,onContextMenu:Q,onFocus:ea,onKeyDown:el,onKeyUp:ec,onMouseDown:X,onMouseLeave:et,onMouseUp:ee,onDragLeave:J,onTouchEnd:en,onTouchMove:eo,onTouchStart:er,ref:ep,tabIndex:m?-1:B,type:W,...ed,...U,children:[d,Y?(0,v.jsx)(P,{ref:V,center:s,...j}):null]})})},74490:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});
1var n=r(7653),o=r(10607),i=r(3838),a=r(22243),s=r(5201),l=r(27573),c=(0,s.Z)((0,l.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),u=r(11406),d=r(46401),p=r(19488),h=r(71853),f=r(36757),m=r(92195),g=r(34599),v=r(14573),y=r(37501);function b(e){return(0,y.ZP)("MuiChip",e)}let x=(0,v.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),w=e=>{let{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:s,clickable:l,variant:c}=e,u={root:["root",c,r&&"disabled","size".concat((0,d.Z)(n)),"color".concat((0,d.Z)(o)),l&&"clickable",l&&"clickableColor".concat((0,d.Z)(o)),s&&"deletable",s&&"deletableColor".concat((0,d.Z)(o)),"".concat(c).concat((0,d.Z)(o))],label:["label","label".concat((0,d.Z)(n))],avatar:["avatar","avatar".concat((0,d.Z)(n)),"avatarColor".concat((0,d.Z)(o))],icon:["icon","icon".concat((0,d.Z)(n)),"iconColor".concat((0,d.Z)(a))],deleteIcon:["deleteIcon","deleteIcon".concat((0,d.Z)(n)),"deleteIconColor".concat((0,d.Z)(o)),"deleteIcon".concat((0,d.Z)(c),"Color").concat((0,d.Z)(o))]};return(0,i.Z)(u,b,t)},k=(0,h.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{color:n,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=r;return[{["& .".concat(x.avatar)]:t.avatar},{["& .".concat(x.avatar)]:t["avatar".concat((0,d.Z)(s))]},{["& .".concat(x.avatar)]:t["avatarColor".concat((0,d.Z)(n))]},{["& .".concat(x.icon)]:t.icon},{["& .".concat(x.icon)]:t["icon".concat((0,d.Z)(s))]},{["& .".concat(x.icon)]:t["iconColor".concat((0,d.Z)(o))]},{["& .".concat(x.deleteIcon)]:t.deleteIcon},{["& .".concat(x.deleteIcon)]:t["deleteIcon".concat((0,d.Z)(s))]},{["& .".concat(x.deleteIcon)]:t["deleteIconColor".concat((0,d.Z)(n))]},{["& .".concat(x.deleteIcon)]:t["deleteIcon".concat((0,d.Z)(l),"Color").concat((0,d.Z)(n))]},t.root,t["size".concat((0,d.Z)(s))],t["color".concat((0,d.Z)(n))],i&&t.clickable,i&&"default"!==n&&t["clickableColor".concat((0,d.Z)(n),")")],a&&t.deletable,a&&"default"!==n&&t["deletableColor".concat((0,d.Z)(n))],t[l],t["".concat(l).concat((0,d.Z)(n))]]}})((0,f.Z)(e=>{let{theme:t}=e,r="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(x.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(x.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:r,fontSize:t.typography.pxToRem(12)},["& .".concat(x.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(x.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(x.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(x.icon)]:{marginLeft:5,marginRight:-6},["& .".concat(x.deleteIcon)]:{WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,a.Fq)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,a.Fq)(t.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,["& .".concat(x.icon)]:{fontSize:18,marginLeft:4,marginRight:-4},["& .".concat(x.deleteIcon)]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter((0,m.Z)(["contrastText"])).map(e=>{let[r]=e;return{props:{color:r},style:{backgroundColor:(t.vars||t).palette[r].main,color:(t.vars||t).palette[r].contrastText,["& .".concat(x.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[r].contrastTextChannel," / 0.7)"):(0,a.Fq)(t.palette[r].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].contrastText}}}}}),{props:e=>e.iconColor===e.color,style:{["& .".concat(x.icon)]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:r}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{["& .".concat(x.icon)]:{color:"inherit"}}},{props:{onDelete:!0},style:{["&.".concat(x.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,a.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}},...Object.entries(t.palette).filter((0,m.Z)(["dark"])).map(e=>{let[r]=e;return{props:{color:r,onDelete:!0},style:{["&.".concat(x.focusVisible)]:{background:(t.vars||t).palette[r].dark}}}}),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",curs
1or:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,a.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(x.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,a.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter((0,m.Z)(["dark"])).map(e=>{let[r]=e;return{props:{color:r,clickable:!0},style:{["&:hover, &.".concat(x.focusVisible)]:{backgroundColor:(t.vars||t).palette[r].dark}}}}),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(x.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(x.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(x.avatar)]:{marginLeft:4},["& .".concat(x.avatarSmall)]:{marginLeft:2},["& .".concat(x.icon)]:{marginLeft:4},["& .".concat(x.iconSmall)]:{marginLeft:2},["& .".concat(x.deleteIcon)]:{marginRight:5},["& .".concat(x.deleteIconSmall)]:{marginRight:3}}},...Object.entries(t.palette).filter((0,m.Z)()).map(e=>{let[r]=e;return{props:{variant:"outlined",color:r},style:{color:(t.vars||t).palette[r].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / 0.7)"):(0,a.Fq)(t.palette[r].main,.7)),["&.".concat(x.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,a.Fq)(t.palette[r].main,t.palette.action.hoverOpacity)},["&.".concat(x.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,a.Fq)(t.palette[r].main,t.palette.action.focusOpacity)},["& .".concat(x.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[r].mainChannel," / 0.7)"):(0,a.Fq)(t.palette[r].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r].main}}}}})]}})),S=(0,h.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:r}=e,{size:n}=r;return[t.label,t["label".concat((0,d.Z)(n))]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function C(e){return"Backspace"===e.key||"Delete"===e.key}var R=n.forwardRef(function(e,t){let r=(0,g.i)({props:e,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:d="default",component:h,deleteIcon:f,disabled:m=!1,icon:v,label:y,onClick:b,onDelete:x,onKeyDown:R,onKeyUp:T,size:E="medium",variant:A="filled",tabIndex:P,skipFocusWhenDisabled:Z=!1,..._}=r,L=n.useRef(null),M=(0,u.Z)(L,t),I=e=>{e.stopPropagation(),x&&x(e)},F=!1!==s&&!!b||s,z=F||x?p.Z:h||"div",O={...r,component:z,disabled:m,size:E,color:d,iconColor:n.isValidElement(v)&&v.props.color||d,onDelete:!!x,clickable:F,variant:A},N=w(O),D=z===p.Z?{component:h||"div",focusVisibleClassName:N.focusVisible,...x&&{disableRipple:!0}}:{},B=null;x&&(B=f&&n.isValidElement(f)?n.cloneElement(f,{className:(0,o.Z)(f.props.className,N.deleteIcon),onClick:I}):(0,l.jsx)(c,{className:(0,o.Z)(N.deleteIcon),onClick:I}));let j=null;i&&n.isValidElement(i)&&(j=n.cloneElement(i,{className:(0,o.Z)(N.avatar,i.props.className)}));let G=null;return v&&n.isValidElement(v)&&(G=n.cloneElement(v,{className:(0,o.Z)(N.icon,v.props.className)})),(0,l.jsxs)(k,{as:z,className:(0,o.Z)(N.root,a),disabled:!!F&&!!m||void 0,onClick:b,onKeyDown:e=>{e.currentTarget===e.target&&C(e)&&e.preventDefault(),R&&R(e)},onKeyUp:e=>{e.currentTarget===e.target&&x&&C(e)&&x(e),T&&T(e)},ref:M,tabIndex:Z&&m?-1:P,ownerState:O,...D,..._,children:[j||G,(0,l.jsx)(S,{className:(0,o.Z)(N.label),ownerState:O,children:y}),B]})})},10052:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});
1var n=r(56683),o=r(7653),i=r(10607),a=r(3838),s=r(19017),l=r(71853),c=r(36757),u=r(34599),d=r(46401),p=r(92195),h=r(14573),f=r(37501);function m(e){return(0,f.ZP)("MuiCircularProgress",e)}(0,h.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var g=r(27573);function v(){let e=(0,n._)(["\n  0% {\n    transform: rotate(0deg);\n  }\n\n  100% {\n    transform: rotate(360deg);\n  }\n"]);return v=function(){return e},e}function y(){let e=(0,n._)(["\n  0% {\n    stroke-dasharray: 1px, 200px;\n    stroke-dashoffset: 0;\n  }\n\n  50% {\n    stroke-dasharray: 100px, 200px;\n    stroke-dashoffset: -15px;\n  }\n\n  100% {\n    stroke-dasharray: 1px, 200px;\n    stroke-dashoffset: -126px;\n  }\n"]);return y=function(){return e},e}function b(){let e=(0,n._)(["\n        animation: "," 1.4s linear infinite;\n      "]);return b=function(){return e},e}function x(){let e=(0,n._)(["\n        animation: "," 1.4s ease-in-out infinite;\n      "]);return x=function(){return e},e}let w=(0,s.F4)(v()),k=(0,s.F4)(y()),S="string"!=typeof w?(0,s.iv)(b(),w):null,C="string"!=typeof k?(0,s.iv)(x(),k):null,R=e=>{let{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,"color".concat((0,d.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,d.Z)(r)),o&&"circleDisableShrink"]};return(0,a.Z)(i,m,t)},T=(0,l.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,d.Z)(r.color))]]}})((0,c.Z)(e=>{let{theme:t}=e;return{display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:S||{animation:"".concat(w," 1.4s linear infinite")}},...Object.entries(t.palette).filter((0,p.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{color:(t.vars||t).palette[r].main}}})]}})),E=(0,l.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),A=(0,l.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t["circle".concat((0,d.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})((0,c.Z)(e=>{let{theme:t}=e;return{stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink},style:C||{animation:"".concat(k," 1.4s ease-in-out infinite")}}]}}));var P=o.forwardRef(function(e,t){let r=(0,u.i)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:c=3.6,value:d=0,variant:p="indeterminate",...h}=r,f={...r,color:o,disableShrink:a,size:s,thickness:c,value:d,variant:p},m=R(f),v={},y={},b={};if("determinate"===p){let e=2*Math.PI*((44-c)/2);v.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),v.strokeDashoffset="".concat(((100-d)/100*e).toFixed(3),"px"),y.transform="rotate(-90deg)"}return(0,g.jsx)(T,{className:(0,i.Z)(m.root,n),style:{width:s,height:s,...y,...l},ownerState:f,ref:t,role:"progressbar",...b,...h,children:(0,g.jsx)(E,{className:m.svg,ownerState:f,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,g.jsx)(A,{className:m.circle,style:v,ownerState:f,cx:44,cy:44,r:(44-c)/2,fill:"none",strokeWidth:c})})})})},34599:function(e,t,r){"use strict";r.d(t,{i:function(){return a}});var n=r(7653),o=r(91891);r(27573);let i=n.createContext(void 0);function a(e){return function(e){let{props:t,name:r}=e;return function(e){let{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;let i=t.components[r];return i.defaultProps?(0,o.Z)(i.defaultProps,n):i.styleOverrides||i.variants?n:(0,o.Z)(i,n)}({props:t,name:r,theme:{components:n.useContext(i)}})}(e)}},25677:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});
1var n=r(7653),o=r(10607),i=r(3838),a=r(22243),s=r(71853),l=r(36757),c=r(34599),u=r(14573),d=r(37501);function p(e){return(0,d.ZP)("MuiDivider",e)}(0,u.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var h=r(27573);let f=e=>{let{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:s,textAlign:l,variant:c}=e;return(0,i.Z)({root:["root",t&&"absolute",c,a&&"light","vertical"===s&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===s&&"withChildrenVertical","right"===l&&"vertical"!==s&&"textAlignRight","left"===l&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]},p,n)},m=(0,s.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((0,l.Z)(e=>{let{theme:t}=e;return{margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,a.Fq)(t.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:e=>{let{ownerState:t}=e;return!!t.children},style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:e=>{let{ownerState:t}=e;return t.children&&"vertical"!==t.orientation},style:{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"vertical"===t.orientation&&t.children},style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}}},{props:e=>{let{ownerState:t}=e;return"right"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:e=>{let{ownerState:t}=e;return"left"===t.textAlign&&"vertical"!==t.orientation},style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}})),g=(0,s.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((0,l.Z)(e=>{let{theme:t}=e;return{display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)"),whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")}}]}})),v=n.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiDivider"}),{absolute:n=!1,children:i,className:a,orientation:s="horizontal",component:l=i||"vertical"===s?"div":"hr",flexItem:u=!1,light:d=!1,role:p="hr"!==l?"separator":void 0,textAlign:v="center",variant:y="fullWidth",...b}=r,x={...r,absolute:n,component:l,flexItem:u,light:d,orientation:s,role:p,textAlign:v,variant:y},w=f(x);return(0,h.jsx)(m,{as:l,className:(0,o.Z)(w.root,a),role:p,ref:t,ownerState:x,"aria-orientation":"separator"===p&&("hr"!==l||"vertical"===s)?s:void 0,...b,children:i?(0,h.jsx)(g,{className:w.wrapper,ownerState:x,children:i}):null})});v&&(v.muiSkipListHighlight=!0);var y=v},79158:function(e,t,r){"use strict";var n=r(7653),o=r(52166),i=r(97023),a=r(97502),s=r(42524),l=r(11406),c=r(27573);let u={entering:{opacity:1},entered:{opacity:1}},d=n.forwardRef(function(e,t){let r=(0,a.Z)(),d={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:p,appear:h=!0,children:f,easing:m,in:g,onEnter:v,onEntered:y,onEntering:b,onExit:x,onExited:w,onExiting:k,style:S,timeout:C=d,TransitionComponent:R=o.ZP,...T}=e,E=n.useRef(null),A=(0,l.Z)(E,(0,i.Z)(f),t),P=e=>t=>{if(e){let r=E.current;void 0===t?e(r):e(r,t)}},Z=P(b),_=P((e,t)=>{(0,s.n)(e);let n=(0,s.C)({style:S,timeout:C,easing:m},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),v&&v(e,t)}),L=P(y),M=P(k),I=P(e=>{let t=(0,s.C)({style:S,timeout:C,easing:m},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),x&&x(e)}),F=P(w);return(0,c.jsx)(R,{appear:h,in:g,nodeRef:E,onEnter:_,onEntered:L,onEntering:Z,onExit:I,onExited:F,onExiting:M,addEndListener:e=>{p&&p(E.current,e)},timeout:C,...T,children:(e,t)=>{let{ownerState:r,...o}=t;return n.cloneElement(f,{style:{opacity:0,visibility:"exited"!==e||g?void 0:"hidden",...u[e],...S,...f.props.style},ref:A,...o})}})});t.Z=d},74450:function(e,t,r){"use strict";let n=r(7653).createContext(void 0);t.Z=n},27974:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(7653),o=r(74450);function i(){return n.useContext(o.Z)}},78212:function(e,t,r){"use strict";var n=r(7653),o=r(27294),i=r(97023),a=r(52166),s=r(97502),l=r(42524),c=r(11406),u=r(27573);function d(e){return"scale(".concat(e,", ").concat(e**2,")")}let p={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},h="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),f=n.forwardRef(function(e,t){let{addEndListener:r,appear:f=!0,children:m,easing:g,in:v,onEnter:y,onEntered:b,onEntering:x,onExit:w,onExited:k,onExiting:S,style:C,timeout:R="auto",TransitionComponent:T=a.ZP,...E}=e,A=(0,o.Z)(),P=n.useRef(),Z=(0,s.Z)(),_=n.useRef(null),L=(0,c.Z)(_,(0,i.Z)(m),t),M=e=>t=>{if(e){let r=_.current;void 0===t?e(r):e(r,t)}},I=M(x),F=M((e,t)=>{let r;(0,l.n)(e);let{duration:n,delay:o,easing:i}=(0,l.C)({style:C,timeout:R,easing:g},{mode:"enter"});"auto"===R?(r=Z.transitions.getAutoHeightDuration(e.clientHeight),P.current=r):r=n,e.style.transition=[Z.transitions.create("opacity",{duration:r,delay:o}),Z.transitions.create("transform",{duration:h?r:.666*r,delay:o,easing:i})].join(","),y&&y(e,t)}),z=M(b),O=M(S),N=M(e=>{let t;let{duration:r,delay:n,easing:o}=(0,l.C)({style:C,timeout:R,easing:g},{mode:"exit"});"auto"===R?(t=Z.transitions.getAutoHeightDuration(e.clientHeight),P.current=t):t=r,e.style.transition=[Z.transitions.create("opacity",{duration:t,delay:n}),Z.transitions.create("transform",{duration:h?t:.666*t,delay:h?n:n||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=d(.75),w&&w(e)}),D=M(k);return(0,u.jsx)(T,{appear:f,in:v,nodeRef:_,onEnter:F,onEntered:z,onEntering:I,onExit:N,onExited:D,onExiting:O,addEndListener:e=>{"auto"===R&&A.start(P.current||0,e),r&&r(_.current,e)},timeout:"auto"===R?null:R,...E,children:(e,t)=>{let{ownerState:r,...o}=t;return n.cloneElement(m,{style:{opacity:0,transform:d(.75),visibility:"exited"!==e||v?void 0:"hidden",...p[e],...C,...m.props.style},ref:L,...o})}})});f&&(f.muiSupportAuto=!0),t.Z=f},86268:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});
1var n=r(7653),o=r(10607),i=r(3838),a=r(36760),s=r(22243),l=r(71853),c=r(36757),u=r(92195),d=r(34599),p=r(19488),h=r(10052),f=r(46401),m=r(14573),g=r(37501);function v(e){return(0,g.ZP)("MuiIconButton",e)}let y=(0,m.Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var b=r(27573);let x=e=>{let{classes:t,disabled:r,color:n,edge:o,size:a,loading:s}=e,l={root:["root",s&&"loading",r&&"disabled","default"!==n&&"color".concat((0,f.Z)(n)),o&&"edge".concat((0,f.Z)(o)),"size".concat((0,f.Z)(a))],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,i.Z)(l,v,t)},w=(0,l.ZP)(p.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.loading&&t.loading,"default"!==r.color&&t["color".concat((0,f.Z)(r.color))],r.edge&&t["edge".concat((0,f.Z)(r.edge))],t["size".concat((0,f.Z)(r.size))]]}})((0,c.Z)(e=>{let{theme:t}=e;return{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]}}),(0,c.Z)(e=>{let{theme:t}=e;return{variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter((0,u.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{color:(t.vars||t).palette[r].main}}}),...Object.entries(t.palette).filter((0,u.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{"--IconButton-hoverBg":t.vars?"rgba(".concat((t.vars||t).palette[r].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)((t.vars||t).palette[r].main,t.palette.action.hoverOpacity)}}}),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],["&.".concat(y.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},["&.".concat(y.loading)]:{color:"transparent"}}})),k=(0,l.ZP)("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(e=>{let{theme:t}=e;return{display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]}});var S=n.forwardRef(function(e,t){let r=(0,d.i)({props:e,name:"MuiIconButton"}),{edge:n=!1,children:i,className:s,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:p="medium",id:f,loading:m=null,loadingIndicator:g,...v}=r,y=(0,a.Z)(f),S=null!=g?g:(0,b.jsx)(h.Z,{"aria-labelledby":y,color:"inherit",size:16}),C={...r,edge:n,color:l,disabled:c,disableFocusRipple:u,loading:m,loadingIndicator:S,size:p},R=x(C);return(0,b.jsxs)(w,{id:m?y:f,className:(0,o.Z)(R.root,s),centerRipple:!0,focusRipple:!u,disabled:c||m,ref:t,...v,ownerState:C,children:["boolean"==typeof m&&(0,b.jsx)("span",{className:R.loadingWrapper,style:{display:"contents"},children:(0,b.jsx)(k,{className:R.loadingIndicator,ownerState:C,children:m&&S})}),i]})})},93622:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(7653),o=r(10607),i=r(3838),a=r(22243),s=r(71853),l=r(97502),c=r(36757),u=r(34599),d=r(65856),p=r(14573),h=r(37501);function f(e){return(0,h.ZP)("MuiPaper",e)}(0,p.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var m=r(27573);let g=e=>{let{square:t,elevation:r,variant:n,classes:o}=e;return(0,i.Z)({root:["root",n,!t&&"rounded","elevation"===n&&"elevation".concat(r)]},f,o)},v=(0,s.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;
1return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t["elevation".concat(r.elevation)]]}})((0,c.Z)(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:e=>{let{ownerState:t}=e;return!t.square},style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:"1px solid ".concat((t.vars||t).palette.divider)}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}}));var y=n.forwardRef(function(e,t){var r;let n=(0,u.i)({props:e,name:"MuiPaper"}),i=(0,l.Z)(),{className:s,component:c="div",elevation:p=1,square:h=!1,variant:f="elevation",...y}=n,b={...n,component:c,elevation:p,square:h,variant:f},x=g(b);return(0,m.jsx)(v,{as:c,ownerState:b,className:(0,o.Z)(x.root,s),ref:t,...y,style:{..."elevation"===f&&{"--Paper-shadow":(i.vars||i).shadows[p],...i.vars&&{"--Paper-overlay":null===(r=i.vars.overlays)||void 0===r?void 0:r[p]},...!i.vars&&"dark"===i.palette.mode&&{"--Paper-overlay":"linear-gradient(".concat((0,a.Fq)("#fff",(0,d.Z)(p)),", ").concat((0,a.Fq)("#fff",(0,d.Z)(p)),")")}},...y.style}})})},58561:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(7653),o=r(3458),i=r(67993),a=r(97023),s=r(10779);function l(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var c=n.forwardRef(function(e,t){let{children:r,container:c,disablePortal:u=!1}=e,[d,p]=n.useState(null),h=(0,i.Z)(n.isValidElement(r)?(0,a.Z)(r):null,t);return((0,s.Z)(()=>{!u&&p(("function"==typeof c?c():c)||document.body)},[c,u]),(0,s.Z)(()=>{if(d&&!u)return l(t,d),()=>{l(t,null)}},[t,d,u]),u)?n.isValidElement(r)?n.cloneElement(r,{ref:h}):r:d?o.createPortal(r,d):d})},90449:function(e,t,r){"use strict";let n;r.d(t,{ZP:function(){return ee}});var o=r(7653),i=r(10607),a=r(3838),s=r(22243),l=r(98163),c=r(60905),u=r(1987),d=r(83532),p=r(50054),h=r(67993),f=r(66509),m=r(10779),g=r(74594),v={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},y=r(42141),b=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every((e,n)=>r(e,t[n]))};function x(e,t,r,n,o){return 1===r?Math.min(e+t,o):Math.max(e-t,n)}function w(e,t){return e-t}function k(e,t){var r;let{index:n}=null!==(r=e.reduce((e,r,n)=>{let o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e},null))&&void 0!==r?r:{};return n}function S(e,t){if(void 0!==t.current&&e.changedTouches){for(let r=0;r<e.changedTouches.length;r+=1){let n=e.changedTouches[r];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function C(e){let{values:t,newValue:r,index:n}=e,o=t.slice();return o[n]=r,o.sort(w)}function R(e){var t,r,n;let{sliderRef:o,activeIndex:i,setActive:a}=e,s=(0,u.Z)(o.current);(null===(t=o.current)||void 0===t?void 0:t.contains(s.activeElement))&&Number(null==s?void 0:null===(r=s.activeElement)||void 0===r?void 0:r.getAttribute("data-index"))===i||null===(n=o.current)||void 0===n||n.querySelector('[type="range"][data-index="'.concat(i,'"]')).focus(),a&&a(i)}function T(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&b(e,t)}let E={horizontal:{offset:e=>({left:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},"horizontal-reverse":{offset:e=>({right:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},vertical:{offset:e=>({bottom:"".concat(e,"%")}),leap:e=>({height:"".concat(e,"%")})}},A=e=>e;function P(){return void 0===n&&("undefined"!=typeof CSS&&"function"==typeof CSS.supports?n=CSS.supports("touch-action","none"):n=!0),n}var Z=r(62924),_=r(71853),L=r(36757),M=r(34599),I=r(83608),F=e=>!e||!(0,Z.Z)(e),z=r(46401),O=r(92195),N=r(14573),D=r(37501);function B(e){return(0,D.ZP)("MuiSlider",e)}let j=(0,N.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var G=r(27573);let W=e=>{let{open:t}=e;return{offset:(0,i.Z)(t&&j.valueLabelOpen),circle:j.valueLabelCircle,label:j.valueLabelLabel}};function U(e){return e}let H=(0,_.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["color".concat((0,z.Z)(r.color))],"medium"!==r.size&&t["size".concat((0,z.Z)(r.size))],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})((0,L.Z)(e=>{let{theme:t}=e;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",curs
1or:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},["&.".concat(j.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(j.dragging)]:{["& .".concat(j.thumb,", & .").concat(j.track)]:{transition:"none"}},variants:[...Object.entries(t.palette).filter((0,O.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{color:(t.vars||t).palette[r].main}}}),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),q=(0,_.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),V=(0,_.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((0,L.Z)(e=>{let{theme:t}=e;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter((0,O.Z)()).map(e=>{let[r]=e;return{props:{color:r,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider["".concat(r,"Track")],borderColor:t.vars.palette.Slider["".concat(r,"Track")]}:{backgroundColor:(0,s.$n)(t.palette[r].main,.62),borderColor:(0,s.$n)(t.palette[r].main,.62),...t.applyStyles("dark",{backgroundColor:(0,s._j)(t.palette[r].main,.5)}),...t.applyStyles("dark",{borderColor:(0,s._j)(t.palette[r].main,.5)})}}}})]}})),$=(0,_.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.thumb,t["thumbColor".concat((0,z.Z)(r.color))],"medium"!==r.size&&t["thumbSize".concat((0,z.Z)(r.size))]]}})((0,L.Z)(e=>{let{theme:t}=e;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,he
1ight:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&.".concat(j.disabled)]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter((0,O.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{["&:hover, &.".concat(j.focusVisible)]:{...t.vars?{boxShadow:"0px 0px 0px 8px rgba(".concat(t.vars.palette[r].mainChannel," / 0.16)")}:{boxShadow:"0px 0px 0px 8px ".concat((0,s.Fq)(t.palette[r].main,.16))},"@media (hover: none)":{boxShadow:"none"}},["&.".concat(j.active)]:{...t.vars?{boxShadow:"0px 0px 0px 14px rgba(".concat(t.vars.palette[r].mainChannel," / 0.16)")}:{boxShadow:"0px 0px 0px 14px ".concat((0,s.Fq)(t.palette[r].main,.16))}}}}})]}})),K=(0,_.ZP)(function(e){let{children:t,className:r,value:n}=e,a=W(e);return t?o.cloneElement(t,{className:(0,i.Z)(t.props.className)},(0,G.jsxs)(o.Fragment,{children:[t.props.children,(0,G.jsx)("span",{className:(0,i.Z)(a.offset,r),"aria-hidden":!0,children:(0,G.jsx)("span",{className:a.circle,children:(0,G.jsx)("span",{className:a.label,children:n})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((0,L.Z)(e=>{let{theme:t}=e;return{zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},["&.".concat(j.valueLabelOpen)]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},["&.".concat(j.valueLabelOpen)]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}})),Y=(0,_.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,I.Z)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:r}=e;return[t.mark,r&&t.markActive]}})((0,L.Z)(e=>{let{theme:t}=e;return{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}})),X=(0,_.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,I.Z)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((0,L.Z)(e=>{let{theme:t}=e;return{...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}})),Q=e=>{let{disabled:t,dragging:r,marked:n,orientation:o,track:i,classes:s,color:l,size:c}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",l&&"color".concat((0,z.Z)(l)),c&&"size".concat((0,z.Z)(c))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&"thumbSize".concat((0,z.Z)(c)),l&&"thumbColor".concat((0,z.Z)(l))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,a.Z)(u,B,s)},J=e=>{let{children:t}=e;return t};var ee=o.forwardRef(function(e,t){var r,n,a,s,b,_,L,I,z,O,N,D,B,j,W,ee,et,er,en,eo,ei,ea,es,el;let ec=(0,M.i)({props:e,name:"MuiSlider"}),eu=(0,l.V)(),{"aria-label":ed,"aria-valuetext":ep,"aria-labelledby":eh,
1component:ef="span",components:em={},componentsProps:eg={},color:ev="primary",classes:ey,className:eb,disableSwap:ex=!1,disabled:ew=!1,getAriaLabel:ek,getAriaValueText:eS,marks:eC=!1,max:eR=100,min:eT=0,name:eE,onChange:eA,onChangeCommitted:eP,orientation:eZ="horizontal",shiftStep:e_=10,size:eL="medium",step:eM=1,scale:eI=U,slotProps:eF,slots:ez,tabIndex:eO,track:eN="normal",value:eD,valueLabelDisplay:eB="off",valueLabelFormat:ej=U,...eG}=ec,eW={...ec,isRtl:eu,max:eR,min:eT,classes:ey,disabled:ew,disableSwap:ex,orientation:eZ,marks:eC,color:ev,size:eL,step:eM,shiftStep:e_,scale:eI,track:eN,valueLabelDisplay:eB,valueLabelFormat:ej},{axisProps:eU,getRootProps:eH,getHiddenInputProps:eq,getThumbProps:eV,open:e$,active:eK,axis:eY,focusedThumbIndex:eX,range:eQ,dragging:eJ,marks:e0,values:e1,trackOffset:e2,trackLeap:e5,getThumbStyle:e3}=function(e){let t;let{"aria-labelledby":r,defaultValue:n,disabled:i=!1,disableSwap:a=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:b=0,name:Z,onChange:_,onChangeCommitted:L,orientation:M="horizontal",rootRef:I,scale:F=A,step:z=1,shiftStep:O=10,tabIndex:N,value:D}=e,B=o.useRef(void 0),[j,G]=o.useState(-1),[W,U]=o.useState(-1),[H,q]=o.useState(!1),V=o.useRef(0),$=o.useRef(null),[K,Y]=(0,d.Z)({controlled:D,default:null!=n?n:b,name:"Slider"}),X=_&&((e,t,r)=>{let n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:Z}}),$.current=t,_(o,t,r)}),Q=Array.isArray(K),J=Q?K.slice().sort(w):[K];J=J.map(e=>null==e?b:(0,p.Z)(e,b,c));let ee=!0===l&&null!==z?[...Array(Math.floor((c-b)/z)+1)].map((e,t)=>({value:b+z*t})):l||[],et=ee.map(e=>e.value),[er,en]=o.useState(-1),eo=o.useRef(null),ei=(0,h.Z)(I,eo),ea=e=>t=>{var r;let n=Number(t.currentTarget.getAttribute("data-index"));(0,f.Z)(t.target)&&en(n),U(n),null==e||null===(r=e.onFocus)||void 0===r||r.call(e,t)},es=e=>t=>{var r;(0,f.Z)(t.target)||en(-1),U(-1),null==e||null===(r=e.onBlur)||void 0===r||r.call(e,t)},el=(e,t)=>{let r=Number(e.currentTarget.getAttribute("data-index")),n=J[r],o=et.indexOf(n),i=t;if(ee&&null==z){let e=et[et.length-1];i=i>=e?e:i<=et[0]?et[0]:i<n?et[o-1]:et[o+1]}if(i=(0,p.Z)(i,b,c),Q){a&&(i=(0,p.Z)(i,J[r-1]||-1/0,J[r+1]||1/0));let e=i;i=C({values:J,newValue:i,index:r});let t=r;a||(t=i.indexOf(e)),R({sliderRef:eo,activeIndex:t})}if(Y(i),en(r),X&&!T(i,K)&&X(e,i,r),L){var s;L(e,null!==(s=$.current)&&void 0!==s?s:i)}},ec=e=>t=>{var r;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(t.key)){t.preventDefault();let e=J[Number(t.currentTarget.getAttribute("data-index"))],r=null;if(null!=z){let n=t.shiftKey?O:z;switch(t.key){case"ArrowUp":r=x(e,n,1,b,c);break;case"ArrowRight":r=x(e,n,s?-1:1,b,c);break;case"ArrowDown":r=x(e,n,-1,b,c);break;case"ArrowLeft":r=x(e,n,s?1:-1,b,c);break;case"PageUp":r=x(e,O,1,b,c);break;case"PageDown":r=x(e,O,-1,b,c);break;case"Home":r=b;break;case"End":r=c}}else if(ee){let n=et[et.length-1],o=et.indexOf(e);[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"].includes(t.key)?r=0===o?et[0]:et[o-1]:[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"].includes(t.key)&&(r=o===et.length-1?n:et[o+1])}null!=r&&el(t,r)}null==e||null===(r=e.onKeyDown)||void 0===r||r.call(e,t)};(0,m.Z)(()=>{if(i&&eo.current.contains(document.activeElement)){var e;null===(e=document.activeElement)||void 0===e||e.blur()}},[i]),i&&-1!==j&&G(-1),i&&-1!==er&&en(-1);let eu=e=>t=>{var r;null===(r=e.onChange)||void 0===r||r.call(e,t),el(t,t.target.valueAsNumber)},ed=o.useRef(void 0),ep=M;s&&"horizontal"===M&&(ep+="-reverse");let eh=e=>{let t,r,{finger:n,move:o=!1}=e,{current:i}=eo,{width:s,height:l,bottom:u,left:d}=i.getBoundingClientRect();if(t=ep.startsWith("vertical")?(u-n.y)/l:(n.x-d)/s,ep.includes("-reverse")&&(t=1-t),r=(c-b)*t+b,z)r=Number((Math.round((r-b)/z)*z+b).toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(z)));else{let e=k(et,r);r=et[e]}r=(0,p.Z)(r,b,c);let h=0;if(Q){h=o?ed.current:k(J,r),a&&(r=(0,p.Z)(r,J[h-1]||-1/0,J[h+1]||1/0));let e=r;r=C({values:J,newValue:r,index:h}),a&&o||(h=r.indexOf(e),ed.current=h)}return{newValue:r,activeIndex:h}},ef=(0,g.Z)(e=>{let t=S(e,B);if(!t)return;if(V.current+=1,"mousemove"===e.type&&0===e.buttons){em(e);return}let{newValue:r,activeIndex:n}=eh({finger:t,move:!0});R({sliderRef:eo,activeIndex:n,setActive:G}),Y(r),!H&&V.current>2&&q(!0),X&&!T(r,K)&&X(e,r,n)}),em=(0,g.Z)(e=>{let t=S(e,B);if(q(!1),!t)return;let{newValue:r}=eh({finger:t,move:!0});if(G(-1),"touchend"===e.type&&U(-1),L){var n;L(e,null!==(n=$.current)&&void 0!==n?n:r)}B.current=void 0,ev()}),eg=(0,g.Z)(e=>{if(i)return;P()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(B.current=t.identifier);let r=S(e,B);if(!1!==r){let{newValue:t,activeIndex:n}=eh({finger:r});R({sliderRef:eo,activeIndex:n,setActive:G}),Y(t),X&&!T(t,K)&&X(e,t,n)}V.current=0;let n=(0,u.Z)(eo.current);n.addEventListener("touchmove",ef,{passive:!0}),n.addEventListener("touchend",em,{passive:!0})}),ev=o.useCallback(()=>{let e=(0,u.Z)(eo.current);e.removeEventListener("mousemove",ef),e.removeEventListener("mouseup",em),e.removeEventListener("touchmove",ef),e.removeEventListener("touchend",em)},[em,ef]);o.useEffect(()=>{let{current:e}=eo;return e.addEventListener("touchstart",eg,{passive:P()}),()=>{e.removeEventListener("touchstart",eg),ev()}},[ev,eg]),o.useEffect(()=>{i&&ev()},[i,ev]);let ey=e=>t=>{var r;if(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),i||t.defaultPrevented||0!==t.button)return;t.preventDefault();let n=S(t,B);if(!1!==n){let{newValue:e,activeIndex:r}=eh({finger:n});R({sliderRef:eo,activeIndex:r,setActive:G}),Y(e),X&&!T(e,K)&&X(t,e,r)}V.current=0;let o=(0,u.Z)(eo.current);o.addEventListener("mousemove",ef,{passive:!0}),o.addEventListener("mouseup",em)},eb=((Q?J[0]:b)-b)*100/(c-b),ex=(J[J.length-1]-b)*100/(c-b)-eb,ew=e=>t=>{var r;null===(r=e.onMouseOver)||void 0===r||r.call(e,t),U(Number(t.currentTarget.getAttribute("data-index")))},ek=e=>t=>{var r;null===(r=e.onMouseLeave)||void 0===r||r.call(e,t),U(-1)};return"vertical"===M&&(t=s?"vertical-rl":"vertical-lr"),{active:j,axis:ep,axisProps:E,dragging:H,focusedThumbIndex:er,getHiddenInputProps:function(){var n;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(0,y.Z)(o),l={onChange:eu(a||{}),onFocus:ea(a||{}),onBlur:es(a||{}),onKeyDown:ec(a||{})},u={...a,...l};return{tabIndex:N,"aria-labelledby":r,"aria-orientation":M,"aria-valuemax":F(c),"aria-valuemin":F(b),name:Z,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!==(n=e.step)&&void 0!==n?n:void 0,disabled:i,...o,...u,style:{...v,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:t}}},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,y.Z)(e),r={onMouseDown:ey(t||{})},n={...t,...r};return{...e,ref:ei,...n}},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,y.Z)(e),r={onMouseOver:ew(t||{}),onMouseLeave:ek(t||{})};return{...e,...t,...r}},marks:ee,open:W,range:Q,rootRef:ei,trackLeap:ex,trackOffset:eb,values:J,getThumbStyle:e=>({pointerEvents:-1!==j&&j!==e?"none":void 0})}}({...eW,rootRef:t});eW.marked=e0.length>0&&e0.some(e=>e.label),eW.dragging=eJ,eW.focusedThumbIndex=eX;let e4=Q(eW),e6=null!==(n=null!==(r=null==ez?void 0:ez.root)&&void 0!==r?r:em.Root)&&void 0!==n?n:H,e7=null!==(s=null!==(a=null==ez?void 0:ez.rail)&&void 0!==a?a:em.Rail)&&void 0!==s?s:q,e8=null!==(_=null!==(b=null==ez?void 0:ez.track)&&void 0!==b?b:em.Track)&&void 0!==_?_:V,e9=null!==(I=null!==(L=null==ez?void 0:ez.thumb)&&void 0!==L?L:em.Thumb)&&void 0!==I?I:$,te=null!==(O=null!==(z=null==ez?void 0:ez.valueLabel)&&void 0!==z?z:em.ValueLabel)&&void 0!==O?O:K,tt=null!==(D=null!==(N=null==ez?void 0:ez.mark)&&void 0!==N?N:em.Mark)&&void 0!==D?D:Y,tr=null!==(j=null!==(B=null==ez?void 0:ez.markLabel)&&void 0!==B?B:em.MarkLabel)&&void 0!==j?j:X,tn=null!==(ee=null!==(W=null==ez?void 0:ez.input)&&void 0!==W?W:em.Input)&&void 0!==ee?ee:"input",to=null!==(et=null==eF?void 0:eF.root)&&void 0!==et?et:eg.root,ti=null!==(er=null==eF?void 0:eF.rail)&&void 0!==er?er:eg.rail,ta=null!==(en=null==eF?void 0:eF.track)&&void 0!==en?en:eg.track,ts=null!==(eo=null==eF?void 0:eF.thumb)&&void 0!==eo?eo:eg.thumb,tl=null!==(ei=null==eF?void 0:eF.valueLabel)&&void 0!==ei?ei:eg.valueLabel,tc=null!==(ea=null==eF?void 0:eF.mark)&&void 0!==ea?ea:eg.mark,tu=null!==(es=null==eF?void 0:eF.markLabel)&&void 0!==es?es:eg.markLabel,td=null!==(el=null==eF?void 0:eF.input)&&void 0!==el?el:eg.input,tp=(0,c.Z)({elementType:e6,getSlotProps:eH,externalSlotProps:to,externalForwardedProps:eG,additionalProps:{...F(e6)&&{as:ef}},ownerState:{...eW,...null==to?void 0:to.ownerState},className:[e4.root,eb]}),th=(0,c.Z)({elementType:e7,externalSlotProps:ti,ownerState:eW,className:e4.rail}),tf=(0,c.Z)({elementType:e8,externalSlotProps:ta,additionalProps:{style:{...eU[eY].offset(e2),...eU[eY].leap(e5)}},ownerState:{...eW,...null==ta?void 0:ta.ownerState},className:e4.track}),tm=(0,c.Z)({elementType:e9,getSlotProps:eV,externalSlotProps:ts,ownerState:{...eW,...null==ts?void 0:ts.ownerState},className:e4.thumb}),tg=(0,c.Z)({elementType:te,externalSlotProps:tl,ownerState:{...eW,...null==tl?void 0:tl.ownerState},className:e4.valueLabel}
1),tv=(0,c.Z)({elementType:tt,externalSlotProps:tc,ownerState:eW,className:e4.mark}),ty=(0,c.Z)({elementType:tr,externalSlotProps:tu,ownerState:eW,className:e4.markLabel}),tb=(0,c.Z)({elementType:tn,getSlotProps:eq,externalSlotProps:td,ownerState:eW});return(0,G.jsxs)(e6,{...tp,children:[(0,G.jsx)(e7,{...th}),(0,G.jsx)(e8,{...tf}),e0.filter(e=>e.value>=eT&&e.value<=eR).map((e,t)=>{let r;let n=(e.value-eT)*100/(eR-eT),a=eU[eY].offset(n);return r=!1===eN?e1.includes(e.value):"normal"===eN&&(eQ?e.value>=e1[0]&&e.value<=e1[e1.length-1]:e.value<=e1[0])||"inverted"===eN&&(eQ?e.value<=e1[0]||e.value>=e1[e1.length-1]:e.value>=e1[0]),(0,G.jsxs)(o.Fragment,{children:[(0,G.jsx)(tt,{"data-index":t,...tv,...!(0,Z.Z)(tt)&&{markActive:r},style:{...a,...tv.style},className:(0,i.Z)(tv.className,r&&e4.markActive)}),null!=e.label?(0,G.jsx)(tr,{"aria-hidden":!0,"data-index":t,...ty,...!(0,Z.Z)(tr)&&{markLabelActive:r},style:{...a,...ty.style},className:(0,i.Z)(e4.markLabel,ty.className,r&&e4.markLabelActive),children:e.label}):null]},t)}),e1.map((e,t)=>{let r=(e-eT)*100/(eR-eT),n=eU[eY].offset(r),o="off"===eB?J:te;return(0,G.jsx)(o,{...!(0,Z.Z)(o)&&{valueLabelFormat:ej,valueLabelDisplay:eB,value:"function"==typeof ej?ej(eI(e),t):ej,index:t,open:e$===t||eK===t||"on"===eB,disabled:ew},...tg,children:(0,G.jsx)(e9,{"data-index":t,...tm,className:(0,i.Z)(e4.thumb,tm.className,eK===t&&e4.active,eX===t&&e4.focusVisible),style:{...n,...e3(t),...tm.style},children:(0,G.jsx)(tn,{"data-index":t,"aria-label":ek?ek(t):ed,"aria-valuenow":eI(e),"aria-labelledby":eh,"aria-valuetext":eS?eS(eI(e),t):ep,value:e1[t],...tb})})},t)})]})})},59524:function(e,t,r){"use strict";r.d(t,{Z:function(){return L}});var n=r(7653),o=r(10607),i=r(3838),a=r(22243),s=r(46401),l=r(92195),c=r(71533),u=r(71853),d=r(82417),p=r(27974),h=r(19488),f=r(14573),m=r(37501);function g(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,f.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=r(84394),y=r(27573);let b=e=>{let{classes:t,checked:r,disabled:n,edge:o}=e,a={root:["root",r&&"checked",n&&"disabled",o&&"edge".concat((0,s.Z)(o))],input:["input"]};return(0,i.Z)(a,g,t)},x=(0,u.ZP)(h.Z,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:e=>{let{edge:t,ownerState:r}=e;return"start"===t&&"small"!==r.size},style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:e=>{let{edge:t,ownerState:r}=e;return"end"===t&&"small"!==r.size},style:{marginRight:-12}}]}),w=(0,u.ZP)("input",{name:"MuiSwitchBase",shouldForwardProp:c.Z})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),k=n.forwardRef(function(e,t){let{autoFocus:r,checked:n,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:s=!1,edge:l=!1,icon:c,id:u,inputProps:h,inputRef:f,name:m,onBlur:g,onChange:k,onFocus:S,readOnly:C,required:R=!1,tabIndex:T,type:E,value:A,slots:P={},slotProps:Z={},..._}=e,[L,M]=(0,d.Z)({controlled:n,default:!!i,name:"SwitchBase",state:"checked"}),I=(0,p.Z)(),F=e=>{S&&S(e),I&&I.onFocus&&I.onFocus(e)},z=e=>{g&&g(e),I&&I.onBlur&&I.onBlur(e)},O=e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;M(t),k&&k(e,t)},N=a;I&&void 0===N&&(N=I.disabled);let D="checkbox"===E||"radio"===E,B={...e,checked:L,disabled:N,disableFocusRipple:s,edge:l},j=b(B),G={slots:P,slotProps:{input:h,...Z}},[W,U]=(0,v.Z)("root",{ref:t,elementType:x,className:j.root,shouldForwardComponentProp:!0,externalForwardedProps:{...G,component:"span",..._},getSlotProps:e=>({...e,onFocus:t=>{var r;null===(r=e.onFocus)||void 0===r||r.call(e,t),F(t)},onBlur:t=>{var r;null===(r=e.onBlur)||void 0===r||r.call(e,t),z(t)}}),ownerState:B,additionalProps:{centerRipple:!0,focusRipple:!s,disabled:N,role:void 0,tabIndex:null}}),[H,q]=(0,v.Z)("input",{ref:f,elementType:w,className:j.input,externalForwardedProps:G,getSlotProps:e=>({onChange:t=>{var r;null===(r=e.onChange)||void 0===r||r.call(e,t),O(t)}}),ownerState:B,additionalProps:{autoFocus:r,checked:n,defaultChecked:i,disabled:N,id:D?u:void 0,name:m,readOnly:C,required:R,tabIndex:T,type:E,..."checkbox"===E&&void 0===A?{}:{value:A}}});return(0,y.jsxs)(W,{...U,children:[(0,y.jsx)(H,{...q}),L?o:c]})});var S=r(36757),C=r(34599);function R(e){return(0,m.ZP)("MuiSwitch",e)}let T=(0,f.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),E=e=>{let{classes:t,edge:r,size:n,color:o,checked:a,disabled:l}=e,c={root:["root",r&&"edge".concat((0,s.Z)(r)),"size".concat((0,s.Z)(n))],switchBase:["switchBase","color".concat((0,s.Z)(o)),a&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=(0,i.Z)(c,R,t);return{...t,...u}},A=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,s.Z)(r.edge))],t["size".concat((0,s.Z)(r.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat(T.thumb)]:{width:16,height:16},["& .".concat(T.switchBase)]:{padding:4,["&.".concat(T.checked)]:{transform:"translateX(16px)"}}}}]}),P=(0,u.ZP)(k,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{["& .".concat(T.input)]:t.input},"default"!==r.color&&t["color".concat((0,s.Z)(r.color))]]}})((0,S.Z)(e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(T.checked)]:{transform:"translateX(20px)"},["&.".concat(T.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(T.checked," + .").concat(T.track)]:{opacity:.5},["&.".concat(T.disabled," + .").concat(T.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(T.input)]:{left:"-100%",width:"300%"}}}),(0,S.Z)(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,a.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((0,l.Z)(["light"])).map(e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(T.checked)]:{color:(t.vars||t).palette[r].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r].mainCh
1annel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,a.Fq)(t.palette[r].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(T.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,a.$n)(t.palette[r].main,.62):(0,a._j)(t.palette[r].main,.55))}},["&.".concat(T.checked," + .").concat(T.track)]:{backgroundColor:(t.vars||t).palette[r].main}}}})]}})),Z=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((0,S.Z)(e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),_=(0,u.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((0,S.Z)(e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}));var L=n.forwardRef(function(e,t){let r=(0,C.i)({props:e,name:"MuiSwitch"}),{className:n,color:i="primary",edge:a=!1,size:s="medium",sx:l,slots:c={},slotProps:u={},...d}=r,p={...r,color:i,edge:a,size:s},h=E(p),f={slots:c,slotProps:u},[m,g]=(0,v.Z)("root",{className:(0,o.Z)(h.root,n),elementType:A,externalForwardedProps:f,ownerState:p,additionalProps:{sx:l}}),[b,x]=(0,v.Z)("thumb",{className:h.thumb,elementType:_,externalForwardedProps:f,ownerState:p}),w=(0,y.jsx)(b,{...x}),[k,S]=(0,v.Z)("track",{className:h.track,elementType:Z,externalForwardedProps:f,ownerState:p});return(0,y.jsxs)(m,{...g,children:[(0,y.jsx)(P,{type:"checkbox",icon:w,checkedIcon:w,ref:t,ownerState:p,...d,classes:{...h,root:h.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:"function"==typeof u.switchBase?u.switchBase(p):u.switchBase},...u.input&&{input:"function"==typeof u.input?u.input(p):u.input}}}),(0,y.jsx)(k,{...S})]})})},56322:function(e,t,r){"use strict";r.d(t,{Z:function(){return t7}});var n,o,i,a,s=r(7653),l=r(10607),c=r(3838),u=r(59994),d=r(71853),p=r(34599),h=r(60920),f=r(24089),m=r(67993),g=r(1987);function v(e){return(0,g.Z)(e).defaultView||window}var y=r(74594),b=r(10779);function x(e,t=166){let r;function n(...o){clearTimeout(r),r=setTimeout(()=>{e.apply(this,o)},t)}return n.clear=()=>{clearTimeout(r)},n}var w=r(27573);function k(e){return parseInt(e,10)||0}let S={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function C(e){return function(e){for(let t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}let R=s.forwardRef(function(e,t){let{onChange:r,maxRows:n,minRows:o=1,style:i,value:a,...l}=e,{current:c}=s.useRef(null!=a),u=s.useRef(null),d=(0,m.Z)(t,u),p=s.useRef(null),h=s.useRef(null),f=s.useCallback(()=>{let t=u.current,r=h.current;if(!t||!r)return;let i=v(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");let a=i.boxSizing,s=k(i.paddingBottom)+k(i.paddingTop),l=k(i.borderBottomWidth)+k(i.borderTopWidth),c=r.scrollHeight;r.value="x";let d=r.scrollHeight,p=c;return o&&(p=Math.max(Number(o)*d,p)),n&&(p=Math.min(Number(n)*d,p)),{outerHeightStyle:(p=Math.max(p,d))+("border-box"===a?s+l:0),overflowing:1>=Math.abs(p-c)}},[n,o,e.placeholder]),g=(0,y.Z)(()=>{let e=u.current,t=f();if(!e||!t||C(t))return!1;let r=t.outerHeightStyle;return null!=p.current&&p.current!==r}),R=s.useCallback(()=>{let e=u.current,t=f();if(!e||!t||C(t))return;let r=t.outerHeightStyle;p.current!==r&&(p.current=r,e.style.height="".concat(r,"px")),e.style.overflow=t.overflowing?"hidden":""},[f]),T=s.useRef(-1);return(0,b.Z)(()=>{let e;let t=x(R),r=null==u?void 0:u.current;if(!r)return;let n=v(r);return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(()=>{g()&&(e.unobserve(r),cancelAnimationFrame(T.current),R(),T.current=requestAnimationFrame(()=>{e.observe(r)}))})).observe(r),()=>{t.clear(),cancelAnimationFrame(T.current),n.removeEventListener("resize",t),e&&e.disconnect()}},[f,R,g]),(0,b.Z)(()=>{R()}),(0,w.jsxs)(s.Fragment,{children:[(0,w.jsx)("textarea",{value:a,onChange:e=>{c||R(),r&&r(e)},ref:d,rows:o,style:i,...l}
1),(0,w.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...S,...i,paddingTop:0,paddingBottom:0}})]})});var T=r(62924);function E(e){let{props:t,states:r,muiFormControl:n}=e;return r.reduce((e,r)=>(e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e),{})}var A=r(74450),P=r(27974),Z=r(2888),_=r(36757),L=r(46401),M=r(11406),I=b.Z;function F(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function z(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(F(e.value)&&""!==e.value||t&&F(e.defaultValue)&&""!==e.defaultValue)}var O=r(14573),N=r(37501);function D(e){return(0,N.ZP)("MuiInputBase",e)}let B=(0,O.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),j=(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,L.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},G=(e,t)=>{let{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},W=e=>{let{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:p,size:h,startAdornment:f,type:m}=e,g={root:["root","color".concat((0,L.Z)(r)),n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",h&&"medium"!==h&&"size".concat((0,L.Z)(h)),d&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===h&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return(0,c.Z)(g,D,t)},U=(0,d.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:j})((0,_.Z)(e=>{let{theme:t}=e;return{...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(B.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"4px 0 5px"}},{props:e=>{let{ownerState:t,size:r}=e;return t.multiline&&"small"===r},style:{paddingTop:1}},{props:e=>{let{ownerState:t}=e;return t.fullWidth},style:{width:"100%"}}]}})),H=(0,d.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:G})((0,_.Z)(e=>{let{theme:t}=e,r="light"===t.palette.mode,n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},o={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(B.formControl," &")]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},["&.".concat(B.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableInjectingGlobalStyles},style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),q=(0,Z.zY)({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),V=s.forwardRef(function(e,t){var r;let o=(0,p.i)({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:c,className:u,color:d,c
1omponents:h={},componentsProps:m={},defaultValue:g,disabled:v,disableInjectingGlobalStyles:y,endAdornment:b,error:x,fullWidth:k=!1,id:S,inputComponent:C="input",inputProps:Z={},inputRef:_,margin:L,maxRows:F,minRows:O,multiline:N=!1,name:D,onBlur:B,onChange:j,onClick:G,onFocus:V,onKeyDown:$,onKeyUp:K,placeholder:Y,readOnly:X,renderSuffix:Q,rows:J,size:ee,slotProps:et={},slots:er={},startAdornment:en,type:eo="text",value:ei,...ea}=o,es=null!=Z.value?Z.value:ei,{current:el}=s.useRef(null!=es),ec=s.useRef(),eu=s.useCallback(e=>{},[]),ed=(0,M.Z)(ec,_,Z.ref,eu),[ep,eh]=s.useState(!1),ef=(0,P.Z)(),em=E({props:o,muiFormControl:ef,states:["color","disabled","error","hiddenLabel","size","required","filled"]});em.focused=ef?ef.focused:ep,s.useEffect(()=>{!ef&&v&&ep&&(eh(!1),B&&B())},[ef,v,ep,B]);let eg=ef&&ef.onFilled,ev=ef&&ef.onEmpty,ey=s.useCallback(e=>{z(e)?eg&&eg():ev&&ev()},[eg,ev]);I(()=>{el&&ey({value:es})},[es,ey,el]),s.useEffect(()=>{ey(ec.current)},[]);let eb=C,ex=Z;N&&"input"===eb&&(ex=J?{type:void 0,minRows:J,maxRows:J,...ex}:{type:void 0,maxRows:F,minRows:O,...ex},eb=R),s.useEffect(()=>{ef&&ef.setAdornedStart(!!en)},[ef,en]);let ew={...o,color:em.color||"primary",disabled:em.disabled,endAdornment:b,error:em.error,focused:em.focused,formControl:ef,fullWidth:k,hiddenLabel:em.hiddenLabel,multiline:N,size:em.size,startAdornment:en,type:eo},ek=W(ew),eS=er.root||h.Root||U,eC=et.root||m.root||{},eR=er.input||h.Input||H;return ex={...ex,...null!==(r=et.input)&&void 0!==r?r:m.input},(0,w.jsxs)(s.Fragment,{children:[!y&&"function"==typeof q&&(n||(n=(0,w.jsx)(q,{}))),(0,w.jsxs)(eS,{...eC,ref:t,onClick:e=>{ec.current&&e.currentTarget===e.target&&ec.current.focus(),G&&G(e)},...ea,...!(0,T.Z)(eS)&&{ownerState:{...ew,...eC.ownerState}},className:(0,l.Z)(ek.root,eC.className,u,X&&"MuiInputBase-readOnly"),children:[en,(0,w.jsx)(A.Z.Provider,{value:null,children:(0,w.jsx)(eR,{"aria-invalid":em.error,"aria-describedby":i,autoComplete:a,autoFocus:c,defaultValue:g,disabled:em.disabled,id:S,onAnimationStart:e=>{ey("mui-auto-fill-cancel"===e.animationName?ec.current:{value:"x"})},name:D,placeholder:Y,readOnly:X,required:em.required,rows:J,value:es,onKeyDown:$,onKeyUp:K,type:eo,...ex,...!(0,T.Z)(eR)&&{as:eb,ownerState:{...ew,...ex.ownerState}},ref:ed,className:(0,l.Z)(ek.input,ex.className,X&&"MuiInputBase-readOnly"),onBlur:e=>{B&&B(e),Z.onBlur&&Z.onBlur(e),ef&&ef.onBlur?ef.onBlur(e):eh(!1)},onChange:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!el){let t=e.target||ec.current;if(null==t)throw Error((0,f.Z)(1));ey({value:t.value})}Z.onChange&&Z.onChange(e,...r),j&&j(e,...r)},onFocus:e=>{V&&V(e),Z.onFocus&&Z.onFocus(e),ef&&ef.onFocus?ef.onFocus(e):eh(!0)}})}),b,Q?Q({...em,startAdornment:en}):null]})]})});var $=r(71533),K=r(92195);function Y(e){return(0,N.ZP)("MuiInput",e)}let X={...B,...(0,O.Z)("MuiInput",["root","underline","input"])},Q=e=>{let{classes:t,disableUnderline:r}=e,n=(0,c.Z)({root:["root",!r&&"underline"],input:["input"]},Y,t);return{...t,...n}},J=(0,d.ZP)(U,{shouldForwardProp:e=>(0,$.Z)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...j(e,t),!r.disableUnderline&&t.underline]}})((0,_.Z)(e=>{let{theme:t}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),{position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return t.formControl},style:{"label + &":{marginTop:16}}},{props:e=>{let{ownerState:t}=e;return!t.disableUnderline},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(X.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(X.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(X.disabled,", .").concat(X.error,"):before")]:{borderBottom:"2px s
1olid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},["&.".concat(X.disabled,":before")]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter((0,K.Z)()).map(e=>{let[r]=e;return{props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r].main)}}}})]}})),ee=(0,d.ZP)(H,{name:"MuiInput",slot:"Input",overridesResolver:G})({}),et=s.forwardRef(function(e,t){var r,n,o,i;let a=(0,p.i)({props:e,name:"MuiInput"}),{disableUnderline:s=!1,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:m,slots:g={},type:v="text",...y}=a,b=Q(a),x={root:{ownerState:{disableUnderline:s}}},k=(null!=m?m:c)?(0,h.Z)(null!=m?m:c,x):x,S=null!==(n=null!==(r=g.root)&&void 0!==r?r:l.Root)&&void 0!==n?n:J,C=null!==(i=null!==(o=g.input)&&void 0!==o?o:l.Input)&&void 0!==i?i:ee;return(0,w.jsx)(V,{slots:{root:S,input:C},slotProps:k,fullWidth:u,inputComponent:d,multiline:f,ref:t,type:v,...y,classes:b})});function er(e){return(0,N.ZP)("MuiFilledInput",e)}et.muiName="Input";let en={...B,...(0,O.Z)("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},eo=e=>{let{classes:t,disableUnderline:r,startAdornment:n,endAdornment:o,size:i,hiddenLabel:a,multiline:s}=e,l={root:["root",!r&&"underline",n&&"adornedStart",o&&"adornedEnd","small"===i&&"size".concat((0,L.Z)(i)),a&&"hiddenLabel",s&&"multiline"],input:["input"]},u=(0,c.Z)(l,er,t);return{...t,...u}},ei=(0,d.ZP)(U,{shouldForwardProp:e=>(0,$.Z)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...j(e,t),!r.disableUnderline&&t.underline]}})((0,_.Z)(e=>{let{theme:t}=e,r="light"===t.palette.mode,n=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n}},["&.".concat(en.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:n},["&.".concat(en.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableUnderline},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(en.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(en.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(en.disabled,", .").concat(en.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(en.disabled,":before")]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter((0,K.Z)()).map(e=>{var r;let[n]=e;return{props:{disableUnderline:!1,color:n},style:{"&::after":{borderBottom:"2px solid ".concat(null===(r=(t.vars||t).palette[n])||void 0===r?void 0:r.main)}}}}),{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:12}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:12}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"25px 12px 8px"}},{props:e=>{let{ownerState:t,size:r}=e;return t.multiline&&"small"===r},style:{paddingTop:21,paddingBottom:4}},{props:e=>{let{ownerState:t}=e;return t.multiline&&t.hiddenLabel},style:{paddingTop:16,paddingBottom:17}},{props:e=>{let{ownerState:t}=e;return t.multiline&&t.hiddenLabel&&"small"===t.size},style:{paddingTop:8,paddingBottom:9}}]}})),ea=(0,d.ZP)(H,{name:"MuiFilledInput",slot:"Input",overridesResolver:G})((0,_.Z)(e=>{let{theme:t}=e;return{paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:e=>{let{ownerState:t}=e;return t.hiddenLabel},style:{paddingTop:16,paddingBottom:17}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:0}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:0}},{props:e=>{let{ownerState:t}=e;return t.hiddenLabel&&"small"===t.size},style:{paddingTop:8,paddingBottom:9}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}})),es=s.forwardRef(function(e,t){var r,n,o,i;let a=(0,p.i)({props:e,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:l={},componentsProps:c,fullWidth:u=!1,hiddenLabel:d,inputComponent:f="input",multiline:m=!1,slotProps:g,slots:v={},type:y="text",...b}=a,x={...a,disableUnderline:s,fullWidth:u,inputComponent:f,multiline:m,type:y},k=eo(a),S={root:{ownerState:x},input:{ownerState:x}},C=(null!=g?g:c)?(0,h.Z)(S,null!=g?g:c):S,R=null!==(n=null!==(r=v.root)&&void 0!==r?r:l.Root)&&void 0!==n?n:ei,T=null!==(i=null!==(o=v.input)&&void 0!==o?o:l.Input)&&void 0!==i?i:ea;
1return(0,w.jsx)(V,{slots:{root:R,input:T},slotProps:C,fullWidth:u,inputComponent:f,multiline:m,ref:t,type:y,...b,classes:k})});es.muiName="Input";let el=(0,d.ZP)("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:$.Z})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ec=(0,d.ZP)("legend",{name:"MuiNotchedOutlined",shouldForwardProp:$.Z})((0,_.Z)(e=>{let{theme:t}=e;return{float:"unset",width:"auto",overflow:"hidden",variants:[{props:e=>{let{ownerState:t}=e;return!t.withLabel},style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:e=>{let{ownerState:t}=e;return t.withLabel},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:e=>{let{ownerState:t}=e;return t.withLabel&&t.notched},style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]}}));function eu(e){return(0,N.ZP)("MuiOutlinedInput",e)}let ed={...B,...(0,O.Z)("MuiOutlinedInput",["root","notchedOutline","input"])};var ep=r(84394);let eh=e=>{let{classes:t}=e,r=(0,c.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},eu,t);return{...t,...r}},ef=(0,d.ZP)(U,{shouldForwardProp:e=>(0,$.Z)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:j})((0,_.Z)(e=>{let{theme:t}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(ed.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(ed.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}},["&.".concat(ed.focused," .").concat(ed.notchedOutline)]:{borderWidth:2},variants:[...Object.entries(t.palette).filter((0,K.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(ed.focused," .").concat(ed.notchedOutline)]:{borderColor:(t.vars||t).palette[r].main}}}}),{props:{},style:{["&.".concat(ed.error," .").concat(ed.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(ed.disabled," .").concat(ed.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:14}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:14}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"16.5px 14px"}},{props:e=>{let{ownerState:t,size:r}=e;return t.multiline&&"small"===r},style:{padding:"8.5px 14px"}}]}})),em=(0,d.ZP)(function(e){let{children:t,classes:r,className:n,label:i,notched:a,...s}=e,l=null!=i&&""!==i,c={...e,notched:a,withLabel:l};return(0,w.jsx)(el,{"aria-hidden":!0,className:n,ownerState:c,...s,children:(0,w.jsx)(ec,{ownerState:c,children:l?(0,w.jsx)("span",{children:i}):o||(o=(0,w.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((0,_.Z)(e=>{let{theme:t}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}})),eg=(0,d.ZP)(H,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:G})((0,_.Z)(e=>{let{theme:t}=e;return{padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:0}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:0}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:0}}]}})),ev=s.forwardRef(function(e,t){var r,n,o,i;let a=(0,p.i)({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:h=!1,notched:f,slots:m={},slotProps:g={},type:v="text",...y}=a,b=eh(a),x=(0,P.Z)(),k=E({props:a,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...a,color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:x,fullWidth:c,hiddenLabel:k.hiddenLabel,multiline:h,size:k.size,type:v},C=null!==(n=null!==(r=m.root)&&void 0!==r?r:l.Root)&&void 0!==n?n:ef,R=null!==(i=null!==(o=m.input)&&void 0!==o?o:l.Input)&&void 0!==i?i:eg,[T,A]=(0,ep.Z)("notchedOutline",{elementType:em,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:m,slotProps:g},additionalProps:{label:null!=d&&""!==d&&k.required?(0,w.jsxs)(s.Fragment,{children:[d," ","*"]}):d}});return(0,w.jsx)(V,{slots:{root:C,input:R}
1,slotProps:g,renderSuffix:e=>(0,w.jsx)(T,{...A,notched:void 0!==f?f:!!(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:h,ref:t,type:v,...y,classes:{...b,notchedOutline:null}})});function ey(e){return(0,N.ZP)("MuiFormLabel",e)}ev.muiName="Input";let eb=(0,O.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ex=e=>{let{classes:t,color:r,focused:n,disabled:o,error:i,filled:a,required:s}=e,l={root:["root","color".concat((0,L.Z)(r)),o&&"disabled",i&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,c.Z)(l,ey,t)},ew=(0,d.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled]}})((0,_.Z)(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter((0,K.Z)()).map(e=>{let[r]=e;return{props:{color:r},style:{["&.".concat(eb.focused)]:{color:(t.vars||t).palette[r].main}}}}),{props:{},style:{["&.".concat(eb.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(eb.error)]:{color:(t.vars||t).palette.error.main}}}]}})),ek=(0,d.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((0,_.Z)(e=>{let{theme:t}=e;return{["&.".concat(eb.error)]:{color:(t.vars||t).palette.error.main}}})),eS=s.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiFormLabel"}),{children:n,className:o,color:i,component:a="label",disabled:s,error:c,filled:u,focused:d,required:h,...f}=r,m=E({props:r,muiFormControl:(0,P.Z)(),states:["color","required","focused","disabled","error","filled"]}),g={...r,color:m.color||"primary",component:a,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},v=ex(g);return(0,w.jsxs)(ew,{as:a,ownerState:g,className:(0,l.Z)(v.root,o),ref:t,...f,children:[n,m.required&&(0,w.jsxs)(ek,{ownerState:g,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});function eC(e){return(0,N.ZP)("MuiInputLabel",e)}(0,O.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);let eR=e=>{let{classes:t,formControl:r,size:n,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",r&&"formControl",!i&&"animated",o&&"shrink",n&&"normal"!==n&&"size".concat((0,L.Z)(n)),a],asterisk:[s&&"asterisk"]},u=(0,c.Z)(l,eC,t);return{...t,...u}},eT=(0,d.ZP)(eS,{shouldForwardProp:e=>(0,$.Z)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(eb.asterisk)]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focu
1sed,t[r.variant]]}})((0,_.Z)(e=>{let{theme:t}=e;return{display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:e=>{let{ownerState:t}=e;return t.formControl},style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:e=>{let{ownerState:t}=e;return t.shrink},style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:e=>{let{ownerState:t}=e;return!t.disableAnimation},style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:e=>{let{variant:t,ownerState:r}=e;return"filled"===t&&r.shrink},style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:e=>{let{variant:t,ownerState:r,size:n}=e;return"filled"===t&&r.shrink&&"small"===n},style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:e=>{let{variant:t,ownerState:r}=e;return"outlined"===t&&r.shrink},style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}})),eE=s.forwardRef(function(e,t){let r=(0,p.i)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,margin:o,shrink:i,variant:a,className:s,...c}=r,u=(0,P.Z)(),d=i;void 0===d&&u&&(d=u.filled||u.focused||u.adornedStart);let h=E({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),f={...r,disableAnimation:n,formControl:u,shrink:d,size:h.size,variant:h.variant,required:h.required,focused:h.focused},m=eR(f);return(0,w.jsx)(eT,{"data-shrink":d,ref:t,className:(0,l.Z)(m.root,s),...c,ownerState:f,classes:m})});var eA=function(e,t){return s.isValidElement(e)&&-1!==t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)};function eP(e){return(0,N.ZP)("MuiFormControl",e)}(0,O.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);let eZ=e=>{let{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&"margin".concat((0,L.Z)(r)),n&&"fullWidth"]};return(0,c.Z)(o,eP,t)},e_=(0,d.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["margin".concat((0,L.Z)(r.margin))],r.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),eL=s.forwardRef(function(e,t){let r;let n=(0,p.i)({props:e,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:c="div",disabled:u=!1,error:d=!1,focused:h,fullWidth:f=!1,hiddenLabel:m=!1,margin:g="none",required:v=!1,size:y="medium",variant:b="outlined",...x}=n,k={...n,color:a,component:c,disabled:u,error:d,fullWidth:f,hiddenLabel:m,margin:g,required:v,size:y,variant:b},S=eZ(k),[C,R]=s.useState(()=>{let e=!1;return o&&s.Children.forEach(o,t=>{if(!eA(t,["Input","Select"]))return;let r=eA(t,["Select"])?t.props.input:t;r&&r.props.startAdornment&&(e=!0)}),e}),[T,E]=s.useState(()=>{let e=!1;return o&&s.Children.forEach(o,t=>{eA(t,["Input","Select"])&&(z(t.props,!0)||z(t.props.inputProps,!0))&&(e=!0)}),e}),[P,Z]=s.useState(!1);u&&P&&Z(!1);let _=void 0===h||u?P:h;s.useRef(!1);let L=s.useCallback(()=>{E(!0)},[]),M=s.useCallback(()=>{E(!1)},[]),I=s.useMemo(()=>({adornedStart:C,setAdornedStart:R,color:a,disabled:u,error:d,filled:T,focused:_,fullWidth:f,hiddenLabel:m,size:y,onBlur:()=>{Z(!1)},onFocus:()=>{Z(!0)},onEmpty:M,onFilled:L,registerEffect:r,required:v,variant:b}),[C,a,u,d,T,_,f,m,r,M,L,v,y,b]);return(0,w.jsx)(A.Z.Provider,{value:I,children:(0,w.jsx)(e_,{as:c,ownerState:k,className:(0,l.Z)(S.root,i),ref:t,...x,children:o})})});function eM(e){return(0,N.ZP)("MuiFormHelperText",e)}let eI=(0,O.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),eF=e=>{let{classes:t,contained:r,size:n,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",n&&"size".concat((0,L.Z)(n)),r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,c.Z)(u,eM,t)},ez=(0,d.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,L.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((0,_.Z)(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(eI.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(eI.error)]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:e=>{let{ownerState:t}=e;return t.contained},style:{marginLeft:14,marginRight:14}}]}})),eO=s.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p",disabled:s,error:c,filled:u,focused:d,margin:h,required:f,variant:m,...g}=r,v=E({props:r,muiFormControl:(0,P.Z)(),states:["variant","size","disabled","error","filled","focused","required"]}),y={...r,component:a,contained:"filled"===v.variant||"outlined"===v.variant,variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete y.ownerState;let b=eF(y);return(0,w.jsx)(ez,{as:a,className:(0,l.Z)(b.root,o),ref:t,...g,ownerState:y,children:" "===n?i||(i=(0,w.jsx)("span",{className:"notranslate","aria-hidden":!0,
1children:"​"})):n})});var eN=r(97023),eD=g.Z,eB=r(98163),ej=r(60905);let eG=s.createContext({});function eW(e){return(0,N.ZP)("MuiList",e)}(0,O.Z)("MuiList",["root","padding","dense","subheader"]);let eU=e=>{let{classes:t,disablePadding:r,dense:n,subheader:o}=e;return(0,c.Z)({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},eW,t)},eH=(0,d.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return!t.disablePadding},style:{paddingTop:8,paddingBottom:8}},{props:e=>{let{ownerState:t}=e;return t.subheader},style:{paddingTop:0}}]}),eq=s.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:c=!1,subheader:u,...d}=r,h=s.useMemo(()=>({dense:a}),[a]),f={...r,component:i,dense:a,disablePadding:c},m=eU(f);return(0,w.jsx)(eG.Provider,{value:h,children:(0,w.jsxs)(eH,{as:i,className:(0,l.Z)(m.root,o),ref:t,ownerState:f,...d,children:[u,n]})})});function eV(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function e$(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function eK(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function eY(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join("")))}function eX(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}let t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&eY(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}let eQ=s.forwardRef(function(e,t){let{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...p}=e,h=s.useRef(null),f=s.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});I(()=>{n&&h.current.focus()},[n]),s.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:r}=t,n=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&n){let t="".concat(eV(v(e)),"px");h.current.style["rtl"===r?"paddingLeft":"paddingRight"]=t,h.current.style.width="calc(100% + ".concat(t,")")}return h.current}}),[]);let m=(0,M.Z)(h,t),g=-1;s.Children.forEach(i,(e,t)=>{if(!s.isValidElement(e)){g===t&&(g+=1)>=i.length&&(g=-1);return}e.props.disabled||("selectedMenu"===d&&e.props.selected?g=t:-1!==g||(g=t)),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1)>=i.length&&(g=-1)});let y=s.Children.map(i,(e,t)=>{if(t===g){let t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),s.cloneElement(e,t)}return e});return(0,w.jsx)(eq,{role:"menu",ref:m,className:a,onKeyDown:e=>{let t=h.current,r=e.key;if(e.ctrlKey||e.metaKey||e.altKey){u&&u(e);return}let n=eD(t).activeElement;if("ArrowDown"===r)e.preventDefault(),eX(t,n,c,l,e$);else if("ArrowUp"===r)e.preventDefault(),eX(t,n,c,l,eK);else if("Home"===r)e.preventDefault(),eX(t,null,c,l,e$);else if("End"===r)e.preventDefault(),eX(t,null,c,l,eK);else if(1===r.length){let o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);let s=n&&!o.repeating&&eY(n,o);o.previousKeyMatched&&(s||eX(t,n,!1,l,e$,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1,...p,children:y})});var eJ=r(78212);function e0(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let o=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);
1return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===o||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e)||(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function e1(){return!0}var e2=function(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=e0,isEnabled:a=e1,open:l}=e,c=s.useRef(!1),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),h=s.useRef(null),f=s.useRef(!1),v=s.useRef(null),y=(0,m.Z)((0,eN.Z)(t),v),b=s.useRef(null);s.useEffect(()=>{l&&v.current&&(f.current=!r)},[r,l]),s.useEffect(()=>{if(!l||!v.current)return;let e=(0,g.Z)(v.current);return!v.current.contains(e.activeElement)&&(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),f.current&&v.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),s.useEffect(()=>{if(!l||!v.current)return;let e=(0,g.Z)(v.current),t=t=>{b.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===v.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},r=()=>{let t=v.current;if(null===t)return;if(!e.hasFocus()||!a()||c.current){c.current=!1;return}if(t.contains(e.activeElement)||n&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!f.current)return;let r=[];if((e.activeElement===u.current||e.activeElement===d.current)&&(r=i(v.current)),r.length>0){var o,s;let e=!!((null===(o=b.current)||void 0===o?void 0:o.shiftKey)&&(null===(s=b.current)||void 0===s?void 0:s.key)==="Tab"),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,l,i]);let x=e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0};return(0,w.jsxs)(s.Fragment,{children:[(0,w.jsx)("div",{tabIndex:l?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),s.cloneElement(t,{ref:y,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),f.current=!0,h.current=e.target;let r=t.props.onFocus;r&&r(e)}}),(0,w.jsx)("div",{tabIndex:l?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})},e5=r(58561),e3=r(79158);function e4(e){return(0,N.ZP)("MuiBackdrop",e)}(0,O.Z)("MuiBackdrop",["root","invisible"]);let e6=e=>{let{classes:t,invisible:r}=e;return(0,c.Z)({root:["root",r&&"invisible"]},e4,t)},e7=(0,d.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),e8=s.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiBackdrop"}),{children:n,className:o,component:i="div",invisible:a=!1,open:s,components:c={},componentsProps:u={},slotProps:d={},slots:h={},TransitionComponent:f,transitionDuration:m,...g}=r,v={...r,component:i,invisible:a},y=e6(v),b={slots:{transition:f,root:c.Root,...h},slotProps:{...u,...d}},[x,k]=(0,ep.Z)("root",{elementType:e7,externalForwardedProps:b,className:(0,l.Z)(y.root,o),ownerState:v}),[S,C]=(0,ep.Z)("transition",{elementType:e3.Z,externalForwardedProps:b,ownerState:v});return(0,w.jsx)(S,{in:s,timeout:m,...g,...C,children:(0,w.jsx)(x,{"aria-hidden":!0,...k,classes:y,ref:t,children:n})})});function e9(...e){return e.reduce((e,t)=>
1null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}var te=r(42141);function tt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tr(e){return parseInt(v(e).getComputedStyle(e).paddingRight,10)||0}function tn(e,t,r,n,o){let i=[t,r,...n];[].forEach.call(e.children,e=>{let t=!i.includes(e),r=!function(e){let t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&tt(e,o)})}function to(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}class ti{add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&tt(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);tn(t,e.mount,e.modalRef,n,!0);let o=to(this.containers,e=>e.container===t);return -1!==o?this.containers[o].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=to(this.containers,t=>t.modals.includes(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){let r=[],n=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,g.Z)(e);return t.body===e?v(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){let e=eV(v(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(tr(n)+e,"px");let t=(0,g.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(tr(t)+e,"px")})}if(n.parentNode instanceof DocumentFragment)e=(0,g.Z)(n).body;else{let t=n.parentElement,r=v(n);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)})}}(n,t))}remove(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;let n=to(this.containers,t=>t.modals.includes(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&tt(e.modalRef,t),tn(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=o.modals[o.modals.length-1];e.modalRef&&tt(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.modals=[],this.containers=[]}}let ta=()=>{},ts=new ti;var tl=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=s.useRef({}),h=s.useRef(null),f=s.useRef(null),v=(0,m.Z)(f,d),[b,x]=s.useState(!u),w=!!l&&l.props.hasOwnProperty("in"),k=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(k=!1);let S=()=>(0,g.Z)(h.current),C=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),R=()=>{ts.mount(C(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},T=(0,y.Z)(()=>{let e=("function"==typeof t?t():t)||S().body;ts.add(C(),e),f.current&&R()}),E=()=>ts.isTopModal(C()),A=(0,y.Z)(e=>{h.current=e,e&&(u&&E()?R():f.current&&tt(f.current,k))}),P=s.useCallback(()=>{ts.remove(C(),k)},[k]);s.useEffect(()=>()=>{P()},[P]),s.useEffect(()=>{u?T():w&&o||P()},[u,P,w,o,T]);let Z=e=>t=>{var n;null===(n=e.onKeyDown)||void 0===n||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&!r&&(t.stopPropagation(),c&&c(t,"escapeKeyDown"))},_=e=>t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,te.Z)(e);delete r.onTransitionEnter,delete r.onTransitionExited;let n={...r,...t};return{role:"presentation",...n,onKeyDown:Z(n),ref:v}},getBackdropProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":!0,...e,onClick:_(e),open:u}},getTransitionProps:()=>{var e,t;return{onEnter:e9(()=>{x(!1),i&&i()},null!==(e=null==l?void 0:l.props.onEnter)&&void 0!==e?e:ta),onExited:e9(()=>{x(!0),a&&a(),o&&P()},null!==(t=null==l?void 0:l.props.onExited)&&void 0!==t?t:ta)}},rootRef:v,portalRef:A,isTopModal:E,exited:b,hasTransition:w}};function tc(e){return(0,N.ZP)("MuiModal",e)}(0,O.Z)("MuiModal",["root","hidden","backdrop"]);let tu=e=>{let{open:t,exited:r,classes:n}=e;return(0,c.Z)({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},tc,n)},td=(0,d.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((0,_.Z)(e=>{let{theme:t}=e;return{position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:e=>{let{ownerState:t}=e;return!t.open&&t.exited},style:{visibility:"hidden"}}]}})),tp=(0,d.ZP)(e8,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),th=s.forwardRef(function(e,t){let r=(0,p.i)({name:"MuiModal",props:e}),{BackdropComponent:n=tp,BackdropProps:o,classes:i,className:a,closeAfterTransition:c=!1,children:u,container:d,component:h,components:f={},componentsProps:m={},disableAutoFocus:g=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:y=!1,disablePortal:b=!1,disableRestoreFocus:x=!1,disableScrollLock:k=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:R,onClose:T,onTransitionEnter:E,onTransitionExited:A,open:P,slotProps:Z={},slots:_={},theme:L,...M}=r,I={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:y,disablePortal:b,disableRestoreFocus:x,disableScrollLock:k,hideBackdrop:S,keepMounted:C},{getRootProps:F,getBackdropProps:z,getTransitionProps:O,portalRef:N,isTopModal:D,exited:B,hasTransition:j}=tl({...I,rootRef:t}),G={...I,exited:B},W=tu(G),U={};if(void 0===u.props.tabIndex&&(U.tabIndex="-1"),j){let{onEnter:e,onExited:t}=O();U.onEnter=e,U.onExited=t}let H={slots:{root:f.Root,backdrop:f.Backdrop,..._},slotProps:{...m,...Z}},[q,V]=(0,ep.Z)("root",{ref:t,elementType:td,externalForwardedProps:{...H,...M,component:h},getSlotProps:F,ownerState:G,className:(0,l.Z)(a,null==W?void 0:W.root,!G.open&&G.exited&&(null==W?void 0:W.hidden))}),[$,K]=(0,ep.Z)("backdrop",{ref:null==o?void 0:o.ref,elementType:n,externalForwardedProps:H,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>z({...e,onClick:t=>{R&&R(t),(null==e?void 0:e.onClick)&&e.onClick(t)}}),className:(0,l.Z)(null==o?void 0:o.className,null==W?void 0:W.backdrop),ownerState:G});return C||P||j&&!B?(0,w.jsx)(e5.Z,{ref:N,container:d,disablePortal:b,children:(0,w.jsxs)(q,{...V,children:[!S&&n?(0,w.jsx)($,{...K}):null,(0,w.jsx)(e2,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:x,isEnabled:D,open:P,children:s.cloneElement(u,U)})]})}):null});var tf=r(93622);function tm(e){return(0,N.ZP)("MuiPopover",e)}function tg(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function tv(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function ty(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?"".concat(e,"px"):e).join(" ")}function tb(e){return"function"==typeof e?e():e}(0,O.Z)("MuiPopover",["root","paper"]);
1let tx=e=>{let{classes:t}=e;return(0,c.Z)({root:["root"],paper:["paper"]},tm,t)},tw=(0,d.ZP)(th,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tk=(0,d.ZP)(tf.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),tS=s.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiPopover"}),{action:n,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:u,className:d,container:h,elevation:f=8,marginThreshold:m=16,open:g,PaperProps:y={},slots:b={},slotProps:k={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:C,transitionDuration:R="auto",TransitionProps:E={},disableScrollLock:A=!1,...P}=r,Z=s.useRef(),_={...r,anchorOrigin:i,anchorReference:c,elevation:f,marginThreshold:m,transformOrigin:S,TransitionComponent:C,transitionDuration:R,TransitionProps:E},L=tx(_),M=s.useCallback(()=>{if("anchorPosition"===c)return a;let e=tb(o),t=(e&&1===e.nodeType?e:eD(Z.current).body).getBoundingClientRect();return{top:t.top+tg(t,i.vertical),left:t.left+tv(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,c]),I=s.useCallback(e=>({vertical:tg(e,S.vertical),horizontal:tv(e,S.horizontal)}),[S.horizontal,S.vertical]),F=s.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},r=I(t);if("none"===c)return{top:null,left:null,transformOrigin:ty(r)};let n=M(),i=n.top-r.vertical,a=n.left-r.horizontal,s=i+t.height,l=a+t.width,u=v(tb(o)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&i<m){let e=i-m;i-=e,r.vertical+=e}else if(null!==m&&s>d){let e=s-d;i-=e,r.vertical+=e}if(null!==m&&a<m){let e=a-m;a-=e,r.horizontal+=e}else if(l>p){let e=l-p;a-=e,r.horizontal+=e}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:ty(r)}},[o,c,M,I,m]),[z,O]=s.useState(g),N=s.useCallback(()=>{let e=Z.current;if(!e)return;let t=F(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,O(!0)},[F]);s.useEffect(()=>(A&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[o,A,N]);let D=()=>{N()},B=()=>{O(!1)};s.useEffect(()=>{g&&N()}),s.useImperativeHandle(n,()=>g?{updatePosition:()=>{N()}}:null,[g,N]),s.useEffect(()=>{if(!g)return;let e=x(()=>{N()}),t=v(tb(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,g,N]);let j=R,G={slots:{transition:C,...b},slotProps:{transition:E,paper:y,...k}},[W,U]=(0,ep.Z)("transition",{elementType:eJ.Z,externalForwardedProps:G,ownerState:_,getSlotProps:e=>({...e,onEntering:(t,r)=>{var n;null===(n=e.onEntering)||void 0===n||n.call(e,t,r),D()},onExited:t=>{var r;null===(r=e.onExited)||void 0===r||r.call(e,t),B()}}),additionalProps:{appear:!0,in:g}});"auto"!==R||W.muiSupportAuto||(j=void 0);let H=h||(o?eD(tb(o)).body:void 0),[q,{slots:V,slotProps:$,...K}]=(0,ep.Z)("root",{ref:t,elementType:tw,externalForwardedProps:{...G,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:function(e,t){if(!e)return t;if("function"==typeof e||"function"==typeof t)return r=>{let n="function"==typeof t?t(r):t,o="function"==typeof e?e({...r,...n}):e,i=(0,l.Z)(null==r?void 0:r.className,null==n?void 0:n.className,null==o?void 0:o.className);return{...n,...o,...!!i&&{className:i},...(null==n?void 0:n.style)&&(null==o?void 0:o.style)&&{style:{...n.style,...o.style}},...(null==n?void 0:n.sx)&&(null==o?void 0:o.sx)&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]}}};let r=(0,l.Z)(null==t?void 0:t.className,null==e?void 0:e.className);return{...t,...e,...!!r&&{className:r},...(null==t?void 0:t.style)&&(null==e?void 0:e.style)&&{style:{...t.style,...e.style}},...(null==t?void 0:t.sx)&&(null==e?void 0:e.sx)&&{sx:[...Array.isArray(t.sx)?t.sx:[t.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}("function"==typeof k.backdrop?k.backdrop(_):k.backdrop,{invisible:!0})},container:H,open:g},ownerState:_,className:(0,l.Z)(L.root,d)}),[Y,X]=(0,ep.Z)("paper",{ref:Z,className:L.paper,elementType:tk,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:z?void 0:{opacity:0}
1},ownerState:_});return(0,w.jsx)(q,{...K,...!(0,T.Z)(q)&&{slots:V,slotProps:$,disableScrollLock:A},children:(0,w.jsx)(W,{...U,timeout:j,children:(0,w.jsx)(Y,{...X,children:u})})})});function tC(e){return(0,N.ZP)("MuiMenu",e)}(0,O.Z)("MuiMenu",["root","paper","list"]);let tR={vertical:"top",horizontal:"right"},tT={vertical:"top",horizontal:"left"},tE=e=>{let{classes:t}=e;return(0,c.Z)({root:["root"],paper:["paper"],list:["list"]},tC,t)},tA=(0,d.ZP)(tS,{shouldForwardProp:e=>(0,$.Z)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tP=(0,d.ZP)(tk,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tZ=(0,d.ZP)(eQ,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),t_=s.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiMenu"}),{autoFocus:n=!0,children:o,className:i,disableAutoFocusItem:a=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:h={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:g,...v}={},variant:y="selectedMenu",slots:b={},slotProps:x={},...k}=r,S=(0,eB.V)(),C={...r,autoFocus:n,disableAutoFocusItem:a,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:m,TransitionProps:v,variant:y},R=tE(C),T=n&&!a&&d,E=s.useRef(null),A=(e,t)=>{E.current&&E.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),g&&g(e,t)},P=e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},Z=-1;s.Children.map(o,(e,t)=>{s.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected?Z=t:-1!==Z||(Z=t)))});let _={slots:b,slotProps:{list:c,transition:v,paper:h,...x}},L=(0,ej.Z)({elementType:b.root,externalSlotProps:x.root,ownerState:C,className:[R.root,i]}),[M,I]=(0,ep.Z)("paper",{className:R.paper,elementType:tP,externalForwardedProps:_,shouldForwardComponentProp:!0,ownerState:C}),[F,z]=(0,ep.Z)("list",{className:(0,l.Z)(R.list,c.className),elementType:tZ,shouldForwardComponentProp:!0,externalForwardedProps:_,getSlotProps:e=>({...e,onKeyDown:t=>{var r;P(t),null===(r=e.onKeyDown)||void 0===r||r.call(e,t)}}),ownerState:C}),O="function"==typeof _.slotProps.transition?_.slotProps.transition(C):_.slotProps.transition;return(0,w.jsx)(tA,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?tR:tT,slots:{root:b.root,paper:M,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:L,paper:I,backdrop:"function"==typeof x.backdrop?x.backdrop(C):x.backdrop,transition:{...O,onEntering:function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];A(...r),null==O||null===(e=O.onEntering)||void 0===e||e.call(O,...r)}}},open:d,ref:t,transitionDuration:m,ownerState:C,...k,classes:f,children:(0,w.jsx)(F,{actions:E,autoFocus:n&&(-1===Z||a),autoFocusItem:T,variant:y,...z,children:o})})});function tL(e){return(0,N.ZP)("MuiNativeSelect",e)}let tM=(0,O.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tI=e=>{let{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,s={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon".concat((0,L.Z)(r)),i&&"iconOpen",n&&"disabled"]};return(0,c.Z)(s,tL,t)},tF=(0,d.ZP)("select",{name:"MuiNativeSelect"})(e=>{let{theme:t}=e;return{MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},["&.".concat(tM.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:e=>{let{ownerState:t}=e;return"filled"!==t.variant&&"outlined"!==t.variant},style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]}}),tz=(0,d.ZP)(tF,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:$.Z,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&.".concat(tM.multiple)]:t.multiple}]}})({}),tO=(0,d.ZP)("svg",{name:"MuiNativeSelect"})(e=>{let{theme:t}=e;return{position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,["&.".concat(tM.disabled)]:{color:(t.vars||t).palette.action.disabled},variants:[{props:e=>{let{ownerState:t}=e;return t.open},style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]}}),tN=(0,d.ZP)(tO,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,L.Z)(r.variant))],r.open&&t.iconOpen]}})({}),tD=s.forwardRef(function(e,t){let{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:c="standard",...u}=e,d={...e,disabled:n,variant:c,error:o},p=tI(d);return(0,w.jsxs)(s.Fragment,{children:[(0,w.jsx)(tz,{ownerState:d,className:(0,l.Z)(p.select,r),disabled:n,ref:a||t,...u}),e.multiple?null:(0,w.jsx)(tN,{as:i,ownerState:d,className:p.icon})]})});var tB=r(83608),tj=r(82417);function tG(e){return(0,N.ZP)("MuiSelect",e)}let tW=(0,O.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tU=(0,d.ZP)(tF,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["&.".concat(tW.select)]:t.select},{["&.".concat(tW.select)]:t[r.variant]},{["&.".concat(tW.error)]:t.error},{["&.".concat(tW.multiple)]:t.multiple}]}})({["&.".concat(tW.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),tH=(0,d.ZP)(tO,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,L.Z)(r.variant))],r.open&&t.iconOpen]}})({}),tq=(0,d.ZP)("input",{shouldForwardProp:e=>(0,tB.Z)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function tV(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}let t$=e=>{let{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e,s={select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon".concat((0,L.Z)(r)),i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,c.Z)(s,tG,t)},tK=s.forwardRef(function(e,t){var r,n;let o,i,c;let{"aria-describedby":d,"aria-label":p,autoFocus:h,autoWidth:m,children:g,className:v,defaultOpen:y,defaultValue:b,disabled:x,displayEmpty:k,error:S=!1,IconComponent:C,inputRef:R,labelId:T,MenuProps:E={},multiple:A,name:P,onBlur:Z,onChange:_,onClose:L,onFocus:I,onOpen:F,open:O,readOnly:N,renderValue:D,required:B,SelectDisplayProps:j={},tabIndex:G,type:W,value:U,variant:H="standard",...q}=e,[V,$]=(0,tj.Z)({controlled:U,default:b,name:"Select"}),[K,Y]=(0,tj.Z)({controlled:O,default:y,name:"Select"}),X=s.useRef(null),Q=s.useRef(null),[J,ee]=s.useState(null),{current:et}=s.useRef(null!=O),[er,en]=s.useState(),eo=(0,M.Z)(t,R),ei=s.useCallback(e=>{Q.current=e,e&&ee(e)},[]),ea=null==J?void 0:J.parentNode;s.useImperativeHandle(eo,()=>({focus:()=>{Q.current.focus()},node:X.current,value:V}
1),[V]),s.useEffect(()=>{y&&K&&J&&!et&&(en(m?null:ea.clientWidth),Q.current.focus())},[J,m]),s.useEffect(()=>{h&&Q.current.focus()},[h]),s.useEffect(()=>{if(!T)return;let e=eD(Q.current).getElementById(T);if(e){let t=()=>{getSelection().isCollapsed&&Q.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[T]);let es=(e,t)=>{e?F&&F(t):L&&L(t),et||(en(m?null:ea.clientWidth),Y(e))},el=s.Children.toArray(g),ec=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(A){r=Array.isArray(V)?V.slice():[];let t=V.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),V!==r&&($(r),_)){let n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:P}}),_(o,e)}A||es(!1,t)}},eu=null!==J&&K;delete q["aria-invalid"];let ed=[],ep=!1;(z({value:V})||k)&&(D?o=D(V):ep=!0);let eh=el.map(e=>{let t;if(!s.isValidElement(e))return null;if(A){if(!Array.isArray(V))throw Error((0,f.Z)(2));(t=V.some(t=>tV(t,e.props.value)))&&ep&&ed.push(e.props.children)}else(t=tV(V,e.props.value))&&ep&&(i=e.props.children);return s.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ec(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});ep&&(o=A?0===ed.length?null:ed.reduce((e,t,r)=>(e.push(t),r<ed.length-1&&e.push(", "),e),[]):i);let ef=er;!m&&et&&J&&(ef=ea.clientWidth),c=void 0!==G?G:x?null:0;let em=j.id||(P?"mui-component-select-".concat(P):void 0),eg={...e,variant:H,value:V,open:eu,error:S},ev=t$(eg),ey={...E.PaperProps,...null===(r=E.slotProps)||void 0===r?void 0:r.paper},eb=(0,u.Z)();return(0,w.jsxs)(s.Fragment,{children:[(0,w.jsx)(tU,{as:"div",ref:ei,tabIndex:c,role:"combobox","aria-controls":eu?eb:void 0,"aria-disabled":x?"true":void 0,"aria-expanded":eu?"true":"false","aria-haspopup":"listbox","aria-label":p,"aria-labelledby":[T,em].filter(Boolean).join(" ")||void 0,"aria-describedby":d,"aria-required":B?"true":void 0,"aria-invalid":S?"true":void 0,onKeyDown:e=>{!N&&[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),es(!0,e))},onMouseDown:x||N?null:e=>{0===e.button&&(e.preventDefault(),Q.current.focus(),es(!0,e))},onBlur:e=>{!eu&&Z&&(Object.defineProperty(e,"target",{writable:!0,value:{value:V,name:P}}),Z(e))},onFocus:I,...j,ownerState:eg,className:(0,l.Z)(j.className,ev.select,v),id:em,children:null!=(n=o)&&("string"!=typeof n||n.trim())?o:a||(a=(0,w.jsx)("span",{className:"notranslate","aria-hidden":!0,children:"​"}))}),(0,w.jsx)(tq,{"aria-invalid":S,value:Array.isArray(V)?V.join(","):V,name:P,ref:X,"aria-hidden":!0,onChange:e=>{let t=el.find(t=>t.props.value===e.target.value);void 0!==t&&($(t.props.value),_&&_(e,t))},tabIndex:-1,disabled:x,className:ev.nativeInput,autoFocus:h,required:B,...q,ownerState:eg}),(0,w.jsx)(tH,{as:C,className:ev.icon,ownerState:eg}),(0,w.jsx)(t_,{id:"menu-".concat(P||""),anchorEl:ea,open:eu,onClose:e=>{es(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...E,slotProps:{...E.slotProps,list:{"aria-labelledby":T,role:"listbox","aria-multiselectable":A?"true":void 0,disableListWrap:!0,id:eb,...E.MenuListProps},paper:{...ey,style:{minWidth:ef,...null!=ey?ey.style:null}}},children:eh})]})});var tY=(0,r(5201).Z)((0,w.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");let tX=e=>{let{classes:t}=e,r=(0,c.Z)({root:["root"]},tG,t);return{...t,...r}},tQ={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,$.Z)(e)&&"variant"!==e,slot:"Root"},tJ=(0,d.ZP)(et,tQ)(""),t0=(0,d.ZP)(ev,tQ)(""),t1=(0,d.ZP)(es,tQ)(""),t2=s.forwardRef(function(e,t){let r=(0,p.i)({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=tY,id:f,input:m,inputProps:g,label:v,labelId:y,MenuProps:b,multiple:x=!1,native:k=!1,onClose:S,onOpen:C,open:R,renderValue:T,SelectDisplayProps:A,variant:Z="outlined",..._}=r,L=k?tD:tK,I=E({props:r,muiFormControl:(0,P.Z)(),states:["variant","error"]}),F=I.variant||Z,z={...r,variant:F,classes:i},O=tX(z),{root:N,...D}=O,B=m||({standard:(0,w.jsx)(tJ,{ownerState:z}),outlined:(0,w.jsx)(t0,{label:v,ownerState:z}),filled:(0,w.jsx)(t1,{ownerState:z})})[F],j=(0,M.Z)(t,(0,eN.Z)(B));return(0,w.jsx)(s.Fragment,{children:s.cloneElement(B,{inputComponent:L,inputProps:{children:o,error:I.error,IconComponent:d,variant:F,type:void 0,multiple:x,...k?{id:f}:{autoWidth:n,defaultOpen:c,displayEmpty:u,labelId:y,MenuProps:b,onClose:S,onOpen:C,open:R,renderValue:T,SelectDisplayProps:{id:f,...A}},...g,classes:g?(0,h.Z)(D,g.classes):D,...m?m.props.inputProps:{}},...(x&&k||u)&&"outlined"===F?{notched:!0}:{},ref:j,className:(0,l.Z)(B.props.className,a,O.root),...!m&&{variant:F},..._})})});function t5(e){return(0,N.ZP)("MuiTextField",e)}t2.muiName="Select",(0,O.Z)("MuiTextField",["root"]);let t3={standard:et,filled:es,outlined:ev},t4=e=>{let{classes:t}=e;return(0,c.Z)({root:["root"]},t5,t)}
1,t6=(0,d.ZP)(eL,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var t7=s.forwardRef(function(e,t){let r=(0,p.i)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:c,disabled:d=!1,error:h=!1,FormHelperTextProps:f,fullWidth:m=!1,helperText:g,id:v,InputLabelProps:y,inputProps:b,InputProps:x,inputRef:k,label:S,maxRows:C,minRows:R,multiline:T=!1,name:E,onBlur:A,onChange:P,onFocus:Z,placeholder:_,required:L=!1,rows:M,select:I=!1,SelectProps:F,slots:z={},slotProps:O={},type:N,value:D,variant:B="outlined",...j}=r,G={...r,autoFocus:o,color:s,disabled:d,error:h,fullWidth:m,multiline:T,required:L,select:I,variant:B},W=t4(G),U=(0,u.Z)(v),H=g&&U?"".concat(U,"-helper-text"):void 0,q=S&&U?"".concat(U,"-label"):void 0,V=t3[B],$={slots:z,slotProps:{input:x,inputLabel:y,htmlInput:b,formHelperText:f,select:F,...O}},K={},Y=$.slotProps.inputLabel;"outlined"===B&&(Y&&void 0!==Y.shrink&&(K.notched=Y.shrink),K.label=S),I&&(F&&F.native||(K.id=void 0),K["aria-describedby"]=void 0);let[X,Q]=(0,ep.Z)("root",{elementType:t6,shouldForwardComponentProp:!0,externalForwardedProps:{...$,...j},ownerState:G,className:(0,l.Z)(W.root,a),ref:t,additionalProps:{disabled:d,error:h,fullWidth:m,required:L,color:s,variant:B}}),[J,ee]=(0,ep.Z)("input",{elementType:V,externalForwardedProps:$,additionalProps:K,ownerState:G}),[et,er]=(0,ep.Z)("inputLabel",{elementType:eE,externalForwardedProps:$,ownerState:G}),[en,eo]=(0,ep.Z)("htmlInput",{elementType:"input",externalForwardedProps:$,ownerState:G}),[ei,ea]=(0,ep.Z)("formHelperText",{elementType:eO,externalForwardedProps:$,ownerState:G}),[es,el]=(0,ep.Z)("select",{elementType:t2,externalForwardedProps:$,ownerState:G}),ec=(0,w.jsx)(J,{"aria-describedby":H,autoComplete:n,autoFocus:o,defaultValue:c,fullWidth:m,multiline:T,name:E,rows:M,maxRows:C,minRows:R,type:N,value:D,id:U,inputRef:k,onBlur:A,onChange:P,onFocus:Z,placeholder:_,inputProps:eo,slots:{input:z.htmlInput?en:void 0},...ee});return(0,w.jsxs)(X,{...Q,children:[null!=S&&""!==S&&(0,w.jsx)(et,{htmlFor:U,id:q,...er,children:S}),I?(0,w.jsx)(es,{"aria-describedby":H,id:U,labelId:q,value:D,input:ec,...el,children:i}):ec,g&&(0,w.jsx)(ei,{id:H,...ea,children:g})]})})},79080:function(e,t,r){"use strict";r.d(t,{Z:function(){return e1}});var n,o,i,a,s,l=r(7653),c=r(10607),u=r(27294),d=r(3838),p=r(22243),h=r(98163),f=r(66509),m=r(97023),g=r(71853),v=r(97502),y=r(36757),b=r(34599),x=r(46401),w=r(78212),k=r(67993),S=r(10779),C=r(1987);function R(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function T(e){var t=R(e).Element;return e instanceof t||e instanceof Element}function E(e){var t=R(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A(e){if("undefined"==typeof ShadowRoot)return!1;var t=R(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var P=Math.max,Z=Math.min,_=Math.round;function L(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function M(){return!/^((?!chrome|android).)*safari/i.test(L())}function I(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&E(e)&&(o=e.offsetWidth>0&&_(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_(n.height)/e.offsetHeight||1);var a=(T(e)?R(e):window).visualViewport,s=!M()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,u=n.width/o,d=n.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function F(e){var t=R(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function z(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){return((T(e)?e.ownerDocument:e.document)||window.document).documentElement}function N(e){return I(O(e)).left+F(e).scrollLeft}function D(e){return R(e).getComputedStyle(e)}function B(e){var t=D(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function j(e){var t=I(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function G(e){return"html"===z(e)?e:e.assignedSlot||e.parentNode||(A(e)?e.host:null)||O(e)}function W(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(z(t))>=0?t.ownerDocument.body:E(t)&&B(t)?t:e(G(t))}(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=R(n),a=o?[i].concat(i.visualVie
vendor: 15,133 bytes, line 1
1wport||[],B(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(W(G(a)))}function U(e){return E(e)&&"fixed"!==D(e).position?e.offsetParent:null}function H(e){for(var t=R(e),r=U(e);r&&["table","td","th"].indexOf(z(r))>=0&&"static"===D(r).position;)r=U(r);return r&&("html"===z(r)||"body"===z(r)&&"static"===D(r).position)?t:r||function(e){var t=/firefox/i.test(L());if(/Trident/i.test(L())&&E(e)&&"fixed"===D(e).position)return null;var r=G(e);for(A(r)&&(r=r.host);E(r)&&0>["html","body"].indexOf(z(r));){var n=D(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var q="bottom",V="right",$="left",K="auto",Y=["top",q,V,$],X="start",Q="viewport",J="popper",ee=Y.reduce(function(e,t){return e.concat([t+"-"+X,t+"-end"])},[]),et=[].concat(Y,[K]).reduce(function(e,t){return e.concat([t,t+"-"+X,t+"-end"])},[]),er=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],en={placement:"bottom",modifiers:[],strategy:"absolute"};function eo(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var ei={passive:!0};function ea(e){return e.split("-")[0]}function es(e){return e.split("-")[1]}function el(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ec(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?ea(o):null,a=o?es(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case"top":t={x:s,y:r.y-n.height};break;case q:t={x:s,y:r.y+r.height};break;case V:t={x:r.x+r.width,y:l};break;case $:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?el(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case X:t[c]=t[c]-(r[u]/2-n[u]/2);break;case"end":t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var eu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ed(e){var t,r,n,o,i,a,s,l=e.popper,c=e.popperRect,u=e.placement,d=e.variation,p=e.offsets,h=e.position,f=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,v=e.isFixed,y=p.x,b=void 0===y?0:y,x=p.y,w=void 0===x?0:x,k="function"==typeof g?g({x:b,y:w}):{x:b,y:w};b=k.x,w=k.y;var S=p.hasOwnProperty("x"),C=p.hasOwnProperty("y"),T=$,E="top",A=window;if(m){var P=H(l),Z="clientHeight",L="clientWidth";P===R(l)&&"static"!==D(P=O(l)).position&&"absolute"===h&&(Z="scrollHeight",L="scrollWidth"),("top"===u||(u===$||u===V)&&"end"===d)&&(E=q,w-=(v&&P===A&&A.visualViewport?A.visualViewport.height:P[Z])-c.height,w*=f?1:-1),(u===$||("top"===u||u===q)&&"end"===d)&&(T=V,b-=(v&&P===A&&A.visualViewport?A.visualViewport.width:P[L])-c.width,b*=f?1:-1)}var M=Object.assign({position:h},m&&eu),I=!0===g?(t={x:b,y:w},r=R(l),n=t.x,o=t.y,{x:_(n*(i=r.devicePixelRatio||1))/i||0,y:_(o*i)/i||0}):{x:b,y:w};return(b=I.x,w=I.y,f)?Object.assign({},M,((s={})[E]=C?"0":"",s[T]=S?"0":"",s.transform=1>=(A.devicePixelRatio||1)?"translate("+b+"px, "+w+"px)":"translate3d("+b+"px, "+w+"px, 0)",s)):Object.assign({},M,((a={})[E]=C?w+"px":"",a[T]=S?b+"px":"",a.transform="",a))}var ep={left:"right",right:"left",bottom:"top",top:"bottom"};function eh(e){return e.replace(/left|right|bottom|top/g,function(e){return ep[e]})}var ef={start:"end",end:"start"};function em(e){return e.replace(/start|end/g,function(e){return ef[e]})}function eg(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&A(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ev(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ey(e,t,r){var n,o,i,a,s,l,c,u,d,p;return t===Q?ev(function(e,t){var r=R(e),n=O(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=M();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+N(e),y:l}}(e,r)):T(t)?((n=I(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):ev((o=O(e),a=O(o),s=F(o),l=null==(i=o.ownerDocument)?void 0:i.body,c=P(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=P(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-s.scrollLeft+N(o),p=-s.scrollTop,"rtl"===D(l||a).direction&&(d+=P(a.clientWidth,l?l.clientWidth:0)-c),{width:c,height:u,x:d,y:p}))}function eb(){return{top:0,right:0,bottom:0,left:0}}function ex(e){return Object.assign({},eb(),e)}function ew(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ek(e,t){void 0===t&&(t={});var r,n,o,i,a,s,l,c,u=t,d=u.placement,p=void 0===d?e.placement:d,h=u.strategy,f=void 0===h?e.strategy:h,m=u.boundary,g=u.rootBoundary,v=u.elementContext,y=void 0===v?J:v,b=u.altBoundary,x=u.padding,w=void 0===x?0:x,k=ex("number"!=typeof w?w:ew(w,Y)),S=e.rects.popper,C=e.elements[void 0!==b&&b?y===J?"reference":J:y],R=(r=T(C)?C:C.contextElement||O(e.elements.popper),n=void 0===m?"clippingParents":m,o=void 0===g?Q:g,l=(s=[].concat("clippingParents"===n?(i=W(G(r)),T(a=["absolute","fixed"].indexOf(D(r).position)>=0&&E(r)?H(r):r)?i.filter(function(e){return T(e)&&eg(e,a)&&"body"!==z(e)}):[]):[].concat(n),[o]))[0],(c=s.reduce(function(e,t){var n=ey(r,t,f);return e.top=P(n.top,e.top),e.right=Z(n.right,e.right),e.bottom=Z(n.bottom,e.bottom),e.left=P(n.left,e.left),e},ey(r,l,f))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),A=I(e.elements.reference),_=ec({reference:A,element:S,strategy:"absolute",placement:p}),L=ev(Object.assign({},S,_)),M=y===J?L:A,F={top:R.top-M.top+k.top,bottom:M.bottom-R.bottom+k.bottom,left:R.left-M.left+k.left,right:M.right-R.right+k.right},N=e.modifiersData.offset;if(y===J&&N){var B=N[p];Object.keys(F).forEach(function(e){var t=[V,q].indexOf(e)>=0?1:-1,r=["top",q].indexOf(e)>=0?"y":"x";F[e]+=B[r]*t})}return F}function eS(e,t,r){return P(e,Z(t,r))}function eC(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function eR(e){return["top",V,q,$].some(function(t){return e[t]>=0})}var eT=(i=void 0===(o=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=R(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,ei)}),s&&l.addEventListener("resize",r.update,ei),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,ei)}),s&&l.removeEventListener("resize",r.update,ei)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ec({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,r=e.options,n=r.gpuAcceleration,o=r.adaptive,i=r.roundOffsets,a=void 0===i||i,s={placement:ea(t.placement),variation:es(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ed(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ed(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];E(o)&&z(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});E(n)&&z(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=et.reduce(function(e,r){var n,o,a,s,l,c;return e[r]=(n=t.rects,a=[$,"top"].indexOf(o=ea(r))>=0?-1:1,l=(s="function"==typeof i?i(Object.assign({},n,{placement:r})):i)[0],c=s[1],l=l||0,c=(c||0)*a,[$,V].indexOf(o)>=0?{x:c,y:l}:{x:l,y:c}),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[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,f=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,v=ea(g)===g,y=l||(v||!f?[eh(g)]:function(e){if(ea(e)===K)return[];var t=eh(e);return[em(e),t,em(t)]}(g)),b=[g].concat(y).reduce(function(e,r){var n,o,i,a,s,l,p,h,g,v,y,b;return e.concat(ea(r)===K?(o=(n={placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}).placement,i=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,h=void 0===(p=n.allowedAutoPlacements)?et:p,0===(y=(v=(g=es(o))?l?ee:ee.filter(function(e){return es(e)===g}):Y).filter(function(e){return h.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,r){return e[r]=ek(t,{placement:r,boundary:i,rootBoundary:a,padding:s})[ea(r)],e},{})).sort(function(e,t){return b[e]-b[t]})):r)},[]),x=t.rects.reference,w=t.rects.popper,k=new Map,S=!0,C=b[0],R=0;R<b.length;R++){var T=b[R],E=ea(T),A=es(T)===X,P=["top",q].indexOf(E)>=0,Z=P?"width":"height",_=ek(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),L=P?A?V:$:A?q:"top";x[Z]>w[Z]&&(L=eh(L));var M=eh(L),I=[];if(i&&I.push(_[E]<=0),s&&I.push(_[L]<=0,_[M]<=0),I.every(function(e){return e})){C=T,S=!1;break}k.set(T,I)}if(S)for(var F=f?3:1,z=function(e){var t=b.find(function(t){var r=k.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},O=F;O>0&&"break"!==z(O);O--);t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=r.altAxis,a=r.boundary,s=r.rootBoundary,l=r.altBoundary,c=r.padding,u=r.tether,d=void 0===u||u,p=r.tetherOffset,h=void 0===p?0:p,f=ek(t,{boundary:a,rootBoundary:s,padding:c,altBoundary:l}),m=ea(t.placement),g=es(t.placement),v=!g,y=el(m),b="x"===y?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,k=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,C="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(x){if(void 0===o||o){var E,A="y"===y?"top":$,_="y"===y?q:V,L="y"===y?"height":"width",M=x[y],I=M+f[A],F=M-f[_],z=d?-k[L]/2:0,O=g===X?w[L]:k[L],N=g===X?-k[L]:-w[L],D=t.elements.arrow,B=d&&D?j(D):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eb(),W=G[A],U=G[_],K=eS(0,w[L],B[L]),Y=v?w[L]/2-z-K-W-C.mainAxis:O-K-W-C.mainAxis,Q=v?-w[L]/2+z+K+U+C.mainAxis:N+K+U+C.mainAxis,J=t.elements.arrow&&H(t.elements.arrow),ee=J?"y"===y?J.clientTop||0:J.clientLeft||0:0,et=null!=(E=null==R?void 0:R[y])?E:0,er=eS(d?Z(I,M+Y-et-ee):I,M,d?P(F,M+Q-et):F);x[y]=er,T[y]=er-M}if(void 0!==i&&i){var en,eo,ei="x"===y?"top":$,ec="x"===y?q:V,eu=x[b],ed="y"===b?"height":"width",ep=eu+f[ei],eh=eu-f[ec],ef=-1!==["top",$].indexOf(m),em=null!=(eo=null==R?void 0:R[b])?eo:0,eg=ef?ep:eu-w[ed]-k[ed]-em+C.altAxis,ev=ef?eu+w[ed]+k[ed]-em-C.altAxis:eh,ey=d&&ef?(en=eS(eg,eu,ev))>ev?ev:en:eS(d?eg:ep,eu,d?ev:eh);x[b]=ey,T[b]=ey-eu}t.modifiersData[n]=T}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,o=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=ea(n.placement),c=el(l),u=[$,V].indexOf(l)>=0?"height":"width";if(a&&s){var d=ex("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:ew(t,Y)),p=j(a),h="y"===c?"top":$,f="y"===c?q:V,m=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],g=s[c]-n.rects.reference[c],v=H(a),y=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,b=d[h],x=y-p[u]-d[f],w=y/2-p[u]/2+(m/2-g/2),k=eS(b,w,x);n.modifiersData[o]=((r={})[c]=k,r.centerOffset=k-w,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eg(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ek(t,{elementContext:"reference"}),s=ek(t,{altBoundary:!0}),l=eC(a,n),c=eC(s,o,i),u=eR(l),d=eR(c);t.modifiersData[r]={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})}}]}).defaultModifiers)?[]:o,s=void 0===(a=n.defaultOptions)?en:a,function(e,t,r){void 0===r&&(r=s);var n,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},en,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var n,o,c,p,h,f="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},s,a.options,f),a.scrollParents={reference:T(e)?W(e):e.contextElement?W(e.contextElement):[],popper:W(t)};var m=(o=Object.keys(n=[].concat(i,a.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),c=new Map,p=new Set,h=[],o.forEach(function(e){c.set(e.name,e)}),o.forEach(function(e){p.has(e.name)||function e(t){p.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEac
1h(function(t){if(!p.has(t)){var r=c.get(t);r&&e(r)}}),h.push(t)}(e)}),er.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=m.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var o=n({state:a,name:t,instance:u,options:void 0===r?{}:r});l.push(o||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e,t,r,n,o,i,s,l,d,p,h,f,m=a.elements,g=m.reference,v=m.popper;if(eo(g,v)){a.rects={reference:(t=H(v),r="fixed"===a.options.strategy,n=E(t),l=E(t)&&(i=_((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=_(o.height)/t.offsetHeight||1,1!==i||1!==s),d=O(t),p=I(g,l,r),h={scrollLeft:0,scrollTop:0},f={x:0,y:0},(n||!n&&!r)&&(("body"!==z(t)||B(d))&&(h=(e=t)!==R(e)&&E(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:F(e)),E(t)?(f=I(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):d&&(f.x=N(d))),{x:p.left+h.scrollLeft-f.x,y:p.top+h.scrollTop-f.y,width:p.width,height:p.height}),popper:j(v)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var y=0;y<a.orderedModifiers.length;y++){if(!0===a.reset){a.reset=!1,y=-1;continue}var b=a.orderedModifiers[y],x=b.fn,w=b.options,k=void 0===w?{}:w,S=b.name;"function"==typeof x&&(a=x({state:a,options:k,name:S,instance:u})||a)}}}},update:(n=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(n())})})),o}),destroy:function(){d(),c=!0}};if(!eo(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}),eE=r(60905),eA=r(58561),eP=r(14573),eZ=r(37501);function e_(e){return(0,eZ.ZP)("MuiPopper",e)}(0,eP.Z)("MuiPopper",["root"]);var eL=r(27573);function eM(e){return"function"==typeof e?e():e}let eI=e=>{let{classes:t}=e;return(0,d.Z)({root:["root"]},e_,t)},eF={},ez=l.forwardRef(function(e,t){var r;let{anchorEl:n,children:o,direction:i,disablePortal:a,modifiers:s,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:f={},TransitionProps:m,ownerState:g,...v}=e,y=l.useRef(null),b=(0,k.Z)(y,t),x=l.useRef(null),w=(0,k.Z)(x,p),C=l.useRef(w);(0,S.Z)(()=>{C.current=w},[w]),l.useImperativeHandle(p,()=>x.current,[]);let R=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,i),[T,E]=l.useState(R),[A,P]=l.useState(eM(n));l.useEffect(()=>{x.current&&x.current.forceUpdate()}),l.useEffect(()=>{n&&P(eM(n))},[n]),(0,S.Z)(()=>{if(!A||!c)return;let e=e=>{E(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:t=>{let{state:r}=t;e(r)}}];null!=s&&(t=t.concat(s)),d&&null!=d.modifiers&&(t=t.concat(d.modifiers));let r=eT(A,y.current,{placement:R,...d,modifiers:t});return C.current(r),()=>{r.destroy(),C.current(null)}},[A,a,s,c,d,R]);let Z={placement:T};null!==m&&(Z.TransitionProps=m);let _=eI(e),L=null!==(r=f.root)&&void 0!==r?r:"div",M=(0,eE.Z)({elementType:L,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:_.root});return(0,eL.jsx)(L,{...M,children:"function"==typeof o?o(Z):o})}),eO=l.forwardRef(function(e,t){let r;let{anchorEl:n,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:h=eF,popperRef:f,style:m,transition:g=!1,slotProps:v={},slots:y={},...b}=e,[x,w]=l.useState(!0);if(!c&&!d&&(!g||x))return null;if(i)r=i;else if(n){let e=eM(n);r=e&&void 0!==e.nodeType?(0,C.Z)(e).body:(0,C.Z)(null).body}let k=!d&&c&&(!g||x)?"none":void 0,S=g?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return(0,eL.jsx)(eA.Z,{disablePortal:s,container:r,children:(0,eL.jsx)(ez,{anchorEl:n,direction:a,disablePortal:s,modifiers:u,ref:t,open:g?!x:d,placement:p,popperOptions:h,popperRef:f,slotProps:v,slots:y,...b,style:{position:"fixed",top:0,left:0,display:k,...m},TransitionProps:S,children:o})})}),eN=(0,g.ZP)(eO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eD=l.forwardRef(function(e,t){var r;
1let n=(0,h.V)(),{anchorEl:o,component:i,components:a,componentsProps:s,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:m,popperRef:g,transition:v,slots:y,slotProps:x,...w}=(0,b.i)({props:e,name:"MuiPopper"}),k=null!==(r=null==y?void 0:y.root)&&void 0!==r?r:null==a?void 0:a.Root,S={anchorEl:o,container:l,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:m,popperRef:g,transition:v,...w};return(0,eL.jsx)(eN,{as:i,direction:n?"rtl":"ltr",slots:{root:k},slotProps:null!=x?x:s,...S,ref:t})});var eB=r(34805),ej=r(11406),eG=r(36760),eW=r(82417),eU=r(84394);function eH(e){return(0,eZ.ZP)("MuiTooltip",e)}let eq=(0,eP.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),eV=e=>{let{classes:t,disableInteractive:r,arrow:n,touch:o,placement:i}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,x.Z)(i.split("-")[0]))],arrow:["arrow"]};return(0,d.Z)(a,eH,t)},e$=(0,g.ZP)(eD,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((0,y.Z)(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableInteractive},style:{pointerEvents:"auto"}},{props:e=>{let{open:t}=e;return!t},style:{pointerEvents:"none"}},{props:e=>{let{ownerState:t}=e;return t.arrow},style:{['&[data-popper-placement*="bottom"] .'.concat(eq.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(eq.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(eq.arrow)]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},['&[data-popper-placement*="left"] .'.concat(eq.arrow)]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!t.isRtl},style:{['&[data-popper-placement*="right"] .'.concat(eq.arrow)]:{left:0,marginLeft:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!!t.isRtl},style:{['&[data-popper-placement*="right"] .'.concat(eq.arrow)]:{right:0,marginRight:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!t.isRtl},style:{['&[data-popper-placement*="left"] .'.concat(eq.arrow)]:{right:0,marginRight:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!!t.isRtl},style:{['&[data-popper-placement*="left"] .'.concat(eq.arrow)]:{left:0,marginLeft:"-0.71em"}}}]}})),eK=(0,g.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,x.Z)(r.placement.split("-")[0]))]]}})((0,y.Z)(e=>{let{theme:t}=e;return{backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,p.Fq)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[".".concat(eq.popper,'[data-popper-placement*="left"] &')]:{transformOrigin:"right center"},[".".concat(eq.popper,'[data-popper-placement*="right"] &')]:{transformOrigin:"left center"},[".".concat(eq.popper,'[data-popper-placement*="top"] &')]:{transformOrigin:"center bottom",marginBottom:"14px"},[".".concat(eq.popper,'[data-popper-placement*="bottom"] &')]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:e=>{let{ownerState:t}=e;return t.arrow},style:{position:"relative",margin:0}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(Math.round(16/14*1e5)/1e5,"em"),fontWeight:t.typography.fontWeightRegular}},{props:e=>{let{ownerState:t}=e;return!t.isRtl},style:{[".".concat(eq.popper,'[data-popper-placement*="left"] &')]:{marginRight:"14px"},[".".concat(eq.popper,'[data-popper-placement*="right"] &')]:{marginLeft:"14px"}}},{props:e=>{let{ownerState:t}=e;return!t.isRtl&&t.touch},style:{[".".concat(eq.popper,'[data-popper-placement*="left"] &')]:{marginRight:"24px"},[".".concat(eq.popper,'[data-popper-placement*="right"] &')]:{marginLeft:"24px"}}},{props:e=>{let{ownerState:t}=e;return!!t.isRtl},style:{[".".concat(eq.popper,'[data-popper-placement*="left"] &')]:{marginLeft:"14px"},[".".concat(eq.popper,'[data-popper-placement*="right"] &')]:{marginRight:"14px"}}},{props:e=>{let{ownerState:t}=e;return!!t.isRtl&&t.touch},style:{[".".concat(eq.popper,'[data-popper-placement*="left"] &')]:{marginLeft:"24px"},[".".concat(eq.popper,'[data-popper-placement*="right"] &')]:{marginRight:"24px"}}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{[".".concat(eq.popper,'[data-popper-placement*="top"] &')]:{marginBottom:"24px"}}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{[".".concat(eq.popper,'[data-popper-placement*="bottom"] &')]:{marginTop:"24px"}}}]}})),eY=(0,g.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,y.Z)(e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,p.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),eX=!1,eQ=new u.V,eJ={x:0,y:0};function e0(e,t){return function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];t&&t(r,...o),e(r,...o)}}var e1=l.forwardRef(function(e,t){var r,n,o;let i=(0,b.i)({props:e,name:"MuiTooltip"}),{arrow:a=!1,children:s,classes:d,components:p={},componentsProps:g={},describeChild:y=!1,disableFocusListener:x=!1,disableHoverListener:k=!1,disableInteractive:S=!1,disableTouchListener:C=!1,enterDelay:R=100,enterNextDelay:T=0,enterTouchDelay:E=700,followCursor:A=!1,id:P,leaveDelay:Z=0,leaveTouchDelay:_=1500,onClose:L,onOpen:M,open:I,placement:F="bottom",PopperComponent:z,PopperProps:O={},slotProps:N={},slots:D={},title:B,TransitionComponent:j,TransitionProps:G,...W}=i,U=l.isValidElement(s)?s:(0,eL.jsx)("span",{children:s}),H=(0,v.Z)(),q=(0,h.V)(),[V,$]=l.useState(),[K,Y]=l.useState(null),X=l.useRef(!1),Q=S||A,J=(0,u.Z)(),ee=(0,u.Z)(),et=(0,u.Z)(),er=(0,u.Z)(),[en,eo]=(0,eW.Z)({controlled:I,default:!1,name:"Tooltip",state:"open"}),ei=en,ea=(0,eG.Z)(P),es=l.useRef(),el=(0,eB.Z)(()=>{void 0!==es.current&&(document.body.style.WebkitUserSelect=es.current,es.current=void 0),er.clear()});l.useEffect(()=>el,[el]);let ec=e=>{eQ.clear(),eX=!0,eo(!0),M&&!ei&&M(e)},eu=(0,eB.Z)(e=>{eQ.start(800+Z,()=>{eX=!1}),eo(!1),L&&ei&&L(e),J.start(H.transitions.duration.shortest,()=>{X.current=!1})}),ed=e=>{X.current&&"touchstart"!==e.type||(V&&V.removeAttribute("title"),ee.clear(),et.clear(),R||eX&&T?ee.start(eX?T:R,()=>{ec(e)}):ec(e))},ep=e=>{ee.clear(),et.start(Z,()=>{eu(e)}
1)},[,eh]=l.useState(!1),ef=e=>{(0,f.Z)(e.target)||(eh(!1),ep(e))},em=e=>{V||$(e.currentTarget),(0,f.Z)(e.target)&&(eh(!0),ed(e))},eg=e=>{X.current=!0;let t=U.props;t.onTouchStart&&t.onTouchStart(e)};l.useEffect(()=>{if(ei)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eu(e)}},[eu,ei]);let ev=(0,ej.Z)((0,m.Z)(U),$,t);B||0===B||(ei=!1);let ey=l.useRef(),eb={},ex="string"==typeof B;y?(eb.title=ei||!ex||k?null:B,eb["aria-describedby"]=ei?ea:null):(eb["aria-label"]=ex?B:null,eb["aria-labelledby"]=ei&&!ex?ea:null);let ew={...eb,...W,...U.props,className:(0,c.Z)(W.className,U.props.className),onTouchStart:eg,ref:ev,...A?{onMouseMove:e=>{let t=U.props;t.onMouseMove&&t.onMouseMove(e),eJ={x:e.clientX,y:e.clientY},ey.current&&ey.current.update()}}:{}},ek={};C||(ew.onTouchStart=e=>{eg(e),et.clear(),J.clear(),el(),es.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",er.start(E,()=>{document.body.style.WebkitUserSelect=es.current,ed(e)})},ew.onTouchEnd=e=>{U.props.onTouchEnd&&U.props.onTouchEnd(e),el(),et.start(_,()=>{eu(e)})}),k||(ew.onMouseOver=e0(ed,ew.onMouseOver),ew.onMouseLeave=e0(ep,ew.onMouseLeave),Q||(ek.onMouseOver=ed,ek.onMouseLeave=ep)),x||(ew.onFocus=e0(em,ew.onFocus),ew.onBlur=e0(ef,ew.onBlur),Q||(ek.onFocus=em,ek.onBlur=ef));let eS={...i,isRtl:q,arrow:a,disableInteractive:Q,placement:F,PopperComponentProp:z,touch:X.current},eC="function"==typeof N.popper?N.popper(eS):N.popper,eR=l.useMemo(()=>{var e,t;let r=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return(null===(e=O.popperOptions)||void 0===e?void 0:e.modifiers)&&(r=r.concat(O.popperOptions.modifiers)),(null==eC?void 0:null===(t=eC.popperOptions)||void 0===t?void 0:t.modifiers)&&(r=r.concat(eC.popperOptions.modifiers)),{...O.popperOptions,...null==eC?void 0:eC.popperOptions,modifiers:r}},[K,O.popperOptions,null==eC?void 0:eC.popperOptions]),eT=eV(eS),eE="function"==typeof N.transition?N.transition(eS):N.transition,eA={slots:{popper:p.Popper,transition:null!==(r=p.Transition)&&void 0!==r?r:j,tooltip:p.Tooltip,arrow:p.Arrow,...D},slotProps:{arrow:null!==(n=N.arrow)&&void 0!==n?n:g.arrow,popper:{...O,...null!=eC?eC:g.popper},tooltip:null!==(o=N.tooltip)&&void 0!==o?o:g.tooltip,transition:{...G,...null!=eE?eE:g.transition}}},[eP,eZ]=(0,eU.Z)("popper",{elementType:e$,externalForwardedProps:eA,ownerState:eS,className:(0,c.Z)(eT.popper,null==O?void 0:O.className)}),[e_,eM]=(0,eU.Z)("transition",{elementType:w.Z,externalForwardedProps:eA,ownerState:eS}),[eI,eF]=(0,eU.Z)("tooltip",{elementType:eK,className:eT.tooltip,externalForwardedProps:eA,ownerState:eS}),[ez,eO]=(0,eU.Z)("arrow",{elementType:eY,className:eT.arrow,externalForwardedProps:eA,ownerState:eS,ref:Y});return(0,eL.jsxs)(l.Fragment,{children:[l.cloneElement(U,ew),(0,eL.jsx)(eP,{as:null!=z?z:eD,placement:F,anchorEl:A?{getBoundingClientRect:()=>({top:eJ.y,left:eJ.x,right:eJ.x,bottom:eJ.y,width:0,height:0})}:V,popperRef:ey,open:!!V&&ei,id:ea,transition:!0,...ek,...eZ,popperOptions:eR,children:e=>{let{TransitionProps:t}=e;return(0,eL.jsx)(e_,{timeout:H.transitions.duration.shorter,...t,...eM,children:(0,eL.jsxs)(eI,{...eF,children:[B,a?(0,eL.jsx)(ez,{...eO}):null]})})}})]})})},47792:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(7653),o=r(10607),i=r(3838),a=r(2888),s=r(71853),l=r(36757),c=r(34599),u=r(46401),d=r(92195),p=r(14573),h=r(37501);function f(e){return(0,h.ZP)("MuiTypography",e)}(0,p.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var m=r(27573);let g={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},v=(0,a.u7)(),y=e=>{let{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:s}=e,l={root:["root",a,"inherit"!==e.align&&"align".concat((0,u.Z)(t)),r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,i.Z)(l,f,s)},b=(0,s.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t["align".concat((0,u.Z)(r.align))],r.n
1oWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((0,l.Z)(e=>{var t;let{theme:r}=e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(r.typography).filter(e=>{let[t,r]=e;return"inherit"!==t&&r&&"object"==typeof r}).map(e=>{let[t,r]=e;return{props:{variant:t},style:r}}),...Object.entries(r.palette).filter((0,d.Z)()).map(e=>{let[t]=e;return{props:{color:t},style:{color:(r.vars||r).palette[t].main}}}),...Object.entries((null===(t=r.palette)||void 0===t?void 0:t.text)||{}).filter(e=>{let[,t]=e;return"string"==typeof t}).map(e=>{let[t]=e;return{props:{color:"text".concat((0,u.Z)(t))},style:{color:(r.vars||r).palette.text[t]}}}),{props:e=>{let{ownerState:t}=e;return"inherit"!==t.align},style:{textAlign:"var(--Typography-textAlign)"}},{props:e=>{let{ownerState:t}=e;return t.noWrap},style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:e=>{let{ownerState:t}=e;return t.gutterBottom},style:{marginBottom:"0.35em"}},{props:e=>{let{ownerState:t}=e;return t.paragraph},style:{marginBottom:16}}]}})),x={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"};var w=n.forwardRef(function(e,t){let{color:r,...n}=(0,c.i)({props:e,name:"MuiTypography"}),i=!g[r],a=v({...n,...i&&{color:r}}),{align:s="inherit",className:l,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:f="body1",variantMapping:w=x,...k}=a,S={...a,align:s,color:r,className:l,component:u,gutterBottom:d,noWrap:p,paragraph:h,variant:f,variantMapping:w},C=u||(h?"p":w[f]||x[f])||"span",R=y(S);return(0,m.jsx)(b,{as:C,ref:t,className:(0,o.Z)(R.root,l),...k,ownerState:S,style:{..."inherit"!==s&&{"--Typography-textAlign":s},...k.style}})})},75953:function(e,t,r){"use strict";r.d(t,{Z:function(){return et}});var n=r(24089),o=r(60920),i=r(22243),a={black:"#000",white:"#fff"},s={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},l={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},c={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},u={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},d={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},p={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},h={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function f(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:a.white,default:a.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}let m=f();function g(){return{text:{primary:a.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:a.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackgroun
1d:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}let v=g();function y(e,t,r,n){let o=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,i.$n)(e.main,o):"dark"===t&&(e.dark=(0,i._j)(e.main,a)))}function b(e){let t;let{mode:r="light",contrastThreshold:b=3,tonalOffset:x=.2,...w}=e,k=e.primary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:d[200],light:d[50],dark:d[400]}:{main:d[700],light:d[400],dark:d[800]}}(r),S=e.secondary||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:l[200],light:l[50],dark:l[400]}:{main:l[500],light:l[300],dark:l[700]}}(r),C=e.error||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:c[500],light:c[300],dark:c[700]}:{main:c[700],light:c[400],dark:c[800]}}(r),R=e.info||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:p[400],light:p[300],dark:p[700]}:{main:p[700],light:p[500],dark:p[900]}}(r),T=e.success||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:h[400],light:h[300],dark:h[700]}:{main:h[800],light:h[500],dark:h[900]}}(r),E=e.warning||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";return"dark"===e?{main:u[400],light:u[300],dark:u[700]}:{main:"#ed6c02",light:u[500],dark:u[900]}}(r);function A(e){return(0,i.mi)(e,v.text.primary)>=b?v.text.primary:m.text.primary}let P=e=>{let{color:t,name:r,mainShade:o=500,lightShade:i=300,darkShade:a=700}=e;if(!(t={...t}).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw Error((0,n.Z)(11,r?" (".concat(r,")"):"",o));if("string"!=typeof t.main)throw Error((0,n.Z)(12,r?" (".concat(r,")"):"",JSON.stringify(t.main)));return y(t,"light",i,x),y(t,"dark",a,x),t.contrastText||(t.contrastText=A(t.main)),t};return"light"===r?t=f():"dark"===r&&(t=g()),(0,o.Z)({common:{...a},mode:r,primary:P({color:k,name:"primary"}),secondary:P({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:C,name:"error"}),warning:P({color:E,name:"warning"}),info:P({color:R,name:"info"}),success:P({color:T,name:"success"}),grey:s,contrastThreshold:b,getContrastText:A,augmentColor:P,tonalOffset:x,...t},w)}var x=r(66633),w=r(6126);let k=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},S=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},C=(e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function R(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return S(e,(e,t,s)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`,l=C(e,t);Object.assign(o,{[n]:l}),k(i,e,`var(${n})`,s),k(a,e,`var(${n}, ${l})`,s)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}var T=function(e,t={}){let{getSelector:r=function(t,r){let n=i;if("class"===i&&(n=".%s"),"data"===i&&(n="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(n=`[${i}="%s"]`),t){if("media"===n){if(e.defaultColorScheme===t)return":root";let n=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${n})`]:{":root":r}}}if(n)return e.defaultColorScheme===t?`:root, ${n.replace("%s",String(t))}`:n.replace("%s",String(t))}return":root"},disableCssColorScheme:n,colorSchemeSelector:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:l="light",...c}=e,{vars:u,css:d,varsWithDefaults:p}=R(c,t),h=p,f={},{[l]:m,...g}=a;if(Object.entries(g||{}).forEach(([e,r])=>{let{vars:n,css:i,varsWithDefaults:a}=R(r,t);h=(0,o.Z)(h,a),f[e]={css:i,vars:n}}),m){let{css:e,vars:r,varsWithDefaults:n}=R(m,t);h=(0,o.Z)(h,n),f[l]={css:e,vars:r}}
1return{vars:h,generateThemeVars:()=>{let e={...u};return Object.entries(f).forEach(([,{vars:t}])=>{e=(0,o.Z)(e,t)}),e},generateStyleSheets:()=>{let t=[],o=e.defaultColorScheme||"light";function i(e,r){Object.keys(r).length&&t.push("string"==typeof e?{[e]:{...r}}:e)}i(r(void 0,{...d}),d);let{[o]:s,...l}=f;if(s){let{css:e}=s,t=a[o]?.palette?.mode,l=!n&&t?{colorScheme:t,...e}:{...e};i(r(o,{...l}),l)}return Object.entries(l).forEach(([e,{css:t}])=>{let o=a[e]?.palette?.mode,s=!n&&o?{colorScheme:o,...t}:{...t};i(r(e,{...s}),s)}),t}}},E=r(99875),A=r(26487),P=r(71578);let Z={textTransform:"uppercase"},_='"Roboto", "Helvetica", "Arial", sans-serif';function L(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return["".concat(t[0],"px ").concat(t[1],"px ").concat(t[2],"px ").concat(t[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(t[4],"px ").concat(t[5],"px ").concat(t[6],"px ").concat(t[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(t[8],"px ").concat(t[9],"px ").concat(t[10],"px ").concat(t[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}let M=["none",L(0,2,1,-1,0,1,1,0,0,1,3,0),L(0,3,1,-2,0,2,2,0,0,1,5,0),L(0,3,3,-2,0,3,4,0,0,1,8,0),L(0,2,4,-1,0,4,5,0,0,1,10,0),L(0,3,5,-1,0,5,8,0,0,1,14,0),L(0,3,5,-1,0,6,10,0,0,1,18,0),L(0,4,5,-2,0,7,10,1,0,2,16,1),L(0,5,5,-3,0,8,10,1,0,3,14,2),L(0,5,6,-3,0,9,12,1,0,3,16,2),L(0,6,6,-3,0,10,14,1,0,4,18,3),L(0,6,7,-4,0,11,15,1,0,4,20,3),L(0,7,8,-4,0,12,17,2,0,5,22,4),L(0,7,8,-4,0,13,19,2,0,5,24,4),L(0,7,9,-4,0,14,21,2,0,5,26,4),L(0,8,9,-5,0,15,22,2,0,6,28,5),L(0,8,10,-5,0,16,24,2,0,6,30,5),L(0,8,11,-5,0,17,26,2,0,6,32,5),L(0,9,11,-5,0,18,28,2,0,7,34,6),L(0,9,12,-6,0,19,29,2,0,7,36,6),L(0,10,13,-6,0,20,31,3,0,8,38,7),L(0,10,13,-6,0,21,33,3,0,8,40,7),L(0,10,14,-6,0,22,35,3,0,8,42,7),L(0,11,14,-7,0,23,36,3,0,9,44,8),L(0,11,15,-7,0,24,38,3,0,9,46,8)],I={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},F={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z(e){return"".concat(Math.round(e),"ms")}function O(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}var N={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={...e};return!function e(t){let r=Object.entries(t);for(let n=0;n<r.length;n++){let[i,a]=r[n];!((0,o.P)(a)||void 0===a||"string"==typeof a||"boolean"==typeof a||"number"==typeof a||Array.isArray(a))||i.startsWith("unstable_")?delete t[i]:(0,o.P)(a)&&(t[i]={...a},e(t[i]))}}(t),"import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ".concat(JSON.stringify(t,null,2),";\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;")}var B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];let{breakpoints:s,mixins:l={},spacing:c,palette:u={},transitions:d={},typography:p={},shape:h,...f}=e;if(e.vars&&void 0===e.generateThemeVars)throw Error((0,n.Z)(20));let m=b(u),g=(0,P.Z)(e),v=(0,o.Z)(g,{mixins:{toolbar:{minHeight:56,[(t=g.breakpoints).up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...l},palette:m,shadows:M.slice(),typography:function(e,t){let{fontFamily:r=_,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}="function"==typeof t?t(e):t,h=n/14,f=d||(e=>"".concat(e/c*h,"rem")),m=(e,t,n,o,i)=>({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n,...r===_?{letterSpacing:"".concat(Math.round(o/t*1e5)/1e5,"em")}:{},...i,...u}),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Z),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Z),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,o.Z)({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...g},p,{clone:!1})}(m,p),transitions:function(e){let t={...I,...e.easing},r={...F,...e.duration};return{getAutoHeightDuration:O,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0,...s}=n;return(Array.isArray(e)?e:[e]).map(e=>
1"".concat(e," ").concat("string"==typeof o?o:z(o)," ").concat(i," ").concat("string"==typeof a?a:z(a))).join(",")},...e,easing:t,duration:r}}(d),zIndex:{...N}});return v=(0,o.Z)(v,f),(v=i.reduce((e,t)=>(0,o.Z)(e,t),v)).unstable_sxConfig={...E.Z,...null==f?void 0:f.unstable_sxConfig},v.unstable_sx=function(e){return(0,A.Z)({sx:e,theme:this})},v.toRuntimeSource=D,v},j=r(65856);let G=[...Array(25)].map((e,t)=>{if(0===t)return"none";let r=(0,j.Z)(t);return"linear-gradient(rgba(255 255 255 / ".concat(r,"), rgba(255 255 255 / ").concat(r,"))")});function W(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function U(e){return"dark"===e?G:[]}function H(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null===(t=e[1])||void 0===t?void 0:t.match(/(mode|contrastThreshold|tonalOffset)/))}var q=e=>[...[...Array(25)].map((t,r)=>"--".concat(e?"".concat(e,"-"):"","overlays-").concat(r)),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkBg"),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkColor")],V=e=>(t,r)=>{let n=e.rootSelector||":root",o=e.colorSchemeSelector,i=o;if("class"===o&&(i=".%s"),"data"===o&&(i="[data-%s]"),(null==o?void 0:o.startsWith("data-"))&&!o.includes("%s")&&(i="[".concat(o,'="%s"]')),e.defaultColorScheme===t){if("dark"===t){let o={};return(q(e.cssVarPrefix).forEach(e=>{o[e]=r[e],delete r[e]}),"media"===i)?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:i?{[i.replace("%s",t)]:o,["".concat(n,", ").concat(i.replace("%s",t))]:r}:{[n]:{...r,...o}}}if(i&&"media"!==i)return"".concat(n,", ").concat(i.replace("%s",String(t)))}else if(t){if("media"===i)return{["@media (prefers-color-scheme: ".concat(String(t),")")]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function $(e,t,r){!e[t]&&r&&(e[t]=r)}function K(e){return"string"==typeof e&&e.startsWith("hsl")?(0,i.ve)(e):e}function Y(e,t){"".concat(t,"Channel") in e||(e["".concat(t,"Channel")]=(0,i.LR)(K(e[t]),"MUI: Can't create `palette.".concat(t,"Channel` because `palette.").concat(t,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().")+"\n"+"To suppress this warning, you need to explicitly provide the `palette.".concat(t,'Channel` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.')))}let X=e=>{try{return e()}catch(e){}},Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mui";return function(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`}(e)};function J(e,t,r,n){if(!t)return;t=!0===t?{}:t;let o="dark"===n?"dark":"light";if(!r){e[n]=function(e){let{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=b(t);return{palette:i,opacity:{...W(i.mode),...r},overlays:n||U(i.mode),...o}}({...t,palette:{mode:o,...null==t?void 0:t.palette}});return}let{palette:i,...a}=B({...r,palette:{mode:o,...null==t?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...W(o),...null==t?void 0:t.opacity},overlays:(null==t?void 0:t.overlays)||U(o)},a}function ee(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...!0!==r&&r,palette:b({...!0===r?{}:r.palette,mode:t})})}function et(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];let{palette:s,cssVariables:l=!1,colorSchemes:c=s?void 0:{light:!0},defaultColorScheme:u=null==s?void 0:s.mode,...d}=e,p=u||"light",h=null==c?void 0:c[p],f={...c,...s?{[p]:{..."boolean"!=typeof h&&h,palette:s}}:void 0};if(!1===l){if(!("colorSchemes"in e))return B(e,...r);let t=s;"palette"in e||!f[p]||(!0!==f[p]?t=f[p].palette:"dark"!==p||(t={mode:"dark"}));let n=B({...e,palette:t},...r);return n.defaultColorScheme=p,n.colorSchemes=f,"light"===n.palette.mode&&(n.colorSchemes.light={...!0!==f.light&&f.light,palette:n.palette},ee(n,"dark",f.dark)),"dark"===n.palette.mode&&(n.colorSchemes.dark={...!0!==f.dark&&f.dark,palette:n.palette},ee(n,"light",f.light)),n}return s||"light"in f||"light"!==p||(f.light=!0),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];
1let{colorSchemes:l={light:!0},defaultColorScheme:c,disableCssColorScheme:u=!1,cssVarPrefix:d="mui",shouldSkipGeneratingVar:p=H,colorSchemeSelector:h=l.light&&l.dark?"media":void 0,rootSelector:f=":root",...m}=e,g=Object.keys(l)[0],v=c||(l.light&&"light"!==g?"light":g),y=Q(d),{[v]:b,light:k,dark:S,...C}=l,R={...C},P=b;if(("dark"!==v||"dark"in l)&&("light"!==v||"light"in l)||(P=!0),!P)throw Error((0,n.Z)(21,v));let Z=J(R,P,m,v);k&&!R.light&&J(R,k,void 0,"light"),S&&!R.dark&&J(R,S,void 0,"dark");let _={defaultColorScheme:v,...Z,cssVarPrefix:d,colorSchemeSelector:h,rootSelector:f,getCssVar:y,colorSchemes:R,font:{...function(e){let t={};return Object.entries(e).forEach(e=>{let[r,n]=e;"object"==typeof n&&(t[r]=`${n.fontStyle?`${n.fontStyle} `:""}${n.fontVariant?`${n.fontVariant} `:""}${n.fontWeight?`${n.fontWeight} `:""}${n.fontStretch?`${n.fontStretch} `:""}${n.fontSize||""}${n.lineHeight?`/${n.lineHeight} `:""}${n.fontFamily||""}`)}),t}(Z.typography),...Z.font},spacing:"number"==typeof(t=m.spacing)?"".concat(t,"px"):"string"==typeof t||"function"==typeof t||Array.isArray(t)?t:"8px"};Object.keys(_.colorSchemes).forEach(e=>{let t=_.colorSchemes[e].palette,r=e=>{let r=e.split("-"),n=r[1],o=r[2];return y(e,t[n][o])};if("light"===t.mode&&($(t.common,"background","#fff"),$(t.common,"onBackground","#000")),"dark"===t.mode&&($(t.common,"background","#000"),$(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===t.mode){$(t.Alert,"errorColor",(0,i.q8)(t.error.light,.6)),$(t.Alert,"infoColor",(0,i.q8)(t.info.light,.6)),$(t.Alert,"successColor",(0,i.q8)(t.success.light,.6)),$(t.Alert,"warningColor",(0,i.q8)(t.warning.light,.6)),$(t.Alert,"errorFilledBg",r("palette-error-main")),$(t.Alert,"infoFilledBg",r("palette-info-main")),$(t.Alert,"successFilledBg",r("palette-success-main")),$(t.Alert,"warningFilledBg",r("palette-warning-main")),$(t.Alert,"errorFilledColor",X(()=>t.getContrastText(t.error.main))),$(t.Alert,"infoFilledColor",X(()=>t.getContrastText(t.info.main))),$(t.Alert,"successFilledColor",X(()=>t.getContrastText(t.success.main))),$(t.Alert,"warningFilledColor",X(()=>t.getContrastText(t.warning.main))),$(t.Alert,"errorStandardBg",(0,i.ux)(t.error.light,.9)),$(t.Alert,"infoStandardBg",(0,i.ux)(t.info.light,.9)),$(t.Alert,"successStandardBg",(0,i.ux)(t.success.light,.9)),$(t.Alert,"warningStandardBg",(0,i.ux)(t.warning.light,.9)),$(t.Alert,"errorIconColor",r("palette-error-main")),$(t.Alert,"infoIconColor",r("palette-info-main")),$(t.Alert,"successIconColor",r("palette-success-main")),$(t.Alert,"warningIconColor",r("palette-warning-main")),$(t.AppBar,"defaultBg",r("palette-grey-100")),$(t.Avatar,"defaultBg",r("palette-grey-400")),$(t.Button,"inheritContainedBg",r("palette-grey-300")),$(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),$(t.Chip,"defaultBorder",r("palette-grey-400")),$(t.Chip,"defaultAvatarColor",r("palette-grey-700")),$(t.Chip,"defaultIconColor",r("palette-grey-700")),$(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$(t.LinearProgress,"primaryBg",(0,i.ux)(t.primary.main,.62)),$(t.LinearProgress,"secondaryBg",(0,i.ux)(t.secondary.main,.62)),$(t.LinearProgress,"errorBg",(0,i.ux)(t.error.main,.62)),$(t.LinearProgress,"infoBg",(0,i.ux)(t.info.main,.62)),$(t.LinearProgress,"successBg",(0,i.ux)(t.success.main,.62)),$(t.LinearProgress,"warningBg",(0,i.ux)(t.warning.main,.62)),$(t.Skeleton,"bg","rgba(".concat(r("palette-text-primaryChannel")," / 0.11)")),$(t.Slider,"primaryTrack",(0,i.ux)(t.primary.main,.62)),$(t.Slider,"secondaryTrack",(0,i.ux)(t.secondary.main,.62)),$(t.Slider,"errorTrack",(0,i.ux)(t.error.main,.62)),$(t.Slider,"infoTrack",(0,i.ux)(t.info.main,.62)),$(t.Slider,"successTrack",(0,i.ux)(t.success.main,.62)),$(t.Slider,"warningTrack",(0,i.ux)(t.warning.main,.62));let e=(0,i.fk)(t.background.default,.8);$(t.SnackbarContent,"bg",e),$(t.SnackbarContent,"color",X(()=>t.getContrastText(e))),$(t.SpeedDialAction,"fabHoverBg",(0,i.fk)(t.background.paper,.15)),$(t.StepConnector,"border",r("palette-grey-400")),$(t.StepContent,"border",r("palette-grey-400")),$(t.Switch,"defaultColor",r("palette-common-white")),$(t.Switch,"defaultDisabledColor",r("palette-grey-100")),$(t.Switch,"primaryDisabledColor",(0,i.ux)(t.primary.main,.62)),$(t.Switch,"secondary
1DisabledColor",(0,i.ux)(t.secondary.main,.62)),$(t.Switch,"errorDisabledColor",(0,i.ux)(t.error.main,.62)),$(t.Switch,"infoDisabledColor",(0,i.ux)(t.info.main,.62)),$(t.Switch,"successDisabledColor",(0,i.ux)(t.success.main,.62)),$(t.Switch,"warningDisabledColor",(0,i.ux)(t.warning.main,.62)),$(t.TableCell,"border",(0,i.ux)((0,i.zp)(t.divider,1),.88)),$(t.Tooltip,"bg",(0,i.zp)(t.grey[700],.92))}if("dark"===t.mode){$(t.Alert,"errorColor",(0,i.ux)(t.error.light,.6)),$(t.Alert,"infoColor",(0,i.ux)(t.info.light,.6)),$(t.Alert,"successColor",(0,i.ux)(t.success.light,.6)),$(t.Alert,"warningColor",(0,i.ux)(t.warning.light,.6)),$(t.Alert,"errorFilledBg",r("palette-error-dark")),$(t.Alert,"infoFilledBg",r("palette-info-dark")),$(t.Alert,"successFilledBg",r("palette-success-dark")),$(t.Alert,"warningFilledBg",r("palette-warning-dark")),$(t.Alert,"errorFilledColor",X(()=>t.getContrastText(t.error.dark))),$(t.Alert,"infoFilledColor",X(()=>t.getContrastText(t.info.dark))),$(t.Alert,"successFilledColor",X(()=>t.getContrastText(t.success.dark))),$(t.Alert,"warningFilledColor",X(()=>t.getContrastText(t.warning.dark))),$(t.Alert,"errorStandardBg",(0,i.q8)(t.error.light,.9)),$(t.Alert,"infoStandardBg",(0,i.q8)(t.info.light,.9)),$(t.Alert,"successStandardBg",(0,i.q8)(t.success.light,.9)),$(t.Alert,"warningStandardBg",(0,i.q8)(t.warning.light,.9)),$(t.Alert,"errorIconColor",r("palette-error-main")),$(t.Alert,"infoIconColor",r("palette-info-main")),$(t.Alert,"successIconColor",r("palette-success-main")),$(t.Alert,"warningIconColor",r("palette-warning-main")),$(t.AppBar,"defaultBg",r("palette-grey-900")),$(t.AppBar,"darkBg",r("palette-background-paper")),$(t.AppBar,"darkColor",r("palette-text-primary")),$(t.Avatar,"defaultBg",r("palette-grey-600")),$(t.Button,"inheritContainedBg",r("palette-grey-800")),$(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),$(t.Chip,"defaultBorder",r("palette-grey-700")),$(t.Chip,"defaultAvatarColor",r("palette-grey-300")),$(t.Chip,"defaultIconColor",r("palette-grey-300")),$(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$(t.LinearProgress,"primaryBg",(0,i.q8)(t.primary.main,.5)),$(t.LinearProgress,"secondaryBg",(0,i.q8)(t.secondary.main,.5)),$(t.LinearProgress,"errorBg",(0,i.q8)(t.error.main,.5)),$(t.LinearProgress,"infoBg",(0,i.q8)(t.info.main,.5)),$(t.LinearProgress,"successBg",(0,i.q8)(t.success.main,.5)),$(t.LinearProgress,"warningBg",(0,i.q8)(t.warning.main,.5)),$(t.Skeleton,"bg","rgba(".concat(r("palette-text-primaryChannel")," / 0.13)")),$(t.Slider,"primaryTrack",(0,i.q8)(t.primary.main,.5)),$(t.Slider,"secondaryTrack",(0,i.q8)(t.secondary.main,.5)),$(t.Slider,"errorTrack",(0,i.q8)(t.error.main,.5)),$(t.Slider,"infoTrack",(0,i.q8)(t.info.main,.5)),$(t.Slider,"successTrack",(0,i.q8)(t.success.main,.5)),$(t.Slider,"warningTrack",(0,i.q8)(t.warning.main,.5));let e=(0,i.fk)(t.background.default,.98);$(t.SnackbarContent,"bg",e),$(t.SnackbarContent,"color",X(()=>t.getContrastText(e))),$(t.SpeedDialAction,"fabHoverBg",(0,i.fk)(t.background.paper,.15)),$(t.StepConnector,"border",r("palette-grey-600")),$(t.StepContent,"border",r("palette-grey-600")),$(t.Switch,"defaultColor",r("palette-grey-300")),$(t.Switch,"defaultDisabledColor",r("palette-grey-600")),$(t.Switch,"primaryDisabledColor",(0,i.q8)(t.primary.main,.55)),$(t.Switch,"secondaryDisabledColor",(0,i.q8)(t.secondary.main,.55)),$(t.Switch,"errorDisabledColor",(0,i.q8)(t.error.main,.55)),$(t.Switch,"infoDisabledColor",(0,i.q8)(t.info.main,.55)),$(t.Switch,"successDisabledColor",(0,i.q8)(t.success.main,.55)),$(t.Switch,"warningDisabledColor",(0,i.q8)(t.warning.main,.55)),$(t.TableCell,"border",(0,i.q8)((0,i.zp)(t.divider,1),.68)),$(t.Tooltip,"bg",(0,i.zp)(t.grey[700],.92))}Y(t.background,"default"),Y(t.background,"paper"),Y(t.common,"background"),Y(t.common,"onBackground"),Y(t,"divider"),Object.keys(t).forEach(e=>{let r=t[e];"tonalOffset"!==e&&r&&"object"==typeof r&&(r.main&&$(t[e],"mainChannel",(0,i.LR)(K(r.main))),r.light&&$(t[e],"lightChannel",(0,i.LR)(K(r.light))),r.dark&&$(t[e],"darkChannel",(0,i.LR)(K(r.dark))),r.contrastText&&$(t[e],"contrastTextChannel",(0,i.LR)(K(r.contrastText))),"text"===e&&(Y(t[e],"primary"),Y(t[e],"secondary")),"action"===e&&(r.active&&Y(t[e],"active"),r.selected&&Y(t[e],"selected")))})});let L={prefix:d,disableCssColorScheme:u,shouldSkipGeneratingVar:p,getSelector:V(_=a.reduce((e,t)=>
1(0,o.Z)(e,t),_))},{vars:M,generateThemeVars:I,generateStyleSheets:F}=T(_,L);return _.vars=M,Object.entries(_.colorSchemes[_.defaultColorScheme]).forEach(e=>{let[t,r]=e;_[t]=r}),_.generateThemeVars=I,_.generateStyleSheets=F,_.generateSpacing=function(){return(0,x.Z)(m.spacing,(0,w.hB)(this))},_.getColorSchemeSelector=function(e){return"media"===h?`@media (prefers-color-scheme: ${e})`:h?h.startsWith("data-")&&!h.includes("%s")?`[${h}="${e}"] &`:"class"===h?`.${e} &`:"data"===h?`[data-${e}] &`:`${h.replace("%s",e)} &`:"&"},_.spacing=_.generateSpacing(),_.shouldSkipGeneratingVar=p,_.unstable_sxConfig={...E.Z,...null==m?void 0:m.unstable_sxConfig},_.unstable_sx=function(e){return(0,A.Z)({sx:e,theme:this})},_.toRuntimeSource=D,_}({...d,colorSchemes:f,defaultColorScheme:p,..."boolean"!=typeof l&&l},...r)}},82206:function(e,t,r){"use strict";let n=(0,r(75953).Z)();t.Z=n},65856:function(e,t,r){"use strict";function n(e){return Math.round(10*(e<1?5.11916*e**2:4.5*Math.log(e+1)+2))/1e3}r.d(t,{Z:function(){return n}})},81420:function(e,t){"use strict";t.Z="$$material"},71533:function(e,t,r){"use strict";var n=r(83608);t.Z=e=>(0,n.Z)(e)&&"classes"!==e},83608:function(e,t){"use strict";t.Z=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},71853:function(e,t,r){"use strict";r.d(t,{ZP:function(){return g}});var n=r(88725),o=r(60920),i=r(71578),a=r(26487),s=r(72434);let l=(0,i.Z)();function c(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function u(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function d(e,t,r){let o="function"==typeof t?t(e):t;if(Array.isArray(o))return o.flatMap(t=>d(e,t,r));if(Array.isArray(o?.variants)){let t;if(o.isProcessed)t=r?u(o.style,r):o.style;else{let{variants:e,...i}=o;t=r?u((0,n.bu)(i),r):i}return p(e,o.variants,[t],r)}return o?.isProcessed?r?u((0,n.bu)(o.style),r):o.style:r?u((0,n.bu)(o),r):o}function p(e,t,r=[],o){let i;e:for(let a=0;a<t.length;a+=1){let s=t[a];if("function"==typeof s.props){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(i))continue}else for(let t in s.props)if(e[t]!==s.props[t]&&e.ownerState?.[t]!==s.props[t])continue e;"function"==typeof s.style?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(o?u((0,n.bu)(s.style(i)),o):s.style(i))):r.push(o?u((0,n.bu)(s.style),o):s.style)}return r}var h=r(82206),f=r(81420),m=r(71533),g=function(e={}){let{themeId:t,defaultTheme:r=l,rootShouldForwardProp:i=c,slotShouldForwardProp:h=c}=e;function f(e){e.theme=!function(e){for(let t in e)return!1;return!0}(e.theme)?e.theme[t]||e.theme:r}return(e,t={})=>{var r;(0,n.nf)(e,e=>e.filter(e=>e!==a.Z));let{name:l,slot:m,skipVariantsResolver:g,skipSx:v,overridesResolver:y=(r=m?m.charAt(0).toLowerCase()+m.slice(1):m)?(e,t)=>t[r]:null,...b}=t,x=l&&l.startsWith("Mui")||m?"components":"custom",w=void 0!==g?g:m&&"Root"!==m&&"root"!==m||!1,k=v||!1,S=c;"Root"===m||"root"===m?S=i:m?S=h:"string"==typeof e&&e.charCodeAt(0)>96&&(S=void 0);let C=(0,n.ZP)(e,{shouldForwardProp:S,label:void 0,...b}),R=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return d(t,e,t.theme.modularCssLayers?x:void 0)};if((0,o.P)(e)){let t=(0,s.Z)(e);return function(e){return t.variants?d(e,t,e.theme.modularCssLayers?x:void 0):e.theme.modularCssLayers?u(t.style,x):t.style}}return e},T=(...t)=>{let r=[],n=t.map(R),o=[];if(r.push(f),l&&y&&o.push(function(e){let t=e.theme,r=t.components?.[l]?.styleOverrides;if(!r)return null;let n={};for(let t in r)n[t]=d(e,r[t],e.theme.modularCssLayers?"theme":void 0);return y(e,n)}),l&&!w&&o.push(function(e){let t=e.theme,r=t?.components?.[l]?.variants;return r?p(e,r,[],e.theme.modularCssLayers?"theme":void 0):null}),k||o.push(a.Z),Array.isArray(n[0])){let e;let t=n.shift(),i=Array(r.length).fill(""),a=Array(o.length).fill("");(e=[...i,...t,...a]).raw=[...i,...t.raw,...a],r.unshift(e)}let i=C(...r,...n,...o);return e.muiName&&(i.muiName=e.muiName),i};return C.withConfig&&(T.withConfig=C.withConfig),T}}({themeId:f.Z,defaultTheme:h.Z,rootShouldForwardProp:m.Z})},97502:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}}),r(7653);var n=r(11854),o=r(82206),i=r(81420);function a(){let e=(0,n.Z)(o.Z);return e[i.Z]||e}},42524:function(e,t,r){"use strict";r.d(t,{C:function(){return o},n:function(){return n}});let n=e=>e.scrollTop;function o(e,t){var r,n;let{timeout:o,easing:i,style:a={}}=e;return{duration:null!==(r=a.transitionDuration)&&void 0!==r?r:"number"==typeof o?o:o[t.mode]||0,easing:null!==(n=a.transitionTimingFunction)&&void 0!==n?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}},46401:function(e,t,r){"use strict";var n=r(59101);t.Z=n.Z},92195:function(e,t,r){"use strict";function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t=>{let[,r]=t;return r&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("string"!=typeof e.main)return!1;for(let r of t)if(!e.hasOwnProperty(r)||"string"!=typeof e[r])return!1;return!0}(r,e)}}r.d(t,{Z:function(){return n}})},5201:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});
1var n=r(7653),o=r(10607),i=r(3838),a=r(46401),s=r(71853),l=r(36757),c=r(34599),u=r(14573),d=r(37501);function p(e){return(0,d.ZP)("MuiSvgIcon",e)}(0,u.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=r(27573);let f=e=>{let{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&"color".concat((0,a.Z)(t)),"fontSize".concat((0,a.Z)(r))]};return(0,i.Z)(o,p,n)},m=(0,s.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,a.Z)(r.color))],t["fontSize".concat((0,a.Z)(r.fontSize))]]}})((0,l.Z)(e=>{var t,r,n,o,i,a,s,l,c,u,d,p,h,f,m,g,v,y;let{theme:b}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:null===(o=b.transitions)||void 0===o?void 0:null===(n=o.create)||void 0===n?void 0:n.call(o,"fill",{duration:null===(r=(null!==(m=b.vars)&&void 0!==m?m:b).transitions)||void 0===r?void 0:null===(t=r.duration)||void 0===t?void 0:t.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:(null===(a=b.typography)||void 0===a?void 0:null===(i=a.pxToRem)||void 0===i?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:(null===(l=b.typography)||void 0===l?void 0:null===(s=l.pxToRem)||void 0===s?void 0:s.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:(null===(u=b.typography)||void 0===u?void 0:null===(c=u.pxToRem)||void 0===c?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((null!==(g=b.vars)&&void 0!==g?g:b).palette).filter(e=>{let[,t]=e;return t&&t.main}).map(e=>{var t,r,n;let[o]=e;return{props:{color:o},style:{color:null===(r=(null!==(n=b.vars)&&void 0!==n?n:b).palette)||void 0===r?void 0:null===(t=r[o])||void 0===t?void 0:t.main}}}),{props:{color:"action"},style:{color:null===(p=(null!==(v=b.vars)&&void 0!==v?v:b).palette)||void 0===p?void 0:null===(d=p.action)||void 0===d?void 0:d.active}},{props:{color:"disabled"},style:{color:null===(f=(null!==(y=b.vars)&&void 0!==y?y:b).palette)||void 0===f?void 0:null===(h=f.action)||void 0===h?void 0:h.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),g=n.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:v="0 0 24 24",...y}=r,b=n.isValidElement(i)&&"svg"===i.type,x={...r,color:s,component:l,fontSize:u,instanceFontSize:e.fontSize,inheritViewBox:p,viewBox:v,hasSvgAsChild:b},w={};p||(w.viewBox=v);let k=f(x);return(0,h.jsxs)(m,{as:l,className:(0,o.Z)(k.root,a),focusable:"false",color:d,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t,...w,...y,...b&&i.props,ownerState:x,children:[b?i.props.children:i,g?(0,h.jsx)("title",{children:g}):null]})});function v(e,t){function r(r,n){return(0,h.jsx)(g,{"data-testid":"".concat(t,"Icon"),ref:n,...r,children:e})}return r.muiName=g.muiName,n.memo(n.forwardRef(r))}g.muiName="SvgIcon"},62924:function(e,t){"use strict";t.Z=function(e){return"string"==typeof e}},36757:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(72434);let o={theme:void 0};var i=function(e){let t,r;return function(i){let a=t;return(void 0===a||i.theme!==r)&&(o.theme=i.theme,t=a=(0,n.Z)(e(o)),r=i.theme),a}}},82417:function(e,t,r){"use strict";var n=r(83532);t.Z=n.Z},34805:function(e,t,r){"use strict";var n=r(74594);t.Z=n.Z},11406:function(e,t,r){"use strict";var n=r(67993);t.Z=n.Z},36760:function(e,t,r){"use strict";var n=r(59994);t.Z=n.Z},84394:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(67993),o=r(71629),i=r(88094),a=r(18162);function s(e,t){let{className:r,elementType:s,ownerState:l,externalForwardedProps:c,internalForwardedProps:u,shouldForwardComponentProp:d=!1,...p}=t,{component:h,slots:f={[e]:void 0},slotProps:m={[e]:void 0},...g}=c,v=f[e]||s,y=(0,i.Z)(m[e],l),{props:{component:b,...x},internalRef:w}=(0,a.Z)({className:r,...p,externalForwardedProps:"root"===e?g:void 0,externalSlotProps:y}),k=(0,n.Z)(w,null==y?void 0:y.ref,t.ref),S="root"===e?b||h:b,C=(0,o.Z)(v,{..."root"===e&&!h&&
1!f[e]&&u,..."root"!==e&&!f[e]&&u,...x,...S&&!d&&{as:S},...S&&d&&{component:S},ref:k},l);return[v,C]}},2888:function(e,t,r){"use strict";r.d(t,{zY:function(){return f},u7:function(){return m}}),r(7653);var n=r(33524),o=r(88725),i=r(19017),a=r(27573);function s(e){let{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,a.jsx)(i.xB,{styles:n})}var l=r(11854);function c(e){let t=(0,o.bu)(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles="@layer global{".concat(t.styles,"}")),t):e}var u=function(e){let{styles:t,themeId:r,defaultTheme:n={}}=e,o=(0,l.Z)(n),i=r&&o[r]||o,u="function"==typeof t?t(i):t;return i.modularCssLayers&&(u=Array.isArray(u)?u.map(e=>"function"==typeof e?c(e(i)):c(e)):c(u)),(0,a.jsx)(s,{styles:u})},d=r(82206),p=r(81420),h=function(e){return(0,a.jsx)(u,{...e,defaultTheme:d.Z,themeId:p.Z})};function f(e){return function(t){return(0,a.jsx)(h,{styles:"function"==typeof e?r=>e({theme:r,...t}):e})}}function m(){return n.Z}},88725:function(e,t,r){"use strict";r.d(t,{ZP:function(){return i},bu:function(){return l},nf:function(){return a}});var n=r(73411),o=r(20464);function i(e,t){return(0,n.Z)(e,t)}function a(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}let s=[];function l(e){return s[0]=e,(0,o.O)(s)}},98163:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(7653);r(27573);let o=n.createContext(),i=()=>{let e=n.useContext(o);return null!=e&&e}},73307:function(e,t,r){"use strict";r.d(t,{L7:function(){return c},VO:function(){return o},W8:function(){return l},k9:function(){return s}});var n=r(17579);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`},a={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:o[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function s(e,t,r){let s=e.theme||{};if(Array.isArray(t)){let e=s.breakpoints||i;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){let e=s.breakpoints||i;return Object.keys(t).reduce((i,l)=>{if((0,n.WX)(e.keys,l)){let e=(0,n.ue)(s.containerQueries?s:a,l);e&&(i[e]=r(t[l],l))}else Object.keys(e.values||o).includes(l)?i[e.up(l)]=r(t[l],l):i[l]=t[l];return i},{})}return r(t)}function l(e={}){return e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{})||{}}function c(e,t){return e.reduce((e,t)=>{let r=e[t];return r&&0!==Object.keys(r).length||delete e[t],e},t)}},22243:function(e,t,r){"use strict";r.d(t,{$n:function(){return v},Fq:function(){return h},LR:function(){return l},_j:function(){return m},fk:function(){return b},mi:function(){return p},q8:function(){return g},ux:function(){return y},ve:function(){return u},zp:function(){return f}});var n=r(24089),o=r(50054);function i(e,t=0,r=1){return(0,o.Z)(e,t,r)}function a(e){let t;if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),o=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw Error((0,n.Z)(9,e));let i=e.substring(r+1,e.length-1);if("color"===o){if(t=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(t))throw Error((0,n.Z)(10,t))}else i=i.split(",");return{type:o,values:i=i.map(e=>parseFloat(e)),colorSpace:t}}let s=e=>{let t=a(e);return t.values.slice(0,3).map((e,r)=>t.type.includes("hsl")&&0!==r?`${e}%`:e).join(" ")},l=(e,t)=>{try{return s(e)}catch(t){return e}};function c(e){let{type:t,colorSpace:r}=e,{values:n}=e;return t.includes("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=t.includes("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function u(e){let{values:t}=e=a(e),r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1),l="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),c({type:l,values:u})}function d(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(u(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){let r=d(e),n=d(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}
1function h(e,t){return e=a(e),t=i(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,c(e)}function f(e,t,r){try{return h(e,t)}catch(t){return e}}function m(e,t){if(e=a(e),t=i(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return c(e)}function g(e,t,r){try{return m(e,t)}catch(t){return e}}function v(e,t){if(e=a(e),t=i(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return c(e)}function y(e,t,r){try{return v(e,t)}catch(t){return e}}function b(e,t,r){try{return function(e,t=.15){return d(e)>.5?m(e,t):v(e,t)}(e,t)}catch(t){return e}}},66633:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(6126);function o(e=8,t=(0,n.hB)({spacing:e})){if(e.mui)return e;let r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}},71578:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(60920);let o=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};var i=r(17579),a={borderRadius:4},s=r(66633),l=r(26487),c=r(99875);function u(e,t){if(this.vars){if(!this.colorSchemes?.[e]||"function"!=typeof this.getColorSchemeSelector)return{};let r=this.getColorSchemeSelector(e);return"&"===r?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return this.palette.mode===e?t:{}}var d=function(e={},...t){let{breakpoints:r={},palette:d={},spacing:p,shape:h={},...f}=e,m=function(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=o(t),s=Object.keys(a);function l(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function c(e){let o="number"==typeof t[e]?t[e]:e;return`@media (max-width:${o-n/100}${r})`}function u(e,o){let i=s.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[s[i]]?t[s[i]]:o)-n/100}${r})`}return{keys:s,values:a,up:l,down:c,between:u,only:function(e){return s.indexOf(e)+1<s.length?u(e,s[s.indexOf(e)+1]):l(e)},not:function(e){let t=s.indexOf(e);return 0===t?l(s[1]):t===s.length-1?c(s[t]):u(e,s[s.indexOf(e)+1]).replace("@media","@media not all and")},unit:r,...i}}(r),g=(0,s.Z)(p),v=(0,n.Z)({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...d},spacing:g,shape:{...a,...h}},f);return(v=(0,i.ZP)(v)).applyStyles=u,(v=t.reduce((e,t)=>(0,n.Z)(e,t),v)).unstable_sxConfig={...c.Z,...f?.unstable_sxConfig},v.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},v}},17579:function(e,t,r){"use strict";function n(e,t){if(!e.containerQueries)return t;let r=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{let r=/min-width:\s*([0-9.]+)/;return+(e.match(r)?.[1]||0)-+(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{let n=t[r];return delete e[r],e[r]=n,e},{...t}):t}function o(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function i(e,t){let r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;let[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function a(e){let t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,n){r.up=(...r)=>t(e.breakpoints.up(...r),n),r.down=(...r)=>t(e.breakpoints.down(...r),n),r.between=(...r)=>t(e.breakpoints.between(...r),n),r.only=(...r)=>t(e.breakpoints.only(...r),n),r.not=(...r)=>{let o=t(e.breakpoints.not(...r),n);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}let n={},o=e=>(r(n,e),n);return r(o),{...e,containerQueries:o}}r.d(t,{WX:function(){return o},ZP:function(){return a},ar:function(){return n},ue:function(){return i}})},36267:function(e,t,r){"use strict";var n=r(60920);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},72434:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(88725);function o(e){let{variants:t,...r}=e,o={variants:t,style:(0,n.bu)(r),isProcessed:!0};
1return o.style===r||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=(0,n.bu)(e.style))}),o}},6126:function(e,t,r){"use strict";r.d(t,{hB:function(){return f},eI:function(){return h},NA:function(){return m},e6:function(){return v},o3:function(){return y}});var n=r(73307),o=r(73810),i=r(36267);let a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}let[t,r]=e.split(""),n=a[t],o=s[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...u,...d];function h(e,t,r,n){let i=(0,o.DW)(e,t,!0)??r;return"number"==typeof i||"string"==typeof i?e=>"string"==typeof e?e:"string"==typeof i?`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if("string"==typeof e)return e;let t=i[Math.abs(e)];return e>=0?t:"number"==typeof t?-t:`-${t}`}:"function"==typeof i?i:()=>void 0}function f(e){return h(e,"spacing",8,"spacing")}function m(e,t){return"string"==typeof t||null==t?t:e(t)}function g(e,t){let r=f(e.theme);return Object.keys(e).map(o=>(function(e,t,r,o){var i;if(!t.includes(r))return null;let a=(i=c(r),e=>i.reduce((t,r)=>(t[r]=m(o,e),t),{})),s=e[r];return(0,n.k9)(e,s,a)})(e,t,o,r)).reduce(i.Z,{})}function v(e){return g(e,u)}function y(e){return g(e,d)}function b(e){return g(e,p)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=d,b.propTypes={},b.filterProps=p},73810:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return a}});var n=r(59101),o=r(73307);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}t.ZP=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=i(e.theme,s)||{};return(0,o.k9)(e,c,e=>{let o=a(u,l,e);return(e===o&&"string"==typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?o:{[r]:o}})};return c.propTypes={},c.filterProps=[t],c}},99875:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(6126),o=r(73810),i=r(36267),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,i.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},s=r(73307);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,o.ZP)({prop:e,themeKey:"borders",transform:t})}let u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),k=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,s.k9)(e,e.borderRadius,e=>({borderRadius:(0,n.NA)(t,e)}))}return null};k.propTypes={},k.filterProps=["borderRadius"],a(u,d,p,h,f,m,g,v,y,b,k,x,w);let S=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,s.k9)(e,e.gap,e=>({gap:(0,n.NA)(t,e)}))}return null};S.propTypes={},S.filterProps=["gap"];let C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,s.k9)(e,e.columnGap,e=>({columnGap:(0,n.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["columnGap"];let R=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,s.k9)(e,e.rowGap,e=>({rowGap:(0,n.NA)(t,e)}))}return null};R.propTypes={},R.filterProps=["rowGap"];let T=(0,o.ZP)({prop:"gridColumn"}),E=(0,o.ZP)({prop:"gridRow"}),A=(0,o.ZP)({prop:"gridAutoFlow"}),P=(0,o.ZP)({prop:"gridAutoColumns"}),Z=(0,o.ZP)({prop:"gridAutoRows"}),_=(0,o.ZP)({prop:"gridTemplateColumns"});function L(e,t){return"grey"===t?t:e}function M(e){return e<=1&&0!==e?`${100*e}%`:e}a(S,C,R,T,E,A,P,Z,_,(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"})),a((0,o.ZP)({prop:"color",themeKey:"palette",transform:L}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:L}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:L}));let I=(0,o.ZP)({prop:"width",transform:M}),F=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,s.k9)(e,e.maxWidth,t=>{let r=e.theme?.breakpoints?.values?.[t]||s.VO[t];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:M(t)}}):null;F.filterProps=["maxWidth"];let z=(0,o.ZP)({prop:"minWidth",transform:M}),O=(0,o.ZP)({prop:"height",transform:M}),N=(0,o.ZP)({prop:"maxHeight",transform:M}),D=(0,o.ZP)({prop:"minHeight",transform:M});(0,o.ZP)({prop:"size",cssProperty:"width",transform:M}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:M}),a(I,F,z,O,N,D,(0,o.ZP)({prop:"boxSizing"}));var B={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:k},color:{themeKey:"palette",transform:L},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:L},backgroundColor:{themeKey:"palette",transform:L},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3}
1,paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:R},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:M},maxWidth:{style:F},minWidth:{transform:M},height:{transform:M},maxHeight:{transform:M},minHeight:{transform:M},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},33524:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(60920),o=r(99875);let i=e=>{let t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??o.Z;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function a(e){let t;let{sx:r,...o}=e,{systemProps:a,otherProps:s}=i(o);return t=Array.isArray(r)?[a,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,n.P)(t)?{...a,...t}:a}:{...a,...r},{...s,sx:t}}},26487:function(e,t,r){"use strict";var n=r(59101),o=r(36267),i=r(73810),a=r(73307),s=r(17579),l=r(99875);let c=function(){function e(e,t,r,o){let s={[e]:t,theme:r},l=o[e];if(!l)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let h=(0,i.DW)(r,u)||{};return p?p(s):(0,a.k9)(s,t,t=>{let r=(0,i.Jq)(h,d,t);return(t===r&&"string"==typeof t&&(r=(0,i.Jq)(h,d,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===c)?r:{[c]:r}})}return function t(r){let{sx:n,theme:i={},nested:c}=r||{};if(!n)return null;let u=i.unstable_sxConfig??l.Z;function d(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;let l=(0,a.W8)(i.breakpoints),d=Object.keys(l),p=l;return(Object.keys(n).forEach(r=>{var s;let l="function"==typeof(s=n[r])?s(i):s;if(null!=l){if("object"==typeof l){if(u[r])p=(0,o.Z)(p,e(r,l,i,u));else{let e=(0,a.k9)({theme:i},l,e=>({[r]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,l)?p[r]=t({sx:l,theme:i,nested:!0}):p=(0,o.Z)(p,e)}}else p=(0,o.Z)(p,e(r,l,i,u))}}),!c&&i.modularCssLayers)?{"@layer sx":(0,s.ar)(i,(0,a.L7)(d,p))}:(0,s.ar)(i,(0,a.L7)(d,p))}return Array.isArray(n)?n.map(d):d(n)}}();c.filterProps=["sx"],t.Z=c},11854:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(71578),o=r(7653),i=r(23439),a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=o.useContext(i.T);return t&&0!==Object.keys(t).length?t:e};let s=(0,n.Z)();var l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return a(e)}},43882:function(e,t){"use strict";let r;let n=e=>e,o=(r=n,{configure(e){r=e},generate:e=>r(e),reset(){r=n}});t.Z=o},71629:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(e,t,r){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...r}}}},59101:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(24089);function o(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},50054:function(e,t){"use strict";t.Z=function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}},3838:function(e,t,r){"use strict";function n(e,t,r){let n={};for(let o in e){let i=e[o],a="",s=!0;for(let e=0;e<i.length;e+=1){let n=i[e];n&&(a+=(!0===s?"":" ")+t(n),s=!1,r&&r[n]&&(a+=" "+r[n]))}n[o]=a}return n}r.d(t,{Z:function(){return n}})},60920:function(e,t,r){"use strict";r.d(t,{P:function(){return i},Z:function(){return function e(t,r,a={clone:!0}){let s=a.clone?{...t}:t;return i(t)&&i(r)&&Object.keys(r).forEach(l=>{n.isValidElement(r[l])||(0,o.iY)(r[l])?s[l]=r[l]:i(r[l])&&Object.prototype.hasOwnProperty.call(t,l)&&i(t[l])?s[l]=e(t[l],r[l],a):a.clone?s[l]=i(r[l])?function e(t){if(n.isValidElement(t)||(0,o.iY)(t)||!i(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[l]):r[l]:s[l]=r[l]}),s}}});var n=r(7653),o=r(85618);function i(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}},42141:function(e,t){"use strict";t.Z=function(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEac
1h(t=>{r[t]=e[t]}),r}},24089:function(e,t,r){"use strict";function n(e,...t){let r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}r.d(t,{Z:function(){return n}})},37501:function(e,t,r){"use strict";r.d(t,{ZP:function(){return i}});var n=r(43882);let o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t,r="Mui"){let i=o[t];return i?`${r}-${i}`:`${n.Z.generate(e)}-${t}`}},14573:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(37501);function o(e,t,r="Mui"){let o={};return t.forEach(t=>{o[t]=(0,n.ZP)(e,t,r)}),o}},97023:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7653);function o(e){return parseInt(n.version,10)>=19?e?.props?.ref||null:e?.ref||null}},66509:function(e,t,r){"use strict";function n(e){try{return e.matches(":focus-visible")}catch(e){}return!1}r.d(t,{Z:function(){return n}})},18162:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(10607),o=r(42141),i=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t},a=function(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:a,externalForwardedProps:s,className:l}=e;if(!t){let e=(0,n.Z)(r?.className,l,s?.className,a?.className),t={...r?.style,...s?.style,...a?.style},o={...r,...s,...a};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let c=(0,o.Z)({...s,...a}),u=i(a),d=i(s),p=t(c),h=(0,n.Z)(p?.className,r?.className,l,s?.className,a?.className),f={...p?.style,...r?.style,...s?.style,...a?.style},m={...p,...r,...d,...u};return h.length>0&&(m.className=h),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:p.ref}}},1987:function(e,t,r){"use strict";function n(e){return e&&e.ownerDocument||document}r.d(t,{Z:function(){return n}})},88094:function(e,t){"use strict";t.Z=function(e,t,r){return"function"==typeof e?e(t,r):e}},91891:function(e,t,r){"use strict";r.d(t,{Z:function(){return function e(t,r){let n={...r};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if("components"===o||"slots"===o)n[o]={...t[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){let i=t[o],a=r[o];if(a){if(i)for(let t in n[o]={...a},i)Object.prototype.hasOwnProperty.call(i,t)&&(n[o][t]=e(i[t],a[t]));else n[o]=a}else n[o]=i||{}}else void 0===n[o]&&(n[o]=t[o])}return n}}})},83532:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7653);function o(e){let{controlled:t,default:r,name:o,state:i="value"}=e,{current:a}=n.useRef(void 0!==t),[s,l]=n.useState(r),c=n.useCallback(e=>{a||l(e)},[]);return[a?t:s,c]}},10779:function(e,t,r){"use strict";var n=r(7653);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;t.Z=o},74594:function(e,t,r){"use strict";var n=r(7653),o=r(10779);t.Z=function(e){let t=n.useRef(e);return(0,o.Z)(()=>{t.current=e}),n.useRef(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0,t.current)(...r)}).current}},67993:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(7653);function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=n.useRef(void 0),i=n.useCallback(e=>{let r=t.map(t=>{if(null==t)return null;if("function"==typeof t){let r=t(e);return"function"==typeof r?r:()=>{t(null)}}return t.current=e,()=>{t.current=null}});return()=>{r.forEach(e=>null==e?void 0:e())}},t);return n.useMemo(()=>t.every(e=>null==e)?null:e=>{o.current&&(o.current(),o.current=void 0),null!=e&&(o.current=i(e))},t)}},59994:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n,o=r(7653);let i=0,a={...n||(n=r.t(o,2))}.useId;function s(e){if(void 0!==a){let t=a();return null!=e?e:t}return function(e){let[t,r]=o.useState(e),n=e||t;return o.useEffect(()=>{null==t&&(i+=1,r("mui-".concat(i)))},[t]),n}(e)}},76563:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(7653);let o={};function i(e,t){let r=n.useRef(o);return r.current===o&&(r.current=e(t)),r}},60905:function(e,t,r){"use strict";
1var n=r(67993),o=r(71629),i=r(18162),a=r(88094);t.Z=function(e){var t;let{elementType:r,externalSlotProps:s,ownerState:l,skipResolvingSlotProps:c=!1,...u}=e,d=c?{}:(0,a.Z)(s,l),{props:p,internalRef:h}=(0,i.Z)({...u,externalSlotProps:d}),f=(0,n.Z)(h,null==d?void 0:d.ref,null===(t=e.additionalProps)||void 0===t?void 0:t.ref);return(0,o.Z)(r,{...p,ref:f},l)}},27294:function(e,t,r){"use strict";r.d(t,{V:function(){return a},Z:function(){return s}});var n=r(76563),o=r(7653);let i=[];class a{static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}}function s(){var e;let t=(0,n.Z)(a.create).current;return e=t.disposeEffect,o.useEffect(e,i),t}},17296:function(e,t,r){"use strict";r.d(t,{tT:function(){return g},ZP:function(){return C},A2:function(){return b}});var n=r(40229),o=r(24213);function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function a(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,void 0):void 0}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t,r,n){return{x:Math.pow(1-e,2)*t.x+2*(1-e)*e*r.x+Math.pow(e,2)*n.x,y:Math.pow(1-e,2)*t.y+2*(1-e)*e*r.y+Math.pow(e,2)*n.y}}r(55174);var g=.25,v={arrowHead:null,curvatureAttribute:"curvature",defaultCurvature:.25},y={edgeIndexAttribute:"parallelIndex",edgeMinIndexAttribute:"parallelMinIndex",edgeMaxIndexAttribute:"parallelMaxIndex"};function b(e,t){var r=l(l({},y),t||{}),n={},o={},i={},a=0;e.forEachNode(function(e){n[e]=++a+""}),e.forEachEdge(function(e,t,r,a){var s=n[r],l=n[a],c=[s,l].join("-");o[e]=c,i[c]=[s,l].sort().join("-")});var s={},c={};for(var u in e.forEachEdge(function(e){var t=o[e],r=i[t];s[t]=s[t]||[],s[t].push(e),c[r]=c[r]||[],c[r].push(e)}),s){var d=s[u],p=d.length,h=c[i[u]].length;if(1===p&&1===h){var f=d[0];e.setEdgeAttribute(f,r.edgeIndexAttribute,null),e.setEdgeAttribute(f,r.edgeMaxIndexAttribute,null)}else if(1===p){var m=d[0];e.setEdgeAttribute(m,r.edgeIndexAttribute,1),e.setEdgeAttribute(m,r.edgeMaxIndexAttribute,1)}else if(p===h)for(var g=(p-1)/2,v=-g,b=0;b<p;b++){var x=d[b],w=-(p-1)/2+b;e.setEdgeAttribute(x,r.edgeIndexAttribute,w),e.setEdgeAttribute(x,r.edgeMinIndexAttribute,v),e.setEdgeAttribute(x,r.edgeMaxIndexAttribute,g)}else for(var k=0;k<p;k++){var S=d[k];e.setEdgeAttribute(S,r.edgeIndexAttribute,k+1),e.setEdgeAttribute(S,r.edgeMaxIndexAttribute,p)}}}var x=WebGLRenderingContext,w=x.UNSIGNED_BYTE,k=x.FLOAT;function S(e){var t=l(l({},v),e||{}),r=t.arrowHead,s=t.curvatureAttribute,h=t.drawLabel,y=(null==r?void 0:r.extremity)==="target"||(null==r?void 0:r.extremity)==="both",b=(null==r?void 0:r.extremity)==="source"||(null==r?void 0:r.extremity)==="both",x=["u_matrix","u_sizeRatio","u_dimensions","u_pixelRatio","u_feather","u_minEdgeThickness"].concat(f(r?["u_lengthToThicknessRatio","u_widenessToThicknessRatio"]:[]));return function(e){var n;function l(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,l);for(var e,r,n,o,i,s,p,f=arguments.length,g=Array(f),v=0;v<f;v++)g[v]=arguments[v];return r=l,n=[].concat(g),r=c(r),e=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return d(e)}(this,u()?Reflect.construct(r,n||[],c(this).constructor):r.apply(this,n)),a(d(e),"drawLabel",h||(o=t.curvatureAttribute,i=t.defaultCurvature,p=void 0===(s=t.keepLabelUpright)||s,function(e,t,r,n,a){var s=a.edgeLabelSize,l=t[o]||i,c=a.edgeLabelFont,u=a.edgeLabelWeight,d=a.edgeLabelColor.attribute?t[a.edgeLabelColor.attribute]||a.edgeLabelColor.color||"#000":a.edgeLabelColor.color,h=t.label;if(h){e.fillStyle=d,e.font="".concat(u," ").concat(s,"px ").concat(c);var f=!p||r.x<n.x,g=f?r.x:n.x,v=f?r.y:n.y,y=f?n.x:r.x,b=f?n.y:r.y,x=(g+y)/2,w=(v+b)/2,k=y-g,S=b-v,C=Math.sqrt(Math.pow(k,2)+Math.pow(S,2)),R=f?1:-1,T=
1x+S*l*R,E=w-k*l*R,A=.7*t.size+5,P={x:E-v,y:-(T-g)},Z=Math.sqrt(Math.pow(P.x,2)+Math.pow(P.y,2)),_={x:b-E,y:-(y-T)},L=Math.sqrt(Math.pow(_.x,2)+Math.pow(_.y,2));g+=A*P.x/Z,v+=A*P.y/Z,y+=A*_.x/L,b+=A*_.y/L;var M={x:T+=A*S/C,y:E-=A*k/C},I={x:g,y:v},F={x:y,y:b},z=function(e,t,r){for(var n=0,o=e,i=0;i<20;i++){var a=m((i+1)/20,e,t,r);n+=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),o=a}return n}(I,M,F);if(!(z<r.size+n.size)){var O=e.measureText(h).width,N=z-r.size-n.size;if(O>N){for(h+="…",O=e.measureText(h).width;O>N&&h.length>1;)h=h.slice(0,-2)+"…",O=e.measureText(h).width;if(h.length<4)return}for(var D={},B=0,j=h.length;B<j;B++){var G=h[B];D[G]||(D[G]=e.measureText(G).width*(1+.35*l))}for(var W=.5-O/z/2,U=0,H=h.length;U<H;U++){var q=h[U],V=m(W,I,M,F),$=2*(1-W)*(T-g)+2*W*(y-T),K=Math.atan2(2*(1-W)*(E-v)+2*W*(b-E),$);e.save(),e.translate(V.x,V.y),e.rotate(K),e.fillText(q,0,0),e.restore(),W+=D[q]/z}}}})),e}return!function(e,t){if("function"!=typeof t&&null!==t)throw 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&&p(e,t)}(l,e),n=[{key:"getDefinition",value:function(){var e,r,n,o,i,a;return{VERTICES:6,VERTEX_SHADER_SOURCE:(r=(null==(e=t.arrowHead)?void 0:e.extremity)==="target"||(null==e?void 0:e.extremity)==="both",n=(null==e?void 0:e.extremity)==="source"||(null==e?void 0:e.extremity)==="both","\nattribute vec4 a_id;\nattribute vec4 a_color;\nattribute float a_direction;\nattribute float a_thickness;\nattribute vec2 a_source;\nattribute vec2 a_target;\nattribute float a_current;\nattribute float a_curvature;\n".concat(r?"attribute float a_targetSize;\n":"","\n").concat(n?"attribute float a_sourceSize;\n":"","\n\nuniform mat3 u_matrix;\nuniform float u_sizeRatio;\nuniform float u_pixelRatio;\nuniform vec2 u_dimensions;\nuniform float u_minEdgeThickness;\nuniform float u_feather;\n\nvarying vec4 v_color;\nvarying float v_thickness;\nvarying float v_feather;\nvarying vec2 v_cpA;\nvarying vec2 v_cpB;\nvarying vec2 v_cpC;\n").concat(r?"\nvarying float v_targetSize;\nvarying vec2 v_targetPoint;":"","\n").concat(n?"\nvarying float v_sourceSize;\nvarying vec2 v_sourcePoint;":"","\n").concat(e?"\nuniform float u_widenessToThicknessRatio;":"",'\n\nconst float bias = 255.0 / 254.0;\nconst float epsilon = 0.7;\n\nvec2 clipspaceToViewport(vec2 pos, vec2 dimensions) {\n  return vec2(\n    (pos.x + 1.0) * dimensions.x / 2.0,\n    (pos.y + 1.0) * dimensions.y / 2.0\n  );\n}\n\nvec2 viewportToClipspace(vec2 pos, vec2 dimensions) {\n  return vec2(\n    pos.x / dimensions.x * 2.0 - 1.0,\n    pos.y / dimensions.y * 2.0 - 1.0\n  );\n}\n\nvoid main() {\n  float minThickness = u_minEdgeThickness;\n\n  // Selecting the correct position\n  // Branchless "position = a_source if a_current == 1.0 else a_target"\n  vec2 position = a_source * max(0.0, a_current) + a_target * max(0.0, 1.0 - a_current);\n  position = (u_matrix * vec3(position, 1)).xy;\n\n  vec2 source = (u_matrix * vec3(a_source, 1)).xy;\n  vec2 target = (u_matrix * vec3(a_target, 1)).xy;\n\n  vec2 viewportPosition = clipspaceToViewport(position, u_dimensions);\n  vec2 viewportSource = clipspaceToViewport(source, u_dimensions);\n  vec2 viewportTarget = clipspaceToViewport(target, u_dimensions);\n\n  vec2 delta = viewportTarget.xy - viewportSource.xy;\n  float len = length(delta);\n  vec2 normal = vec2(-delta.y, delta.x) * a_direction;\n  vec2 unitNormal = normal / len;\n  float boundingBoxThickness = len * a_curvature;\n\n  float curveThickness = max(minThickness, a_thickness / u_sizeRatio);\n  v_thickness = curveThickness * u_pixelRatio;\n  v_feather = u_feather;\n\n  v_cpA = viewportSource;\n  v_cpB = 0.5 * (viewportSource + viewportTarget) + unitNormal * a_direction * boundingBoxThickness;\n  v_cpC = viewportTarget;\n\n  vec2 viewportOffsetPosition = (\n    viewportPosition +\n    unitNormal * (boundingBoxThickness / 2.0 + sign(boundingBoxThickness) * (').concat(e?"curveThickness * u_widenessToThicknessRatio":"curveThickness"," + epsilon)) *\n    max(0.0, a_direction) // NOTE: cutting the bounding box in half to avoid overdraw\n  );\n\n  position = viewportToClipspace(viewportOffsetPosition, u_dimensions);\n  gl_Position = vec4(position, 0, 1);\n    \n").concat(r?"\n  v_targetSize = a_targetSize * u_pixelRatio / u_sizeRatio;\n  v_targetPoint = viewportTarget;\n":"","\n").concat(n?"\n  v_sourceSize = a_sourceSize * u_pixelRatio / u_sizeRatio;\n  v_sourcePoint = viewportSource;\n":"","\n\n  #ifdef PICKING_MODE\n  // For picking mode, we use the ID as the color:\n  v_color = a_id;\n  #else\n  // For normal mode, we use the color:\n  v_color = a_color;\n  #endif\n\n  v_color.a *= bias;\n}\n")),FRAGMENT_SHADER_SOURCE:(i=(null==(o=t.arrowHead)?void 0:o.extremity)==="target"||(null==o?void 0:o.extremity)==="both",a=(null==o?void 0:o.extremity)==="source"||(null==o?void 0:o.extremity)==="both","\nprecision highp float;\n\nvarying vec4 v_color;\nvarying float v_thickness;\nvarying float v_feather;\nvarying vec2 v_cpA;\nvarying vec2 v_cpB;\nvarying vec2 v_cpC;\n".concat(i?"\nvarying float v_targetSize;\nvarying vec2 v_targetPoint;":"","\n").concat(a?"\nvarying float v_sourceSize;\nvarying vec2 v_sourcePoint;":"","\n").concat(o?"\nuniform float u_lengthToThicknessRatio;\nuniform float u_widenessToThicknessRatio;":"","\n\nfloat det(vec2 a, vec2 b) {\n  return a.x * b.y - b.x * a.y;\n}\n\nvec2 getDistanceVector(vec2 b0, vec2 b1, vec2 b2) {\n  float a = det(b0, b2), b = 2.0 * det(b1, b0), d = 2.0 * det(b2, b1);\n  float f = b * d - a * a;\n  vec2 d21 = b2 - b1, d10 = b1 - b0, d20 = b2 - b0;\n  vec2 gf = 2.0 * (b * d21 + d * d10 + a * d20);\n  gf = vec2(gf.y, -gf.x);\n  vec2 pp = -f * gf / dot(gf, gf);\n  vec2 d0p = b0 - pp;
1\n  float ap = det(d0p, d20), bp = 2.0 * det(d10, d0p);\n  float t = clamp((ap + bp) / (2.0 * a + b + d), 0.0, 1.0);\n  return mix(mix(b0, b1, t), mix(b1, b2, t), t);\n}\n\nfloat distToQuadraticBezierCurve(vec2 p, vec2 b0, vec2 b1, vec2 b2) {\n  return length(getDistanceVector(b0 - p, b1 - p, b2 - p));\n}\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n  float dist = distToQuadraticBezierCurve(gl_FragCoord.xy, v_cpA, v_cpB, v_cpC);\n  float thickness = v_thickness;\n").concat(i?"\n  float distToTarget = length(gl_FragCoord.xy - v_targetPoint);\n  float targetArrowLength = v_targetSize + thickness * u_lengthToThicknessRatio;\n  if (distToTarget < targetArrowLength) {\n    thickness = (distToTarget - v_targetSize) / (targetArrowLength - v_targetSize) * u_widenessToThicknessRatio * thickness;\n  }":"","\n").concat(a?"\n  float distToSource = length(gl_FragCoord.xy - v_sourcePoint);\n  float sourceArrowLength = v_sourceSize + thickness * u_lengthToThicknessRatio;\n  if (distToSource < sourceArrowLength) {\n    thickness = (distToSource - v_sourceSize) / (sourceArrowLength - v_sourceSize) * u_widenessToThicknessRatio * thickness;\n  }":"","\n\n  float halfThickness = thickness / 2.0;\n  if (dist < halfThickness) {\n    #ifdef PICKING_MODE\n    gl_FragColor = v_color;\n    #else\n    float t = smoothstep(\n      halfThickness - v_feather,\n      halfThickness,\n      dist\n    );\n\n    gl_FragColor = mix(v_color, transparent, t);\n    #endif\n  } else {\n    gl_FragColor = transparent;\n  }\n}\n")),METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:x,ATTRIBUTES:[{name:"a_source",size:2,type:k},{name:"a_target",size:2,type:k}].concat(f(y?[{name:"a_targetSize",size:1,type:k}]:[]),f(b?[{name:"a_sourceSize",size:1,type:k}]:[]),[{name:"a_thickness",size:1,type:k},{name:"a_curvature",size:1,type:k},{name:"a_color",size:4,type:w,normalized:!0},{name:"a_id",size:4,type:w,normalized:!0}]),CONSTANT_ATTRIBUTES:[{name:"a_current",size:1,type:k},{name:"a_direction",size:1,type:k}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[0,-1],[1,1],[1,-1]]}}},{key:"processVisibleItem",value:function(e,t,r,n,i){var a,l=i.size||1,c=r.x,u=r.y,d=n.x,p=n.y,h=(0,o.f)(i.color),f=null!==(a=i[s])&&void 0!==a?a:g,m=this.array;m[t++]=c,m[t++]=u,m[t++]=d,m[t++]=p,y&&(m[t++]=n.size),b&&(m[t++]=r.size),m[t++]=l,m[t++]=f,m[t++]=h,m[t++]=e}},{key:"setUniforms",value:function(e,t){var n=t.gl,o=t.uniformLocations,i=o.u_matrix,a=o.u_pixelRatio,s=o.u_feather,l=o.u_sizeRatio,c=o.u_dimensions,u=o.u_minEdgeThickness;if(n.uniformMatrix3fv(i,!1,e.matrix),n.uniform1f(a,e.pixelRatio),n.uniform1f(l,e.sizeRatio),n.uniform1f(s,e.antiAliasingFeather),n.uniform2f(c,e.width*e.pixelRatio,e.height*e.pixelRatio),n.uniform1f(u,e.minEdgeThickness),r){var d=o.u_lengthToThicknessRatio,p=o.u_widenessToThicknessRatio;n.uniform1f(d,r.lengthToThicknessRatio),n.uniform1f(p,r.widenessToThicknessRatio)}}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}(l.prototype,n),Object.defineProperty(l,"prototype",{writable:!1}),l}(n.u2)}var C=S();S({arrowHead:n.aT}),S({arrowHead:l(l({},n.aT),{},{extremity:"both"})})},59219:function(e){e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},43366:function(e,t){t.assign=function(e){e=e||{};var t,r,n,o=Array.prototype.slice.call(arguments).slice(1);for(t=0,n=o.length;t<n;t++)if(o[t])for(r in o[t])e[r]=o[t][r];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!=typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!=typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!=typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!=typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:"scalingRatio"in e&&!("number"==typeof e.scalingRatio&&e.scalingRatio>=0)?{message:"the `scalingRatio` setting should be a number >= 0."}:"strongGravityMode"in e&&"boolean"!=typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:"gravity"in e&&!("number"==typeof e.gravity&&e.gravity>=0)?{message:"the `gravity` setting should be a number >= 0."}:"slowDown"in e&&!("number"==typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!=typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:"barnesHutTheta"in e&&!("number"==typeof e.barnesHutTheta&&e.barnesHutTheta>=0)?{message:"the `barnesHutTheta` setting should be a number >= 0."}:null},t.graphToByteArrays=function(e,t){var r,n=e.order,o=e.size,i={},a=new Float32Array(10*n),s=new Float32Array(3*o);return r=0,e.forEachNode(function(e,t){i[e]=r,a[r]=t.x,a[r+1]=t.y,a[r+2]=0,a[r+3]=0,a[r+4]=0,a[r+5]=0,a[r+6]=1,a[r+7]=1,a[r+8]=t.size||1,a[r+9]=t.fixed?1:0,r+=10}),r=0,e.forEachEdge(function(e,n,o,l,c,u,d){var p=i[o],h=i[l],f=t(e,n,o,l,c,u,d);a[p+6]+=f,a[h+6]+=f,s[r]=p,s[r+1]=h,s[r+2]=f,r+=3}),{nodes:a,edges:s}},t.assignLayoutChanges=function(e,t,r){var n=0;e.updateEachNodeAttributes(function(e,o){return o.x=t[n],o.y=t[n+1],n+=10,r?r(e,o):o})},t.readGraphPositions=function(e,t){var r=0;e.forEachNode(function(e,n){t[r]=n.x,t[r+1]=n.y,r+=10})},t.collectLayoutChanges=function(e,t,r){for(var n=e.nodes(),o={},i=0,a=0,s=t.length;i<s;i+=10){if(r){var l=Object.assign({},e.getNodeAttributes(n[a]));l.x=t[i],l.y=t[i+1],l=r(n[a],l),o[n[a]]={x:l.x,y:l.y}}else o[n[a]]={x:t[i],y:t[i+1]};a++}return o},t.createWorker=function(e){var t=window.URL||window.webkitURL,r=e.toString(),n=t.createObjectURL(new Blob(["("+r+").call(this);"],{type:"text/javascript"})),o=new Worker(n);return t.revokeObjectURL(n),o}}
1,71020:function(e,t,r){var n=r(55174),o=r(39036).Q6,i=r(22839),a=r(43366),s=r(59219);function l(e,t,r){if(!n(t))throw Error("graphology-layout-forceatlas2: the given graph is not a valid graphology instance.");"number"==typeof r&&(r={iterations:r});var l,c=r.iterations;if("number"!=typeof c)throw Error("graphology-layout-forceatlas2: invalid number of iterations.");if(c<=0)throw Error("graphology-layout-forceatlas2: you should provide a positive number of iterations.");var u=o("getEdgeWeight"in r?r.getEdgeWeight:"weight").fromEntry,d="function"==typeof r.outputReducer?r.outputReducer:null,p=a.assign({},s,r.settings),h=a.validateSettings(p);if(h)throw Error("graphology-layout-forceatlas2: "+h.message);var f=a.graphToByteArrays(t,u);for(l=0;l<c;l++)i(p,f.nodes,f.edges);if(e){a.assignLayoutChanges(t,f.nodes,d);return}return a.collectLayoutChanges(t,f.nodes)}var c=l.bind(null,!1);c.assign=l.bind(null,!0),c.inferSettings=function(e){var t="number"==typeof e?e:e.order;return{barnesHutOptimize:t>2e3,strongGravityMode:!0,gravity:.05,scalingRatio:10,slowDown:1+Math.log(t)}},e.exports=c},22839:function(e){e.exports=function(e,t,r){var n,o,i,a,s,l,c=t.length,u=r.length,d=e.adjustSizes,p=e.barnesHutTheta*e.barnesHutTheta,h=[];for(g=0;g<c;g+=10)t[g+4]=t[g+2],t[g+5]=t[g+3],t[g+2]=0,t[g+3]=0;if(e.outboundAttractionDistribution){for(g=0,C=0;g<c;g+=10)C+=t[g+6];C/=c/10}if(e.barnesHutOptimize){var f,m,g,v,y,b,x,w,k,S,C,R,T,E,A,P,Z,_,L,M,I=1/0,F=-1/0,z=1/0,O=-1/0;for(g=0;g<c;g+=10)I=Math.min(I,t[g+0]),F=Math.max(F,t[g+0]),z=Math.min(z,t[g+1]),O=Math.max(O,t[g+1]);var N=F-I,D=O-z;for(N>D?(z-=(N-D)/2,O=z+N):(I-=(D-N)/2,F=I+D),h[0]=-1,h[1]=(I+F)/2,h[2]=(z+O)/2,h[3]=Math.max(F-I,O-z),h[4]=-1,h[5]=-1,h[6]=0,h[7]=0,h[8]=0,f=1,g=0;g<c;g+=10)for(m=0,M=3;;){if(h[m+5]>=0){_=t[g+0]<h[m+1]?t[g+1]<h[m+2]?h[m+5]:h[m+5]+9:t[g+1]<h[m+2]?h[m+5]+18:h[m+5]+27,h[m+7]=(h[m+7]*h[m+6]+t[g+0]*t[g+6])/(h[m+6]+t[g+6]),h[m+8]=(h[m+8]*h[m+6]+t[g+1]*t[g+6])/(h[m+6]+t[g+6]),h[m+6]+=t[g+6],m=_;continue}if(h[m+0]<0){h[m+0]=g;break}if(h[m+5]=9*f,w=h[m+3]/2,k=h[m+5],h[k+0]=-1,h[k+1]=h[m+1]-w,h[k+2]=h[m+2]-w,h[k+3]=w,h[k+4]=k+9,h[k+5]=-1,h[k+6]=0,h[k+7]=0,h[k+8]=0,h[(k+=9)+0]=-1,h[k+1]=h[m+1]-w,h[k+2]=h[m+2]+w,h[k+3]=w,h[k+4]=k+9,h[k+5]=-1,h[k+6]=0,h[k+7]=0,h[k+8]=0,h[(k+=9)+0]=-1,h[k+1]=h[m+1]+w,h[k+2]=h[m+2]-w,h[k+3]=w,h[k+4]=k+9,h[k+5]=-1,h[k+6]=0,h[k+7]=0,h[k+8]=0,h[(k+=9)+0]=-1,h[k+1]=h[m+1]+w,h[k+2]=h[m+2]+w,h[k+3]=w,h[k+4]=h[m+4],h[k+5]=-1,h[k+6]=0,h[k+7]=0,h[k+8]=0,f+=4,_=t[h[m+0]+0]<h[m+1]?t[h[m+0]+1]<h[m+2]?h[m+5]:h[m+5]+9:t[h[m+0]+1]<h[m+2]?h[m+5]+18:h[m+5]+27,h[m+6]=t[h[m+0]+6],h[m+7]=t[h[m+0]+0],h[m+8]=t[h[m+0]+1],h[_+0]=h[m+0],h[m+0]=-1,_===(L=t[g+0]<h[m+1]?t[g+1]<h[m+2]?h[m+5]:h[m+5]+9:t[g+1]<h[m+2]?h[m+5]+18:h[m+5]+27)){if(M--){m=_;continue}M=3;break}h[L+0]=g;break}}if(e.barnesHutOptimize)for(g=0,R=e.scalingRatio;g<c;g+=10)for(m=0;;){if(h[m+5]>=0){if(P=Math.pow(t[g+0]-h[m+7],2)+Math.pow(t[g+1]-h[m+8],2),4*(S=h[m+3])*S/P<p){if(T=t[g+0]-h[m+7],E=t[g+1]-h[m+8],!0===d?P>0?(Z=R*t[g+6]*h[m+6]/P,t[g+2]+=T*Z,t[g+3]+=E*Z):P<0&&(Z=-R*t[g+6]*h[m+6]/Math.sqrt(P),t[g+2]+=T*Z,t[g+3]+=E*Z):P>0&&(Z=R*t[g+6]*h[m+6]/P,t[g+2]+=T*Z,t[g+3]+=E*Z),(m=h[m+4])<0)break;continue}m=h[m+5];continue}if((b=h[m+0])>=0&&b!==g&&(P=(T=t[g+0]-t[b+0])*T+(E=t[g+1]-t[b+1])*E,!0===d?P>0?(Z=R*t[g+6]*t[b+6]/P,t[g+2]+=T*Z,t[g+3]+=E*Z):P<0&&(Z=-R*t[g+6]*t[b+6]/Math.sqrt(P),t[g+2]+=T*Z,t[g+3]+=E*Z):P>0&&(Z=R*t[g+6]*t[b+6]/P,t[g+2]+=T*Z,t[g+3]+=E*Z)),(m=h[m+4])<0)break}else for(v=0,R=e.scalingRatio;v<c;v+=10)for(y=0;y<v;y+=10)T=t[v+0]-t[y+0],E=t[v+1]-t[y+1],!0===d?(P=Math.sqrt(T*T+E*E)-t[v+8]-t[y+8])>0?(Z=R*t[v+6]*t[y+6]/P/P,t[v+2]+=T*Z,t[v+3]+=E*Z,t[y+2]-=T*Z,t[y+3]-=E*Z):P<0&&(Z=100*R*t[v+6]*t[y+6],t[v+2]+=T*Z,t[v+3]+=E*Z,t[y+2]-=T*Z,t[y+3]-=E*Z):(P=Math.sqrt(T*T+E*E))>0&&(Z=R*t[v+6]*t[y+6]/P/P,t[v+2]+=T*Z,t[v+3]+=E*Z,t[y+2]-=T*Z,t[y+3]-=E*Z);for(g=0,k=e.gravity/e.scalingRatio,R=e.scalingRatio;g<c;g+=10)Z=0,P=Math.sqrt(Math.pow(T=t[g+0],2)+Math.pow(E=t[g+1],2)),e.strongGravityMode?P>0&&(Z=R*t[g+6]*k):P>0&&(Z=R*t[g+6]*k/P),t[g+2]-=T*Z,t[g+3]-=E*Z;for(x=0,R=1*(e.outboundAttractionDistribution?C:1);x<u;x+=3)v=r[x+0],y=r[x+1],A=Math.pow(w=r[x+2],e.edgeWeightInfluence),T=t[v+0]-t[y+0],E=t[v+1]-t[y+1],!0===d?(P=Math.sqrt(T*T+E*E)-t[v+8]-t[y+8],e.linLogMode?e.outboundAttractionDistribution?P>0&&(Z=-R*A*Math.log(1+P)/P/t[v+6]):P>0&&(Z=-R*A*Math.log(1+P)/P):e.outboundAttractionDistribution?P>0&&(Z=-R*A/t[v+6]):P>0&&(Z=-R*A)):(P=Math.sqrt(Math.pow(T,2)+Math.pow(E,2)),e.linLogMode?e.outboundAttractionDistribution?P>0&&(Z=-R*A*Math.log(1+P)/P/t[v+6]):P>0&&(Z=-R*A*Math.log(1+P)/P):e.outboundAttractionDistribution?(P=1,Z=-R*A/t[v+6]):(P=1,Z=-R*A)),P>0&&(t[v+2]+=T*Z,t[v+3]+=E*Z,t[y+2]-=T*Z,t[y+3]-=E*Z);if(!0===d)for(g=0;g<c;g+=10)1!==t[g+9]&&((n=Math.sqrt(Math.pow(t[g+2],2)+Math.pow(t[g+3],2)))>10&&(t[g+2]=10*t[g+2]/n,t[g+3]=10*t[g+3]/n),o=t[g+6]*Math.sqrt((t[g+4]-t[g+2])*(t[g+4]-t[g+2])+(t[g+5]-t[g+3])*(t[g+5]-t[g+3])),a=.1*Math.log(1+(i=Math.sqrt((t[g+4]+t[g+2])*(t[g+4]+t[g+2])+(t[g+5]+t[g+3])*(t[g+5]+t[g+3]))/2))/(1+Math.sqrt(o)),s=t[g+0]+t[g+2]*(a/e.slowDown),t[g+0]=s,l=t[g+1]+t[g+3]*(a/e.slowDown),t[g+1]=l);else for(g=0;g<c;g+=10)1!==t[g+9]&&(o=t[g+6]*Math.sqrt((t[g+4]-t[g+2])*(t[g+4]-t[g+2])+(t[g+5]-t[g+3])*(t[g+5]-t[g+3])),i=Math.sqrt((t[g+4]+t[g+2])*(t[g+4]+t[g+2])+(t[g+5]+t[g+3])*(t[g+5]+t[g+3]))/2,a=t[g+7]*Math.log(1+i)/(1+Math.sqrt(o)),t[g+7]=Math.min(1,Math.sqrt(a*(Math.pow(t[g+2],2)+Math.pow(t[g+3],2))/(1+Math.sqrt(o)))),s=t[g+0]+t[g+2]*(a/e.slowDown),t[g+0]=s,l=t[g+1]+t[g+3]*(a/e.slowDown),t[g+1]=l);return{}}},36420:function(e){e.exports=function(){var e,t,r={};r.exports=function(e,t,r){var n,o,i,a,s,l,c=t.length,u=r.length,d=e.adjustSizes,p=e.barnesHutTheta*e.barnesHutTheta,h=[];for(g=0;g<c;g+=10)t[g+4]=t[g+2],t[g+5]=t[g+3],t[g+2]=0,t[g+3]=0;if(e.outboundAttractionDistribution){for(g=0,C=0;g<c;g+=10)C+=t[g+6];C/=c/10}if(e.barnesHutOptimize){var f,m,g,v,y,b,x,w,k,S,C,R,T,E,A,P,Z,_,L,M,I=1/0,F=-1/0,z=1/0,O=-1/0;for(g=0;g<c;g+=10)I=Math.min(I,t[g+0]),F=Math.max(F,t[g+0]),z=Math.min(z,t[g+1]),O=Math.max(O,t[g+1
1]);var N=F-I,D=O-z;for(N>D?(z-=(N-D)/2,O=z+N):(I-=(D-N)/2,F=I+D),h[0]=-1,h[1]=(I+F)/2,h[2]=(z+O)/2,h[3]=Math.max(F-I,O-z),h[4]=-1,h[5]=-1,h[6]=0,h[7]=0,h[8]=0,f=1,g=0;g<c;g+=10)for(m=0,M=3;;){if(h[m+5]>=0){_=t[g+0]<h[m+1]?t[g+1]<h[m+2]?h[m+5]:h[m+5]+9:t[g+1]<h[m+2]?h[m+5]+18:h[m+5]+27,h[m+7]=(h[m+7]*h[m+6]+t[g+0]*t[g+6])/(h[m+6]+t[g+6]),h[m+8]=(h[m+8]*h[m+6]+t[g+1]*t[g+6])/(h[m+6]+t[g+6]),h[m+6]+=t[g+6],m=_;continue}if(h[m+0]<0){h[m+0]=g;break}if(h[m+5]=9*f,w=h[m+3]/2,k=h[m+5],h[k+0]=-1,h[k+1]=h[m+1]-w,h[k+2]=h[m+2]-w,h[k+3]=w,h[k+4]=k+9,h[k+5]=-1,h[k+6]=0,h[k+7]=0,h[k+8]=0,h[(k+=9)+0]=-1,h[k+1]=h[m+1]-w,h[k+2]=h[m+2]+w,h[k+3]=w,h[k+4]=k+9,h[k+5]=-1,h[k+6]=0,h[k+7]=0,h[k+8]=0,h[(k+=9)+0]=-1,h[k+1]=h[m+1]+w,h[k+2]=h[m+2]-w,h[k+3]=w,h[k+4]=k+9,h[k+5]=-1,h[k+6]=0,h[k+7]=0,h[k+8]=0,h[(k+=9)+0]=-1,h[k+1]=h[m+1]+w,h[k+2]=h[m+2]+w,h[k+3]=w,h[k+4]=h[m+4],h[k+5]=-1,h[k+6]=0,h[k+7]=0,h[k+8]=0,f+=4,_=t[h[m+0]+0]<h[m+1]?t[h[m+0]+1]<h[m+2]?h[m+5]:h[m+5]+9:t[h[m+0]+1]<h[m+2]?h[m+5]+18:h[m+5]+27,h[m+6]=t[h[m+0]+6],h[m+7]=t[h[m+0]+0],h[m+8]=t[h[m+0]+1],h[_+0]=h[m+0],h[m+0]=-1,_===(L=t[g+0]<h[m+1]?t[g+1]<h[m+2]?h[m+5]:h[m+5]+9:t[g+1]<h[m+2]?h[m+5]+18:h[m+5]+27)){if(M--){m=_;continue}M=3;break}h[L+0]=g;break}}if(e.barnesHutOptimize)for(g=0,R=e.scalingRatio;g<c;g+=10)for(m=0;;){if(h[m+5]>=0){if(P=Math.pow(t[g+0]-h[m+7],2)+Math.pow(t[g+1]-h[m+8],2),4*(S=h[m+3])*S/P<p){if(T=t[g+0]-h[m+7],E=t[g+1]-h[m+8],!0===d?P>0?(Z=R*t[g+6]*h[m+6]/P,t[g+2]+=T*Z,t[g+3]+=E*Z):P<0&&(Z=-R*t[g+6]*h[m+6]/Math.sqrt(P),t[g+2]+=T*Z,t[g+3]+=E*Z):P>0&&(Z=R*t[g+6]*h[m+6]/P,t[g+2]+=T*Z,t[g+3]+=E*Z),(m=h[m+4])<0)break;continue}m=h[m+5];continue}if((b=h[m+0])>=0&&b!==g&&(P=(T=t[g+0]-t[b+0])*T+(E=t[g+1]-t[b+1])*E,!0===d?P>0?(Z=R*t[g+6]*t[b+6]/P,t[g+2]+=T*Z,t[g+3]+=E*Z):P<0&&(Z=-R*t[g+6]*t[b+6]/Math.sqrt(P),t[g+2]+=T*Z,t[g+3]+=E*Z):P>0&&(Z=R*t[g+6]*t[b+6]/P,t[g+2]+=T*Z,t[g+3]+=E*Z)),(m=h[m+4])<0)break}else for(v=0,R=e.scalingRatio;v<c;v+=10)for(y=0;y<v;y+=10)T=t[v+0]-t[y+0],E=t[v+1]-t[y+1],!0===d?(P=Math.sqrt(T*T+E*E)-t[v+8]-t[y+8])>0?(Z=R*t[v+6]*t[y+6]/P/P,t[v+2]+=T*Z,t[v+3]+=E*Z,t[y+2]-=T*Z,t[y+3]-=E*Z):P<0&&(Z=100*R*t[v+6]*t[y+6],t[v+2]+=T*Z,t[v+3]+=E*Z,t[y+2]-=T*Z,t[y+3]-=E*Z):(P=Math.sqrt(T*T+E*E))>0&&(Z=R*t[v+6]*t[y+6]/P/P,t[v+2]+=T*Z,t[v+3]+=E*Z,t[y+2]-=T*Z,t[y+3]-=E*Z);for(g=0,k=e.gravity/e.scalingRatio,R=e.scalingRatio;g<c;g+=10)Z=0,P=Math.sqrt(Math.pow(T=t[g+0],2)+Math.pow(E=t[g+1],2)),e.strongGravityMode?P>0&&(Z=R*t[g+6]*k):P>0&&(Z=R*t[g+6]*k/P),t[g+2]-=T*Z,t[g+3]-=E*Z;for(x=0,R=1*(e.outboundAttractionDistribution?C:1);x<u;x+=3)v=r[x+0],y=r[x+1],A=Math.pow(w=r[x+2],e.edgeWeightInfluence),T=t[v+0]-t[y+0],E=t[v+1]-t[y+1],!0===d?(P=Math.sqrt(T*T+E*E)-t[v+8]-t[y+8],e.linLogMode?e.outboundAttractionDistribution?P>0&&(Z=-R*A*Math.log(1+P)/P/t[v+6]):P>0&&(Z=-R*A*Math.log(1+P)/P):e.outboundAttractionDistribution?P>0&&(Z=-R*A/t[v+6]):P>0&&(Z=-R*A)):(P=Math.sqrt(Math.pow(T,2)+Math.pow(E,2)),e.linLogMode?e.outboundAttractionDistribution?P>0&&(Z=-R*A*Math.log(1+P)/P/t[v+6]):P>0&&(Z=-R*A*Math.log(1+P)/P):e.outboundAttractionDistribution?(P=1,Z=-R*A/t[v+6]):(P=1,Z=-R*A)),P>0&&(t[v+2]+=T*Z,t[v+3]+=E*Z,t[y+2]-=T*Z,t[y+3]-=E*Z);if(!0===d)for(g=0;g<c;g+=10)1!==t[g+9]&&((n=Math.sqrt(Math.pow(t[g+2],2)+Math.pow(t[g+3],2)))>10&&(t[g+2]=10*t[g+2]/n,t[g+3]=10*t[g+3]/n),o=t[g+6]*Math.sqrt((t[g+4]-t[g+2])*(t[g+4]-t[g+2])+(t[g+5]-t[g+3])*(t[g+5]-t[g+3])),a=.1*Math.log(1+(i=Math.sqrt((t[g+4]+t[g+2])*(t[g+4]+t[g+2])+(t[g+5]+t[g+3])*(t[g+5]+t[g+3]))/2))/(1+Math.sqrt(o)),s=t[g+0]+t[g+2]*(a/e.slowDown),t[g+0]=s,l=t[g+1]+t[g+3]*(a/e.slowDown),t[g+1]=l);else for(g=0;g<c;g+=10)1!==t[g+9]&&(o=t[g+6]*Math.sqrt((t[g+4]-t[g+2])*(t[g+4]-t[g+2])+(t[g+5]-t[g+3])*(t[g+5]-t[g+3])),i=Math.sqrt((t[g+4]+t[g+2])*(t[g+4]+t[g+2])+(t[g+5]+t[g+3])*(t[g+5]+t[g+3]))/2,a=t[g+7]*Math.log(1+i)/(1+Math.sqrt(o)),t[g+7]=Math.min(1,Math.sqrt(a*(Math.pow(t[g+2],2)+Math.pow(t[g+3],2))/(1+Math.sqrt(o)))),s=t[g+0]+t[g+2]*(a/e.slowDown),t[g+0]=s,l=t[g+1]+t[g+3]*(a/e.slowDown),t[g+1]=l);return{}};var n=r.exports;self.addEventListener("message",function(r){var o=r.data;e=new Float32Array(o.nodes),o.edges&&(t=new Float32Array(o.edges)
1),n(o.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])})}},86607:function(e,t,r){var n=r(36420),o=r(55174),i=r(39036).Q6,a=r(43366),s=r(59219);function l(e,t){if(t=t||{},!o(e))throw Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var r=i("getEdgeWeight"in t?t.getEdgeWeight:"weight").fromEntry,n=a.assign({},s,t.settings),l=a.validateSettings(n);if(l)throw Error("graphology-layout-forceatlas2/worker: "+l.message);this.worker=null,this.graph=e,this.settings=n,this.getEdgeWeight=r,this.matrices=null,this.running=!1,this.killed=!1,this.outputReducer="function"==typeof t.outputReducer?t.outputReducer:null,this.handleMessage=this.handleMessage.bind(this);var c=void 0,u=this;this.handleGraphUpdate=function(){u.worker&&u.worker.terminate(),c&&clearTimeout(c),c=setTimeout(function(){c=void 0,u.spawnWorker()},0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}l.prototype.isRunning=function(){return this.running},l.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=a.createWorker(n),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},l.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);a.assignLayoutChanges(this.graph,t,this.outputReducer),this.outputReducer&&a.readGraphPositions(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},l.prototype.askForIterations=function(e){var t=this.matrices,r={settings:this.settings,nodes:t.nodes.buffer},n=[t.nodes.buffer];return e&&(r.edges=t.edges.buffer,n.push(t.edges.buffer)),this.worker.postMessage(r,n),this},l.prototype.start=function(){if(this.killed)throw Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=a.graphToByteArrays(this.graph,this.getEdgeWeight),this.running=!0,this.askForIterations(!0)),this},l.prototype.stop=function(){return this.running=!1,this},l.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=l},39036:function(e,t){function r(e){return"number"!=typeof e||isNaN(e)?1:e}t.Q6=function(e){var t,n,o,i;return t={},n=function(e){return void 0===e?r:e},n=r,o=function(t){return n(t[e])},i=function(){return n(void 0)},"string"==typeof e?(t.fromAttributes=o,t.fromGraph=function(e,t){return o(e.getEdgeAttributes(t))},t.fromEntry=function(e,t){return o(t)},t.fromPartialEntry=t.fromEntry,t.fromMinimalEntry=t.fromEntry):"function"==typeof e?(t.fromAttributes=function(){throw Error("graphology-utils/getters/createEdgeValueGetter: irrelevant usage.")},t.fromGraph=function(t,r){var o=t.extremities(r);return n(e(r,t.getEdgeAttributes(r),o[0],o[1],t.getNodeAttributes(o[0]),t.getNodeAttributes(o[1]),t.isUndirected(r)))},t.fromEntry=function(t,r,o,i,a,s,l){return n(e(t,r,o,i,a,s,l))},t.fromPartialEntry=function(t,r,o,i){return n(e(t,r,o,i))},t.fromMinimalEntry=function(t,r){return n(e(t,r))}):(t.fromAttributes=i,t.fromGraph=i,t.fromEntry=i,t.fromMinimalEntry=i),t}},55174:function(e){e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.addUndirectedEdgeWithKey&&"function"==typeof e.dropNode&&"boolean"==typeof e.multi}},24213:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}
1finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||o(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(t,{_:function(){return i},a:function(){return n},b:function(){return o},c:function(){return y},f:function(){return m},g:function(){return b},i:function(){return v}});var a={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"},s=new Int8Array(4),l=new Int32Array(s.buffer,0,1),c=new Float32Array(s.buffer,0,1),u=/^\s*rgba?\s*\(/,d=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/,p={};for(var h in a)p[h]=m(a[h]),p[a[h]]=p[h];function f(e,t,r,n,o){return l[0]=n<<24|r<<16|t<<8|e,o&&(l[0]=4278190079&l[0]),c[0]}function m(e){if(void 0!==p[e=e.toLowerCase()])return p[e];var t=function(e){var t=0,r=0,n=0,o=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),r=parseInt(e.charAt(2)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(4),16),n=parseInt(e.charAt(5)+e.charAt(6),16)),9===e.length&&(o=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(u.test(e)){var i=e.match(d);i&&(t=+i[1],r=+i[2],n=+i[3],i[4]&&(o=+i[4]))}return{r:t,g:r,b:n,a:o}}(e),r=t.r,n=t.g,o=t.b,i=t.a,a=f(r,n,o,i=255*i|0,!0);return p[e]=a,a}var g={};function v(e){if(void 0!==g[e])return g[e];var t=f((16711680&e)>>>16,(65280&e)>>>8,255&e,255,!0);return g[e]=t,t}function y(e,t,r,n){return r+(t<<8)+(e<<16)}function b(e,t,r,n,o,a){var s=Math.floor(e.drawingBufferHeight/a-n/a*o),l=new Uint8Array(4);e.bindFramebuffer(e.FRAMEBUFFER,t),e.readPixels(Math.floor(r/a*o),s,1,1,e.RGBA,e.UNSIGNED_BYTE,l);var c=i(l,4);
1return[c[0],c[1],c[2],c[3]]}},48486:function(e,t,r){"use strict";r.d(t,{D:function(){return L},E:function(){return j},F:function(){return I},N:function(){return E},_:function(){return l},a:function(){return a},b:function(){return w},c:function(){return k},d:function(){return x},e:function(){return q},g:function(){return y},h:function(){return b},i:function(){return M}});var n,o=r(56516),i=r(24213);function a(e,t,r){return(t=(0,o.d)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!({}).hasOwnProperty.call(e,t)&&null!==(e=(0,o.e)(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}}).apply(null,arguments)}function u(e,t,r,n){var i=c((0,o.e)(1&n?e.prototype:e),t,r);return 2&n&&"function"==typeof i?function(e){return i.apply(r,e)}:i}function d(e){var t=0;return e.forEach(function(e){return t+=e.normalized?1:e.size}),t}function p(e,t,r){var n="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,o=t.createShader(n);if(null===o)throw Error("loadShader: error while creating the shader");if(t.shaderSource(o,r),t.compileShader(o),!t.getShaderParameter(o,t.COMPILE_STATUS)){var i=t.getShaderInfoLog(o);throw t.deleteShader(o),Error("loadShader: error while compiling the shader:\n".concat(i,"\n").concat(r))}return o}function h(e){var t=e.gl,r=e.buffer,n=e.program,o=e.vertexShader,i=e.fragmentShader;t.deleteShader(o),t.deleteShader(i),t.deleteProgram(n),t.deleteBuffer(r)}var f="#define PICKING_MODE\n",m=a(a(a(a(a(a(a(a({},WebGL2RenderingContext.BOOL,1),WebGL2RenderingContext.BYTE,1),WebGL2RenderingContext.UNSIGNED_BYTE,1),WebGL2RenderingContext.SHORT,2),WebGL2RenderingContext.UNSIGNED_SHORT,2),WebGL2RenderingContext.INT,4),WebGL2RenderingContext.UNSIGNED_INT,4),WebGL2RenderingContext.FLOAT,4),g=(0,o.a)(function e(t,r,n){(0,o.b)(this,e),a(this,"array",new Float32Array),a(this,"constantArray",new Float32Array),a(this,"capacity",0),a(this,"verticesCount",0);var i=this.getDefinition();if(this.VERTICES=i.VERTICES,this.VERTEX_SHADER_SOURCE=i.VERTEX_SHADER_SOURCE,this.FRAGMENT_SHADER_SOURCE=i.FRAGMENT_SHADER_SOURCE,this.UNIFORMS=i.UNIFORMS,this.ATTRIBUTES=i.ATTRIBUTES,this.METHOD=i.METHOD,this.CONSTANT_ATTRIBUTES="CONSTANT_ATTRIBUTES"in i?i.CONSTANT_ATTRIBUTES:[],this.CONSTANT_DATA="CONSTANT_DATA"in i?i.CONSTANT_DATA:[],this.isInstanced="CONSTANT_ATTRIBUTES"in i,this.ATTRIBUTES_ITEMS_COUNT=d(this.ATTRIBUTES),this.STRIDE=this.VERTICES*this.ATTRIBUTES_ITEMS_COUNT,this.renderer=n,this.normalProgram=this.getProgramInfo("normal",t,i.VERTEX_SHADER_SOURCE,i.FRAGMENT_SHADER_SOURCE,null),this.pickProgram=r?this.getProgramInfo("pick",t,f+i.VERTEX_SHADER_SOURCE,f+i.FRAGMENT_SHADER_SOURCE,r):null,this.isInstanced){var s=d(this.CONSTANT_ATTRIBUTES);if(this.CONSTANT_DATA.length!==this.VERTICES)throw Error("Program: error while getting constant data (expected ".concat(this.VERTICES," items, received ").concat(this.CONSTANT_DATA.length," instead)"));this.constantArray=new Float32Array(this.CONSTANT_DATA.length*s);for(var l=0;l<this.CONSTANT_DATA.length;l++){var c=this.CONSTANT_DATA[l];if(c.length!==s)throw Error("Program: error while getting constant data (one vector has ".concat(c.length," items instead of ").concat(s,")"));for(var u=0;u<c.length;u++)this.constantArray[l*s+u]=c[u]}this.STRIDE=this.ATTRIBUTES_ITEMS_COUNT}},[{key:"kill",value:function(){h(this.normalProgram),this.pickProgram&&(h(this.pickProgram),this.pickProgram=null)}},{key:"getProgramInfo",value:function(e,t,r,n,o){var i,a=this.getDefinition(),s=t.createBuffer();if(null===s)throw Error("Program: error while creating the WebGL buffer.");
1var l=p("VERTEX",t,r),c=p("FRAGMENT",t,n),u=function(e,t){var r,n,o=e.createProgram();if(null===o)throw Error("loadProgram: error while creating the program.");for(r=0,n=t.length;r<n;r++)e.attachShader(o,t[r]);if(e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS)){var i=e.getProgramInfoLog(o);throw e.deleteProgram(o),Error("loadProgram: error while linking the program: ".concat(i))}return o}(t,[l,c]),d={};a.UNIFORMS.forEach(function(e){var r=t.getUniformLocation(u,e);r&&(d[e]=r)});var h={};if(a.ATTRIBUTES.forEach(function(e){h[e.name]=t.getAttribLocation(u,e.name)}),"CONSTANT_ATTRIBUTES"in a&&(a.CONSTANT_ATTRIBUTES.forEach(function(e){h[e.name]=t.getAttribLocation(u,e.name)}),null===(i=t.createBuffer())))throw Error("Program: error while creating the WebGL constant buffer.");return{name:e,program:u,gl:t,frameBuffer:o,buffer:s,constantBuffer:i||{},uniformLocations:d,attributeLocations:h,isPicking:"pick"===e,vertexShader:l,fragmentShader:c}}},{key:"bindProgram",value:function(e){var t=this,r=0,n=e.gl,o=e.buffer;this.isInstanced?(n.bindBuffer(n.ARRAY_BUFFER,e.constantBuffer),r=0,this.CONSTANT_ATTRIBUTES.forEach(function(n){return r+=t.bindAttribute(n,e,r,!1)}),n.bufferData(n.ARRAY_BUFFER,this.constantArray,n.STATIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,e.buffer),r=0,this.ATTRIBUTES.forEach(function(n){return r+=t.bindAttribute(n,e,r,!0)})):(n.bindBuffer(n.ARRAY_BUFFER,o),r=0,this.ATTRIBUTES.forEach(function(n){return r+=t.bindAttribute(n,e,r)})),n.bufferData(n.ARRAY_BUFFER,this.array,n.DYNAMIC_DRAW),n.bindBuffer(n.ARRAY_BUFFER,null)}},{key:"unbindProgram",value:function(e){var t=this;this.isInstanced?(this.CONSTANT_ATTRIBUTES.forEach(function(r){return t.unbindAttribute(r,e,!1)}),this.ATTRIBUTES.forEach(function(r){return t.unbindAttribute(r,e,!0)})):this.ATTRIBUTES.forEach(function(r){return t.unbindAttribute(r,e)})}},{key:"bindAttribute",value:function(e,t,r,n){var o=m[e.type];if("number"!=typeof o)throw Error('Program.bind: yet unsupported attribute type "'.concat(e.type,'"'));var i=t.attributeLocations[e.name],a=t.gl;if(-1!==i){a.enableVertexAttribArray(i);var s=this.isInstanced?(n?this.ATTRIBUTES_ITEMS_COUNT:d(this.CONSTANT_ATTRIBUTES))*Float32Array.BYTES_PER_ELEMENT:this.ATTRIBUTES_ITEMS_COUNT*Float32Array.BYTES_PER_ELEMENT;if(a.vertexAttribPointer(i,e.size,e.type,e.normalized||!1,s,r),this.isInstanced&&n){if(a instanceof WebGL2RenderingContext)a.vertexAttribDivisor(i,1);else{var l=a.getExtension("ANGLE_instanced_arrays");l&&l.vertexAttribDivisorANGLE(i,1)}}}return e.size*o}},{key:"unbindAttribute",value:function(e,t,r){var n=t.attributeLocations[e.name],o=t.gl;if(-1!==n&&(o.disableVertexAttribArray(n),this.isInstanced&&r)){
1if(o instanceof WebGL2RenderingContext)o.vertexAttribDivisor(n,0);else{var i=o.getExtension("ANGLE_instanced_arrays");i&&i.vertexAttribDivisorANGLE(n,0)}}}},{key:"reallocate",value:function(e){e!==this.capacity&&(this.capacity=e,this.verticesCount=this.VERTICES*e,this.array=new Float32Array(this.isInstanced?this.capacity*this.ATTRIBUTES_ITEMS_COUNT:this.verticesCount*this.ATTRIBUTES_ITEMS_COUNT))}},{key:"hasNothingToRender",value:function(){return 0===this.verticesCount}},{key:"renderProgram",value:function(e,t){var r=t.gl,n=t.program;r.enable(r.BLEND),r.useProgram(n),this.setUniforms(e,t),this.drawWebGL(this.METHOD,t)}},{key:"render",value:function(e){this.hasNothingToRender()||(this.pickProgram&&(this.pickProgram.gl.viewport(0,0,e.width*e.pixelRatio/e.downSizingRatio,e.height*e.pixelRatio/e.downSizingRatio),this.bindProgram(this.pickProgram),this.renderProgram(l(l({},e),{},{pixelRatio:e.pixelRatio/e.downSizingRatio}),this.pickProgram),this.unbindProgram(this.pickProgram)),this.normalProgram.gl.viewport(0,0,e.width*e.pixelRatio,e.height*e.pixelRatio),this.bindProgram(this.normalProgram),this.renderProgram(e,this.normalProgram),this.unbindProgram(this.normalProgram))}},{key:"drawWebGL",value:function(e,t){var r=t.gl,n=t.frameBuffer;if(r.bindFramebuffer(r.FRAMEBUFFER,n),this.isInstanced){if(r instanceof WebGL2RenderingContext)r.drawArraysInstanced(e,0,this.VERTICES,this.capacity);else{var o=r.getExtension("ANGLE_instanced_arrays");o&&o.drawArraysInstancedANGLE(e,0,this.VERTICES,this.capacity)}}else r.drawArrays(e,0,this.verticesCount)}}]),v=function(e){function t(){return(0,o.b)(this,t),(0,o.c)(this,t,arguments)}return(0,o._)(t,e),(0,o.a)(t,[{key:"kill",value:function(){u(t,"kill",this,3)([])}},{key:"process",value:function(e,t,r){var n=t*this.STRIDE;if(r.hidden){for(var o=n+this.STRIDE;n<o;n++)this.array[n]=0;return}return this.processVisibleItem((0,i.i)(e),n,r)}}])}(g),y=function(e){function t(){var e;(0,o.b)(this,t);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return a(e=(0,o.c)(this,t,[].concat(n)),"drawLabel",void 0),e}return(0,o._)(t,e),(0,o.a)(t,[{key:"kill",value:function(){u(t,"kill",this,3)([])}},{key:"process",value:function(e,t,r,n,o){var a=t*this.STRIDE;if(o.hidden||r.hidden||n.hidden){for(var s=a+this.STRIDE;a<s;a++)this.array[a]=0;return}return this.processVisibleItem((0,i.i)(e),a,r,n,o)}}])}(g);function b(e,t){return(0,o.a)(function r(n,i,s){(0,o.b)(this,r),a(this,"drawLabel",t),this.programs=e.map(function(e){return new e(n,i,s)})},[{key:"reallocate",value:function(e){this.programs.forEach(function(t){return t.reallocate(e)})}},{key:"process",value:function(e,t,r,n,o){this.programs.forEach(function(i){return i.process(e,t,r,n,o)})}},{key:"render",value:function(e){this.programs.forEach(function(t){return t.render(e)})}},{key:"kill",value:function(){this.programs.forEach(function(e){return e.kill()})}}])}function x(e,t,r,n,o){var i,a=o.edgeLabelSize,s=o.edgeLabelFont,l=o.edgeLabelWeight,c=o.edgeLabelColor.attribute?t[o.edgeLabelColor.attribute]||o.edgeLabelColor.color||"#000":o.edgeLabelColor.color,u=t.label;if(u){e.fillStyle=c,e.font="".concat(l," ").concat(a,"px ").concat(s);var d=r.size,p=n.size,h=r.x,f=r.y,m=n.x,g=n.y,v=(h+m)/2,y=(f+g)/2,b=m-h,x=g-f,w=Math.sqrt(b*b+x*x);if(!(w<d+p)){h+=b*d/w,f+=x*d/w,m-=b*p/w,g-=x*p/w,v=(h+m)/2,y=(f+g)/2,w=Math.sqrt((b=m-h)*b+(x=g-f)*x);var k=e.measureText(u).width;if(k>w){for(u+="…",k=e.measureText(u).width;k>w&&u.length>1;)u=u.slice(0,-2)+"…",k=e.measureText(u).width;if(u.length<4)return}i=b>0?x>0?Math.acos(b/w):Math.asin(x/w):x>0?Math.acos(b/w)+Math.PI:Math.asin(b/w)+Math.PI/2,e.save(),e.translate(v,y),e.rotate(i),e.fillText(u,-k/2,t.size/2+a),e.restore()}}}function w(e,t,r){if(t.label){var n=r.labelSize,o=r.labelFont,i=r.labelWeight,a=r.labelColor.attribute?t[r.labelColor.attribute]||r.labelColor.color||"#000":r.labelColor.color;e.fillStyle=a,e.font="".concat(i," ").concat(n,"px ").concat(o),e.fillText(t.label,t.x+t.size+3,t.y+n/3)}}function k(e,t,r){var n=r.labelSize,o=r.labelFont,i=r.labelWeight;if(e.font="".concat(i," ").concat(n,"px ").concat(o),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"==typeof t.label){var a=Math.round(e.measureText(t.label).width+5),s=Math.round(n+4),l=Math.max(t.size,n/2)+2,c=Math.asin(s/2/l),u=Math.sqrt(Math.abs(Math.pow(l,2)-Math.pow(s/2,2)));e.beginPath(),e.moveTo(t.x+u,t.y+s/2),e.lineTo(t.x+l+a,t.y+s/2),e.lineTo(t.x+l+a,t.y-s/2),e.lineTo(t.x+u,t.y-s/2),e.arc(t.x,t.y,l,c,-c),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,w(e,t,r)}
1var S=WebGLRenderingContext,C=S.UNSIGNED_BYTE,R=S.FLOAT,T=["u_sizeRatio","u_correctionRatio","u_matrix"],E=function(e){function t(){return(0,o.b)(this,t),(0,o.c)(this,t,arguments)}return(0,o._)(t,e),(0,o.a)(t,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:"\nattribute vec4 a_id;\nattribute vec4 a_color;\nattribute vec2 a_position;\nattribute float a_size;\nattribute float a_angle;\n\nuniform mat3 u_matrix;\nuniform float u_sizeRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_diffVector;\nvarying float v_radius;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n  float size = a_size * u_correctionRatio / u_sizeRatio * 4.0;\n  vec2 diffVector = size * vec2(cos(a_angle), sin(a_angle));\n  vec2 position = a_position + diffVector;\n  gl_Position = vec4(\n    (u_matrix * vec3(position, 1)).xy,\n    0,\n    1\n  );\n\n  v_diffVector = diffVector;\n  v_radius = size / 2.0;\n\n  #ifdef PICKING_MODE\n  // For picking mode, we use the ID as the color:\n  v_color = a_id;\n  #else\n  // For normal mode, we use the color:\n  v_color = a_color;\n  #endif\n\n  v_color.a *= bias;\n}\n",FRAGMENT_SHADER_SOURCE:"\nprecision highp float;\n\nvarying vec4 v_color;\nvarying vec2 v_diffVector;\nvarying float v_radius;\n\nuniform float u_correctionRatio;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n  float border = u_correctionRatio * 2.0;\n  float dist = length(v_diffVector) - v_radius + border;\n\n  // No antialiasing for picking mode:\n  #ifdef PICKING_MODE\n  if (dist > border)\n    gl_FragColor = transparent;\n  else\n    gl_FragColor = v_color;\n\n  #else\n  float t = 0.0;\n  if (dist > border)\n    t = 1.0;\n  else if (dist > 0.0)\n    t = dist / border;\n\n  gl_FragColor = mix(v_color, transparent, t);\n  #endif\n}\n",METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:T,ATTRIBUTES:[{name:"a_position",size:2,type:R},{name:"a_size",size:1,type:R},{name:"a_color",size:4,type:C,normalized:!0},{name:"a_id",size:4,type:C,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_angle",size:1,type:R}],CONSTANT_DATA:[[t.ANGLE_1],[t.ANGLE_2],[t.ANGLE_3]]}}},{key:"processVisibleItem",value:function(e,t,r){var n=this.array,o=(0,i.f)(r.color);n[t++]=r.x,n[t++]=r.y,n[t++]=r.size,n[t++]=o,n[t++]=e}},{key:"setUniforms",value:function(e,t){var r=t.gl,n=t.uniformLocations,o=n.u_sizeRatio,i=n.u_correctionRatio,a=n.u_matrix;r.uniform1f(i,e.correctionRatio),r.uniform1f(o,e.sizeRatio),r.uniformMatrix3fv(a,!1,e.matrix)}}])}(v);a(E,"ANGLE_1",0),a(E,"ANGLE_2",2*Math.PI/3),a(E,"ANGLE_3",4*Math.PI/3);var A=WebGLRenderingContext,P=A.UNSIGNED_BYTE,Z=A.FLOAT,_=["u_matrix","u_sizeRatio","u_correctionRatio","u_minEdgeThickness","u_lengthToThicknessRatio","u_widenessToThicknessRatio"],L={extremity:"target",lengthToThicknessRatio:2.5,widenessToThicknessRatio:2};function M(e){var t=l(l({},L),e||{});return function(e){function r(){return(0,o.b)(this,r),(0,o.c)(this,r,arguments)}return(0,o._)(r,e),(0,o.a)(r,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:"\nattribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec3 a_barycentric;\n\n#ifdef PICKING_MODE\nattribute vec4 a_id;\n#else\nattribute vec4 a_color;\n#endif\n\nuniform mat3 u_matrix;\nuniform float u_sizeRatio;\nuniform float u_correctionRatio;\nuniform float u_minEdgeThickness;\nuniform float u_lengthToThicknessRatio;\nuniform float u_widenessToThicknessRatio;\n\nvarying vec4 v_color;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n  float minThickness = u_minEdgeThickness;\n\n  float normalLength = length(a_normal);\n  vec2 unitNormal = a_normal / normalLength;\n\n  // These first computations are taken from edge.vert.glsl and\n  // edge.clamped.vert.glsl. Please read it to get better comments on what's\n  // happening:\n  float pixelsThickness = max(normalLength / u_sizeRatio, minThickness);\n  float webGLThickness = pixelsThickness * u_correctionRatio;\n  float webGLNodeRadius = a_radius * 2.0 * u_correctionRatio / u_sizeRatio;\n  float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;\n  float webGLArrowHeadThickness = webGLThickness * u_widenessToThicknessRatio;\n\n  float da = a_barycentric.x;\n  float db = a_barycentric.y;\n  float dc = a_barycentric.z;\n\n  vec2 delta = vec2(\n      da * (webGLNodeRadius * unitNormal.y)\n    + db * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y + webGLArrowHeadThickness * unitNormal.x)\n    + dc * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y - webGLArrowHeadThickness * unitNormal.x),\n\n      da * (-webGLNodeRadius * unitNormal.x)\n    + db * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x + webGLArrowHeadThickness * unitNormal.y)\n    + dc * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x - webGLArrowHeadThickness * unitNormal.y)\n  );\n\n  vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n  gl_Position = vec4(position, 0, 1);\n\n  #ifdef PICKING_MODE\n  // For picking mode, we use the ID as the color:\n  v_color = a_id;\n  #else\n  // For normal mode, we use the color:\n  v_color = a_color;\n  #endif\n\n  v_color.a *= bias;\n}\n",FRAGMENT_SHADER_SOURCE:"\nprecision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n  gl_FragColor = v_color;\n}\n",METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:_,ATTRIBUTES:[{name:"a_position",size:2,type:Z},{name:"a_normal",size:2,type:Z},{name:"a_radius",size:1,type:Z},{name:"a_color",size:4,type:P,normalized:!0},{name:"a_id",size:4,type:P,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_barycentric",size:3,type:Z}],CONSTANT_DATA:[[1,0,0],[0,1,0],[0,0,1]]}}},{key:"processVisibleItem",value:function(e,r,n,o,a){if("source"===t.extremity){var s=[o,n];n=s[0],o=s[1]}var l=a.size||1,c=o.size||1,u=n.x,d=n.y,p=o.x,h=o.y,f=(0,i.f)(a.color),m=p-u,g=h-d,v=m*m+g*g,y=0,b=0;v&&(y=-g*(v=1/Math.sqrt(v))*l,b=m*v*l);var x=this.array;x[r++]=p,x[r++]=h,x[r++]=-y,x[r++]=-b,x[r++]=c,x[r++]=f,x[r++]=e}},{key:"setUniforms",value:function(e,r){var n=r.gl,o=r.uniformLocations,i=o.u_matrix,a=o.u_sizeRatio,s=o.u_correctionRatio,l=o.u_minEdgeThickness,c=o.u_lengthToThicknessRatio,u=o.u_widenessToThicknessRatio;n.uniformMatrix3fv(i,!1,e.matrix),n.uniform1f(a,e.sizeRatio),n.uniform1f(s,e.correctionRatio),n.uniform1f(l,e.minEdgeThickness),n.uniform1f(c,t.lengthToThicknessRatio),n.uniform1f(u,t.widenessToThicknessRatio)}}])}(y)}M();var I="\nprecision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_feather;\n\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\nvoid main(void) {\n  // We only handle antialiasing for normal mode:\n  #ifdef PICKING_MODE\n  gl_FragColor = v_color;\n  #else\n  float dist = length(v_normal) * v_thickness;\n\n  float t = smoothstep(\n    v_thickness - v_feather,\n    v_thickness,\n    dist\n  );\n\n  gl_FragColor = mix(v_color, transparent, t);\n  #endif\n}
1\n",F=WebGLRenderingContext,z=F.UNSIGNED_BYTE,O=F.FLOAT,N=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness","u_lengthToThicknessRatio"],D={lengthToThicknessRatio:L.lengthToThicknessRatio};function B(e){var t=l(l({},D),e||{});return function(e){function r(){return(0,o.b)(this,r),(0,o.c)(this,r,arguments)}return(0,o._)(r,e),(0,o.a)(r,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:"\nattribute vec4 a_id;\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute float a_normalCoef;\nattribute vec2 a_positionStart;\nattribute vec2 a_positionEnd;\nattribute float a_positionCoef;\nattribute float a_radius;\nattribute float a_radiusCoef;\n\nuniform mat3 u_matrix;\nuniform float u_zoomRatio;\nuniform float u_sizeRatio;\nuniform float u_pixelRatio;\nuniform float u_correctionRatio;\nuniform float u_minEdgeThickness;\nuniform float u_lengthToThicknessRatio;\nuniform float u_feather;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_feather;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n  float minThickness = u_minEdgeThickness;\n\n  float radius = a_radius * a_radiusCoef;\n  vec2 normal = a_normal * a_normalCoef;\n  vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;\n\n  float normalLength = length(normal);\n  vec2 unitNormal = normal / normalLength;\n\n  // These first computations are taken from edge.vert.glsl. Please read it to\n  // get better comments on what's happening:\n  float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);\n  float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;\n\n  // Here, we move the point to leave space for the arrow head:\n  float direction = sign(radius);\n  float webGLNodeRadius = direction * radius * 2.0 * u_correctionRatio / u_sizeRatio;\n  float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;\n\n  vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (webGLNodeRadius + webGLArrowHeadLength);\n\n  // Here is the proper position of the vertex\n  gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness + compensationVector, 1)).xy, 0, 1);\n\n  v_thickness = webGLThickness / u_zoomRatio;\n\n  v_normal = unitNormal;\n\n  v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;\n\n  #ifdef PICKING_MODE\n  // For picking mode, we use the ID as the color:\n  v_color = a_id;\n  #else\n  // For normal mode, we use the color:\n  v_color = a_color;\n  #endif\n\n  v_color.a *= bias;\n}\n",FRAGMENT_SHADER_SOURCE:I,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:N,ATTRIBUTES:[{name:"a_positionStart",size:2,type:O},{name:"a_positionEnd",size:2,type:O},{name:"a_normal",size:2,type:O},{name:"a_color",size:4,type:z,normalized:!0},{name:"a_id",size:4,type:z,normalized:!0},{name:"a_radius",size:1,type:O}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:O},{name:"a_normalCoef",size:1,type:O},{name:"a_radiusCoef",size:1,type:O}],CONSTANT_DATA:[[0,1,0],[0,-1,0],[1,1,1],[1,1,1],[0,-1,0],[1,-1,-1]]}}},{key:"processVisibleItem",value:function(e,t,r,n,o){var a=o.size||1,s=r.x,l=r.y,c=n.x,u=n.y,d=(0,i.f)(o.color),p=c-s,h=u-l,f=n.size||1,m=p*p+h*h,g=0,v=0;m&&(g=-h*(m=1/Math.sqrt(m))*a,v=p*m*a);var y=this.array;y[t++]=s,y[t++]=l,y[t++]=c,y[t++]=u,y[t++]=g,y[t++]=v,y[t++]=d,y[t++]=e,y[t++]=f}},{key:"setUniforms",value:function(e,r){var n=r.gl,o=r.uniformLocations,i=o.u_matrix,a=o.u_zoomRatio,s=o.u_feather,l=o.u_pixelRatio,c=o.u_correctionRatio,u=o.u_sizeRatio,d=o.u_minEdgeThickness,p=o.u_lengthToThicknessRatio;n.uniformMatrix3fv(i,!1,e.matrix),n.uniform1f(a,e.zoomRatio),n.uniform1f(u,e.sizeRatio),n.uniform1f(c,e.correctionRatio),n.uniform1f(l,e.pixelRatio),n.uniform1f(s,e.antiAliasingFeather),n.uniform1f(d,e.minEdgeThickness),n.uniform1f(p,t.lengthToThicknessRatio)}}])}(y)}B();var j=b([B(void 0),M(n)]),G=WebGLRenderingContext,W=G.UNSIGNED_BYTE,U=G.FLOAT,H=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness"],q=function(e){function t(){return(0,o.b)(this,t),(0,o.c)(this,t,arguments)}return(0,o._)(t,e),(0,o.a)(t,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:'\nattribute vec4 a_id;\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute float a_normalCoef;\nattribute vec2 a_positionStart;\nattribute vec2 a_positionEnd;\nattribute float a_positionCoef;\n\nuniform mat3 u_matrix;\nuniform float u_sizeRatio;\nuniform float u_zoomRatio;\nuniform float u_pixelRatio;\nuniform float u_correctionRatio;\nuniform float u_minEdgeThickness;\nuniform float u_feather;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_feather;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n  float minThickness = u_minEdgeThickness;\n\n  vec2 normal = a_normal * a_normalCoef;\n  vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;\n\n  float normalLength = length(normal);\n  vec2 unitNormal = normal / normalLength;\n\n  // We require edges to be at least "minThickness" pixels thick *on screen*\n  // (so we need to compensate the size ratio):\n  float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);\n\n  // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n  // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n  // ratio:\n  float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;\n\n  // Here is the proper position of the vertex\n  gl_Position = vec4((u_matrix * vec3(position + unitNormal * 
1webGLThickness, 1)).xy, 0, 1);\n\n  // For the fragment shader though, we need a thickness that takes the "magic"\n  // correction ratio into account (as in webGLThickness), but so that the\n  // antialiasing effect does not depend on the zoom level. So here\'s yet\n  // another thickness version:\n  v_thickness = webGLThickness / u_zoomRatio;\n\n  v_normal = unitNormal;\n\n  v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;\n\n  #ifdef PICKING_MODE\n  // For picking mode, we use the ID as the color:\n  v_color = a_id;\n  #else\n  // For normal mode, we use the color:\n  v_color = a_color;\n  #endif\n\n  v_color.a *= bias;\n}\n',FRAGMENT_SHADER_SOURCE:I,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:H,ATTRIBUTES:[{name:"a_positionStart",size:2,type:U},{name:"a_positionEnd",size:2,type:U},{name:"a_normal",size:2,type:U},{name:"a_color",size:4,type:W,normalized:!0},{name:"a_id",size:4,type:W,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:U},{name:"a_normalCoef",size:1,type:U}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[1,1],[0,-1],[1,-1]]}}},{key:"processVisibleItem",value:function(e,t,r,n,o){var a=o.size||1,s=r.x,l=r.y,c=n.x,u=n.y,d=(0,i.f)(o.color),p=c-s,h=u-l,f=p*p+h*h,m=0,g=0;f&&(m=-h*(f=1/Math.sqrt(f))*a,g=p*f*a);var v=this.array;v[t++]=s,v[t++]=l,v[t++]=c,v[t++]=u,v[t++]=m,v[t++]=g,v[t++]=d,v[t++]=e}},{key:"setUniforms",value:function(e,t){var r=t.gl,n=t.uniformLocations,o=n.u_matrix,i=n.u_zoomRatio,a=n.u_feather,s=n.u_pixelRatio,l=n.u_correctionRatio,c=n.u_sizeRatio,u=n.u_minEdgeThickness;r.uniformMatrix3fv(o,!1,e.matrix),r.uniform1f(i,e.zoomRatio),r.uniform1f(c,e.sizeRatio),r.uniform1f(l,e.correctionRatio),r.uniform1f(s,e.pixelRatio),r.uniform1f(a,e.antiAliasingFeather),r.uniform1f(u,e.minEdgeThickness)}}])}(y)},56516:function(e,t,r){"use strict";function n(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}function c(e,t,r){return t=s(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}function u(e,t){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if("function"!=typeof t&&null!==t)throw 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&&u(e,t)}r.d(t,{_:function(){return d},a:function(){return a},b:function(){return o},c:function(){return c},d:function(){return n},e:function(){return s}})},40229:function(e,t,r){"use strict";r.d(t,{aT:function(){return o.D},u2:function(){return o.g},yw:function(){return o.E}});var n,o=r(48486),i=r(56516),a=r(24213),s=WebGLRenderingContext;s.UNSIGNED_BYTE,s.FLOAT;var l=WebGLRenderingContext,c=l.UNSIGNED_BYTE,u=l.FLOAT,d=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness","u_lengthToThicknessRatio"],p={lengthToThicknessRatio:o.D.lengthToThicknessRatio};function h(e){var t=(0,o._)((0,o._)({},p),e||{});return function(e){function r(){return(0,i.b)(this,r),(0,i.c)(this,r,arguments)}return(0,i._)(r,e),(0,i.a)(r,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:"\nattribute vec4 a_id;\nattribute vec4 a_color;\nattribute vec2 a_normal;\nattribute float a_normalCoef;\nattribute vec2 a_positionStart;\nattribute vec2 a_positionEnd;\nattribute float a_positionCoef;\nattribute float a_sourceRadius;\nattribute float a_targetRadius;\nattribute float a_sourceRadiusCoef;\nattribute float a_targetRadiusCoef;\n\nuniform mat3 u_matrix;\nuniform float u_zoomRatio;\nuniform float u_sizeRatio;\nuniform float u_pixelRatio;\nuniform float u_correctionRatio;\nuniform float u_minEdgeThickness;\nuniform float u_lengthToThicknessRatio;\nuniform float u_feather;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\nvarying float v_feather;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n  float minThickness = u_minEdgeThickness;\n\n  vec2 normal = a_normal * a_normalCoef;\n  vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;\n\n  float normalLength = length(normal);\n  vec2 unitNormal = normal / normalLength;\n\n  // These first computations are taken from edge.vert.glsl. Please read it to\n  // get better comments on what's happening:\n  float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);\n  float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;\n\n  // Here, we move the point to leave space for the arrow heads:\n  // Source arrow head\n  float sourceRadius = a_sourceRadius * a_sourceRadiusCoef;\n  float sourceDirection = sign(sourceRadius);\n  float webGLSourceRadius = sourceDirection * sourceRadius * 2.0 * u_correctionRatio / u_sizeRatio;\n  float webGLSourceArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;\n  vec2 sourceCompensationVector =\n    vec2(-sourceDirection * unitNormal.y, sourceDirection * unitNormal.x)\n    * (webGLSourceRadius + webGLSourceArrowHeadLength);\n    \n  // Target arrow head\n  float targetRadius = a_targetRadius * a_targetRadiusCoef;\n  float targetDirection = sign(targetRadius);\n  float webGLTargetRadius = targetDirection * targetRadius * 2.0 * u_correctionRatio / u_sizeRatio;\n  float webGLTargetArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;\n  vec2 targetCompensationVector =\n  vec2(-targetDirection * unitNormal.y, targetDirection * unitNormal.x)\n    * (webGLTargetRadius + webGLTargetArrowHeadLength);\n\n  // Here is the proper position of the vertex\n  gl_Position = vec4((u_matrix * vec3(position + unitNormal * 
1webGLThickness + sourceCompensationVector + targetCompensationVector, 1)).xy, 0, 1);\n\n  v_thickness = webGLThickness / u_zoomRatio;\n\n  v_normal = unitNormal;\n\n  v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;\n\n  #ifdef PICKING_MODE\n  // For picking mode, we use the ID as the color:\n  v_color = a_id;\n  #else\n  // For normal mode, we use the color:\n  v_color = a_color;\n  #endif\n\n  v_color.a *= bias;\n}\n",FRAGMENT_SHADER_SOURCE:o.F,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:d,ATTRIBUTES:[{name:"a_positionStart",size:2,type:u},{name:"a_positionEnd",size:2,type:u},{name:"a_normal",size:2,type:u},{name:"a_color",size:4,type:c,normalized:!0},{name:"a_id",size:4,type:c,normalized:!0},{name:"a_sourceRadius",size:1,type:u},{name:"a_targetRadius",size:1,type:u}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:u},{name:"a_normalCoef",size:1,type:u},{name:"a_sourceRadiusCoef",size:1,type:u},{name:"a_targetRadiusCoef",size:1,type:u}],CONSTANT_DATA:[[0,1,-1,0],[0,-1,1,0],[1,1,0,1],[1,1,0,1],[0,-1,1,0],[1,-1,0,-1]]}}},{key:"processVisibleItem",value:function(e,t,r,n,o){var i=o.size||1,s=r.x,l=r.y,c=n.x,u=n.y,d=(0,a.f)(o.color),p=c-s,h=u-l,f=r.size||1,m=n.size||1,g=p*p+h*h,v=0,y=0;g&&(v=-h*(g=1/Math.sqrt(g))*i,y=p*g*i);var b=this.array;b[t++]=s,b[t++]=l,b[t++]=c,b[t++]=u,b[t++]=v,b[t++]=y,b[t++]=d,b[t++]=e,b[t++]=f,b[t++]=m}},{key:"setUniforms",value:function(e,r){var n=r.gl,o=r.uniformLocations,i=o.u_matrix,a=o.u_zoomRatio,s=o.u_feather,l=o.u_pixelRatio,c=o.u_correctionRatio,u=o.u_sizeRatio,d=o.u_minEdgeThickness,p=o.u_lengthToThicknessRatio;n.uniformMatrix3fv(i,!1,e.matrix),n.uniform1f(a,e.zoomRatio),n.uniform1f(u,e.sizeRatio),n.uniform1f(c,e.correctionRatio),n.uniform1f(l,e.pixelRatio),n.uniform1f(s,e.antiAliasingFeather),n.uniform1f(d,e.minEdgeThickness),n.uniform1f(p,t.lengthToThicknessRatio)}}])}(o.g)}h(),(0,o.h)([h(void 0),(0,o.i)(n),(0,o.i)((0,o._)((0,o._)({},n),{},{extremity:"source"}))]);var f=WebGLRenderingContext;f.UNSIGNED_BYTE,f.FLOAT;var m=WebGLRenderingContext;m.UNSIGNED_BYTE,m.FLOAT},21105:function(){},55610:function(e,t,r){"use strict";r.d(t,{C6:function(){return es},Xy:function(){return ea},sG:function(){return ei},$j:function(){return eo},eP:function(){return Q},Ys:function(){return X}});var n=r(7653),o=r(96834),i=r(48486),a=r(56516),s=function(e){function t(){var e;return(0,a.b)(this,t),(e=(0,a.c)(this,t)).rawEmitter=e,e}return(0,a._)(t,e),(0,a.a)(t)}(r(89558).EventEmitter),l=r(55174),c=r.n(l),u=r(24213),d={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},p={easing:"quadraticInOut",duration:150};function h(){return Float32Array.of(1,0,0,0,1,0,0,0,1)}function f(e,t,r){return e[0]=t,e[4]="number"==typeof r?r:t,e}function m(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[3]=-r,e[4]=n,e}function g(e,t,r){return e[6]=t,e[7]=r,e}function v(e,t){var r=e[0],n=e[1],o=e[2],i=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=t[0],p=t[1],h=t[2],f=t[3],m=t[4],g=t[5],v=t[6],y=t[7],b=t[8];return e[0]=d*r+p*i+h*l,e[1]=d*n+p*a+h*c,e[2]=d*o+p*s+h*u,e[3]=f*r+m*i+g*l,e[4]=f*n+m*a+g*c,e[5]=f*o+m*s+g*u,e[6]=v*r+y*i+b*l,e[7]=v*n+y*a+b*c,e[8]=v*o+y*s+b*u,e}function y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=e[0],o=e[1],i=e[3],a=e[4],s=e[6],l=e[7],c=t.x,u=t.y;return{x:c*n+u*i+s*r,y:c*o+u*a+l*r}}function b(e,t,r,n,o){var i,a,s=e.angle,l=e.ratio,c=e.x,u=e.y,d=t.width,p=t.height,y=h(),b=Math.min(d,p)-2*n,x=(i=t.height/t.width,a=r.height/r.width,i<1&&a>1||i>1&&a<1?1:Math.min(Math.max(a,1/a),Math.max(1/i,i)));
1return o?(v(y,g(h(),c,u)),v(y,f(h(),l)),v(y,m(h(),s)),v(y,f(h(),d/b/2/x,p/b/2/x))):(v(y,f(h(),b/d*2*x,b/p*2*x)),v(y,m(h(),-s)),v(y,f(h(),1/l)),v(y,g(h(),-c,-u))),y}function x(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:1}function w(e,t,r){return r.sort(function(e,r){var n=t(e)||0,o=t(r)||0;return n<o?-1:n>o?1:0})}function k(e){var t=(0,u._)(e.x,2),r=t[0],n=t[1],o=(0,u._)(e.y,2),i=o[0],a=o[1],s=Math.max(n-r,a-i),l=(n+r)/2,c=(a+i)/2;(0===s||Math.abs(s)===1/0||isNaN(s))&&(s=1),isNaN(l)&&(l=0),isNaN(c)&&(c=0);var d=function(e){return{x:.5+(e.x-l)/s,y:.5+(e.y-c)/s}};return d.applyTo=function(e){e.x=.5+(e.x-l)/s,e.y=.5+(e.y-c)/s},d.inverse=function(e){return{x:l+s*(e.x-.5),y:c+s*(e.y-.5)}},d.ratio=s,d}function S(e){return(S="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 C(e,t){var r=t.size;if(0!==r){var n=e.length;e.length+=r;var o=0;t.forEach(function(t){e[n+o]=t,o++})}}function R(e){e=e||{};for(var t=0,r=arguments.length<=1?0:arguments.length-1;t<r;t++){var n=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];n&&Object.assign(e,n)}return e}var T={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,defaultDrawEdgeLabel:i.d,defaultDrawNodeLabel:i.b,defaultDrawNodeHover:i.c,minEdgeThickness:1.7,antiAliasingFeather:1,dragTimeout:100,draggedEventsTolerance:3,inertiaDuration:200,inertiaRatio:3,zoomDuration:250,zoomingRatio:1.7,doubleClickTimeout:300,doubleClickZoomingRatio:2.2,doubleClickZoomingDuration:200,tapMoveTolerance:10,zoomToSizeRatioFunction:Math.sqrt,itemSizesReference:"screen",autoRescale:!0,autoCenter:!0,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,enableCameraZooming:!0,enableCameraPanning:!0,enableCameraRotation:!0,cameraPanBoundaries:null,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},E={circle:i.N},A={arrow:i.E,line:i.e};function P(e){if("number"!=typeof e.labelDensity||e.labelDensity<0)throw Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,r=e.maxCameraRatio;if("number"==typeof t&&"number"==typeof r&&r<t)throw Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")}var Z=function(e){function t(){var e;return(0,a.b)(this,t),e=(0,a.c)(this,t),(0,i.a)(e,"x",.5),(0,i.a)(e,"y",.5),(0,i.a)(e,"angle",0),(0,i.a)(e,"ratio",1),(0,i.a)(e,"minRatio",null),(0,i.a)(e,"maxRatio",null),(0,i.a)(e,"enabledZooming",!0),(0,i.a)(e,"enabledPanning",!0),(0,i.a)(e,"enabledRotation",!0),(0,i.a)(e,"clean",null),(0,i.a)(e,"nextFrame",null),(0,i.a)(e,"previousState",null),(0,i.a)(e,"enabled",!0),e.previousState=e.getState(),e}return(0,a._)(t,e),(0,a.a)(t,[{key:"enable",value:function(){return this.enabled=!0,this}},{key:"disable",value:function(){return this.enabled=!1,this}},{key:"getState",value:function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}}},{key:"hasState",value:function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle}},{key:"getPreviousState",value:function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null}},{key:"getBoundedRatio",value:function(e){var t=e;return"number"==typeof this.minRatio&&(t=Math.max(t,this.minRatio)),"number"==typeof this.maxRatio&&(t=Math.min(t,this.maxRatio)),t}},{key:"validateState",value:function(e){var t={};return this.enabledPanning&&"number"==typeof e.x&&(t.x=e.x),this.enabledPanning&&"number"==typeof e.y&&(t.y=e.y),this.enabledZooming&&"number"==typeof e.ratio&&(t.ratio=this.getBoundedRatio(e.ratio)),this.enabledRotation&&"number"==typeof e.angle&&(t.angle=e.angle),this.clean?this.clean((0,i._)((0,i._)({}
1,this.getState()),t)):t}},{key:"isAnimated",value:function(){return!!this.nextFrame}},{key:"setState",value:function(e){if(!this.enabled)return this;this.previousState=this.getState();var t=this.validateState(e);return"number"==typeof t.x&&(this.x=t.x),"number"==typeof t.y&&(this.y=t.y),"number"==typeof t.ratio&&(this.ratio=t.ratio),"number"==typeof t.angle&&(this.angle=t.angle),this.hasState(this.previousState)||this.emit("updated",this.getState()),this}},{key:"updateState",value:function(e){return this.setState(e(this.getState())),this}},{key:"animate",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(!n)return new Promise(function(n){return t.animate(e,r,n)});if(this.enabled){var o=(0,i._)((0,i._)({},p),r),a=this.validateState(e),s="function"==typeof o.easing?o.easing:d[o.easing],l=Date.now(),c=this.getState(),u=function(){var e=(Date.now()-l)/o.duration;if(e>=1){t.nextFrame=null,t.setState(a),t.animationCallback&&(t.animationCallback.call(null),t.animationCallback=void 0);return}var r=s(e),n={};"number"==typeof a.x&&(n.x=c.x+(a.x-c.x)*r),"number"==typeof a.y&&(n.y=c.y+(a.y-c.y)*r),t.enabledRotation&&"number"==typeof a.angle&&(n.angle=c.angle+(a.angle-c.angle)*r),"number"==typeof a.ratio&&(n.ratio=c.ratio+(a.ratio-c.ratio)*r),t.setState(n),t.nextFrame=requestAnimationFrame(u)};this.nextFrame?(cancelAnimationFrame(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=requestAnimationFrame(u)):u(),this.animationCallback=n}}},{key:"animatedZoom",value:function(e){return e?"number"==typeof e?this.animate({ratio:this.ratio/e}):this.animate({ratio:this.ratio/(e.factor||1.5)},e):this.animate({ratio:this.ratio/1.5})}},{key:"animatedUnzoom",value:function(e){return e?"number"==typeof e?this.animate({ratio:this.ratio*e}):this.animate({ratio:this.ratio*(e.factor||1.5)},e):this.animate({ratio:1.5*this.ratio})}},{key:"animatedReset",value:function(e){return this.animate({x:.5,y:.5,ratio:1,angle:0},e)}},{key:"copy",value:function(){return t.from(this.getState())}}],[{key:"from",value:function(e){return new t().setState(e)}}])}(s);function _(e,t){var r=t.getBoundingClientRect();return{x:e.clientX-r.left,y:e.clientY-r.top}}function L(e,t){var r=(0,i._)((0,i._)({},_(e,t)),{},{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){r.sigmaDefaultPrevented=!0},original:e});return r}function M(e){var t="x"in e?e:(0,i._)((0,i._)({},e.touches[0]||e.previousTouches[0]),{},{original:e.original,sigmaDefaultPrevented:e.sigmaDefaultPrevented,preventSigmaDefault:function(){e.sigmaDefaultPrevented=!0,t.sigmaDefaultPrevented=!0}});return t}function I(e){for(var t=[],r=0,n=Math.min(e.length,2);r<n;r++)t.push(e[r]);return t}function F(e,t,r){var n={touches:I(e.touches).map(function(e){return _(e,r)}),previousTouches:t.map(function(e){return _(e,r)}),sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e};return n}function z(e){if(void 0!==e.deltaY)return -3*e.deltaY/360;if(void 0!==e.detail)return-(e.detail/9);throw Error("Captor: could not extract delta from event.")}var O=function(e){function t(e,r){var n;return(0,a.b)(this,t),(n=(0,a.c)(this,t)).container=e,n.renderer=r,n}return(0,a._)(t,e),(0,a.a)(t)}(s),N=["doubleClickTimeout","doubleClickZoomingDuration","doubleClickZoomingRatio","dragTimeout","draggedEventsTolerance","inertiaDuration","inertiaRatio","zoomDuration","zoomingRatio"].reduce(function(e,t){return(0,i._)((0,i._)({},e),{},(0,i.a)({},t,T[t]))},{}),D=function(e){function t(e,r){var n;return(0,a.b)(this,t),n=(0,a.c)(this,t,[e,r]),(0,i.a)(n,"enabled",!0),(0,i.a)(n,"draggedEvents",0),(0,i.a)(n,"downStartTime",null),(0,i.a)(n,"lastMouseX",null),(0,i.a)(n,"lastMouseY",null),(0,i.a)(n,"isMouseDown",!1),(0,i.a)(n,"isMoving",!1),(0,i.a)(n,"movingTimeout",null),(0,i.a)(n,"startCameraState",null),(0,i.a)(n,"clicks",0),(0,i.a)(n,"doubleClickTimeout",null),(0,i.a)(n,"currentWheelDirection",0),(0,i.a)(n,"settings",N),n.handleClick=n.handleClick.bind(n),n.handleRightClick=n.handleRightClick.bind(n),n.handleDown=n.handleDown.bind(n),n.handleUp=n.handleUp.bind(n),n.handleMove=n.handleMove.bind(n),n.handleWheel=n.handleWheel.bind(n),n.handleLeave=n.handleLeave.bind(n),n.handleEnter=n.handleEnter.bind(n),e.addEventListener("click",n.handleClick,{capture:!1}),e.addEventListener("contextmenu",n.handleRightClick,{capture:!1}),e.addEventListener("mousedown",n.handleDown,{capture:!1}),e.addEventListener("wheel",n.handleWheel,{capture:!1}),e.addEventListener("mouseleave",n.handleLeave,{capture:!1}),e.addEventListener("mouseenter",n.handleEnter,{capture:!1}),document.addEventListener("mousemove",n.handleMove,{capture:!1}),document.addEventListener("mouseup",n.handleUp,{capture:!1}),n}return(0,a._)(t,e),(0,a.a)(t,[{key:"kill",value:function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseleave",this.handleLeave),e.removeEventListener("mouseenter",this.handleEnter),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)}},{key:"handleClick",value:function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"==typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout(function(){t.clicks=0,t.doubleClickTimeout=null},this.settings.doubleClickTimeout),this.draggedEvents<this.settings.draggedEventsTolerance&&this.emit
1("click",L(e,this.container))}}},{key:"handleRightClick",value:function(e){this.enabled&&this.emit("rightClick",L(e,this.container))}},{key:"handleDoubleClick",value:function(e){if(this.enabled){e.preventDefault(),e.stopPropagation();var t=L(e,this.container);if(this.emit("doubleClick",t),!t.sigmaDefaultPrevented){var r=this.renderer.getCamera(),n=r.getBoundedRatio(r.getState().ratio/this.settings.doubleClickZoomingRatio);r.animate(this.renderer.getViewportZoomedState(_(e,this.container),n),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}}},{key:"handleDown",value:function(e){if(this.enabled){if(0===e.button){this.startCameraState=this.renderer.getCamera().getState();var t=_(e,this.container),r=t.x,n=t.y;this.lastMouseX=r,this.lastMouseY=n,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0}this.emit("mousedown",L(e,this.container))}}},{key:"handleUp",value:function(e){var t=this;if(this.enabled&&this.isMouseDown){var r=this.renderer.getCamera();this.isMouseDown=!1,"number"==typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var n=_(e,this.container),o=n.x,i=n.y,a=r.getState(),s=r.getPreviousState()||{x:0,y:0};this.isMoving?r.animate({x:a.x+this.settings.inertiaRatio*(a.x-s.x),y:a.y+this.settings.inertiaRatio*(a.y-s.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"}):(this.lastMouseX!==o||this.lastMouseY!==i)&&r.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout(function(){var e=t.draggedEvents>0;t.draggedEvents=0,e&&t.renderer.getSetting("hideEdgesOnMove")&&t.renderer.refresh()},0),this.emit("mouseup",L(e,this.container))}}},{key:"handleMove",value:function(e){var t=this;if(this.enabled){var r=L(e,this.container);if(this.emit("mousemovebody",r),(e.target===this.container||e.composedPath()[0]===this.container)&&this.emit("mousemove",r),!r.sigmaDefaultPrevented&&this.isMouseDown){this.isMoving=!0,this.draggedEvents++,"number"==typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){t.movingTimeout=null,t.isMoving=!1},this.settings.dragTimeout);var n=this.renderer.getCamera(),o=_(e,this.container),i=o.x,a=o.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),l=this.renderer.viewportToFramedGraph({x:i,y:a}),c=s.x-l.x,u=s.y-l.y,d=n.getState(),p=d.x+c,h=d.y+u;n.setState({x:p,y:h}),this.lastMouseX=i,this.lastMouseY=a,e.preventDefault(),e.stopPropagation()}}}},{key:"handleLeave",value:function(e){this.emit("mouseleave",L(e,this.container))}},{key:"handleEnter",value:function(e){this.emit("mouseenter",L(e,this.container))}},{key:"handleWheel",value:function(e){var t,r=this,n=this.renderer.getCamera();if(this.enabled&&n.enabledZooming){var o=z(e);if(o){var a=(t=this.container,(0,i._)((0,i._)({},L(e,t)),{},{delta:z(e)}));if(this.emit("wheel",a),a.sigmaDefaultPrevented){e.preventDefault(),e.stopPropagation();return}var s=n.getState().ratio,l=o>0?1/this.settings.zoomingRatio:this.settings.zoomingRatio,c=n.getBoundedRatio(s*l),u=o>0?1:-1,d=Date.now();if(s!==c){if(e.preventDefault(),e.stopPropagation(),this.currentWheelDirection===u&&this.lastWheelTriggerTime&&d-this.lastWheelTriggerTime<this.settings.zoomDuration/5)return;n.animate(this.renderer.getViewportZoomedState(_(e,this.container),c),{easing:"quadraticOut",duration:this.settings.zoomDuration},function(){r.currentWheelDirection=0}),this.currentWheelDirection=u,this.lastWheelTriggerTime=d}}}}},{key:"setSettings",value:function(e){this.settings=e}}])}(O),B=["dragTimeout","inertiaDuration","inertiaRatio","doubleClickTimeout","doubleClickZoomingRatio","doubleClickZoomingDuration","tapMoveTolerance"].reduce(function(e,t){return(0,i._)((0,i._)({},e),{},(0,i.a)({},t,T[t]))},{}),j=function(e){function t(e,r){var n;return(0,a.b)(this,t),n=(0,a.c)(this,t,[e,r]),(0,i.a)(n,"enabled",!0),(0,i.a)(n,"isMoving",!1),(0,i.a)(n,"hasMoved",!1),(0,i.a)(n,"touchMode",0),(0,i.a)(n,"startTouchesPositions",[]),(0,i.a)(n,"lastTouches",[]),(0,i.a)(n,"lastTap",null),(0,i.a)(n,"settings",B),n.handleStart=n.handleStart.bind(n),n.handleLeave=n.handleLeave.bind(n),n.handleMove=n.handleMove.bind(n),e.addEventListener("touchstart",n.handleStart,{capture:!1}),e.addEventListener("touchcancel",n.handleLeave,{capture:!1}),document.addEventListener("touchend",n.handleLeave,{capture:!1,passive:!1}),document.addEventListener("touchmove",n.handleMove,{capture:!1,passive:!1}),n}return(0,a._)(t,e),(0,a.a)(t,[{key:"kill",value:function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchcancel",this.handleLeave),document.removeEventListener("touchend",this.handleLeave),document.removeEventListener("touchmove",this.handleMove)}},{key:"getDimensions",value:function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}}},{key:"handleStart",value:function(e){var t=this;if(this.enabled){e.preventDefault();var r=I(e.touches);if(this.touchMode=r.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=r.map(function(e){return _(e,t.container)}),2===this.touchMode){var n=(0,u._)(this.startTouchesPositions,2),o=n[0],i=o.x,a=o.y,s=n[1],l=s.x,c=s.y;this.startTouchesAngle=Math.atan2(c-a,l-i),this.startTouchesDistance=Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))}
1this.emit("touchdown",F(e,this.lastTouches,this.container)),this.lastTouches=r,this.lastTouchesPositions=this.startTouchesPositions}}},{key:"handleLeave",value:function(e){if(this.enabled&&this.startTouchesPositions.length){switch(e.cancelable&&e.preventDefault(),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),r=t.getState(),n=t.getPreviousState()||{x:0,y:0};t.animate({x:r.x+this.settings.inertiaRatio*(r.x-n.x),y:r.y+this.settings.inertiaRatio*(r.y-n.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0}if(this.emit("touchup",F(e,this.lastTouches,this.container)),!e.touches.length){var o=_(this.lastTouches[0],this.container),i=this.startTouchesPositions[0],a=Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2);if(!e.touches.length&&a<Math.pow(this.settings.tapMoveTolerance,2)){if(this.lastTap&&Date.now()-this.lastTap.time<this.settings.doubleClickTimeout){var s=F(e,this.lastTouches,this.container);if(this.emit("doubletap",s),this.lastTap=null,!s.sigmaDefaultPrevented){var l=this.renderer.getCamera(),c=l.getBoundedRatio(l.getState().ratio/this.settings.doubleClickZoomingRatio);l.animate(this.renderer.getViewportZoomedState(o,c),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}else{var u=F(e,this.lastTouches,this.container);this.emit("tap",u),this.lastTap={time:Date.now(),position:u.touches[0]||u.previousTouches[0]}}}}this.lastTouches=I(e.touches),this.startTouchesPositions=[]}}},{key:"handleMove",value:function(e){var t=this;if(this.enabled&&this.startTouchesPositions.length){e.preventDefault();var r=I(e.touches),n=r.map(function(e){return _(e,t.container)}),o=this.lastTouches;this.lastTouches=r,this.lastTouchesPositions=n;var i=F(e,o,this.container);if(this.emit("touchmove",i),!i.sigmaDefaultPrevented){if(this.hasMoved||(this.hasMoved=n.some(function(e,r){var n=t.startTouchesPositions[r];return n&&(e.x!==n.x||e.y!==n.y)})),!this.hasMoved)return;this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){t.isMoving=!1},this.settings.dragTimeout);var a=this.renderer.getCamera(),s=this.startCameraState,l=this.renderer.getSetting("stagePadding");switch(this.touchMode){case 1:var c=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),u=c.x,d=c.y,p=this.renderer.viewportToFramedGraph(n[0]),h=p.x,f=p.y;a.setState({x:s.x+u-h,y:s.y+d-f});break;case 2:var m={x:.5,y:.5,angle:0,ratio:1},g=n[0],v=g.x,y=g.y,b=n[1],x=b.x,w=b.y,k=Math.atan2(w-y,x-v)-this.startTouchesAngle,S=Math.hypot(w-y,x-v)/this.startTouchesDistance,C=a.getBoundedRatio(s.ratio/S);m.ratio=C,m.angle=s.angle+k;var R=this.getDimensions(),T=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:s}),E=Math.min(R.width,R.height)-2*l,A=E/R.width,P=E/R.height,Z=C/E,L=v-E/2/A,M=y-E/2/P,z=[L*Math.cos(-m.angle)-M*Math.sin(-m.angle),M*Math.cos(-m.angle)+L*Math.sin(-m.angle)];L=z[0],M=z[1],m.x=T.x-L*Z,m.y=T.y+M*Z,a.setState(m)}}}}},{key:"setSettings",value:function(e){this.settings=e}}])}(O);function G(e){return function(e){if(Array.isArray(e))return(0,u.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,u.b)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var U=(0,a.a)(function e(t,r){(0,a.b)(this,e),this.key=t,this.size=r},null,[{key:"compare",value:function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1}}]),H=(0,a.a)(function e(){(0,a.b)(this,e),(0,i.a)(this,"width",0),(0,i.a)(this,"height",0),(0,i.a)(this,"cellSize",0),(0,i.a)(this,"columns",0),(0,i.a)(this,"rows",0),(0,i.a)(this,"cells",{})},[{key:"resizeAndClear",value:function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}}},{key:"getIndex",value:function(e){var t=Math.floor(e.x/this.cellSize);return Math.floor(e.y/this.cellSize)*this.columns+t}},{key:"add",value:function(e,t,r){var n=new U(e,t),o=this.getIndex(r),i=this.cells[o];i||(i=[],this.cells[o]=i),i.push(n)}},{key:"organize",value:function(){for(var e in this.cells)this.cells[e].sort(U.compare)}},{key:"getLabelsToDisplay",value:function(e,t){var r=this.cellSize*this.cellSize,n=Math.ceil(r/e/e*t/r),o=[];for(var i in this.cells)for(var a=this.cells[i],s=0;s<Math.min(n,a.length);s++)o.push(a[s].key);return o}}]),q=Object.prototype.hasOwnProperty,V=function(e){function t(e,r){var n,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,a.b)(this,t),o=(0,a.c)(this,t),(0,i.a)(o,"elements",{}),(0,i.a)(o,"canvasContexts",{}),(0,i.a)(o,"webGLContexts",{}),(0,i.a)(o,"pickingLayers",new Set),(0,i.a)(o,"textures",{}),(0,i.a)(o,"frameBuffers",{}),(0,i.a)(o,"activeListeners",{}),(0,i.a)(o,"labelGrid",new H),(0,i.a)(o,"nodeDataCache",{}),(0,i.a)(o,"edgeDataCache",{}),(0,i.a)(o,"nodeProgramIndex",{}),(0,i.a)(o,"edgeProgramIndex",{}),(0,i.a)(o,"nodesWithForcedLabels",new Set),(0,i.a)(o,"edgesWithForcedLabels",new Set),(0,i.a)(o,"nodeExtent",{x:[0,1],y:[0,1]}),(0,i.a)(o,"nodeZExtent",[1/0,-1/0]),(0,i.a)(o,"edgeZExtent",[1/0,-1/0]),(0,i.a)(o,"matrix",h()),(0,i.a)(o,"invMatrix",h()),(0,i.a)(o,"correctionRatio",1),(0,i.a)(o,"customBBox",null),(0,i.a)(o,"normalizationFunction",k({x:[0,1],y:[0,1]})),(0,i.a)(o,"graphToViewportRatio",1),(0,i.a)(o,"itemIDsIndex",{}),(0,i.a)(o,"nodeIndices",{}),(0,i.a)(o,"edgeIndices",{}),(0,i.a)(o,"width",0),(0,i.a)(o,"height",0),(0,i.a)(o,"pixelRatio",x()),(0,i.a)(o,"pickingDownSizingRatio",2*o.pixelRatio),(0,i.a)(o,"displayedNodeLabels",new Set),(0,i.a)(o,"displayedEdgeLabels",new Set),(0,i.a)(o,"highlightedNodes",new Set),(0,i.a)(o,"hoveredNode",null),(0,i.a)(o,"hoveredEdge",null),(0,i.a)(o,"renderFrame",null),(0,i.a)(o,"renderHighlightedNodesFrame",null),(0,i.a)(o,"needToProcess",!1),(0,i.a)(o,"checkEdgesEventsFrame",null),(0,i.a)(o,"nodePrograms",{}),(0,i.a)(o,"nodeHoverPrograms",{}),(0,i.a)(o,"edgePrograms",{}),o.settings=((n=R({},T,s)).nodeProgramClasses=R({},E,n.nodeProgramClasses),n.edgeProgramClasses=R({},A,n.edgeProgramClasses),n),P(o.settings),!function(e){if(!c()(e))throw Error("Sigma: invali
1d graph instance.");e.forEachNode(function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw Error("Sigma: Coordinates of node ".concat(e," are invalid. A node must have a numeric 'x' and 'y' attribute."))})}(e),!(r instanceof HTMLElement))throw Error("Sigma: container should be an html element.");for(var l in o.graph=e,o.container=r,o.createWebGLContext("edges",{picking:s.enableEdgeEvents}),o.createCanvasContext("edgeLabels"),o.createWebGLContext("nodes",{picking:!0}),o.createCanvasContext("labels"),o.createCanvasContext("hovers"),o.createWebGLContext("hoverNodes"),o.createCanvasContext("mouse",{style:{touchAction:"none",userSelect:"none"}}),o.resize(),o.settings.nodeProgramClasses)o.registerNodeProgram(l,o.settings.nodeProgramClasses[l],o.settings.nodeHoverProgramClasses[l]);for(var u in o.settings.edgeProgramClasses)o.registerEdgeProgram(u,o.settings.edgeProgramClasses[u]);return o.camera=new Z,o.bindCameraHandlers(),o.mouseCaptor=new D(o.elements.mouse,o),o.mouseCaptor.setSettings(o.settings),o.touchCaptor=new j(o.elements.mouse,o),o.touchCaptor.setSettings(o.settings),o.bindEventHandlers(),o.bindGraphHandlers(),o.handleSettingsUpdate(),o.refresh(),o}return(0,a._)(t,e),(0,a.a)(t,[{key:"registerNodeProgram",value:function(e,t,r){return this.nodePrograms[e]&&this.nodePrograms[e].kill(),this.nodeHoverPrograms[e]&&this.nodeHoverPrograms[e].kill(),this.nodePrograms[e]=new t(this.webGLContexts.nodes,this.frameBuffers.nodes,this),this.nodeHoverPrograms[e]=new(r||t)(this.webGLContexts.hoverNodes,null,this),this}},{key:"registerEdgeProgram",value:function(e,t){return this.edgePrograms[e]&&this.edgePrograms[e].kill(),this.edgePrograms[e]=new t(this.webGLContexts.edges,this.frameBuffers.edges,this),this}},{key:"unregisterNodeProgram",value:function(e){if(this.nodePrograms[e]){var t=this.nodePrograms,r=t[e],n=W(t,[e].map(a.d));r.kill(),this.nodePrograms=n}if(this.nodeHoverPrograms[e]){var o=this.nodeHoverPrograms,i=o[e],s=W(o,[e].map(a.d));i.kill(),this.nodePrograms=s}return this}},{key:"unregisterEdgeProgram",value:function(e){if(this.edgePrograms[e]){var t=this.edgePrograms,r=t[e],n=W(t,[e].map(a.d));r.kill(),this.edgePrograms=n}return this}},{key:"resetWebGLTexture",value:function(e){var t=this.webGLContexts[e],r=this.frameBuffers[e],n=this.textures[e];n&&t.deleteTexture(n);var o=t.createTexture();return t.bindFramebuffer(t.FRAMEBUFFER,r),t.bindTexture(t.TEXTURE_2D,o),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.width,this.height,0,t.RGBA,t.UNSIGNED_BYTE,null),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,o,0),this.textures[e]=o,this}},{key:"bindCameraHandlers",value:function(){var e=this;return this.activeListeners.camera=function(){e.scheduleRender()},this.camera.on("updated",this.activeListeners.camera),this}},{key:"unbindCameraHandlers",value:function(){return this.camera.removeListener("updated",this.activeListeners.camera),this}},{key:"getNodeAtPosition",value:function(e){var t=e.x,r=e.y,n=(0,u.g)(this.webGLContexts.nodes,this.frameBuffers.nodes,t,r,this.pixelRatio,this.pickingDownSizingRatio),o=u.c.apply(void 0,G(n)),i=this.itemIDsIndex[o];return i&&"node"===i.type?i.id:null}},{key:"bindEventHandlers",value:function(){var e=this;this.activeListeners.handleResize=function(){e.scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(t){var r=M(t),n={event:r,preventSigmaDefault:function(){r.preventSigmaDefault()}},o=e.getNodeAtPosition(r);if(o&&e.hoveredNode!==o&&!e.nodeDataCache[o].hidden){e.hoveredNode&&e.emit("leaveNode",(0,i._)((0,i._)({},n),{},{node:e.hoveredNode})),e.hoveredNode=o,e.emit("enterNode",(0,i._)((0,i._)({},n),{},{node:o})),e.scheduleHighlightedNodesRender();return}if(e.hoveredNode&&e.getNodeAtPosition(r)!==e.hoveredNode){var a=e.hoveredNode;e.hoveredNode=null,e.emit("leaveNode",(0,i._)((0,i._)({},n),{},{node:a})),e.scheduleHighlightedNodesRender();return}if(e.settings.enableEdgeEvents){var s=e.hoveredNode?null:e.getEdgeAtPoint(n.event.x,n.event.y);s!==e.hoveredEdge&&(e.hoveredEdge&&e.emit("leaveEdge",(0,i._)((0,i._)({},n),{},{edge:e.hoveredEdge})),s&&e.emit("enterEdge",(0,i._)((0,i._)({},n),{},{edge:s})),e.hoveredEdge=s)}},this.activeListeners.handleMoveBody=function(t){var r=M(t);e.emit("moveBody",{event:r,preventSigmaDefault:function(){r.preventSigmaDefault()}})},this.activeListeners.handleLeave=function(t){var r=M(t),n={event:r,preventSigmaDefault:function(){r.preventSigmaDefault()}};e.hoveredNode&&(e.emit("leaveNode",(0,i._)((0,i._)({},n),{},{node:e.hoveredNode})),e.scheduleHighlightedNodesRender()),e.settings.enableEdgeEvents&&e.hoveredEdge&&(e.emit("leaveEdge",(0,i._)((0,i._)({},n),{},{edge:e.hoveredEdge})),e.scheduleHighlightedNodesRender()),e.emit("leaveStage",(0,i._)({},n))},this.activeListeners.handleEnter=function(t){var r=M(t);e.emit("enterStage",(0,i._)({},{event:r,preventSigmaDefault:function(){r.preventSigmaDefault()}}))};var t=function(t){return function(r){var n=M(r),o={event:n,preventSigmaDefault:function(){n.preventSigmaDefault()}},a=e.getNodeAtPosition(n);if(a)return e.emit("".concat(t,"Node"),(0,i._)((0,i._)({},o),{},{node:a}));if(e.settings.enableEdgeEvents){var s=e.getEdgeAtPoint(n.x,n.y);if(s)return e.emit("".concat(t,"Edge"),(0,i._)((0,i._)({},o),{},{edge:s}))}return e.emit("".concat(t,"Stage"),o)}};return this.activeListeners.handleClick=t("click"),this.activeListeners.handleRightClick=t("right
1Click"),this.activeListeners.handleDoubleClick=t("doubleClick"),this.activeListeners.handleWheel=t("wheel"),this.activeListeners.handleDown=t("down"),this.activeListeners.handleUp=t("up"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("mousemovebody",this.activeListeners.handleMoveBody),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this.mouseCaptor.on("mouseup",this.activeListeners.handleUp),this.mouseCaptor.on("mouseleave",this.activeListeners.handleLeave),this.mouseCaptor.on("mouseenter",this.activeListeners.handleEnter),this.touchCaptor.on("touchdown",this.activeListeners.handleDown),this.touchCaptor.on("touchdown",this.activeListeners.handleMove),this.touchCaptor.on("touchup",this.activeListeners.handleUp),this.touchCaptor.on("touchmove",this.activeListeners.handleMove),this.touchCaptor.on("tap",this.activeListeners.handleClick),this.touchCaptor.on("doubletap",this.activeListeners.handleDoubleClick),this.touchCaptor.on("touchmove",this.activeListeners.handleMoveBody),this}},{key:"bindGraphHandlers",value:function(){var e=this,t=this.graph,r=new Set(["x","y","zIndex","type"]);return this.activeListeners.eachNodeAttributesUpdatedGraphUpdate=function(n){var o,i=null===(o=n.hints)||void 0===o?void 0:o.attributes;e.graph.forEachNode(function(t){return e.updateNode(t)});var a=!i||i.some(function(e){return r.has(e)});e.refresh({partialGraph:{nodes:t.nodes()},skipIndexation:!a,schedule:!0})},this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate=function(r){var n,o=null===(n=r.hints)||void 0===n?void 0:n.attributes;e.graph.forEachEdge(function(t){return e.updateEdge(t)});var i=o&&["zIndex","type"].some(function(e){return null==o?void 0:o.includes(e)});e.refresh({partialGraph:{edges:t.edges()},skipIndexation:!i,schedule:!0})},this.activeListeners.addNodeGraphUpdate=function(t){var r=t.key;e.addNode(r),e.refresh({partialGraph:{nodes:[r]},skipIndexation:!1,schedule:!0})},this.activeListeners.updateNodeGraphUpdate=function(t){var r=t.key;e.refresh({partialGraph:{nodes:[r]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropNodeGraphUpdate=function(t){var r=t.key;e.removeNode(r),e.refresh({schedule:!0})},this.activeListeners.addEdgeGraphUpdate=function(t){var r=t.key;e.addEdge(r),e.refresh({partialGraph:{edges:[r]},schedule:!0})},this.activeListeners.updateEdgeGraphUpdate=function(t){var r=t.key;e.refresh({partialGraph:{edges:[r]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropEdgeGraphUpdate=function(t){var r=t.key;e.removeEdge(r),e.refresh({schedule:!0})},this.activeListeners.clearEdgesGraphUpdate=function(){e.clearEdgeState(),e.clearEdgeIndices(),e.refresh({schedule:!0})},this.activeListeners.clearGraphUpdate=function(){e.clearEdgeState(),e.clearNodeState(),e.clearEdgeIndices(),e.clearNodeIndices(),e.refresh({schedule:!0})},t.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),t.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),t.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),t.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),t.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),t.on("cleared",this.activeListeners.clearGraphUpdate),this}},{key:"unbindGraphHandlers",value:function(){var e=this.graph;e.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),e.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),e.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),e.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),e.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),e.removeListener("cleared",this.activeListeners.clearGraphUpdate)}},{key:"getEdgeAtPoint",value:function(e,t){var r=(0,u.g)(this.webGLContexts.edges,this.frameBuffers.edges,e,t,this.pixelRatio,this.pickingDownSizingRatio),n=u.c.apply(void 0,G(r)),o=this.itemIDsIndex[n];return o&&"edge"===o.type?o.id:null}},{key:"process",value:function(){var e=this;
1this.emit("beforeProcess");var t=this.graph,r=this.settings,n=this.getDimensions();if(this.nodeExtent=function(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,r=-1/0,n=1/0,o=-1/0;return e.forEachNode(function(e,i){var a=i.x,s=i.y;a<t&&(t=a),a>r&&(r=a),s<n&&(n=s),s>o&&(o=s)}),{x:[t,r],y:[n,o]}}(this.graph),!this.settings.autoRescale){var o=n.width,i=n.height,a=this.nodeExtent,s=a.x,l=a.y;this.nodeExtent={x:[(s[0]+s[1])/2-o/2,(s[0]+s[1])/2+o/2],y:[(l[0]+l[1])/2-i/2,(l[0]+l[1])/2+i/2]}}this.normalizationFunction=k(this.customBBox||this.nodeExtent);var c=b(new Z().getState(),n,this.getGraphDimensions(),this.getStagePadding());this.labelGrid.resizeAndClear(n,r.labelGridCellSize);for(var u={},d={},p={},h={},f=1,m=t.nodes(),g=0,v=m.length;g<v;g++){var y=m[g],x=this.nodeDataCache[y],S=t.getNodeAttributes(y);x.x=S.x,x.y=S.y,this.normalizationFunction.applyTo(x),"string"!=typeof x.label||x.hidden||this.labelGrid.add(y,x.size,this.framedGraphToViewport(x,{matrix:c})),u[x.type]=(u[x.type]||0)+1}for(var C in this.labelGrid.organize(),this.nodePrograms){if(!q.call(this.nodePrograms,C))throw Error('Sigma: could not find a suitable program for node type "'.concat(C,'"!'));this.nodePrograms[C].reallocate(u[C]||0),u[C]=0}this.settings.zIndex&&this.nodeZExtent[0]!==this.nodeZExtent[1]&&(m=w(this.nodeZExtent,function(t){return e.nodeDataCache[t].zIndex},m));for(var R=0,T=m.length;R<T;R++){var E=m[R];d[E]=f,h[d[E]]={type:"node",id:E},f++;var A=this.nodeDataCache[E];this.addNodeToProgram(E,d[E],u[A.type]++)}for(var P={},_=t.edges(),L=0,M=_.length;L<M;L++){var I=_[L],F=this.edgeDataCache[I];P[F.type]=(P[F.type]||0)+1}for(var z in this.settings.zIndex&&this.edgeZExtent[0]!==this.edgeZExtent[1]&&(_=w(this.edgeZExtent,function(t){return e.edgeDataCache[t].zIndex},_)),this.edgePrograms){if(!q.call(this.edgePrograms,z))throw Error('Sigma: could not find a suitable program for edge type "'.concat(z,'"!'));this.edgePrograms[z].reallocate(P[z]||0),P[z]=0}for(var O=0,N=_.length;O<N;O++){var D=_[O];p[D]=f,h[p[D]]={type:"edge",id:D},f++;var B=this.edgeDataCache[D];this.addEdgeToProgram(D,p[D],P[B.type]++)}return this.itemIDsIndex=h,this.nodeIndices=d,this.edgeIndices=p,this.emit("afterProcess"),this}},{key:"handleSettingsUpdate",value:function(e){var t=this,r=this.settings;if(this.camera.minRatio=r.minCameraRatio,this.camera.maxRatio=r.maxCameraRatio,this.camera.enabledZooming=r.enableCameraZooming,this.camera.enabledPanning=r.enableCameraPanning,this.camera.enabledRotation=r.enableCameraRotation,r.cameraPanBoundaries?this.camera.clean=function(e){return t.cleanCameraState(e,r.cameraPanBoundaries&&"object"===S(r.cameraPanBoundaries)?r.cameraPanBoundaries:{})}:this.camera.clean=null,this.camera.setState(this.camera.validateState(this.camera.getState())),e){if(e.edgeProgramClasses!==r.edgeProgramClasses){for(var n in r.edgeProgramClasses)r.edgeProgramClasses[n]!==e.edgeProgramClasses[n]&&this.registerE
1dgeProgram(n,r.edgeProgramClasses[n]);for(var o in e.edgeProgramClasses)r.edgeProgramClasses[o]||this.unregisterEdgeProgram(o)}if(e.nodeProgramClasses!==r.nodeProgramClasses||e.nodeHoverProgramClasses!==r.nodeHoverProgramClasses){for(var i in r.nodeProgramClasses)(r.nodeProgramClasses[i]!==e.nodeProgramClasses[i]||r.nodeHoverProgramClasses[i]!==e.nodeHoverProgramClasses[i])&&this.registerNodeProgram(i,r.nodeProgramClasses[i],r.nodeHoverProgramClasses[i]);for(var a in e.nodeProgramClasses)r.nodeProgramClasses[a]||this.unregisterNodeProgram(a)}}return this.mouseCaptor.setSettings(this.settings),this.touchCaptor.setSettings(this.settings),this}},{key:"cleanCameraState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.tolerance,n=void 0===r?0:r,o=t.boundaries,a=(0,i._)({},e),s=o||this.nodeExtent,l=(0,u._)(s.x,2),c=l[0],d=l[1],p=(0,u._)(s.y,2),h=p[0],f=p[1],m=[this.graphToViewport({x:c,y:h},{cameraState:e}),this.graphToViewport({x:d,y:h},{cameraState:e}),this.graphToViewport({x:c,y:f},{cameraState:e}),this.graphToViewport({x:d,y:f},{cameraState:e})],g=1/0,v=-1/0,y=1/0,b=-1/0;m.forEach(function(e){var t=e.x,r=e.y;g=Math.min(g,t),v=Math.max(v,t),y=Math.min(y,r),b=Math.max(b,r)});var x=v-g,w=b-y,k=this.getDimensions(),S=k.width,C=k.height,R=0,T=0;if(x>=S?v<S-n?R=v-(S-n):g>n&&(R=g-n):v>S+n?R=v-(S+n):g<-n&&(R=g+n),w>=C?b<C-n?T=b-(C-n):y>n&&(T=y-n):b>C+n?T=b-(C+n):y<-n&&(T=y+n),R||T){var E=this.viewportToFramedGraph({x:0,y:0},{cameraState:e}),A=this.viewportToFramedGraph({x:R,y:T},{cameraState:e});R=A.x-E.x,T=A.y-E.y,a.x+=R,a.y+=T}return a}},{key:"renderLabels",value:function(){if(!this.settings.renderLabels)return this;var e=this.camera.getState(),t=this.labelGrid.getLabelsToDisplay(e.ratio,this.settings.labelDensity);C(t,this.nodesWithForcedLabels),this.displayedNodeLabels=new Set;for(var r=this.canvasContexts.labels,n=0,o=t.length;n<o;n++){var a=t[n],s=this.nodeDataCache[a];if(!this.displayedNodeLabels.has(a)&&!s.hidden){var l=this.framedGraphToViewport(s),c=l.x,u=l.y,d=this.scaleSize(s.size);if((s.forceLabel||!(d<this.settings.labelRenderedSizeThreshold))&&!(c<-150)&&!(c>this.width+150)&&!(u<-50)&&!(u>this.height+50)){this.displayedNodeLabels.add(a);var p=this.settings.defaultDrawNodeLabel,h=this.nodePrograms[s.type];((null==h?void 0:h.drawLabel)||p)(r,(0,i._)((0,i._)({key:a},s),{},{size:d,x:c,y:u}),this.settings)}}}return this}},{key:"renderEdgeLabels",value:function(){if(!this.settings.renderEdgeLabels)return this;var e,t,r,n,o,a,s=this.canvasContexts.edgeLabels;s.clearRect(0,0,this.width,this.height);var l=(t=(e={graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedNodeLabels,highlightedNodes:this.highlightedNodes}).graph,r=e.hoveredNode,n=e.highlightedNodes,o=e.displayedNodeLabels,a=[],t.forEachEdge(function(e,t,i,s){(i===r||s===r||n.has(i)||n.has(s)||o.has(i)&&o.has(s))&&a.push(e)}),a);C(l,this.edgesWithForcedLabels);for(var c=new Set,u=0,d=l.length;u<d;u++){var p=l[u],h=this.graph.extremities(p),f=this.nodeDataCache[h[0]],m=this.nodeDataCache[h[1]],g=this.edgeDataCache[p];if(!c.has(p)){if(g.hidden||f.hidden||m.hidden)continue;var v=this.settings.defaultDrawEdgeLabel,y=this.edgePrograms[g.type];((null==y?void 0:y.drawLabel)||v)(s,(0,i._)((0,i._)({key:p},g),{},{size:this.scaleSize(g.size)}),(0,i._)((0,i._)((0,i._)({key:h[0]},f),this.framedGraphToViewport(f)),{},{size:this.scaleSize(f.size)}),(0,i._)((0,i._)((0,i._)({key:h[1]},m),this.framedGraphToViewport(m)),{},{size:this.scaleSize(m.size)}),this.settings),c.add(p)}}return this.displayedEdgeLabels=c,this}},{key:"renderHighlightedNodes",value:function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var r=function(r){var n=e.nodeDataCache[r],o=e.framedGraphToViewport(n),a=o.x,s=o.y,l=e.scaleSize(n.size),c=e.settings.defaultDrawNodeHover,u=e.nodePrograms[n.type];((null==u?void 0:u.drawHover)||c)(t,(0,i._)((0,i._)({key:r},n),{},{size:l,x:a,y:s}
1),e.settings)},n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach(function(t){t!==e.hoveredNode&&n.push(t)}),n.forEach(function(e){return r(e)});var o={};for(var a in n.forEach(function(t){var r=e.nodeDataCache[t].type;o[r]=(o[r]||0)+1}),this.nodeHoverPrograms)this.nodeHoverPrograms[a].reallocate(o[a]||0),o[a]=0;n.forEach(function(t){var r=e.nodeDataCache[t];e.nodeHoverPrograms[r.type].process(0,o[r.type]++,r)}),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT);var s=this.getRenderParams();for(var l in this.nodeHoverPrograms)this.nodeHoverPrograms[l].render(s)}},{key:"scheduleHighlightedNodesRender",value:function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=requestAnimationFrame(function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()}))}},{key:"render",value:function(){var e,t=this;this.emit("beforeRender");var r=function(){return t.emit("afterRender"),t};if(this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.resize(),this.needToProcess&&this.process(),this.needToProcess=!1,this.clear(),this.pickingLayers.forEach(function(e){return t.resetWebGLTexture(e)}),!this.graph.order)return r();var n=this.mouseCaptor,o=this.camera.isAnimated()||n.isMoving||n.draggedEvents||n.currentWheelDirection,i=this.camera.getState(),a=this.getDimensions(),s=this.getGraphDimensions(),l=this.getStagePadding();this.matrix=b(i,a,s,l),this.invMatrix=b(i,a,s,l,!0),this.correctionRatio=1/Math.sqrt(Math.pow((e=y(this.matrix,{x:Math.cos(i.angle),y:Math.sin(i.angle)},0)).x,2)+Math.pow(e.y,2))/a.width,this.graphToViewportRatio=this.getGraphToViewportRatio();var c=this.getRenderParams();for(var u in this.nodePrograms)this.nodePrograms[u].render(c);if(!this.settings.hideEdgesOnMove||!o)for(var d in this.edgePrograms)this.edgePrograms[d].render(c);return this.settings.hideLabelsOnMove&&o||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),r()}},{key:"addNode",value:function(e){var t=Object.assign({},this.graph.getNodeAttributes(e));this.settings.nodeReducer&&(t=this.settings.nodeReducer(e,t));var r=function(e,t,r){if(!q.call(r,"x")||!q.call(r,"y"))throw Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return r.color||(r.color=e.defaultNodeColor),r.label||""===r.label||(r.label=null),void 0!==r.label&&null!==r.label?r.label=""+r.label:r.label=null,r.size||(r.size=2),q.call(r,"hidden")||(r.hidden=!1),q.call(r,"highlighted")||(r.highlighted=!1),q.call(r,"forceLabel")||(r.forceLabel=!1),r.type&&""!==r.type||(r.type=e.defaultNodeType),r.zIndex||(r.zIndex=0),r}(this.settings,e,t);this.nodeDataCache[e]=r,this.nodesWithForcedLabels.delete(e),r.forceLabel&&!r.hidden&&this.nodesWithForcedLabels.add(e),this.highlightedNodes.delete(e),r.highlighted&&!r.hidden&&this.highlightedNodes.add(e),this.settings.zIndex&&(r.zIndex<this.nodeZExtent[0]&&(this.nodeZExtent[0]=r.zIndex),r.zIndex>this.nodeZExtent[1]&&(this.nodeZExtent[1]=r.zIndex))}},{key:"updateNode",value:function(e){this.addNode(e);var t=this.nodeDataCache[e];this.normalizationFunction.applyTo(t)}},{key:"removeNode",value:function(e){delete this.nodeDataCache[e],delete this.nodeProgramIndex[e],this.highlightedNodes.delete(e),this.hoveredNode===e&&(this.hoveredNode=null),this.nodesWithForcedLabels.delete(e)}},{key:"addEdge",value:function(e){var t,r,n=Object.assign({},this.graph.getEdgeAttributes(e));this.settings.edgeReducer&&(n=this.settings.edgeReducer(e,n));var o=(t=this.settings,(r=n).color||(r.color=t.defaultEdgeColor),r.label||(r.label=""),r.size||(r.size=.5),q.call(r,"hidden")||(r.hidden=!1),q.call(r,"forceLabel")||(r.forceLabel=!1),r.type&&""!==r.type||(r.type=t.defaultEdgeType),r.zIndex||(r.zIndex=0),r);this.edgeDataCache[e]=o,this.edgesWithForcedLabels.delete(e),o.forceLabel&&!o.hidden&&this.edgesWithForcedLabels.add(e),this.settings.zIndex&&(o.zIndex<this.edgeZExtent[0]&&(this.edgeZExtent[0]=o.zIndex),o.zIndex>this.edgeZExtent[1]&&(this.edgeZExtent[1]=o.zIndex))}},{key:"updateEdge",value:function(e){this.addEdge(e)}},{key:"removeEdge",value:function(e){delete this.edgeDataCache[e],delete this.edgeProgramIndex[e],this.hoveredEdge===e&&(this.hoveredEdge=null),this.edgesWithForcedLabels.delete(e)}},{key:"clearNodeIndices",value:function(){this.labelGrid=new H,this.nodeExtent={x:[0,1],y:[0,1]},this.nodeDataCache={},this.edgeProgramIndex={},this.nodesWithForcedLabels=new Set,this.nodeZExtent=[1/0,-1/0],this.highlightedNodes=new Set}},{key:"clearEdgeIndices",value:function(){this.edgeDataCache={},this.edgeProgramIndex={},this.edgesWithForcedLabels=new Set,this.edgeZExtent=[1/0,-1/0]}},{key:"clearIndices",value:function(){this.clearEdgeIndices(),this.clearNodeIndices()}},{key:"clearNodeState",value:function(){this.displayedNodeLabels=new Set,this.highlightedNodes=new Set,this.hoveredNode=null}},{key:"clearEdgeState",value:function(){this.displayedEdgeLabels=new Set,this.highlightedNodes=new Set,this.hoveredEdge=null}},{key:"clearState",value:function(){this.clearEdgeState(),this.clearNodeState()}},{key:"addNodeToProgram",value:function(e,t,r){var n=this.nodeDataCache[e],o=this.nodePrograms[n.type];if(!o)throw Error('Sigma: could not find a suitable program for node type "'.concat(n.type,'"!'));o.process(t,r,n),this.nodeProgramIndex[e]=r}},{key:"addEdgeToProgram",value:function(e,t,r){var n=this.edgeDataCache[e],o=this.edgePrograms[n.type];if(!o)throw Error('Sigma: could not find a suitable program for edge type "'.concat(n.type,'"!'));
1var i=this.graph.extremities(e),a=this.nodeDataCache[i[0]],s=this.nodeDataCache[i[1]];o.process(t,r,a,s,n),this.edgeProgramIndex[e]=r}},{key:"getRenderParams",value:function(){return{matrix:this.matrix,invMatrix:this.invMatrix,width:this.width,height:this.height,pixelRatio:this.pixelRatio,zoomRatio:this.camera.ratio,cameraAngle:this.camera.angle,sizeRatio:1/this.scaleSize(),correctionRatio:this.correctionRatio,downSizingRatio:this.pickingDownSizingRatio,minEdgeThickness:this.settings.minEdgeThickness,antiAliasingFeather:this.settings.antiAliasingFeather}}},{key:"getStagePadding",value:function(){var e=this.settings,t=e.stagePadding;return e.autoRescale&&t||0}},{key:"createLayer",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.elements[e])throw Error('Sigma: a layer named "'.concat(e,'" already exists'));var n=function(e,t,r){var n=document.createElement(e);if(t)for(var o in t)n.style[o]=t[o];if(r)for(var i in r)n.setAttribute(i,r[i]);return n}(t,{position:"absolute"},{class:"sigma-".concat(e)});return r.style&&Object.assign(n.style,r.style),this.elements[e]=n,"beforeLayer"in r&&r.beforeLayer?this.elements[r.beforeLayer].before(n):"afterLayer"in r&&r.afterLayer?this.elements[r.afterLayer].after(n):this.container.appendChild(n),n}},{key:"createCanvas",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.createLayer(e,"canvas",t)}},{key:"createCanvasContext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.createCanvas(e,t);return this.canvasContexts[e]=r.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this}},{key:"createWebGLContext",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(null==r?void 0:r.canvas)||this.createCanvas(e,r);r.hidden&&n.remove();var o=(0,i._)({preserveDrawingBuffer:!1,antialias:!1},r);(t=n.getContext("webgl2",o))||(t=n.getContext("webgl",o)),t||(t=n.getContext("experimental-webgl",o));var a=t;if(this.webGLContexts[e]=a,a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA),r.picking){this.pickingLayers.add(e);var s=a.createFramebuffer();if(!s)throw Error("Sigma: cannot create a new frame buffer for layer ".concat(e));this.frameBuffers[e]=s}return a}},{key:"killLayer",value:function(e){var t,r=this.elements[e];if(!r)throw Error("Sigma: cannot kill layer ".concat(e,", which does not exist"));return this.webGLContexts[e]?(null===(t=this.webGLContexts[e].getExtension("WEBGL_lose_context"))||void 0===t||t.loseContext(),delete this.webGLContexts[e]):this.canvasContexts[e]&&delete this.canvasContexts[e],r.remove(),delete this.elements[e],this}},{key:"getCamera",value:function(){return this.camera}},{key:"setCamera",value:function(e){this.unbindCameraHandlers(),this.camera=e,this.bindCameraHandlers()}},{key:"getContainer",value:function(){return this.container}},{key:"getGraph",value:function(){return this.graph}},{key:"setGraph",value:function(e){e!==this.graph&&(this.hoveredNode&&!e.hasNode(this.hoveredNode)&&(this.hoveredNode=null),this.hoveredEdge&&!e.hasEdge(this.hoveredEdge)&&(this.hoveredEdge=null),this.unbindGraphHandlers(),null!==this.checkEdgesEventsFrame&&(cancelAnimationFrame(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=e,this.bindGraphHandlers(),this.refresh())}},{key:"getMouseCaptor",value:function(){return this.mouseCaptor}},{key:"getTouchCaptor",value:function(){return this.touchCaptor}},{key:"getDimensions",value:function(){return{width:this.width,height:this.height}}},{key:"getGraphDimensions",value:function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}}},{key:"getNodeDisplayData",value:function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0}},{key:"getEdgeDisplayData",value:function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0}},{key:"getNodeDisplayedLabels",value:function(){return new Set(this.displayedNodeLabels)}},{key:"getEdgeDisplayedLabels",value:function(){return new Set(this.displayedEdgeLabels)}},{key:"getSettings",value:function(){return(0,i._)({},this.settings)}},{key:"getSetting",value:function(e){return this.settings[e]}},{key:"setSetting",value:function(e,t){var r=(0,i._)({},this.settings);return this.settings[e]=t,P(this.settings),this.handleSettingsUpdate(r),this.scheduleRefresh(),this}},{key:"updateSetting",value:function(e,t){return this.setSetting(e,t(this.settings[e])),this}},{key:"setSettings",value:function(e){var t=(0,i._)({},this.settings);return this.settings=(0,i._)((0,i._)({},this.settings),e),P(this.settings),this.handleSettingsUpdate(t),this.scheduleRefresh(),this}},{key:"resize",value:function(e){var t=this.width,r=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.pixelRatio=x(),0===this.width){if(this.settings.allowInvalidContainer)this.width=1;else throw Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.")}if(0===this.height){if(this.settings.allowInvalidContainer)this.height=1;else throw Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.")}if(!e&&t===this.width&&r===this.height)return this;for(var n in this.elements){var o=this.elements[n];o.style.width=this.width+"px",o.style.height=this.height+"px"}for(var i in this.canvasContexts)this.elements[i].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[i].setAttribute("height",this.height*this.pixelRatio+"px"),1!==this.pixelRatio&&this.canvasContexts[i].scale(this.pixelRatio,this.pixelRatio);for(var a in this.webGLContexts){this.elements[a].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[a].setAttribute("height",this.height*this.pixelRatio+"px");var s=this.webGLContexts[a];if(s.viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio),this.pickingLayers.has(a)){var l=this.textures[a];l&&s.deleteTexture(l)}}
1return this.emit("resize"),this}},{key:"clear",value:function(){return this.emit("beforeClear"),this.webGLContexts.nodes.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.nodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.edges.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.edges.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this.emit("afterClear"),this}},{key:"refresh",value:function(e){var t=this,r=(null==e?void 0:e.skipIndexation)!==void 0&&(null==e?void 0:e.skipIndexation),n=(null==e?void 0:e.schedule)!==void 0&&e.schedule,o=!e||!e.partialGraph;if(o)this.clearEdgeIndices(),this.clearNodeIndices(),this.graph.forEachNode(function(e){return t.addNode(e)}),this.graph.forEachEdge(function(e){return t.addEdge(e)});else{for(var i,a,s=(null===(i=e.partialGraph)||void 0===i?void 0:i.nodes)||[],l=0,c=(null==s?void 0:s.length)||0;l<c;l++){var u=s[l];if(this.updateNode(u),r){var d=this.nodeProgramIndex[u];if(void 0===d)throw Error('Sigma: node "'.concat(u,"\" can't be repaint"));this.addNodeToProgram(u,this.nodeIndices[u],d)}}for(var p=(null==e||null===(a=e.partialGraph)||void 0===a?void 0:a.edges)||[],h=0,f=p.length;h<f;h++){var m=p[h];if(this.updateEdge(m),r){var g=this.edgeProgramIndex[m];if(void 0===g)throw Error('Sigma: edge "'.concat(m,"\" can't be repaint"));this.addEdgeToProgram(m,this.edgeIndices[m],g)}}}return(o||!r)&&(this.needToProcess=!0),n?this.scheduleRender():this.render(),this}},{key:"scheduleRender",value:function(){var e=this;return this.renderFrame||(this.renderFrame=requestAnimationFrame(function(){e.render()})),this}},{key:"scheduleRefresh",value:function(e){return this.refresh((0,i._)((0,i._)({},e),{},{schedule:!0}))}},{key:"getViewportZoomedState",value:function(e,t){var r=this.camera.getState(),n=r.ratio,o=r.angle,i=r.x,a=r.y,s=this.settings,l=s.minCameraRatio,c=s.maxCameraRatio;"number"==typeof c&&(t=Math.min(t,c)),"number"==typeof l&&(t=Math.max(t,l));var u=t/n,d={x:this.width/2,y:this.height/2},p=this.viewportToFramedGraph(e),h=this.viewportToFramedGraph(d);return{angle:o,x:(p.x-h.x)*(1-u)+i,y:(p.y-h.y)*(1-u)+a,ratio:t}}},{key:"viewRectangle",value:function(){var e=this.viewportToFramedGraph({x:0,y:0}),t=this.viewportToFramedGraph({x:this.width,y:0}),r=this.viewportToFramedGraph({x:0,y:this.height});return{x1:e.x,y1:e.y,x2:t.x,y2:t.y,height:t.y-r.y}}},{key:"framedGraphToViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,n=y(t.matrix?t.matrix:r?b(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getStagePadding()):this.matrix,e);return{x:(1+n.x)*this.width/2,y:(1-n.y)*this.height/2}}},{key:"viewportToFramedGraph",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,n=y(t.matrix?t.matrix:r?b(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getStagePadding(),!0):this.invMatrix,{x:e.x/this.width*2-1,y:1-e.y/this.height*2});return isNaN(n.x)&&(n.x=0),isNaN(n.y)&&(n.y=0),n}},{key:"viewportToGraph",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.normalizationFunction.inverse(this.viewportToFramedGraph(e,t))}},{key:"graphToViewport",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.framedGraphToViewport(this.normalizationFunction(e),t)}},{key:"getGraphToViewportRatio",value:function(){var e={x:0,y:0},t={x:1,y:1},r=Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)),n=this.graphToViewport(e),o=this.graphToViewport(t);return Math.sqrt(Math.pow(n.x-o.x,2)+Math.pow(n.y-o.y,2))/r}},{key:"getBBox",value:function(){return this.nodeExtent}},{key:"getCustomBBox",value:function(){return this.customBBox}},{key:"setCustomBBox",value:function(e){return this.customBBox=e,this.scheduleRender(),this}}
1,{key:"kill",value:function(){this.emit("kill"),this.removeAllListeners(),this.unbindCameraHandlers(),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.clearIndices(),this.clearState(),this.nodeDataCache={},this.edgeDataCache={},this.highlightedNodes.clear(),this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&(cancelAnimationFrame(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild);for(var t in this.nodePrograms)this.nodePrograms[t].kill();for(var r in this.nodeHoverPrograms)this.nodeHoverPrograms[r].kill();for(var n in this.edgePrograms)this.edgePrograms[n].kill();for(var o in this.nodePrograms={},this.nodeHoverPrograms={},this.edgePrograms={},this.elements)this.killLayer(o);this.canvasContexts={},this.webGLContexts={},this.elements={}}},{key:"scaleSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.camera.ratio;return e/this.settings.zoomToSizeRatioFunction(t)*("positions"===this.getSetting("itemSizesReference")?t*this.graphToViewportRatio:1)}},{key:"getCanvases",value:function(){var e={};for(var t in this.elements)this.elements[t]instanceof HTMLCanvasElement&&(e[t]=this.elements[t]);return e}}])}(s);let $=(0,n.createContext)(null),K=$.Provider;function Y(){let e=(0,n.useContext)($);if(null==e)throw Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return e}function X(){return Y().sigma}function Q(){let{sigma:e}=Y();return(0,n.useCallback)(t=>{e&&Object.keys(t).forEach(r=>{e.setSetting(r,t[r])})},[e])}function J(e){return new Set(Object.keys(e))}let ee=J({clickNode:!0,rightClickNode:!0,downNode:!0,enterNode:!0,leaveNode:!0,doubleClickNode:!0,wheelNode:!0,clickEdge:!0,rightClickEdge:!0,downEdge:!0,enterEdge:!0,leaveEdge:!0,doubleClickEdge:!0,wheelEdge:!0,clickStage:!0,rightClickStage:!0,downStage:!0,doubleClickStage:!0,wheelStage:!0,beforeRender:!0,afterRender:!0,kill:!0,upStage:!0,upEdge:!0,upNode:!0,enterStage:!0,leaveStage:!0,resize:!0,afterClear:!0,afterProcess:!0,beforeClear:!0,beforeProcess:!0,moveBody:!0}),et=J({click:!0,rightClick:!0,doubleClick:!0,mouseup:!0,mousedown:!0,mousemove:!0,mousemovebody:!0,mouseleave:!0,mouseenter:!0,wheel:!0}),er=J({touchup:!0,touchdown:!0,touchmove:!0,touchmovebody:!0,tap:!0,doubletap:!0}),en=J({updated:!0});function eo(){let e=X(),t=Q(),[r,o]=(0,n.useState)({});return(0,n.useEffect)(()=>{if(!e||!r)return;let t=Object.keys(r);return t.forEach(t=>{let n=r[t];ee.has(t)&&e.on(t,n),et.has(t)&&e.getMouseCaptor().on(t,n),er.has(t)&&e.getTouchCaptor().on(t,n),en.has(t)&&e.getCamera().on(t,n)}),()=>{e&&t.forEach(t=>{let n=r[t];ee.has(t)&&e.off(t,n),et.has(t)&&e.getMouseCaptor().off(t,n),er.has(t)&&e.getTouchCaptor().off(t,n),en.has(t)&&e.getCamera().off(t,n)})}},[e,r,t]),o}function ei(){let e=X();return(0,n.useCallback)((t,r=!0)=>{e&&t&&(r&&e.getGraph().order>0&&e.getGraph().clear(),e.getGraph().import(t),e.refresh())},[e])}function ea(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!=Object.keys(t).length)return!1;for(let r in e)if(!Object.hasOwn(t,r)||!ea(e[r],t[r]))return!1;return!0}return!1}let es=(0,n.forwardRef)(({graph:e,id:t,className:r,style:i,settings:a={},children:s},l)=>{let c=(0,n.useRef)(null),u=(0,n.useRef)(null),d={className:`react-sigma ${r||""}`,id:t,style:i},[p,h]=(0,n.useState)(null),[f,m]=(0,n.useState)(a);(0,n.useEffect)(()=>{m(e=>ea(e,a)?e:a)},[a]),(0,n.useEffect)(()=>{let t=null;if(null!==u.current){let r=new o.ZP;e&&(r="function"==typeof e?new e:e),t=new V(r,u.current,f),h(e=>{let r=null;return e&&(r=e.getCamera().getState()),r&&t.getCamera().setState(r),t})}return()=>{t&&t.kill()}},[u,e,f]),(0,n.useImperativeHandle)(l,()=>p,[p]);let g=(0,n.useMemo)(()=>p&&c.current?{sigma:p,container:c.current}:null,[p,c]),v=null!==g?n.createElement(K,{value:g},s):null;return n.createElement("div",Object.assign({},d,{ref:c}),n.createElement("div",{className:"sigma-container",ref:u}),v)})},27703:function(e,t,r){"use strict";r.d(t,{ln:function(){return a}});var n=r(55610),o=r(7653);r(71020);var i=r(86607);function a(e={}){return function(e,t){let r=(0,n.Ys)(),[i,a]=(0,o.useState)(!1),[s,l]=(0,o.useState)(null),c=(0,o.useRef)(t);return(0,n.Xy)(c.current,t)||(c.current=t),(0,o.useEffect)(()=>{a(!1);let t=null;return c.current&&(t=new e(r.getGraph(),c.current)),l(t),()=>{null!==t&&t.kill()}},[r,c,l,a,e]),{stop:(0,o.useCallback)(()=>{s&&(s.stop(),a(!1))},[s,a]),start:(0,o.useCallback)(()=>{s&&(s.start(),a(!0))},[s,a]),kill:(0,o.useCallback)(()=>{s&&s.kill(),a(!1)},[s,a]),isRunning:i}}(i,e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.