@micromerce/formbuilder-react 1.0.742 → 1.0.743

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,7 +72,7 @@
72
72
  animation-iteration-count: infinite;
73
73
  animation-delay: 200ms;
74
74
  }
75
- `),ze.rippleVisible,Xe,550,(({theme:e})=>e.transitions.easing.easeInOut),ze.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ze.child,ze.childLeaving,He,550,(({theme:e})=>e.transitions.easing.easeInOut),ze.childPulsate,Ge,(({theme:e})=>e.transitions.easing.easeInOut)),et=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=(0,f.A)(r,Fe),[s,l]=h.useState([]),c=h.useRef(0),u=h.useRef(null);h.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const p=h.useRef(!1),m=(0,Qe.A)(),g=h.useRef(null),y=h.useRef(null),b=h.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,(0,v.jsx)(Je,{classes:{ripple:(0,Oe.A)(o.ripple,ze.ripple),rippleVisible:(0,Oe.A)(o.rippleVisible,ze.rippleVisible),ripplePulsate:(0,Oe.A)(o.ripplePulsate,ze.ripplePulsate),child:(0,Oe.A)(o.child,ze.child),childLeaving:(0,Oe.A)(o.childLeaving,ze.childLeaving),childPulsate:(0,Oe.A)(o.childPulsate,ze.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),O=h.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:r})},m.start(80,(()=>{g.current&&(g.current(),g.current=null)}))):b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:r})}),[n,b,m]),A=h.useCallback((()=>{O({},{pulsate:!0})}),[O]),w=h.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void m.start(0,(()=>{w(e,t)}));g.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[m]);return h.useImperativeHandle(t,(()=>({pulsate:A,start:O,stop:w})),[A,O,w]),(0,v.jsx)(Ke,(0,d.A)({className:(0,Oe.A)(ze.root,o.root,i),ref:y},a,{children:(0,v.jsx)($e,{component:null,exit:!0,children:s})}))})),tt=et;var rt=__webpack_require__(31609);function nt(e){return(0,rt.Ay)("MuiButtonBase",e)}const ot=(0,Be.A)("MuiButtonBase",["root","disabled","focusVisible"]),it=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],at=(0,ke.Ay)("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"},[`&.${ot.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),st=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:b,onDragLeave:O,onFocus:A,onFocusVisible:w,onKeyDown:x,onKeyUp:k,onMouseDown:S,onMouseLeave:C,onMouseUp:P,onTouchEnd:E,onTouchMove:_,onTouchStart:j,tabIndex:M=0,TouchRippleProps:T,touchRippleRef:q,type:D}=r,R=(0,f.A)(r,it),L=h.useRef(null),I=h.useRef(null),$=(0,Pe.A)(I,q),{isFocusVisibleRef:N,onFocus:Q,onBlur:B,ref:z}=(0,_e.A)(),[F,U]=h.useState(!1);l&&F&&U(!1),h.useImperativeHandle(n,(()=>({focusVisible:()=>{U(!0),L.current.focus()}})),[]);const[Z,V]=h.useState(!1);h.useEffect((()=>{V(!0)}),[]);const W=Z&&!c&&!l;function Y(e,t,r=u){return(0,Ee.A)((n=>(t&&t(n),!r&&I.current&&I.current[e](n),!0)))}h.useEffect((()=>{F&&p&&!c&&Z&&I.current.pulsate()}),[c,p,F,Z]);const X=Y("start",S),H=Y("stop",b),G=Y("stop",O),K=Y("stop",P),J=Y("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),ee=Y("start",j),te=Y("stop",E),re=Y("stop",_),ne=Y("stop",(e=>{B(e),!1===N.current&&U(!1),g&&g(e)}),!1),oe=(0,Ee.A)((e=>{L.current||(L.current=e.currentTarget),Q(e),!0===N.current&&(U(!0),w&&w(e)),A&&A(e)})),ie=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ae=h.useRef(!1),se=(0,Ee.A)((e=>{p&&!ae.current&&F&&I.current&&" "===e.key&&(ae.current=!0,I.current.stop(e,(()=>{I.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!l&&(e.preventDefault(),y&&y(e))})),le=(0,Ee.A)((e=>{p&&" "===e.key&&I.current&&F&&!e.defaultPrevented&&(ae.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),k&&k(e),y&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let ce=s;"button"===ce&&(R.href||R.to)&&(ce=m);const ue={};"button"===ce?(ue.type=void 0===D?"button":D,ue.disabled=l):(R.href||R.to||(ue.role="button"),l&&(ue["aria-disabled"]=l));const de=(0,Pe.A)(t,z,L),fe=(0,d.A)({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:p,tabIndex:M,focusVisible:F}),he=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,we.A)(i,nt,o);return r&&n&&(a.root+=` ${n}`),a})(fe);return(0,v.jsxs)(at,(0,d.A)({as:ce,className:(0,Oe.A)(he.root,a),ownerState:fe,onBlur:ne,onClick:y,onContextMenu:H,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:X,onMouseLeave:J,onMouseUp:K,onDragLeave:G,onTouchEnd:te,onTouchMove:re,onTouchStart:ee,ref:de,tabIndex:l?-1:M,type:D},ue,R,{children:[i,W?(0,v.jsx)(tt,(0,d.A)({ref:$,center:o},T)):null]}))}));var lt=__webpack_require__(28466);function ct(e){return(0,rt.Ay)("MuiButton",e)}const ut=(0,Be.A)("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"]),dt=h.createContext({}),ft=h.createContext(void 0),ht=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pt=e=>(0,d.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),mt=(0,ke.Ay)(st,{shouldForwardProp:e=>(0,Se.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,lt.A)(r.color)}`],t[`size${(0,lt.A)(r.size)}`],t[`${r.variant}Size${(0,lt.A)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,d.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,d.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,d.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ut.focusVisible}`]:(0,d.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ut.disabled}`]:(0,d.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,xe.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ut.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ut.disabled}`]:{boxShadow:"none"}})),gt=(0,ke.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${(0,lt.A)(r.size)}`]]}})((({ownerState:e})=>(0,d.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},pt(e)))),yt=(0,ke.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${(0,lt.A)(r.size)}`]]}})((({ownerState:e})=>(0,d.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},pt(e)))),vt=h.forwardRef((function(e,t){const r=h.useContext(dt),n=h.useContext(ft),o=(0,Ae.A)(r,e),i=(0,Ce.b)({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:b=!1,size:O="medium",startIcon:A,type:w,variant:x="text"}=i,k=(0,f.A)(i,ht),S=(0,d.A)({},i,{color:s,component:l,disabled:u,disableElevation:p,disableFocusRipple:m,fullWidth:b,size:O,type:w,variant:x}),C=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${(0,lt.A)(t)}`,`size${(0,lt.A)(o)}`,`${i}Size${(0,lt.A)(o)}`,`color${(0,lt.A)(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,lt.A)(o)}`],endIcon:["icon","endIcon",`iconSize${(0,lt.A)(o)}`]},l=(0,we.A)(s,ct,a);return(0,d.A)({},a,l)})(S),P=A&&(0,v.jsx)(gt,{className:C.startIcon,ownerState:S,children:A}),E=g&&(0,v.jsx)(yt,{className:C.endIcon,ownerState:S,children:g}),_=n||"";return(0,v.jsxs)(mt,(0,d.A)({ownerState:S,className:(0,Oe.A)(r.className,C.root,c,_),component:l,disabled:u,focusRipple:!m,focusVisibleClassName:(0,Oe.A)(C.focusVisible,y),ref:t,type:w},k,{classes:C,children:[P,a,E]}))})),bt=vt,Ot=h.createContext(void 0);function At(){return h.useContext(Ot)}var wt=__webpack_require__(11317),xt=__webpack_require__(10733),kt=__webpack_require__(58749),St=__webpack_require__(33571);const Ct=["ownerState"],Pt=["variants"],Et=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _t(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const jt=(0,kt.A)(),Mt=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Tt({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function qt(e){return e?(t,r)=>r[e]:null}function Dt(e,t){let{ownerState:r}=t,n=(0,f.A)(t,Ct);const o="function"==typeof e?e((0,d.A)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Dt(e,(0,d.A)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,f.A)(o,Pt);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,d.A)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,d.A)({ownerState:r},n,r)):e.style))})),t}return o}const Rt=function(e={}){const{themeId:t,defaultTheme:r=jt,rootShouldForwardProp:n=_t,slotShouldForwardProp:o=_t}=e,i=e=>(0,St.A)((0,d.A)({},e,{theme:Tt((0,d.A)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,xt.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:h=qt(Mt(l))}=a,p=(0,f.A)(a,Et),m=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,g=u||!1;let y=_t;"Root"===l||"root"===l?y=n:l?y=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);const v=(0,xt.default)(e,(0,d.A)({shouldForwardProp:y,label:void 0},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,wt.Q)(e)?n=>Dt(e,(0,d.A)({},n,{theme:Tt({theme:n.theme,defaultTheme:r,themeId:t})})):e,O=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&h&&l.push((e=>{const n=Tt((0,d.A)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Dt(r,(0,d.A)({},e,{theme:n}))})),h(e,i)})),s&&!m&&l.push((e=>{var n;const o=Tt((0,d.A)({},e,{defaultTheme:r,themeId:t}));return Dt({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,d.A)({},e,{theme:o}))})),g||l.push(i);const c=l.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const u=v(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(O.withConfig=v.withConfig),O}}(),Lt=Rt,It=(0,kt.A)(),$t=function(e=It){return A(e)};var Nt=__webpack_require__(39599),Qt=__webpack_require__(89452),Bt=__webpack_require__(68248);const zt=["component","direction","spacing","divider","children","className","useFlexGap"],Ft=(0,kt.A)(),Ut=Lt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Zt(e){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=$t(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,Ae.A)(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}({props:e,name:"MuiStack",defaultTheme:Ft})}function Vt(e,t){const r=h.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(h.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Wt=({ownerState:e,theme:t})=>{let r=(0,d.A)({display:"flex",flexDirection:"column"},(0,Qt.NI)({theme:t},(0,Qt.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,Bt.LX)(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),i=(0,Qt.kW)({values:e.direction,base:o}),a=(0,Qt.kW)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}}));const s=(t,r)=>{return e.useFlexGap?{gap:(0,Bt._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?i[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Bt._W)(n,t)}};var o};r=(0,wt.A)(r,(0,Qt.NI)({theme:t},a,s))}return r=(0,Qt.iZ)(t.breakpoints,r),r},Yt=function(e={}){const{createStyledComponent:t=Ut,useThemeProps:r=Zt,componentName:n="MuiStack"}=e,o=t(Wt),i=h.forwardRef((function(e,t){const i=r(e),a=(0,Nt.A)(i),{component:s="div",direction:l="column",spacing:c=0,divider:u,children:h,className:p,useFlexGap:m=!1}=a,g=(0,f.A)(a,zt),y={direction:l,spacing:c,useFlexGap:m},b=(0,we.A)({root:["root"]},(e=>(0,rt.Ay)(n,e)),{});return(0,v.jsx)(o,(0,d.A)({as:s,ownerState:y,ref:t,className:(0,Oe.A)(b.root,p)},g,{children:u?Vt(h,u):h}))}));return i}({createStyledComponent:(0,ke.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Ce.b)({props:e,name:"MuiStack"})}),Xt=Yt;function Ht(e){return(0,rt.Ay)("MuiTypography",e)}(0,Be.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gt=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Kt=(0,ke.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${(0,lt.A)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,d.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Jt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},er={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tr=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiTypography"}),n=(e=>er[e]||e)(r.color),o=(0,Nt.A)((0,d.A)({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:h="body1",variantMapping:p=Jt}=o,m=(0,f.A)(o,Gt),g=(0,d.A)({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:h,variantMapping:p}),y=s||(u?"p":p[h]||Jt[h])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,lt.A)(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,we.A)(s,Ht,a)})(g);return(0,v.jsx)(Kt,(0,d.A)({as:y,ref:t,ownerState:g,className:(0,Oe.A)(b.root,a)},m))})),rr=tr;function nr(e){return(0,rt.Ay)("MuiFormControlLabel",e)}const or=(0,Be.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function ir({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const ar=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],sr=(0,ke.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${or.label}`]:t.label},t.root,t[`labelPlacement${(0,lt.A)(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,d.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${or.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${or.label}`]:{[`&.${or.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),lr=(0,ke.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${or.error}`]:{color:(e.vars||e).palette.error.main}}))),cr=h.forwardRef((function(e,t){var r,n;const o=(0,Ce.b)({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,label:u,labelPlacement:p="end",required:m,slotProps:g={}}=o,y=(0,f.A)(o,ar),b=At(),O=null!=(r=null!=l?l:s.props.disabled)?r:null==b?void 0:b.disabled,A=null!=m?m:s.props.required,w={disabled:O,required:A};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===s.props[e]&&void 0!==o[e]&&(w[e]=o[e])}));const x=ir({props:o,muiFormControl:b,states:["error"]}),k=(0,d.A)({},o,{disabled:O,labelPlacement:p,required:A,error:x.error}),S=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${(0,lt.A)(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,we.A)(a,nr,t)})(k),C=null!=(n=g.typography)?n:a.typography;let P=u;return null==P||P.type===rr||c||(P=(0,v.jsx)(rr,(0,d.A)({component:"span"},C,{className:(0,Oe.A)(S.label,null==C?void 0:C.className),children:P}))),(0,v.jsxs)(sr,(0,d.A)({className:(0,Oe.A)(S.root,i),ownerState:k,ref:t},y,{children:[h.cloneElement(s,w),A?(0,v.jsxs)(Xt,{display:"block",children:[P,(0,v.jsxs)(lr,{ownerState:k,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):P]}))})),ur=cr;var dr=__webpack_require__(14792),fr=__webpack_require__.n(dr),hr=__webpack_require__(78729),pr=__webpack_require__(62600);const mr=function(){return p().createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p().createElement("path",{d:"M8.1 11.7H9.9V13.5H8.1V11.7ZM8.1 4.5H9.9V9.9H8.1V4.5ZM8.991 0C4.023 0 0 4.032 0 9C0 13.968 4.023 18 8.991 18C13.968 18 18 13.968 18 9C18 4.032 13.968 0 8.991 0ZM9 16.2C5.022 16.2 1.8 12.978 1.8 9C1.8 5.022 5.022 1.8 9 1.8C12.978 1.8 16.2 5.022 16.2 9C16.2 12.978 12.978 16.2 9 16.2Z",fill:"#B01F14"}))};var gr=__webpack_require__(19429),yr={};function vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}yr.styleTagTransform=Y(),yr.setAttributes=U(),yr.insert=z().bind(null,"head"),yr.domAPI=Q(),yr.insertStyleElement=V(),$()(gr.Ay,yr),gr.Ay&&gr.Ay.locals&&gr.Ay.locals;const br=function(e){var t=e.error,r=function(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=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,h.useState)(!1),2),n=r[0],o=r[1];return p().createElement("div",{className:gr.Un,"data-testid":"form-general-error-container"},p().createElement("div",{className:gr.P0},p().createElement(mr,null)),p().createElement("p",{className:"".concat(gr.gJ," ").concat(n?"":gr.$h),"data-testid":"form-general-error-message"},t),p().createElement("div",{className:gr.xf},p().createElement("button",{type:"button",onClick:function(){o((function(e){return!e}))}},n?p().createElement(hr.V,{"data-testid":"form-list__sort-down-button",color:"#B01F14"}):p().createElement(pr.U,{"data-testid":"form-list__sort-up-button",color:"#B01F14"}))))};var Or=__webpack_require__(88310),Ar={};Ar.styleTagTransform=Y(),Ar.setAttributes=U(),Ar.insert=z().bind(null,"head"),Ar.domAPI=Q(),Ar.insertStyleElement=V(),$()(Or.Ay,Ar),Or.Ay&&Or.Ay.locals&&Or.Ay.locals;var wr=__webpack_require__(41159);function xr(e){return(0,rt.Ay)("PrivateSwitchBase",e)}(0,Be.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kr=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Sr=(0,ke.Ay)(st)((({ownerState:e})=>(0,d.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Cr=(0,ke.Ay)("input",{shouldForwardProp:Se.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Pr=h.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:h,inputProps:p,inputRef:m,name:g,onBlur:y,onChange:b,onFocus:O,readOnly:A,required:w=!1,tabIndex:x,type:k,value:S}=e,C=(0,f.A)(e,kr),[P,E]=(0,wr.A)({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),_=At();let j=s;_&&void 0===j&&(j=_.disabled);const M="checkbox"===k||"radio"===k,T=(0,d.A)({},e,{checked:P,disabled:j,disableFocusRipple:l,edge:c}),q=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${(0,lt.A)(o)}`],input:["input"]};return(0,we.A)(i,xr,t)})(T);return(0,v.jsxs)(Sr,(0,d.A)({component:"span",className:(0,Oe.A)(q.root,i),centerRipple:!0,focusRipple:!l,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),_&&_.onFocus&&_.onFocus(e)},onBlur:e=>{y&&y(e),_&&_.onBlur&&_.onBlur(e)},ownerState:T,ref:t},C,{children:[(0,v.jsx)(Cr,(0,d.A)({autoFocus:r,checked:n,defaultChecked:a,className:q.input,disabled:j,id:M?h:void 0,name:g,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),b&&b(e,t)},readOnly:A,ref:m,required:w,ownerState:T,tabIndex:x,type:k},"checkbox"===k&&void 0===S?{}:{value:S},p)),P?o:u]}))})),Er=Pr;function _r(e){return(0,rt.Ay)("MuiSwitch",e)}const jr=(0,Be.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Mr=["className","color","edge","size","sx"],Tr=(0,ke.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${(0,lt.A)(r.edge)}`],t[`size${(0,lt.A)(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,[`& .${jr.thumb}`]:{width:16,height:16},[`& .${jr.switchBase}`]:{padding:4,[`&.${jr.checked}`]:{transform:"translateX(16px)"}}}}]}),qr=(0,ke.Ay)(Er,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${jr.input}`]:t.input},"default"!==r.color&&t[`color${(0,lt.A)(r.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${jr.checked}`]:{transform:"translateX(20px)"},[`&.${jr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${jr.checked} + .${jr.track}`]:{opacity:.5},[`&.${jr.disabled} + .${jr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${jr.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${jr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,xe.a)(e.palette[t].main,.62):(0,xe.e$)(e.palette[t].main,.55)}`}},[`&.${jr.checked} + .${jr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),Dr=(0,ke.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),Rr=(0,ke.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Lr=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiSwitch"}),{className:n,color:o="primary",edge:i=!1,size:a="medium",sx:s}=r,l=(0,f.A)(r,Mr),c=(0,d.A)({},r,{color:o,edge:i,size:a}),u=(e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:a}=e,s={root:["root",r&&`edge${(0,lt.A)(r)}`,`size${(0,lt.A)(n)}`],switchBase:["switchBase",`color${(0,lt.A)(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,we.A)(s,_r,t);return(0,d.A)({},t,l)})(c),h=(0,v.jsx)(Rr,{className:u.thumb,ownerState:c});return(0,v.jsxs)(Tr,{className:(0,Oe.A)(u.root,n),sx:s,ownerState:c,children:[(0,v.jsx)(qr,(0,d.A)({type:"checkbox",icon:h,checkedIcon:h,ref:t,ownerState:c},l,{classes:(0,d.A)({},u,{root:u.switchBase})})),(0,v.jsx)(Dr,{className:u.track,ownerState:c})]})})),Ir=Lr;var $r=(0,ke.Ay)(Ir)((function(){return{"& .MuiSwitch-switchBase.Mui-checked":{color:"white"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#4A96D2",opacity:1,"&:hover":{backgroundColor:"#255F8E"}}}}));function Nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Nr(e,t,r[t])}))}return e}var Br={add:p().createElement(ye.A,{"data-testid":"formfooter__add-icon"}),save:p().createElement(ve.A,{"data-testid":"formfooter__save-icon"}),update:p().createElement(be.K,{size:14,"data-testid":"formfooter__update-icon"})};const zr=function(e){var t,r,n,o,i,a,s,l,c,u,d,f=e.controlProps,m=e.error,g=e.iconType,y=e.loading,v=e.onSubmit,b=(0,h.useContext)(L.og),O=b.formControls,A=b.isExpertMode,w=b.hasExpertMode,x=b.toggleExpertMode,k=g&&Br[g.toLowerCase()],S=g&&fr()(g)||"Add",C=null!==(l=null==f||null===(t=f.footerProps)||void 0===t?void 0:t.style)&&void 0!==l?l:{},P=null!==(c=null==f||null===(n=f.footerProps)||void 0===n||null===(r=n.container)||void 0===r?void 0:r.style)&&void 0!==c?c:{},E=null!==(u=null==f||null===(i=f.footerProps)||void 0===i||null===(o=i.submitButtonContainer)||void 0===o?void 0:o.style)&&void 0!==u?u:{},_=null!==(d=null==f||null===(s=f.footerProps)||void 0===s||null===(a=s.submitButton)||void 0===a?void 0:a.sx)&&void 0!==d?d:{};return p().createElement("div",{"data-testid":"form-footer-container",className:Or.Nd,style:C},m&&p().createElement("div",{className:Or.fV},p().createElement(br,{error:m})),p().createElement("div",{className:Or.gO,style:P},w?p().createElement(ur,{"data-testid":"formfooter__expert-mode",control:p().createElement($r,{checked:A,onChange:x}),label:"Expert Mode",sx:{color:"rgba(0,0,0,.54)",marginBottom:0,input:{marginTop:0},".MuiTypography-root":{fontSize:12}}}):p().createElement("div",null),p().createElement("div",{className:Or.VT,style:E},p().createElement("span",{className:Or.wQ},"* Please fill in all required fields"),p().createElement(bt,{"data-testid":"formfooter__submit",id:"submit-button",variant:"contained",type:"submit",form:"form-horizontal xhtmlInstantForm",onClick:function(){return v(O)},disabled:y,sx:Qr({backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},_),endIcon:y?p().createElement("svg",{className:"".concat(Or.aU," run-button__spinner"),"data-testid":"formfooter__loading-icon",xmlns:"http://www.w3.org/2000/svg",width:"21.076",height:"20.31",viewBox:"0 0 21.076 20.31"},p().createElement("g",{id:"Gruppe_272","data-name":"Gruppe 272",transform:"translate(-269.58 -82.717)"},p().createElement("path",{id:"Pfad_338","data-name":"Pfad 338",d:"M278.934,84.754l3.514-2.03v4.06l-3.514,2.03Z",transform:"translate(-5.841 -0.004)",fill:"#fff"}),p().createElement("path",{id:"Pfad_339","data-name":"Pfad 339",d:"M288.29,86.784v-4.06l3.514,2.03v4.06Z",transform:"translate(-11.683 -0.004)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_340","data-name":"Pfad 340",d:"M282.45,119.233v-4.06l-3.514,2.03v4.06Z",transform:"translate(-5.842 -20.266)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_341","data-name":"Pfad 341",d:"M285.963,128.014l-3.515-2.03-3.514,2.03,3.514,2.03Z",transform:"translate(-5.841 -27.017)",fill:"#fff"}),p().createElement("path",{id:"Pfad_342","data-name":"Pfad 342",d:"M297.625,124.639l3.514,2.03v-4.06l-3.514-2.03Z",transform:"translate(-17.513 -23.642)",fill:"#fff"}),p().createElement("path",{id:"Pfad_343","data-name":"Pfad 343",d:"M306.981,122.609v4.06l3.514-2.03v-4.06Z",transform:"translate(-23.355 -23.642)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_344","data-name":"Pfad 344",d:"M273.094,106.394v4.06l-3.514-2.03v-4.06Z",transform:"translate(0 -13.516)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_345","data-name":"Pfad 345",d:"M276.608,100.988l-3.514,2.03-3.514-2.03,3.514-2.03Z",transform:"translate(0 -10.141)",fill:"#fff"}),p().createElement("path",{id:"Pfad_346","data-name":"Pfad 346",d:"M310.5,92.185l-3.514,2.03v-4.06l3.514-2.03Z",transform:"translate(-23.355 -3.377)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_347","data-name":"Pfad 347",d:"M304.657,84.747l-3.514,2.03-3.514-2.03,3.514-2.03Z",transform:"translate(-17.515)",fill:"#fff"}),p().createElement("path",{id:"Pfad_348","data-name":"Pfad 348",d:"M319.853,100.968l-3.514-2.03V103l3.514,2.03Z",transform:"translate(-29.198 -10.129)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_349","data-name":"Pfad 349",d:"M314.011,111.778l-3.514-2.03-3.514,2.03,3.514,2.03Z",transform:"translate(-23.356 -16.879)",fill:"#fff"}))):k||Br.add},S))))};var Fr=__webpack_require__(58156),Ur=__webpack_require__.n(Fr),Zr=__webpack_require__(6924),Vr=__webpack_require__.n(Zr),Wr=__webpack_require__(57600),Yr={};Yr.styleTagTransform=Y(),Yr.setAttributes=U(),Yr.insert=z().bind(null,"head"),Yr.domAPI=Q(),Yr.insertStyleElement=V(),$()(Wr.Ay,Yr);const Xr=Wr.Ay&&Wr.Ay.locals?Wr.Ay.locals:void 0;var Hr=__webpack_require__(74870),Gr={};Gr.styleTagTransform=Y(),Gr.setAttributes=U(),Gr.insert=z().bind(null,"head"),Gr.domAPI=Q(),Gr.insertStyleElement=V(),$()(Hr.Ay,Gr);const Kr=Hr.Ay&&Hr.Ay.locals?Hr.Ay.locals:void 0,Jr=function(e){return"string"==typeof e},en=function(e,t,r){return void 0===e||Jr(e)?t:(0,d.A)({},t,{ownerState:(0,d.A)({},t.ownerState,r)})};var tn=__webpack_require__(22765);function rn(){const e=$t(tn.A);return e[j.A]||e}var nn=__webpack_require__(69514),on=__webpack_require__.n(nn);var an="unmounted",sn="exited",ln="entering",cn="entered",un="exiting",dn=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=sn,n.appearStatus=ln):o=cn:o=t.unmountOnExit||t.mountOnEnter?an:sn,n.state={status:o},n.nextCallback=null,n}Me(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===an?{status:sn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ln&&r!==cn&&(t=ln):r!==ln&&r!==cn||(t=un)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ln){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:on().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sn&&this.setState({status:an})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[on().findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:ln},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:cn},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:cn},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:on().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:un},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:sn},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:sn},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:on().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===an)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,f.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return p().createElement(Te.Provider,{value:null},"function"==typeof r?r(e,n):p().cloneElement(p().Children.only(r),n))},t}(p().Component);function fn(){}dn.contextType=Te,dn.propTypes={},dn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fn,onEntering:fn,onEntered:fn,onExit:fn,onExiting:fn,onExited:fn},dn.UNMOUNTED=an,dn.EXITED=sn,dn.ENTERING=ln,dn.ENTERED=cn,dn.EXITING=un;const hn=dn,pn=e=>e.scrollTop;function mn(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const gn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function yn(e){return`scale(${e}, ${e**2})`}const vn={entering:{opacity:1,transform:yn(1)},entered:{opacity:1,transform:"none"}},bn="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),On=h.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:p,onExiting:m,style:g,timeout:y="auto",TransitionComponent:b=hn}=e,O=(0,f.A)(e,gn),A=(0,Qe.A)(),w=h.useRef(),x=rn(),k=h.useRef(null),S=(0,Pe.A)(k,o.ref,t),C=e=>t=>{if(e){const r=k.current;void 0===t?e(r):e(r,t)}},P=C(c),E=C(((e,t)=>{pn(e);const{duration:r,delay:n,easing:o}=mn({style:g,timeout:y,easing:i},{mode:"enter"});let a;"auto"===y?(a=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:bn?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),_=C(l),j=C(m),M=C((e=>{const{duration:t,delay:r,easing:n}=mn({style:g,timeout:y,easing:i},{mode:"exit"});let o;"auto"===y?(o=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:bn?o:.666*o,delay:bn?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=yn(.75),u&&u(e)})),T=C(p);return(0,v.jsx)(b,(0,d.A)({appear:n,in:a,nodeRef:k,onEnter:E,onEntered:_,onEntering:P,onExit:M,onExited:T,onExiting:j,addEndListener:e=>{"auto"===y&&A.start(w.current||0,e),r&&r(k.current,e)},timeout:"auto"===y?null:y},O,{children:(e,t)=>h.cloneElement(o,(0,d.A)({style:(0,d.A)({opacity:0,transform:yn(.75),visibility:"exited"!==e||a?void 0:"hidden"},vn[e],g,o.props.style),ref:S},t))}))}));On.muiSupportAuto=!0;const An=On;var wn=__webpack_require__(72923),xn=__webpack_require__(31523),kn=__webpack_require__(21529),Sn=__webpack_require__(32325);function Cn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pn(e){return e instanceof Cn(e).Element||e instanceof Element}function En(e){return e instanceof Cn(e).HTMLElement||e instanceof HTMLElement}function _n(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Cn(e).ShadowRoot||e instanceof ShadowRoot)}var jn=Math.max,Mn=Math.min,Tn=Math.round;function qn(){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 Dn(){return!/^((?!chrome|android).)*safari/i.test(qn())}function Rn(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&Tn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Tn(n.height)/e.offsetHeight||1);var a=(Pn(e)?Cn(e):window).visualViewport,s=!Dn()&&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 Ln(e){var t=Cn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function In(e){return e?(e.nodeName||"").toLowerCase():null}function $n(e){return((Pn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nn(e){return Rn($n(e)).left+Ln(e).scrollLeft}function Qn(e){return Cn(e).getComputedStyle(e)}function Bn(e){var t=Qn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function zn(e,t,r){void 0===r&&(r=!1);var n,o,i=En(t),a=En(t)&&function(e){var t=e.getBoundingClientRect(),r=Tn(t.width)/e.offsetWidth||1,n=Tn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=$n(t),l=Rn(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==In(t)||Bn(s))&&(c=(n=t)!==Cn(n)&&En(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Ln(n)),En(t)?((u=Rn(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Nn(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Fn(e){var t=Rn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Un(e){return"html"===In(e)?e:e.assignedSlot||e.parentNode||(_n(e)?e.host:null)||$n(e)}function Zn(e){return["html","body","#document"].indexOf(In(e))>=0?e.ownerDocument.body:En(e)&&Bn(e)?e:Zn(Un(e))}function Vn(e,t){var r;void 0===t&&(t=[]);var n=Zn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Cn(n),a=o?[i].concat(i.visualViewport||[],Bn(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Vn(Un(a)))}function Wn(e){return["table","td","th"].indexOf(In(e))>=0}function Yn(e){return En(e)&&"fixed"!==Qn(e).position?e.offsetParent:null}function Xn(e){for(var t=Cn(e),r=Yn(e);r&&Wn(r)&&"static"===Qn(r).position;)r=Yn(r);return r&&("html"===In(r)||"body"===In(r)&&"static"===Qn(r).position)?t:r||function(e){var t=/firefox/i.test(qn());if(/Trident/i.test(qn())&&En(e)&&"fixed"===Qn(e).position)return null;var r=Un(e);for(_n(r)&&(r=r.host);En(r)&&["html","body"].indexOf(In(r))<0;){var n=Qn(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 Hn="top",Gn="bottom",Kn="right",Jn="left",eo="auto",to=[Hn,Gn,Kn,Jn],ro="start",no="end",oo="viewport",io="popper",ao=to.reduce((function(e,t){return e.concat([t+"-"+ro,t+"-"+no])}),[]),so=[].concat(to,[eo]).reduce((function(e,t){return e.concat([t,t+"-"+ro,t+"-"+no])}),[]),lo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function co(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var uo={placement:"bottom",modifiers:[],strategy:"absolute"};function fo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ho(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?uo:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},uo,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Pn(e)?Vn(e):e.contextElement?Vn(e.contextElement):[],popper:Vn(t)};var a=function(e){var t=co(e);return lo.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.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}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:n});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(fo(t,r)){s.rects={reference:zn(t,Xn(r),"fixed"===s.options.strategy),popper:Fn(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!fo(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}}var po={passive:!0};const mo={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=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,po)})),s&&l.addEventListener("resize",r.update,po),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,po)})),s&&l.removeEventListener("resize",r.update,po)}},data:{}};function go(e){return e.split("-")[0]}function yo(e){return e.split("-")[1]}function vo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bo(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?go(o):null,a=o?yo(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case Hn:t={x:s,y:r.y-n.height};break;case Gn:t={x:s,y:r.y+r.height};break;case Kn:t={x:r.x+r.width,y:l};break;case Jn:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?vo(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ro:t[c]=t[c]-(r[u]/2-n[u]/2);break;case no:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Oo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ao(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,m=void 0===p?0:p,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Jn,O=Hn,A=window;if(c){var w=Xn(r),x="clientHeight",k="clientWidth";w===Cn(r)&&"static"!==Qn(w=$n(r)).position&&"absolute"===s&&(x="scrollHeight",k="scrollWidth"),(o===Hn||(o===Jn||o===Kn)&&i===no)&&(O=Gn,m-=(d&&w===A&&A.visualViewport?A.visualViewport.height:w[x])-n.height,m*=l?1:-1),o!==Jn&&(o!==Hn&&o!==Gn||i!==no)||(b=Kn,h-=(d&&w===A&&A.visualViewport?A.visualViewport.width:w[k])-n.width,h*=l?1:-1)}var S,C=Object.assign({position:s},c&&Oo),P=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Tn(r*o)/o||0,y:Tn(n*o)/o||0}}({x:h,y:m},Cn(r)):{x:h,y:m};return h=P.x,m=P.y,l?Object.assign({},C,((S={})[O]=v?"0":"",S[b]=y?"0":"",S.transform=(A.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},C,((t={})[O]=v?m+"px":"",t[b]=y?h+"px":"",t.transform="",t))}const wo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:go(t.placement),variation:yo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ao(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ao(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},xo={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];En(o)&&In(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}),{});En(n)&&In(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},ko={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=so.reduce((function(e,r){return e[r]=function(e,t,r){var n=go(e),o=[Jn,Hn].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Jn,Kn].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var So={left:"right",right:"left",bottom:"top",top:"bottom"};function Co(e){return e.replace(/left|right|bottom|top/g,(function(e){return So[e]}))}var Po={start:"end",end:"start"};function Eo(e){return e.replace(/start|end/g,(function(e){return Po[e]}))}function _o(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_n(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function jo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mo(e,t,r){return t===oo?jo(function(e,t){var r=Cn(e),n=$n(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Dn();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Nn(e),y:l}}(e,r)):Pn(t)?function(e,t){var r=Rn(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):jo(function(e){var t,r=$n(e),n=Ln(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=jn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=jn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Nn(e),l=-n.scrollTop;return"rtl"===Qn(o||r).direction&&(s+=jn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}($n(e)))}function To(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qo(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Do(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?oo:c,d=r.elementContext,f=void 0===d?io:d,h=r.altBoundary,p=void 0!==h&&h,m=r.padding,g=void 0===m?0:m,y=To("number"!=typeof g?g:qo(g,to)),v=f===io?"reference":io,b=e.rects.popper,O=e.elements[p?v:f],A=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Vn(Un(e)),r=["absolute","fixed"].indexOf(Qn(e).position)>=0&&En(e)?Xn(e):e;return Pn(r)?t.filter((function(e){return Pn(e)&&_o(e,r)&&"body"!==In(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce((function(t,r){var o=Mo(e,r,n);return t.top=jn(o.top,t.top),t.right=Mn(o.right,t.right),t.bottom=Mn(o.bottom,t.bottom),t.left=jn(o.left,t.left),t}),Mo(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Pn(O)?O:O.contextElement||$n(e.elements.popper),l,u,a),w=Rn(e.elements.reference),x=bo({reference:w,element:b,strategy:"absolute",placement:o}),k=jo(Object.assign({},b,x)),S=f===io?k:w,C={top:A.top-S.top+y.top,bottom:S.bottom-A.bottom+y.bottom,left:A.left-S.left+y.left,right:S.right-A.right+y.right},P=e.modifiersData.offset;if(f===io&&P){var E=P[o];Object.keys(C).forEach((function(e){var t=[Kn,Gn].indexOf(e)>=0?1:-1,r=[Hn,Gn].indexOf(e)>=0?"y":"x";C[e]+=E[r]*t}))}return C}const Ro={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,f=r.altBoundary,h=r.flipVariations,p=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,y=go(g),v=l||(y!==g&&p?function(e){if(go(e)===eo)return[];var t=Co(e);return[Eo(e),t,Eo(t)]}(g):[Co(g)]),b=[g].concat(v).reduce((function(e,r){return e.concat(go(r)===eo?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?so:l,u=yo(n),d=u?s?ao:ao.filter((function(e){return yo(e)===u})):to,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,r){return t[r]=Do(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[go(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):r)}),[]),O=t.rects.reference,A=t.rects.popper,w=new Map,x=!0,k=b[0],S=0;S<b.length;S++){var C=b[S],P=go(C),E=yo(C)===ro,_=[Hn,Gn].indexOf(P)>=0,j=_?"width":"height",M=Do(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),T=_?E?Kn:Jn:E?Gn:Hn;O[j]>A[j]&&(T=Co(T));var q=Co(T),D=[];if(i&&D.push(M[P]<=0),s&&D.push(M[T]<=0,M[q]<=0),D.every((function(e){return e}))){k=C,x=!1;break}w.set(C,D)}if(x)for(var R=function(e){var t=b.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},L=p?3:1;L>0&&"break"!==R(L);L--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Lo(e,t,r){return jn(e,Mn(t,r))}const Io={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,h=void 0===f||f,p=r.tetherOffset,m=void 0===p?0:p,g=Do(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=go(t.placement),v=yo(t.placement),b=!v,O=vo(y),A="x"===O?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,k=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(i){var _,j="y"===O?Hn:Jn,M="y"===O?Gn:Kn,T="y"===O?"height":"width",q=w[O],D=q+g[j],R=q-g[M],L=h?-k[T]/2:0,I=v===ro?x[T]:k[T],$=v===ro?-k[T]:-x[T],N=t.elements.arrow,Q=h&&N?Fn(N):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=B[j],F=B[M],U=Lo(0,x[T],Q[T]),Z=b?x[T]/2-L-U-z-C.mainAxis:I-U-z-C.mainAxis,V=b?-x[T]/2+L+U+F+C.mainAxis:$+U+F+C.mainAxis,W=t.elements.arrow&&Xn(t.elements.arrow),Y=W?"y"===O?W.clientTop||0:W.clientLeft||0:0,X=null!=(_=null==P?void 0:P[O])?_:0,H=q+V-X,G=Lo(h?Mn(D,q+Z-X-Y):D,q,h?jn(R,H):R);w[O]=G,E[O]=G-q}if(s){var K,J="x"===O?Hn:Jn,ee="x"===O?Gn:Kn,te=w[A],re="y"===A?"height":"width",ne=te+g[J],oe=te-g[ee],ie=-1!==[Hn,Jn].indexOf(y),ae=null!=(K=null==P?void 0:P[A])?K:0,se=ie?ne:te-x[re]-k[re]-ae+C.altAxis,le=ie?te+x[re]+k[re]-ae-C.altAxis:oe,ce=h&&ie?function(e,t,r){var n=Lo(e,t,r);return n>r?r:n}(se,te,le):Lo(h?se:ne,te,h?le:oe);w[A]=ce,E[A]=ce-te}t.modifiersData[n]=E}},requiresIfExists:["offset"]},$o={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=go(r.placement),l=vo(s),c=[Jn,Kn].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return To("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qo(e,to))}(o.padding,r),d=Fn(i),f="y"===l?Hn:Jn,h="y"===l?Gn:Kn,p=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],m=a[l]-r.rects.reference[l],g=Xn(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,b=u[f],O=y-d[c]-u[h],A=y/2-d[c]/2+v,w=Lo(b,A,O),x=l;r.modifiersData[n]=((t={})[x]=w,t.centerOffset=w-A,t)}},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)))&&_o(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function No(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 Qo(e){return[Hn,Kn,Gn,Jn].some((function(t){return e[t]>=0}))}var Bo=ho({defaultModifiers:[mo,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=bo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},wo,xo,ko,Ro,Io,$o,{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=Do(t,{elementContext:"reference"}),s=Do(t,{altBoundary:!0}),l=No(a,n),c=No(s,o,i),u=Qo(l),d=Qo(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})}}]});const zo=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r},Fo=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t},Uo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],Zo=function(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,f.A)(e,Uo),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=(0,Oe.A)(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,d.A)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=(0,d.A)({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=zo((0,d.A)({},o,n)),s=Fo(n),l=Fo(o),c=t(a),u=(0,Oe.A)(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),f=(0,d.A)({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),h=(0,d.A)({},c,r,l,s);return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}((0,d.A)({},a,{externalSlotProps:s})),u=(0,xn.A)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return en(r,(0,d.A)({},l,{ref:u}),o)};var Vo=__webpack_require__(17365);const Wo=h.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=h.useState(null),s=(0,xn.A)(h.isValidElement(r)?r.ref:null,t);if((0,kn.A)((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),(0,kn.A)((()=>{if(i&&!o)return(0,Vo.A)(t,i),()=>{(0,Vo.A)(t,null)}}),[t,i,o]),o){if(h.isValidElement(r)){const e={ref:s};return h.cloneElement(r,e)}return(0,v.jsx)(h.Fragment,{children:r})}return(0,v.jsx)(h.Fragment,{children:i?nn.createPortal(r,i):i})}));function Yo(e){return(0,rt.Ay)("MuiPopper",e)}(0,Be.A)("MuiPopper",["root"]);const Xo=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ho=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Go(e){return"function"==typeof e?e():e}const Ko={},Jo=h.forwardRef((function(e,t){var r;const{anchorEl:n,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:p,slotProps:m={},slots:g={},TransitionProps:y}=e,b=(0,f.A)(e,Xo),O=h.useRef(null),A=(0,xn.A)(O,t),w=h.useRef(null),x=(0,xn.A)(w,p),k=h.useRef(x);(0,kn.A)((()=>{k.current=x}),[x]),h.useImperativeHandle(p,(()=>w.current),[]);const S=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}}(c,i),[C,P]=h.useState(S),[E,_]=h.useState(Go(n));h.useEffect((()=>{w.current&&w.current.forceUpdate()})),h.useEffect((()=>{n&&_(Go(n))}),[n]),(0,kn.A)((()=>{if(!E||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{P(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Bo(E,O.current,(0,d.A)({placement:S},u,{modifiers:e}));return k.current(t),()=>{t.destroy(),k.current(null)}}),[E,a,s,l,u,S]);const j={placement:C};null!==y&&(j.TransitionProps=y);const M=(e=>{const{classes:t}=e;return(0,we.A)({root:["root"]},Yo,t)})(e),T=null!=(r=g.root)?r:"div",q=Zo({elementType:T,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:A},ownerState:e,className:M.root});return(0,v.jsx)(T,(0,d.A)({},q,{children:"function"==typeof o?o(j):o}))})),ei=h.forwardRef((function(e,t){const{anchorEl:r,children:n,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:c,placement:u="bottom",popperOptions:p=Ko,popperRef:m,style:g,transition:y=!1,slotProps:b={},slots:O={}}=e,A=(0,f.A)(e,Ho),[w,x]=h.useState(!0);if(!s&&!c&&(!y||w))return null;let k;if(o)k=o;else if(r){const e=Go(r);k=e&&void 0!==e.nodeType?(0,Sn.A)(e).body:(0,Sn.A)(null).body}const S=c||!s||y&&!w?void 0:"none",C=y?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,v.jsx)(Wo,{disablePortal:a,container:k,children:(0,v.jsx)(Jo,(0,d.A)({anchorEl:r,direction:i,disablePortal:a,modifiers:l,ref:t,open:y?!w:c,placement:u,popperOptions:p,popperRef:m,slotProps:b,slots:O},A,{style:(0,d.A)({position:"fixed",top:0,left:0,display:S},g),TransitionProps:C,children:n}))})})),ti=ei,ri=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ni=(0,ke.Ay)(ti,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oi=h.forwardRef((function(e,t){var r;const n=(0,wn.A)(),o=(0,Ce.b)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:h,modifiers:p,open:m,placement:g,popperOptions:y,popperRef:b,transition:O,slots:A,slotProps:w}=o,x=(0,f.A)(o,ri),k=null!=(r=null==A?void 0:A.root)?r:null==s?void 0:s.Root,S=(0,d.A)({anchorEl:i,container:c,disablePortal:u,keepMounted:h,modifiers:p,open:m,placement:g,popperOptions:y,popperRef:b,transition:O},x);return(0,v.jsx)(ni,(0,d.A)({as:a,direction:null==n?void 0:n.direction,slots:{root:k},slotProps:null!=w?w:l},S,{ref:t}))})),ii=oi;var ai=__webpack_require__(1668);function si(e){return(0,rt.Ay)("MuiTooltip",e)}const li=(0,Be.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ci=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],ui=(0,ke.Ay)(ii,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((({theme:e,ownerState:t,open:r})=>(0,d.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${li.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${li.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${li.arrow}`]:(0,d.A)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${li.arrow}`]:(0,d.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),di=(0,ke.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,lt.A)(r.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,d.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,xe.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(r=16/14,Math.round(1e5*r)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${li.popper}[data-popper-placement*="left"] &`]:(0,d.A)({transformOrigin:"right center"},t.isRtl?(0,d.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,d.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${li.popper}[data-popper-placement*="right"] &`]:(0,d.A)({transformOrigin:"left center"},t.isRtl?(0,d.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,d.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${li.popper}[data-popper-placement*="top"] &`]:(0,d.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${li.popper}[data-popper-placement*="bottom"] &`]:(0,d.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var r})),fi=(0,ke.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,xe.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hi=!1;const pi=new Qe.E;let mi={x:0,y:0};function gi(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const yi=h.forwardRef((function(e,t){var r,n,o,i,a,s,l,c,u,p,m,g,y,b,O,A,w,x,S;const C=(0,Ce.b)({props:e,name:"MuiTooltip"}),{arrow:P=!1,children:E,components:_={},componentsProps:j={},describeChild:M=!1,disableFocusListener:T=!1,disableHoverListener:q=!1,disableInteractive:D=!1,disableTouchListener:R=!1,enterDelay:L=100,enterNextDelay:I=0,enterTouchDelay:$=700,followCursor:N=!1,id:Q,leaveDelay:B=0,leaveTouchDelay:z=1500,onClose:F,onOpen:U,open:Z,placement:V="bottom",PopperComponent:W,PopperProps:Y={},slotProps:X={},slots:H={},title:G,TransitionComponent:K=An,TransitionProps:J}=C,ee=(0,f.A)(C,ci),te=h.isValidElement(E)?E:(0,v.jsx)("span",{children:E}),re=rn(),ne=k(),[oe,ie]=h.useState(),[ae,se]=h.useState(null),le=h.useRef(!1),ce=D||N,ue=(0,Qe.A)(),de=(0,Qe.A)(),fe=(0,Qe.A)(),he=(0,Qe.A)(),[pe,me]=(0,wr.A)({controlled:Z,default:!1,name:"Tooltip",state:"open"});let ge=pe;const ye=(0,ai.A)(Q),ve=h.useRef(),be=(0,Ee.A)((()=>{void 0!==ve.current&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),he.clear()}));h.useEffect((()=>be),[be]);const Ae=e=>{pi.clear(),hi=!0,me(!0),U&&!ge&&U(e)},xe=(0,Ee.A)((e=>{pi.start(800+B,(()=>{hi=!1})),me(!1),F&&ge&&F(e),ue.start(re.transitions.duration.shortest,(()=>{le.current=!1}))})),ke=e=>{le.current&&"touchstart"!==e.type||(oe&&oe.removeAttribute("title"),de.clear(),fe.clear(),L||hi&&I?de.start(hi?I:L,(()=>{Ae(e)})):Ae(e))},Se=e=>{de.clear(),fe.start(B,(()=>{xe(e)}))},{isFocusVisibleRef:je,onBlur:Me,onFocus:Te,ref:qe}=(0,_e.A)(),[,De]=h.useState(!1),Re=e=>{Me(e),!1===je.current&&(De(!1),Se(e))},Le=e=>{oe||ie(e.currentTarget),Te(e),!0===je.current&&(De(!0),ke(e))},Ie=e=>{le.current=!0;const t=te.props;t.onTouchStart&&t.onTouchStart(e)};h.useEffect((()=>{if(ge)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||xe(e)}}),[xe,ge]);const $e=(0,Pe.A)(te.ref,qe,ie,t);G||0===G||(ge=!1);const Ne=h.useRef(),Be={},ze="string"==typeof G;M?(Be.title=ge||!ze||q?null:G,Be["aria-describedby"]=ge?ye:null):(Be["aria-label"]=ze?G:null,Be["aria-labelledby"]=ge&&!ze?ye:null);const Fe=(0,d.A)({},Be,ee,te.props,{className:(0,Oe.A)(ee.className,te.props.className),onTouchStart:Ie,ref:$e},N?{onMouseMove:e=>{const t=te.props;t.onMouseMove&&t.onMouseMove(e),mi={x:e.clientX,y:e.clientY},Ne.current&&Ne.current.update()}}:{}),Ue={};R||(Fe.onTouchStart=e=>{Ie(e),fe.clear(),ue.clear(),be(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",he.start($,(()=>{document.body.style.WebkitUserSelect=ve.current,ke(e)}))},Fe.onTouchEnd=e=>{te.props.onTouchEnd&&te.props.onTouchEnd(e),be(),fe.start(z,(()=>{xe(e)}))}),q||(Fe.onMouseOver=gi(ke,Fe.onMouseOver),Fe.onMouseLeave=gi(Se,Fe.onMouseLeave),ce||(Ue.onMouseOver=ke,Ue.onMouseLeave=Se)),T||(Fe.onFocus=gi(Le,Fe.onFocus),Fe.onBlur=gi(Re,Fe.onBlur),ce||(Ue.onFocus=Le,Ue.onBlur=Re));const Ze=h.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ae),options:{element:ae,padding:4}}];return null!=(e=Y.popperOptions)&&e.modifiers&&(t=t.concat(Y.popperOptions.modifiers)),(0,d.A)({},Y.popperOptions,{modifiers:t})}),[ae,Y]),Ve=(0,d.A)({},C,{isRtl:ne,arrow:P,disableInteractive:ce,placement:V,PopperComponentProp:W,touch:le.current}),We=(e=>{const{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${(0,lt.A)(i.split("-")[0])}`],arrow:["arrow"]};return(0,we.A)(a,si,t)})(Ve),Ye=null!=(r=null!=(n=H.popper)?n:_.Popper)?r:ui,Xe=null!=(o=null!=(i=null!=(a=H.transition)?a:_.Transition)?i:K)?o:An,He=null!=(s=null!=(l=H.tooltip)?l:_.Tooltip)?s:di,Ge=null!=(c=null!=(u=H.arrow)?u:_.Arrow)?c:fi,Ke=en(Ye,(0,d.A)({},Y,null!=(p=X.popper)?p:j.popper,{className:(0,Oe.A)(We.popper,null==Y?void 0:Y.className,null==(m=null!=(g=X.popper)?g:j.popper)?void 0:m.className)}),Ve),Je=en(Xe,(0,d.A)({},J,null!=(y=X.transition)?y:j.transition),Ve),et=en(He,(0,d.A)({},null!=(b=X.tooltip)?b:j.tooltip,{className:(0,Oe.A)(We.tooltip,null==(O=null!=(A=X.tooltip)?A:j.tooltip)?void 0:O.className)}),Ve),tt=en(Ge,(0,d.A)({},null!=(w=X.arrow)?w:j.arrow,{className:(0,Oe.A)(We.arrow,null==(x=null!=(S=X.arrow)?S:j.arrow)?void 0:x.className)}),Ve);return(0,v.jsxs)(h.Fragment,{children:[h.cloneElement(te,Fe),(0,v.jsx)(Ye,(0,d.A)({as:null!=W?W:ii,placement:V,anchorEl:N?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:oe,popperRef:Ne,open:!!oe&&ge,id:ye,transition:!0},Ue,Ke,{popperOptions:Ze,children:({TransitionProps:e})=>(0,v.jsx)(Xe,(0,d.A)({timeout:re.transitions.duration.shorter},e,Je,{children:(0,v.jsxs)(He,(0,d.A)({},et,{children:[G,P?(0,v.jsx)(Ge,(0,d.A)({},tt,{ref:se})):null]}))}))}))]})})),vi=yi;var bi=__webpack_require__(73684);const Oi=function(e){var r,n,o,i,a,s,l,c,u=e.controlProps,d=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["controlProps"]),f=d.id,h=d.objectPathId,m=d.error,g=d.displayName,y=d.required,v=d.hideLabel,b=void 0!==v&&v,O=d.isExpert,A=d.children,w=d.tooltip,x=d.helper,k=m?"error":"",S=O?"expert":"",C=h||f,P=h?"".concat(Hr.Qb," ").concat(Wr.Qb):"".concat(Hr.Qb," ").concat(Wr.Qb," ").concat(Hr.Yt),E=null!==(s=null==u||null===(r=u.controlWrapperProps)||void 0===r?void 0:r.style)&&void 0!==s?s:{},_=null!==(l=null==u||null===(o=u.controlWrapperProps)||void 0===o||null===(n=o.label)||void 0===n?void 0:n.style)&&void 0!==l?l:{},j=null!==(c=null==u||null===(a=u.controlWrapperProps)||void 0===a||null===(i=a.container)||void 0===i?void 0:i.style)&&void 0!==c?c:{};return p().createElement("div",{className:"".concat(Hr.Be," ").concat(Wr.Be," ").concat(t[k]," ").concat(t[S]),style:E},!b&&p().createElement("label",{htmlFor:C,"data-testid":"control-label",className:"".concat(Hr.Px," ").concat(Wr.Px),style:_},p().createElement("div",{className:Hr.g6},p().createElement("span",null,y?"".concat(g," *"):g),w&&p().createElement("div",{className:Hr.YL},p().createElement(vi,{title:w,arrow:!0,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-7]}}]},slotProps:{tooltip:{sx:{display:"flex",padding:"8px",alignItems:"flex-start",gap:"10px",borderRadius:"4px",background:"var(--grey-900, #333)",color:"var(--grey-white, #FFF)",fontFamily:"Roboto",fontSize:"10px",fontStyle:"normal",fontWeight:500,maxWidth:"250px",lineHeight:"normal"}},arrow:{sx:{color:"var(--grey-900, #333)",top:"0"}}}},p().createElement("span",{className:Hr.kA,"data-testid":"tooltip-icon"},p().createElement(bi._,{height:12,width:12})))))),p().createElement("div",{className:P,style:j},A,x&&p().createElement("div",{className:Hr.ro},x),p().createElement("label",{htmlFor:C,className:Hr.ns},m)))};function Ai(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ai(e,t,r[t])}))}return e}const xi=function(e){var t,r,n,o,i,a,s,l,c,u=e.Control,d=e.config,f=e.isExpert,m=e.hideLabel,g=void 0!==m&&m,y=e.controlProps,v=d.control,b=d.id,O=d.objectPathId,A=d.groupIsRequired,w=v.error,x=v.displayName,k=v.required,S=(0,h.useContext)(L.og).updateControl,C={id:b,objectPathId:O,error:null==w?void 0:w.message,displayName:x,hideLabel:g,isExpert:f,required:!!A&&k,tooltip:null==v||null===(r=v["custom-attributes"])||void 0===r||null===(t=r.fieldDescription)||void 0===t?void 0:t.tooltip,helper:null==v||null===(o=v["custom-attributes"])||void 0===o||null===(n=o.fieldDescription)||void 0===n?void 0:n.helper},P={objectPathId:O,id:b,control:(l=wi({},v),c={required:!!A&&k,placeholder:null!==(s=null==v||null===(a=v["custom-attributes"])||void 0===a||null===(i=a.fieldDescription)||void 0===i?void 0:i.placeholder)&&void 0!==s?s:null==v?void 0:v.placeholder},c=null!=c?c:{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(c)).forEach((function(e){Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(c,e))})),l)};return p().createElement(Oi,wi({controlProps:y},C),p().createElement(u,wi({controlProps:y,onChangeValue:function(e,t){var r=wi({hasChanged:!0},e);S(O||b,Vr()({},v,r,t))}},P)))};function ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Si(e){return function(e){if(Array.isArray(e))return ki(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 ki(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ki(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ci=/mrn:srv:([a-z-A-Z0-9]+):([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}):([^\s]*)/g,Pi=function(e){if(e){var t=Si(e.matchAll(Ci)),r=t&&t[0];return r&&4===r.length?{matchAll:t,mrn:r[0],serviceName:r[1],applicationId:r[2],resource:r[3]}:Ei(e)}},Ei=function(e){var t=Si(e.matchAll(/mrn:srv:([a-z-A-Z0-9]+):([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/g)),r=t&&t[0];return r&&3===r.length?{matchAll:t,mrn:r[0],serviceName:r[1],applicationId:r[2]}:null},_i=__webpack_require__(75003);const ji=(0,_i.A)((0,v.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Mi=(0,_i.A)((0,v.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ti=(0,_i.A)((0,v.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function qi(e){return(0,rt.Ay)("MuiCheckbox",e)}const Di=(0,Be.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ri=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Li=(0,ke.Ay)(Er,{shouldForwardProp:e=>(0,Se.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,lt.A)(r.size)}`],"default"!==r.color&&t[`color${(0,lt.A)(r.color)}`]]}})((({theme:e,ownerState:t})=>(0,d.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Di.checked}, &.${Di.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Di.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Ii=(0,v.jsx)(Mi,{}),$i=(0,v.jsx)(ji,{}),Ni=(0,v.jsx)(Ti,{}),Qi=h.forwardRef((function(e,t){var r,n;const o=(0,Ce.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Ii,color:a="primary",icon:s=$i,indeterminate:l=!1,indeterminateIcon:c=Ni,inputProps:u,size:p="medium",className:m}=o,g=(0,f.A)(o,Ri),y=l?c:s,b=l?c:i,O=(0,d.A)({},o,{color:a,indeterminate:l,size:p}),A=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,i={root:["root",r&&"indeterminate",`color${(0,lt.A)(n)}`,`size${(0,lt.A)(o)}`]},a=(0,we.A)(i,qi,t);return(0,d.A)({},t,a)})(O);return(0,v.jsx)(Li,(0,d.A)({type:"checkbox",inputProps:(0,d.A)({"data-indeterminate":l},u),icon:h.cloneElement(y,{fontSize:null!=(r=y.props.fontSize)?r:p}),checkedIcon:h.cloneElement(b,{fontSize:null!=(n=b.props.fontSize)?n:p}),ownerState:O,ref:t,className:(0,Oe.A)(A.root,m)},g,{classes:A}))})),Bi=Qi;var zi=__webpack_require__(90179),Fi=__webpack_require__.n(zi),Ui=__webpack_require__(41892),Zi={};Zi.styleTagTransform=Y(),Zi.setAttributes=U(),Zi.insert=z().bind(null,"head"),Zi.domAPI=Q(),Zi.insertStyleElement=V(),$()(Ui.Ay,Zi),Ui.Ay&&Ui.Ay.locals&&Ui.Ay.locals;var Vi=__webpack_require__(82478),Wi={};Wi.styleTagTransform=Y(),Wi.setAttributes=U(),Wi.insert=z().bind(null,"head"),Wi.domAPI=Q(),Wi.insertStyleElement=V(),$()(Vi.A,Wi),Vi.A&&Vi.A.locals&&Vi.A.locals;const Yi=function(e){var t,r=e.onChangeValue,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["onChangeValue"]),o=n.control,i=n.id,a=n.objectPathId,s=o.selected,l=void 0!==s&&s,c=o.value||"on",u=a||i;(0,h.useEffect)((function(){r({value:o.selected?c:""})}),[]);var d=Object.assign(Fi()(n,["objectPathId","checked","control","displayName","error"]),{name:u,value:c,type:o.control,role:o.control});return p().createElement(Bi,{className:"".concat(Ui.$g," ").concat(Vi.a),id:u,color:"default",checked:l,readOnly:null===(t=o["custom-attributes"])||void 0===t?void 0:t.readOnly,onClick:function(){r({selected:!o.selected,value:o.selected?"":c})},inputProps:d,sx:{marginLeft:"-11px",color:"rgba(0,0,0,0.54)","&:checked":{color:"rgba(0,0,0,0.54)"}}})};var Xi=__webpack_require__(44363),Hi=__webpack_require__(96248);const Gi=h.createContext({});function Ki(e){return(0,rt.Ay)("MuiList",e)}(0,Be.A)("MuiList",["root","padding","dense","subheader"]);const Ji=["children","className","component","dense","disablePadding","subheader"],ea=(0,ke.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>(0,d.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ta=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,c=(0,f.A)(r,Ji),u=h.useMemo((()=>({dense:a})),[a]),p=(0,d.A)({},r,{component:i,dense:a,disablePadding:s}),m=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,i={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,we.A)(i,Ki,t)})(p);return(0,v.jsx)(Gi.Provider,{value:u,children:(0,v.jsxs)(ea,(0,d.A)({as:i,className:(0,Oe.A)(m.root,o),ref:t,ownerState:p},c,{children:[l,n]}))})}));function ra(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const na=ra;var oa=__webpack_require__(2778);const ia=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function aa(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function sa(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function la(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function ca(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}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&la(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const ua=h.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,p=(0,f.A)(e,ia),m=h.useRef(null),g=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,oa.A)((()=>{n&&m.current.focus()}),[n]),h.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!m.current.style.width;if(e.clientHeight<m.current.clientHeight&&r){const r=`${na((0,Hi.A)(e))}px`;m.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,m.current.style.width=`calc(100% + ${r})`}return m.current}})),[]);const y=(0,Pe.A)(m,t);let b=-1;h.Children.forEach(i,((e,t)=>{h.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===b)&&(b=t),b===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))):b===t&&(b+=1,b>=i.length&&(b=-1))}));const O=h.Children.map(i,((e,t)=>{if(t===b){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),h.cloneElement(e,t)}return e}));return(0,v.jsx)(ta,(0,d.A)({role:"menu",ref:y,className:a,onKeyDown:e=>{const t=m.current,r=e.key,n=(0,Hi.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ca(t,n,l,s,aa);else if("ArrowUp"===r)e.preventDefault(),ca(t,n,l,s,sa);else if("Home"===r)e.preventDefault(),ca(t,null,l,s,aa);else if("End"===r)e.preventDefault(),ca(t,null,l,s,sa);else if(1===r.length){const o=g.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);const l=n&&!o.repeating&&la(n,o);o.previousKeyMatched&&(l||ca(t,n,!1,s,aa,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:O}))})),da=ua;var fa=__webpack_require__(1935),ha=__webpack_require__(93749);const pa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ma(e){const t=[],r=[];return Array.from(e.querySelectorAll(pa)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return 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&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(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 ga(){return!0}const ya=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=ma,isEnabled:a=ga,open:s}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),p=h.useRef(!1),m=h.useRef(null),g=(0,xn.A)(t.ref,m),y=h.useRef(null);h.useEffect((()=>{s&&m.current&&(p.current=!r)}),[r,s]),h.useEffect((()=>{if(!s||!m.current)return;const e=(0,Sn.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),h.useEffect((()=>{if(!s||!m.current)return;const e=(0,Sn.A)(m.current),t=t=>{y.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=y.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=y.current)?void 0:s.key)),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);const 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,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return(0,v.jsxs)(h.Fragment,{children:[(0,v.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:g,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,v.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})},va=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ba={entering:{opacity:1},entered:{opacity:1}},Oa=h.forwardRef((function(e,t){const r=rn(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:p,onExit:m,onExited:g,onExiting:y,style:b,timeout:O=n,TransitionComponent:A=hn}=e,w=(0,f.A)(e,va),x=h.useRef(null),k=(0,Pe.A)(x,a.ref,t),S=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=S(p),P=S(((e,t)=>{pn(e);const n=mn({style:b,timeout:O,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),E=S(u),_=S(y),j=S((e=>{const t=mn({style:b,timeout:O,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),m&&m(e)})),M=S(g);return(0,v.jsx)(A,(0,d.A)({appear:i,in:l,nodeRef:x,onEnter:P,onEntered:E,onEntering:C,onExit:j,onExited:M,onExiting:_,addEndListener:e=>{o&&o(x.current,e)},timeout:O},w,{children:(e,t)=>h.cloneElement(a,(0,d.A)({style:(0,d.A)({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},ba[e],b,a.props.style),ref:k},t))}))})),Aa=Oa;function wa(e){return(0,rt.Ay)("MuiBackdrop",e)}(0,Be.A)("MuiBackdrop",["root","invisible"]);const xa=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ka=(0,ke.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,d.A)({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"},e.invisible&&{backgroundColor:"transparent"}))),Sa=h.forwardRef((function(e,t){var r,n,o;const i=(0,Ce.b)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:h=!1,open:p,slotProps:m={},slots:g={},TransitionComponent:y=Aa,transitionDuration:b}=i,O=(0,f.A)(i,xa),A=(0,d.A)({},i,{component:l,invisible:h}),w=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,we.A)(n,wa,t)})(A),x=null!=(r=m.root)?r:u.root;return(0,v.jsx)(y,(0,d.A)({in:p,timeout:b},O,{children:(0,v.jsx)(ka,(0,d.A)({"aria-hidden":!0},x,{as:null!=(n=null!=(o=g.root)?o:c.Root)?n:l,className:(0,Oe.A)(w.root,s,null==x?void 0:x.className),ownerState:(0,d.A)({},A,null==x?void 0:x.ownerState),classes:w,ref:t,children:a}))}))}));var Ca=__webpack_require__(71547),Pa=__webpack_require__(76673),Ea=__webpack_require__(44877);function _a(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ja(e){return parseInt((0,Ea.A)(e).getComputedStyle(e).paddingRight,10)||0}function Ma(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&_a(e,o)}))}function Ta(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}const qa=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&_a(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ma(t,e.mount,e.modalRef,n,!0);const o=Ta(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Ta(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Sn.A)(e);return t.body===e?(0,Ea.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ra((0,Sn.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ja(n)+e}px`;const t=(0,Sn.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ja(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Sn.A)(n).body;else{const t=n.parentElement,r=(0,Ea.A)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"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((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ta(this.containers,(t=>-1!==t.modals.indexOf(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&&_a(e.modalRef,t),Ma(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&_a(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Da(e){return(0,rt.Ay)("MuiModal",e)}(0,Be.A)("MuiModal",["root","hidden","backdrop"]);const Ra=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],La=(0,ke.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,d.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ia=(0,ke.Ay)(Sa,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$a=h.forwardRef((function(e,t){var r,n,o,i,a,s;const l=(0,Ce.b)({name:"MuiModal",props:e}),{BackdropComponent:c=Ia,BackdropProps:u,className:p,closeAfterTransition:m=!1,children:g,container:y,component:b,components:O={},componentsProps:A={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:k=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:P=!1,hideBackdrop:E=!1,keepMounted:_=!1,onBackdropClick:j,open:M,slotProps:T,slots:q}=l,D=(0,f.A)(l,Ra),R=(0,d.A)({},l,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:k,disablePortal:S,disableRestoreFocus:C,disableScrollLock:P,hideBackdrop:E,keepMounted:_}),{getRootProps:L,getBackdropProps:I,getTransitionProps:$,portalRef:N,isTopModal:Q,exited:B,hasTransition:z}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=qa,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=h.useRef({}),m=h.useRef(null),g=h.useRef(null),y=(0,xn.A)(g,f),[v,b]=h.useState(!u),O=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let A=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(A=!1);const w=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),x=()=>{o.mount(w(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},k=(0,Ca.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,Sn.A)(m.current).body;o.add(w(),e),g.current&&x()})),S=h.useCallback((()=>o.isTopModal(w())),[o]),C=(0,Ca.A)((e=>{m.current=e,e&&(u&&S()?x():g.current&&_a(g.current,A))})),P=h.useCallback((()=>{o.remove(w(),A)}),[A,o]);h.useEffect((()=>()=>{P()}),[P]),h.useEffect((()=>{u?k():O&&i||P()}),[u,P,O,i,k]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=zo(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=(0,d.A)({},r,t);return(0,d.A)({role:"presentation"},n,{onKeyDown:E(n),ref:y})},getBackdropProps:(e={})=>{const t=e;return(0,d.A)({"aria-hidden":!0},t,{onClick:_(t),open:u})},getTransitionProps:()=>({onEnter:(0,Pa.A)((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:(0,Pa.A)((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:y,portalRef:C,isTopModal:S,exited:v,hasTransition:O}}((0,d.A)({},R,{rootRef:t})),F=(0,d.A)({},R,{exited:B}),U=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,we.A)(o,Da,n)})(F),Z={};if(void 0===g.props.tabIndex&&(Z.tabIndex="-1"),z){const{onEnter:e,onExited:t}=$();Z.onEnter=e,Z.onExited=t}const V=null!=(r=null!=(n=null==q?void 0:q.root)?n:O.Root)?r:La,W=null!=(o=null!=(i=null==q?void 0:q.backdrop)?i:O.Backdrop)?o:c,Y=null!=(a=null==T?void 0:T.root)?a:A.root,X=null!=(s=null==T?void 0:T.backdrop)?s:A.backdrop,H=Zo({elementType:V,externalSlotProps:Y,externalForwardedProps:D,getSlotProps:L,additionalProps:{ref:t,as:b},ownerState:F,className:(0,Oe.A)(p,null==Y?void 0:Y.className,null==U?void 0:U.root,!F.open&&F.exited&&(null==U?void 0:U.hidden))}),G=Zo({elementType:W,externalSlotProps:X,additionalProps:u,getSlotProps:e=>I((0,d.A)({},e,{onClick:t=>{j&&j(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,Oe.A)(null==X?void 0:X.className,null==u?void 0:u.className,null==U?void 0:U.backdrop),ownerState:F});return _||M||z&&!B?(0,v.jsx)(Wo,{ref:N,container:y,disablePortal:S,children:(0,v.jsxs)(V,(0,d.A)({},H,{children:[!E&&c?(0,v.jsx)(W,(0,d.A)({},G)):null,(0,v.jsx)(ya,{disableEnforceFocus:x,disableAutoFocus:w,disableRestoreFocus:C,isEnabled:Q,open:M,children:h.cloneElement(g,Z)})]}))}):null})),Na=$a,Qa=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ba(e){return(0,rt.Ay)("MuiPaper",e)}(0,Be.A)("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"]);const za=["className","component","elevation","square","variant"],Fa=(0,ke.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return(0,d.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,d.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,xe.X4)("#fff",Qa(t.elevation))}, ${(0,xe.X4)("#fff",Qa(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Ua=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=(0,f.A)(r,za),c=(0,d.A)({},r,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,we.A)(i,Ba,o)})(c);return(0,v.jsx)(Fa,(0,d.A)({as:o,ownerState:c,className:(0,Oe.A)(u.root,n),ref:t},l))}));function Za(e){return(0,rt.Ay)("MuiPopover",e)}(0,Be.A)("MuiPopover",["root","paper"]);const Va=["onEntering"],Wa=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ya=["slotProps"];function Xa(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ha(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ga(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Ka(e){return"function"==typeof e?e():e}const Ja=(0,ke.Ay)(Na,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),es=(0,ke.Ay)(Ua,{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=h.forwardRef((function(e,t){var r,n,o;const i=(0,Ce.b)({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:p,className:m,container:g,elevation:y=8,marginThreshold:b=16,open:O,PaperProps:A={},slots:w,slotProps:x,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:S=An,transitionDuration:C="auto",TransitionProps:{onEntering:P}={},disableScrollLock:E=!1}=i,_=(0,f.A)(i.TransitionProps,Va),j=(0,f.A)(i,Wa),M=null!=(r=null==x?void 0:x.paper)?r:A,T=h.useRef(),q=(0,Pe.A)(T,M.ref),D=(0,d.A)({},i,{anchorOrigin:l,anchorReference:u,elevation:y,marginThreshold:b,externalPaperSlotProps:M,transformOrigin:k,TransitionComponent:S,transitionDuration:C,TransitionProps:_}),R=(e=>{const{classes:t}=e;return(0,we.A)({root:["root"],paper:["paper"]},Za,t)})(D),L=h.useCallback((()=>{if("anchorPosition"===u)return c;const e=Ka(s),t=(e&&1===e.nodeType?e:(0,Hi.A)(T.current).body).getBoundingClientRect();return{top:t.top+Xa(t,l.vertical),left:t.left+Ha(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),I=h.useCallback((e=>({vertical:Xa(e,k.vertical),horizontal:Ha(e,k.horizontal)})),[k.horizontal,k.vertical]),$=h.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=I(t);if("none"===u)return{top:null,left:null,transformOrigin:Ga(r)};const n=L();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,c=(0,ha.A)(Ka(s)),d=c.innerHeight-b,f=c.innerWidth-b;if(null!==b&&o<b){const e=o-b;o-=e,r.vertical+=e}else if(null!==b&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==b&&i<b){const e=i-b;i-=e,r.horizontal+=e}else if(l>f){const e=l-f;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ga(r)}}),[s,u,L,I,b]),[N,Q]=h.useState(O),B=h.useCallback((()=>{const e=T.current;if(!e)return;const t=$(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,Q(!0)}),[$]);h.useEffect((()=>(E&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B))),[s,E,B]),h.useEffect((()=>{O&&B()})),h.useImperativeHandle(a,(()=>O?{updatePosition:()=>{B()}}:null),[O,B]),h.useEffect((()=>{if(!O)return;const e=(0,fa.A)((()=>{B()})),t=(0,ha.A)(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,O,B]);let z=C;"auto"!==C||S.muiSupportAuto||(z=void 0);const F=g||(s?(0,Hi.A)(Ka(s)).body:void 0),U=null!=(n=null==w?void 0:w.root)?n:Ja,Z=null!=(o=null==w?void 0:w.paper)?o:es,V=Zo({elementType:Z,externalSlotProps:(0,d.A)({},M,{style:N?M.style:(0,d.A)({},M.style,{opacity:0})}),additionalProps:{elevation:y,ref:q},ownerState:D,className:(0,Oe.A)(R.paper,null==M?void 0:M.className)}),W=Zo({elementType:U,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:j,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:O},ownerState:D,className:(0,Oe.A)(R.root,m)}),{slotProps:Y}=W,X=(0,f.A)(W,Ya);return(0,v.jsx)(U,(0,d.A)({},X,!Jr(U)&&{slotProps:Y,disableScrollLock:E},{children:(0,v.jsx)(S,(0,d.A)({appear:!0,in:O,onEntering:(e,t)=>{P&&P(e,t),B()},onExited:()=>{Q(!1)},timeout:z},_,{children:(0,v.jsx)(Z,(0,d.A)({},V,{children:p}))}))}))})),rs=ts;function ns(e){return(0,rt.Ay)("MuiMenu",e)}(0,Be.A)("MuiMenu",["root","paper","list"]);const os=["onEntering"],is=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],as={vertical:"top",horizontal:"right"},ss={vertical:"top",horizontal:"left"},ls=(0,ke.Ay)(rs,{shouldForwardProp:e=>(0,Se.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cs=(0,ke.Ay)(es,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),us=(0,ke.Ay)(da,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ds=h.forwardRef((function(e,t){var r,n;const o=(0,Ce.b)({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:p,PaperProps:m={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:b}={},variant:O="selectedMenu",slots:A={},slotProps:w={}}=o,x=(0,f.A)(o.TransitionProps,os),S=(0,f.A)(o,is),C=k(),P=(0,d.A)({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:b,PaperProps:m,transitionDuration:y,TransitionProps:x,variant:O}),E=(e=>{const{classes:t}=e;return(0,we.A)({root:["root"],paper:["paper"],list:["list"]},ns,t)})(P),_=i&&!l&&p,j=h.useRef(null);let M=-1;h.Children.map(a,((e,t)=>{h.isValidElement(e)&&(e.props.disabled||("selectedMenu"===O&&e.props.selected||-1===M)&&(M=t))}));const T=null!=(r=A.paper)?r:cs,q=null!=(n=w.paper)?n:m,D=Zo({elementType:A.root,externalSlotProps:w.root,ownerState:P,className:[E.root,s]}),R=Zo({elementType:T,externalSlotProps:q,ownerState:P,className:E.paper});return(0,v.jsx)(ls,(0,d.A)({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?as:ss,slots:{paper:T,root:A.root},slotProps:{root:D,paper:R},open:p,ref:t,transitionDuration:y,TransitionProps:(0,d.A)({onEntering:(e,t)=>{j.current&&j.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),b&&b(e,t)}},x),ownerState:P},S,{classes:g,children:(0,v.jsx)(us,(0,d.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:j,autoFocus:i&&(-1===M||l),autoFocusItem:_,variant:O},c,{className:(0,Oe.A)(E.list,c.className),children:a}))}))}));var fs=__webpack_require__(21922),hs="rgb(85, 85, 85)";const ps=function(e){var t=e.onChangeValue,r=e.query,n=e.objectPathId,o=e.value,i=e.hasEdited;if(!r)return{textColor:hs};var a=(0,fs.A)({query:r,objectPathId:n}),s=a.resolvedQuery,l=a.mrnEntriesLoaded;(0,h.useEffect)((function(){!i&&s&&(0===o.length&&s||o===s?t({value:s,hasEdited:"not-edited"}):o!==s&&t({value:o,hasEdited:"edited"})),i&&t({value:"not-edited"===i?s:o})}),[s]);var c=(!i||"not-edited"===i)&&(null==o?void 0:o.length)>0?"rgba(85, 85, 85, 0.6)":hs;return{textColor:l?c:hs}};var ms=__webpack_require__(59094),gs={};gs.styleTagTransform=Y(),gs.setAttributes=U(),gs.insert=z().bind(null,"head"),gs.domAPI=Q(),gs.insertStyleElement=V(),$()(ms.A,gs);const ys=ms.A&&ms.A.locals?ms.A.locals:void 0;var vs=__webpack_require__(2833),bs=__webpack_require__.n(vs);const Os=function(e){function t(e,n,l,c,f){for(var h,p,m,g,O,w=0,x=0,k=0,S=0,C=0,T=0,D=m=h=0,L=0,I=0,$=0,N=0,Q=l.length,B=Q-1,z="",F="",U="",Z="";L<Q;){if(p=l.charCodeAt(L),L===B&&0!==x+S+k+w&&(0!==x&&(p=47===x?10:47),S=k=w=0,Q++,B++),0===x+S+k+w){if(L===B&&(0<I&&(z=z.replace(d,"")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(L)}p=59}switch(p){case 123:for(h=(z=z.trim()).charCodeAt(0),m=1,N=++L;L<Q;){switch(p=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(p=l.charCodeAt(L+1)){case 42:case 47:e:{for(D=L+1;D<B;++D)switch(l.charCodeAt(D)){case 47:if(42===p&&42===l.charCodeAt(D-1)&&L+2!==D){L=D+1;break e}break;case 10:if(47===p){L=D+1;break e}}L=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;L++<B&&l.charCodeAt(L)!==p;);}if(0===m)break;L++}if(m=l.substring(N,L),0===h&&(h=(z=z.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<I&&(z=z.replace(d,"")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:I=n;break;default:I=M}if(N=(m=t(n,I,m,p,f+1)).length,0<q&&(O=s(3,m,I=r(M,z,$),n,E,P,N,p,f,c),z=I.join(""),void 0!==O&&0===(N=(m=O.trim()).length)&&(p=0,m="")),0<N)switch(p){case 115:z=z.replace(A,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(y,"$1 $2"))+"{"+m+"}",m=1===j||2===j&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===c&&(F+=m,m="")}else m=""}else m=t(n,r(n,z,$),m,c,f+1);U+=m,m=$=I=D=h=0,z="",p=l.charCodeAt(++L);break;case 125:case 59:if(1<(N=(z=(0<I?z.replace(d,""):z).trim()).length))switch(0===D&&(h=z.charCodeAt(0),45===h||96<h&&123>h)&&(N=(z=z.replace(" ",":")).length),0<q&&void 0!==(O=s(1,z,n,e,E,P,F.length,c,f,c))&&0===(N=(z=O.trim()).length)&&(z="\0\0"),h=z.charCodeAt(0),p=z.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){Z+=z+l.charAt(L);break}default:58!==z.charCodeAt(N-1)&&(F+=o(z,h,p,z.charCodeAt(2)))}$=I=D=h=0,z="",p=l.charCodeAt(++L)}}switch(p){case 13:case 10:47===x?x=0:0===1+h&&107!==c&&0<z.length&&(I=1,z+="\0"),0<q*R&&s(0,z,n,e,E,P,F.length,c,f,c),P=1,E++;break;case 59:case 125:if(0===x+S+k+w){P++;break}default:switch(P++,g=l.charAt(L),p){case 9:case 32:if(0===S+w+x)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+x+w&&(I=$=1,g="\f"+g);break;case 108:if(0===S+x+w+_&&0<D)switch(L-D){case 2:112===C&&58===l.charCodeAt(L-3)&&(_=C);case 8:111===T&&(_=T)}break;case 58:0===S+x+w&&(D=L);break;case 44:0===x+k+S+w&&(I=1,g+="\r");break;case 34:case 39:0===x&&(S=S===p?0:0===S?p:S);break;case 91:0===S+x+k&&w++;break;case 93:0===S+x+k&&w--;break;case 41:0===S+x+w&&k--;break;case 40:0===S+x+w&&(0===h&&(2*C+3*T==533||(h=1)),k++);break;case 64:0===x+k+S+w+D+m&&(m=1);break;case 42:case 47:if(!(0<S+w+k))switch(x){case 0:switch(2*p+3*l.charCodeAt(L+1)){case 235:x=47;break;case 220:N=L,x=42}break;case 42:47===p&&42===C&&N+2!==L&&(33===l.charCodeAt(N+2)&&(F+=l.substring(N,L+1)),g="",x=0)}}0===x&&(z+=g)}T=C,C=p,L++}if(0<(N=F.length)){if(I=n,0<q&&void 0!==(O=s(2,F,I,e,E,P,N,c,f,c))&&0===(F=O).length)return Z+F+U;if(F=I.join(",")+"{"+F+"}",0!=j*_){switch(2!==j||i(F,2)||(_=0),_){case 111:F=F.replace(b,":-moz-$1")+F;break;case 112:F=F.replace(v,"::-webkit-input-$1")+F.replace(v,"::-moz-$1")+F.replace(v,":-ms-input-$1")+F}_=0}}return Z+F+U}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===j||2===j&&i(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(O,"tb");break;case 232:l=a.replace(O,"tb-rl");break;case 220:l=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),D(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,u){for(var d,f=0,h=t;f<q;++f)switch(d=T[f].call(c,e,h,r,n,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?j=1:(j=2,D=e):j=0),l}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<q){var o=s(-1,r,n,n,E,P,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(M,n,r,0,0);return 0<q&&void 0!==(o=s(-2,i,n,n,E,P,i.length,0,0,0))&&(i=o),_=0,P=E=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,P=1,E=1,_=0,j=1,M=[],T=[],q=0,D=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:q=T.length=0;break;default:if("function"==typeof t)T[q++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},As={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ws=__webpack_require__(91907),xs=__webpack_require__(4146),ks=__webpack_require__.n(xs);function Ss(){return(Ss=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Cs=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Ps=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Xi.typeOf)(e)},Es=Object.freeze([]),_s=Object.freeze({});function js(e){return"function"==typeof e}function Ms(e){return e.displayName||e.name||"Component"}function Ts(e){return e&&"string"==typeof e.styledComponentId}var qs="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ds="undefined"!=typeof window&&"HTMLElement"in window,Rs=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY));function Ls(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Is=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&Ls(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),$s=new Map,Ns=new Map,Qs=1,Bs=function(e){if($s.has(e))return $s.get(e);for(;Ns.has(Qs);)Qs++;var t=Qs++;return $s.set(e,t),Ns.set(t,e),t},zs=function(e){return Ns.get(e)},Fs=function(e,t){t>=Qs&&(Qs=t+1),$s.set(e,t),Ns.set(t,e)},Us="style["+qs+'][data-styled-version="5.3.11"]',Zs=new RegExp("^"+qs+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Vs=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ws=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Zs);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(Fs(c,l),Vs(e,c,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},Ys=function(){return __webpack_require__.nc},Xs=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(qs))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(qs,"active"),n.setAttribute("data-styled-version","5.3.11");var a=Ys();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Hs=function(){function e(e){var t=this.element=Xs(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}Ls(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Gs=function(){function e(e){var t=this.element=Xs(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ks=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Js=Ds,el={isServer:!Ds,useCSSOMInjection:!Rs},tl=function(){function e(e,t,r){void 0===e&&(e=_s),void 0===t&&(t={}),this.options=Ss({},el,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ds&&Js&&(Js=!1,function(e){for(var t=document.querySelectorAll(Us),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(qs)&&(Ws(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Bs(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Ss({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new Ks(o):n?new Hs(o):new Gs(o),new Is(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Bs(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Bs(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Bs(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=zs(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=qs+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),rl=/(a)(d)/gi,nl=function(e){return String.fromCharCode(e+(e>25?39:97))};function ol(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=nl(t%52)+r;return(nl(t%52)+r).replace(rl,"$1-$2")}var il=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},al=function(e){return il(5381,e)};function sl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(js(r)&&!Ts(r))return!1}return!0}var ll=al("5.3.11"),cl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&sl(e),this.componentId=t,this.baseHash=il(ll,t),this.baseStyle=r,tl.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Cl(this.rules,e,t,r).join(""),a=ol(il(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=il(this.baseHash,r.hash),u="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var h=Cl(f,e,t,r),p=Array.isArray(h)?h.join(""):h;c=il(c,p+d),u+=p}}if(u){var m=ol(c>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),ul=/^\s*\/\/.*$/gm,dl=[":","[",".","#"];function fl(e){var t,r,n,o,i=void 0===e?_s:e,a=i.options,s=void 0===a?_s:a,l=i.plugins,c=void 0===l?Es:l,u=new Os(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,n,i){return 0===n&&-1!==dl.indexOf(i[r.length])||i.match(o)?e:"."+t};function p(e,i,a,s){void 0===s&&(s="&");var l=e.replace(ul,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),u(a||!i?"":i,c)}return u.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),p.hash=c.length?c.reduce((function(e,t){return t.name||Ls(15),il(e,t.name)}),5381).toString():"",p}var hl=p().createContext(),pl=(hl.Consumer,p().createContext()),ml=(pl.Consumer,new tl),gl=fl();function yl(){return(0,h.useContext)(hl)||ml}function vl(e){var t=(0,h.useState)(e.stylisPlugins),r=t[0],n=t[1],o=yl(),i=(0,h.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,h.useMemo)((function(){return fl({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,h.useEffect)((function(){bs()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),p().createElement(hl.Provider,{value:i},p().createElement(pl.Provider,{value:a},e.children))}var bl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=gl);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Ls(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=gl),this.name+e.hash},e}(),Ol=/([A-Z])/,Al=/([A-Z])/g,wl=/^ms-/,xl=function(e){return"-"+e.toLowerCase()};function kl(e){return Ol.test(e)?e.replace(Al,xl).replace(wl,"-ms-"):e}var Sl=function(e){return null==e||!1===e||""===e};function Cl(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Cl(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Sl(e)?"":Ts(e)?"."+e.styledComponentId:js(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:Cl(e(t),t,r,n):e instanceof bl?r?(e.inject(r,n),e.getName(n)):e:Ps(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Sl(t[a])&&(Array.isArray(t[a])&&t[a].isCss||js(t[a])?i.push(kl(a)+":",t[a],";"):Ps(t[a])?i.push.apply(i,e(t[a],a)):i.push(kl(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in As||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var l}var Pl=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function El(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return js(e)||Ps(e)?Pl(Cl(Cs(Es,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Pl(Cl(Cs(e,r)))}new Set;var _l=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,jl=/(^-|-$)/g;function Ml(e){return e.replace(_l,"-").replace(jl,"")}function Tl(e){return"string"==typeof e&&!0}var ql=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Dl=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Rl(e,t,r){var n=e[r];ql(t)&&ql(n)?Ll(n,t):e[r]=t}function Ll(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(ql(a))for(var s in a)Dl(s)&&Rl(e,a[s],s)}return e}var Il=p().createContext();Il.Consumer;var $l={};function Nl(e,t,r){var n=Ts(e),o=!Tl(e),i=t.attrs,a=void 0===i?Es:i,s=t.componentId,l=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Ml(e);$l[r]=($l[r]||0)+1;var n=r+"-"+function(e){return ol(al(e)>>>0)}("5.3.11"+r+$l[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,c=t.displayName,u=void 0===c?function(e){return Tl(e)?"styled."+e:"Styled("+Ms(e)+")"}(e):c,d=t.displayName&&t.componentId?Ml(t.displayName)+"-"+t.componentId:t.componentId||l,f=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,y=new cl(r,d,n?e.componentStyle:void 0),v=y.isStatic&&0===a.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,u=e.target,d=function(e,t,r){void 0===e&&(e=_s);var n=Ss({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in js(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=_s),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,h.useContext)(Il),a)||_s,t,o),f=d[0],p=d[1],m=function(e,t,r){var n=yl(),o=(0,h.useContext)(pl)||gl;return t?e.generateAndInjectStyles(_s,n,o):e.generateAndInjectStyles(r,n,o)}(i,n,f),g=r,y=p.$as||t.$as||p.as||t.as||u,v=Tl(y),b=p!==t?Ss({},t,{},p):t,O={};for(var A in b)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?O.as=b[A]:(l?l(A,ws.A,y):!v||(0,ws.A)(A))&&(O[A]=b[A]));return t.style&&p.style!==t.style&&(O.style=Ss({},t.style,{},p.style)),O.className=Array.prototype.concat(s,c,m!==c?m:null,t.className,p.className).filter(Boolean).join(" "),O.ref=g,(0,h.createElement)(y,O)}(g,e,t,v)};return b.displayName=u,(g=p().forwardRef(b)).attrs=f,g.componentStyle=y,g.displayName=u,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Es,g.styledComponentId=d,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Tl(e)?e:Ml(Ms(e)));return Nl(e,Ss({},o,{attrs:f,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Ll({},e.defaultProps,t):t}}),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),o&&ks()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Ql=function(e){return function e(t,r,n){if(void 0===n&&(n=_s),!(0,Xi.isValidElementType)(r))return Ls(1,String(r));var o=function(){return t(r,n,El.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,Ss({},n,{},o))},o.attrs=function(o){return e(t,r,Ss({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Nl,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ql[e]=Ql(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=sl(e),tl.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,r,n){var o=n(Cl(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},e.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.renderStyles=function(e,t,r,n){e>2&&tl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}(),function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Ys();return"<style "+[r&&'nonce="'+r+'"',qs+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Ls(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Ls(2);var r=((t={})[qs]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Ys();return n&&(r.nonce=n),[p().createElement("style",Ss({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new tl({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Ls(2):p().createElement(vl,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Ls(3)}}();const Bl=Ql,zl=(0,_i.A)((0,v.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");function Fl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ul(){var e=Fl(["\n width: 100%;\n position: relative;\n"]);return Ul=function(){return e},e}function Zl(){var e=Fl(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 40px;\n border-radius: 100%;\n display: ",";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n &:hover {\n background-color: #f5f5f5;\n }\n"]);return Zl=function(){return e},e}function Vl(){var e=Fl(["\n color: #767676;\n"]);return Vl=function(){return e},e}var Wl=Bl.div(Ul()),Yl=Bl.div(Zl(),(function(e){return""===e.inputValue?"none":"flex"})),Xl=Bl(zl)(Vl());function Hl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Hl(e,t,r[t])}))}return e}function Kl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Jl=function(e){var t,n=e.onChangeValue,o=e.hasClearButton,i=void 0!==o&&o,a=e.onClearCallback,s=e.controlProps,l=Kl(e,["onChangeValue","hasClearButton","onClearCallback","controlProps"]),c=l.control,u=l.id,d=l.objectPathId,f=Kl(l,["control","id","objectPathId"]),h=c.value,m=void 0===h?"":h,g=(c.displayName,c["custom-attributes"]),y=c.error,v=c.placeholder,b=c.required,O=c.hasEdited,A=Kl(c,["value","displayName","custom-attributes","error","placeholder","required","hasEdited"]),w=null==g?void 0:g.defaultValue,x=ps({onChangeValue:n,query:w,objectPathId:d,value:m,hasEdited:O}).textColor,k=y?"error":"",S=Ui.$g;S=k?S+" "+r[k]:S;var C,P,E=v?b?v+" *":v:"";return p().createElement(Wl,null,p().createElement("input",(C=Gl({role:"textbox","data-testid":"input-control-".concat(u),max:"date"===c.type?"9999-12-31":null,className:S,id:d||u,name:d||u,value:m,onChange:function(e){n({value:e.target.value,hasEdited:"edited"})},onWheel:function(e){var t=e.target;"number"===t.type&&t.blur()},placeholder:E,required:b},Fi()(g,["defaultValue","mrnPreview","mrnSources"]),Fi()(A,["displayName","placholder","control","error","defaultValue"]),Fi()(f,["defaultValue","mrnPreview","mrnSources"])),P=null!=(P={style:Gl({color:x,minWidth:i?"175px":""},null==s||null===(t=s.inputProps)||void 0===t?void 0:t.style)})?P:{},Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(P)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(P)).forEach((function(e){Object.defineProperty(C,e,Object.getOwnPropertyDescriptor(P,e))})),C)),i&&"date"===c.type&&p().createElement(Yl,{inputValue:m},p().createElement(Xl,{"data-testid":"input_clearButton",fontSize:"small",onClick:function(){n({value:""}),null==a||a()}})))};function ec(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function tc(){var e=ec(["\n position: relative;\n font-size: 14px;\n font-weight: 400;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n gap: 10px;\n padding: 10px 0;\n margin-bottom: -10px;\n @media screen and (max-width: 767px) {\n flex-direction: column;\n gap: 5px;\n }\n container-type: inline-size;\n"]);return tc=function(){return e},e}function rc(){var e=ec(["\n font-size: 14px;\n font-weight: 400;\n width: 200px;\n text-align: right;\n flex-shrink: 0;\n margin: 0 !important;\n padding-top: 9px;\n font-size: 14px;\n @media screen and (max-width: 767px) {\n text-align: left;\n }\n"]);return rc=function(){return e},e}function nc(){var e=ec(["\n font-size: 14px;\n font-weight: 400;\n box-sizing: border-box;\n padding: 6px 12px;\n width: 40%;\n outline: none;\n border: 1px solid #ccc;\n font-size: 14px;\n color: #555;\n box-shadow: none !important;\n border-radius: 4px;\n &:hover,\n &:focus {\n border: 1px solid rgba(0, 0, 0, 0.87);\n }\n &::-moz-placeholder {\n color: #999;\n opacity: 1;\n }\n &:-ms-input-placeholder {\n color: #999;\n }\n &::-webkit-input-placeholder {\n color: #999;\n }\n"]);return nc=function(){return e},e}var oc=Bl.div(tc()),ic=Bl.label(rc()),ac=(Bl(Jl)(nc()),__webpack_require__(20889)),sc=__webpack_require__(30020),lc=__webpack_require__(33905),cc={};cc.styleTagTransform=Y(),cc.setAttributes=U(),cc.insert=z().bind(null,"head"),cc.domAPI=Q(),cc.insertStyleElement=V(),$()(lc.A,cc),lc.A&&lc.A.locals&&lc.A.locals;var uc=__webpack_require__(26662),dc={};function fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hc(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=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}dc.styleTagTransform=Y(),dc.setAttributes=U(),dc.insert=z().bind(null,"head"),dc.domAPI=Q(),dc.insertStyleElement=V(),$()(uc.A,dc),uc.A&&uc.A.locals&&uc.A.locals;const pc=function(e){var t=e.handleDateChange,r=e.from,n=e.to,o=hc((0,h.useState)([{startDate:new Date,endDate:new Date,key:"selection"}]),2),i=o[0],a=o[1],s=hc((0,h.useState)(window.matchMedia("(max-width: 615px)").matches),2),l=s[0],c=s[1],u=hc((0,h.useState)(window.matchMedia("(max-width: 1200px)").matches),2),d=u[0],f=u[1];window.addEventListener("resize",(function(){var e=window.matchMedia("(max-width: 1200px)").matches;e!==d&&f(e);var t=window.matchMedia("(max-width: 615px)").matches;t!==l&&c(t)})),(0,h.useEffect)((function(){var e=[],t=[];r&&(e=r.split("-")),n&&(t=n.split("-"));var o=r?new Date(Number(e[0]),Number(e[1])-1,Number(e[2])):new Date,i=n?new Date(Number(t[0]),Number(t[1])-1,Number(t[2])):o;a([{startDate:o,endDate:i,key:"selection"}])}),[r,n]);var m=function(e,r){a(e),e[0].startDate!==e[0].endDate&&t(e[0],r)},g=function(){t(i[0])};return p().createElement("div",null,l?p().createElement("div",{style:{display:"flex",flexDirection:"column"}},p().createElement(sc.ad,{onChange:function(e){return m([e.selection])},moveRangeOnFirstSelection:!1,ranges:i,direction:"horizontal"}),p().createElement(bt,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},onClick:g},p().createElement("p",{style:{all:"unset"}},"CONFIRM"),p().createElement(ac.A,{style:{color:"white",width:"20px",height:"20px"}}))):p().createElement("div",{style:{display:"flex",flexDirection:"column"}},p().createElement("div",{style:{display:"flex"}},p().createElement(sc.HY,{ranges:i,onChange:function(e){return m([e.selection],!0)}}),p().createElement(sc.ad,{ranges:i,onChange:function(e){return m([e.selection])},showDateDisplay:!1,direction:"horizontal",months:d?1:2,"data-testid":"date-range-picker"})),p().createElement(bt,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},onClick:g},p().createElement("p",{style:{all:"unset"}},"CONFIRM"),p().createElement(ac.A,{style:{color:"white",width:"20px",height:"20px"}}))))};function mc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){gc(e,t,r[t])}))}return e}var vc=void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function bc(){throw new Error("setTimeout has not been defined")}function Oc(){throw new Error("clearTimeout has not been defined")}var Ac=bc,wc=Oc;function xc(e){if(Ac===setTimeout)return setTimeout(e,0);if((Ac===bc||!Ac)&&setTimeout)return Ac=setTimeout,setTimeout(e,0);try{return Ac(e,0)}catch(t){try{return Ac.call(null,e,0)}catch(t){return Ac.call(this,e,0)}}}"function"==typeof vc.setTimeout&&(Ac=setTimeout),"function"==typeof vc.clearTimeout&&(wc=clearTimeout);var kc,Sc=[],Cc=!1,Pc=-1;function Ec(){Cc&&kc&&(Cc=!1,kc.length?Sc=kc.concat(Sc):Pc=-1,Sc.length&&_c())}function _c(){if(!Cc){var e=xc(Ec);Cc=!0;for(var t=Sc.length;t;){for(kc=Sc,Sc=[];++Pc<t;)kc&&kc[Pc].run();Pc=-1,t=Sc.length}kc=null,Cc=!1,function(e){if(wc===clearTimeout)return clearTimeout(e);if((wc===Oc||!wc)&&clearTimeout)return wc=clearTimeout,clearTimeout(e);try{return wc(e)}catch(t){try{return wc.call(null,e)}catch(t){return wc.call(this,e)}}}(e)}}function jc(e,t){this.fun=e,this.array=t}function Mc(){}jc.prototype.run=function(){this.fun.apply(null,this.array)};var Tc=Mc,qc=Mc,Dc=Mc,Rc=Mc,Lc=Mc,Ic=Mc,$c=Mc,Nc=vc.performance||{},Qc=Nc.now||Nc.mozNow||Nc.msNow||Nc.oNow||Nc.webkitNow||function(){return(new Date).getTime()},Bc=new Date,zc={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Sc.push(new jc(e,t)),1!==Sc.length||Cc||xc(_c)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Tc,addListener:qc,once:Dc,off:Rc,removeListener:Lc,removeAllListeners:Ic,emit:$c,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Qc.call(Nc),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Bc)/1e3}},Fc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zc(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Vc,Wc,Yc={exports:{}},Xc={},Hc={};"production"===zc.env.NODE_ENV?Yc.exports=function(){if(Vc)return Xc;Vc=1;var e=p(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Xc.Fragment=r,Xc.jsx=a,Xc.jsxs=a,Xc}():Yc.exports=(Wc||(Wc=1,"production"!==zc.env.NODE_ENV&&function(){var e,t=p(),r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];!function(e,t,r){var n=y.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,r)}function b(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return b(e)+".Consumer";case s:return b(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case h:var r=e,p=r._payload,m=r._init;try{return O(m(p))}catch(e){return null}}return null}e=Symbol.for("react.module.reference");var A,w,x,k,S,C,P,E=Object.assign,_=0;function j(){}j.__reactDisabledLog=!0;var M,T=y.ReactCurrentDispatcher;function q(e,t,r){if(void 0===M)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);M=n&&n[1]||""}return"\n"+M+e}var D,R=!1,L="function"==typeof WeakMap?WeakMap:Map;function I(e,t){if(!e||R)return"";var r,n=D.get(e);if(void 0!==n)return n;R=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=T.current,T.current=null,function(){if(0===_){A=console.log,w=console.info,x=console.warn,k=console.error,S=console.group,C=console.groupCollapsed,P=console.groupEnd;var e={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{R=!1,T.current=o,function(){if(0==--_){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:E({},e,{value:A}),info:E({},e,{value:w}),warn:E({},e,{value:x}),error:E({},e,{value:k}),group:E({},e,{value:S}),groupCollapsed:E({},e,{value:C}),groupEnd:E({},e,{value:P})})}_<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",h=f?q(f):"";return"function"==typeof e&&D.set(e,h),h}function $(e,t,r){if(null==e)return"";if("function"==typeof e)return I(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return q(e);switch(e){case u:return q("Suspense");case d:return q("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return I(e.render,!1);case f:return $(e.type,t,r);case h:var o=e,i=o._payload,a=o._init;try{return $(a(i),t,r)}catch(e){}}return""}D=new L;var N=Object.prototype.hasOwnProperty,Q={},B=y.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,r=$(e.type,e._source,t?t.type:null);B.setExtraStackFrame(r)}else B.setExtraStackFrame(null)}var F=Array.isArray;function U(e){return F(e)}function Z(e){return""+e}function V(e){if(function(e){try{return Z(e),!1}catch(e){return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Z(e)}var W,Y,X,H=y.ReactCurrentOwner,G={key:!0,ref:!0,__self:!0,__source:!0};X={};var K,J=y.ReactCurrentOwner,ee=y.ReactDebugCurrentFrame;function te(e){if(e){var t=e._owner,r=$(e.type,e._source,t?t.type:null);ee.setExtraStackFrame(r)}else ee.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function ne(){if(J.current){var e=O(J.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}K=!1;var oe={};function ie(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=ne();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!oe[r]){oe[r]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),te(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),te(null)}}}function ae(e,t){if("object"==typeof e)if(U(e))for(var r=0;r<e.length;r++){var n=e[r];re(n)&&ie(n,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)re(i.value)&&ie(i.value,t)}}function se(t,n,p,g,y,b){var A=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===i||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===s||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)}(t);if(!A){var w="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x,k=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(y);w+=k||ne(),null===t?x="null":U(t)?x="array":void 0!==t&&t.$$typeof===r?(x="<"+(O(t.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):x=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,w)}var S=function(e,t,n,o,i){var a,s={},l=null,c=null;for(a in void 0!==n&&(V(n),l=""+n),function(e){if(N.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(V(t.key),l=""+t.key),function(e){if(N.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&H.current&&t&&H.current.stateNode!==t){var r=O(H.current.type);X[r]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(H.current.type),e.ref),X[r]=!0)}}(t,i)),t)N.call(t,a)&&!G.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===s[a]&&(s[a]=u[a])}if(l||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var r=function(){W||(W=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(s,d),c&&function(e,t){var r=function(){Y||(Y=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(s,d)}return function(e,t,n,o,i,a,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,i,o,H.current,s)}(t,n,p,y,b);if(null==S)return S;if(A){var C=n.children;if(void 0!==C)if(g)if(U(C)){for(var P=0;P<C.length;P++)ae(C[P],t);Object.freeze&&Object.freeze(C)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ae(C,t)}return t===o?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){te(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),te(null);break}}null!==e.ref&&(te(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(S):function(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==f)return;t=r.propTypes}if(t){var n=O(r);!function(e,t,r,n,o){var i=Function.call.bind(N);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(z(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof s),z(null)),s instanceof Error&&!(s.message in Q)&&(Q[s.message]=!0,z(o),v("Failed %s type: %s",r,s.message),z(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||K||(K=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(S),S}Hc.Fragment=o,Hc.jsx=function(e,t,r){return se(e,t,r,!1)},Hc.jsxs=function(e,t,r){return se(e,t,r,!0)}}()),Hc);var Gc=Yc.exports;function Kc(e){return Kc="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},Kc(e)}function Jc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eu(e){var t=function(e){if("object"!=Kc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Kc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kc(t)?t:t+""}function tu(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,eu(n.key),n)}}function ru(e,t,r){return t&&tu(e.prototype,t),r&&tu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ou(e,t){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ou(e,t)}function iu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ou(e,t)}function au(e,t){if(t&&("object"===Kc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nu(e)}function su(e){return su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},su(e)}function lu(e,t,r){return(t=eu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cu(e){if(Array.isArray(e))return e}function uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function du(e,t){if(e){if("string"==typeof e)return uu(e,t);var r=Object.prototype.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)?uu(e,t):void 0}}function fu(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hu(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 pu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mu={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},gu=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Jc(this,e),this.init(t,r)}return ru(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||mu,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,pu(pu({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),yu=new gu,vu=function(){function e(){Jc(this,e),this.observers={}}return ru(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,r)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(r))}))}}]),e}();function bu(){var e,t,r=new Promise((function(r,n){e=r,t=n}));return r.resolve=e,r.reject=t,r}function Ou(e){return null==e?"":""+e}function Au(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function wu(e,t,r){var n=Au(e,t,Object);n.obj[n.k]=r}function xu(e,t){var r=Au(e,t),n=r.obj,o=r.k;if(n)return n[o]}function ku(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):ku(e[n],t[n],r):e[n]=t[n]);return e}function Su(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Cu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Pu(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Cu[e]})):e}var Eu="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,_u=[" ",",","?","!",";"];function ju(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o)return;if("string"==typeof o[n[i]]&&i+1<n.length)return;if(void 0===o[n[i]]){for(var a=2,s=n.slice(i,i+a).join(r),l=o[s];void 0===l&&n.length>i+a;)a++,l=o[s=n.slice(i,i+a).join(r)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var c=n.slice(i+a).join(r);return c?ju(l,c,r):void 0}o=o[n[i]]}return o}}function Mu(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 Tu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mu(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var qu=function(e){iu(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=su(t);if(r){var o=su(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return au(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Jc(this,o),t=n.call(this),Eu&&vu.call(nu(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return ru(o,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=xu(this.data,a);return s||!i||"string"!=typeof r?s:ju(this.data&&this.data[e]&&this.data[e][t],r,o)}},{key:"addResource",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),wu(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=xu(this.data,a)||{};n?ku(s,r,o):s=Tu(Tu({},s),r),wu(this.data,a,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Tu(Tu({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}(vu),Du={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,o))})),t}};function Ru(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 Lu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ru(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ru(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Iu={},$u=function(e){iu(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=su(t);if(r){var o=su(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return au(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Jc(this,o),t=n.call(this),Eu&&vu.call(nu(t)),function(e,t,r){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){t[e]&&(r[e]=t[e])}))}(0,e,nu(t)),t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=yu.create("translator"),t}return ru(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,r){t=t||"",r=r||"";var n=_u.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===n.length)return!0;var o=new RegExp("(".concat(n.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,r,n));if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var n=this;if("object"!==Kc(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===Kc(t)&&(t=Lu({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,u=c[c.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var h=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(u).concat(h).concat(l),usedKey:l,exactUsedKey:l,usedLng:d,usedNS:u}:"".concat(u).concat(h).concat(l)}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:u}:l}var p=this.resolve(e,t),m=p&&p.res,g=p&&p.usedKey||l,y=p&&p.exactUsedKey||l,v=Object.prototype.toString.apply(m),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,Lu(Lu({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return i?(p.res=A,p):A}if(a){var w="[object Array]"===v,x=w?[]:{},k=w?y:g;for(var S in m)if(Object.prototype.hasOwnProperty.call(m,S)){var C="".concat(k).concat(a).concat(S);x[S]=this.translate(C,Lu(Lu({},t),{joinArrays:!1,ns:c})),x[S]===C&&(x[S]=m[S])}m=x}}else if(O&&"string"==typeof b&&"[object Array]"===v)(m=m.join(b))&&(m=this.extendTranslation(m,e,t,r));else{var P=!1,E=!1,_=void 0!==t.count&&"string"!=typeof t.count,j=o.hasDefaultValue(t),M=_?this.pluralResolver.getSuffix(d,t.count,t):"",T=t["defaultValue".concat(M)]||t.defaultValue;!this.isValidLookup(m)&&j&&(P=!0,m=T),this.isValidLookup(m)||(E=!0,m=l);var q=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:m,D=j&&T!==m&&this.options.updateMissing;if(E||P||D){if(this.logger.log(D?"updateKey":"missingKey",d,u,l,D?T:m),a){var R=this.resolve(l,Lu(Lu({},t),{},{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var $=0;$<I.length;$++)L.push(I[$]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var N=function(e,r,o){var i=j&&o!==m?o:q;n.options.missingKeyHandler?n.options.missingKeyHandler(e,u,r,i,D,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,u,r,i,D,t),n.emit("missingKey",e,u,r,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?L.forEach((function(e){n.pluralResolver.getSuffixes(e,t).forEach((function(r){N([e],l+r,t["defaultValue".concat(r)]||T)}))})):N(L,l,T))}m=this.extendTranslation(m,e,t,p,r),E&&m===l&&this.options.appendNamespaceToMissingKey&&(m="".concat(u,":").concat(l)),(E||P)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,P?m:void 0):this.options.parseMissingKeyHandler(m))}return i?(p.res=m,p):m}},{key:"extendTranslation",value:function(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Lu(Lu({},this.options.interpolation.defaultVariables),r),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(Lu(Lu({},r),{interpolation:Lu(Lu({},this.options.interpolation),r.interpolation)}));var a,s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(c=Lu(Lu({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,r.lng||this.language,r),s){var u=e.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==r.applyPostProcessor&&(e=Du.handle(f,e,t,this.options&&this.options.postProcessPassResolved?Lu({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;r=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(i=e,!Iu["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Iu["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(r){if(!a.isValidLookup(t)){o=r;var i,l=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,c,r,e,s);else{var u;d&&(u=a.pluralResolver.getSuffix(r,s.count,s));var p="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(c+u),f&&l.push(c+p)),h){var m="".concat(c).concat(a.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+u),f&&l.push(m+p))}}for(;i=l.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(r,e,i,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),o}(vu);function Nu(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Qu=function(){function e(t){Jc(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yu.create("languageUtils")}return ru(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Nu(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Nu(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Nu(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){return e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((function(e){o.indexOf(e)<0&&i(r.formatLanguageCode(e))})),o}}]),e}(),Bu=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zu={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Fu=["v1","v2","v3"],Uu={zero:0,one:1,two:2,few:3,many:4,other:5},Zu=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Jc(this,e),this.languageUtils=t,this.options=r,this.logger=yu.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){var e={};return Bu.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:zu[t.fc]}}))})),e}()}return ru(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(e,t){return Uu[e]-Uu[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):n.numbers.map((function(n){return t.getSuffix(e,n,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Fu.includes(this.options.compatibilityJSON)}}]),e}();function Vu(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 Wu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vu(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yu(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,r){var n=xu(e,r);return void 0!==n?n:xu(t,r)}(e,t,r);return!i&&o&&"string"==typeof r&&void 0===(i=ju(e,r,n))&&(i=ju(t,r,n)),i}var Xu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Jc(this,e),this.logger=yu.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ru(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Pu,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Su(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Su(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Su(t.nestingPrefix):t.nestingPrefixEscaped||Su("$t("),this.nestingSuffix=t.nestingSuffix?Su(t.nestingSuffix):t.nestingSuffixEscaped||Su(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Yu(t,l,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(o,void 0,r,Wu(Wu(Wu({},n),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(Yu(t,l,a,s.options.keySeparator,s.options.ignoreJSONStructure),c,r,Wu(Wu(Wu({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var r=o[1].trim();if(void 0===(i=u(r)))if("function"==typeof d){var l=d(e,o,n);i="string"==typeof l?l:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=Ou(i));var c=t.safeValue(i);if(e=e.replace(o[0],c),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0];var a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=Wu(Wu({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var l=[];(o=(o=Wu({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var c=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var u=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=u.shift(),l=u,c=!0}if((n=t(s.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=Ou(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),c&&(n=l.reduce((function(e,t){return i.format(e,t,a.lng,Wu(Wu({},a),{},{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function Hu(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 Gu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ku(e){var t={};return function(r,n,o){var i=n+JSON.stringify(o),a=t[i];return a||(a=e(n,o),t[i]=a),a(r)}}var Ju=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Jc(this,e),this.logger=yu.create("formatter"),this.options=t,this.formats={number:Ku((function(e,t){var r=new Intl.NumberFormat(e,Gu({},t));return function(e){return r.format(e)}})),currency:Ku((function(e,t){var r=new Intl.NumberFormat(e,Gu(Gu({},t),{},{style:"currency"}));return function(e){return r.format(e)}})),datetime:Ku((function(e,t){var r=new Intl.DateTimeFormat(e,Gu({},t));return function(e){return r.format(e)}})),relativetime:Ku((function(e,t){var r=new Intl.RelativeTimeFormat(e,Gu({},t));return function(e){return r.format(e,t.range||"day")}})),list:Ku((function(e,t){var r=new Intl.ListFormat(e,Gu({},t));return function(e){return r.format(e)}}))},this.init(t)}return ru(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Ku(t)}},{key:"format",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator).reduce((function(e,t){var i=function(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=function(e){return cu(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||du(e)||fu()}(e.split(":")),n=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[n.trim()]||(r[n.trim()]=o),"false"===o&&(r[n.trim()]=!1),"true"===o&&(r[n.trim()]=!0),isNaN(o)||(r[n.trim()]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}}(t),a=i.formatName,s=i.formatOptions;if(n.formats[a]){var l=e;try{var c=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},u=c.locale||c.lng||o.locale||o.lng||r;l=n.formats[a](e,u,Gu(Gu(Gu({},s),o),c))}catch(e){n.logger.warn(e)}return l}return n.logger.warn("there was no format function for ".concat(a)),e}),e);return i}}]),e}();function ed(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 td(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rd=function(e){iu(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=su(t);if(r){var o=su(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return au(this,e)});function o(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Jc(this,o),i=n.call(this),Eu&&vu.call(nu(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=yu.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return ru(o,[{key:"queueLoad",value:function(e,t,r,n){var o=this,i={},a={},s={},l={};return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===l[t]&&(l[t]=!0)))})),n||(s[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){!function(e,t,r){var n=Au(e,t,Object),o=n.obj,i=n.k;o[i]=o[i]||[],o[i].push(r)}(r.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:r,tried:o,wait:i,callback:a});else{this.readingCalls++;var s=function(s,l){if(n.readingCalls--,n.waitingReads.length>0){var c=n.waitingReads.shift();n.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&o<n.maxRetries?setTimeout((function(){n.read.call(n,e,t,r,o+1,2*i,a)}),i):a(s,l)},l=this.backend[r].bind(this.backend);if(2!==l.length)return l(e,t,s);try{var c=l(e,t);c&&"function"==typeof c.then?c.then((function(e){return s(null,e)})).catch(s):s(null,c)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(o," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){var s=td(td({},i),{},{isUpdate:o}),l=this.backend.create.bind(this.backend);if(l.length<6)try{var c;(c=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof c.then?c.then((function(e){return a(null,e)})).catch(a):a(null,c)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}]),o}(vu);function nd(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Kc(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Kc(e[2])||"object"===Kc(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function od(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function id(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 ad(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?id(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):id(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sd(){}var ld=function(e){iu(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=su(t);if(r){var o=su(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return au(this,e)});function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Jc(this,o),e=n.call(this),Eu&&vu.call(nu(e)),e.options=od(r),e.services={},e.logger=yu,e.modules={external:[]},t=nu(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))})),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),au(e,nu(e));setTimeout((function(){e.init(r,i)}),0)}return e}return ru(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n=nd();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=ad(ad(ad({},n),this.options),od(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ad(ad({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?yu.init(o(this.modules.logger),this.options):yu.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Ju);var a=new Qu(this.options);this.store=new qu(this.options.resources,this.options);var s=this.services;s.logger=yu,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Zu(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Xu(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new rd(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))})),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new $u(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,r||(r=sd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var c=bu(),u=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sd,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,r){var n=bu();return e||(e=this.languages),t||(t=this.options.ns),r||(r=sd),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Du.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=bu();this.emit("languageChanging",e);var o=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},i=function(i){e||i||!r.services.languageDetector||(i=[]);var a="string"==typeof i?i:r.services.languageUtils.getBestMatchFromCodes(i);a&&(r.language||o(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,i){i?(o(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var n=this,o=function e(t,o){var i;if("object"!==Kc(o)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else i=ad({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||r||e.keyPrefix;var c,u=n.options.keySeparator||".";return c=i.keyPrefix&&Array.isArray(t)?t.map((function(e){return"".concat(i.keyPrefix).concat(u).concat(e)})):i.keyPrefix?"".concat(i.keyPrefix).concat(u).concat(t):t,n.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=bu();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=bu();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter((function(e){return n.indexOf(e)<0}));return o.length?(this.options.preload=n.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new Qu(nd());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sd,n=ad(ad(ad({},this.options),t),{isClone:!0}),i=new o(n);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=ad({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new $u(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))})),i.init(n,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(vu);lu(ld,"createInstance",(function(){return new ld(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var cd=ld.createInstance();function ud(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}cd.createInstance=ld.createInstance,cd.createInstance,cd.dir,cd.init,cd.loadResources,cd.reloadResources,cd.use,cd.changeLanguage,cd.getFixedT,cd.t,cd.exists,cd.setDefaultNamespace,cd.hasLoadedNamespace,cd.loadNamespaces,cd.loadLanguages;var dd={};function fd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&dd[t[0]]||("string"==typeof t[0]&&(dd[t[0]]=new Date),ud.apply(void 0,t))}function hd(e,t,r){e.loadNamespaces(t,(function(){e.isInitialized?r():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}))}var pd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,md={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},gd=function(e){return md[e]};function yd(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 vd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bd,Od={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(pd,gd)}},Ad={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Od=vd(vd({},Od),e)}(e.options.react),function(e){bd=e}(e)}},wd=(0,h.createContext)(),xd=function(){function e(){Jc(this,e),this.usedNamespaces={}}return ru(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function kd(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 Sd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,n=(0,h.useContext)(wd)||{},o=n.i18n,i=n.defaultNS,a=r||o||bd;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new xd),!a){fd("You will need to pass in an i18next instance by using initReactI18next");var s=function(e,t){return"string"==typeof t?t:t&&"object"===Kc(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&void 0!==a.options.react.wait&&fd("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=Sd(Sd(Sd({},Od),a.options.react),t),u=c.useSuspense,d=c.keyPrefix,f=e||i||a.options&&a.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);var p=(a.isInitialized||a.initializedStoreOnce)&&f.every((function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}(e,t,r):(fd("i18n.languages were undefined or empty",t.languages),!0)}(e,a,c)}));function m(){return a.getFixedT(null,"fallback"===c.nsMode?f:f[0],d)}var g=function(e,t){return cu(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}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||du(e,t)||fu()}((0,h.useState)(m),2),y=g[0],v=g[1],b=f.join(),O=function(e,t){var r=(0,h.useRef)();return(0,h.useEffect)((function(){r.current=e}),[e,t]),r.current}(b),A=(0,h.useRef)(!0);(0,h.useEffect)((function(){var e=c.bindI18n,t=c.bindI18nStore;function r(){A.current&&v(m)}return A.current=!0,p||u||hd(a,f,(function(){A.current&&v(m)})),p&&O&&O!==b&&A.current&&v(m),e&&a&&a.on(e,r),t&&a&&a.store.on(t,r),function(){A.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,r)})),t&&a&&t.split(" ").forEach((function(e){return a.store.off(e,r)}))}}),[a,b]);var w=(0,h.useRef)(!0);(0,h.useEffect)((function(){A.current&&!w.current&&v(m),w.current=!1}),[a,d]);var x=[y,a,p];if(x.t=y,x.i18n=a,x.ready=p,p)return x;if(!p&&!u)return x;throw new Promise((function(e){hd(a,f,(function(){e()}))}))}var Pd=[],Ed=Pd.forEach,_d=Pd.slice,jd=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Md={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var r=function(e){for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*r*1e3)),n&&(o.domain=n),document.cookie=function(e,t,r){var n=r||{};n.path=n.path||"/";var o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(n.maxAge>0){var a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(n.domain){if(!jd.test(n.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(n.domain)}if(n.path){if(!jd.test(n.path))throw new TypeError("option path is invalid");i+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i}(e,encodeURIComponent(t),o)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},Td={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=r.substring(1).split("&"),o=0;o<n.length;o++){var i=n[o].indexOf("=");i>0&&n[o].substring(0,i)===e.lookupQuerystring&&(t=n[o].substring(i+1))}}return t}},qd=null,Dd=function(){if(null!==qd)return qd;try{qd="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){qd=!1}return qd},Rd={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Dd()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Dd()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Ld=null,Id=function(){if(null!==Ld)return Ld;try{Ld="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){Ld=!1}return Ld},$d={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Id()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Id()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},Nd={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)t.push(navigator.languages[r]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Qd={name:"htmlTag",lookup:function(e){var t,r=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},Bd={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace("/","")}else t=r[0].replace("/","")}return t}},zd={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,r="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[t]}},Fd=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Jc(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return ru(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Ed.call(_d.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Md),this.addDetector(Td),this.addDetector(Rd),this.addDetector($d),this.addDetector(Nd),this.addDetector(Qd),this.addDetector(Bd),this.addDetector(zd)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var r=[];return e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var r=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){r.detectors[t]&&r.detectors[t].cacheUserLanguage(e,r.options)})))}}]),e}();Fd.type="languageDetector";function Ud(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}cd.use(Fd).use(Ad).init({resources:{en:{translation:{info:"No media service available",error:"An unexpected error occurred",defaultUploaderLabel:"Drag file here or click to browse ...",uploaderLabel:'Drag file of type "{{type}}" here or click to browse ...',uploading:"Uploading ..."}},de:{translation:{info:"Es steht kein Media Service zur Verfügung",error:"Ein unerwarteter Fehler ist aufgetreten",defaultUploaderLabel:"Datei hierher ziehen oder zum Durchsuchen klicken ...",uploaderLabel:'Datei vom Typ "{{type}}" hierher ziehen oder zum Durchsuchen klicken ...',uploading:"Lade hoch ..."}}},fallbackLng:"en"});var Zd=0;function Vd(e){return"__private_"+Zd+++"_"+e}function Wd(e,t,r){const n=[];return e.forEach((e=>"string"!=typeof e?n.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&n.push(e),t<o.length-1&&n.push(r)})))),n}function Yd(e,t){const r=/\$/g;let n=[e];if(null==t)return n;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=r[Symbol.replace](o,"$$$$")),n=Wd(n,new RegExp(`%\\{${e}\\}`,"g"),o)}return n}const Xd=e=>{throw new Error(`missing string: ${e}`)};var Hd=Vd("onMissingKey"),Gd=Vd("apply");class Kd{constructor(e,t){let{onMissingKey:r=Xd}=void 0===t?{}:t;Object.defineProperty(this,Gd,{value:Jd}),Object.defineProperty(this,Hd,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Ud(this,Gd)[Gd],this):Ud(this,Gd)[Gd](e),Ud(this,Hd)[Hd]=r}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let r=this.locale.strings[e];if(null==r&&(Ud(this,Hd)[Hd](e),r=e),"object"==typeof r){if(t&&void 0!==t.smart_count)return Yd(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if("string"!=typeof r)throw new Error("string was not a string");return Yd(r,t)}}function Jd(e){if(null==e||!e.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}var ef=function(){var e={},t=e._fns={};return e.emit=function(e,r,n,o,i,a,s){var l=function(e){for(var r=t[e]?t[e]:[],n=e.indexOf(":"),o=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],i=Object.keys(t),a=0,s=i.length;a<s;a++){var l=i[a];if("*"===l&&(r=r.concat(t[l])),2===o.length&&o[0]===l){r=r.concat(t[l]);break}}return r}(e);l.length&&function(e,t,r){for(var n=0,o=t.length;n<o&&t[n];n++)t[n].event=e,t[n].apply(t[n],r)}(e,l,[r,n,o,i,a,s])},e.on=function(e,r){t[e]||(t[e]=[]),t[e].push(r)},e.once=function(t,r){this.on(t,(function n(){r.apply(this,arguments),e.off(t,n)}))},e.off=function(e,t){var r=[];if(e&&t)for(var n=this._fns[e],o=0,i=n?n.length:0;o<i;o++)n[o]!==t&&r.push(n[o]);r.length?this._fns[e]=r:delete this._fns[e]},e},tf=Uc(ef),rf=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},nf="object"==typeof Fc&&Fc&&Fc.Object===Object&&Fc,of="object"==typeof self&&self&&self.Object===Object&&self,af=nf||of||Function("return this")(),sf=af,lf=/\s/,cf=function(e){for(var t=e.length;t--&&lf.test(e.charAt(t)););return t},uf=/^\s+/,df=af.Symbol,ff=df,hf=Object.prototype,pf=hf.hasOwnProperty,mf=hf.toString,gf=ff?ff.toStringTag:void 0,yf=Object.prototype.toString,vf=function(e){var t=pf.call(e,gf),r=e[gf];try{e[gf]=void 0;var n=!0}catch(e){}var o=mf.call(e);return n&&(t?e[gf]=r:delete e[gf]),o},bf=df?df.toStringTag:void 0,Of=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bf&&bf in Object(e)?vf(e):function(e){return yf.call(e)}(e)},Af=function(e){return e?e.slice(0,cf(e)+1).replace(uf,""):e},wf=rf,xf=/^[-+]0x[0-9a-f]+$/i,kf=/^0b[01]+$/i,Sf=/^0o[0-7]+$/i,Cf=parseInt,Pf=rf,Ef=function(){return sf.Date.now()},_f=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==Of(e)}(e))return NaN;if(wf(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=wf(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Af(e);var r=kf.test(e);return r||Sf.test(e)?Cf(e.slice(2),r?2:8):xf.test(e)?NaN:+e},jf=Math.max,Mf=Math.min,Tf=function(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,i=o;return n=o=void 0,c=t,a=e.apply(i,r)}function p(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=i}function m(){var e=Ef();if(p(e))return g(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?Mf(r,i-(e-c)):r}(e))}function g(e){return s=void 0,f&&n?h(e):(n=o=void 0,a)}function y(){var e=Ef(),r=p(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?h(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=_f(t)||0,Pf(r)&&(u=!!r.leading,i=(d="maxWait"in r)?jf(_f(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},y.flush=function(){return void 0===s?a:g(Ef())},y},qf=rf,Df=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return qf(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Tf(e,t,{leading:n,maxWait:t,trailing:o})},Rf=Uc(Df);function Lf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var If=0;function $f(e){return"__private_"+If+++"_"+e}var Nf=$f("callbacks"),Qf=$f("publish");class Bf{constructor(){Object.defineProperty(this,Qf,{value:zf}),this.state={},Object.defineProperty(this,Nf,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},r={...this.state,...e};this.state=r,Lf(this,Qf)[Qf](t,r,e)}subscribe(e){return Lf(this,Nf)[Nf].add(e),()=>{Lf(this,Nf)[Nf].delete(e)}}}function zf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Lf(this,Nf)[Nf].forEach((e=>{e(...t)}))}function Ff(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}Bf.VERSION="3.2.2";var Uf={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Zf(e){var t;if(e.type)return e.type;const r=e.name?null==(t=Ff(e.name).extension)?void 0:t.toLowerCase():null;return r&&r in Uf?Uf[r]:"application/octet-stream"}function Vf(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}function Wf(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1].split(".",2),n=parseInt(r[0],10),o=parseInt(r[1],10);return n<15||15===n&&o<15063||n>18||18===n&&o>=18218}function Yf(e){return e<10?`0${e}`:e.toString()}function Xf(){const e=new Date;return`${Yf(e.getHours())}:${Yf(e.getMinutes())}:${Yf(e.getSeconds())}`}const Hf={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Xf()}]`,...t)}},Gf={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${Xf()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${Xf()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Xf()}]`,...t)}};var Kf=Uc((function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/1024**n);const o=r[n];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${o}`:`${(t?"-":"")+e.toFixed(1)} ${o}`}));function Jf(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Jf.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)"*"!==o[t]&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var eh=/[\/\+\.]/,th=Uc((function(e,t){function r(t){var r=function(e,t,r){var n=new Jf(e,r||/[\/\.]/);return void 0!==t?n.match(t):n}(t,e,eh);return r&&r.length>=2}return t?r(t.split(";")[0]):r}));const rh={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class nh extends Error{constructor(e,t){var r;super(e),this.isRestriction=!0,this.isUserFacing=null==(r=null==t?void 0:t.isUserFacing)||r,null!=t&&t.file&&(this.file=t.file)}}class oh{constructor(e,t){this.i18n=t,this.getOpts=()=>{var t;const r=e();if(null!=(null==(t=r.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(r.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return r}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:r,maxNumberOfFiles:n}=this.getOpts().restrictions;if(n){const r=e.filter((e=>!e.isGhost));if(r.length+t.length>n)throw new nh(`${this.i18n("youCanOnlyUploadX",{smart_count:n})}`)}if(r){let n=e.reduce(((e,t)=>{var r;return e+(null!=(r=t.size)?r:0)}),0);for(const e of t)if(null!=e.size&&(n+=e.size,n>r))throw new nh(this.i18n("exceedsSize",{size:Kf(r),file:e.name}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:r,allowedFileTypes:n}=this.getOpts().restrictions;if(n&&!n.some((t=>t.includes("/")?!!e.type&&th(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const t=n.join(", ");throw new nh(this.i18n("youCanOnlyUploadFileTypes",{types:t}),{file:e})}if(t&&null!=e.size&&e.size>t)throw new nh(this.i18n("exceedsSize",{size:Kf(t),file:e.name}),{file:e});if(r&&null!=e.size&&e.size<r)throw new nh(this.i18n("inferiorSize",{size:Kf(r)}),{file:e})}validate(e,t){t.forEach((e=>{this.validateSingleFile(e)})),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length<t)throw new nh(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new nh(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:r}=this.getOpts().restrictions,n=[];for(const t of r)Object.hasOwn(e.meta,t)&&""!==e.meta[t]||n.push(t);return{missingFields:n,error:t}}}var ih={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled"}};let ah,sh;function lh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ch=0;function uh(e){return"__private_"+ch+++"_"+e}const dh={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var fh=uh("plugins"),hh=uh("restricter"),ph=uh("storeUnsubscribe"),mh=uh("emitter"),gh=uh("preProcessors"),yh=uh("uploaders"),vh=uh("postProcessors"),bh=uh("informAndEmit"),Oh=uh("checkRequiredMetaFieldsOnFile"),Ah=uh("checkRequiredMetaFields"),wh=uh("assertNewUploadAllowed"),xh=uh("transformFile"),kh=uh("startIfAutoProceed"),Sh=uh("checkAndUpdateFileState"),Ch=uh("addListeners"),Ph=uh("updateOnlineStatus"),Eh=uh("requestClientById"),_h=uh("createUpload"),jh=uh("getUpload"),Mh=uh("removeUpload"),Th=uh("runUpload");ah=Symbol.for("uppy test: getPlugins"),sh=Symbol.for("uppy test: createUpload");class qh{constructor(e){Object.defineProperty(this,Th,{value:Zh}),Object.defineProperty(this,Mh,{value:Uh}),Object.defineProperty(this,jh,{value:Fh}),Object.defineProperty(this,_h,{value:zh}),Object.defineProperty(this,Ch,{value:Bh}),Object.defineProperty(this,Sh,{value:Qh}),Object.defineProperty(this,kh,{value:Nh}),Object.defineProperty(this,xh,{value:$h}),Object.defineProperty(this,wh,{value:Ih}),Object.defineProperty(this,Ah,{value:Lh}),Object.defineProperty(this,Oh,{value:Rh}),Object.defineProperty(this,bh,{value:Dh}),Object.defineProperty(this,fh,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,hh,{writable:!0,value:void 0}),Object.defineProperty(this,ph,{writable:!0,value:void 0}),Object.defineProperty(this,mh,{writable:!0,value:tf()}),Object.defineProperty(this,gh,{writable:!0,value:new Set}),Object.defineProperty(this,yh,{writable:!0,value:new Set}),Object.defineProperty(this,vh,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=Rf(((e,t)=>{const r=this.getFile(null==e?void 0:e.id);if(null==e||!r)return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);if(100===r.progress.percentage)return void this.log(`Not setting progress for a file that has been already uploaded: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...r.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}),500,{leading:!0,trailing:!0}),Object.defineProperty(this,Ph,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,Eh,{writable:!0,value:new Map}),this.defaultLocale=ih;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:rh,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new Bf,logger:Hf,infoTimeout:5e3},r={...t,...e};this.opts={...r,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Gf),this.log(`Using Core v${qh.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...dh,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:Wf(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),lh(this,hh)[hh]=new oh((()=>this.opts),this.i18n),lh(this,ph)[ph]=this.store.subscribe(((e,t,r)=>{this.emit("state-update",e,t,r),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),lh(this,Ch)[Ch]()}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];lh(this,mh)[mh].emit(e,...r)}on(e,t){return lh(this,mh)[mh].on(e,t),this}once(e,t){return lh(this,mh)[mh].once(e,t),this}off(e,t){return lh(this,mh)[mh].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}patchFilesState(e){const t=this.getState().files;this.setState({files:{...t,...Object.fromEntries(Object.entries(e).map((e=>{let[r,n]=e;return[r,{...t[r],...n}]})))}})}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.patchFilesState({[e]:t})}i18nInit(){const e=new Kd([this.defaultLocale,this.opts.locale],{onMissingKey:e=>this.log(`Missing i18n string: ${e}`,"error")});this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...null==e?void 0:e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((t=>{t.setOptions(e)})),this.setState(void 0)}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},r={};Object.keys(t).forEach((n=>{r[n]={...t[n],progress:{...t[n].progress,...e}}})),this.setState({files:r,...dh}),this.emit("reset-progress")}clearUploadedFiles(){this.setState({...dh,files:{}})}addPreProcessor(e){lh(this,gh)[gh].add(e)}removePreProcessor(e){return lh(this,gh)[gh].delete(e)}addPostProcessor(e){lh(this,vh)[vh].add(e)}removePostProcessor(e){return lh(this,vh)[vh].delete(e)}addUploader(e){lh(this,yh)[yh].add(e)}removeUploader(e){return lh(this,yh)[yh].delete(e)}setMeta(e){const t={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach((t=>{r[t]={...r[t],meta:{...r[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:r})}setFileMeta(e,t){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const n={...r[e].meta,...t};r[e]={...r[e],meta:n},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getFilesByIds(e){return e.map((e=>this.getFile(e)))}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:r}=this.getState(),n=Object.values(e),o=n.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=n.filter((e=>!e.progress.uploadStarted)),a=n.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=n.filter((e=>e.progress.uploadStarted)),l=n.filter((e=>e.isPaused)),c=n.filter((e=>e.progress.uploadComplete)),u=n.filter((e=>e.error)),d=o.filter((e=>!e.isPaused)),f=n.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:u,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:100===t&&c.length===n.length&&0===f.length,isAllErrored:!!r&&u.length===n.length,isAllPaused:0!==o.length&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:n.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{lh(this,hh)[hh].validate(t,[e])}catch(e){return e}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){lh(this,wh)[wh](e);const{nextFilesState:t,validFilesToAdd:r,errors:n}=lh(this,Sh)[Sh]([e]),o=n.filter((e=>e.isRestriction));if(lh(this,bh)[bh](o),n.length>0)throw n[0];this.setState({files:t});const[i]=r;return this.emit("file-added",i),this.emit("files-added",r),this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`),lh(this,kh)[kh](),i.id}addFiles(e){lh(this,wh)[wh]();const{nextFilesState:t,validFilesToAdd:r,errors:n}=lh(this,Sh)[Sh](e),o=n.filter((e=>e.isRestriction));lh(this,bh)[bh](o);const i=n.filter((e=>!e.isRestriction));if(i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}this.setState({files:t}),r.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.values(r).forEach((e=>{this.log(`Added file: ${e.name}\n id: ${e.id}\n type: ${e.type}`)})),r.length>0&&lh(this,kh)[kh]()}removeFiles(e,t){const{files:r,currentUploads:n}=this.getState(),o={...r},i={...n},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach((e=>{r[e]&&(a[e]=r[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=n[e].fileIDs.filter(s);if(0===t.length)return void delete i[e];const{capabilities:r}=this.getState();if(t.length!==n[e].fileIDs.length&&!r.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...n[e],fileIDs:t}}));const l={currentUploads:i,files:o};0===Object.keys(o).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(a);c.forEach((e=>{this.emit("file-removed",a[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).progress.uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const r={...e[t],isPaused:!0};e[t]=r})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const r=lh(this,_h)[_h](t,{forceAllowNewUpload:!0});return lh(this,Th)[Th](r)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState(dh)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=lh(this,_h)[_h]([e],{forceAllowNewUpload:!0});return lh(this,Th)[Th](t)}logout(){this.iteratePlugins((e=>{var t;null==(t=e.provider)||null==t.logout||t.logout()}))}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),r=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,n=r.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/t*100);return void this.setState({totalProgress:o})}let n=t.reduce(((e,t)=>{var r;return e+(null!=(r=t.progress.bytesTotal)?r:0)}),0);const o=n/t.length;n+=o*r.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),r.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===n?0:Math.round(i/n*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){var e;null==(e=window.navigator.onLine)||e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,t),n=r.id;if(!n)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(n);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${n}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${n} v${e.VERSION}`),r.type in lh(this,fh)[fh]?lh(this,fh)[fh][r.type].push(r):lh(this,fh)[fh][r.type]=[r],r.install(),this.emit("plugin-added",r),this}getPlugin(e){for(const t of Object.values(lh(this,fh)[fh])){const r=t.find((t=>t.id===e));if(null!=r)return r}}[ah](e){return lh(this,fh)[fh][e]}iteratePlugins(e){Object.values(lh(this,fh)[fh]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=lh(this,fh)[fh][e.type],r=t.findIndex((t=>t.id===e.id));-1!==r&&t.splice(r,1);const n={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(n)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),lh(this,ph)[ph](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",lh(this,Ph)[Ph]),window.removeEventListener("offline",lh(this,Ph)[Ph]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,r){void 0===t&&(t="info"),void 0===r&&(r=3e3);const n="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:n?e.message:e,details:n?e.details:null}]}),setTimeout((()=>this.hideInfo()),r),this.emit("info-visible")}log(e,t){const{logger:r}=this.opts;switch(t){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}registerRequestClient(e,t){lh(this,Eh)[Eh].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);const t=lh(this,Eh)[Eh].get(e.remote.requestClientId);if(null==t)throw new Error(`requestClientId "${e.remote.requestClientId}" not registered for file "${e.id}"`);return t}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?lh(this,Th)[Th](e):(lh(this,Mh)[Mh](e),Promise.reject(new Error("Nonexistent upload")))}[sh](){return lh(this,_h)[_h](...arguments)}addResultData(e,t){if(!lh(this,jh)[jh](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),n={...r[e],result:{...r[e].result,...t}};this.setState({currentUploads:{...r,[e]:n}})}upload(){var e;null!=(e=lh(this,fh)[fh].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(t=r,this.setState({files:t})),Promise.resolve().then((()=>lh(this,hh)[hh].validateMinNumberOfFiles(t))).catch((e=>{throw lh(this,bh)[bh]([e]),e})).then((()=>{if(!lh(this,Ah)[Ah](t))throw new nh(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),r=Object.values(e).flatMap((e=>e.fileIDs)),n=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==r.indexOf(e)||n.push(t.id)}));const o=lh(this,_h)[_h](n);return lh(this,Th)[Th](o)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Dh(e){for(const t of e)t.isRestriction?this.emit("restriction-failed",t.file,t):this.emit("error",t,t.file),this.log(t,"warning");const t=e.filter((e=>e.isUserFacing)),r=t.slice(0,4),n=t.slice(4);r.forEach((e=>{let{message:t,details:r=""}=e;this.info({message:t,details:r},"error",this.opts.infoTimeout)})),n.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:n.length})})}function Rh(e){const{missingFields:t,error:r}=lh(this,hh)[hh].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),1))}function Lh(e){let t=!0;for(const r of Object.values(e))lh(this,Oh)[Oh](r)||(t=!1);return t}function Ih(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new nh(this.i18n("noMoreFilesAllowed"),{file:e});throw lh(this,bh)[bh]([t]),t}}function $h(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=Zf(t),n=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(r,t),o=Ff(n).extension,i=function(e){if(function(e){return!(!e.isRemote||!e.remote)&&new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}(e))return e.id;const t=Zf(e);return function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Vf(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Vf(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...e,type:t})}(t),a=t.meta||{};a.name=n,a.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:o||"",meta:{...this.getState().meta,...a},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function Nh(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Qh(e){const{files:t}=this.getState(),r={...t},n=[],o=[];for(const a of e)try{var i;let e=lh(this,xh)[xh](a);const o=null==(i=t[e.id])?void 0:i.isGhost;o&&(e={...t[e.id],isGhost:!1,data:a.data},this.log(`Replaced the blob in the restored ghost file: ${e.name}, ${e.id}`));const s=this.opts.onBeforeFileAdded(e,r);if(!s&&this.checkIfFileAlreadyExists(e.id))throw new nh(this.i18n("noDuplicates",{fileName:e.name}),{file:a});if(!1===s&&!o)throw new nh("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:a});"object"==typeof s&&null!==s&&(e=s),lh(this,hh)[hh].validateSingleFile(e),r[e.id]=e,n.push(e)}catch(e){o.push(e)}try{lh(this,hh)[hh].validateAggregateRestrictions(Object.values(t),n)}catch(e){return o.push(e),{nextFilesState:t,validFilesToAdd:[],errors:o}}return{nextFilesState:r,validFilesToAdd:n,errors:o}}function Bh(){const e=(e,t,r)=>{let n=e.message||"Unknown error";e.details&&(n+=` ${e.details}`),this.setState({error:n}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:n,response:r})};this.on("error",e),this.on("upload-error",((t,r,n)=>{if(e(r,t,n),"object"==typeof r&&r.message){var o;this.log(r.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(o=null==t?void 0:t.name)?o:""}));e.isUserFacing=!0,e.details=r.message,r.details&&(e.details+=` ${r.details}`),lh(this,bh)[bh]([e])}else lh(this,bh)[bh]([r])}));let t=null;this.on("upload-stalled",((e,r)=>{const{message:n}=e,o=r.map((e=>e.meta.name)).join(", ");t||(this.info({message:n,details:o},"warning",this.opts.infoTimeout),t=setTimeout((()=>{t=null}),this.opts.infoTimeout)),this.log(`${n} ${o}`.trim(),"warning")})),this.on("upload",(()=>{this.setState({error:null})}));const r=e=>{const t=e.filter((e=>{const t=null!=e&&this.getFile(e.id);return t||this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`),t})),r=Object.fromEntries(t.map((e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}])));this.patchFilesState(r)};this.on("upload-start",(e=>{e.forEach((e=>{this.emit("upload-started",e)})),r(e)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:lh(this,vh)[vh].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&lh(this,Oh)[Oh](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",lh(this,Ph)[Ph]),window.addEventListener("offline",lh(this,Ph)[Ph]),setTimeout(lh(this,Ph)[Ph],3e3))}function zh(e,t){void 0===t&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=((e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Fh(e){const{currentUploads:t}=this.getState();return t[e]}function Uh(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Zh(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let r=t();const n=[...lh(this,gh)[gh],...lh(this,yh)[yh],...lh(this,vh)[vh]];try{for(let o=r.step||0;o<n.length&&r;o++){const i=n[o];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:o}}});const{fileIDs:a}=r;await i(a,e),r=t()}}catch(t){throw lh(this,Mh)[Mh](e),t}if(r){r.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const n=r.fileIDs.map((e=>this.getFile(e))),o=n.filter((e=>!e.error)),i=n.filter((e=>e.error));this.addResultData(e,{successful:o,failed:i,uploadID:e}),r=t()}let o;return r&&(o=r.result,this.emit("complete",o),lh(this,Mh)[Mh](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}qh.VERSION="3.10.0";var Vh,Wh,Yh,Xh,Hh,Gh,Kh,Jh,ep,tp,rp=qh,np={},op=[],ip=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ap=Array.isArray;function sp(e,t){for(var r in t)e[r]=t[r];return e}function lp(e){var t=e.parentNode;t&&t.removeChild(e)}function cp(e,t,r){var n,o,i,a={};for(i in t)"key"==i?n=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Vh.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return up(e,a,n,o,null)}function up(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++Yh:o,__i:-1,__u:0};return null==o&&null!=Wh.vnode&&Wh.vnode(i),i}function dp(e){return e.children}function fp(e,t){this.props=e,this.context=t}function hp(e,t){if(null==t)return e.__?hp(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?hp(e):null}function pp(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return pp(e)}}function mp(e){(!e.__d&&(e.__d=!0)&&Xh.push(e)&&!gp.__r++||Hh!==Wh.debounceRendering)&&((Hh=Wh.debounceRendering)||Gh)(gp)}function gp(){var e,t,r,n,o,i,a,s;for(Xh.sort(Kh);e=Xh.shift();)e.__d&&(t=Xh.length,n=void 0,i=(o=(r=e).__v).__e,a=[],s=[],r.__P&&((n=sp({},o)).__v=o.__v+1,Wh.vnode&&Wh.vnode(n),xp(r.__P,n,o,r.__n,void 0!==r.__P.ownerSVGElement,32&o.__u?[i]:null,a,null==i?hp(o):i,!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,kp(a,n,s),n.__e!=i&&pp(n)),Xh.length>t&&Xh.sort(Kh));gp.__r=0}function yp(e,t,r,n,o,i,a,s,l,c,u){var d,f,h,p,m,g=n&&n.__k||op,y=t.length;for(r.__d=l,function(e,t,r){var n,o,i,a,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)a=n+d,null!=(o=e.__k[n]=null==(o=t[n])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?up(null,o,null,null,null):ap(o)?up(dp,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?up(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=bp(o,r,a,u),o.__i=s,i=null,-1!==s&&(u--,(i=r[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:s<a?s==a-1&&(d=s-a):d=0,s!==n+d&&(o.__u|=65536))):(i=r[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=hp(i)),Pp(i,i,!1),r[a]=null,u--);if(u)for(n=0;n<c;n++)null!=(i=r[n])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=hp(i)),Pp(i,i))}(r,t,g),l=r.__d,d=0;d<y;d++)null!=(h=r.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(f=-1===h.__i?np:g[h.__i]||np,h.__i=d,xp(e,h,f,o,i,a,s,l,c,u),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&Cp(f.ref,null,h),u.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||f.__k===h.__k?(l&&!l.isConnected&&(l=hp(f)),l=vp(h,l,e)):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:p&&(l=p.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=m}function vp(e,t,r){var n,o;if("function"==typeof e.type){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=vp(n[o],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function bp(e,t,r,n){var o=e.key,i=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&o==l.key&&i===l.type&&!(131072&l.__u))return r;if(n>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function Op(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||ip.test(t)?r:r+"px"}function Ap(e,t,r,n,o){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Op(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Op(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Jh,e.addEventListener(t,i?tp:ep,i)):e.removeEventListener(t,i?tp:ep,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function wp(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=Jh++;else if(t.t<r.u)return;return r(Wh.event?Wh.event(t):t)}}}function xp(e,t,r,n,o,i,a,s,l,c){var u,d,f,h,p,m,g,y,v,b,O,A,w,x,k,S=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(u=Wh.__b)&&u(t);e:if("function"==typeof S)try{if(y=t.props,v=(u=S.contextType)&&n[u.__c],b=u?v?v.props.value:u.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in S&&S.prototype.render?t.__c=d=new S(y,b):(t.__c=d=new fp(y,b),d.constructor=S,d.render=Ep),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=sp({},d.__s)),sp(d.__s,S.getDerivedStateFromProps(y,d.__s))),h=d.props,p=d.state,d.__v=t,f)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&y!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,p,m)}))}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,A=Wh.__r,w=0,"prototype"in S&&S.prototype.render){for(d.state=d.__s,d.__d=!1,A&&A(t),u=d.render(d.props,d.state,d.context),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[]}else do{d.__d=!1,A&&A(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(n=sp(sp({},n),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,p)),yp(e,ap(k=null!=u&&u.type===dp&&null==u.key?u.props.children:u)?k:[k],t,r,n,o,i,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),Wh.__e(e,t,r)}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Sp(r.__e,t,r,n,o,i,a,l,c);(u=Wh.diffed)&&u(t)}function kp(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)Cp(r[n],r[++n],r[++n]);Wh.__c&&Wh.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Wh.__e(e,t.__v)}}))}function Sp(e,t,r,n,o,i,a,s,l){var c,u,d,f,h,p,m,g=r.props,y=t.props,v=t.type;if("svg"===v&&(o=!0),null!=i)for(c=0;c<i.length;c++)if((h=i[c])&&"setAttribute"in h==!!v&&(v?h.localName===v:3===h.nodeType)){e=h,i[c]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),i=null,s=!1}if(null===v)g===y||s&&e.data===y||(e.data=y);else{if(i=i&&Vh.call(e.childNodes),g=r.props||np,!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(h=e.attributes[c]).name]=h.value;for(c in g)h=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=h:"key"===c||c in y||Ap(e,c,null,h,o));for(c in y)h=y[c],"children"==c?f=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?p=h:"checked"==c?m=h:"key"===c||s&&"function"!=typeof h||g[c]===h||Ap(e,c,h,g[c],o);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),yp(e,ap(f)?f:[f],t,r,n,o&&"foreignObject"!==v,i,a,i?i[0]:r.__k&&hp(r,0),s,l),null!=i)for(c=i.length;c--;)null!=i[c]&&lp(i[c]);s||(c="value",void 0!==p&&(p!==e[c]||"progress"===v&&!p||"option"===v&&p!==g[c])&&Ap(e,c,p,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&Ap(e,c,m,g[c],!1))}return e}function Cp(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){Wh.__e(e,r)}}function Pp(e,t,r){var n,o;if(Wh.unmount&&Wh.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Cp(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){Wh.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Pp(n[o],t,r||"function"!=typeof e.type);r||null==e.__e||lp(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ep(e,t,r){return this.constructor(e,r)}function _p(e,t,r){var n,o,i,a;Wh.__&&Wh.__(e,t),o=(n="function"==typeof r)?null:r&&r.__k||t.__k,i=[],a=[],xp(t,e=(!n&&r||t).__k=cp(dp,null,[e]),o||np,np,void 0!==t.ownerSVGElement,!n&&r?[r]:o?null:t.firstChild?Vh.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),kp(i,e,a)}Vh=op.slice,Wh={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},Yh=0,fp.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=sp({},this.state),"function"==typeof e&&(e=e(sp({},r),this.props)),e&&sp(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),mp(this))},fp.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),mp(this))},fp.prototype.render=dp,Xh=[],Gh="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Kh=function(e,t){return e.__v.__b-t.__v.__b},gp.__r=0,Jh=0,ep=wp(!1),tp=wp(!0);class jp{constructor(e,t){this.uppy=e,this.opts=null!=t?t:{}}getPluginState(){const{plugins:e}=this.uppy.getState();return(null==e?void 0:e[this.id])||{}}setPluginState(e){if(!e)return;const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new Kd([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}function Mp(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tp=0;function qp(e){return"__private_"+Tp+++"_"+e}var Dp=qp("updateUI");class Rp extends jp{constructor(){super(...arguments),Object.defineProperty(this,Dp,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"==typeof(null==e?void 0:e.addTarget))t=e,t instanceof Rp||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:Rp}}));else if("function"==typeof e){const r=e;this.uppy.iteratePlugins((e=>{e instanceof r&&(t=e)}))}return t}mount(e,t){const r=t.id,n=(o=e,void 0===i&&(i=document),"string"==typeof o?i.querySelector(o):"object"==typeof(a=o)&&null!==a&&"nodeType"in a&&a.nodeType===Node.ELEMENT_NODE?o:null);var o,i,a;if(n){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Mp(this,Dp)[Dp]=function(e){let t,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t=o,r||(r=Promise.resolve().then((()=>(r=null,e(...t))))),r}}((e=>{this.uppy.getPlugin(this.id)&&(_p(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(n.innerHTML=""),_p(this.render(this.uppy.getState()),t),this.el=t,n.appendChild(t),t.dir=this.opts.direction||function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}(t)||"ltr",this.onMount(),this.el}const s=this.getTargetPlugin(e);if(s)return this.uppy.log(`Installing ${r} to ${s.id}`),this.parent=s,this.el=s.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let l=`Invalid target option given to ${r}.`;throw l+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(l)}render(e){throw new Error("Extend the render method to add your plugin to a DOM element")}update(e){var t,r;null!=this.el&&(null==(t=(r=Mp(this,Dp))[Dp])||t.call(r,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Lp=[],Ip=[],$p="undefined"!=typeof Uint8Array?Uint8Array:Array,Np=!1;function Qp(){Np=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Lp[t]=e[t],Ip[e.charCodeAt(t)]=t;Ip["-".charCodeAt(0)]=62,Ip["_".charCodeAt(0)]=63}function Bp(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Lp[(o=n)>>18&63]+Lp[o>>12&63]+Lp[o>>6&63]+Lp[63&o]);return i.join("")}function zp(e){var t;Np||Qp();for(var r=e.length,n=r%3,o="",i=[],a=16383,s=0,l=r-n;s<l;s+=a)i.push(Bp(e,s,s+a>l?l:s+a));return 1===n?(t=e[r-1],o+=Lp[t>>2],o+=Lp[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=Lp[t>>10],o+=Lp[t>>4&63],o+=Lp[t<<2&63],o+="="),i.push(o),i.join("")}function Fp(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?o-1:0,f=r?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)}function Up(e,t,r,n,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}var Zp={}.toString,Vp=Array.isArray||function(e){return"[object Array]"==Zp.call(e)};function Wp(){return Xp.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Yp(e,t){if(Wp()<t)throw new RangeError("Invalid typed array length");return Xp.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Xp.prototype:(null===e&&(e=new Xp(t)),e.length=t),e}function Xp(e,t,r){if(!(Xp.TYPED_ARRAY_SUPPORT||this instanceof Xp))return new Xp(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Kp(this,e)}return Hp(this,e,t,r)}function Hp(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),Xp.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Xp.prototype:e=Jp(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!Xp.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|rm(t,r),o=(e=Yp(e,n)).write(t,r);return o!==n&&(e=e.slice(0,o)),e}(e,t,r):function(e,t){if(tm(t)){var r=0|em(t.length);return 0===(e=Yp(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?Yp(e,0):Jp(e,t);if("Buffer"===t.type&&Vp(t.data))return Jp(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Gp(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Kp(e,t){if(Gp(t),e=Yp(e,t<0?0:0|em(t)),!Xp.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Jp(e,t){var r=t.length<0?0:0|em(t.length);e=Yp(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function em(e){if(e>=Wp())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Wp().toString(16)+" bytes");return 0|e}function tm(e){return!(null==e||!e._isBuffer)}function rm(e,t){if(tm(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return _m(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return jm(e).length;default:if(n)return _m(e).length;t=(""+t).toLowerCase(),n=!0}}function nm(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return vm(this,t,r);case"utf8":case"utf-8":return pm(this,t,r);case"ascii":return gm(this,t,r);case"latin1":case"binary":return ym(this,t,r);case"base64":return hm(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bm(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function om(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function im(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Xp.from(t,n)),tm(t))return 0===t.length?-1:am(e,t,r,n,o);if("number"==typeof t)return t&=255,Xp.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):am(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function am(e,t,r,n,o){var i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function sm(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function lm(e,t,r,n){return Mm(_m(t,e.length-r),e,r,n)}function cm(e,t,r,n){return Mm(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function um(e,t,r,n){return cm(e,t,r,n)}function dm(e,t,r,n){return Mm(jm(t),e,r,n)}function fm(e,t,r,n){return Mm(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function hm(e,t,r){return 0===t&&r===e.length?zp(e):zp(e.slice(t,r))}function pm(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=d}return function(e){var t=e.length;if(t<=mm)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=mm));return r}(n)}Xp.TYPED_ARRAY_SUPPORT=void 0===vc.TYPED_ARRAY_SUPPORT||vc.TYPED_ARRAY_SUPPORT,Wp(),Xp.poolSize=8192,Xp._augment=function(e){return e.__proto__=Xp.prototype,e},Xp.from=function(e,t,r){return Hp(null,e,t,r)},Xp.TYPED_ARRAY_SUPPORT&&(Xp.prototype.__proto__=Uint8Array.prototype,Xp.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Xp[Symbol.species]),Xp.alloc=function(e,t,r){return function(e,t,r,n){return Gp(t),t<=0?Yp(e,t):void 0!==r?"string"==typeof n?Yp(e,t).fill(r,n):Yp(e,t).fill(r):Yp(e,t)}(null,e,t,r)},Xp.allocUnsafe=function(e){return Kp(null,e)},Xp.allocUnsafeSlow=function(e){return Kp(null,e)},Xp.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Tm(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Tm(e.slice(0,0))}(e))},Xp.compare=function(e,t){if(!tm(e)||!tm(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Xp.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Xp.concat=function(e,t){if(!Vp(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Xp.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Xp.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!tm(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Xp.byteLength=rm,Xp.prototype._isBuffer=!0,Xp.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)om(this,t,t+1);return this},Xp.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)om(this,t,t+3),om(this,t+1,t+2);return this},Xp.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)om(this,t,t+7),om(this,t+1,t+6),om(this,t+2,t+5),om(this,t+3,t+4);return this},Xp.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?pm(this,0,e):nm.apply(this,arguments)},Xp.prototype.equals=function(e){if(!tm(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Xp.compare(this,e)},Xp.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Xp.prototype.compare=function(e,t,r,n,o){if(!tm(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(n,o),c=e.slice(t,r),u=0;u<s;++u)if(l[u]!==c[u]){i=l[u],a=c[u];break}return i<a?-1:a<i?1:0},Xp.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Xp.prototype.indexOf=function(e,t,r){return im(this,e,t,r,!0)},Xp.prototype.lastIndexOf=function(e,t,r){return im(this,e,t,r,!1)},Xp.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return sm(this,e,t,r);case"utf8":case"utf-8":return lm(this,e,t,r);case"ascii":return cm(this,e,t,r);case"latin1":case"binary":return um(this,e,t,r);case"base64":return dm(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fm(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Xp.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var mm=4096;function gm(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function ym(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function vm(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=Em(e[i]);return o}function bm(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function Om(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Am(e,t,r,n,o,i){if(!tm(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function wm(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function xm(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function km(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Sm(e,t,r,n,o){return o||km(e,0,r,4),Up(e,t,r,n,23,4),r+4}function Cm(e,t,r,n,o){return o||km(e,0,r,8),Up(e,t,r,n,52,8),r+8}Xp.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Xp.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Xp.prototype;else{var o=t-e;r=new Xp(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},Xp.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Om(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},Xp.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Om(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Xp.prototype.readUInt8=function(e,t){return t||Om(e,1,this.length),this[e]},Xp.prototype.readUInt16LE=function(e,t){return t||Om(e,2,this.length),this[e]|this[e+1]<<8},Xp.prototype.readUInt16BE=function(e,t){return t||Om(e,2,this.length),this[e]<<8|this[e+1]},Xp.prototype.readUInt32LE=function(e,t){return t||Om(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Xp.prototype.readUInt32BE=function(e,t){return t||Om(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Xp.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Om(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Xp.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Om(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Xp.prototype.readInt8=function(e,t){return t||Om(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Xp.prototype.readInt16LE=function(e,t){t||Om(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Xp.prototype.readInt16BE=function(e,t){t||Om(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Xp.prototype.readInt32LE=function(e,t){return t||Om(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Xp.prototype.readInt32BE=function(e,t){return t||Om(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Xp.prototype.readFloatLE=function(e,t){return t||Om(e,4,this.length),Fp(this,e,!0,23,4)},Xp.prototype.readFloatBE=function(e,t){return t||Om(e,4,this.length),Fp(this,e,!1,23,4)},Xp.prototype.readDoubleLE=function(e,t){return t||Om(e,8,this.length),Fp(this,e,!0,52,8)},Xp.prototype.readDoubleBE=function(e,t){return t||Om(e,8,this.length),Fp(this,e,!1,52,8)},Xp.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Am(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},Xp.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Am(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},Xp.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,1,255,0),Xp.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Xp.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,2,65535,0),Xp.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):wm(this,e,t,!0),t+2},Xp.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,2,65535,0),Xp.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):wm(this,e,t,!1),t+2},Xp.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,4,4294967295,0),Xp.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):xm(this,e,t,!0),t+4},Xp.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,4,4294967295,0),Xp.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):xm(this,e,t,!1),t+4},Xp.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);Am(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Xp.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);Am(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Xp.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,1,127,-128),Xp.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Xp.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,2,32767,-32768),Xp.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):wm(this,e,t,!0),t+2},Xp.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,2,32767,-32768),Xp.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):wm(this,e,t,!1),t+2},Xp.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,4,2147483647,-2147483648),Xp.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):xm(this,e,t,!0),t+4},Xp.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Xp.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):xm(this,e,t,!1),t+4},Xp.prototype.writeFloatLE=function(e,t,r){return Sm(this,e,t,!0,r)},Xp.prototype.writeFloatBE=function(e,t,r){return Sm(this,e,t,!1,r)},Xp.prototype.writeDoubleLE=function(e,t,r){return Cm(this,e,t,!0,r)},Xp.prototype.writeDoubleBE=function(e,t,r){return Cm(this,e,t,!1,r)},Xp.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!Xp.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},Xp.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Xp.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=tm(e)?e:_m(new Xp(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var Pm=/[^+\/0-9A-Za-z-_]/g;function Em(e){return e<16?"0"+e.toString(16):e.toString(16)}function _m(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function jm(e){return function(e){var t,r,n,o,i,a;Np||Qp();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new $p(3*s/4-i),n=i>0?s-4:s;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Ip[e.charCodeAt(t)]<<18|Ip[e.charCodeAt(t+1)]<<12|Ip[e.charCodeAt(t+2)]<<6|Ip[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=255&o;return 2===i?(o=Ip[e.charCodeAt(t)]<<2|Ip[e.charCodeAt(t+1)]>>4,a[l++]=255&o):1===i&&(o=Ip[e.charCodeAt(t)]<<10|Ip[e.charCodeAt(t+1)]<<4|Ip[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Pm,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Mm(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Tm(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const qm=((e=>{let t={};e.forEach(((e,r)=>t[e]=r))})(Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),Dm=e=>Xp.from(e,"utf8").toString("base64"),Rm=(e,t=!1)=>t?qm(Dm(e)):Dm(e);var Lm={},Im=Object.prototype.hasOwnProperty;function $m(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function Nm(e){try{return encodeURIComponent(e)}catch(e){return null}}Lm.stringify=function(e,t){t=t||"";var r,n,o=[];for(n in"string"!=typeof t&&(t="?"),e)if(Im.call(e,n)){if((r=e[n])||null!=r&&!isNaN(r)||(r=""),n=Nm(n),r=Nm(r),null===n||null===r)continue;o.push(n+"="+r)}return o.length?t+o.join("&"):""},Lm.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=$m(t[1]),i=$m(t[2]);null===o||null===i||o in n||(n[o]=i)}return n};var Qm=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},Bm=Lm,zm=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Fm=/[\n\r\t]/g,Um=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Zm=/:\d+$/,Vm=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Wm=/^[a-zA-Z]:/;function Ym(e){return(e||"").toString().replace(zm,"")}var Xm=[["#","hash"],["?","query"],function(e,t){return Km(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Hm={hash:1,query:1};function Gm(e){var t,r=("undefined"!=typeof window?window:void 0!==Fc?Fc:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new eg(unescape(e.pathname),{});else if("string"===o)for(t in n=new eg(e,{}),Hm)delete n[t];else if("object"===o){for(t in e)t in Hm||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=Um.test(e.href))}return n}function Km(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function Jm(e,t){e=(e=Ym(e)).replace(Fm,""),t=t||{};var r,n=Vm.exec(e),o=n[1]?n[1].toLowerCase():"",i=!!n[2],a=!!n[3],s=0;return i?a?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):a?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===o?s>=2&&(r=r.slice(2)):Km(o)?r=n[4]:o?i&&(r=r.slice(2)):s>=2&&Km(t.protocol)&&(r=n[4]),{protocol:o,slashes:i||Km(o),slashesCount:s,rest:r}}function eg(e,t,r){if(e=(e=Ym(e)).replace(Fm,""),!(this instanceof eg))return new eg(e,t,r);var n,o,i,a,s,l,c=Xm.slice(),u=typeof t,d=this,f=0;for("object"!==u&&"string"!==u&&(r=t,t=null),r&&"function"!=typeof r&&(r=Bm.parse),n=!(o=Jm(e||"",t=Gm(t))).protocol&&!o.slashes,d.slashes=o.slashes||n&&t.slashes,d.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||Wm.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!Km(d.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(a=c[f])?(i=a[0],l=a[1],i!=i?d[l]=e:"string"==typeof i?~(s="@"===i?e.lastIndexOf(i):e.indexOf(i))&&("number"==typeof a[2]?(d[l]=e.slice(0,s),e=e.slice(s+a[2])):(d[l]=e.slice(s),e=e.slice(0,s))):(s=i.exec(e))&&(d[l]=s[1],e=e.slice(0,s.index)),d[l]=d[l]||n&&a[3]&&t[l]||"",a[4]&&(d[l]=d[l].toLowerCase())):e=a(e,d);r&&(d.query=r(d.query)),n&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(i=!0),r.splice(n,1),a--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(d.pathname,t.pathname)),"/"!==d.pathname.charAt(0)&&Km(d.protocol)&&(d.pathname="/"+d.pathname),Qm(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(~(s=d.auth.indexOf(":"))?(d.username=d.auth.slice(0,s),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(s+1),d.password=encodeURIComponent(decodeURIComponent(d.password))):d.username=encodeURIComponent(decodeURIComponent(d.auth)),d.auth=d.password?d.username+":"+d.password:d.username),d.origin="file:"!==d.protocol&&Km(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}eg.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||Bm.parse)(t)),n[e]=t;break;case"port":n[e]=t,Qm(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,Zm.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(n.username=t.slice(0,i),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(i+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<Xm.length;a++){var s=Xm[a];s[4]&&(n[s[1]]=n[s[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin="file:"!==n.protocol&&Km(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=Bm.stringify);var t,r=this,n=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(r.protocol&&r.slashes||Km(r.protocol)?"//":"");return r.username?(i+=r.username,r.password&&(i+=":"+r.password),i+="@"):r.password?(i+=":"+r.password,i+="@"):"file:"!==r.protocol&&Km(r.protocol)&&!n&&"/"!==r.pathname&&(i+="@"),(":"===n[n.length-1]||Zm.test(r.hostname)&&!r.port)&&(n+=":"),i+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(i+=r.hash),i}},eg.extractProtocol=Jm,eg.location=Gm,eg.trimLeft=Ym,eg.qs=Bm;var tg=Uc(eg);function rg(e){return rg="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},rg(e)}function ng(e){var t="function"==typeof Map?new Map:void 0;return ng=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return og(e,arguments,sg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ag(r,e)},ng(e)}function og(e,t,r){return og=ig()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ag(o,r.prototype),o},og.apply(null,arguments)}function ig(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ag(e,t){return ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ag(e,t)}function sg(e){return sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sg(e)}var lg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ag(e,t)}(i,e);var t,r,n,o=(r=i,n=ig(),function(){var e,t=sg(r);if(n){var o=sg(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===rg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).originalRequest=n,t.originalResponse=a,t.causingError=r,null!=r&&(e+=", caused by ".concat(r.toString())),null!=n){var s=n.getHeader("X-Request-ID")||"n/a",l=n.getMethod(),c=n.getURL(),u=a?a.getStatus():"n/a",d=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(d,", request id: ").concat(s,")")}return t.message=e,t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(ng(Error));function cg(){cg=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new j(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function y(){}function v(){}function b(){}var O={};c(O,a,(function(){return this}));var A=Object.getPrototypeOf,w=A&&A(A(M([])));w&&w!==r&&n.call(w,a)&&(O=w);var x=b.prototype=y.prototype=Object.create(O);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==hg(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=P(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?m:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(hg(t)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(x),c(x,l,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=M,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function ug(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function dg(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}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fg(e,t);var r=Object.prototype.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)?fg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hg(e){return hg="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},hg(e)}function pg(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 mg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pg(Object(r),!0).forEach((function(t){gg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gg(e,t,r){return(t=vg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yg(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,vg(n.key),n)}}function vg(e){var t=function(e){if("object"!==hg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==hg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===hg(t)?t:String(t)}var bg={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Pg,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Og=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,r,n;return t=e,r=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl||this.url){var r=this.options.retryDelays;if(null==r||"[object Array]"===Object.prototype.toString.call(r)){if(this.options.parallelUploads>1)for(var n=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];n<o.length;n++){var i=o[n];if(this.options[i])return void this._emitError(new Error("tus: cannot use the ".concat(i," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(t,this.options).then((function(r){return e._fingerprint=r,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){if(e._source=t,e.options.uploadLengthDeferred)e._size=null;else if(null!=e.options.uploadSize){if(e._size=Number(e.options.uploadSize),Number.isNaN(e._size))return void e._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(e._size=e._source.size,null==e._size)return void e._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,r=this,n=this._size,o=0;this._parallelUploads=[];var i=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,a=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var r=Math.floor(e/t),n=[],o=0;o<t;o++)n.push({start:r*o,end:r*(o+1)});return n[t-1].end=e,n}(this._source.size,i);this._parallelUploadUrls&&a.forEach((function(e,t){e.uploadUrl=r._parallelUploadUrls[t]||null})),this._parallelUploadUrls=new Array(a.length);var s,l=a.map((function(t,i){var s=0;return r._source.slice(t.start,t.end).then((function(l){var c=l.value;return new Promise((function(l,u){var d=mg(mg({},r.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:mg(mg({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:l,onError:u,onProgress:function(e){o=o-s+e,s=e,r._emitProgress(o,n)},onUploadUrlAvailable:function(){r._parallelUploadUrls[i]=f.url,r._parallelUploadUrls.filter((function(e){return Boolean(e)})).length===a.length&&r._saveUploadInUrlStorage()}}),f=new e(c,d);f.start(),r._parallelUploads.push(f)}))}))}));Promise.all(l).then((function(){(s=r._openRequest("POST",r.options.endpoint)).setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var e=Ag(r.options.metadata);return""!==e&&s.setHeader("Upload-Metadata",e),r._sendRequest(s,null)})).then((function(e){if(wg(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(r.url=Eg(r.options.endpoint,t),"Created upload at ".concat(r.url),r._emitSuccess()):r._emitHttpError(s,e,"tus: invalid or missing Location header")}else r._emitHttpError(s,e,"tus: unexpected response while creating upload")})).catch((function(e){r._emitError(e)}))}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?("Resuming upload from previous URL: ".concat(this.url),void this._resumeUpload()):null!=this.options.uploadUrl?("Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,void this._resumeUpload()):void this._createUpload()}},{key:"abort",value:function(t){var r=this;return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return r._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,r,n){this._emitError(new lg(r,n,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),Cg(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var r,n=Ag(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):r=this._sendRequest(t,null),r.then((function(r){if(wg(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=Eg(e.options.endpoint,n),"Created upload at ".concat(e.url),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")})).catch((function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(r){var n=r.getStatus();if(!wg(n,200))return 423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):(wg(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var o=parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(o))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var i=parseInt(r.getHeader("Upload-Length"),10);!Number.isNaN(i)||e.options.uploadLengthDeferred?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(o===i)return e._emitProgress(i,i),void e._emitSuccess();e._offset=o,e._performUpload()}))):e._emitHttpError(t,r,"tus: invalid or missing length value")}})).catch((function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(r){wg(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")})).catch((function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(r+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,o=r.done,i=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&o&&(t._size=t._offset+i,e.setHeader("Upload-Length",t._size));var a=t._offset+i;return!t.options.uploadLengthDeferred&&o&&a!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(a," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var r=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=xg(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){return kg(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=xg("DELETE",t,r);return kg(n,null,r).then((function(e){if(204!==e.getStatus())throw new lg("tus: unexpected response while terminating upload",null,n,e)})).catch((function(o){if(o instanceof lg||(o=new lg("tus: failed to terminate upload",o,n,null)),!Cg(o,0,r))throw o;var i=r.retryDelays[0],a=r.retryDelays.slice(1),s=mg(mg({},r),{},{retryDelays:a});return new Promise((function(e){return setTimeout(e,i)})).then((function(){return e.terminate(t,s)}))}))}}],r&&yg(t.prototype,r),n&&yg(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ag(e){return Object.entries(e).map((function(e){var t=dg(e,2),r=t[0],n=t[1];return"".concat(r," ").concat(Rm(String(n)))})).join(",")}function wg(e,t){return e>=t&&e<t+100}function xg(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var o=r.headers||{};if(Object.entries(o).forEach((function(e){var t=dg(e,2),r=t[0],o=t[1];n.setHeader(r,o)})),r.addRequestId){var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));n.setHeader("X-Request-ID",i)}return n}function kg(e,t,r){return Sg.apply(this,arguments)}function Sg(){var e;return e=cg().mark((function e(t,r,n){var o;return cg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n.onBeforeRequest){e.next=3;break}return e.next=3,n.onBeforeRequest(t);case 3:return e.next=5,t.send(r);case 5:if(o=e.sent,"function"!=typeof n.onAfterResponse){e.next=9;break}return e.next=9,n.onAfterResponse(t,o);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),Sg=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ug(i,n,o,a,s,"next",e)}function s(e){ug(i,n,o,a,s,"throw",e)}a(void 0)}))},Sg.apply(this,arguments)}function Cg(e,t,r){return!(null==r.retryDelays||t>=r.retryDelays.length||null==e.originalRequest)&&(r&&"function"==typeof r.onShouldRetry?r.onShouldRetry(e,t,r):Pg(e))}function Pg(e){var t,r=e.originalResponse?e.originalResponse.getStatus():0;return(!wg(r,400)||409===r||423===r)&&(t=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(t=!1),t)}function Eg(e,t){return new tg(t,e).toString()}function _g(e){return _g="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},_g(e)}function jg(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,Mg(n.key),n)}}function Mg(e){var t=function(e){if("object"!==_g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==_g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_g(t)?t:String(t)}Og.defaultOptions=bg;var Tg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&jg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qg(e){return qg="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},qg(e)}function Dg(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,Rg(n.key),n)}}function Rg(e){var t=function(e){if("object"!==qg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==qg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qg(t)?t:String(t)}var Lg=!1;try{Lg="localStorage"in window;var Ig="tusSupport",$g=localStorage.getItem(Ig);localStorage.setItem(Ig,$g),null===$g&&localStorage.removeItem(Ig)}catch(Jh){if(Jh.code!==Jh.SECURITY_ERR&&Jh.code!==Jh.QUOTA_EXCEEDED_ERR)throw Jh;Lg=!1}var Ng=Lg,Qg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var r=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(r);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(0===n.indexOf(e))try{var o=JSON.parse(localStorage.getItem(n));o.urlStorageKey=n,t.push(o)}catch(e){}}return t}}],r&&Dg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bg(e){return Bg="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},Bg(e)}function zg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(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,Zg(n.key),n)}}function Ug(e,t,r){return t&&Fg(e.prototype,t),r&&Fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zg(e){var t=function(e){if("object"!==Bg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Bg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bg(t)?t:String(t)}var Vg=function(){function e(){zg(this,e)}return Ug(e,[{key:"createRequest",value:function(e,t){return new Wg(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),Wg=function(){function e(t,r){zg(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return Ug(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){e._xhr.onload=function(){r(new Yg(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Yg=function(){function e(t){zg(this,e),this._xhr=t}return Ug(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Xg=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function Hg(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()}))}function Gg(e){return Gg="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},Gg(e)}function Kg(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,Jg(n.key),n)}}function Jg(e){var t=function(e){if("object"!==Gg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Gg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Gg(t)?t:String(t)}var ey=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size}var t,r;return t=e,r=[{key:"slice",value:function(e,t){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova))return r=this._file.slice(e,t),new Promise((function(e,t){var n=new FileReader;n.onload=function(){var t=new Uint8Array(n.result);e({value:t})},n.onerror=function(e){t(e)},n.readAsArrayBuffer(r)}));var r,n=this._file.slice(e,t),o=t>=this.size;return Promise.resolve({value:n,done:o})}},{key:"close",value:function(){}}],r&&Kg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ty(e){return ty="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},ty(e)}function ry(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,ny(n.key),n)}}function ny(e){var t=function(e){if("object"!==ty(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==ty(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ty(t)?t:String(t)}function oy(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var iy=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}var t,r;return t=e,r=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var r=this,n=t<=this._bufferOffset+oy(this._buffer);if(this._done||n){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then((function(n){var o=n.value;return n.done?r._done=!0:void 0===r._buffer?r._buffer=o:r._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}(r._buffer,o),r._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===oy(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],r&&ry(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ay(e){return ay="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},ay(e)}function sy(){sy=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new j(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function y(){}function v(){}function b(){}var O={};c(O,a,(function(){return this}));var A=Object.getPrototypeOf,w=A&&A(A(M([])));w&&w!==r&&n.call(w,a)&&(O=w);var x=b.prototype=y.prototype=Object.create(O);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ay(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=P(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?m:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(ay(t)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(x),c(x,l,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=M,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function ly(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function cy(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,uy(n.key),n)}}function uy(e){var t=function(e){if("object"!==ay(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==ay(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ay(t)?t:String(t)}var dy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n,o;return t=e,r=[{key:"openFile",value:(n=sy().mark((function e(t,r){var n;return sy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Xg()||!t||void 0===t.uri){e.next=11;break}return e.prev=1,e.next=4,Hg(t.uri);case 4:return n=e.sent,e.abrupt("return",new ey(n));case 8:throw e.prev=8,e.t0=e.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e.t0));case 11:if("function"!=typeof t.slice||void 0===t.size){e.next=13;break}return e.abrupt("return",Promise.resolve(new ey(t)));case 13:if("function"!=typeof t.read){e.next=18;break}if(r=Number(r),Number.isFinite(r)){e.next=17;break}return e.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return e.abrupt("return",Promise.resolve(new iy(t,r)));case 18:return e.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return e.stop()}}),e,null,[[1,8]])})),o=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){ly(i,r,o,a,s,"next",e)}function s(e){ly(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e,t){return o.apply(this,arguments)})}],r&&cy(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fy(e){return fy="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},fy(e)}function hy(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,by(n.key),n)}}function py(e,t){return py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},py(e,t)}function my(e){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},my(e)}function gy(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 yy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gy(Object(r),!0).forEach((function(t){vy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vy(e,t,r){return(t=by(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function by(e){var t=function(e){if("object"!==fy(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==fy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fy(t)?t:String(t)}var Oy=yy(yy({},Og.defaultOptions),{},{httpStack:new Vg,fileReader:new dy,urlStorage:Ng?new Qg:new Tg,fingerprint:function(e,t){return Xg()?Promise.resolve(function(e,t){var r=e.exif?function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),Ay=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&py(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=my(n);if(o){var r=my(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===fy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=yy(yy({},Oy),t),i.call(this,e,t)}return t=a,r=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=yy(yy({},Oy),t),Og.terminate(e,t)}}],null&&hy(t.prototype,null),r&&hy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Og);function wy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xy=0;function ky(e){return"__private_"+xy+++"_"+e}var Sy=ky("uppy"),Cy=ky("events");class Py{constructor(e){Object.defineProperty(this,Sy,{writable:!0,value:void 0}),Object.defineProperty(this,Cy,{writable:!0,value:[]}),wy(this,Sy)[Sy]=e}on(e,t){return wy(this,Cy)[Cy].push([e,t]),wy(this,Sy)[Sy].on(e,t)}remove(){for(const[e,t]of wy(this,Cy)[Cy].splice(0))wy(this,Sy)[Sy].off(e,t)}onFilePause(e,t){this.on("upload-pause",((r,n)=>{e===r&&t(n)}))}onFileRemove(e,t){this.on("file-removed",(r=>{e===r.id&&t(r.id)}))}onPause(e,t){this.on("upload-pause",((r,n)=>{e===r&&t(n)}))}onRetry(e,t){this.on("upload-retry",(r=>{e===r&&t()}))}onRetryAll(e,t){this.on("retry-all",(()=>{wy(this,Sy)[Sy].getFile(e)&&t()}))}onPauseAll(e,t){this.on("pause-all",(()=>{wy(this,Sy)[Sy].getFile(e)&&t()}))}onCancelAll(e,t){var r=this;this.on("cancel-all",(function(){wy(r,Sy)[Sy].getFile(e)&&t(...arguments)}))}onResumeAll(e,t){this.on("resume-all",(()=>{wy(this,Sy)[Sy].getFile(e)&&t()}))}}class Ey extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}function _y(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jy=0;function My(e){return"__private_"+jy+++"_"+e}function Ty(e){if(null!=e){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};null==(t=this.then)||t.call(this,n,n)}return this}var qy=My("activeRequests"),Dy=My("queuedHandlers"),Ry=My("paused"),Ly=My("pauseTimer"),Iy=My("downLimit"),$y=My("upperLimit"),Ny=My("rateLimitingTimer"),Qy=My("call"),By=My("queueNext"),zy=My("next"),Fy=My("queue"),Uy=My("dequeue"),Zy=My("resume"),Vy=My("increaseLimit");class Wy{constructor(e){Object.defineProperty(this,Uy,{value:Ky}),Object.defineProperty(this,Fy,{value:Gy}),Object.defineProperty(this,zy,{value:Hy}),Object.defineProperty(this,By,{value:Xy}),Object.defineProperty(this,Qy,{value:Yy}),Object.defineProperty(this,qy,{writable:!0,value:0}),Object.defineProperty(this,Dy,{writable:!0,value:[]}),Object.defineProperty(this,Ry,{writable:!0,value:!1}),Object.defineProperty(this,Ly,{writable:!0,value:void 0}),Object.defineProperty(this,Iy,{writable:!0,value:1}),Object.defineProperty(this,$y,{writable:!0,value:void 0}),Object.defineProperty(this,Ny,{writable:!0,value:void 0}),Object.defineProperty(this,Zy,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,Vy,{writable:!0,value:()=>{if(_y(this,Ry)[Ry])_y(this,Ny)[Ny]=setTimeout(_y(this,Vy)[Vy],0);else{_y(this,Iy)[Iy]=this.limit,this.limit=Math.ceil((_y(this,$y)[$y]+_y(this,Iy)[Iy])/2);for(let e=_y(this,Iy)[Iy];e<=this.limit;e++)_y(this,By)[By]();_y(this,$y)[$y]-_y(this,Iy)[Iy]>3?_y(this,Ny)[Ny]=setTimeout(_y(this,Vy)[Vy],2e3):_y(this,Iy)[Iy]=Math.floor(_y(this,Iy)[Iy]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!_y(this,Ry)[Ry]&&_y(this,qy)[qy]<this.limit?_y(this,Qy)[Qy](e):_y(this,Fy)[Fy](e,t)}wrapSyncFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];const a=r.run((()=>(e(...o),queueMicrotask((()=>a.done())),()=>{})),t);return{abortOn:Ty,abort(){a.abort()}}}}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const s=new Promise(((n,i)=>{a=r.run((()=>{let t,r;try{r=Promise.resolve(e(...o))}catch(e){r=Promise.reject(e)}return r.then((e=>{t?i(t):(a.done(),n(e))}),(e=>{t?i(t):(a.done(),i(e))})),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}}),t)}));return s.abort=e=>{a.abort(e)},s.abortOn=Ty,s}}resume(){_y(this,Ry)[Ry]=!1,clearTimeout(_y(this,Ly)[Ly]);for(let e=0;e<this.limit;e++)_y(this,By)[By]()}pause(e){void 0===e&&(e=null),_y(this,Ry)[Ry]=!0,clearTimeout(_y(this,Ly)[Ly]),null!=e&&(_y(this,Ly)[Ly]=setTimeout(_y(this,Zy)[Zy],e))}rateLimit(e){clearTimeout(_y(this,Ny)[Ny]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(_y(this,$y)[$y]=this.limit-1,this.limit=_y(this,Iy)[Iy],_y(this,Ny)[Ny]=setTimeout(_y(this,Vy)[Vy],e))}get isPaused(){return _y(this,Ry)[Ry]}}function Yy(e){_y(this,qy)[qy]+=1;let t,r=!1;try{t=e()}catch(e){throw _y(this,qy)[qy]-=1,e}return{abort:e=>{r||(r=!0,_y(this,qy)[qy]-=1,null==t||t(e),_y(this,By)[By]())},done:()=>{r||(r=!0,_y(this,qy)[qy]-=1,_y(this,By)[By]())}}}function Xy(){queueMicrotask((()=>_y(this,zy)[zy]()))}function Hy(){if(_y(this,Ry)[Ry]||_y(this,qy)[qy]>=this.limit)return;if(0===_y(this,Dy)[Dy].length)return;const e=_y(this,Dy)[Dy].shift();if(null==e)throw new Error("Invariant violation: next is null");const t=_y(this,Qy)[Qy](e.fn);e.abort=t.abort,e.done=t.done}function Gy(e,t){const r={fn:e,priority:(null==t?void 0:t.priority)||0,abort:()=>{_y(this,Uy)[Uy](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=_y(this,Dy)[Dy].findIndex((e=>r.priority>e.priority));return-1===n?_y(this,Dy)[Dy].push(r):_y(this,Dy)[Dy].splice(n,0,r),r}function Ky(e){const t=_y(this,Dy)[Dy].indexOf(e);-1!==t&&_y(this,Dy)[Dy].splice(t,1)}function Jy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ev(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tv=0;function rv(e){return"__private_"+tv+++"_"+e}const nv={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},ov={limit:20,retryDelays:nv.retryDelays,withCredentials:!1};var iv=rv("retryDelayIterator"),av=rv("uploadLocalFile"),sv=rv("getCompanionClientArgs"),lv=rv("uploadFiles"),cv=rv("handleUpload");class uv extends jp{constructor(e,t){var r,n;if(super(e,{...ov,...t}),Object.defineProperty(this,lv,{value:hv}),Object.defineProperty(this,sv,{value:fv}),Object.defineProperty(this,av,{value:dv}),Object.defineProperty(this,iv,{writable:!0,value:void 0}),Object.defineProperty(this,cv,{writable:!0,value:async e=>{if(0===e.length)return void this.uppy.log("[Tus] No files to upload");0===this.opts.limit&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const t=this.uppy.getFilesByIds(e);await ev(this,lv)[lv](t)}}),this.type="uploader",this.id=this.opts.id||"Tus",void 0===(null==t?void 0:t.allowedMetaFields)&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in t)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=null!=(r=this.opts.rateLimitedQueue)?r:new Wy(this.opts.limit),ev(this,iv)[iv]=null==(n=this.opts.retryDelays)?void 0:n.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const e={...this.uppy.getState().files};Object.keys(e).forEach((t=>{var r;if(null!=(r=e[t])&&null!=(r=r.tus)&&r.uploadUrl){const r={...e[t].tus};delete r.uploadUrl,e[t]={...e[t],tus:r}}})),this.uppy.setState({files:e})}resetUploaderReferences(e,t){const r=this.uploaders[e];r&&(r.abort(),null!=t&&t.abort&&r.abort(!0),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}onReceiveUploadUrl(e,t){const r=this.uppy.getFile(e.id);r&&(r.tus&&r.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(r.id,{tus:{...r.tus,uploadUrl:t}})))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(ev(this,cv)[cv]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(ev(this,cv)[cv])}}function dv(e){var t=this;return this.resetUploaderReferences(e.id),new Promise(((r,n)=>{let o,i,a;const s={...this.opts,...e.tus||{}};"function"==typeof s.headers&&(s.headers=s.headers(e));const{onShouldRetry:l,onBeforeRequest:c,...u}=s,d={...nv,...u};var f;d.fingerprint=(f=e,(e,t)=>{if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)||"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return Oy.fingerprint(e,t);const r=["tus",f.id,t.endpoint].join("-");return Promise.resolve(r)}),d.onBeforeRequest=async t=>{let r;if(t.getUnderlyingObject().withCredentials=!!s.withCredentials,"function"==typeof c&&(r=c(t,e)),Jy(o,"shouldBeRequeued")){if(!o.shouldBeRequeued)return Promise.reject();let t;const n=new Promise((e=>{t=e}));return o=this.requests.run((()=>(e.isPaused&&o.abort(),t(),()=>{}))),void await Promise.all([n,r])}return r},d.onError=t=>{var r;this.uppy.log(t);const i=null!=t.originalRequest?t.originalRequest.getUnderlyingObject():null;(function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)})(i)&&(t=new Ey(t,i)),this.resetUploaderReferences(e.id),null==(r=o)||r.abort(),this.uppy.emit("upload-error",e,t),"function"==typeof s.onError&&s.onError(t),n(t)},d.onProgress=(t,r)=>{this.onReceiveUploadUrl(e,a.url),"function"==typeof s.onProgress&&s.onProgress(t,r),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:t,bytesTotal:r})},d.onSuccess=()=>{var t;const n={uploadURL:null!=(t=a.url)?t:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),o.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),n),a.url){const{name:e}=a.file;this.uppy.log(`Download ${e} from ${a.url}`)}"function"==typeof s.onSuccess&&s.onSuccess(),r(a)};const h=e=>{var t;const r=null==e||null==(t=e.originalResponse)?void 0:t.getStatus();if(429===r){if(!this.requests.isPaused){var n;const e=null==(n=ev(this,iv)[iv])?void 0:n.next();if(null==e||e.done)return!1;this.requests.rateLimit(e.value)}}else{if(null!=r&&r>400&&r<500&&409!==r&&423!==r)return!1;"undefined"!=typeof navigator&&!1===navigator.onLine&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",(()=>{this.requests.resume()}),{once:!0})))}return o.abort(),o={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};d.onShouldRetry=null!=l?(e,t)=>l(e,t,s,h):h;const p=(e,t,r)=>{Jy(e,t)&&!Jy(e,r)&&(e[r]=e[t])},m={};(Array.isArray(s.allowedMetaFields)?s.allowedMetaFields:Object.keys(e.meta)).forEach((t=>{m[t]=String(e.meta[t])})),p(m,"type","filetype"),p(m,"name","filename"),d.metadata=m,a=new Ay(e.data,d),this.uploaders[e.id]=a;const g=new Py(this.uppy);this.uploaderEvents[e.id]=g,i=()=>(e.isPaused||a.start(),()=>{}),a.findPreviousUploads().then((t=>{const r=t[0];r&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${r.creationTime}`),a.resumeFromPreviousUpload(r))})),o=this.requests.run(i),g.onFileRemove(e.id,(t=>{o.abort(),this.resetUploaderReferences(e.id,{abort:!!a.url}),r(`upload ${t} was removed`)})),g.onPause(e.id,(e=>{o.abort(),e?a.abort():o=this.requests.run(i)})),g.onPauseAll(e.id,(()=>{o.abort(),a.abort()})),g.onCancelAll(e.id,(function(n){let{reason:i}=void 0===n?{}:n;"user"===i&&(o.abort(),t.resetUploaderReferences(e.id,{abort:!!a.url})),r(`upload ${e.id} was canceled`)})),g.onResumeAll(e.id,(()=>{o.abort(),e.error&&a.abort(),o=this.requests.run(i)}))})).catch((t=>{throw this.uppy.emit("upload-error",e,t),t}))}function fv(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),{...null==(t=e.remote)?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function hv(e){const t=function(e){return e.filter((e=>!(e=>"error"in e&&!!e.error)(e)))}(e),r=function(e){return e.filter((e=>{var t;return!(null!=(t=e.progress)&&t.uploadStarted&&e.isRestored)}))}(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map((e=>{if(e.isRemote){const t=()=>this.requests,r=new AbortController,n=t=>{t.id===e.id&&r.abort()};this.uppy.on("file-removed",n);const o=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,ev(this,sv)[sv](e),{signal:r.signal,getQueue:t});return this.requests.wrapSyncFunction((()=>{this.uppy.off("file-removed",n)}),{priority:-1})(),o}return ev(this,av)[av](e)})))}uv.VERSION="3.5.4";const pv=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],mv=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],gv=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],yv=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vv=(e,t,r)=>{let n=e;return"string"==typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):!0!==t&&void 0===r||(n=e.toLocaleString(void 0,r)),n};function bv(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?yv:gv:t.binary?mv:pv,n=t.space?" ":"";if(t.signed&&0===e)return` 0${n}${r[0]}`;const o=e<0,i=o?"-":t.signed?"+":"";let a;if(o&&(e=-e),void 0!==t.minimumFractionDigits&&(a={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(a={maximumFractionDigits:t.maximumFractionDigits,...a}),e<1)return i+vv(e,t.locale,a)+n+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e/=(t.binary?1024:1e3)**s,a||(e=e.toPrecision(3)),i+vv(Number(e),t.locale,a)+n+r[s]}var Ov,Av,wv={exports:{}},xv={},kv={};"production"===zc.env.NODE_ENV?wv.exports=function(){if(Ov)return xv;Ov=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case n:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case f:case a:return e;default:return p}}case r:return p}}}return e=Symbol.for("react.module.reference"),xv.ContextConsumer=s,xv.ContextProvider=a,xv.Element=t,xv.ForwardRef=c,xv.Fragment=n,xv.Lazy=h,xv.Memo=f,xv.Portal=r,xv.Profiler=i,xv.StrictMode=o,xv.Suspense=u,xv.SuspenseList=d,xv.isAsyncMode=function(){return!1},xv.isConcurrentMode=function(){return!1},xv.isContextConsumer=function(e){return m(e)===s},xv.isContextProvider=function(e){return m(e)===a},xv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xv.isForwardRef=function(e){return m(e)===c},xv.isFragment=function(e){return m(e)===n},xv.isLazy=function(e){return m(e)===h},xv.isMemo=function(e){return m(e)===f},xv.isPortal=function(e){return m(e)===r},xv.isProfiler=function(e){return m(e)===i},xv.isStrictMode=function(e){return m(e)===o},xv.isSuspense=function(e){return m(e)===u},xv.isSuspenseList=function(e){return m(e)===d},xv.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},xv.typeOf=m,xv}():wv.exports=(Av||(Av=1,"production"!==zc.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case n:case i:case o:case u:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case h:case f:case a:return g;default:return p}}case r:return p}}}e=Symbol.for("react.module.reference");var g=s,y=a,v=t,b=c,O=n,A=h,w=f,x=r,k=i,S=o,C=u,P=d,E=!1,_=!1;kv.ContextConsumer=g,kv.ContextProvider=y,kv.Element=v,kv.ForwardRef=b,kv.Fragment=O,kv.Lazy=A,kv.Memo=w,kv.Portal=x,kv.Profiler=k,kv.StrictMode=S,kv.Suspense=C,kv.SuspenseList=P,kv.isAsyncMode=function(e){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},kv.isConcurrentMode=function(e){return _||(_=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},kv.isContextConsumer=function(e){return m(e)===s},kv.isContextProvider=function(e){return m(e)===a},kv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},kv.isForwardRef=function(e){return m(e)===c},kv.isFragment=function(e){return m(e)===n},kv.isLazy=function(e){return m(e)===h},kv.isMemo=function(e){return m(e)===f},kv.isPortal=function(e){return m(e)===r},kv.isProfiler=function(e){return m(e)===i},kv.isStrictMode=function(e){return m(e)===o},kv.isSuspense=function(e){return m(e)===u},kv.isSuspenseList=function(e){return m(e)===d},kv.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},kv.typeOf=m}()),kv);var Sv=wv.exports;function Cv(e){function t(e,n,l,c,f){for(var h,p,m,g,O,w=0,x=0,k=0,S=0,C=0,T=0,D=m=h=0,L=0,I=0,$=0,N=0,Q=l.length,B=Q-1,z="",F="",U="",Z="";L<Q;){if(p=l.charCodeAt(L),L===B&&0!==x+S+k+w&&(0!==x&&(p=47===x?10:47),S=k=w=0,Q++,B++),0===x+S+k+w){if(L===B&&(0<I&&(z=z.replace(d,"")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(L)}p=59}switch(p){case 123:for(h=(z=z.trim()).charCodeAt(0),m=1,N=++L;L<Q;){switch(p=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(p=l.charCodeAt(L+1)){case 42:case 47:e:{for(D=L+1;D<B;++D)switch(l.charCodeAt(D)){case 47:if(42===p&&42===l.charCodeAt(D-1)&&L+2!==D){L=D+1;break e}break;case 10:if(47===p){L=D+1;break e}}L=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;L++<B&&l.charCodeAt(L)!==p;);}if(0===m)break;L++}if(m=l.substring(N,L),0===h&&(h=(z=z.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<I&&(z=z.replace(d,"")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:I=n;break;default:I=M}if(N=(m=t(n,I,m,p,f+1)).length,0<q&&(O=s(3,m,I=r(M,z,$),n,E,P,N,p,f,c),z=I.join(""),void 0!==O&&0===(N=(m=O.trim()).length)&&(p=0,m="")),0<N)switch(p){case 115:z=z.replace(A,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(y,"$1 $2"))+"{"+m+"}",m=1===j||2===j&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===c&&(F+=m,m="")}else m=""}else m=t(n,r(n,z,$),m,c,f+1);U+=m,m=$=I=D=h=0,z="",p=l.charCodeAt(++L);break;case 125:case 59:if(1<(N=(z=(0<I?z.replace(d,""):z).trim()).length))switch(0===D&&(h=z.charCodeAt(0),45===h||96<h&&123>h)&&(N=(z=z.replace(" ",":")).length),0<q&&void 0!==(O=s(1,z,n,e,E,P,F.length,c,f,c))&&0===(N=(z=O.trim()).length)&&(z="\0\0"),h=z.charCodeAt(0),p=z.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){Z+=z+l.charAt(L);break}default:58!==z.charCodeAt(N-1)&&(F+=o(z,h,p,z.charCodeAt(2)))}$=I=D=h=0,z="",p=l.charCodeAt(++L)}}switch(p){case 13:case 10:47===x?x=0:0===1+h&&107!==c&&0<z.length&&(I=1,z+="\0"),0<q*R&&s(0,z,n,e,E,P,F.length,c,f,c),P=1,E++;break;case 59:case 125:if(0===x+S+k+w){P++;break}default:switch(P++,g=l.charAt(L),p){case 9:case 32:if(0===S+w+x)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+x+w&&(I=$=1,g="\f"+g);break;case 108:if(0===S+x+w+_&&0<D)switch(L-D){case 2:112===C&&58===l.charCodeAt(L-3)&&(_=C);case 8:111===T&&(_=T)}break;case 58:0===S+x+w&&(D=L);break;case 44:0===x+k+S+w&&(I=1,g+="\r");break;case 34:case 39:0===x&&(S=S===p?0:0===S?p:S);break;case 91:0===S+x+k&&w++;break;case 93:0===S+x+k&&w--;break;case 41:0===S+x+w&&k--;break;case 40:0===S+x+w&&(0===h&&(2*C+3*T==533||(h=1)),k++);break;case 64:0===x+k+S+w+D+m&&(m=1);break;case 42:case 47:if(!(0<S+w+k))switch(x){case 0:switch(2*p+3*l.charCodeAt(L+1)){case 235:x=47;break;case 220:N=L,x=42}break;case 42:47===p&&42===C&&N+2!==L&&(33===l.charCodeAt(N+2)&&(F+=l.substring(N,L+1)),g="",x=0)}}0===x&&(z+=g)}T=C,C=p,L++}if(0<(N=F.length)){if(I=n,0<q&&void 0!==(O=s(2,F,I,e,E,P,N,c,f,c))&&0===(F=O).length)return Z+F+U;if(F=I.join(",")+"{"+F+"}",0!=j*_){switch(2!==j||i(F,2)||(_=0),_){case 111:F=F.replace(b,":-moz-$1")+F;break;case 112:F=F.replace(v,"::-webkit-input-$1")+F.replace(v,"::-moz-$1")+F.replace(v,":-ms-input-$1")+F}_=0}}return Z+F+U}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===j||2===j&&i(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(O,"tb");break;case 232:l=a.replace(O,"tb-rl");break;case 220:l=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),D(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,u){for(var d,f=0,h=t;f<q;++f)switch(d=T[f].call(c,e,h,r,n,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?j=1:(j=2,D=e):j=0),l}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<q){var o=s(-1,r,n,n,E,P,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(M,n,r,0,0);return 0<q&&void 0!==(o=s(-2,i,n,n,E,P,i.length,0,0,0))&&(i=o),_=0,P=E=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,P=1,E=1,_=0,j=1,M=[],T=[],q=0,D=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:q=T.length=0;break;default:if("function"==typeof t)T[q++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var Pv={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ev(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var _v,jv,Mv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Tv=Ev((function(e){return Mv.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),qv={exports:{}},Dv={},Rv={};"production"===zc.env.NODE_ENV?qv.exports=function(){if(_v)return Dv;_v=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case n:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case p:case h:case a:return e;default:return f}}case r:return f}}}function O(e){return b(e)===c}return Dv.AsyncMode=l,Dv.ConcurrentMode=c,Dv.ContextConsumer=s,Dv.ContextProvider=a,Dv.Element=t,Dv.ForwardRef=u,Dv.Fragment=n,Dv.Lazy=p,Dv.Memo=h,Dv.Portal=r,Dv.Profiler=i,Dv.StrictMode=o,Dv.Suspense=d,Dv.isAsyncMode=function(e){return O(e)||b(e)===l},Dv.isConcurrentMode=O,Dv.isContextConsumer=function(e){return b(e)===s},Dv.isContextProvider=function(e){return b(e)===a},Dv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dv.isForwardRef=function(e){return b(e)===u},Dv.isFragment=function(e){return b(e)===n},Dv.isLazy=function(e){return b(e)===p},Dv.isMemo=function(e){return b(e)===h},Dv.isPortal=function(e){return b(e)===r},Dv.isProfiler=function(e){return b(e)===i},Dv.isStrictMode=function(e){return b(e)===o},Dv.isSuspense=function(e){return b(e)===d},Dv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},Dv.typeOf=b,Dv}():qv.exports=(jv||(jv=1,"production"!==zc.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case l:case c:case n:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case p:case h:case a:return g;default:return f}}case r:return f}}}var O=l,A=c,w=s,x=a,k=t,S=u,C=n,P=p,E=h,_=r,j=i,M=o,T=d,q=!1;function D(e){return b(e)===c}Rv.AsyncMode=O,Rv.ConcurrentMode=A,Rv.ContextConsumer=w,Rv.ContextProvider=x,Rv.Element=k,Rv.ForwardRef=S,Rv.Fragment=C,Rv.Lazy=P,Rv.Memo=E,Rv.Portal=_,Rv.Profiler=j,Rv.StrictMode=M,Rv.Suspense=T,Rv.isAsyncMode=function(e){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||b(e)===l},Rv.isConcurrentMode=D,Rv.isContextConsumer=function(e){return b(e)===s},Rv.isContextProvider=function(e){return b(e)===a},Rv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Rv.isForwardRef=function(e){return b(e)===u},Rv.isFragment=function(e){return b(e)===n},Rv.isLazy=function(e){return b(e)===p},Rv.isMemo=function(e){return b(e)===h},Rv.isPortal=function(e){return b(e)===r},Rv.isProfiler=function(e){return b(e)===i},Rv.isStrictMode=function(e){return b(e)===o},Rv.isSuspense=function(e){return b(e)===d},Rv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},Rv.typeOf=b}()),Rv);var Lv=qv.exports,Iv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$v={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Nv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qv={};function Bv(e){return Lv.isMemo(e)?Nv:Qv[e.$$typeof]||Iv}Qv[Lv.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qv[Lv.Memo]=Nv;var zv=Object.defineProperty,Fv=Object.getOwnPropertyNames,Uv=Object.getOwnPropertySymbols,Zv=Object.getOwnPropertyDescriptor,Vv=Object.getPrototypeOf,Wv=Object.prototype,Yv=function e(t,r,n){if("string"!=typeof r){if(Wv){var o=Vv(r);o&&o!==Wv&&e(t,o,n)}var i=Fv(r);Uv&&(i=i.concat(Uv(r)));for(var a=Bv(t),s=Bv(r),l=0;l<i.length;++l){var c=i[l];if(!($v[c]||n&&n[c]||s&&s[c]||a&&a[c])){var u=Zv(r,c);try{zv(t,c,u)}catch(e){}}}}return t},Xv=Uc(Yv);function Hv(){return(Hv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Gv=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Kv=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Sv.typeOf(e)},Jv=Object.freeze([]),eb=Object.freeze({});function tb(e){return"function"==typeof e}function rb(e){return"production"!==zc.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function nb(e){return e&&"string"==typeof e.styledComponentId}var ob=void 0!==zc.env&&(zc.env.REACT_APP_SC_ATTR||zc.env.SC_ATTR)||"data-styled",ib="undefined"!=typeof window&&"HTMLElement"in window,ab=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==zc.env&&(void 0!==zc.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==zc.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==zc.env.REACT_APP_SC_DISABLE_SPEEDY&&zc.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==zc.env.SC_DISABLE_SPEEDY&&""!==zc.env.SC_DISABLE_SPEEDY?"false"!==zc.env.SC_DISABLE_SPEEDY&&zc.env.SC_DISABLE_SPEEDY:"production"!==zc.env.NODE_ENV)),sb="production"!==zc.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function lb(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],r=1,n=arguments.length;r<n;r+=1)t.push(r<0||arguments.length<=r?void 0:arguments[r]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function cb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw"production"===zc.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):"")):new Error(lb.apply(void 0,[sb[e]].concat(r)).trim())}var ub=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&cb(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),db=new Map,fb=new Map,hb=1,pb=function(e){if(db.has(e))return db.get(e);for(;fb.has(hb);)hb++;var t=hb++;return"production"!==zc.env.NODE_ENV&&((0|t)<0||t>1<<30)&&cb(16,""+t),db.set(e,t),fb.set(t,e),t},mb=function(e){return fb.get(e)},gb=function(e,t){t>=hb&&(hb=t+1),db.set(e,t),fb.set(t,e)},yb="style["+ob+'][data-styled-version="5.3.10"]',vb=new RegExp("^"+ob+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),bb=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ob=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(vb);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(gb(c,l),bb(e,c,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},Ab=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(ob))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(ob,"active"),n.setAttribute("data-styled-version","5.3.10");var a=__webpack_require__.nc;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},wb=function(){function e(e){var t=this.element=Ab(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}cb(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),xb=function(){function e(e){var t=this.element=Ab(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),kb=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Sb=ib,Cb={isServer:!ib,useCSSOMInjection:!ab},Pb=function(){function e(e,t,r){void 0===e&&(e=eb),void 0===t&&(t={}),this.options=Hv({},Cb,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ib&&Sb&&(Sb=!1,function(e){for(var t=document.querySelectorAll(yb),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(ob)&&(Ob(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return pb(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Hv({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new kb(o):n?new wb(o):new xb(o),new ub(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(pb(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(pb(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(pb(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=mb(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=ob+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Eb=/(a)(d)/gi,_b=function(e){return String.fromCharCode(e+(e>25?39:97))};function jb(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=_b(t%52)+r;return(_b(t%52)+r).replace(Eb,"$1-$2")}var Mb=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Tb=function(e){return Mb(5381,e)},qb=Tb("5.3.10"),Db=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===zc.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(tb(r)&&!nb(r))return!1}return!0}(e),this.componentId=t,this.baseHash=Mb(qb,t),this.baseStyle=r,Pb.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Yb(this.rules,e,t,r).join(""),a=jb(Mb(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Mb(this.baseHash,r.hash),u="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)u+=f,"production"!==zc.env.NODE_ENV&&(c=Mb(c,f+d));else if(f){var h=Yb(f,e,t,r),p=Array.isArray(h)?h.join(""):h;c=Mb(c,p+d),u+=p}}if(u){var m=jb(c>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),Rb=/^\s*\/\/.*$/gm,Lb=[":","[",".","#"],Ib=p().createContext();Ib.Consumer;var $b=p().createContext(),Nb=($b.Consumer,new Pb),Qb=function(){var e,t,r,n,o=eb,i=o.options,a=void 0===i?eb:i,s=o.plugins,l=void 0===s?Jv:s,c=new Cv(a),u=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){u.push(e)})),f=function(r,o,i){return 0===o&&-1!==Lb.indexOf(i[t.length])||i.match(n)?r:"."+e};function h(o,i,a,s){void 0===s&&(s="&");var l=o.replace(Rb,""),u=i&&a?a+" "+i+" { "+l+" }":l;return e=s,t=i,r=new RegExp("\\"+t+"\\b","g"),n=new RegExp("(\\"+t+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(l,[function(e,n,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(r,f))},d,function(e){if(-2===e){var t=u;return u=[],t}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||cb(15),Mb(e,t.name)}),5381).toString():"",h}(),Bb=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Qb);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return cb(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Qb),this.name+e.hash},e}(),zb=/([A-Z])/,Fb=/([A-Z])/g,Ub=/^ms-/,Zb=function(e){return"-"+e.toLowerCase()};function Vb(e){return zb.test(e)?e.replace(Fb,Zb).replace(Ub,"-ms-"):e}var Wb=function(e){return null==e||!1===e||""===e};function Yb(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Yb(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}if(Wb(e))return"";if(nb(e))return"."+e.styledComponentId;if(tb(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==zc.env.NODE_ENV&&Sv.isElement(l)&&console.warn(rb(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Yb(l,t,r,n)}var c;return e instanceof Bb?r?(e.inject(r,n),e.getName(n)):e:Kv(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Wb(t[a])&&(Array.isArray(t[a])&&t[a].isCss||tb(t[a])?i.push(Vb(a)+":",t[a],";"):Kv(t[a])?i.push.apply(i,e(t[a],a)):i.push(Vb(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Pv||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var Xb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Hb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return tb(e)||Kv(e)?Xb(Yb(Gv(Jv,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Xb(Yb(Gv(e,r)))}var Gb=/invalid hook call/i,Kb=new Set,Jb=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eO=/(^-|-$)/g;function tO(e){return e.replace(Jb,"-").replace(eO,"")}function rO(e){return"string"==typeof e&&("production"===zc.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var nO=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},oO=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function iO(e,t,r){var n=e[r];nO(t)&&nO(n)?aO(n,t):e[r]=t}function aO(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(nO(a))for(var s in a)oO(s)&&iO(e,a[s],s)}return e}var sO=p().createContext();sO.Consumer;var lO={};function cO(e,t,r){var n=nb(e),o=!rO(e),i=t.attrs,a=void 0===i?Jv:i,s=t.componentId,l=void 0===s?function(e,t){var r="string"!=typeof e?"sc":tO(e);lO[r]=(lO[r]||0)+1;var n=r+"-"+function(e){return jb(Tb(e)>>>0)}("5.3.10"+r+lO[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,c=t.displayName,u=void 0===c?function(e){return rO(e)?"styled."+e:"Styled("+rb(e)+")"}(e):c,d=t.displayName&&t.componentId?tO(t.displayName)+"-"+t.componentId:t.componentId||l,f=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,y=new Db(r,d,n?e.componentStyle:void 0),v=y.isStatic&&0===a.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,u=e.target;"production"!==zc.env.NODE_ENV&&(0,h.useDebugValue)(c);var d=function(e,t,r){void 0===e&&(e=eb);var n=Hv({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in tb(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=eb),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,h.useContext)(sO),a)||eb,t,o),f=d[0],p=d[1],m=function(e,t,r,n){var o=(0,h.useContext)(Ib)||Nb,i=(0,h.useContext)($b)||Qb,a=t?e.generateAndInjectStyles(eb,o,i):e.generateAndInjectStyles(r,o,i);return"production"!==zc.env.NODE_ENV&&(0,h.useDebugValue)(a),"production"!==zc.env.NODE_ENV&&!t&&n&&n(a),a}(i,n,f,"production"!==zc.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,y=p.$as||t.$as||p.as||t.as||u,v=rO(y),b=p!==t?Hv({},t,{},p):t,O={};for(var A in b)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?O.as=b[A]:(l?l(A,Tv,y):!v||Tv(A))&&(O[A]=b[A]));return t.style&&p.style!==t.style&&(O.style=Hv({},t.style,{},p.style)),O.className=Array.prototype.concat(s,c,m!==c?m:null,t.className,p.className).filter(Boolean).join(" "),O.ref=g,(0,h.createElement)(y,O)}(g,e,t,v)};return b.displayName=u,(g=p().forwardRef(b)).attrs=f,g.componentStyle=y,g.displayName=u,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Jv,g.styledComponentId=d,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(rO(e)?e:tO(rb(e)));return cO(e,Hv({},o,{attrs:f,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?aO({},e.defaultProps,t):t}}),"production"!==zc.env.NODE_ENV&&(function(e,t){if("production"!==zc.env.NODE_ENV){var r="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",n=console.error;try{var o=!0;console.error=function(e){if(Gb.test(e))o=!1,Kb.delete(r);else{for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];n.apply(void 0,[e].concat(i))}},(0,h.useRef)(),o&&!Kb.has(r)&&(console.warn(r),Kb.add(r))}catch(e){Gb.test(e.message)&&Kb.delete(r)}finally{console.error=n}}}(u,d),g.warnTooManyClasses=function(e,t){var r={},n=!1;return function(o){if(!n&&(r[o]=!0,Object.keys(r).length>=200)){var i=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+i+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),n=!0,r={}}}}(u,d)),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),o&&Xv(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var uO=function(e){return function e(t,r,n){if(void 0===n&&(n=eb),!Sv.isValidElementType(r))return cb(1,String(r));var o=function(){return t(r,n,Hb.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,Hv({},n,{},o))},o.attrs=function(o){return e(t,r,Hv({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(cO,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){uO[e]=uO(e)})),"production"!==zc.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==zc.env.NODE_ENV&&"test"!==zc.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var dO=uO;const fO=Hb`
75
+ `),ze.rippleVisible,Xe,550,(({theme:e})=>e.transitions.easing.easeInOut),ze.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ze.child,ze.childLeaving,He,550,(({theme:e})=>e.transitions.easing.easeInOut),ze.childPulsate,Ge,(({theme:e})=>e.transitions.easing.easeInOut)),et=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=(0,f.A)(r,Fe),[s,l]=h.useState([]),c=h.useRef(0),u=h.useRef(null);h.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const p=h.useRef(!1),m=(0,Qe.A)(),g=h.useRef(null),y=h.useRef(null),b=h.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,(0,v.jsx)(Je,{classes:{ripple:(0,Oe.A)(o.ripple,ze.ripple),rippleVisible:(0,Oe.A)(o.rippleVisible,ze.rippleVisible),ripplePulsate:(0,Oe.A)(o.ripplePulsate,ze.ripplePulsate),child:(0,Oe.A)(o.child,ze.child),childLeaving:(0,Oe.A)(o.childLeaving,ze.childLeaving),childPulsate:(0,Oe.A)(o.childPulsate,ze.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),O=h.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:r})},m.start(80,(()=>{g.current&&(g.current(),g.current=null)}))):b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:r})}),[n,b,m]),A=h.useCallback((()=>{O({},{pulsate:!0})}),[O]),w=h.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void m.start(0,(()=>{w(e,t)}));g.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[m]);return h.useImperativeHandle(t,(()=>({pulsate:A,start:O,stop:w})),[A,O,w]),(0,v.jsx)(Ke,(0,d.A)({className:(0,Oe.A)(ze.root,o.root,i),ref:y},a,{children:(0,v.jsx)($e,{component:null,exit:!0,children:s})}))})),tt=et;var rt=__webpack_require__(31609);function nt(e){return(0,rt.Ay)("MuiButtonBase",e)}const ot=(0,Be.A)("MuiButtonBase",["root","disabled","focusVisible"]),it=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],at=(0,ke.Ay)("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"},[`&.${ot.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),st=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:b,onDragLeave:O,onFocus:A,onFocusVisible:w,onKeyDown:x,onKeyUp:k,onMouseDown:S,onMouseLeave:C,onMouseUp:P,onTouchEnd:E,onTouchMove:_,onTouchStart:j,tabIndex:M=0,TouchRippleProps:T,touchRippleRef:q,type:D}=r,R=(0,f.A)(r,it),L=h.useRef(null),I=h.useRef(null),$=(0,Pe.A)(I,q),{isFocusVisibleRef:N,onFocus:Q,onBlur:B,ref:z}=(0,_e.A)(),[F,U]=h.useState(!1);l&&F&&U(!1),h.useImperativeHandle(n,(()=>({focusVisible:()=>{U(!0),L.current.focus()}})),[]);const[Z,V]=h.useState(!1);h.useEffect((()=>{V(!0)}),[]);const W=Z&&!c&&!l;function Y(e,t,r=u){return(0,Ee.A)((n=>(t&&t(n),!r&&I.current&&I.current[e](n),!0)))}h.useEffect((()=>{F&&p&&!c&&Z&&I.current.pulsate()}),[c,p,F,Z]);const X=Y("start",S),H=Y("stop",b),G=Y("stop",O),K=Y("stop",P),J=Y("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),ee=Y("start",j),te=Y("stop",E),re=Y("stop",_),ne=Y("stop",(e=>{B(e),!1===N.current&&U(!1),g&&g(e)}),!1),oe=(0,Ee.A)((e=>{L.current||(L.current=e.currentTarget),Q(e),!0===N.current&&(U(!0),w&&w(e)),A&&A(e)})),ie=()=>{const e=L.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ae=h.useRef(!1),se=(0,Ee.A)((e=>{p&&!ae.current&&F&&I.current&&" "===e.key&&(ae.current=!0,I.current.stop(e,(()=>{I.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!l&&(e.preventDefault(),y&&y(e))})),le=(0,Ee.A)((e=>{p&&" "===e.key&&I.current&&F&&!e.defaultPrevented&&(ae.current=!1,I.current.stop(e,(()=>{I.current.pulsate(e)}))),k&&k(e),y&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let ce=s;"button"===ce&&(R.href||R.to)&&(ce=m);const ue={};"button"===ce?(ue.type=void 0===D?"button":D,ue.disabled=l):(R.href||R.to||(ue.role="button"),l&&(ue["aria-disabled"]=l));const de=(0,Pe.A)(t,z,L),fe=(0,d.A)({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:p,tabIndex:M,focusVisible:F}),he=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i={root:["root",t&&"disabled",r&&"focusVisible"]},a=(0,we.A)(i,nt,o);return r&&n&&(a.root+=` ${n}`),a})(fe);return(0,v.jsxs)(at,(0,d.A)({as:ce,className:(0,Oe.A)(he.root,a),ownerState:fe,onBlur:ne,onClick:y,onContextMenu:H,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:X,onMouseLeave:J,onMouseUp:K,onDragLeave:G,onTouchEnd:te,onTouchMove:re,onTouchStart:ee,ref:de,tabIndex:l?-1:M,type:D},ue,R,{children:[i,W?(0,v.jsx)(tt,(0,d.A)({ref:$,center:o},T)):null]}))}));var lt=__webpack_require__(28466);function ct(e){return(0,rt.Ay)("MuiButton",e)}const ut=(0,Be.A)("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"]),dt=h.createContext({}),ft=h.createContext(void 0),ht=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pt=e=>(0,d.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),mt=(0,ke.Ay)(st,{shouldForwardProp:e=>(0,Se.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,lt.A)(r.color)}`],t[`size${(0,lt.A)(r.size)}`],t[`${r.variant}Size${(0,lt.A)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,d.A)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,d.A)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,d.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ut.focusVisible}`]:(0,d.A)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ut.disabled}`]:(0,d.A)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,xe.X4)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ut.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ut.disabled}`]:{boxShadow:"none"}})),gt=(0,ke.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${(0,lt.A)(r.size)}`]]}})((({ownerState:e})=>(0,d.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},pt(e)))),yt=(0,ke.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${(0,lt.A)(r.size)}`]]}})((({ownerState:e})=>(0,d.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},pt(e)))),vt=h.forwardRef((function(e,t){const r=h.useContext(dt),n=h.useContext(ft),o=(0,Ae.A)(r,e),i=(0,Ce.b)({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:y,fullWidth:b=!1,size:O="medium",startIcon:A,type:w,variant:x="text"}=i,k=(0,f.A)(i,ht),S=(0,d.A)({},i,{color:s,component:l,disabled:u,disableElevation:p,disableFocusRipple:m,fullWidth:b,size:O,type:w,variant:x}),C=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${(0,lt.A)(t)}`,`size${(0,lt.A)(o)}`,`${i}Size${(0,lt.A)(o)}`,`color${(0,lt.A)(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,lt.A)(o)}`],endIcon:["icon","endIcon",`iconSize${(0,lt.A)(o)}`]},l=(0,we.A)(s,ct,a);return(0,d.A)({},a,l)})(S),P=A&&(0,v.jsx)(gt,{className:C.startIcon,ownerState:S,children:A}),E=g&&(0,v.jsx)(yt,{className:C.endIcon,ownerState:S,children:g}),_=n||"";return(0,v.jsxs)(mt,(0,d.A)({ownerState:S,className:(0,Oe.A)(r.className,C.root,c,_),component:l,disabled:u,focusRipple:!m,focusVisibleClassName:(0,Oe.A)(C.focusVisible,y),ref:t,type:w},k,{classes:C,children:[P,a,E]}))})),bt=vt,Ot=h.createContext(void 0);function At(){return h.useContext(Ot)}var wt=__webpack_require__(11317),xt=__webpack_require__(10733),kt=__webpack_require__(58749),St=__webpack_require__(33571);const Ct=["ownerState"],Pt=["variants"],Et=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _t(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const jt=(0,kt.A)(),Mt=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Tt({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function qt(e){return e?(t,r)=>r[e]:null}function Dt(e,t){let{ownerState:r}=t,n=(0,f.A)(t,Ct);const o="function"==typeof e?e((0,d.A)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Dt(e,(0,d.A)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,f.A)(o,Pt);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,d.A)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,d.A)({ownerState:r},n,r)):e.style))})),t}return o}const Rt=function(e={}){const{themeId:t,defaultTheme:r=jt,rootShouldForwardProp:n=_t,slotShouldForwardProp:o=_t}=e,i=e=>(0,St.A)((0,d.A)({},e,{theme:Tt((0,d.A)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,xt.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:h=qt(Mt(l))}=a,p=(0,f.A)(a,Et),m=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,g=u||!1;let y=_t;"Root"===l||"root"===l?y=n:l?y=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(y=void 0);const v=(0,xt.default)(e,(0,d.A)({shouldForwardProp:y,label:void 0},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,wt.Q)(e)?n=>Dt(e,(0,d.A)({},n,{theme:Tt({theme:n.theme,defaultTheme:r,themeId:t})})):e,O=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&h&&l.push((e=>{const n=Tt((0,d.A)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Dt(r,(0,d.A)({},e,{theme:n}))})),h(e,i)})),s&&!m&&l.push((e=>{var n;const o=Tt((0,d.A)({},e,{defaultTheme:r,themeId:t}));return Dt({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,d.A)({},e,{theme:o}))})),g||l.push(i);const c=l.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const u=v(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return v.withConfig&&(O.withConfig=v.withConfig),O}}(),Lt=Rt,It=(0,kt.A)(),$t=function(e=It){return A(e)};var Nt=__webpack_require__(39599),Qt=__webpack_require__(89452),Bt=__webpack_require__(68248);const zt=["component","direction","spacing","divider","children","className","useFlexGap"],Ft=(0,kt.A)(),Ut=Lt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Zt(e){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=$t(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?(0,Ae.A)(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}({props:e,name:"MuiStack",defaultTheme:Ft})}function Vt(e,t){const r=h.Children.toArray(e).filter(Boolean);return r.reduce(((e,n,o)=>(e.push(n),o<r.length-1&&e.push(h.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Wt=({ownerState:e,theme:t})=>{let r=(0,d.A)({display:"flex",flexDirection:"column"},(0,Qt.NI)({theme:t},(0,Qt.kW)({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const n=(0,Bt.LX)(t),o=Object.keys(t.breakpoints.values).reduce(((t,r)=>(("object"==typeof e.spacing&&null!=e.spacing[r]||"object"==typeof e.direction&&null!=e.direction[r])&&(t[r]=!0),t)),{}),i=(0,Qt.kW)({values:e.direction,base:o}),a=(0,Qt.kW)({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,r)=>{if(!i[e]){const n=t>0?i[r[t-1]]:"column";i[e]=n}}));const s=(t,r)=>{return e.useFlexGap?{gap:(0,Bt._W)(n,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?i[r]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Bt._W)(n,t)}};var o};r=(0,wt.A)(r,(0,Qt.NI)({theme:t},a,s))}return r=(0,Qt.iZ)(t.breakpoints,r),r},Yt=function(e={}){const{createStyledComponent:t=Ut,useThemeProps:r=Zt,componentName:n="MuiStack"}=e,o=t(Wt),i=h.forwardRef((function(e,t){const i=r(e),a=(0,Nt.A)(i),{component:s="div",direction:l="column",spacing:c=0,divider:u,children:h,className:p,useFlexGap:m=!1}=a,g=(0,f.A)(a,zt),y={direction:l,spacing:c,useFlexGap:m},b=(0,we.A)({root:["root"]},(e=>(0,rt.Ay)(n,e)),{});return(0,v.jsx)(o,(0,d.A)({as:s,ownerState:y,ref:t,className:(0,Oe.A)(b.root,p)},g,{children:u?Vt(h,u):h}))}));return i}({createStyledComponent:(0,ke.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,Ce.b)({props:e,name:"MuiStack"})}),Xt=Yt;function Ht(e){return(0,rt.Ay)("MuiTypography",e)}(0,Be.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gt=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Kt=(0,ke.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${(0,lt.A)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,d.A)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Jt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},er={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tr=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiTypography"}),n=(e=>er[e]||e)(r.color),o=(0,Nt.A)((0,d.A)({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:h="body1",variantMapping:p=Jt}=o,m=(0,f.A)(o,Gt),g=(0,d.A)({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:h,variantMapping:p}),y=s||(u?"p":p[h]||Jt[h])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&`align${(0,lt.A)(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return(0,we.A)(s,Ht,a)})(g);return(0,v.jsx)(Kt,(0,d.A)({as:y,ref:t,ownerState:g,className:(0,Oe.A)(b.root,a)},m))})),rr=tr;function nr(e){return(0,rt.Ay)("MuiFormControlLabel",e)}const or=(0,Be.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function ir({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const ar=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],sr=(0,ke.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${or.label}`]:t.label},t.root,t[`labelPlacement${(0,lt.A)(r.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,d.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${or.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${or.label}`]:{[`&.${or.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),lr=(0,ke.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${or.error}`]:{color:(e.vars||e).palette.error.main}}))),cr=h.forwardRef((function(e,t){var r,n;const o=(0,Ce.b)({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:s,disabled:l,disableTypography:c,label:u,labelPlacement:p="end",required:m,slotProps:g={}}=o,y=(0,f.A)(o,ar),b=At(),O=null!=(r=null!=l?l:s.props.disabled)?r:null==b?void 0:b.disabled,A=null!=m?m:s.props.required,w={disabled:O,required:A};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===s.props[e]&&void 0!==o[e]&&(w[e]=o[e])}));const x=ir({props:o,muiFormControl:b,states:["error"]}),k=(0,d.A)({},o,{disabled:O,labelPlacement:p,required:A,error:x.error}),S=(e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled",`labelPlacement${(0,lt.A)(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,we.A)(a,nr,t)})(k),C=null!=(n=g.typography)?n:a.typography;let P=u;return null==P||P.type===rr||c||(P=(0,v.jsx)(rr,(0,d.A)({component:"span"},C,{className:(0,Oe.A)(S.label,null==C?void 0:C.className),children:P}))),(0,v.jsxs)(sr,(0,d.A)({className:(0,Oe.A)(S.root,i),ownerState:k,ref:t},y,{children:[h.cloneElement(s,w),A?(0,v.jsxs)(Xt,{display:"block",children:[P,(0,v.jsxs)(lr,{ownerState:k,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):P]}))})),ur=cr;var dr=__webpack_require__(14792),fr=__webpack_require__.n(dr),hr=__webpack_require__(78729),pr=__webpack_require__(62600);const mr=function(){return p().createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p().createElement("path",{d:"M8.1 11.7H9.9V13.5H8.1V11.7ZM8.1 4.5H9.9V9.9H8.1V4.5ZM8.991 0C4.023 0 0 4.032 0 9C0 13.968 4.023 18 8.991 18C13.968 18 18 13.968 18 9C18 4.032 13.968 0 8.991 0ZM9 16.2C5.022 16.2 1.8 12.978 1.8 9C1.8 5.022 5.022 1.8 9 1.8C12.978 1.8 16.2 5.022 16.2 9C16.2 12.978 12.978 16.2 9 16.2Z",fill:"#B01F14"}))};var gr=__webpack_require__(19429),yr={};function vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}yr.styleTagTransform=Y(),yr.setAttributes=U(),yr.insert=z().bind(null,"head"),yr.domAPI=Q(),yr.insertStyleElement=V(),$()(gr.Ay,yr),gr.Ay&&gr.Ay.locals&&gr.Ay.locals;const br=function(e){var t=e.error,r=function(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=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,h.useState)(!1),2),n=r[0],o=r[1];return p().createElement("div",{className:gr.Un,"data-testid":"form-general-error-container"},p().createElement("div",{className:gr.P0},p().createElement(mr,null)),p().createElement("p",{className:"".concat(gr.gJ," ").concat(n?"":gr.$h),"data-testid":"form-general-error-message"},t),p().createElement("div",{className:gr.xf},p().createElement("button",{type:"button",onClick:function(){o((function(e){return!e}))}},n?p().createElement(hr.V,{"data-testid":"form-list__sort-down-button",color:"#B01F14"}):p().createElement(pr.U,{"data-testid":"form-list__sort-up-button",color:"#B01F14"}))))};var Or=__webpack_require__(88310),Ar={};Ar.styleTagTransform=Y(),Ar.setAttributes=U(),Ar.insert=z().bind(null,"head"),Ar.domAPI=Q(),Ar.insertStyleElement=V(),$()(Or.Ay,Ar),Or.Ay&&Or.Ay.locals&&Or.Ay.locals;var wr=__webpack_require__(41159);function xr(e){return(0,rt.Ay)("PrivateSwitchBase",e)}(0,Be.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kr=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Sr=(0,ke.Ay)(st)((({ownerState:e})=>(0,d.A)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Cr=(0,ke.Ay)("input",{shouldForwardProp:Se.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Pr=h.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:h,inputProps:p,inputRef:m,name:g,onBlur:y,onChange:b,onFocus:O,readOnly:A,required:w=!1,tabIndex:x,type:k,value:S}=e,C=(0,f.A)(e,kr),[P,E]=(0,wr.A)({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),_=At();let j=s;_&&void 0===j&&(j=_.disabled);const M="checkbox"===k||"radio"===k,T=(0,d.A)({},e,{checked:P,disabled:j,disableFocusRipple:l,edge:c}),q=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${(0,lt.A)(o)}`],input:["input"]};return(0,we.A)(i,xr,t)})(T);return(0,v.jsxs)(Sr,(0,d.A)({component:"span",className:(0,Oe.A)(q.root,i),centerRipple:!0,focusRipple:!l,disabled:j,tabIndex:null,role:void 0,onFocus:e=>{O&&O(e),_&&_.onFocus&&_.onFocus(e)},onBlur:e=>{y&&y(e),_&&_.onBlur&&_.onBlur(e)},ownerState:T,ref:t},C,{children:[(0,v.jsx)(Cr,(0,d.A)({autoFocus:r,checked:n,defaultChecked:a,className:q.input,disabled:j,id:M?h:void 0,name:g,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),b&&b(e,t)},readOnly:A,ref:m,required:w,ownerState:T,tabIndex:x,type:k},"checkbox"===k&&void 0===S?{}:{value:S},p)),P?o:u]}))})),Er=Pr;function _r(e){return(0,rt.Ay)("MuiSwitch",e)}const jr=(0,Be.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Mr=["className","color","edge","size","sx"],Tr=(0,ke.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${(0,lt.A)(r.edge)}`],t[`size${(0,lt.A)(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,[`& .${jr.thumb}`]:{width:16,height:16},[`& .${jr.switchBase}`]:{padding:4,[`&.${jr.checked}`]:{transform:"translateX(16px)"}}}}]}),qr=(0,ke.Ay)(Er,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${jr.input}`]:t.input},"default"!==r.color&&t[`color${(0,lt.A)(r.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${jr.checked}`]:{transform:"translateX(20px)"},[`&.${jr.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${jr.checked} + .${jr.track}`]:{opacity:.5},[`&.${jr.disabled} + .${jr.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${jr.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${jr.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jr.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?(0,xe.a)(e.palette[t].main,.62):(0,xe.e$)(e.palette[t].main,.55)}`}},[`&.${jr.checked} + .${jr.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),Dr=(0,ke.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),Rr=(0,ke.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Lr=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiSwitch"}),{className:n,color:o="primary",edge:i=!1,size:a="medium",sx:s}=r,l=(0,f.A)(r,Mr),c=(0,d.A)({},r,{color:o,edge:i,size:a}),u=(e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:a}=e,s={root:["root",r&&`edge${(0,lt.A)(r)}`,`size${(0,lt.A)(n)}`],switchBase:["switchBase",`color${(0,lt.A)(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,we.A)(s,_r,t);return(0,d.A)({},t,l)})(c),h=(0,v.jsx)(Rr,{className:u.thumb,ownerState:c});return(0,v.jsxs)(Tr,{className:(0,Oe.A)(u.root,n),sx:s,ownerState:c,children:[(0,v.jsx)(qr,(0,d.A)({type:"checkbox",icon:h,checkedIcon:h,ref:t,ownerState:c},l,{classes:(0,d.A)({},u,{root:u.switchBase})})),(0,v.jsx)(Dr,{className:u.track,ownerState:c})]})})),Ir=Lr;var $r=(0,ke.Ay)(Ir)((function(){return{"& .MuiSwitch-switchBase.Mui-checked":{color:"white"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#4A96D2",opacity:1,"&:hover":{backgroundColor:"#255F8E"}}}}));function Nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Nr(e,t,r[t])}))}return e}var Br={add:p().createElement(ye.A,{"data-testid":"formfooter__add-icon"}),save:p().createElement(ve.A,{"data-testid":"formfooter__save-icon"}),update:p().createElement(be.K,{size:14,"data-testid":"formfooter__update-icon"})};const zr=function(e){var t,r,n,o,i,a,s,l,c,u,d,f=e.controlProps,m=e.error,g=e.iconType,y=e.loading,v=e.onSubmit,b=(0,h.useContext)(L.og),O=b.formControls,A=b.isExpertMode,w=b.hasExpertMode,x=b.toggleExpertMode,k=g&&Br[g.toLowerCase()],S=g&&fr()(g)||"Add",C=null!==(l=null==f||null===(t=f.footerProps)||void 0===t?void 0:t.style)&&void 0!==l?l:{},P=null!==(c=null==f||null===(n=f.footerProps)||void 0===n||null===(r=n.container)||void 0===r?void 0:r.style)&&void 0!==c?c:{},E=null!==(u=null==f||null===(i=f.footerProps)||void 0===i||null===(o=i.submitButtonContainer)||void 0===o?void 0:o.style)&&void 0!==u?u:{},_=null!==(d=null==f||null===(s=f.footerProps)||void 0===s||null===(a=s.submitButton)||void 0===a?void 0:a.sx)&&void 0!==d?d:{};return p().createElement("div",{"data-testid":"form-footer-container",className:Or.Nd,style:C},m&&p().createElement("div",{className:Or.fV},p().createElement(br,{error:m})),p().createElement("div",{className:Or.gO,style:P},w?p().createElement(ur,{"data-testid":"formfooter__expert-mode",control:p().createElement($r,{checked:A,onChange:x}),label:"Expert Mode",sx:{color:"rgba(0,0,0,.54)",marginBottom:0,input:{marginTop:0},".MuiTypography-root":{fontSize:12}}}):p().createElement("div",null),p().createElement("div",{className:Or.VT,style:E},p().createElement("span",{className:Or.wQ},"* Please fill in all required fields"),p().createElement(bt,{"data-testid":"formfooter__submit",id:"submit-button",variant:"contained",type:"submit",form:"form-horizontal xhtmlInstantForm",onClick:function(){return v(O)},disabled:y,sx:Qr({backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},_),endIcon:y?p().createElement("svg",{className:"".concat(Or.aU," run-button__spinner"),"data-testid":"formfooter__loading-icon",xmlns:"http://www.w3.org/2000/svg",width:"21.076",height:"20.31",viewBox:"0 0 21.076 20.31"},p().createElement("g",{id:"Gruppe_272","data-name":"Gruppe 272",transform:"translate(-269.58 -82.717)"},p().createElement("path",{id:"Pfad_338","data-name":"Pfad 338",d:"M278.934,84.754l3.514-2.03v4.06l-3.514,2.03Z",transform:"translate(-5.841 -0.004)",fill:"#fff"}),p().createElement("path",{id:"Pfad_339","data-name":"Pfad 339",d:"M288.29,86.784v-4.06l3.514,2.03v4.06Z",transform:"translate(-11.683 -0.004)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_340","data-name":"Pfad 340",d:"M282.45,119.233v-4.06l-3.514,2.03v4.06Z",transform:"translate(-5.842 -20.266)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_341","data-name":"Pfad 341",d:"M285.963,128.014l-3.515-2.03-3.514,2.03,3.514,2.03Z",transform:"translate(-5.841 -27.017)",fill:"#fff"}),p().createElement("path",{id:"Pfad_342","data-name":"Pfad 342",d:"M297.625,124.639l3.514,2.03v-4.06l-3.514-2.03Z",transform:"translate(-17.513 -23.642)",fill:"#fff"}),p().createElement("path",{id:"Pfad_343","data-name":"Pfad 343",d:"M306.981,122.609v4.06l3.514-2.03v-4.06Z",transform:"translate(-23.355 -23.642)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_344","data-name":"Pfad 344",d:"M273.094,106.394v4.06l-3.514-2.03v-4.06Z",transform:"translate(0 -13.516)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_345","data-name":"Pfad 345",d:"M276.608,100.988l-3.514,2.03-3.514-2.03,3.514-2.03Z",transform:"translate(0 -10.141)",fill:"#fff"}),p().createElement("path",{id:"Pfad_346","data-name":"Pfad 346",d:"M310.5,92.185l-3.514,2.03v-4.06l3.514-2.03Z",transform:"translate(-23.355 -3.377)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_347","data-name":"Pfad 347",d:"M304.657,84.747l-3.514,2.03-3.514-2.03,3.514-2.03Z",transform:"translate(-17.515)",fill:"#fff"}),p().createElement("path",{id:"Pfad_348","data-name":"Pfad 348",d:"M319.853,100.968l-3.514-2.03V103l3.514,2.03Z",transform:"translate(-29.198 -10.129)",fill:"#f0f0f0"}),p().createElement("path",{id:"Pfad_349","data-name":"Pfad 349",d:"M314.011,111.778l-3.514-2.03-3.514,2.03,3.514,2.03Z",transform:"translate(-23.356 -16.879)",fill:"#fff"}))):k||Br.add},S))))};var Fr=__webpack_require__(58156),Ur=__webpack_require__.n(Fr),Zr=__webpack_require__(6924),Vr=__webpack_require__.n(Zr),Wr=__webpack_require__(57600),Yr={};Yr.styleTagTransform=Y(),Yr.setAttributes=U(),Yr.insert=z().bind(null,"head"),Yr.domAPI=Q(),Yr.insertStyleElement=V(),$()(Wr.Ay,Yr);const Xr=Wr.Ay&&Wr.Ay.locals?Wr.Ay.locals:void 0;var Hr=__webpack_require__(74870),Gr={};Gr.styleTagTransform=Y(),Gr.setAttributes=U(),Gr.insert=z().bind(null,"head"),Gr.domAPI=Q(),Gr.insertStyleElement=V(),$()(Hr.Ay,Gr);const Kr=Hr.Ay&&Hr.Ay.locals?Hr.Ay.locals:void 0,Jr=function(e){return"string"==typeof e},en=function(e,t,r){return void 0===e||Jr(e)?t:(0,d.A)({},t,{ownerState:(0,d.A)({},t.ownerState,r)})};var tn=__webpack_require__(22765);function rn(){const e=$t(tn.A);return e[j.A]||e}var nn=__webpack_require__(69514),on=__webpack_require__.n(nn);var an="unmounted",sn="exited",ln="entering",cn="entered",un="exiting",dn=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=sn,n.appearStatus=ln):o=cn:o=t.unmountOnExit||t.mountOnEnter?an:sn,n.state={status:o},n.nextCallback=null,n}Me(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===an?{status:sn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ln&&r!==cn&&(t=ln):r!==ln&&r!==cn||(t=un)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ln){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:on().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sn&&this.setState({status:an})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[on().findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;e||r?(this.props.onEnter(i,a),this.safeSetState({status:ln},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:cn},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:cn},(function(){t.props.onEntered(i)}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:on().findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:un},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:sn},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:sn},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:on().findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===an)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,f.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return p().createElement(Te.Provider,{value:null},"function"==typeof r?r(e,n):p().cloneElement(p().Children.only(r),n))},t}(p().Component);function fn(){}dn.contextType=Te,dn.propTypes={},dn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fn,onEntering:fn,onEntered:fn,onExit:fn,onExiting:fn,onExited:fn},dn.UNMOUNTED=an,dn.EXITED=sn,dn.ENTERING=ln,dn.ENTERED=cn,dn.EXITING=un;const hn=dn,pn=e=>e.scrollTop;function mn(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}const gn=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function yn(e){return`scale(${e}, ${e**2})`}const vn={entering:{opacity:1,transform:yn(1)},entered:{opacity:1,transform:"none"}},bn="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),On=h.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:p,onExiting:m,style:g,timeout:y="auto",TransitionComponent:b=hn}=e,O=(0,f.A)(e,gn),A=(0,Qe.A)(),w=h.useRef(),x=rn(),k=h.useRef(null),S=(0,Pe.A)(k,o.ref,t),C=e=>t=>{if(e){const r=k.current;void 0===t?e(r):e(r,t)}},P=C(c),E=C(((e,t)=>{pn(e);const{duration:r,delay:n,easing:o}=mn({style:g,timeout:y,easing:i},{mode:"enter"});let a;"auto"===y?(a=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:bn?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),_=C(l),j=C(m),M=C((e=>{const{duration:t,delay:r,easing:n}=mn({style:g,timeout:y,easing:i},{mode:"exit"});let o;"auto"===y?(o=x.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:bn?o:.666*o,delay:bn?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=yn(.75),u&&u(e)})),T=C(p);return(0,v.jsx)(b,(0,d.A)({appear:n,in:a,nodeRef:k,onEnter:E,onEntered:_,onEntering:P,onExit:M,onExited:T,onExiting:j,addEndListener:e=>{"auto"===y&&A.start(w.current||0,e),r&&r(k.current,e)},timeout:"auto"===y?null:y},O,{children:(e,t)=>h.cloneElement(o,(0,d.A)({style:(0,d.A)({opacity:0,transform:yn(.75),visibility:"exited"!==e||a?void 0:"hidden"},vn[e],g,o.props.style),ref:S},t))}))}));On.muiSupportAuto=!0;const An=On;var wn=__webpack_require__(72923),xn=__webpack_require__(31523),kn=__webpack_require__(21529),Sn=__webpack_require__(32325);function Cn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pn(e){return e instanceof Cn(e).Element||e instanceof Element}function En(e){return e instanceof Cn(e).HTMLElement||e instanceof HTMLElement}function _n(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Cn(e).ShadowRoot||e instanceof ShadowRoot)}var jn=Math.max,Mn=Math.min,Tn=Math.round;function qn(){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 Dn(){return!/^((?!chrome|android).)*safari/i.test(qn())}function Rn(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&En(e)&&(o=e.offsetWidth>0&&Tn(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Tn(n.height)/e.offsetHeight||1);var a=(Pn(e)?Cn(e):window).visualViewport,s=!Dn()&&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 Ln(e){var t=Cn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function In(e){return e?(e.nodeName||"").toLowerCase():null}function $n(e){return((Pn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nn(e){return Rn($n(e)).left+Ln(e).scrollLeft}function Qn(e){return Cn(e).getComputedStyle(e)}function Bn(e){var t=Qn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function zn(e,t,r){void 0===r&&(r=!1);var n,o,i=En(t),a=En(t)&&function(e){var t=e.getBoundingClientRect(),r=Tn(t.width)/e.offsetWidth||1,n=Tn(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=$n(t),l=Rn(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==In(t)||Bn(s))&&(c=(n=t)!==Cn(n)&&En(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:Ln(n)),En(t)?((u=Rn(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Nn(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Fn(e){var t=Rn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Un(e){return"html"===In(e)?e:e.assignedSlot||e.parentNode||(_n(e)?e.host:null)||$n(e)}function Zn(e){return["html","body","#document"].indexOf(In(e))>=0?e.ownerDocument.body:En(e)&&Bn(e)?e:Zn(Un(e))}function Vn(e,t){var r;void 0===t&&(t=[]);var n=Zn(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Cn(n),a=o?[i].concat(i.visualViewport||[],Bn(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Vn(Un(a)))}function Wn(e){return["table","td","th"].indexOf(In(e))>=0}function Yn(e){return En(e)&&"fixed"!==Qn(e).position?e.offsetParent:null}function Xn(e){for(var t=Cn(e),r=Yn(e);r&&Wn(r)&&"static"===Qn(r).position;)r=Yn(r);return r&&("html"===In(r)||"body"===In(r)&&"static"===Qn(r).position)?t:r||function(e){var t=/firefox/i.test(qn());if(/Trident/i.test(qn())&&En(e)&&"fixed"===Qn(e).position)return null;var r=Un(e);for(_n(r)&&(r=r.host);En(r)&&["html","body"].indexOf(In(r))<0;){var n=Qn(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 Hn="top",Gn="bottom",Kn="right",Jn="left",eo="auto",to=[Hn,Gn,Kn,Jn],ro="start",no="end",oo="viewport",io="popper",ao=to.reduce((function(e,t){return e.concat([t+"-"+ro,t+"-"+no])}),[]),so=[].concat(to,[eo]).reduce((function(e,t){return e.concat([t,t+"-"+ro,t+"-"+no])}),[]),lo=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function co(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var uo={placement:"bottom",modifiers:[],strategy:"absolute"};function fo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ho(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?uo:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},uo,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:Pn(e)?Vn(e):e.contextElement?Vn(e.contextElement):[],popper:Vn(t)};var a=function(e){var t=co(e);return lo.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.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}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:n});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(fo(t,r)){s.rects={reference:zn(t,Xn(r),"fixed"===s.options.strategy),popper:Fn(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!fo(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}}var po={passive:!0};const mo={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=Cn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",r.update,po)})),s&&l.addEventListener("resize",r.update,po),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",r.update,po)})),s&&l.removeEventListener("resize",r.update,po)}},data:{}};function go(e){return e.split("-")[0]}function yo(e){return e.split("-")[1]}function vo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bo(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?go(o):null,a=o?yo(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case Hn:t={x:s,y:r.y-n.height};break;case Gn:t={x:s,y:r.y+r.height};break;case Kn:t={x:r.x+r.width,y:l};break;case Jn:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?vo(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ro:t[c]=t[c]-(r[u]/2-n[u]/2);break;case no:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Oo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ao(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=void 0===f?0:f,p=a.y,m=void 0===p?0:p,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),b=Jn,O=Hn,A=window;if(c){var w=Xn(r),x="clientHeight",k="clientWidth";w===Cn(r)&&"static"!==Qn(w=$n(r)).position&&"absolute"===s&&(x="scrollHeight",k="scrollWidth"),(o===Hn||(o===Jn||o===Kn)&&i===no)&&(O=Gn,m-=(d&&w===A&&A.visualViewport?A.visualViewport.height:w[x])-n.height,m*=l?1:-1),o!==Jn&&(o!==Hn&&o!==Gn||i!==no)||(b=Kn,h-=(d&&w===A&&A.visualViewport?A.visualViewport.width:w[k])-n.width,h*=l?1:-1)}var S,C=Object.assign({position:s},c&&Oo),P=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Tn(r*o)/o||0,y:Tn(n*o)/o||0}}({x:h,y:m},Cn(r)):{x:h,y:m};return h=P.x,m=P.y,l?Object.assign({},C,((S={})[O]=v?"0":"",S[b]=y?"0":"",S.transform=(A.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",S)):Object.assign({},C,((t={})[O]=v?m+"px":"",t[b]=y?h+"px":"",t.transform="",t))}const wo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:go(t.placement),variation:yo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ao(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ao(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},xo={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];En(o)&&In(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}),{});En(n)&&In(n)&&(Object.assign(n.style,i),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]},ko={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=so.reduce((function(e,r){return e[r]=function(e,t,r){var n=go(e),o=[Jn,Hn].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Jn,Kn].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var So={left:"right",right:"left",bottom:"top",top:"bottom"};function Co(e){return e.replace(/left|right|bottom|top/g,(function(e){return So[e]}))}var Po={start:"end",end:"start"};function Eo(e){return e.replace(/start|end/g,(function(e){return Po[e]}))}function _o(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_n(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function jo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mo(e,t,r){return t===oo?jo(function(e,t){var r=Cn(e),n=$n(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Dn();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Nn(e),y:l}}(e,r)):Pn(t)?function(e,t){var r=Rn(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):jo(function(e){var t,r=$n(e),n=Ln(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=jn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=jn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Nn(e),l=-n.scrollTop;return"rtl"===Qn(o||r).direction&&(s+=jn(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}($n(e)))}function To(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qo(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function Do(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?oo:c,d=r.elementContext,f=void 0===d?io:d,h=r.altBoundary,p=void 0!==h&&h,m=r.padding,g=void 0===m?0:m,y=To("number"!=typeof g?g:qo(g,to)),v=f===io?"reference":io,b=e.rects.popper,O=e.elements[p?v:f],A=function(e,t,r,n){var o="clippingParents"===t?function(e){var t=Vn(Un(e)),r=["absolute","fixed"].indexOf(Qn(e).position)>=0&&En(e)?Xn(e):e;return Pn(r)?t.filter((function(e){return Pn(e)&&_o(e,r)&&"body"!==In(e)})):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce((function(t,r){var o=Mo(e,r,n);return t.top=jn(o.top,t.top),t.right=Mn(o.right,t.right),t.bottom=Mn(o.bottom,t.bottom),t.left=jn(o.left,t.left),t}),Mo(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Pn(O)?O:O.contextElement||$n(e.elements.popper),l,u,a),w=Rn(e.elements.reference),x=bo({reference:w,element:b,strategy:"absolute",placement:o}),k=jo(Object.assign({},b,x)),S=f===io?k:w,C={top:A.top-S.top+y.top,bottom:S.bottom-A.bottom+y.bottom,left:A.left-S.left+y.left,right:S.right-A.right+y.right},P=e.modifiersData.offset;if(f===io&&P){var E=P[o];Object.keys(C).forEach((function(e){var t=[Kn,Gn].indexOf(e)>=0?1:-1,r=[Hn,Gn].indexOf(e)>=0?"y":"x";C[e]+=E[r]*t}))}return C}const Ro={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,f=r.altBoundary,h=r.flipVariations,p=void 0===h||h,m=r.allowedAutoPlacements,g=t.options.placement,y=go(g),v=l||(y!==g&&p?function(e){if(go(e)===eo)return[];var t=Co(e);return[Eo(e),t,Eo(t)]}(g):[Co(g)]),b=[g].concat(v).reduce((function(e,r){return e.concat(go(r)===eo?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?so:l,u=yo(n),d=u?s?ao:ao.filter((function(e){return yo(e)===u})):to,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var h=f.reduce((function(t,r){return t[r]=Do(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[go(r)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):r)}),[]),O=t.rects.reference,A=t.rects.popper,w=new Map,x=!0,k=b[0],S=0;S<b.length;S++){var C=b[S],P=go(C),E=yo(C)===ro,_=[Hn,Gn].indexOf(P)>=0,j=_?"width":"height",M=Do(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),T=_?E?Kn:Jn:E?Gn:Hn;O[j]>A[j]&&(T=Co(T));var q=Co(T),D=[];if(i&&D.push(M[P]<=0),s&&D.push(M[T]<=0,M[q]<=0),D.every((function(e){return e}))){k=C,x=!1;break}w.set(C,D)}if(x)for(var R=function(e){var t=b.find((function(t){var r=w.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},L=p?3:1;L>0&&"break"!==R(L);L--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Lo(e,t,r){return jn(e,Mn(t,r))}const Io={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,h=void 0===f||f,p=r.tetherOffset,m=void 0===p?0:p,g=Do(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=go(t.placement),v=yo(t.placement),b=!v,O=vo(y),A="x"===O?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,k=t.rects.popper,S="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(i){var _,j="y"===O?Hn:Jn,M="y"===O?Gn:Kn,T="y"===O?"height":"width",q=w[O],D=q+g[j],R=q-g[M],L=h?-k[T]/2:0,I=v===ro?x[T]:k[T],$=v===ro?-k[T]:-x[T],N=t.elements.arrow,Q=h&&N?Fn(N):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=B[j],F=B[M],U=Lo(0,x[T],Q[T]),Z=b?x[T]/2-L-U-z-C.mainAxis:I-U-z-C.mainAxis,V=b?-x[T]/2+L+U+F+C.mainAxis:$+U+F+C.mainAxis,W=t.elements.arrow&&Xn(t.elements.arrow),Y=W?"y"===O?W.clientTop||0:W.clientLeft||0:0,X=null!=(_=null==P?void 0:P[O])?_:0,H=q+V-X,G=Lo(h?Mn(D,q+Z-X-Y):D,q,h?jn(R,H):R);w[O]=G,E[O]=G-q}if(s){var K,J="x"===O?Hn:Jn,ee="x"===O?Gn:Kn,te=w[A],re="y"===A?"height":"width",ne=te+g[J],oe=te-g[ee],ie=-1!==[Hn,Jn].indexOf(y),ae=null!=(K=null==P?void 0:P[A])?K:0,se=ie?ne:te-x[re]-k[re]-ae+C.altAxis,le=ie?te+x[re]+k[re]-ae-C.altAxis:oe,ce=h&&ie?function(e,t,r){var n=Lo(e,t,r);return n>r?r:n}(se,te,le):Lo(h?se:ne,te,h?le:oe);w[A]=ce,E[A]=ce-te}t.modifiersData[n]=E}},requiresIfExists:["offset"]},$o={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=go(r.placement),l=vo(s),c=[Jn,Kn].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return To("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qo(e,to))}(o.padding,r),d=Fn(i),f="y"===l?Hn:Jn,h="y"===l?Gn:Kn,p=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],m=a[l]-r.rects.reference[l],g=Xn(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,b=u[f],O=y-d[c]-u[h],A=y/2-d[c]/2+v,w=Lo(b,A,O),x=l;r.modifiersData[n]=((t={})[x]=w,t.centerOffset=w-A,t)}},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)))&&_o(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function No(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 Qo(e){return[Hn,Kn,Gn,Jn].some((function(t){return e[t]>=0}))}var Bo=ho({defaultModifiers:[mo,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=bo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},wo,xo,ko,Ro,Io,$o,{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=Do(t,{elementContext:"reference"}),s=Do(t,{altBoundary:!0}),l=No(a,n),c=No(s,o,i),u=Qo(l),d=Qo(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})}}]});const zo=function(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r},Fo=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t},Uo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],Zo=function(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,f.A)(e,Uo),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=(0,Oe.A)(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,d.A)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=(0,d.A)({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=zo((0,d.A)({},o,n)),s=Fo(n),l=Fo(o),c=t(a),u=(0,Oe.A)(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),f=(0,d.A)({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),h=(0,d.A)({},c,r,l,s);return u.length>0&&(h.className=u),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}((0,d.A)({},a,{externalSlotProps:s})),u=(0,xn.A)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return en(r,(0,d.A)({},l,{ref:u}),o)};var Vo=__webpack_require__(17365);const Wo=h.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=h.useState(null),s=(0,xn.A)(h.isValidElement(r)?r.ref:null,t);if((0,kn.A)((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),(0,kn.A)((()=>{if(i&&!o)return(0,Vo.A)(t,i),()=>{(0,Vo.A)(t,null)}}),[t,i,o]),o){if(h.isValidElement(r)){const e={ref:s};return h.cloneElement(r,e)}return(0,v.jsx)(h.Fragment,{children:r})}return(0,v.jsx)(h.Fragment,{children:i?nn.createPortal(r,i):i})}));function Yo(e){return(0,rt.Ay)("MuiPopper",e)}(0,Be.A)("MuiPopper",["root"]);const Xo=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ho=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Go(e){return"function"==typeof e?e():e}const Ko={},Jo=h.forwardRef((function(e,t){var r;const{anchorEl:n,children:o,direction:i,disablePortal:a,modifiers:s,open:l,placement:c,popperOptions:u,popperRef:p,slotProps:m={},slots:g={},TransitionProps:y}=e,b=(0,f.A)(e,Xo),O=h.useRef(null),A=(0,xn.A)(O,t),w=h.useRef(null),x=(0,xn.A)(w,p),k=h.useRef(x);(0,kn.A)((()=>{k.current=x}),[x]),h.useImperativeHandle(p,(()=>w.current),[]);const S=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}}(c,i),[C,P]=h.useState(S),[E,_]=h.useState(Go(n));h.useEffect((()=>{w.current&&w.current.forceUpdate()})),h.useEffect((()=>{n&&_(Go(n))}),[n]),(0,kn.A)((()=>{if(!E||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{P(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Bo(E,O.current,(0,d.A)({placement:S},u,{modifiers:e}));return k.current(t),()=>{t.destroy(),k.current(null)}}),[E,a,s,l,u,S]);const j={placement:C};null!==y&&(j.TransitionProps=y);const M=(e=>{const{classes:t}=e;return(0,we.A)({root:["root"]},Yo,t)})(e),T=null!=(r=g.root)?r:"div",q=Zo({elementType:T,externalSlotProps:m.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:A},ownerState:e,className:M.root});return(0,v.jsx)(T,(0,d.A)({},q,{children:"function"==typeof o?o(j):o}))})),ei=h.forwardRef((function(e,t){const{anchorEl:r,children:n,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:l,open:c,placement:u="bottom",popperOptions:p=Ko,popperRef:m,style:g,transition:y=!1,slotProps:b={},slots:O={}}=e,A=(0,f.A)(e,Ho),[w,x]=h.useState(!0);if(!s&&!c&&(!y||w))return null;let k;if(o)k=o;else if(r){const e=Go(r);k=e&&void 0!==e.nodeType?(0,Sn.A)(e).body:(0,Sn.A)(null).body}const S=c||!s||y&&!w?void 0:"none",C=y?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return(0,v.jsx)(Wo,{disablePortal:a,container:k,children:(0,v.jsx)(Jo,(0,d.A)({anchorEl:r,direction:i,disablePortal:a,modifiers:l,ref:t,open:y?!w:c,placement:u,popperOptions:p,popperRef:m,slotProps:b,slots:O},A,{style:(0,d.A)({position:"fixed",top:0,left:0,display:S},g),TransitionProps:C,children:n}))})})),ti=ei,ri=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ni=(0,ke.Ay)(ti,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oi=h.forwardRef((function(e,t){var r;const n=(0,wn.A)(),o=(0,Ce.b)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:h,modifiers:p,open:m,placement:g,popperOptions:y,popperRef:b,transition:O,slots:A,slotProps:w}=o,x=(0,f.A)(o,ri),k=null!=(r=null==A?void 0:A.root)?r:null==s?void 0:s.Root,S=(0,d.A)({anchorEl:i,container:c,disablePortal:u,keepMounted:h,modifiers:p,open:m,placement:g,popperOptions:y,popperRef:b,transition:O},x);return(0,v.jsx)(ni,(0,d.A)({as:a,direction:null==n?void 0:n.direction,slots:{root:k},slotProps:null!=w?w:l},S,{ref:t}))})),ii=oi;var ai=__webpack_require__(1668);function si(e){return(0,rt.Ay)("MuiTooltip",e)}const li=(0,Be.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ci=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],ui=(0,ke.Ay)(ii,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})((({theme:e,ownerState:t,open:r})=>(0,d.A)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${li.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${li.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${li.arrow}`]:(0,d.A)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${li.arrow}`]:(0,d.A)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),di=(0,ke.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,lt.A)(r.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return(0,d.A)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,xe.X4)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(r=16/14,Math.round(1e5*r)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${li.popper}[data-popper-placement*="left"] &`]:(0,d.A)({transformOrigin:"right center"},t.isRtl?(0,d.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,d.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${li.popper}[data-popper-placement*="right"] &`]:(0,d.A)({transformOrigin:"left center"},t.isRtl?(0,d.A)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,d.A)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${li.popper}[data-popper-placement*="top"] &`]:(0,d.A)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${li.popper}[data-popper-placement*="bottom"] &`]:(0,d.A)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var r})),fi=(0,ke.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,xe.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hi=!1;const pi=new Qe.E;let mi={x:0,y:0};function gi(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const yi=h.forwardRef((function(e,t){var r,n,o,i,a,s,l,c,u,p,m,g,y,b,O,A,w,x,S;const C=(0,Ce.b)({props:e,name:"MuiTooltip"}),{arrow:P=!1,children:E,components:_={},componentsProps:j={},describeChild:M=!1,disableFocusListener:T=!1,disableHoverListener:q=!1,disableInteractive:D=!1,disableTouchListener:R=!1,enterDelay:L=100,enterNextDelay:I=0,enterTouchDelay:$=700,followCursor:N=!1,id:Q,leaveDelay:B=0,leaveTouchDelay:z=1500,onClose:F,onOpen:U,open:Z,placement:V="bottom",PopperComponent:W,PopperProps:Y={},slotProps:X={},slots:H={},title:G,TransitionComponent:K=An,TransitionProps:J}=C,ee=(0,f.A)(C,ci),te=h.isValidElement(E)?E:(0,v.jsx)("span",{children:E}),re=rn(),ne=k(),[oe,ie]=h.useState(),[ae,se]=h.useState(null),le=h.useRef(!1),ce=D||N,ue=(0,Qe.A)(),de=(0,Qe.A)(),fe=(0,Qe.A)(),he=(0,Qe.A)(),[pe,me]=(0,wr.A)({controlled:Z,default:!1,name:"Tooltip",state:"open"});let ge=pe;const ye=(0,ai.A)(Q),ve=h.useRef(),be=(0,Ee.A)((()=>{void 0!==ve.current&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),he.clear()}));h.useEffect((()=>be),[be]);const Ae=e=>{pi.clear(),hi=!0,me(!0),U&&!ge&&U(e)},xe=(0,Ee.A)((e=>{pi.start(800+B,(()=>{hi=!1})),me(!1),F&&ge&&F(e),ue.start(re.transitions.duration.shortest,(()=>{le.current=!1}))})),ke=e=>{le.current&&"touchstart"!==e.type||(oe&&oe.removeAttribute("title"),de.clear(),fe.clear(),L||hi&&I?de.start(hi?I:L,(()=>{Ae(e)})):Ae(e))},Se=e=>{de.clear(),fe.start(B,(()=>{xe(e)}))},{isFocusVisibleRef:je,onBlur:Me,onFocus:Te,ref:qe}=(0,_e.A)(),[,De]=h.useState(!1),Re=e=>{Me(e),!1===je.current&&(De(!1),Se(e))},Le=e=>{oe||ie(e.currentTarget),Te(e),!0===je.current&&(De(!0),ke(e))},Ie=e=>{le.current=!0;const t=te.props;t.onTouchStart&&t.onTouchStart(e)};h.useEffect((()=>{if(ge)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||xe(e)}}),[xe,ge]);const $e=(0,Pe.A)(te.ref,qe,ie,t);G||0===G||(ge=!1);const Ne=h.useRef(),Be={},ze="string"==typeof G;M?(Be.title=ge||!ze||q?null:G,Be["aria-describedby"]=ge?ye:null):(Be["aria-label"]=ze?G:null,Be["aria-labelledby"]=ge&&!ze?ye:null);const Fe=(0,d.A)({},Be,ee,te.props,{className:(0,Oe.A)(ee.className,te.props.className),onTouchStart:Ie,ref:$e},N?{onMouseMove:e=>{const t=te.props;t.onMouseMove&&t.onMouseMove(e),mi={x:e.clientX,y:e.clientY},Ne.current&&Ne.current.update()}}:{}),Ue={};R||(Fe.onTouchStart=e=>{Ie(e),fe.clear(),ue.clear(),be(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",he.start($,(()=>{document.body.style.WebkitUserSelect=ve.current,ke(e)}))},Fe.onTouchEnd=e=>{te.props.onTouchEnd&&te.props.onTouchEnd(e),be(),fe.start(z,(()=>{xe(e)}))}),q||(Fe.onMouseOver=gi(ke,Fe.onMouseOver),Fe.onMouseLeave=gi(Se,Fe.onMouseLeave),ce||(Ue.onMouseOver=ke,Ue.onMouseLeave=Se)),T||(Fe.onFocus=gi(Le,Fe.onFocus),Fe.onBlur=gi(Re,Fe.onBlur),ce||(Ue.onFocus=Le,Ue.onBlur=Re));const Ze=h.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ae),options:{element:ae,padding:4}}];return null!=(e=Y.popperOptions)&&e.modifiers&&(t=t.concat(Y.popperOptions.modifiers)),(0,d.A)({},Y.popperOptions,{modifiers:t})}),[ae,Y]),Ve=(0,d.A)({},C,{isRtl:ne,arrow:P,disableInteractive:ce,placement:V,PopperComponentProp:W,touch:le.current}),We=(e=>{const{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${(0,lt.A)(i.split("-")[0])}`],arrow:["arrow"]};return(0,we.A)(a,si,t)})(Ve),Ye=null!=(r=null!=(n=H.popper)?n:_.Popper)?r:ui,Xe=null!=(o=null!=(i=null!=(a=H.transition)?a:_.Transition)?i:K)?o:An,He=null!=(s=null!=(l=H.tooltip)?l:_.Tooltip)?s:di,Ge=null!=(c=null!=(u=H.arrow)?u:_.Arrow)?c:fi,Ke=en(Ye,(0,d.A)({},Y,null!=(p=X.popper)?p:j.popper,{className:(0,Oe.A)(We.popper,null==Y?void 0:Y.className,null==(m=null!=(g=X.popper)?g:j.popper)?void 0:m.className)}),Ve),Je=en(Xe,(0,d.A)({},J,null!=(y=X.transition)?y:j.transition),Ve),et=en(He,(0,d.A)({},null!=(b=X.tooltip)?b:j.tooltip,{className:(0,Oe.A)(We.tooltip,null==(O=null!=(A=X.tooltip)?A:j.tooltip)?void 0:O.className)}),Ve),tt=en(Ge,(0,d.A)({},null!=(w=X.arrow)?w:j.arrow,{className:(0,Oe.A)(We.arrow,null==(x=null!=(S=X.arrow)?S:j.arrow)?void 0:x.className)}),Ve);return(0,v.jsxs)(h.Fragment,{children:[h.cloneElement(te,Fe),(0,v.jsx)(Ye,(0,d.A)({as:null!=W?W:ii,placement:V,anchorEl:N?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:oe,popperRef:Ne,open:!!oe&&ge,id:ye,transition:!0},Ue,Ke,{popperOptions:Ze,children:({TransitionProps:e})=>(0,v.jsx)(Xe,(0,d.A)({timeout:re.transitions.duration.shorter},e,Je,{children:(0,v.jsxs)(He,(0,d.A)({},et,{children:[G,P?(0,v.jsx)(Ge,(0,d.A)({},tt,{ref:se})):null]}))}))}))]})})),vi=yi;var bi=__webpack_require__(73684);const Oi=function(e){var r,n,o,i,a,s,l,c,u=e.controlProps,d=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["controlProps"]),f=d.id,h=d.objectPathId,m=d.error,g=d.displayName,y=d.required,v=d.hideLabel,b=void 0!==v&&v,O=d.isExpert,A=d.children,w=d.tooltip,x=d.helper,k=m?"error":"",S=O?"expert":"",C=h||f,P=h?"".concat(Hr.Qb," ").concat(Wr.Qb):"".concat(Hr.Qb," ").concat(Wr.Qb," ").concat(Hr.Yt),E=null!==(s=null==u||null===(r=u.controlWrapperProps)||void 0===r?void 0:r.style)&&void 0!==s?s:{},_=null!==(l=null==u||null===(o=u.controlWrapperProps)||void 0===o||null===(n=o.label)||void 0===n?void 0:n.style)&&void 0!==l?l:{},j=null!==(c=null==u||null===(a=u.controlWrapperProps)||void 0===a||null===(i=a.container)||void 0===i?void 0:i.style)&&void 0!==c?c:{};return p().createElement("div",{className:"".concat(Hr.Be," ").concat(Wr.Be," ").concat(t[k]," ").concat(t[S]),style:E},!b&&p().createElement("label",{htmlFor:C,"data-testid":"control-label",className:"".concat(Hr.Px," ").concat(Wr.Px),style:_},p().createElement("div",{className:Hr.g6},p().createElement("span",null,y?"".concat(g," *"):g),w&&p().createElement("div",{className:Hr.YL},p().createElement(vi,{title:w,arrow:!0,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-7]}}]},slotProps:{tooltip:{sx:{display:"flex",padding:"8px",alignItems:"flex-start",gap:"10px",borderRadius:"4px",background:"var(--grey-900, #333)",color:"var(--grey-white, #FFF)",fontFamily:"Roboto",fontSize:"10px",fontStyle:"normal",fontWeight:500,maxWidth:"250px",lineHeight:"normal"}},arrow:{sx:{color:"var(--grey-900, #333)",top:"0"}}}},p().createElement("span",{className:Hr.kA,"data-testid":"tooltip-icon"},p().createElement(bi._,{height:12,width:12})))))),p().createElement("div",{className:P,style:j},A,x&&p().createElement("div",{className:Hr.ro,"data-testid":"helper-text"},x),p().createElement("label",{htmlFor:C,className:Hr.ns},m)))};function Ai(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Ai(e,t,r[t])}))}return e}const xi=function(e){var t,r,n,o,i,a,s,l,c,u=e.Control,d=e.config,f=e.isExpert,m=e.hideLabel,g=void 0!==m&&m,y=e.controlProps,v=d.control,b=d.id,O=d.objectPathId,A=d.groupIsRequired,w=v.error,x=v.displayName,k=v.required,S=(0,h.useContext)(L.og).updateControl,C={id:b,objectPathId:O,error:null==w?void 0:w.message,displayName:x,hideLabel:g,isExpert:f,required:!!A&&k,tooltip:null==v||null===(r=v["custom-attributes"])||void 0===r||null===(t=r.fieldDescription)||void 0===t?void 0:t.tooltip,helper:null==v||null===(o=v["custom-attributes"])||void 0===o||null===(n=o.fieldDescription)||void 0===n?void 0:n.helper},P={objectPathId:O,id:b,control:(l=wi({},v),c={required:!!A&&k,placeholder:null!==(s=null==v||null===(a=v["custom-attributes"])||void 0===a||null===(i=a.fieldDescription)||void 0===i?void 0:i.placeholder)&&void 0!==s?s:null==v?void 0:v.placeholder},c=null!=c?c:{},Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(c)).forEach((function(e){Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(c,e))})),l)};return p().createElement(Oi,wi({controlProps:y},C),p().createElement(u,wi({controlProps:y,onChangeValue:function(e,t){var r=wi({hasChanged:!0},e);S(O||b,Vr()({},v,r,t))}},P)))};function ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Si(e){return function(e){if(Array.isArray(e))return ki(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 ki(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ki(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ci=/mrn:srv:([a-z-A-Z0-9]+):([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}):([^\s]*)/g,Pi=function(e){if(e){var t=Si(e.matchAll(Ci)),r=t&&t[0];return r&&4===r.length?{matchAll:t,mrn:r[0],serviceName:r[1],applicationId:r[2],resource:r[3]}:Ei(e)}},Ei=function(e){var t=Si(e.matchAll(/mrn:srv:([a-z-A-Z0-9]+):([a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12})/g)),r=t&&t[0];return r&&3===r.length?{matchAll:t,mrn:r[0],serviceName:r[1],applicationId:r[2]}:null},_i=__webpack_require__(75003);const ji=(0,_i.A)((0,v.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Mi=(0,_i.A)((0,v.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ti=(0,_i.A)((0,v.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function qi(e){return(0,rt.Ay)("MuiCheckbox",e)}const Di=(0,Be.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Ri=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Li=(0,ke.Ay)(Er,{shouldForwardProp:e=>(0,Se.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,lt.A)(r.size)}`],"default"!==r.color&&t[`color${(0,lt.A)(r.color)}`]]}})((({theme:e,ownerState:t})=>(0,d.A)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,xe.X4)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Di.checked}, &.${Di.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Di.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Ii=(0,v.jsx)(Mi,{}),$i=(0,v.jsx)(ji,{}),Ni=(0,v.jsx)(Ti,{}),Qi=h.forwardRef((function(e,t){var r,n;const o=(0,Ce.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Ii,color:a="primary",icon:s=$i,indeterminate:l=!1,indeterminateIcon:c=Ni,inputProps:u,size:p="medium",className:m}=o,g=(0,f.A)(o,Ri),y=l?c:s,b=l?c:i,O=(0,d.A)({},o,{color:a,indeterminate:l,size:p}),A=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,i={root:["root",r&&"indeterminate",`color${(0,lt.A)(n)}`,`size${(0,lt.A)(o)}`]},a=(0,we.A)(i,qi,t);return(0,d.A)({},t,a)})(O);return(0,v.jsx)(Li,(0,d.A)({type:"checkbox",inputProps:(0,d.A)({"data-indeterminate":l},u),icon:h.cloneElement(y,{fontSize:null!=(r=y.props.fontSize)?r:p}),checkedIcon:h.cloneElement(b,{fontSize:null!=(n=b.props.fontSize)?n:p}),ownerState:O,ref:t,className:(0,Oe.A)(A.root,m)},g,{classes:A}))})),Bi=Qi;var zi=__webpack_require__(90179),Fi=__webpack_require__.n(zi),Ui=__webpack_require__(41892),Zi={};Zi.styleTagTransform=Y(),Zi.setAttributes=U(),Zi.insert=z().bind(null,"head"),Zi.domAPI=Q(),Zi.insertStyleElement=V(),$()(Ui.Ay,Zi),Ui.Ay&&Ui.Ay.locals&&Ui.Ay.locals;var Vi=__webpack_require__(82478),Wi={};Wi.styleTagTransform=Y(),Wi.setAttributes=U(),Wi.insert=z().bind(null,"head"),Wi.domAPI=Q(),Wi.insertStyleElement=V(),$()(Vi.A,Wi),Vi.A&&Vi.A.locals&&Vi.A.locals;const Yi=function(e){var t,r=e.onChangeValue,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["onChangeValue"]),o=n.control,i=n.id,a=n.objectPathId,s=o.selected,l=void 0!==s&&s,c=o.value||"on",u=a||i;(0,h.useEffect)((function(){r({value:o.selected?c:""})}),[]);var d=Object.assign(Fi()(n,["objectPathId","checked","control","displayName","error"]),{name:u,value:c,type:o.control,role:o.control});return p().createElement(Bi,{className:"".concat(Ui.$g," ").concat(Vi.a),id:u,color:"default",checked:l,readOnly:null===(t=o["custom-attributes"])||void 0===t?void 0:t.readOnly,onClick:function(){r({selected:!o.selected,value:o.selected?"":c})},inputProps:d,sx:{marginLeft:"-11px",color:"rgba(0,0,0,0.54)","&:checked":{color:"rgba(0,0,0,0.54)"}}})};var Xi=__webpack_require__(44363),Hi=__webpack_require__(96248);const Gi=h.createContext({});function Ki(e){return(0,rt.Ay)("MuiList",e)}(0,Be.A)("MuiList",["root","padding","dense","subheader"]);const Ji=["children","className","component","dense","disablePadding","subheader"],ea=(0,ke.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>(0,d.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ta=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,c=(0,f.A)(r,Ji),u=h.useMemo((()=>({dense:a})),[a]),p=(0,d.A)({},r,{component:i,dense:a,disablePadding:s}),m=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e,i={root:["root",!r&&"padding",n&&"dense",o&&"subheader"]};return(0,we.A)(i,Ki,t)})(p);return(0,v.jsx)(Gi.Provider,{value:u,children:(0,v.jsxs)(ea,(0,d.A)({as:i,className:(0,Oe.A)(m.root,o),ref:t,ownerState:p},c,{children:[l,n]}))})}));function ra(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const na=ra;var oa=__webpack_require__(2778);const ia=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function aa(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function sa(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function la(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function ca(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}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&la(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const ua=h.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,p=(0,f.A)(e,ia),m=h.useRef(null),g=h.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,oa.A)((()=>{n&&m.current.focus()}),[n]),h.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!m.current.style.width;if(e.clientHeight<m.current.clientHeight&&r){const r=`${na((0,Hi.A)(e))}px`;m.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,m.current.style.width=`calc(100% + ${r})`}return m.current}})),[]);const y=(0,Pe.A)(m,t);let b=-1;h.Children.forEach(i,((e,t)=>{h.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===b)&&(b=t),b===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(b+=1,b>=i.length&&(b=-1))):b===t&&(b+=1,b>=i.length&&(b=-1))}));const O=h.Children.map(i,((e,t)=>{if(t===b){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),h.cloneElement(e,t)}return e}));return(0,v.jsx)(ta,(0,d.A)({role:"menu",ref:y,className:a,onKeyDown:e=>{const t=m.current,r=e.key,n=(0,Hi.A)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ca(t,n,l,s,aa);else if("ArrowUp"===r)e.preventDefault(),ca(t,n,l,s,sa);else if("Home"===r)e.preventDefault(),ca(t,null,l,s,aa);else if("End"===r)e.preventDefault(),ca(t,null,l,s,sa);else if(1===r.length){const o=g.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);const l=n&&!o.repeating&&la(n,o);o.previousKeyMatched&&(l||ca(t,n,!1,s,aa,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:O}))})),da=ua;var fa=__webpack_require__(1935),ha=__webpack_require__(93749);const pa=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ma(e){const t=[],r=[];return Array.from(e.querySelectorAll(pa)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return 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&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(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 ga(){return!0}const ya=function(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=ma,isEnabled:a=ga,open:s}=e,l=h.useRef(!1),c=h.useRef(null),u=h.useRef(null),d=h.useRef(null),f=h.useRef(null),p=h.useRef(!1),m=h.useRef(null),g=(0,xn.A)(t.ref,m),y=h.useRef(null);h.useEffect((()=>{s&&m.current&&(p.current=!r)}),[r,s]),h.useEffect((()=>{if(!s||!m.current)return;const e=(0,Sn.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),p.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),h.useEffect((()=>{if(!s||!m.current)return;const e=(0,Sn.A)(m.current),t=t=>{y.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!p.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=y.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=y.current)?void 0:s.key)),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);const 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,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0};return(0,v.jsxs)(h.Fragment,{children:[(0,v.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),h.cloneElement(t,{ref:g,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),(0,v.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})},va=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ba={entering:{opacity:1},entered:{opacity:1}},Oa=h.forwardRef((function(e,t){const r=rn(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:p,onExit:m,onExited:g,onExiting:y,style:b,timeout:O=n,TransitionComponent:A=hn}=e,w=(0,f.A)(e,va),x=h.useRef(null),k=(0,Pe.A)(x,a.ref,t),S=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=S(p),P=S(((e,t)=>{pn(e);const n=mn({style:b,timeout:O,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),E=S(u),_=S(y),j=S((e=>{const t=mn({style:b,timeout:O,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),m&&m(e)})),M=S(g);return(0,v.jsx)(A,(0,d.A)({appear:i,in:l,nodeRef:x,onEnter:P,onEntered:E,onEntering:C,onExit:j,onExited:M,onExiting:_,addEndListener:e=>{o&&o(x.current,e)},timeout:O},w,{children:(e,t)=>h.cloneElement(a,(0,d.A)({style:(0,d.A)({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},ba[e],b,a.props.style),ref:k},t))}))})),Aa=Oa;function wa(e){return(0,rt.Ay)("MuiBackdrop",e)}(0,Be.A)("MuiBackdrop",["root","invisible"]);const xa=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ka=(0,ke.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>(0,d.A)({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"},e.invisible&&{backgroundColor:"transparent"}))),Sa=h.forwardRef((function(e,t){var r,n,o;const i=(0,Ce.b)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:h=!1,open:p,slotProps:m={},slots:g={},TransitionComponent:y=Aa,transitionDuration:b}=i,O=(0,f.A)(i,xa),A=(0,d.A)({},i,{component:l,invisible:h}),w=(e=>{const{classes:t,invisible:r}=e,n={root:["root",r&&"invisible"]};return(0,we.A)(n,wa,t)})(A),x=null!=(r=m.root)?r:u.root;return(0,v.jsx)(y,(0,d.A)({in:p,timeout:b},O,{children:(0,v.jsx)(ka,(0,d.A)({"aria-hidden":!0},x,{as:null!=(n=null!=(o=g.root)?o:c.Root)?n:l,className:(0,Oe.A)(w.root,s,null==x?void 0:x.className),ownerState:(0,d.A)({},A,null==x?void 0:x.ownerState),classes:w,ref:t,children:a}))}))}));var Ca=__webpack_require__(71547),Pa=__webpack_require__(76673),Ea=__webpack_require__(44877);function _a(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ja(e){return parseInt((0,Ea.A)(e).getComputedStyle(e).paddingRight,10)||0}function Ma(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&_a(e,o)}))}function Ta(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}const qa=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&_a(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ma(t,e.mount,e.modalRef,n,!0);const o=Ta(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Ta(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=function(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Sn.A)(e);return t.body===e?(0,Ea.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ra((0,Sn.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ja(n)+e}px`;const t=(0,Sn.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ja(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=(0,Sn.A)(n).body;else{const t=n.parentElement,r=(0,Ea.A)(n);e="HTML"===(null==t?void 0:t.nodeName)&&"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((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ta(this.containers,(t=>-1!==t.modals.indexOf(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&&_a(e.modalRef,t),Ma(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&_a(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Da(e){return(0,rt.Ay)("MuiModal",e)}(0,Be.A)("MuiModal",["root","hidden","backdrop"]);const Ra=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],La=(0,ke.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,d.A)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ia=(0,ke.Ay)(Sa,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$a=h.forwardRef((function(e,t){var r,n,o,i,a,s;const l=(0,Ce.b)({name:"MuiModal",props:e}),{BackdropComponent:c=Ia,BackdropProps:u,className:p,closeAfterTransition:m=!1,children:g,container:y,component:b,components:O={},componentsProps:A={},disableAutoFocus:w=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:k=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:P=!1,hideBackdrop:E=!1,keepMounted:_=!1,onBackdropClick:j,open:M,slotProps:T,slots:q}=l,D=(0,f.A)(l,Ra),R=(0,d.A)({},l,{closeAfterTransition:m,disableAutoFocus:w,disableEnforceFocus:x,disableEscapeKeyDown:k,disablePortal:S,disableRestoreFocus:C,disableScrollLock:P,hideBackdrop:E,keepMounted:_}),{getRootProps:L,getBackdropProps:I,getTransitionProps:$,portalRef:N,isTopModal:Q,exited:B,hasTransition:z}=function(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=qa,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:f}=e,p=h.useRef({}),m=h.useRef(null),g=h.useRef(null),y=(0,xn.A)(g,f),[v,b]=h.useState(!u),O=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let A=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(A=!1);const w=()=>(p.current.modalRef=g.current,p.current.mount=m.current,p.current),x=()=>{o.mount(w(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},k=(0,Ca.A)((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||(0,Sn.A)(m.current).body;o.add(w(),e),g.current&&x()})),S=h.useCallback((()=>o.isTopModal(w())),[o]),C=(0,Ca.A)((e=>{m.current=e,e&&(u&&S()?x():g.current&&_a(g.current,A))})),P=h.useCallback((()=>{o.remove(w(),A)}),[A,o]);h.useEffect((()=>()=>{P()}),[P]),h.useEffect((()=>{u?k():O&&i||P()}),[u,P,O,i,k]);const E=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&S()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=zo(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=(0,d.A)({},r,t);return(0,d.A)({role:"presentation"},n,{onKeyDown:E(n),ref:y})},getBackdropProps:(e={})=>{const t=e;return(0,d.A)({"aria-hidden":!0},t,{onClick:_(t),open:u})},getTransitionProps:()=>({onEnter:(0,Pa.A)((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:(0,Pa.A)((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:y,portalRef:C,isTopModal:S,exited:v,hasTransition:O}}((0,d.A)({},R,{rootRef:t})),F=(0,d.A)({},R,{exited:B}),U=(e=>{const{open:t,exited:r,classes:n}=e,o={root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]};return(0,we.A)(o,Da,n)})(F),Z={};if(void 0===g.props.tabIndex&&(Z.tabIndex="-1"),z){const{onEnter:e,onExited:t}=$();Z.onEnter=e,Z.onExited=t}const V=null!=(r=null!=(n=null==q?void 0:q.root)?n:O.Root)?r:La,W=null!=(o=null!=(i=null==q?void 0:q.backdrop)?i:O.Backdrop)?o:c,Y=null!=(a=null==T?void 0:T.root)?a:A.root,X=null!=(s=null==T?void 0:T.backdrop)?s:A.backdrop,H=Zo({elementType:V,externalSlotProps:Y,externalForwardedProps:D,getSlotProps:L,additionalProps:{ref:t,as:b},ownerState:F,className:(0,Oe.A)(p,null==Y?void 0:Y.className,null==U?void 0:U.root,!F.open&&F.exited&&(null==U?void 0:U.hidden))}),G=Zo({elementType:W,externalSlotProps:X,additionalProps:u,getSlotProps:e=>I((0,d.A)({},e,{onClick:t=>{j&&j(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,Oe.A)(null==X?void 0:X.className,null==u?void 0:u.className,null==U?void 0:U.backdrop),ownerState:F});return _||M||z&&!B?(0,v.jsx)(Wo,{ref:N,container:y,disablePortal:S,children:(0,v.jsxs)(V,(0,d.A)({},H,{children:[!E&&c?(0,v.jsx)(W,(0,d.A)({},G)):null,(0,v.jsx)(ya,{disableEnforceFocus:x,disableAutoFocus:w,disableRestoreFocus:C,isEnabled:Q,open:M,children:h.cloneElement(g,Z)})]}))}):null})),Na=$a,Qa=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ba(e){return(0,rt.Ay)("MuiPaper",e)}(0,Be.A)("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"]);const za=["className","component","elevation","square","variant"],Fa=(0,ke.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return(0,d.A)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,d.A)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,xe.X4)("#fff",Qa(t.elevation))}, ${(0,xe.X4)("#fff",Qa(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Ua=h.forwardRef((function(e,t){const r=(0,Ce.b)({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=(0,f.A)(r,za),c=(0,d.A)({},r,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,we.A)(i,Ba,o)})(c);return(0,v.jsx)(Fa,(0,d.A)({as:o,ownerState:c,className:(0,Oe.A)(u.root,n),ref:t},l))}));function Za(e){return(0,rt.Ay)("MuiPopover",e)}(0,Be.A)("MuiPopover",["root","paper"]);const Va=["onEntering"],Wa=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ya=["slotProps"];function Xa(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ha(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ga(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Ka(e){return"function"==typeof e?e():e}const Ja=(0,ke.Ay)(Na,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),es=(0,ke.Ay)(Ua,{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=h.forwardRef((function(e,t){var r,n,o;const i=(0,Ce.b)({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:p,className:m,container:g,elevation:y=8,marginThreshold:b=16,open:O,PaperProps:A={},slots:w,slotProps:x,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:S=An,transitionDuration:C="auto",TransitionProps:{onEntering:P}={},disableScrollLock:E=!1}=i,_=(0,f.A)(i.TransitionProps,Va),j=(0,f.A)(i,Wa),M=null!=(r=null==x?void 0:x.paper)?r:A,T=h.useRef(),q=(0,Pe.A)(T,M.ref),D=(0,d.A)({},i,{anchorOrigin:l,anchorReference:u,elevation:y,marginThreshold:b,externalPaperSlotProps:M,transformOrigin:k,TransitionComponent:S,transitionDuration:C,TransitionProps:_}),R=(e=>{const{classes:t}=e;return(0,we.A)({root:["root"],paper:["paper"]},Za,t)})(D),L=h.useCallback((()=>{if("anchorPosition"===u)return c;const e=Ka(s),t=(e&&1===e.nodeType?e:(0,Hi.A)(T.current).body).getBoundingClientRect();return{top:t.top+Xa(t,l.vertical),left:t.left+Ha(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),I=h.useCallback((e=>({vertical:Xa(e,k.vertical),horizontal:Ha(e,k.horizontal)})),[k.horizontal,k.vertical]),$=h.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=I(t);if("none"===u)return{top:null,left:null,transformOrigin:Ga(r)};const n=L();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,c=(0,ha.A)(Ka(s)),d=c.innerHeight-b,f=c.innerWidth-b;if(null!==b&&o<b){const e=o-b;o-=e,r.vertical+=e}else if(null!==b&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==b&&i<b){const e=i-b;i-=e,r.horizontal+=e}else if(l>f){const e=l-f;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ga(r)}}),[s,u,L,I,b]),[N,Q]=h.useState(O),B=h.useCallback((()=>{const e=T.current;if(!e)return;const t=$(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,Q(!0)}),[$]);h.useEffect((()=>(E&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B))),[s,E,B]),h.useEffect((()=>{O&&B()})),h.useImperativeHandle(a,(()=>O?{updatePosition:()=>{B()}}:null),[O,B]),h.useEffect((()=>{if(!O)return;const e=(0,fa.A)((()=>{B()})),t=(0,ha.A)(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,O,B]);let z=C;"auto"!==C||S.muiSupportAuto||(z=void 0);const F=g||(s?(0,Hi.A)(Ka(s)).body:void 0),U=null!=(n=null==w?void 0:w.root)?n:Ja,Z=null!=(o=null==w?void 0:w.paper)?o:es,V=Zo({elementType:Z,externalSlotProps:(0,d.A)({},M,{style:N?M.style:(0,d.A)({},M.style,{opacity:0})}),additionalProps:{elevation:y,ref:q},ownerState:D,className:(0,Oe.A)(R.paper,null==M?void 0:M.className)}),W=Zo({elementType:U,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:j,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:O},ownerState:D,className:(0,Oe.A)(R.root,m)}),{slotProps:Y}=W,X=(0,f.A)(W,Ya);return(0,v.jsx)(U,(0,d.A)({},X,!Jr(U)&&{slotProps:Y,disableScrollLock:E},{children:(0,v.jsx)(S,(0,d.A)({appear:!0,in:O,onEntering:(e,t)=>{P&&P(e,t),B()},onExited:()=>{Q(!1)},timeout:z},_,{children:(0,v.jsx)(Z,(0,d.A)({},V,{children:p}))}))}))})),rs=ts;function ns(e){return(0,rt.Ay)("MuiMenu",e)}(0,Be.A)("MuiMenu",["root","paper","list"]);const os=["onEntering"],is=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],as={vertical:"top",horizontal:"right"},ss={vertical:"top",horizontal:"left"},ls=(0,ke.Ay)(rs,{shouldForwardProp:e=>(0,Se.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cs=(0,ke.Ay)(es,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),us=(0,ke.Ay)(da,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ds=h.forwardRef((function(e,t){var r,n;const o=(0,Ce.b)({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:p,PaperProps:m={},PopoverClasses:g,transitionDuration:y="auto",TransitionProps:{onEntering:b}={},variant:O="selectedMenu",slots:A={},slotProps:w={}}=o,x=(0,f.A)(o.TransitionProps,os),S=(0,f.A)(o,is),C=k(),P=(0,d.A)({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:b,PaperProps:m,transitionDuration:y,TransitionProps:x,variant:O}),E=(e=>{const{classes:t}=e;return(0,we.A)({root:["root"],paper:["paper"],list:["list"]},ns,t)})(P),_=i&&!l&&p,j=h.useRef(null);let M=-1;h.Children.map(a,((e,t)=>{h.isValidElement(e)&&(e.props.disabled||("selectedMenu"===O&&e.props.selected||-1===M)&&(M=t))}));const T=null!=(r=A.paper)?r:cs,q=null!=(n=w.paper)?n:m,D=Zo({elementType:A.root,externalSlotProps:w.root,ownerState:P,className:[E.root,s]}),R=Zo({elementType:T,externalSlotProps:q,ownerState:P,className:E.paper});return(0,v.jsx)(ls,(0,d.A)({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?as:ss,slots:{paper:T,root:A.root},slotProps:{root:D,paper:R},open:p,ref:t,transitionDuration:y,TransitionProps:(0,d.A)({onEntering:(e,t)=>{j.current&&j.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),b&&b(e,t)}},x),ownerState:P},S,{classes:g,children:(0,v.jsx)(us,(0,d.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:j,autoFocus:i&&(-1===M||l),autoFocusItem:_,variant:O},c,{className:(0,Oe.A)(E.list,c.className),children:a}))}))}));var fs=__webpack_require__(21922),hs="rgb(85, 85, 85)";const ps=function(e){var t=e.onChangeValue,r=e.query,n=e.objectPathId,o=e.value,i=e.hasEdited;if(!r)return{textColor:hs};var a=(0,fs.A)({query:r,objectPathId:n}),s=a.resolvedQuery,l=a.mrnEntriesLoaded;(0,h.useEffect)((function(){!i&&s&&(0===o.length&&s||o===s?t({value:s,hasEdited:"not-edited"}):o!==s&&t({value:o,hasEdited:"edited"})),i&&t({value:"not-edited"===i?s:o})}),[s]);var c=(!i||"not-edited"===i)&&(null==o?void 0:o.length)>0?"rgba(85, 85, 85, 0.6)":hs;return{textColor:l?c:hs}};var ms=__webpack_require__(59094),gs={};gs.styleTagTransform=Y(),gs.setAttributes=U(),gs.insert=z().bind(null,"head"),gs.domAPI=Q(),gs.insertStyleElement=V(),$()(ms.A,gs);const ys=ms.A&&ms.A.locals?ms.A.locals:void 0;var vs=__webpack_require__(2833),bs=__webpack_require__.n(vs);const Os=function(e){function t(e,n,l,c,f){for(var h,p,m,g,O,w=0,x=0,k=0,S=0,C=0,T=0,D=m=h=0,L=0,I=0,$=0,N=0,Q=l.length,B=Q-1,z="",F="",U="",Z="";L<Q;){if(p=l.charCodeAt(L),L===B&&0!==x+S+k+w&&(0!==x&&(p=47===x?10:47),S=k=w=0,Q++,B++),0===x+S+k+w){if(L===B&&(0<I&&(z=z.replace(d,"")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(L)}p=59}switch(p){case 123:for(h=(z=z.trim()).charCodeAt(0),m=1,N=++L;L<Q;){switch(p=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(p=l.charCodeAt(L+1)){case 42:case 47:e:{for(D=L+1;D<B;++D)switch(l.charCodeAt(D)){case 47:if(42===p&&42===l.charCodeAt(D-1)&&L+2!==D){L=D+1;break e}break;case 10:if(47===p){L=D+1;break e}}L=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;L++<B&&l.charCodeAt(L)!==p;);}if(0===m)break;L++}if(m=l.substring(N,L),0===h&&(h=(z=z.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<I&&(z=z.replace(d,"")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:I=n;break;default:I=M}if(N=(m=t(n,I,m,p,f+1)).length,0<q&&(O=s(3,m,I=r(M,z,$),n,E,P,N,p,f,c),z=I.join(""),void 0!==O&&0===(N=(m=O.trim()).length)&&(p=0,m="")),0<N)switch(p){case 115:z=z.replace(A,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(y,"$1 $2"))+"{"+m+"}",m=1===j||2===j&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===c&&(F+=m,m="")}else m=""}else m=t(n,r(n,z,$),m,c,f+1);U+=m,m=$=I=D=h=0,z="",p=l.charCodeAt(++L);break;case 125:case 59:if(1<(N=(z=(0<I?z.replace(d,""):z).trim()).length))switch(0===D&&(h=z.charCodeAt(0),45===h||96<h&&123>h)&&(N=(z=z.replace(" ",":")).length),0<q&&void 0!==(O=s(1,z,n,e,E,P,F.length,c,f,c))&&0===(N=(z=O.trim()).length)&&(z="\0\0"),h=z.charCodeAt(0),p=z.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){Z+=z+l.charAt(L);break}default:58!==z.charCodeAt(N-1)&&(F+=o(z,h,p,z.charCodeAt(2)))}$=I=D=h=0,z="",p=l.charCodeAt(++L)}}switch(p){case 13:case 10:47===x?x=0:0===1+h&&107!==c&&0<z.length&&(I=1,z+="\0"),0<q*R&&s(0,z,n,e,E,P,F.length,c,f,c),P=1,E++;break;case 59:case 125:if(0===x+S+k+w){P++;break}default:switch(P++,g=l.charAt(L),p){case 9:case 32:if(0===S+w+x)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+x+w&&(I=$=1,g="\f"+g);break;case 108:if(0===S+x+w+_&&0<D)switch(L-D){case 2:112===C&&58===l.charCodeAt(L-3)&&(_=C);case 8:111===T&&(_=T)}break;case 58:0===S+x+w&&(D=L);break;case 44:0===x+k+S+w&&(I=1,g+="\r");break;case 34:case 39:0===x&&(S=S===p?0:0===S?p:S);break;case 91:0===S+x+k&&w++;break;case 93:0===S+x+k&&w--;break;case 41:0===S+x+w&&k--;break;case 40:0===S+x+w&&(0===h&&(2*C+3*T==533||(h=1)),k++);break;case 64:0===x+k+S+w+D+m&&(m=1);break;case 42:case 47:if(!(0<S+w+k))switch(x){case 0:switch(2*p+3*l.charCodeAt(L+1)){case 235:x=47;break;case 220:N=L,x=42}break;case 42:47===p&&42===C&&N+2!==L&&(33===l.charCodeAt(N+2)&&(F+=l.substring(N,L+1)),g="",x=0)}}0===x&&(z+=g)}T=C,C=p,L++}if(0<(N=F.length)){if(I=n,0<q&&void 0!==(O=s(2,F,I,e,E,P,N,c,f,c))&&0===(F=O).length)return Z+F+U;if(F=I.join(",")+"{"+F+"}",0!=j*_){switch(2!==j||i(F,2)||(_=0),_){case 111:F=F.replace(b,":-moz-$1")+F;break;case 112:F=F.replace(v,"::-webkit-input-$1")+F.replace(v,"::-moz-$1")+F.replace(v,":-ms-input-$1")+F}_=0}}return Z+F+U}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===j||2===j&&i(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(O,"tb");break;case 232:l=a.replace(O,"tb-rl");break;case 220:l=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),D(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,u){for(var d,f=0,h=t;f<q;++f)switch(d=T[f].call(c,e,h,r,n,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?j=1:(j=2,D=e):j=0),l}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<q){var o=s(-1,r,n,n,E,P,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(M,n,r,0,0);return 0<q&&void 0!==(o=s(-2,i,n,n,E,P,i.length,0,0,0))&&(i=o),_=0,P=E=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,P=1,E=1,_=0,j=1,M=[],T=[],q=0,D=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:q=T.length=0;break;default:if("function"==typeof t)T[q++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},As={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ws=__webpack_require__(91907),xs=__webpack_require__(4146),ks=__webpack_require__.n(xs);function Ss(){return(Ss=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Cs=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Ps=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Xi.typeOf)(e)},Es=Object.freeze([]),_s=Object.freeze({});function js(e){return"function"==typeof e}function Ms(e){return e.displayName||e.name||"Component"}function Ts(e){return e&&"string"==typeof e.styledComponentId}var qs="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ds="undefined"!=typeof window&&"HTMLElement"in window,Rs=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY));function Ls(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var Is=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&Ls(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),$s=new Map,Ns=new Map,Qs=1,Bs=function(e){if($s.has(e))return $s.get(e);for(;Ns.has(Qs);)Qs++;var t=Qs++;return $s.set(e,t),Ns.set(t,e),t},zs=function(e){return Ns.get(e)},Fs=function(e,t){t>=Qs&&(Qs=t+1),$s.set(e,t),Ns.set(t,e)},Us="style["+qs+'][data-styled-version="5.3.11"]',Zs=new RegExp("^"+qs+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Vs=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ws=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(Zs);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(Fs(c,l),Vs(e,c,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},Ys=function(){return __webpack_require__.nc},Xs=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(qs))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(qs,"active"),n.setAttribute("data-styled-version","5.3.11");var a=Ys();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Hs=function(){function e(e){var t=this.element=Xs(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}Ls(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Gs=function(){function e(e){var t=this.element=Xs(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ks=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Js=Ds,el={isServer:!Ds,useCSSOMInjection:!Rs},tl=function(){function e(e,t,r){void 0===e&&(e=_s),void 0===t&&(t={}),this.options=Ss({},el,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ds&&Js&&(Js=!1,function(e){for(var t=document.querySelectorAll(Us),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(qs)&&(Ws(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return Bs(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Ss({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new Ks(o):n?new Hs(o):new Gs(o),new Is(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(Bs(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Bs(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(Bs(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=zs(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=qs+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),rl=/(a)(d)/gi,nl=function(e){return String.fromCharCode(e+(e>25?39:97))};function ol(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=nl(t%52)+r;return(nl(t%52)+r).replace(rl,"$1-$2")}var il=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},al=function(e){return il(5381,e)};function sl(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(js(r)&&!Ts(r))return!1}return!0}var ll=al("5.3.11"),cl=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&sl(e),this.componentId=t,this.baseHash=il(ll,t),this.baseStyle=r,tl.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Cl(this.rules,e,t,r).join(""),a=ol(il(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=il(this.baseHash,r.hash),u="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var h=Cl(f,e,t,r),p=Array.isArray(h)?h.join(""):h;c=il(c,p+d),u+=p}}if(u){var m=ol(c>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),ul=/^\s*\/\/.*$/gm,dl=[":","[",".","#"];function fl(e){var t,r,n,o,i=void 0===e?_s:e,a=i.options,s=void 0===a?_s:a,l=i.plugins,c=void 0===l?Es:l,u=new Os(s),d=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,n,i){return 0===n&&-1!==dl.indexOf(i[r.length])||i.match(o)?e:"."+t};function p(e,i,a,s){void 0===s&&(s="&");var l=e.replace(ul,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),u(a||!i?"":i,c)}return u.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,h))},f,function(e){if(-2===e){var t=d;return d=[],t}}])),p.hash=c.length?c.reduce((function(e,t){return t.name||Ls(15),il(e,t.name)}),5381).toString():"",p}var hl=p().createContext(),pl=(hl.Consumer,p().createContext()),ml=(pl.Consumer,new tl),gl=fl();function yl(){return(0,h.useContext)(hl)||ml}function vl(e){var t=(0,h.useState)(e.stylisPlugins),r=t[0],n=t[1],o=yl(),i=(0,h.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,h.useMemo)((function(){return fl({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return(0,h.useEffect)((function(){bs()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),p().createElement(hl.Provider,{value:i},p().createElement(pl.Provider,{value:a},e.children))}var bl=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=gl);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return Ls(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=gl),this.name+e.hash},e}(),Ol=/([A-Z])/,Al=/([A-Z])/g,wl=/^ms-/,xl=function(e){return"-"+e.toLowerCase()};function kl(e){return Ol.test(e)?e.replace(Al,xl).replace(wl,"-ms-"):e}var Sl=function(e){return null==e||!1===e||""===e};function Cl(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Cl(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Sl(e)?"":Ts(e)?"."+e.styledComponentId:js(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:Cl(e(t),t,r,n):e instanceof bl?r?(e.inject(r,n),e.getName(n)):e:Ps(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Sl(t[a])&&(Array.isArray(t[a])&&t[a].isCss||js(t[a])?i.push(kl(a)+":",t[a],";"):Ps(t[a])?i.push.apply(i,e(t[a],a)):i.push(kl(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in As||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString();var l}var Pl=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function El(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return js(e)||Ps(e)?Pl(Cl(Cs(Es,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Pl(Cl(Cs(e,r)))}new Set;var _l=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,jl=/(^-|-$)/g;function Ml(e){return e.replace(_l,"-").replace(jl,"")}function Tl(e){return"string"==typeof e&&!0}var ql=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Dl=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Rl(e,t,r){var n=e[r];ql(t)&&ql(n)?Ll(n,t):e[r]=t}function Ll(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(ql(a))for(var s in a)Dl(s)&&Rl(e,a[s],s)}return e}var Il=p().createContext();Il.Consumer;var $l={};function Nl(e,t,r){var n=Ts(e),o=!Tl(e),i=t.attrs,a=void 0===i?Es:i,s=t.componentId,l=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Ml(e);$l[r]=($l[r]||0)+1;var n=r+"-"+function(e){return ol(al(e)>>>0)}("5.3.11"+r+$l[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,c=t.displayName,u=void 0===c?function(e){return Tl(e)?"styled."+e:"Styled("+Ms(e)+")"}(e):c,d=t.displayName&&t.componentId?Ml(t.displayName)+"-"+t.componentId:t.componentId||l,f=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,y=new cl(r,d,n?e.componentStyle:void 0),v=y.isStatic&&0===a.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,u=e.target,d=function(e,t,r){void 0===e&&(e=_s);var n=Ss({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in js(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=_s),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,h.useContext)(Il),a)||_s,t,o),f=d[0],p=d[1],m=function(e,t,r){var n=yl(),o=(0,h.useContext)(pl)||gl;return t?e.generateAndInjectStyles(_s,n,o):e.generateAndInjectStyles(r,n,o)}(i,n,f),g=r,y=p.$as||t.$as||p.as||t.as||u,v=Tl(y),b=p!==t?Ss({},t,{},p):t,O={};for(var A in b)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?O.as=b[A]:(l?l(A,ws.A,y):!v||(0,ws.A)(A))&&(O[A]=b[A]));return t.style&&p.style!==t.style&&(O.style=Ss({},t.style,{},p.style)),O.className=Array.prototype.concat(s,c,m!==c?m:null,t.className,p.className).filter(Boolean).join(" "),O.ref=g,(0,h.createElement)(y,O)}(g,e,t,v)};return b.displayName=u,(g=p().forwardRef(b)).attrs=f,g.componentStyle=y,g.displayName=u,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Es,g.styledComponentId=d,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(Tl(e)?e:Ml(Ms(e)));return Nl(e,Ss({},o,{attrs:f,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Ll({},e.defaultProps,t):t}}),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),o&&ks()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var Ql=function(e){return function e(t,r,n){if(void 0===n&&(n=_s),!(0,Xi.isValidElementType)(r))return Ls(1,String(r));var o=function(){return t(r,n,El.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,Ss({},n,{},o))},o.attrs=function(o){return e(t,r,Ss({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(Nl,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ql[e]=Ql(e)})),function(){var e=function(e,t){this.rules=e,this.componentId=t,this.isStatic=sl(e),tl.registerId(this.componentId+1)}.prototype;e.createStyles=function(e,t,r,n){var o=n(Cl(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},e.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.renderStyles=function(e,t,r,n){e>2&&tl.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}(),function(){var e=function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=Ys();return"<style "+[r&&'nonce="'+r+'"',qs+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?Ls(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return Ls(2);var r=((t={})[qs]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Ys();return n&&(r.nonce=n),[p().createElement("style",Ss({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new tl({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?Ls(2):p().createElement(vl,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return Ls(3)}}();const Bl=Ql,zl=(0,_i.A)((0,v.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");function Fl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ul(){var e=Fl(["\n width: 100%;\n position: relative;\n"]);return Ul=function(){return e},e}function Zl(){var e=Fl(["\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 40px;\n border-radius: 100%;\n display: ",";\n justify-content: center;\n align-items: center;\n cursor: pointer;\n &:hover {\n background-color: #f5f5f5;\n }\n"]);return Zl=function(){return e},e}function Vl(){var e=Fl(["\n color: #767676;\n"]);return Vl=function(){return e},e}var Wl=Bl.div(Ul()),Yl=Bl.div(Zl(),(function(e){return""===e.inputValue?"none":"flex"})),Xl=Bl(zl)(Vl());function Hl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Hl(e,t,r[t])}))}return e}function Kl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Jl=function(e){var t,n=e.onChangeValue,o=e.hasClearButton,i=void 0!==o&&o,a=e.onClearCallback,s=e.controlProps,l=Kl(e,["onChangeValue","hasClearButton","onClearCallback","controlProps"]),c=l.control,u=l.id,d=l.objectPathId,f=Kl(l,["control","id","objectPathId"]),h=c.value,m=void 0===h?"":h,g=(c.displayName,c["custom-attributes"]),y=c.error,v=c.placeholder,b=c.required,O=c.hasEdited,A=Kl(c,["value","displayName","custom-attributes","error","placeholder","required","hasEdited"]),w=null==g?void 0:g.defaultValue,x=ps({onChangeValue:n,query:w,objectPathId:d,value:m,hasEdited:O}).textColor,k=y?"error":"",S=Ui.$g;S=k?S+" "+r[k]:S;var C,P,E=v?b?v+" *":v:"";return p().createElement(Wl,null,p().createElement("input",(C=Gl({role:"textbox","data-testid":"input-control-".concat(u),max:"date"===c.type?"9999-12-31":null,className:S,id:d||u,name:d||u,value:m,onChange:function(e){n({value:e.target.value,hasEdited:"edited"})},onWheel:function(e){var t=e.target;"number"===t.type&&t.blur()},placeholder:E,required:b},Fi()(g,["defaultValue","mrnPreview","mrnSources"]),Fi()(A,["displayName","placholder","control","error","defaultValue"]),Fi()(f,["defaultValue","mrnPreview","mrnSources"])),P=null!=(P={style:Gl({color:x,minWidth:i?"175px":""},null==s||null===(t=s.inputProps)||void 0===t?void 0:t.style)})?P:{},Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(P)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(P)).forEach((function(e){Object.defineProperty(C,e,Object.getOwnPropertyDescriptor(P,e))})),C)),i&&"date"===c.type&&p().createElement(Yl,{inputValue:m},p().createElement(Xl,{"data-testid":"input_clearButton",fontSize:"small",onClick:function(){n({value:""}),null==a||a()}})))};function ec(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function tc(){var e=ec(["\n position: relative;\n font-size: 14px;\n font-weight: 400;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n gap: 10px;\n padding: 10px 0;\n margin-bottom: -10px;\n @media screen and (max-width: 767px) {\n flex-direction: column;\n gap: 5px;\n }\n container-type: inline-size;\n"]);return tc=function(){return e},e}function rc(){var e=ec(["\n font-size: 14px;\n font-weight: 400;\n width: 200px;\n text-align: right;\n flex-shrink: 0;\n margin: 0 !important;\n padding-top: 9px;\n font-size: 14px;\n @media screen and (max-width: 767px) {\n text-align: left;\n }\n"]);return rc=function(){return e},e}function nc(){var e=ec(["\n font-size: 14px;\n font-weight: 400;\n box-sizing: border-box;\n padding: 6px 12px;\n width: 40%;\n outline: none;\n border: 1px solid #ccc;\n font-size: 14px;\n color: #555;\n box-shadow: none !important;\n border-radius: 4px;\n &:hover,\n &:focus {\n border: 1px solid rgba(0, 0, 0, 0.87);\n }\n &::-moz-placeholder {\n color: #999;\n opacity: 1;\n }\n &:-ms-input-placeholder {\n color: #999;\n }\n &::-webkit-input-placeholder {\n color: #999;\n }\n"]);return nc=function(){return e},e}var oc=Bl.div(tc()),ic=Bl.label(rc()),ac=(Bl(Jl)(nc()),__webpack_require__(20889)),sc=__webpack_require__(30020),lc=__webpack_require__(33905),cc={};cc.styleTagTransform=Y(),cc.setAttributes=U(),cc.insert=z().bind(null,"head"),cc.domAPI=Q(),cc.insertStyleElement=V(),$()(lc.A,cc),lc.A&&lc.A.locals&&lc.A.locals;var uc=__webpack_require__(26662),dc={};function fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hc(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=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}dc.styleTagTransform=Y(),dc.setAttributes=U(),dc.insert=z().bind(null,"head"),dc.domAPI=Q(),dc.insertStyleElement=V(),$()(uc.A,dc),uc.A&&uc.A.locals&&uc.A.locals;const pc=function(e){var t=e.handleDateChange,r=e.from,n=e.to,o=hc((0,h.useState)([{startDate:new Date,endDate:new Date,key:"selection"}]),2),i=o[0],a=o[1],s=hc((0,h.useState)(window.matchMedia("(max-width: 615px)").matches),2),l=s[0],c=s[1],u=hc((0,h.useState)(window.matchMedia("(max-width: 1200px)").matches),2),d=u[0],f=u[1];window.addEventListener("resize",(function(){var e=window.matchMedia("(max-width: 1200px)").matches;e!==d&&f(e);var t=window.matchMedia("(max-width: 615px)").matches;t!==l&&c(t)})),(0,h.useEffect)((function(){var e=[],t=[];r&&(e=r.split("-")),n&&(t=n.split("-"));var o=r?new Date(Number(e[0]),Number(e[1])-1,Number(e[2])):new Date,i=n?new Date(Number(t[0]),Number(t[1])-1,Number(t[2])):o;a([{startDate:o,endDate:i,key:"selection"}])}),[r,n]);var m=function(e,r){a(e),e[0].startDate!==e[0].endDate&&t(e[0],r)},g=function(){t(i[0])};return p().createElement("div",null,l?p().createElement("div",{style:{display:"flex",flexDirection:"column"}},p().createElement(sc.ad,{onChange:function(e){return m([e.selection])},moveRangeOnFirstSelection:!1,ranges:i,direction:"horizontal"}),p().createElement(bt,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},onClick:g},p().createElement("p",{style:{all:"unset"}},"CONFIRM"),p().createElement(ac.A,{style:{color:"white",width:"20px",height:"20px"}}))):p().createElement("div",{style:{display:"flex",flexDirection:"column"}},p().createElement("div",{style:{display:"flex"}},p().createElement(sc.HY,{ranges:i,onChange:function(e){return m([e.selection],!0)}}),p().createElement(sc.ad,{ranges:i,onChange:function(e){return m([e.selection])},showDateDisplay:!1,direction:"horizontal",months:d?1:2,"data-testid":"date-range-picker"})),p().createElement(bt,{variant:"contained",size:"medium",sx:{display:"flex",alignItems:"center",alignSelf:"flex-end",marginRight:"16px",marginBottom:"16px",gap:"8px",width:"fit-content",backgroundColor:"#4A96D2",boxShadow:"none","&:hover":{backgroundColor:"#0B5BA6",boxShadow:"none"}},onClick:g},p().createElement("p",{style:{all:"unset"}},"CONFIRM"),p().createElement(ac.A,{style:{color:"white",width:"20px",height:"20px"}}))))};function mc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){gc(e,t,r[t])}))}return e}var vc=void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function bc(){throw new Error("setTimeout has not been defined")}function Oc(){throw new Error("clearTimeout has not been defined")}var Ac=bc,wc=Oc;function xc(e){if(Ac===setTimeout)return setTimeout(e,0);if((Ac===bc||!Ac)&&setTimeout)return Ac=setTimeout,setTimeout(e,0);try{return Ac(e,0)}catch(t){try{return Ac.call(null,e,0)}catch(t){return Ac.call(this,e,0)}}}"function"==typeof vc.setTimeout&&(Ac=setTimeout),"function"==typeof vc.clearTimeout&&(wc=clearTimeout);var kc,Sc=[],Cc=!1,Pc=-1;function Ec(){Cc&&kc&&(Cc=!1,kc.length?Sc=kc.concat(Sc):Pc=-1,Sc.length&&_c())}function _c(){if(!Cc){var e=xc(Ec);Cc=!0;for(var t=Sc.length;t;){for(kc=Sc,Sc=[];++Pc<t;)kc&&kc[Pc].run();Pc=-1,t=Sc.length}kc=null,Cc=!1,function(e){if(wc===clearTimeout)return clearTimeout(e);if((wc===Oc||!wc)&&clearTimeout)return wc=clearTimeout,clearTimeout(e);try{return wc(e)}catch(t){try{return wc.call(null,e)}catch(t){return wc.call(this,e)}}}(e)}}function jc(e,t){this.fun=e,this.array=t}function Mc(){}jc.prototype.run=function(){this.fun.apply(null,this.array)};var Tc=Mc,qc=Mc,Dc=Mc,Rc=Mc,Lc=Mc,Ic=Mc,$c=Mc,Nc=vc.performance||{},Qc=Nc.now||Nc.mozNow||Nc.msNow||Nc.oNow||Nc.webkitNow||function(){return(new Date).getTime()},Bc=new Date,zc={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];Sc.push(new jc(e,t)),1!==Sc.length||Cc||xc(_c)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Tc,addListener:qc,once:Dc,off:Rc,removeListener:Lc,removeAllListeners:Ic,emit:$c,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Qc.call(Nc),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Bc)/1e3}},Fc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zc(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Vc,Wc,Yc={exports:{}},Xc={},Hc={};"production"===zc.env.NODE_ENV?Yc.exports=function(){if(Vc)return Xc;Vc=1;var e=p(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return Xc.Fragment=r,Xc.jsx=a,Xc.jsxs=a,Xc}():Yc.exports=(Wc||(Wc=1,"production"!==zc.env.NODE_ENV&&function(){var e,t=p(),r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];!function(e,t,r){var n=y.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console.error,console,o)}(0,e,r)}function b(e){return e.displayName||"Context"}function O(e){if(null==e)return null;if("number"==typeof e.tag&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return b(e)+".Consumer";case s:return b(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:O(e.type)||"Memo";case h:var r=e,p=r._payload,m=r._init;try{return O(m(p))}catch(e){return null}}return null}e=Symbol.for("react.module.reference");var A,w,x,k,S,C,P,E=Object.assign,_=0;function j(){}j.__reactDisabledLog=!0;var M,T=y.ReactCurrentDispatcher;function q(e,t,r){if(void 0===M)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);M=n&&n[1]||""}return"\n"+M+e}var D,R=!1,L="function"==typeof WeakMap?WeakMap:Map;function I(e,t){if(!e||R)return"";var r,n=D.get(e);if(void 0!==n)return n;R=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=T.current,T.current=null,function(){if(0===_){A=console.log,w=console.info,x=console.warn,k=console.error,S=console.group,C=console.groupCollapsed,P=console.groupEnd;var e={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&D.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{R=!1,T.current=o,function(){if(0==--_){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:E({},e,{value:A}),info:E({},e,{value:w}),warn:E({},e,{value:x}),error:E({},e,{value:k}),group:E({},e,{value:S}),groupCollapsed:E({},e,{value:C}),groupEnd:E({},e,{value:P})})}_<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:"",h=f?q(f):"";return"function"==typeof e&&D.set(e,h),h}function $(e,t,r){if(null==e)return"";if("function"==typeof e)return I(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return q(e);switch(e){case u:return q("Suspense");case d:return q("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return I(e.render,!1);case f:return $(e.type,t,r);case h:var o=e,i=o._payload,a=o._init;try{return $(a(i),t,r)}catch(e){}}return""}D=new L;var N=Object.prototype.hasOwnProperty,Q={},B=y.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,r=$(e.type,e._source,t?t.type:null);B.setExtraStackFrame(r)}else B.setExtraStackFrame(null)}var F=Array.isArray;function U(e){return F(e)}function Z(e){return""+e}function V(e){if(function(e){try{return Z(e),!1}catch(e){return!0}}(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),Z(e)}var W,Y,X,H=y.ReactCurrentOwner,G={key:!0,ref:!0,__self:!0,__source:!0};X={};var K,J=y.ReactCurrentOwner,ee=y.ReactDebugCurrentFrame;function te(e){if(e){var t=e._owner,r=$(e.type,e._source,t?t.type:null);ee.setExtraStackFrame(r)}else ee.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function ne(){if(J.current){var e=O(J.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}K=!1;var oe={};function ie(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=ne();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!oe[r]){oe[r]=!0;var n="";e&&e._owner&&e._owner!==J.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),te(e),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),te(null)}}}function ae(e,t){if("object"==typeof e)if(U(e))for(var r=0;r<e.length;r++){var n=e[r];re(n)&&ie(n,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)re(i.value)&&ie(i.value,t)}}function se(t,n,p,g,y,b){var A=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===a||t===i||t===u||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===s||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)}(t);if(!A){var w="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var x,k=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(y);w+=k||ne(),null===t?x="null":U(t)?x="array":void 0!==t&&t.$$typeof===r?(x="<"+(O(t.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):x=typeof t,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",x,w)}var S=function(e,t,n,o,i){var a,s={},l=null,c=null;for(a in void 0!==n&&(V(n),l=""+n),function(e){if(N.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(V(t.key),l=""+t.key),function(e){if(N.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&H.current&&t&&H.current.stateNode!==t){var r=O(H.current.type);X[r]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(H.current.type),e.ref),X[r]=!0)}}(t,i)),t)N.call(t,a)&&!G.hasOwnProperty(a)&&(s[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===s[a]&&(s[a]=u[a])}if(l||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var r=function(){W||(W=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(s,d),c&&function(e,t){var r=function(){Y||(Y=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(s,d)}return function(e,t,n,o,i,a,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,i,o,H.current,s)}(t,n,p,y,b);if(null==S)return S;if(A){var C=n.children;if(void 0!==C)if(g)if(U(C)){for(var P=0;P<C.length;P++)ae(C[P],t);Object.freeze&&Object.freeze(C)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ae(C,t)}return t===o?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){te(e),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),te(null);break}}null!==e.ref&&(te(e),v("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}(S):function(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==f)return;t=r.propTypes}if(t){var n=O(r);!function(e,t,r,n,o){var i=Function.call.bind(N);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(z(o),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof s),z(null)),s instanceof Error&&!(s.message in Q)&&(Q[s.message]=!0,z(o),v("Failed %s type: %s",r,s.message),z(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||K||(K=!0,v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(S),S}Hc.Fragment=o,Hc.jsx=function(e,t,r){return se(e,t,r,!1)},Hc.jsxs=function(e,t,r){return se(e,t,r,!0)}}()),Hc);var Gc=Yc.exports;function Kc(e){return Kc="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},Kc(e)}function Jc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eu(e){var t=function(e){if("object"!=Kc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Kc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kc(t)?t:t+""}function tu(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,eu(n.key),n)}}function ru(e,t,r){return t&&tu(e.prototype,t),r&&tu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ou(e,t){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ou(e,t)}function iu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ou(e,t)}function au(e,t){if(t&&("object"===Kc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return nu(e)}function su(e){return su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},su(e)}function lu(e,t,r){return(t=eu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cu(e){if(Array.isArray(e))return e}function uu(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function du(e,t){if(e){if("string"==typeof e)return uu(e,t);var r=Object.prototype.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)?uu(e,t):void 0}}function fu(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hu(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 pu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mu={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},gu=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Jc(this,e),this.init(t,r)}return ru(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||mu,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,r,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,pu(pu({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),yu=new gu,vu=function(){function e(){Jc(this,e),this.observers={}}return ru(e,[{key:"on",value:function(e,t){var r=this;return e.split(" ").forEach((function(e){r.observers[e]=r.observers[e]||[],r.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,r)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(r))}))}}]),e}();function bu(){var e,t,r=new Promise((function(r,n){e=r,t=n}));return r.resolve=e,r.reject=t,r}function Ou(e){return null==e?"":""+e}function Au(e,t,r){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function wu(e,t,r){var n=Au(e,t,Object);n.obj[n.k]=r}function xu(e,t){var r=Au(e,t),n=r.obj,o=r.k;if(n)return n[o]}function ku(e,t,r){for(var n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"==typeof e[n]||e[n]instanceof String||"string"==typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):ku(e[n],t[n],r):e[n]=t[n]);return e}function Su(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Cu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Pu(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Cu[e]})):e}var Eu="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,_u=[" ",",","?","!",";"];function ju(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o)return;if("string"==typeof o[n[i]]&&i+1<n.length)return;if(void 0===o[n[i]]){for(var a=2,s=n.slice(i,i+a).join(r),l=o[s];void 0===l&&n.length>i+a;)a++,l=o[s=n.slice(i,i+a).join(r)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var c=n.slice(i+a).join(r);return c?ju(l,c,r):void 0}o=o[n[i]]}return o}}function Mu(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 Tu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mu(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var qu=function(e){iu(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=su(t);if(r){var o=su(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return au(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Jc(this,o),t=n.call(this),Eu&&vu.call(nu(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return ru(o,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."));var s=xu(this.data,a);return s||!i||"string"!=typeof r?s:ju(this.data&&this.data[e]&&this.data[e][t],r,o)}},{key:"addResource",value:function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];r&&(a=a.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(n=t,t=(a=e.split("."))[1]),this.addNamespaces(t),wu(this.data,a,n),o.silent||this.emit("added",e,t,r,n)}},{key:"addResources",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in r)"string"!=typeof r[o]&&"[object Array]"!==Object.prototype.toString.apply(r[o])||this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(n=r,r=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=xu(this.data,a)||{};n?ku(s,r,o):s=Tu(Tu({},s),r),wu(this.data,a,s),i.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?Tu(Tu({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}(vu),Du={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,r,n,o))})),t}};function Ru(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 Lu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ru(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ru(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Iu={},$u=function(e){iu(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=su(t);if(r){var o=su(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return au(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Jc(this,o),t=n.call(this),Eu&&vu.call(nu(t)),function(e,t,r){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){t[e]&&(r[e]=t[e])}))}(0,e,nu(t)),t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=yu.create("translator"),t}return ru(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],i=r&&e.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,r){t=t||"",r=r||"";var n=_u.filter((function(e){return t.indexOf(e)<0&&r.indexOf(e)<0}));if(0===n.length)return!0;var o=new RegExp("(".concat(n.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}(e,r,n));if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(n)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,r){var n=this;if("object"!==Kc(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===Kc(t)&&(t=Lu({},t)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,u=c[c.length-1],d=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var h=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(u).concat(h).concat(l),usedKey:l,exactUsedKey:l,usedLng:d,usedNS:u}:"".concat(u).concat(h).concat(l)}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:d,usedNS:u}:l}var p=this.resolve(e,t),m=p&&p.res,g=p&&p.usedKey||l,y=p&&p.exactUsedKey||l,v=Object.prototype.toString.apply(m),b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&m&&"string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m&&["[object Number]","[object Function]","[object RegExp]"].indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,Lu(Lu({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return i?(p.res=A,p):A}if(a){var w="[object Array]"===v,x=w?[]:{},k=w?y:g;for(var S in m)if(Object.prototype.hasOwnProperty.call(m,S)){var C="".concat(k).concat(a).concat(S);x[S]=this.translate(C,Lu(Lu({},t),{joinArrays:!1,ns:c})),x[S]===C&&(x[S]=m[S])}m=x}}else if(O&&"string"==typeof b&&"[object Array]"===v)(m=m.join(b))&&(m=this.extendTranslation(m,e,t,r));else{var P=!1,E=!1,_=void 0!==t.count&&"string"!=typeof t.count,j=o.hasDefaultValue(t),M=_?this.pluralResolver.getSuffix(d,t.count,t):"",T=t["defaultValue".concat(M)]||t.defaultValue;!this.isValidLookup(m)&&j&&(P=!0,m=T),this.isValidLookup(m)||(E=!0,m=l);var q=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:m,D=j&&T!==m&&this.options.updateMissing;if(E||P||D){if(this.logger.log(D?"updateKey":"missingKey",d,u,l,D?T:m),a){var R=this.resolve(l,Lu(Lu({},t),{},{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var $=0;$<I.length;$++)L.push(I[$]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var N=function(e,r,o){var i=j&&o!==m?o:q;n.options.missingKeyHandler?n.options.missingKeyHandler(e,u,r,i,D,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,u,r,i,D,t),n.emit("missingKey",e,u,r,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?L.forEach((function(e){n.pluralResolver.getSuffixes(e,t).forEach((function(r){N([e],l+r,t["defaultValue".concat(r)]||T)}))})):N(L,l,T))}m=this.extendTranslation(m,e,t,p,r),E&&m===l&&this.options.appendNamespaceToMissingKey&&(m="".concat(u,":").concat(l)),(E||P)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,P?m:void 0):this.options.parseMissingKeyHandler(m))}return i?(p.res=m,p):m}},{key:"extendTranslation",value:function(e,t,r,n,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Lu(Lu({},this.options.interpolation.defaultVariables),r),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(Lu(Lu({},r),{interpolation:Lu(Lu({},this.options.interpolation),r.interpolation)}));var a,s="string"==typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(c=Lu(Lu({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,r.lng||this.language,r),s){var u=e.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return o&&o[0]===n[0]&&!r.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))}),r)),r.interpolation&&this.interpolator.reset()}var d=r.postProcess||this.options.postProcess,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==r.applyPostProcessor&&(e=Du.handle(f,e,t,this.options&&this.options.postProcessPassResolved?Lu({i18nResolved:n},r):r,this)),e}},{key:"resolve",value:function(e){var t,r,n,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;r=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(i=e,!Iu["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Iu["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(r){if(!a.isValidLookup(t)){o=r;var i,l=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,c,r,e,s);else{var u;d&&(u=a.pluralResolver.getSuffix(r,s.count,s));var p="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(c+u),f&&l.push(c+p)),h){var m="".concat(c).concat(a.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+u),f&&l.push(m+p))}}for(;i=l.pop();)a.isValidLookup(t)||(n=i,t=a.getResource(r,e,i,s))}})))}))}})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}]),o}(vu);function Nu(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Qu=function(){function e(t){Jc(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=yu.create("languageUtils")}return ru(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Nu(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Nu(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Nu(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var n=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(n)||(t=n)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var n=r.getLanguagePartFromCode(e);if(r.isSupportedCode(n))return t=n;t=r.options.supportedLngs.find((function(e){return e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(r.isSupportedCode(e)?o.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach((function(e){o.indexOf(e)<0&&i(r.formatLanguageCode(e))})),o}}]),e}(),Bu=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zu={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Fu=["v1","v2","v3"],Uu={zero:0,one:1,two:2,few:3,many:4,other:5},Zu=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Jc(this,e),this.languageUtils=t,this.options=r,this.logger=yu.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){var e={};return Bu.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:zu[t.fc]}}))})),e}()}return ru(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((function(e,t){return Uu[e]-Uu[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):n.numbers.map((function(n){return t.getSuffix(e,n,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,r);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var r=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var i=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!Fu.includes(this.options.compatibilityJSON)}}]),e}();function Vu(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 Wu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vu(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yu(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,r){var n=xu(e,r);return void 0!==n?n:xu(t,r)}(e,t,r);return!i&&o&&"string"==typeof r&&void 0===(i=ju(e,r,n))&&(i=ju(t,r,n)),i}var Xu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Jc(this,e),this.logger=yu.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ru(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Pu,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Su(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Su(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Su(t.nestingPrefix):t.nestingPrefixEscaped||Su("$t("),this.nestingSuffix=t.nestingSuffix?Su(t.nestingSuffix):t.nestingSuffixEscaped||Su(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,n){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Yu(t,l,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(o,void 0,r,Wu(Wu(Wu({},n),t),{},{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(Yu(t,l,a,s.options.keySeparator,s.options.ignoreJSONStructure),c,r,Wu(Wu(Wu({},n),t),{},{interpolationkey:a}))};this.resetRegExp();var d=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,f=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){var r=o[1].trim();if(void 0===(i=u(r)))if("function"==typeof d){var l=d(e,o,n);i="string"==typeof l?l:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))i="";else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=Ou(i));var c=t.safeValue(i);if(e=e.replace(o[0],c),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,n,o,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var n=e.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(n[1]);e=n[0];var a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o=Wu(Wu({},t),o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(i)}return delete o.defaultValue,e}for(;r=this.nestingRegexp.exec(e);){var l=[];(o=(o=Wu({},a)).replace&&"string"!=typeof o.replace?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var c=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var u=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=u.shift(),l=u,c=!0}if((n=t(s.call(this,r[1].trim(),o),o))&&r[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=Ou(n)),n||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),n=""),c&&(n=l.reduce((function(e,t){return i.format(e,t,a.lng,Wu(Wu({},a),{},{interpolationkey:r[1].trim()}))}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}]),e}();function Hu(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 Gu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hu(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ku(e){var t={};return function(r,n,o){var i=n+JSON.stringify(o),a=t[i];return a||(a=e(n,o),t[i]=a),a(r)}}var Ju=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Jc(this,e),this.logger=yu.create("formatter"),this.options=t,this.formats={number:Ku((function(e,t){var r=new Intl.NumberFormat(e,Gu({},t));return function(e){return r.format(e)}})),currency:Ku((function(e,t){var r=new Intl.NumberFormat(e,Gu(Gu({},t),{},{style:"currency"}));return function(e){return r.format(e)}})),datetime:Ku((function(e,t){var r=new Intl.DateTimeFormat(e,Gu({},t));return function(e){return r.format(e)}})),relativetime:Ku((function(e,t){var r=new Intl.RelativeTimeFormat(e,Gu({},t));return function(e){return r.format(e,t.range||"day")}})),list:Ku((function(e,t){var r=new Intl.ListFormat(e,Gu({},t));return function(e){return r.format(e)}}))},this.init(t)}return ru(e,[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Ku(t)}},{key:"format",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.split(this.formatSeparator).reduce((function(e,t){var i=function(e){var t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=function(e){return cu(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||du(e)||fu()}(e.split(":")),n=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[n.trim()]||(r[n.trim()]=o),"false"===o&&(r[n.trim()]=!1),"true"===o&&(r[n.trim()]=!0),isNaN(o)||(r[n.trim()]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}}(t),a=i.formatName,s=i.formatOptions;if(n.formats[a]){var l=e;try{var c=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},u=c.locale||c.lng||o.locale||o.lng||r;l=n.formats[a](e,u,Gu(Gu(Gu({},s),o),c))}catch(e){n.logger.warn(e)}return l}return n.logger.warn("there was no format function for ".concat(a)),e}),e);return i}}]),e}();function ed(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 td(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ed(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var rd=function(e){iu(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=su(t);if(r){var o=su(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return au(this,e)});function o(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Jc(this,o),i=n.call(this),Eu&&vu.call(nu(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=yu.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return ru(o,[{key:"queueLoad",value:function(e,t,r,n){var o=this,i={},a={},s={},l={};return e.forEach((function(e){var n=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!r.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,n=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===l[t]&&(l[t]=!0)))})),n||(s[e]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,r){var n=e.split("|"),o=n[0],i=n[1];t&&this.emit("failedLoading",o,i,t),r&&this.store.addResourceBundle(o,i,r),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(r){!function(e,t,r){var n=Au(e,t,Object),o=n.obj,i=n.k;o[i]=o[i]||[],o[i].push(r)}(r.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(e){a[e]||(a[e]={});var t=r.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var n=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:r,tried:o,wait:i,callback:a});else{this.readingCalls++;var s=function(s,l){if(n.readingCalls--,n.waitingReads.length>0){var c=n.waitingReads.shift();n.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&o<n.maxRetries?setTimeout((function(){n.read.call(n,e,t,r,o+1,2*i,a)}),i):a(s,l)},l=this.backend[r].bind(this.backend);if(2!==l.length)return l(e,t,s);try{var c=l(e,t);c&&"function"==typeof c.then?c.then((function(e){return s(null,e)})).catch(s):s(null,c)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(function(n,a){n&&t.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(o," failed"),n),!n&&a&&t.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,n,a)}))}},{key:"saveMissing",value:function(e,t,r,n,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){var s=td(td({},i),{},{isUpdate:o}),l=this.backend.create.bind(this.backend);if(l.length<6)try{var c;(c=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof c.then?c.then((function(e){return a(null,e)})).catch(a):a(null,c)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}]),o}(vu);function nd(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Kc(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Kc(e[2])||"object"===Kc(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function od(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function id(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 ad(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?id(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):id(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sd(){}var ld=function(e){iu(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=su(t);if(r){var o=su(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return au(this,e)});function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Jc(this,o),e=n.call(this),Eu&&vu.call(nu(e)),e.options=od(r),e.services={},e.logger=yu,e.modules={external:[]},t=nu(e),Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((function(e){"function"==typeof t[e]&&(t[e]=t[e].bind(t))})),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),au(e,nu(e));setTimeout((function(){e.init(r,i)}),0)}return e}return ru(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n=nd();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=ad(ad(ad({},n),this.options),od(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ad(ad({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var i;this.modules.logger?yu.init(o(this.modules.logger),this.options):yu.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Ju);var a=new Qu(this.options);this.store=new qu(this.options.resources,this.options);var s=this.services;s.logger=yu,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Zu(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=o(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Xu(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new rd(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))})),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new $u(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit.apply(e,[t].concat(n))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,r||(r=sd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var c=bu(),u=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sd,n="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase())return r();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,r){var n=bu();return e||(e=this.languages),t||(t=this.options.ns),r||(r=sd),this.services.backendConnector.reload(e,t,(function(e){n.resolve(),r(e)})),n}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Du.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var r=this.languages[t];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var n=bu();this.emit("languageChanging",e);var o=function(e){r.language=e,r.languages=r.services.languageUtils.toResolveHierarchy(e),r.resolvedLanguage=void 0,r.setResolvedLanguage(e)},i=function(i){e||i||!r.services.languageDetector||(i=[]);var a="string"==typeof i?i:r.services.languageUtils.getBestMatchFromCodes(i);a&&(r.language||o(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(e){!function(e,i){i?(o(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,n.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,r){var n=this,o=function e(t,o){var i;if("object"!==Kc(o)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];i=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else i=ad({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||r||e.keyPrefix;var c,u=n.options.keySeparator||".";return c=i.keyPrefix&&Array.isArray(t)?t.map((function(e){return"".concat(i.keyPrefix).concat(u).concat(e)})):i.keyPrefix?"".concat(i.keyPrefix).concat(u).concat(t):t,n.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};if(r.precheck){var s=r.precheck(this,a);if(void 0!==s)return s}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,n=bu();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=bu();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter((function(e){return n.indexOf(e)<0}));return o.length?(this.options.preload=n.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new Qu(nd());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sd,n=ad(ad(ad({},this.options),t),{isClone:!0}),i=new o(n);return void 0===t.debug&&void 0===t.prefix||(i.logger=i.logger.clone(t)),["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=ad({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new $u(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];i.emit.apply(i,[e].concat(r))})),i.init(n,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),o}(vu);lu(ld,"createInstance",(function(){return new ld(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var cd=ld.createInstance();function ud(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}cd.createInstance=ld.createInstance,cd.createInstance,cd.dir,cd.init,cd.loadResources,cd.reloadResources,cd.use,cd.changeLanguage,cd.getFixedT,cd.t,cd.exists,cd.setDefaultNamespace,cd.hasLoadedNamespace,cd.loadNamespaces,cd.loadLanguages;var dd={};function fd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&dd[t[0]]||("string"==typeof t[0]&&(dd[t[0]]=new Date),ud.apply(void 0,t))}function hd(e,t,r){e.loadNamespaces(t,(function(){e.isInitialized?r():e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}))}var pd=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,md={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},gd=function(e){return md[e]};function yd(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 vd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bd,Od={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(pd,gd)}},Ad={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Od=vd(vd({},Od),e)}(e.options.react),function(e){bd=e}(e)}},wd=(0,h.createContext)(),xd=function(){function e(){Jc(this,e),this.usedNamespaces={}}return ru(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function kd(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 Sd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kd(Object(r),!0).forEach((function(t){lu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,n=(0,h.useContext)(wd)||{},o=n.i18n,i=n.defaultNS,a=r||o||bd;if(a&&!a.reportNamespaces&&(a.reportNamespaces=new xd),!a){fd("You will need to pass in an i18next instance by using initReactI18next");var s=function(e,t){return"string"==typeof t?t:t&&"object"===Kc(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&void 0!==a.options.react.wait&&fd("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=Sd(Sd(Sd({},Od),a.options.react),t),u=c.useSuspense,d=c.keyPrefix,f=e||i||a.options&&a.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);var p=(a.isInitialized||a.initializedStoreOnce)&&f.every((function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(n,e)||o&&!a(i,e)))}(e,t,r):(fd("i18n.languages were undefined or empty",t.languages),!0)}(e,a,c)}));function m(){return a.getFixedT(null,"fallback"===c.nsMode?f:f[0],d)}var g=function(e,t){return cu(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}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||du(e,t)||fu()}((0,h.useState)(m),2),y=g[0],v=g[1],b=f.join(),O=function(e,t){var r=(0,h.useRef)();return(0,h.useEffect)((function(){r.current=e}),[e,t]),r.current}(b),A=(0,h.useRef)(!0);(0,h.useEffect)((function(){var e=c.bindI18n,t=c.bindI18nStore;function r(){A.current&&v(m)}return A.current=!0,p||u||hd(a,f,(function(){A.current&&v(m)})),p&&O&&O!==b&&A.current&&v(m),e&&a&&a.on(e,r),t&&a&&a.store.on(t,r),function(){A.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,r)})),t&&a&&t.split(" ").forEach((function(e){return a.store.off(e,r)}))}}),[a,b]);var w=(0,h.useRef)(!0);(0,h.useEffect)((function(){A.current&&!w.current&&v(m),w.current=!1}),[a,d]);var x=[y,a,p];if(x.t=y,x.i18n=a,x.ready=p,p)return x;if(!p&&!u)return x;throw new Promise((function(e){hd(a,f,(function(){e()}))}))}var Pd=[],Ed=Pd.forEach,_d=Pd.slice,jd=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Md={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var r=function(e){for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null}(e.lookupCookie);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*r*1e3)),n&&(o.domain=n),document.cookie=function(e,t,r){var n=r||{};n.path=n.path||"/";var o=encodeURIComponent(t),i="".concat(e,"=").concat(o);if(n.maxAge>0){var a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(n.domain){if(!jd.test(n.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(n.domain)}if(n.path){if(!jd.test(n.path))throw new TypeError("option path is invalid");i+="; Path=".concat(n.path)}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i}(e,encodeURIComponent(t),o)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},Td={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=r.substring(1).split("&"),o=0;o<n.length;o++){var i=n[o].indexOf("=");i>0&&n[o].substring(0,i)===e.lookupQuerystring&&(t=n[o].substring(i+1))}}return t}},qd=null,Dd=function(){if(null!==qd)return qd;try{qd="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){qd=!1}return qd},Rd={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&Dd()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&Dd()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Ld=null,Id=function(){if(null!==Ld)return Ld;try{Ld="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){Ld=!1}return Ld},$d={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Id()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(t=r)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Id()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},Nd={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)t.push(navigator.languages[r]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},Qd={name:"htmlTag",lookup:function(e){var t,r=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},Bd={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof r[e.lookupFromPathIndex])return;t=r[e.lookupFromPathIndex].replace("/","")}else t=r[0].replace("/","")}return t}},zd={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,r="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[t]}},Fd=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Jc(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return ru(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Ed.call(_d.call(arguments,1),(function(t){if(t)for(var r in t)void 0===e[r]&&(e[r]=t[r])})),e}(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Md),this.addDetector(Td),this.addDetector(Rd),this.addDetector($d),this.addDetector(Nd),this.addDetector(Qd),this.addDetector(Bd),this.addDetector(zd)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var r=[];return e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}})),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var r=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){r.detectors[t]&&r.detectors[t].cacheUserLanguage(e,r.options)})))}}]),e}();Fd.type="languageDetector";function Ud(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}cd.use(Fd).use(Ad).init({resources:{en:{translation:{info:"No media service available",error:"An unexpected error occurred",defaultUploaderLabel:"Drag file here or click to browse ...",uploaderLabel:'Drag file of type "{{type}}" here or click to browse ...',uploading:"Uploading ..."}},de:{translation:{info:"Es steht kein Media Service zur Verfügung",error:"Ein unerwarteter Fehler ist aufgetreten",defaultUploaderLabel:"Datei hierher ziehen oder zum Durchsuchen klicken ...",uploaderLabel:'Datei vom Typ "{{type}}" hierher ziehen oder zum Durchsuchen klicken ...',uploading:"Lade hoch ..."}}},fallbackLng:"en"});var Zd=0;function Vd(e){return"__private_"+Zd+++"_"+e}function Wd(e,t,r){const n=[];return e.forEach((e=>"string"!=typeof e?n.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&n.push(e),t<o.length-1&&n.push(r)})))),n}function Yd(e,t){const r=/\$/g;let n=[e];if(null==t)return n;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=r[Symbol.replace](o,"$$$$")),n=Wd(n,new RegExp(`%\\{${e}\\}`,"g"),o)}return n}const Xd=e=>{throw new Error(`missing string: ${e}`)};var Hd=Vd("onMissingKey"),Gd=Vd("apply");class Kd{constructor(e,t){let{onMissingKey:r=Xd}=void 0===t?{}:t;Object.defineProperty(this,Gd,{value:Jd}),Object.defineProperty(this,Hd,{writable:!0,value:void 0}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Ud(this,Gd)[Gd],this):Ud(this,Gd)[Gd](e),Ud(this,Hd)[Hd]=r}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){let r=this.locale.strings[e];if(null==r&&(Ud(this,Hd)[Hd](e),r=e),"object"==typeof r){if(t&&void 0!==t.smart_count)return Yd(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}if("string"!=typeof r)throw new Error("string was not a string");return Yd(r,t)}}function Jd(e){if(null==e||!e.strings)return;const t=this.locale;Object.assign(this.locale,{strings:{...t.strings,...e.strings},pluralize:e.pluralize||t.pluralize})}var ef=function(){var e={},t=e._fns={};return e.emit=function(e,r,n,o,i,a,s){var l=function(e){for(var r=t[e]?t[e]:[],n=e.indexOf(":"),o=-1===n?[e]:[e.substring(0,n),e.substring(n+1)],i=Object.keys(t),a=0,s=i.length;a<s;a++){var l=i[a];if("*"===l&&(r=r.concat(t[l])),2===o.length&&o[0]===l){r=r.concat(t[l]);break}}return r}(e);l.length&&function(e,t,r){for(var n=0,o=t.length;n<o&&t[n];n++)t[n].event=e,t[n].apply(t[n],r)}(e,l,[r,n,o,i,a,s])},e.on=function(e,r){t[e]||(t[e]=[]),t[e].push(r)},e.once=function(t,r){this.on(t,(function n(){r.apply(this,arguments),e.off(t,n)}))},e.off=function(e,t){var r=[];if(e&&t)for(var n=this._fns[e],o=0,i=n?n.length:0;o<i;o++)n[o]!==t&&r.push(n[o]);r.length?this._fns[e]=r:delete this._fns[e]},e},tf=Uc(ef),rf=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},nf="object"==typeof Fc&&Fc&&Fc.Object===Object&&Fc,of="object"==typeof self&&self&&self.Object===Object&&self,af=nf||of||Function("return this")(),sf=af,lf=/\s/,cf=function(e){for(var t=e.length;t--&&lf.test(e.charAt(t)););return t},uf=/^\s+/,df=af.Symbol,ff=df,hf=Object.prototype,pf=hf.hasOwnProperty,mf=hf.toString,gf=ff?ff.toStringTag:void 0,yf=Object.prototype.toString,vf=function(e){var t=pf.call(e,gf),r=e[gf];try{e[gf]=void 0;var n=!0}catch(e){}var o=mf.call(e);return n&&(t?e[gf]=r:delete e[gf]),o},bf=df?df.toStringTag:void 0,Of=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bf&&bf in Object(e)?vf(e):function(e){return yf.call(e)}(e)},Af=function(e){return e?e.slice(0,cf(e)+1).replace(uf,""):e},wf=rf,xf=/^[-+]0x[0-9a-f]+$/i,kf=/^0b[01]+$/i,Sf=/^0o[0-7]+$/i,Cf=parseInt,Pf=rf,Ef=function(){return sf.Date.now()},_f=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==Of(e)}(e))return NaN;if(wf(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=wf(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Af(e);var r=kf.test(e);return r||Sf.test(e)?Cf(e.slice(2),r?2:8):xf.test(e)?NaN:+e},jf=Math.max,Mf=Math.min,Tf=function(e,t,r){var n,o,i,a,s,l,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=n,i=o;return n=o=void 0,c=t,a=e.apply(i,r)}function p(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=i}function m(){var e=Ef();if(p(e))return g(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?Mf(r,i-(e-c)):r}(e))}function g(e){return s=void 0,f&&n?h(e):(n=o=void 0,a)}function y(){var e=Ef(),r=p(e);if(n=arguments,o=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?h(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=_f(t)||0,Pf(r)&&(u=!!r.leading,i=(d="maxWait"in r)?jf(_f(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,n=l=o=s=void 0},y.flush=function(){return void 0===s?a:g(Ef())},y},qf=rf,Df=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return qf(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Tf(e,t,{leading:n,maxWait:t,trailing:o})},Rf=Uc(Df);function Lf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var If=0;function $f(e){return"__private_"+If+++"_"+e}var Nf=$f("callbacks"),Qf=$f("publish");class Bf{constructor(){Object.defineProperty(this,Qf,{value:zf}),this.state={},Object.defineProperty(this,Nf,{writable:!0,value:new Set})}getState(){return this.state}setState(e){const t={...this.state},r={...this.state,...e};this.state=r,Lf(this,Qf)[Qf](t,r,e)}subscribe(e){return Lf(this,Nf)[Nf].add(e),()=>{Lf(this,Nf)[Nf].delete(e)}}}function zf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Lf(this,Nf)[Nf].forEach((e=>{e(...t)}))}function Ff(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}Bf.VERSION="3.2.2";var Uf={__proto__:null,md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",webp:"image/webp",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",dicom:"application/dicom",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Zf(e){var t;if(e.type)return e.type;const r=e.name?null==(t=Ff(e.name).extension)?void 0:t.toLowerCase():null;return r&&r in Uf?Uf[r]:"application/octet-stream"}function Vf(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}function Wf(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1].split(".",2),n=parseInt(r[0],10),o=parseInt(r[1],10);return n<15||15===n&&o<15063||n>18||18===n&&o>=18218}function Yf(e){return e<10?`0${e}`:e.toString()}function Xf(){const e=new Date;return`${Yf(e.getHours())}:${Yf(e.getMinutes())}:${Yf(e.getSeconds())}`}const Hf={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Xf()}]`,...t)}},Gf={debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${Xf()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${Xf()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Xf()}]`,...t)}};var Kf=Uc((function(e){if("number"!=typeof e||Number.isNaN(e))throw new TypeError("Expected a number, got "+typeof e);const t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/1024**n);const o=r[n];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${o}`:`${(t?"-":"")+e.toFixed(1)} ${o}`}));function Jf(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Jf.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)"*"!==o[t]&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if("function"==typeof e.splice)for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if("object"==typeof e)for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var eh=/[\/\+\.]/,th=Uc((function(e,t){function r(t){var r=function(e,t,r){var n=new Jf(e,r||/[\/\.]/);return void 0!==t?n.match(t):n}(t,e,eh);return r&&r.length>=2}return t?r(t.split(";")[0]):r}));const rh={maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]};class nh extends Error{constructor(e,t){var r;super(e),this.isRestriction=!0,this.isUserFacing=null==(r=null==t?void 0:t.isUserFacing)||r,null!=t&&t.file&&(this.file=t.file)}}class oh{constructor(e,t){this.i18n=t,this.getOpts=()=>{var t;const r=e();if(null!=(null==(t=r.restrictions)?void 0:t.allowedFileTypes)&&!Array.isArray(r.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");return r}}validateAggregateRestrictions(e,t){const{maxTotalFileSize:r,maxNumberOfFiles:n}=this.getOpts().restrictions;if(n){const r=e.filter((e=>!e.isGhost));if(r.length+t.length>n)throw new nh(`${this.i18n("youCanOnlyUploadX",{smart_count:n})}`)}if(r){let n=e.reduce(((e,t)=>{var r;return e+(null!=(r=t.size)?r:0)}),0);for(const e of t)if(null!=e.size&&(n+=e.size,n>r))throw new nh(this.i18n("exceedsSize",{size:Kf(r),file:e.name}))}}validateSingleFile(e){const{maxFileSize:t,minFileSize:r,allowedFileTypes:n}=this.getOpts().restrictions;if(n&&!n.some((t=>t.includes("/")?!!e.type&&th(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.slice(1).toLowerCase()))){const t=n.join(", ");throw new nh(this.i18n("youCanOnlyUploadFileTypes",{types:t}),{file:e})}if(t&&null!=e.size&&e.size>t)throw new nh(this.i18n("exceedsSize",{size:Kf(t),file:e.name}),{file:e});if(r&&null!=e.size&&e.size<r)throw new nh(this.i18n("inferiorSize",{size:Kf(r)}),{file:e})}validate(e,t){t.forEach((e=>{this.validateSingleFile(e)})),this.validateAggregateRestrictions(e,t)}validateMinNumberOfFiles(e){const{minNumberOfFiles:t}=this.getOpts().restrictions;if(t&&Object.keys(e).length<t)throw new nh(this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))}getMissingRequiredMetaFields(e){const t=new nh(this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})),{requiredMetaFields:r}=this.getOpts().restrictions,n=[];for(const t of r)Object.hasOwn(e.meta,t)&&""!==e.meta[t]||n.push(t);return{missingFields:n,error:t}}}var ih={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",noSearchResults:"Unfortunately, there are no results for this search",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",loadedXFiles:"Loaded %{numFiles} files",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",search:"Search",resetSearch:"Reset search",emptyFolderAdded:"No files were added from empty folder",addedNumFiles:"Added %{numFiles} file(s)",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"},additionalRestrictionsFailed:"%{count} additional restrictions were not fulfilled"}};let ah,sh;function lh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ch=0;function uh(e){return"__private_"+ch+++"_"+e}const dh={totalProgress:0,allowNewUpload:!0,error:null,recoveredState:null};var fh=uh("plugins"),hh=uh("restricter"),ph=uh("storeUnsubscribe"),mh=uh("emitter"),gh=uh("preProcessors"),yh=uh("uploaders"),vh=uh("postProcessors"),bh=uh("informAndEmit"),Oh=uh("checkRequiredMetaFieldsOnFile"),Ah=uh("checkRequiredMetaFields"),wh=uh("assertNewUploadAllowed"),xh=uh("transformFile"),kh=uh("startIfAutoProceed"),Sh=uh("checkAndUpdateFileState"),Ch=uh("addListeners"),Ph=uh("updateOnlineStatus"),Eh=uh("requestClientById"),_h=uh("createUpload"),jh=uh("getUpload"),Mh=uh("removeUpload"),Th=uh("runUpload");ah=Symbol.for("uppy test: getPlugins"),sh=Symbol.for("uppy test: createUpload");class qh{constructor(e){Object.defineProperty(this,Th,{value:Zh}),Object.defineProperty(this,Mh,{value:Uh}),Object.defineProperty(this,jh,{value:Fh}),Object.defineProperty(this,_h,{value:zh}),Object.defineProperty(this,Ch,{value:Bh}),Object.defineProperty(this,Sh,{value:Qh}),Object.defineProperty(this,kh,{value:Nh}),Object.defineProperty(this,xh,{value:$h}),Object.defineProperty(this,wh,{value:Ih}),Object.defineProperty(this,Ah,{value:Lh}),Object.defineProperty(this,Oh,{value:Rh}),Object.defineProperty(this,bh,{value:Dh}),Object.defineProperty(this,fh,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,hh,{writable:!0,value:void 0}),Object.defineProperty(this,ph,{writable:!0,value:void 0}),Object.defineProperty(this,mh,{writable:!0,value:tf()}),Object.defineProperty(this,gh,{writable:!0,value:new Set}),Object.defineProperty(this,yh,{writable:!0,value:new Set}),Object.defineProperty(this,vh,{writable:!0,value:new Set}),this.scheduledAutoProceed=null,this.wasOffline=!1,this.calculateProgress=Rf(((e,t)=>{const r=this.getFile(null==e?void 0:e.id);if(null==e||!r)return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);if(100===r.progress.percentage)return void this.log(`Not setting progress for a file that has been already uploaded: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...r.progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}),500,{leading:!0,trailing:!0}),Object.defineProperty(this,Ph,{writable:!0,value:this.updateOnlineStatus.bind(this)}),Object.defineProperty(this,Eh,{writable:!0,value:new Map}),this.defaultLocale=ih;const t={id:"uppy",autoProceed:!1,allowMultipleUploadBatches:!0,debug:!1,restrictions:rh,meta:{},onBeforeFileAdded:(e,t)=>!Object.hasOwn(t,e.id),onBeforeUpload:e=>e,store:new Bf,logger:Hf,infoTimeout:5e3},r={...t,...e};this.opts={...r,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Gf),this.log(`Using Core v${qh.VERSION}`),this.i18nInit(),this.store=this.opts.store,this.setState({...dh,plugins:{},files:{},currentUploads:{},capabilities:{uploadProgress:Wf(),individualCancellation:!0,resumableUploads:!1},meta:{...this.opts.meta},info:[]}),lh(this,hh)[hh]=new oh((()=>this.opts),this.i18n),lh(this,ph)[ph]=this.store.subscribe(((e,t,r)=>{this.emit("state-update",e,t,r),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),lh(this,Ch)[Ch]()}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];lh(this,mh)[mh].emit(e,...r)}on(e,t){return lh(this,mh)[mh].on(e,t),this}once(e,t){return lh(this,mh)[mh].once(e,t),this}off(e,t){return lh(this,mh)[mh].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}patchFilesState(e){const t=this.getState().files;this.setState({files:{...t,...Object.fromEntries(Object.entries(e).map((e=>{let[r,n]=e;return[r,{...t[r],...n}]})))}})}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.patchFilesState({[e]:t})}i18nInit(){const e=new Kd([this.defaultLocale,this.opts.locale],{onMissingKey:e=>this.log(`Missing i18n string: ${e}`,"error")});this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...null==e?void 0:e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((t=>{t.setOptions(e)})),this.setState(void 0)}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},r={};Object.keys(t).forEach((n=>{r[n]={...t[n],progress:{...t[n].progress,...e}}})),this.setState({files:r,...dh}),this.emit("reset-progress")}clearUploadedFiles(){this.setState({...dh,files:{}})}addPreProcessor(e){lh(this,gh)[gh].add(e)}removePreProcessor(e){return lh(this,gh)[gh].delete(e)}addPostProcessor(e){lh(this,vh)[vh].add(e)}removePostProcessor(e){return lh(this,vh)[vh].delete(e)}addUploader(e){lh(this,yh)[yh].add(e)}removeUploader(e){return lh(this,yh)[yh].delete(e)}setMeta(e){const t={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach((t=>{r[t]={...r[t],meta:{...r[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:r})}setFileMeta(e,t){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const n={...r[e].meta,...t};r[e]={...r[e],meta:n},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getFilesByIds(e){return e.map((e=>this.getFile(e)))}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:r}=this.getState(),n=Object.values(e),o=n.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=n.filter((e=>!e.progress.uploadStarted)),a=n.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=n.filter((e=>e.progress.uploadStarted)),l=n.filter((e=>e.isPaused)),c=n.filter((e=>e.progress.uploadComplete)),u=n.filter((e=>e.error)),d=o.filter((e=>!e.isPaused)),f=n.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:u,inProgressFiles:o,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:100===t&&c.length===n.length&&0===f.length,isAllErrored:!!r&&u.length===n.length,isAllPaused:0!==o.length&&l.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:n.some((e=>e.isGhost))}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{lh(this,hh)[hh].validate(t,[e])}catch(e){return e}return null}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){lh(this,wh)[wh](e);const{nextFilesState:t,validFilesToAdd:r,errors:n}=lh(this,Sh)[Sh]([e]),o=n.filter((e=>e.isRestriction));if(lh(this,bh)[bh](o),n.length>0)throw n[0];this.setState({files:t});const[i]=r;return this.emit("file-added",i),this.emit("files-added",r),this.log(`Added file: ${i.name}, ${i.id}, mime type: ${i.type}`),lh(this,kh)[kh](),i.id}addFiles(e){lh(this,wh)[wh]();const{nextFilesState:t,validFilesToAdd:r,errors:n}=lh(this,Sh)[Sh](e),o=n.filter((e=>e.isRestriction));lh(this,bh)[bh](o);const i=n.filter((e=>!e.isRestriction));if(i.length>0){let e="Multiple errors occurred while adding files:\n";if(i.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:i.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(i,e);{const t=new Error(e);throw t.errors=i,t}}this.setState({files:t}),r.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.values(r).forEach((e=>{this.log(`Added file: ${e.name}\n id: ${e.id}\n type: ${e.type}`)})),r.length>0&&lh(this,kh)[kh]()}removeFiles(e,t){const{files:r,currentUploads:n}=this.getState(),o={...r},i={...n},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach((e=>{r[e]&&(a[e]=r[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=n[e].fileIDs.filter(s);if(0===t.length)return void delete i[e];const{capabilities:r}=this.getState();if(t.length!==n[e].fileIDs.length&&!r.individualCancellation)throw new Error("individualCancellation is disabled");i[e]={...n[e],fileIDs:t}}));const l={currentUploads:i,files:o};0===Object.keys(o).length&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(a);c.forEach((e=>{this.emit("file-removed",a[e],t)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,t){this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).progress.uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const r={...e[t],isPaused:!0};e[t]=r})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const r={...e[t],isPaused:!1,error:null};e[t]=r})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const r=lh(this,_h)[_h](t,{forceAllowNewUpload:!0});return lh(this,Th)[Th](r)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState(dh)}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=lh(this,_h)[_h]([e],{forceAllowNewUpload:!0});return lh(this,Th)[Th](t)}logout(){this.iteratePlugins((e=>{var t;null==(t=e.provider)||null==t.logout||t.logout()}))}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),r=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,n=r.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(n/t*100);return void this.setState({totalProgress:o})}let n=t.reduce(((e,t)=>{var r;return e+(null!=(r=t.progress.bytesTotal)?r:0)}),0);const o=n/t.length;n+=o*r.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),r.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===n?0:Math.round(i/n*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){var e;null==(e=window.navigator.onLine)||e?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,t),n=r.id;if(!n)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(n);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${n}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${n} v${e.VERSION}`),r.type in lh(this,fh)[fh]?lh(this,fh)[fh][r.type].push(r):lh(this,fh)[fh][r.type]=[r],r.install(),this.emit("plugin-added",r),this}getPlugin(e){for(const t of Object.values(lh(this,fh)[fh])){const r=t.find((t=>t.id===e));if(null!=r)return r}}[ah](e){return lh(this,fh)[fh][e]}iteratePlugins(e){Object.values(lh(this,fh)[fh]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=lh(this,fh)[fh][e.type],r=t.findIndex((t=>t.id===e.id));-1!==r&&t.splice(r,1);const n={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(n)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),lh(this,ph)[ph](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",lh(this,Ph)[Ph]),window.removeEventListener("offline",lh(this,Ph)[Ph]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,r){void 0===t&&(t="info"),void 0===r&&(r=3e3);const n="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:n?e.message:e,details:n?e.details:null}]}),setTimeout((()=>this.hideInfo()),r),this.emit("info-visible")}log(e,t){const{logger:r}=this.opts;switch(t){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}registerRequestClient(e,t){lh(this,Eh)[Eh].set(e,t)}getRequestClientForFile(e){if(!e.remote)throw new Error(`Tried to get RequestClient for a non-remote file ${e.id}`);const t=lh(this,Eh)[Eh].get(e.remote.requestClientId);if(null==t)throw new Error(`requestClientId "${e.remote.requestClientId}" not registered for file "${e.id}"`);return t}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?lh(this,Th)[Th](e):(lh(this,Mh)[Mh](e),Promise.reject(new Error("Nonexistent upload")))}[sh](){return lh(this,_h)[_h](...arguments)}addResultData(e,t){if(!lh(this,jh)[jh](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),n={...r[e],result:{...r[e].result,...t}};this.setState({currentUploads:{...r,[e]:n}})}upload(){var e;null!=(e=lh(this,fh)[fh].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const r=this.opts.onBeforeUpload(t);return!1===r?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&"object"==typeof r&&(t=r,this.setState({files:t})),Promise.resolve().then((()=>lh(this,hh)[hh].validateMinNumberOfFiles(t))).catch((e=>{throw lh(this,bh)[bh]([e]),e})).then((()=>{if(!lh(this,Ah)[Ah](t))throw new nh(this.i18n("missingRequiredMetaField"))})).catch((e=>{throw e})).then((()=>{const{currentUploads:e}=this.getState(),r=Object.values(e).flatMap((e=>e.fileIDs)),n=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==r.indexOf(e)||n.push(t.id)}));const o=lh(this,_h)[_h](n);return lh(this,Th)[Th](o)})).catch((e=>{throw this.emit("error",e),this.log(e,"error"),e})))}}function Dh(e){for(const t of e)t.isRestriction?this.emit("restriction-failed",t.file,t):this.emit("error",t,t.file),this.log(t,"warning");const t=e.filter((e=>e.isUserFacing)),r=t.slice(0,4),n=t.slice(4);r.forEach((e=>{let{message:t,details:r=""}=e;this.info({message:t,details:r},"error",this.opts.infoTimeout)})),n.length>0&&this.info({message:this.i18n("additionalRestrictionsFailed",{count:n.length})})}function Rh(e){const{missingFields:t,error:r}=lh(this,hh)[hh].getMissingRequiredMetaFields(e);return!(t.length>0&&(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(r.message),this.emit("restriction-failed",e,r),1))}function Lh(e){let t=!0;for(const r of Object.values(e))lh(this,Oh)[Oh](r)||(t=!1);return t}function Ih(e){const{allowNewUpload:t}=this.getState();if(!1===t){const t=new nh(this.i18n("noMoreFilesAllowed"),{file:e});throw lh(this,bh)[bh]([t]),t}}function $h(e){const t=e instanceof File?{name:e.name,type:e.type,size:e.size,data:e}:e,r=Zf(t),n=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(r,t),o=Ff(n).extension,i=function(e){if(function(e){return!(!e.isRemote||!e.remote)&&new Set(["box","dropbox","drive","facebook","unsplash"]).has(e.remote.provider)}(e))return e.id;const t=Zf(e);return function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Vf(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Vf(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...e,type:t})}(t),a=t.meta||{};a.name=n,a.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;return{source:t.source||"",id:i,name:n,extension:o||"",meta:{...this.getState().meta,...a},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isGhost:!1,isRemote:t.isRemote||!1,remote:t.remote||"",preview:t.preview}}function Nh(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Qh(e){const{files:t}=this.getState(),r={...t},n=[],o=[];for(const a of e)try{var i;let e=lh(this,xh)[xh](a);const o=null==(i=t[e.id])?void 0:i.isGhost;o&&(e={...t[e.id],isGhost:!1,data:a.data},this.log(`Replaced the blob in the restored ghost file: ${e.name}, ${e.id}`));const s=this.opts.onBeforeFileAdded(e,r);if(!s&&this.checkIfFileAlreadyExists(e.id))throw new nh(this.i18n("noDuplicates",{fileName:e.name}),{file:a});if(!1===s&&!o)throw new nh("Cannot add the file because onBeforeFileAdded returned false.",{isUserFacing:!1,file:a});"object"==typeof s&&null!==s&&(e=s),lh(this,hh)[hh].validateSingleFile(e),r[e.id]=e,n.push(e)}catch(e){o.push(e)}try{lh(this,hh)[hh].validateAggregateRestrictions(Object.values(t),n)}catch(e){return o.push(e),{nextFilesState:t,validFilesToAdd:[],errors:o}}return{nextFilesState:r,validFilesToAdd:n,errors:o}}function Bh(){const e=(e,t,r)=>{let n=e.message||"Unknown error";e.details&&(n+=` ${e.details}`),this.setState({error:n}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:n,response:r})};this.on("error",e),this.on("upload-error",((t,r,n)=>{if(e(r,t,n),"object"==typeof r&&r.message){var o;this.log(r.message,"error");const e=new Error(this.i18n("failedToUpload",{file:null!=(o=null==t?void 0:t.name)?o:""}));e.isUserFacing=!0,e.details=r.message,r.details&&(e.details+=` ${r.details}`),lh(this,bh)[bh]([e])}else lh(this,bh)[bh]([r])}));let t=null;this.on("upload-stalled",((e,r)=>{const{message:n}=e,o=r.map((e=>e.meta.name)).join(", ");t||(this.info({message:n,details:o},"warning",this.opts.infoTimeout),t=setTimeout((()=>{t=null}),this.opts.infoTimeout)),this.log(`${n} ${o}`.trim(),"warning")})),this.on("upload",(()=>{this.setState({error:null})}));const r=e=>{const t=e.filter((e=>{const t=null!=e&&this.getFile(e.id);return t||this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`),t})),r=Object.fromEntries(t.map((e=>[e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}])));this.patchFilesState(r)};this.on("upload-start",(e=>{e.forEach((e=>{this.emit("upload-started",e)})),r(e)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:lh(this,vh)[vh].size>0?{mode:"indeterminate"}:void 0,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("preprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{null!=e&&this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`)})),this.on("postprocess-complete",(e=>{if(null==e||!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&lh(this,Oh)[Oh](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",lh(this,Ph)[Ph]),window.addEventListener("offline",lh(this,Ph)[Ph]),setTimeout(lh(this,Ph)[Ph],3e3))}function zh(e,t){void 0===t&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=((e=21)=>{let t="",r=e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t})();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function Fh(e){const{currentUploads:t}=this.getState();return t[e]}function Uh(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Zh(e){const t=()=>{const{currentUploads:t}=this.getState();return t[e]};let r=t();const n=[...lh(this,gh)[gh],...lh(this,yh)[yh],...lh(this,vh)[vh]];try{for(let o=r.step||0;o<n.length&&r;o++){const i=n[o];this.setState({currentUploads:{...this.getState().currentUploads,[e]:{...r,step:o}}});const{fileIDs:a}=r;await i(a,e),r=t()}}catch(t){throw lh(this,Mh)[Mh](e),t}if(r){r.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const n=r.fileIDs.map((e=>this.getFile(e))),o=n.filter((e=>!e.error)),i=n.filter((e=>e.error));this.addResultData(e,{successful:o,failed:i,uploadID:e}),r=t()}let o;return r&&(o=r.result,this.emit("complete",o),lh(this,Mh)[Mh](e)),null==o&&this.log(`Not setting result for an upload that has been removed: ${e}`),o}qh.VERSION="3.10.0";var Vh,Wh,Yh,Xh,Hh,Gh,Kh,Jh,ep,tp,rp=qh,np={},op=[],ip=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ap=Array.isArray;function sp(e,t){for(var r in t)e[r]=t[r];return e}function lp(e){var t=e.parentNode;t&&t.removeChild(e)}function cp(e,t,r){var n,o,i,a={};for(i in t)"key"==i?n=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?Vh.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return up(e,a,n,o,null)}function up(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++Yh:o,__i:-1,__u:0};return null==o&&null!=Wh.vnode&&Wh.vnode(i),i}function dp(e){return e.children}function fp(e,t){this.props=e,this.context=t}function hp(e,t){if(null==t)return e.__?hp(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?hp(e):null}function pp(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return pp(e)}}function mp(e){(!e.__d&&(e.__d=!0)&&Xh.push(e)&&!gp.__r++||Hh!==Wh.debounceRendering)&&((Hh=Wh.debounceRendering)||Gh)(gp)}function gp(){var e,t,r,n,o,i,a,s;for(Xh.sort(Kh);e=Xh.shift();)e.__d&&(t=Xh.length,n=void 0,i=(o=(r=e).__v).__e,a=[],s=[],r.__P&&((n=sp({},o)).__v=o.__v+1,Wh.vnode&&Wh.vnode(n),xp(r.__P,n,o,r.__n,void 0!==r.__P.ownerSVGElement,32&o.__u?[i]:null,a,null==i?hp(o):i,!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,kp(a,n,s),n.__e!=i&&pp(n)),Xh.length>t&&Xh.sort(Kh));gp.__r=0}function yp(e,t,r,n,o,i,a,s,l,c,u){var d,f,h,p,m,g=n&&n.__k||op,y=t.length;for(r.__d=l,function(e,t,r){var n,o,i,a,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)a=n+d,null!=(o=e.__k[n]=null==(o=t[n])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?up(null,o,null,null,null):ap(o)?up(dp,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?up(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=bp(o,r,a,u),o.__i=s,i=null,-1!==s&&(u--,(i=r[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:s<a?s==a-1&&(d=s-a):d=0,s!==n+d&&(o.__u|=65536))):(i=r[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=hp(i)),Pp(i,i,!1),r[a]=null,u--);if(u)for(n=0;n<c;n++)null!=(i=r[n])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=hp(i)),Pp(i,i))}(r,t,g),l=r.__d,d=0;d<y;d++)null!=(h=r.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(f=-1===h.__i?np:g[h.__i]||np,h.__i=d,xp(e,h,f,o,i,a,s,l,c,u),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&Cp(f.ref,null,h),u.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||f.__k===h.__k?(l&&!l.isConnected&&(l=hp(f)),l=vp(h,l,e)):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:p&&(l=p.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=m}function vp(e,t,r){var n,o;if("function"==typeof e.type){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=vp(n[o],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function bp(e,t,r,n){var o=e.key,i=e.type,a=r-1,s=r+1,l=t[r];if(null===l||l&&o==l.key&&i===l.type&&!(131072&l.__u))return r;if(n>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function Op(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||ip.test(t)?r:r+"px"}function Ap(e,t,r,n,o){var i;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Op(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Op(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Jh,e.addEventListener(t,i?tp:ep,i)):e.removeEventListener(t,i?tp:ep,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function wp(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=Jh++;else if(t.t<r.u)return;return r(Wh.event?Wh.event(t):t)}}}function xp(e,t,r,n,o,i,a,s,l,c){var u,d,f,h,p,m,g,y,v,b,O,A,w,x,k,S=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(u=Wh.__b)&&u(t);e:if("function"==typeof S)try{if(y=t.props,v=(u=S.contextType)&&n[u.__c],b=u?v?v.props.value:u.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:("prototype"in S&&S.prototype.render?t.__c=d=new S(y,b):(t.__c=d=new fp(y,b),d.constructor=S,d.render=Ep),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=sp({},d.__s)),sp(d.__s,S.getDerivedStateFromProps(y,d.__s))),h=d.props,p=d.state,d.__v=t,f)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&y!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),O=0;O<d._sb.length;O++)d.__h.push(d._sb[O]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,p,m)}))}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,A=Wh.__r,w=0,"prototype"in S&&S.prototype.render){for(d.state=d.__s,d.__d=!1,A&&A(t),u=d.render(d.props,d.state,d.context),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[]}else do{d.__d=!1,A&&A(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(n=sp(sp({},n),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,p)),yp(e,ap(k=null!=u&&u.type===dp&&null==u.key?u.props.children:u)?k:[k],t,r,n,o,i,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),Wh.__e(e,t,r)}else null==i&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=Sp(r.__e,t,r,n,o,i,a,l,c);(u=Wh.diffed)&&u(t)}function kp(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)Cp(r[n],r[++n],r[++n]);Wh.__c&&Wh.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Wh.__e(e,t.__v)}}))}function Sp(e,t,r,n,o,i,a,s,l){var c,u,d,f,h,p,m,g=r.props,y=t.props,v=t.type;if("svg"===v&&(o=!0),null!=i)for(c=0;c<i.length;c++)if((h=i[c])&&"setAttribute"in h==!!v&&(v?h.localName===v:3===h.nodeType)){e=h,i[c]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),i=null,s=!1}if(null===v)g===y||s&&e.data===y||(e.data=y);else{if(i=i&&Vh.call(e.childNodes),g=r.props||np,!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(h=e.attributes[c]).name]=h.value;for(c in g)h=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=h:"key"===c||c in y||Ap(e,c,null,h,o));for(c in y)h=y[c],"children"==c?f=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?p=h:"checked"==c?m=h:"key"===c||s&&"function"!=typeof h||g[c]===h||Ap(e,c,h,g[c],o);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),yp(e,ap(f)?f:[f],t,r,n,o&&"foreignObject"!==v,i,a,i?i[0]:r.__k&&hp(r,0),s,l),null!=i)for(c=i.length;c--;)null!=i[c]&&lp(i[c]);s||(c="value",void 0!==p&&(p!==e[c]||"progress"===v&&!p||"option"===v&&p!==g[c])&&Ap(e,c,p,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&Ap(e,c,m,g[c],!1))}return e}function Cp(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){Wh.__e(e,r)}}function Pp(e,t,r){var n,o;if(Wh.unmount&&Wh.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Cp(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){Wh.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Pp(n[o],t,r||"function"!=typeof e.type);r||null==e.__e||lp(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ep(e,t,r){return this.constructor(e,r)}function _p(e,t,r){var n,o,i,a;Wh.__&&Wh.__(e,t),o=(n="function"==typeof r)?null:r&&r.__k||t.__k,i=[],a=[],xp(t,e=(!n&&r||t).__k=cp(dp,null,[e]),o||np,np,void 0!==t.ownerSVGElement,!n&&r?[r]:o?null:t.firstChild?Vh.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),kp(i,e,a)}Vh=op.slice,Wh={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},Yh=0,fp.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=sp({},this.state),"function"==typeof e&&(e=e(sp({},r),this.props)),e&&sp(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),mp(this))},fp.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),mp(this))},fp.prototype.render=dp,Xh=[],Gh="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Kh=function(e,t){return e.__v.__b-t.__v.__b},gp.__r=0,Jh=0,ep=wp(!1),tp=wp(!0);class jp{constructor(e,t){this.uppy=e,this.opts=null!=t?t:{}}getPluginState(){const{plugins:e}=this.uppy.getState();return(null==e?void 0:e[this.id])||{}}setPluginState(e){if(!e)return;const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(void 0),this.i18nInit()}i18nInit(){const e=new Kd([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState(void 0)}addTarget(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}update(e){}afterUpdate(){}}function Mp(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tp=0;function qp(e){return"__private_"+Tp+++"_"+e}var Dp=qp("updateUI");class Rp extends jp{constructor(){super(...arguments),Object.defineProperty(this,Dp,{writable:!0,value:void 0})}getTargetPlugin(e){let t;if("function"==typeof(null==e?void 0:e.addTarget))t=e,t instanceof Rp||console.warn(new Error("The provided plugin is not an instance of UIPlugin. This is an indication of a bug with the way Uppy is bundled.",{cause:{targetPlugin:t,UIPlugin:Rp}}));else if("function"==typeof e){const r=e;this.uppy.iteratePlugins((e=>{e instanceof r&&(t=e)}))}return t}mount(e,t){const r=t.id,n=(o=e,void 0===i&&(i=document),"string"==typeof o?i.querySelector(o):"object"==typeof(a=o)&&null!==a&&"nodeType"in a&&a.nodeType===Node.ELEMENT_NODE?o:null);var o,i,a;if(n){this.isTargetDOMEl=!0;const t=document.createElement("div");return t.classList.add("uppy-Root"),Mp(this,Dp)[Dp]=function(e){let t,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t=o,r||(r=Promise.resolve().then((()=>(r=null,e(...t))))),r}}((e=>{this.uppy.getPlugin(this.id)&&(_p(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(n.innerHTML=""),_p(this.render(this.uppy.getState()),t),this.el=t,n.appendChild(t),t.dir=this.opts.direction||function(e){for(var t;e&&!e.dir;)e=e.parentNode;return null==(t=e)?void 0:t.dir}(t)||"ltr",this.onMount(),this.el}const s=this.getTargetPlugin(e);if(s)return this.uppy.log(`Installing ${r} to ${s.id}`),this.parent=s,this.el=s.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let l=`Invalid target option given to ${r}.`;throw l+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(l)}render(e){throw new Error("Extend the render method to add your plugin to a DOM element")}update(e){var t,r;null!=this.el&&(null==(t=(r=Mp(this,Dp))[Dp])||t.call(r,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Lp=[],Ip=[],$p="undefined"!=typeof Uint8Array?Uint8Array:Array,Np=!1;function Qp(){Np=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)Lp[t]=e[t],Ip[e.charCodeAt(t)]=t;Ip["-".charCodeAt(0)]=62,Ip["_".charCodeAt(0)]=63}function Bp(e,t,r){for(var n,o,i=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Lp[(o=n)>>18&63]+Lp[o>>12&63]+Lp[o>>6&63]+Lp[63&o]);return i.join("")}function zp(e){var t;Np||Qp();for(var r=e.length,n=r%3,o="",i=[],a=16383,s=0,l=r-n;s<l;s+=a)i.push(Bp(e,s,s+a>l?l:s+a));return 1===n?(t=e[r-1],o+=Lp[t>>2],o+=Lp[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=Lp[t>>10],o+=Lp[t>>4&63],o+=Lp[t<<2&63],o+="="),i.push(o),i.join("")}function Fp(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?o-1:0,f=r?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)}function Up(e,t,r,n,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}var Zp={}.toString,Vp=Array.isArray||function(e){return"[object Array]"==Zp.call(e)};function Wp(){return Xp.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Yp(e,t){if(Wp()<t)throw new RangeError("Invalid typed array length");return Xp.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Xp.prototype:(null===e&&(e=new Xp(t)),e.length=t),e}function Xp(e,t,r){if(!(Xp.TYPED_ARRAY_SUPPORT||this instanceof Xp))return new Xp(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Kp(this,e)}return Hp(this,e,t,r)}function Hp(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),Xp.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Xp.prototype:e=Jp(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!Xp.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|rm(t,r),o=(e=Yp(e,n)).write(t,r);return o!==n&&(e=e.slice(0,o)),e}(e,t,r):function(e,t){if(tm(t)){var r=0|em(t.length);return 0===(e=Yp(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?Yp(e,0):Jp(e,t);if("Buffer"===t.type&&Vp(t.data))return Jp(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Gp(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Kp(e,t){if(Gp(t),e=Yp(e,t<0?0:0|em(t)),!Xp.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function Jp(e,t){var r=t.length<0?0:0|em(t.length);e=Yp(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function em(e){if(e>=Wp())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Wp().toString(16)+" bytes");return 0|e}function tm(e){return!(null==e||!e._isBuffer)}function rm(e,t){if(tm(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return _m(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return jm(e).length;default:if(n)return _m(e).length;t=(""+t).toLowerCase(),n=!0}}function nm(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return vm(this,t,r);case"utf8":case"utf-8":return pm(this,t,r);case"ascii":return gm(this,t,r);case"latin1":case"binary":return ym(this,t,r);case"base64":return hm(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bm(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function om(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function im(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Xp.from(t,n)),tm(t))return 0===t.length?-1:am(e,t,r,n,o);if("number"==typeof t)return t&=255,Xp.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):am(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function am(e,t,r,n,o){var i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function sm(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function lm(e,t,r,n){return Mm(_m(t,e.length-r),e,r,n)}function cm(e,t,r,n){return Mm(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function um(e,t,r,n){return cm(e,t,r,n)}function dm(e,t,r,n){return Mm(jm(t),e,r,n)}function fm(e,t,r,n){return Mm(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function hm(e,t,r){return 0===t&&r===e.length?zp(e):zp(e.slice(t,r))}function pm(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=d}return function(e){var t=e.length;if(t<=mm)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=mm));return r}(n)}Xp.TYPED_ARRAY_SUPPORT=void 0===vc.TYPED_ARRAY_SUPPORT||vc.TYPED_ARRAY_SUPPORT,Wp(),Xp.poolSize=8192,Xp._augment=function(e){return e.__proto__=Xp.prototype,e},Xp.from=function(e,t,r){return Hp(null,e,t,r)},Xp.TYPED_ARRAY_SUPPORT&&(Xp.prototype.__proto__=Uint8Array.prototype,Xp.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Xp[Symbol.species]),Xp.alloc=function(e,t,r){return function(e,t,r,n){return Gp(t),t<=0?Yp(e,t):void 0!==r?"string"==typeof n?Yp(e,t).fill(r,n):Yp(e,t).fill(r):Yp(e,t)}(null,e,t,r)},Xp.allocUnsafe=function(e){return Kp(null,e)},Xp.allocUnsafeSlow=function(e){return Kp(null,e)},Xp.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Tm(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Tm(e.slice(0,0))}(e))},Xp.compare=function(e,t){if(!tm(e)||!tm(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Xp.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Xp.concat=function(e,t){if(!Vp(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Xp.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Xp.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!tm(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Xp.byteLength=rm,Xp.prototype._isBuffer=!0,Xp.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)om(this,t,t+1);return this},Xp.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)om(this,t,t+3),om(this,t+1,t+2);return this},Xp.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)om(this,t,t+7),om(this,t+1,t+6),om(this,t+2,t+5),om(this,t+3,t+4);return this},Xp.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?pm(this,0,e):nm.apply(this,arguments)},Xp.prototype.equals=function(e){if(!tm(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Xp.compare(this,e)},Xp.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Xp.prototype.compare=function(e,t,r,n,o){if(!tm(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(n,o),c=e.slice(t,r),u=0;u<s;++u)if(l[u]!==c[u]){i=l[u],a=c[u];break}return i<a?-1:a<i?1:0},Xp.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Xp.prototype.indexOf=function(e,t,r){return im(this,e,t,r,!0)},Xp.prototype.lastIndexOf=function(e,t,r){return im(this,e,t,r,!1)},Xp.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return sm(this,e,t,r);case"utf8":case"utf-8":return lm(this,e,t,r);case"ascii":return cm(this,e,t,r);case"latin1":case"binary":return um(this,e,t,r);case"base64":return dm(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fm(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Xp.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var mm=4096;function gm(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function ym(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function vm(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=Em(e[i]);return o}function bm(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function Om(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Am(e,t,r,n,o,i){if(!tm(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function wm(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function xm(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function km(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Sm(e,t,r,n,o){return o||km(e,0,r,4),Up(e,t,r,n,23,4),r+4}function Cm(e,t,r,n,o){return o||km(e,0,r,8),Up(e,t,r,n,52,8),r+8}Xp.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Xp.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Xp.prototype;else{var o=t-e;r=new Xp(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},Xp.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||Om(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},Xp.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||Om(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Xp.prototype.readUInt8=function(e,t){return t||Om(e,1,this.length),this[e]},Xp.prototype.readUInt16LE=function(e,t){return t||Om(e,2,this.length),this[e]|this[e+1]<<8},Xp.prototype.readUInt16BE=function(e,t){return t||Om(e,2,this.length),this[e]<<8|this[e+1]},Xp.prototype.readUInt32LE=function(e,t){return t||Om(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Xp.prototype.readUInt32BE=function(e,t){return t||Om(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Xp.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Om(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Xp.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Om(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Xp.prototype.readInt8=function(e,t){return t||Om(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Xp.prototype.readInt16LE=function(e,t){t||Om(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Xp.prototype.readInt16BE=function(e,t){t||Om(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Xp.prototype.readInt32LE=function(e,t){return t||Om(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Xp.prototype.readInt32BE=function(e,t){return t||Om(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Xp.prototype.readFloatLE=function(e,t){return t||Om(e,4,this.length),Fp(this,e,!0,23,4)},Xp.prototype.readFloatBE=function(e,t){return t||Om(e,4,this.length),Fp(this,e,!1,23,4)},Xp.prototype.readDoubleLE=function(e,t){return t||Om(e,8,this.length),Fp(this,e,!0,52,8)},Xp.prototype.readDoubleBE=function(e,t){return t||Om(e,8,this.length),Fp(this,e,!1,52,8)},Xp.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Am(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},Xp.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||Am(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},Xp.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,1,255,0),Xp.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Xp.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,2,65535,0),Xp.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):wm(this,e,t,!0),t+2},Xp.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,2,65535,0),Xp.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):wm(this,e,t,!1),t+2},Xp.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,4,4294967295,0),Xp.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):xm(this,e,t,!0),t+4},Xp.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,4,4294967295,0),Xp.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):xm(this,e,t,!1),t+4},Xp.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);Am(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Xp.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);Am(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},Xp.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,1,127,-128),Xp.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Xp.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,2,32767,-32768),Xp.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):wm(this,e,t,!0),t+2},Xp.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,2,32767,-32768),Xp.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):wm(this,e,t,!1),t+2},Xp.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,4,2147483647,-2147483648),Xp.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):xm(this,e,t,!0),t+4},Xp.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Am(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Xp.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):xm(this,e,t,!1),t+4},Xp.prototype.writeFloatLE=function(e,t,r){return Sm(this,e,t,!0,r)},Xp.prototype.writeFloatBE=function(e,t,r){return Sm(this,e,t,!1,r)},Xp.prototype.writeDoubleLE=function(e,t,r){return Cm(this,e,t,!0,r)},Xp.prototype.writeDoubleBE=function(e,t,r){return Cm(this,e,t,!1,r)},Xp.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!Xp.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},Xp.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Xp.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=tm(e)?e:_m(new Xp(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var Pm=/[^+\/0-9A-Za-z-_]/g;function Em(e){return e<16?"0"+e.toString(16):e.toString(16)}function _m(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function jm(e){return function(e){var t,r,n,o,i,a;Np||Qp();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new $p(3*s/4-i),n=i>0?s-4:s;var l=0;for(t=0,r=0;t<n;t+=4,r+=3)o=Ip[e.charCodeAt(t)]<<18|Ip[e.charCodeAt(t+1)]<<12|Ip[e.charCodeAt(t+2)]<<6|Ip[e.charCodeAt(t+3)],a[l++]=o>>16&255,a[l++]=o>>8&255,a[l++]=255&o;return 2===i?(o=Ip[e.charCodeAt(t)]<<2|Ip[e.charCodeAt(t+1)]>>4,a[l++]=255&o):1===i&&(o=Ip[e.charCodeAt(t)]<<10|Ip[e.charCodeAt(t+1)]<<4|Ip[e.charCodeAt(t+2)]>>2,a[l++]=o>>8&255,a[l++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Pm,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Mm(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function Tm(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}"function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder;const qm=((e=>{let t={};e.forEach(((e,r)=>t[e]=r))})(Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),String.fromCharCode.bind(String),"function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),Dm=e=>Xp.from(e,"utf8").toString("base64"),Rm=(e,t=!1)=>t?qm(Dm(e)):Dm(e);var Lm={},Im=Object.prototype.hasOwnProperty;function $m(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function Nm(e){try{return encodeURIComponent(e)}catch(e){return null}}Lm.stringify=function(e,t){t=t||"";var r,n,o=[];for(n in"string"!=typeof t&&(t="?"),e)if(Im.call(e,n)){if((r=e[n])||null!=r&&!isNaN(r)||(r=""),n=Nm(n),r=Nm(r),null===n||null===r)continue;o.push(n+"="+r)}return o.length?t+o.join("&"):""},Lm.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=$m(t[1]),i=$m(t[2]);null===o||null===i||o in n||(n[o]=i)}return n};var Qm=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},Bm=Lm,zm=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Fm=/[\n\r\t]/g,Um=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Zm=/:\d+$/,Vm=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Wm=/^[a-zA-Z]:/;function Ym(e){return(e||"").toString().replace(zm,"")}var Xm=[["#","hash"],["?","query"],function(e,t){return Km(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Hm={hash:1,query:1};function Gm(e){var t,r=("undefined"!=typeof window?window:void 0!==Fc?Fc:"undefined"!=typeof self?self:{}).location||{},n={},o=typeof(e=e||r);if("blob:"===e.protocol)n=new eg(unescape(e.pathname),{});else if("string"===o)for(t in n=new eg(e,{}),Hm)delete n[t];else if("object"===o){for(t in e)t in Hm||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=Um.test(e.href))}return n}function Km(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function Jm(e,t){e=(e=Ym(e)).replace(Fm,""),t=t||{};var r,n=Vm.exec(e),o=n[1]?n[1].toLowerCase():"",i=!!n[2],a=!!n[3],s=0;return i?a?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):a?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===o?s>=2&&(r=r.slice(2)):Km(o)?r=n[4]:o?i&&(r=r.slice(2)):s>=2&&Km(t.protocol)&&(r=n[4]),{protocol:o,slashes:i||Km(o),slashesCount:s,rest:r}}function eg(e,t,r){if(e=(e=Ym(e)).replace(Fm,""),!(this instanceof eg))return new eg(e,t,r);var n,o,i,a,s,l,c=Xm.slice(),u=typeof t,d=this,f=0;for("object"!==u&&"string"!==u&&(r=t,t=null),r&&"function"!=typeof r&&(r=Bm.parse),n=!(o=Jm(e||"",t=Gm(t))).protocol&&!o.slashes,d.slashes=o.slashes||n&&t.slashes,d.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||Wm.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!Km(d.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(a=c[f])?(i=a[0],l=a[1],i!=i?d[l]=e:"string"==typeof i?~(s="@"===i?e.lastIndexOf(i):e.indexOf(i))&&("number"==typeof a[2]?(d[l]=e.slice(0,s),e=e.slice(s+a[2])):(d[l]=e.slice(s),e=e.slice(0,s))):(s=i.exec(e))&&(d[l]=s[1],e=e.slice(0,s.index)),d[l]=d[l]||n&&a[3]&&t[l]||"",a[4]&&(d[l]=d[l].toLowerCase())):e=a(e,d);r&&(d.query=r(d.query)),n&&t.slashes&&"/"!==d.pathname.charAt(0)&&(""!==d.pathname||""!==t.pathname)&&(d.pathname=function(e,t){if(""===e)return t;for(var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=!1,a=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),a++):a&&(0===n&&(i=!0),r.splice(n,1),a--);return i&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(d.pathname,t.pathname)),"/"!==d.pathname.charAt(0)&&Km(d.protocol)&&(d.pathname="/"+d.pathname),Qm(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(~(s=d.auth.indexOf(":"))?(d.username=d.auth.slice(0,s),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(s+1),d.password=encodeURIComponent(decodeURIComponent(d.password))):d.username=encodeURIComponent(decodeURIComponent(d.auth)),d.auth=d.password?d.username+":"+d.password:d.username),d.origin="file:"!==d.protocol&&Km(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}eg.prototype={set:function(e,t,r){var n=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(r||Bm.parse)(t)),n[e]=t;break;case"port":n[e]=t,Qm(t,n.protocol)?t&&(n.host=n.hostname+":"+t):(n.host=n.hostname,n[e]="");break;case"hostname":n[e]=t,n.port&&(t+=":"+n.port),n.host=t;break;case"host":n[e]=t,Zm.test(t)?(t=t.split(":"),n.port=t.pop(),n.hostname=t.join(":")):(n.hostname=t,n.port="");break;case"protocol":n.protocol=t.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var i=t.indexOf(":");~i?(n.username=t.slice(0,i),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(i+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var a=0;a<Xm.length;a++){var s=Xm[a];s[4]&&(n[s[1]]=n[s[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin="file:"!==n.protocol&&Km(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n},toString:function(e){e&&"function"==typeof e||(e=Bm.stringify);var t,r=this,n=r.host,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var i=o+(r.protocol&&r.slashes||Km(r.protocol)?"//":"");return r.username?(i+=r.username,r.password&&(i+=":"+r.password),i+="@"):r.password?(i+=":"+r.password,i+="@"):"file:"!==r.protocol&&Km(r.protocol)&&!n&&"/"!==r.pathname&&(i+="@"),(":"===n[n.length-1]||Zm.test(r.hostname)&&!r.port)&&(n+=":"),i+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(i+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(i+=r.hash),i}},eg.extractProtocol=Jm,eg.location=Gm,eg.trimLeft=Ym,eg.qs=Bm;var tg=Uc(eg);function rg(e){return rg="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},rg(e)}function ng(e){var t="function"==typeof Map?new Map:void 0;return ng=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return og(e,arguments,sg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ag(r,e)},ng(e)}function og(e,t,r){return og=ig()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&ag(o,r.prototype),o},og.apply(null,arguments)}function ig(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ag(e,t){return ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ag(e,t)}function sg(e){return sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sg(e)}var lg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ag(e,t)}(i,e);var t,r,n,o=(r=i,n=ig(),function(){var e,t=sg(r);if(n){var o=sg(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===rg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).originalRequest=n,t.originalResponse=a,t.causingError=r,null!=r&&(e+=", caused by ".concat(r.toString())),null!=n){var s=n.getHeader("X-Request-ID")||"n/a",l=n.getMethod(),c=n.getURL(),u=a?a.getStatus():"n/a",d=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(l,", url: ").concat(c,", response code: ").concat(u,", response text: ").concat(d,", request id: ").concat(s,")")}return t.message=e,t}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(ng(Error));function cg(){cg=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new j(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function y(){}function v(){}function b(){}var O={};c(O,a,(function(){return this}));var A=Object.getPrototypeOf,w=A&&A(A(M([])));w&&w!==r&&n.call(w,a)&&(O=w);var x=b.prototype=y.prototype=Object.create(O);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==hg(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=P(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?m:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(hg(t)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(x),c(x,l,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=M,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function ug(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function dg(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}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fg(e,t);var r=Object.prototype.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)?fg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hg(e){return hg="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},hg(e)}function pg(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 mg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pg(Object(r),!0).forEach((function(t){gg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gg(e,t,r){return(t=vg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yg(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,vg(n.key),n)}}function vg(e){var t=function(e){if("object"!==hg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==hg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===hg(t)?t:String(t)}var bg={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:Pg,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,parallelUploadBoundaries:null,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Og=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"resume"in r&&console.log("tus: The `resume` option has been removed in tus-js-client v2. Please use the URL storage API instead."),this.options=r,this.options.chunkSize=Number(this.options.chunkSize),this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,r,n;return t=e,r=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl||this.url){var r=this.options.retryDelays;if(null==r||"[object Array]"===Object.prototype.toString.call(r)){if(this.options.parallelUploads>1)for(var n=0,o=["uploadUrl","uploadSize","uploadLengthDeferred"];n<o.length;n++){var i=o[n];if(this.options[i])return void this._emitError(new Error("tus: cannot use the ".concat(i," option when parallelUploads is enabled")))}if(this.options.parallelUploadBoundaries){if(this.options.parallelUploads<=1)return void this._emitError(new Error("tus: cannot use the `parallelUploadBoundaries` option when `parallelUploads` is disabled"));if(this.options.parallelUploads!==this.options.parallelUploadBoundaries.length)return void this._emitError(new Error("tus: the `parallelUploadBoundaries` must have the same length as the value of `parallelUploads`"))}this.options.fingerprint(t,this.options).then((function(r){return e._fingerprint=r,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){if(e._source=t,e.options.uploadLengthDeferred)e._size=null;else if(null!=e.options.uploadSize){if(e._size=Number(e.options.uploadSize),Number.isNaN(e._size))return void e._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(e._size=e._source.size,null==e._size)return void e._emitError(new Error("tus: cannot automatically derive upload's size from input. Specify it manually using the `uploadSize` option or use the `uploadLengthDeferred` option"));e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,r=this,n=this._size,o=0;this._parallelUploads=[];var i=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,a=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var r=Math.floor(e/t),n=[],o=0;o<t;o++)n.push({start:r*o,end:r*(o+1)});return n[t-1].end=e,n}(this._source.size,i);this._parallelUploadUrls&&a.forEach((function(e,t){e.uploadUrl=r._parallelUploadUrls[t]||null})),this._parallelUploadUrls=new Array(a.length);var s,l=a.map((function(t,i){var s=0;return r._source.slice(t.start,t.end).then((function(l){var c=l.value;return new Promise((function(l,u){var d=mg(mg({},r.options),{},{uploadUrl:t.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,parallelUploadBoundaries:null,metadata:{},headers:mg(mg({},r.options.headers),{},{"Upload-Concat":"partial"}),onSuccess:l,onError:u,onProgress:function(e){o=o-s+e,s=e,r._emitProgress(o,n)},onUploadUrlAvailable:function(){r._parallelUploadUrls[i]=f.url,r._parallelUploadUrls.filter((function(e){return Boolean(e)})).length===a.length&&r._saveUploadInUrlStorage()}}),f=new e(c,d);f.start(),r._parallelUploads.push(f)}))}))}));Promise.all(l).then((function(){(s=r._openRequest("POST",r.options.endpoint)).setHeader("Upload-Concat","final;".concat(r._parallelUploadUrls.join(" ")));var e=Ag(r.options.metadata);return""!==e&&s.setHeader("Upload-Metadata",e),r._sendRequest(s,null)})).then((function(e){if(wg(e.getStatus(),200)){var t=e.getHeader("Location");null!=t?(r.url=Eg(r.options.endpoint,t),"Created upload at ".concat(r.url),r._emitSuccess()):r._emitHttpError(s,e,"tus: invalid or missing Location header")}else r._emitHttpError(s,e,"tus: unexpected response while creating upload")})).catch((function(e){r._emitError(e)}))}},{key:"_startSingleUpload",value:function(){return this._aborted=!1,null!=this.url?("Resuming upload from previous URL: ".concat(this.url),void this._resumeUpload()):null!=this.options.uploadUrl?("Resuming upload from provided URL: ".concat(this.options.uploadUrl),this.url=this.options.uploadUrl,void this._resumeUpload()):void this._createUpload()}},{key:"abort",value:function(t){var r=this;return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&this._req.abort(),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return r._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,r,n){this._emitError(new lg(r,n,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),Cg(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var r,n=Ag(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):r=this._sendRequest(t,null),r.then((function(r){if(wg(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=Eg(e.options.endpoint,n),"Created upload at ".concat(e.url),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")})).catch((function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(r){var n=r.getStatus();if(!wg(n,200))return 423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):(wg(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var o=parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(o))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var i=parseInt(r.getHeader("Upload-Length"),10);!Number.isNaN(i)||e.options.uploadLengthDeferred?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(o===i)return e._emitProgress(i,i),void e._emitSuccess();e._offset=o,e._performUpload()}))):e._emitHttpError(t,r,"tus: invalid or missing length value")}})).catch((function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(r){wg(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")})).catch((function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(r+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,o=r.done,i=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&o&&(t._size=t._offset+i,e.setHeader("Upload-Length",t._size));var a=t._offset+i;return!t.options.uploadLengthDeferred&&o&&a!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(a," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var r=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=xg(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){return kg(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,this.options)}}],n=[{key:"terminate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=xg("DELETE",t,r);return kg(n,null,r).then((function(e){if(204!==e.getStatus())throw new lg("tus: unexpected response while terminating upload",null,n,e)})).catch((function(o){if(o instanceof lg||(o=new lg("tus: failed to terminate upload",o,n,null)),!Cg(o,0,r))throw o;var i=r.retryDelays[0],a=r.retryDelays.slice(1),s=mg(mg({},r),{},{retryDelays:a});return new Promise((function(e){return setTimeout(e,i)})).then((function(){return e.terminate(t,s)}))}))}}],r&&yg(t.prototype,r),n&&yg(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ag(e){return Object.entries(e).map((function(e){var t=dg(e,2),r=t[0],n=t[1];return"".concat(r," ").concat(Rm(String(n)))})).join(",")}function wg(e,t){return e>=t&&e<t+100}function xg(e,t,r){var n=r.httpStack.createRequest(e,t);n.setHeader("Tus-Resumable","1.0.0");var o=r.headers||{};if(Object.entries(o).forEach((function(e){var t=dg(e,2),r=t[0],o=t[1];n.setHeader(r,o)})),r.addRequestId){var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));n.setHeader("X-Request-ID",i)}return n}function kg(e,t,r){return Sg.apply(this,arguments)}function Sg(){var e;return e=cg().mark((function e(t,r,n){var o;return cg().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n.onBeforeRequest){e.next=3;break}return e.next=3,n.onBeforeRequest(t);case 3:return e.next=5,t.send(r);case 5:if(o=e.sent,"function"!=typeof n.onAfterResponse){e.next=9;break}return e.next=9,n.onAfterResponse(t,o);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),Sg=function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ug(i,n,o,a,s,"next",e)}function s(e){ug(i,n,o,a,s,"throw",e)}a(void 0)}))},Sg.apply(this,arguments)}function Cg(e,t,r){return!(null==r.retryDelays||t>=r.retryDelays.length||null==e.originalRequest)&&(r&&"function"==typeof r.onShouldRetry?r.onShouldRetry(e,t,r):Pg(e))}function Pg(e){var t,r=e.originalResponse?e.originalResponse.getStatus():0;return(!wg(r,400)||409===r||423===r)&&(t=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(t=!1),t)}function Eg(e,t){return new tg(t,e).toString()}function _g(e){return _g="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},_g(e)}function jg(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,Mg(n.key),n)}}function Mg(e){var t=function(e){if("object"!==_g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==_g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_g(t)?t:String(t)}Og.defaultOptions=bg;var Tg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&jg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qg(e){return qg="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},qg(e)}function Dg(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,Rg(n.key),n)}}function Rg(e){var t=function(e){if("object"!==qg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==qg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===qg(t)?t:String(t)}var Lg=!1;try{Lg="localStorage"in window;var Ig="tusSupport",$g=localStorage.getItem(Ig);localStorage.setItem(Ig,$g),null===$g&&localStorage.removeItem(Ig)}catch(Jh){if(Jh.code!==Jh.SECURITY_ERR&&Jh.code!==Jh.QUOTA_EXCEEDED_ERR)throw Jh;Lg=!1}var Ng=Lg,Qg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var r=Math.round(1e12*Math.random()),n="tus::".concat(e,"::").concat(r);return localStorage.setItem(n,JSON.stringify(t)),Promise.resolve(n)}},{key:"_findEntries",value:function(e){for(var t=[],r=0;r<localStorage.length;r++){var n=localStorage.key(r);if(0===n.indexOf(e))try{var o=JSON.parse(localStorage.getItem(n));o.urlStorageKey=n,t.push(o)}catch(e){}}return t}}],r&&Dg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bg(e){return Bg="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},Bg(e)}function zg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fg(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,Zg(n.key),n)}}function Ug(e,t,r){return t&&Fg(e.prototype,t),r&&Fg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zg(e){var t=function(e){if("object"!==Bg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Bg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Bg(t)?t:String(t)}var Vg=function(){function e(){zg(this,e)}return Ug(e,[{key:"createRequest",value:function(e,t){return new Wg(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),Wg=function(){function e(t,r){zg(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,r,!0),this._method=t,this._url=r,this._headers={}}return Ug(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){e._xhr.onload=function(){r(new Yg(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Yg=function(){function e(t){zg(this,e),this._xhr=t}return Ug(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),Xg=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function Hg(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()}))}function Gg(e){return Gg="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},Gg(e)}function Kg(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,Jg(n.key),n)}}function Jg(e){var t=function(e){if("object"!==Gg(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Gg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Gg(t)?t:String(t)}var ey=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._file=t,this.size=t.size}var t,r;return t=e,r=[{key:"slice",value:function(e,t){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova))return r=this._file.slice(e,t),new Promise((function(e,t){var n=new FileReader;n.onload=function(){var t=new Uint8Array(n.result);e({value:t})},n.onerror=function(e){t(e)},n.readAsArrayBuffer(r)}));var r,n=this._file.slice(e,t),o=t>=this.size;return Promise.resolve({value:n,done:o})}},{key:"close",value:function(){}}],r&&Kg(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ty(e){return ty="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},ty(e)}function ry(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,ny(n.key),n)}}function ny(e){var t=function(e){if("object"!==ty(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==ty(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ty(t)?t:String(t)}function oy(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var iy=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}var t,r;return t=e,r=[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var r=this,n=t<=this._bufferOffset+oy(this._buffer);if(this._done||n){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then((function(n){var o=n.value;return n.done?r._done=!0:void 0===r._buffer?r._buffer=o:r._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}throw new Error("Unknown data type")}(r._buffer,o),r._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===oy(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],r&&ry(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ay(e){return ay="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},ay(e)}function sy(){sy=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new j(n||[]);return o(a,"_invoke",{value:C(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function y(){}function v(){}function b(){}var O={};c(O,a,(function(){return this}));var A=Object.getPrototypeOf,w=A&&A(A(M([])));w&&w!==r&&n.call(w,a)&&(O=w);var x=b.prototype=y.prototype=Object.create(O);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==ay(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=f;return function(i,a){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=P(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?m:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function P(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(ay(t)+" is not iterable")}return v.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(x),c(x,l,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=M,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function ly(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function cy(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,uy(n.key),n)}}function uy(e){var t=function(e){if("object"!==ay(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==ay(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ay(t)?t:String(t)}var dy=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n,o;return t=e,r=[{key:"openFile",value:(n=sy().mark((function e(t,r){var n;return sy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Xg()||!t||void 0===t.uri){e.next=11;break}return e.prev=1,e.next=4,Hg(t.uri);case 4:return n=e.sent,e.abrupt("return",new ey(n));case 8:throw e.prev=8,e.t0=e.catch(1),new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e.t0));case 11:if("function"!=typeof t.slice||void 0===t.size){e.next=13;break}return e.abrupt("return",Promise.resolve(new ey(t)));case 13:if("function"!=typeof t.read){e.next=18;break}if(r=Number(r),Number.isFinite(r)){e.next=17;break}return e.abrupt("return",Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option")));case 17:return e.abrupt("return",Promise.resolve(new iy(t,r)));case 18:return e.abrupt("return",Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment")));case 19:case"end":return e.stop()}}),e,null,[[1,8]])})),o=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){ly(i,r,o,a,s,"next",e)}function s(e){ly(i,r,o,a,s,"throw",e)}a(void 0)}))},function(e,t){return o.apply(this,arguments)})}],r&&cy(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function fy(e){return fy="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},fy(e)}function hy(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,by(n.key),n)}}function py(e,t){return py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},py(e,t)}function my(e){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},my(e)}function gy(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 yy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gy(Object(r),!0).forEach((function(t){vy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vy(e,t,r){return(t=by(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function by(e){var t=function(e){if("object"!==fy(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==fy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fy(t)?t:String(t)}var Oy=yy(yy({},Og.defaultOptions),{},{httpStack:new Vg,fileReader:new dy,urlStorage:Ng?new Qg:new Tg,fingerprint:function(e,t){return Xg()?Promise.resolve(function(e,t){var r=e.exif?function(e){var t=0;if(0===e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t&=t;return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",r,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),Ay=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&py(e,t)}(a,e);var t,r,n,o,i=(n=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=my(n);if(o){var r=my(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===fy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=yy(yy({},Oy),t),i.call(this,e,t)}return t=a,r=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=yy(yy({},Oy),t),Og.terminate(e,t)}}],null&&hy(t.prototype,null),r&&hy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(Og);function wy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xy=0;function ky(e){return"__private_"+xy+++"_"+e}var Sy=ky("uppy"),Cy=ky("events");class Py{constructor(e){Object.defineProperty(this,Sy,{writable:!0,value:void 0}),Object.defineProperty(this,Cy,{writable:!0,value:[]}),wy(this,Sy)[Sy]=e}on(e,t){return wy(this,Cy)[Cy].push([e,t]),wy(this,Sy)[Sy].on(e,t)}remove(){for(const[e,t]of wy(this,Cy)[Cy].splice(0))wy(this,Sy)[Sy].off(e,t)}onFilePause(e,t){this.on("upload-pause",((r,n)=>{e===r&&t(n)}))}onFileRemove(e,t){this.on("file-removed",(r=>{e===r.id&&t(r.id)}))}onPause(e,t){this.on("upload-pause",((r,n)=>{e===r&&t(n)}))}onRetry(e,t){this.on("upload-retry",(r=>{e===r&&t()}))}onRetryAll(e,t){this.on("retry-all",(()=>{wy(this,Sy)[Sy].getFile(e)&&t()}))}onPauseAll(e,t){this.on("pause-all",(()=>{wy(this,Sy)[Sy].getFile(e)&&t()}))}onCancelAll(e,t){var r=this;this.on("cancel-all",(function(){wy(r,Sy)[Sy].getFile(e)&&t(...arguments)}))}onResumeAll(e,t){this.on("resume-all",(()=>{wy(this,Sy)[Sy].getFile(e)&&t()}))}}class Ey extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}function _y(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jy=0;function My(e){return"__private_"+jy+++"_"+e}function Ty(e){if(null!=e){var t;const r=()=>this.abort(e.reason);e.addEventListener("abort",r,{once:!0});const n=()=>{e.removeEventListener("abort",r)};null==(t=this.then)||t.call(this,n,n)}return this}var qy=My("activeRequests"),Dy=My("queuedHandlers"),Ry=My("paused"),Ly=My("pauseTimer"),Iy=My("downLimit"),$y=My("upperLimit"),Ny=My("rateLimitingTimer"),Qy=My("call"),By=My("queueNext"),zy=My("next"),Fy=My("queue"),Uy=My("dequeue"),Zy=My("resume"),Vy=My("increaseLimit");class Wy{constructor(e){Object.defineProperty(this,Uy,{value:Ky}),Object.defineProperty(this,Fy,{value:Gy}),Object.defineProperty(this,zy,{value:Hy}),Object.defineProperty(this,By,{value:Xy}),Object.defineProperty(this,Qy,{value:Yy}),Object.defineProperty(this,qy,{writable:!0,value:0}),Object.defineProperty(this,Dy,{writable:!0,value:[]}),Object.defineProperty(this,Ry,{writable:!0,value:!1}),Object.defineProperty(this,Ly,{writable:!0,value:void 0}),Object.defineProperty(this,Iy,{writable:!0,value:1}),Object.defineProperty(this,$y,{writable:!0,value:void 0}),Object.defineProperty(this,Ny,{writable:!0,value:void 0}),Object.defineProperty(this,Zy,{writable:!0,value:()=>this.resume()}),Object.defineProperty(this,Vy,{writable:!0,value:()=>{if(_y(this,Ry)[Ry])_y(this,Ny)[Ny]=setTimeout(_y(this,Vy)[Vy],0);else{_y(this,Iy)[Iy]=this.limit,this.limit=Math.ceil((_y(this,$y)[$y]+_y(this,Iy)[Iy])/2);for(let e=_y(this,Iy)[Iy];e<=this.limit;e++)_y(this,By)[By]();_y(this,$y)[$y]-_y(this,Iy)[Iy]>3?_y(this,Ny)[Ny]=setTimeout(_y(this,Vy)[Vy],2e3):_y(this,Iy)[Iy]=Math.floor(_y(this,Iy)[Iy]/2)}}}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return!_y(this,Ry)[Ry]&&_y(this,qy)[qy]<this.limit?_y(this,Qy)[Qy](e):_y(this,Fy)[Fy](e,t)}wrapSyncFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];const a=r.run((()=>(e(...o),queueMicrotask((()=>a.done())),()=>{})),t);return{abortOn:Ty,abort(){a.abort()}}}}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const s=new Promise(((n,i)=>{a=r.run((()=>{let t,r;try{r=Promise.resolve(e(...o))}catch(e){r=Promise.reject(e)}return r.then((e=>{t?i(t):(a.done(),n(e))}),(e=>{t?i(t):(a.done(),i(e))})),e=>{t=function(e){return new Error("Cancelled",{cause:e})}(e)}}),t)}));return s.abort=e=>{a.abort(e)},s.abortOn=Ty,s}}resume(){_y(this,Ry)[Ry]=!1,clearTimeout(_y(this,Ly)[Ly]);for(let e=0;e<this.limit;e++)_y(this,By)[By]()}pause(e){void 0===e&&(e=null),_y(this,Ry)[Ry]=!0,clearTimeout(_y(this,Ly)[Ly]),null!=e&&(_y(this,Ly)[Ly]=setTimeout(_y(this,Zy)[Zy],e))}rateLimit(e){clearTimeout(_y(this,Ny)[Ny]),this.pause(e),this.limit>1&&Number.isFinite(this.limit)&&(_y(this,$y)[$y]=this.limit-1,this.limit=_y(this,Iy)[Iy],_y(this,Ny)[Ny]=setTimeout(_y(this,Vy)[Vy],e))}get isPaused(){return _y(this,Ry)[Ry]}}function Yy(e){_y(this,qy)[qy]+=1;let t,r=!1;try{t=e()}catch(e){throw _y(this,qy)[qy]-=1,e}return{abort:e=>{r||(r=!0,_y(this,qy)[qy]-=1,null==t||t(e),_y(this,By)[By]())},done:()=>{r||(r=!0,_y(this,qy)[qy]-=1,_y(this,By)[By]())}}}function Xy(){queueMicrotask((()=>_y(this,zy)[zy]()))}function Hy(){if(_y(this,Ry)[Ry]||_y(this,qy)[qy]>=this.limit)return;if(0===_y(this,Dy)[Dy].length)return;const e=_y(this,Dy)[Dy].shift();if(null==e)throw new Error("Invariant violation: next is null");const t=_y(this,Qy)[Qy](e.fn);e.abort=t.abort,e.done=t.done}function Gy(e,t){const r={fn:e,priority:(null==t?void 0:t.priority)||0,abort:()=>{_y(this,Uy)[Uy](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=_y(this,Dy)[Dy].findIndex((e=>r.priority>e.priority));return-1===n?_y(this,Dy)[Dy].push(r):_y(this,Dy)[Dy].splice(n,0,r),r}function Ky(e){const t=_y(this,Dy)[Dy].indexOf(e);-1!==t&&_y(this,Dy)[Dy].splice(t,1)}function Jy(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ev(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tv=0;function rv(e){return"__private_"+tv+++"_"+e}const nv={endpoint:"",uploadUrl:null,metadata:{},uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,overridePatchMethod:!1,headers:{},addRequestId:!1,chunkSize:1/0,retryDelays:[100,1e3,3e3,5e3],parallelUploads:1,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1},ov={limit:20,retryDelays:nv.retryDelays,withCredentials:!1};var iv=rv("retryDelayIterator"),av=rv("uploadLocalFile"),sv=rv("getCompanionClientArgs"),lv=rv("uploadFiles"),cv=rv("handleUpload");class uv extends jp{constructor(e,t){var r,n;if(super(e,{...ov,...t}),Object.defineProperty(this,lv,{value:hv}),Object.defineProperty(this,sv,{value:fv}),Object.defineProperty(this,av,{value:dv}),Object.defineProperty(this,iv,{writable:!0,value:void 0}),Object.defineProperty(this,cv,{writable:!0,value:async e=>{if(0===e.length)return void this.uppy.log("[Tus] No files to upload");0===this.opts.limit&&this.uppy.log("[Tus] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/tus/#limit-0","warning"),this.uppy.log("[Tus] Uploading...");const t=this.uppy.getFilesByIds(e);await ev(this,lv)[lv](t)}}),this.type="uploader",this.id=this.opts.id||"Tus",void 0===(null==t?void 0:t.allowedMetaFields)&&"metaFields"in this.opts)throw new Error("The `metaFields` option has been renamed to `allowedMetaFields`.");if("autoRetry"in t)throw new Error("The `autoRetry` option was deprecated and has been removed.");this.requests=null!=(r=this.opts.rateLimitedQueue)?r:new Wy(this.opts.limit),ev(this,iv)[iv]=null==(n=this.opts.retryDelays)?void 0:n.values(),this.uploaders=Object.create(null),this.uploaderEvents=Object.create(null),this.handleResetProgress=this.handleResetProgress.bind(this)}handleResetProgress(){const e={...this.uppy.getState().files};Object.keys(e).forEach((t=>{var r;if(null!=(r=e[t])&&null!=(r=r.tus)&&r.uploadUrl){const r={...e[t].tus};delete r.uploadUrl,e[t]={...e[t],tus:r}}})),this.uppy.setState({files:e})}resetUploaderReferences(e,t){const r=this.uploaders[e];r&&(r.abort(),null!=t&&t.abort&&r.abort(!0),this.uploaders[e]=null),this.uploaderEvents[e]&&(this.uploaderEvents[e].remove(),this.uploaderEvents[e]=null)}onReceiveUploadUrl(e,t){const r=this.uppy.getFile(e.id);r&&(r.tus&&r.tus.uploadUrl===t||(this.uppy.log("[Tus] Storing upload url"),this.uppy.setFileState(r.id,{tus:{...r.tus,uploadUrl:t}})))}install(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!0}}),this.uppy.addUploader(ev(this,cv)[cv]),this.uppy.on("reset-progress",this.handleResetProgress)}uninstall(){this.uppy.setState({capabilities:{...this.uppy.getState().capabilities,resumableUploads:!1}}),this.uppy.removeUploader(ev(this,cv)[cv])}}function dv(e){var t=this;return this.resetUploaderReferences(e.id),new Promise(((r,n)=>{let o,i,a;const s={...this.opts,...e.tus||{}};"function"==typeof s.headers&&(s.headers=s.headers(e));const{onShouldRetry:l,onBeforeRequest:c,...u}=s,d={...nv,...u};var f;d.fingerprint=(f=e,(e,t)=>{if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)||"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase())return Oy.fingerprint(e,t);const r=["tus",f.id,t.endpoint].join("-");return Promise.resolve(r)}),d.onBeforeRequest=async t=>{let r;if(t.getUnderlyingObject().withCredentials=!!s.withCredentials,"function"==typeof c&&(r=c(t,e)),Jy(o,"shouldBeRequeued")){if(!o.shouldBeRequeued)return Promise.reject();let t;const n=new Promise((e=>{t=e}));return o=this.requests.run((()=>(e.isPaused&&o.abort(),t(),()=>{}))),void await Promise.all([n,r])}return r},d.onError=t=>{var r;this.uppy.log(t);const i=null!=t.originalRequest?t.originalRequest.getUnderlyingObject():null;(function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)})(i)&&(t=new Ey(t,i)),this.resetUploaderReferences(e.id),null==(r=o)||r.abort(),this.uppy.emit("upload-error",e,t),"function"==typeof s.onError&&s.onError(t),n(t)},d.onProgress=(t,r)=>{this.onReceiveUploadUrl(e,a.url),"function"==typeof s.onProgress&&s.onProgress(t,r),this.uppy.emit("upload-progress",this.uppy.getFile(e.id),{uploader:this,bytesUploaded:t,bytesTotal:r})},d.onSuccess=()=>{var t;const n={uploadURL:null!=(t=a.url)?t:void 0,status:200,body:{}};if(this.resetUploaderReferences(e.id),o.done(),this.uppy.emit("upload-success",this.uppy.getFile(e.id),n),a.url){const{name:e}=a.file;this.uppy.log(`Download ${e} from ${a.url}`)}"function"==typeof s.onSuccess&&s.onSuccess(),r(a)};const h=e=>{var t;const r=null==e||null==(t=e.originalResponse)?void 0:t.getStatus();if(429===r){if(!this.requests.isPaused){var n;const e=null==(n=ev(this,iv)[iv])?void 0:n.next();if(null==e||e.done)return!1;this.requests.rateLimit(e.value)}}else{if(null!=r&&r>400&&r<500&&409!==r&&423!==r)return!1;"undefined"!=typeof navigator&&!1===navigator.onLine&&(this.requests.isPaused||(this.requests.pause(),window.addEventListener("online",(()=>{this.requests.resume()}),{once:!0})))}return o.abort(),o={shouldBeRequeued:!0,abort(){this.shouldBeRequeued=!1},done(){throw new Error("Cannot mark a queued request as done: this indicates a bug")},fn(){throw new Error("Cannot run a queued request: this indicates a bug")}},!0};d.onShouldRetry=null!=l?(e,t)=>l(e,t,s,h):h;const p=(e,t,r)=>{Jy(e,t)&&!Jy(e,r)&&(e[r]=e[t])},m={};(Array.isArray(s.allowedMetaFields)?s.allowedMetaFields:Object.keys(e.meta)).forEach((t=>{m[t]=String(e.meta[t])})),p(m,"type","filetype"),p(m,"name","filename"),d.metadata=m,a=new Ay(e.data,d),this.uploaders[e.id]=a;const g=new Py(this.uppy);this.uploaderEvents[e.id]=g,i=()=>(e.isPaused||a.start(),()=>{}),a.findPreviousUploads().then((t=>{const r=t[0];r&&(this.uppy.log(`[Tus] Resuming upload of ${e.id} started at ${r.creationTime}`),a.resumeFromPreviousUpload(r))})),o=this.requests.run(i),g.onFileRemove(e.id,(t=>{o.abort(),this.resetUploaderReferences(e.id,{abort:!!a.url}),r(`upload ${t} was removed`)})),g.onPause(e.id,(e=>{o.abort(),e?a.abort():o=this.requests.run(i)})),g.onPauseAll(e.id,(()=>{o.abort(),a.abort()})),g.onCancelAll(e.id,(function(n){let{reason:i}=void 0===n?{}:n;"user"===i&&(o.abort(),t.resetUploaderReferences(e.id,{abort:!!a.url})),r(`upload ${e.id} was canceled`)})),g.onResumeAll(e.id,(()=>{o.abort(),e.error&&a.abort(),o=this.requests.run(i)}))})).catch((t=>{throw this.uppy.emit("upload-error",e,t),t}))}function fv(e){var t;const r={...this.opts};return e.tus&&Object.assign(r,e.tus),{...null==(t=e.remote)?void 0:t.body,endpoint:r.endpoint,uploadUrl:r.uploadUrl,protocol:"tus",size:e.data.size,headers:r.headers,metadata:e.meta}}async function hv(e){const t=function(e){return e.filter((e=>!(e=>"error"in e&&!!e.error)(e)))}(e),r=function(e){return e.filter((e=>{var t;return!(null!=(t=e.progress)&&t.uploadStarted&&e.isRestored)}))}(t);this.uppy.emit("upload-start",r),await Promise.allSettled(t.map((e=>{if(e.isRemote){const t=()=>this.requests,r=new AbortController,n=t=>{t.id===e.id&&r.abort()};this.uppy.on("file-removed",n);const o=this.uppy.getRequestClientForFile(e).uploadRemoteFile(e,ev(this,sv)[sv](e),{signal:r.signal,getQueue:t});return this.requests.wrapSyncFunction((()=>{this.uppy.off("file-removed",n)}),{priority:-1})(),o}return ev(this,av)[av](e)})))}uv.VERSION="3.5.4";const pv=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],mv=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],gv=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],yv=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vv=(e,t,r)=>{let n=e;return"string"==typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):!0!==t&&void 0===r||(n=e.toLocaleString(void 0,r)),n};function bv(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?yv:gv:t.binary?mv:pv,n=t.space?" ":"";if(t.signed&&0===e)return` 0${n}${r[0]}`;const o=e<0,i=o?"-":t.signed?"+":"";let a;if(o&&(e=-e),void 0!==t.minimumFractionDigits&&(a={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(a={maximumFractionDigits:t.maximumFractionDigits,...a}),e<1)return i+vv(e,t.locale,a)+n+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e/=(t.binary?1024:1e3)**s,a||(e=e.toPrecision(3)),i+vv(Number(e),t.locale,a)+n+r[s]}var Ov,Av,wv={exports:{}},xv={},kv={};"production"===zc.env.NODE_ENV?wv.exports=function(){if(Ov)return xv;Ov=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case n:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case f:case a:return e;default:return p}}case r:return p}}}return e=Symbol.for("react.module.reference"),xv.ContextConsumer=s,xv.ContextProvider=a,xv.Element=t,xv.ForwardRef=c,xv.Fragment=n,xv.Lazy=h,xv.Memo=f,xv.Portal=r,xv.Profiler=i,xv.StrictMode=o,xv.Suspense=u,xv.SuspenseList=d,xv.isAsyncMode=function(){return!1},xv.isConcurrentMode=function(){return!1},xv.isContextConsumer=function(e){return m(e)===s},xv.isContextProvider=function(e){return m(e)===a},xv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},xv.isForwardRef=function(e){return m(e)===c},xv.isFragment=function(e){return m(e)===n},xv.isLazy=function(e){return m(e)===h},xv.isMemo=function(e){return m(e)===f},xv.isPortal=function(e){return m(e)===r},xv.isProfiler=function(e){return m(e)===i},xv.isStrictMode=function(e){return m(e)===o},xv.isSuspense=function(e){return m(e)===u},xv.isSuspenseList=function(e){return m(e)===d},xv.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},xv.typeOf=m,xv}():wv.exports=(Av||(Av=1,"production"!==zc.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case n:case i:case o:case u:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case h:case f:case a:return g;default:return p}}case r:return p}}}e=Symbol.for("react.module.reference");var g=s,y=a,v=t,b=c,O=n,A=h,w=f,x=r,k=i,S=o,C=u,P=d,E=!1,_=!1;kv.ContextConsumer=g,kv.ContextProvider=y,kv.Element=v,kv.ForwardRef=b,kv.Fragment=O,kv.Lazy=A,kv.Memo=w,kv.Portal=x,kv.Profiler=k,kv.StrictMode=S,kv.Suspense=C,kv.SuspenseList=P,kv.isAsyncMode=function(e){return E||(E=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},kv.isConcurrentMode=function(e){return _||(_=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},kv.isContextConsumer=function(e){return m(e)===s},kv.isContextProvider=function(e){return m(e)===a},kv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},kv.isForwardRef=function(e){return m(e)===c},kv.isFragment=function(e){return m(e)===n},kv.isLazy=function(e){return m(e)===h},kv.isMemo=function(e){return m(e)===f},kv.isPortal=function(e){return m(e)===r},kv.isProfiler=function(e){return m(e)===i},kv.isStrictMode=function(e){return m(e)===o},kv.isSuspense=function(e){return m(e)===u},kv.isSuspenseList=function(e){return m(e)===d},kv.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},kv.typeOf=m}()),kv);var Sv=wv.exports;function Cv(e){function t(e,n,l,c,f){for(var h,p,m,g,O,w=0,x=0,k=0,S=0,C=0,T=0,D=m=h=0,L=0,I=0,$=0,N=0,Q=l.length,B=Q-1,z="",F="",U="",Z="";L<Q;){if(p=l.charCodeAt(L),L===B&&0!==x+S+k+w&&(0!==x&&(p=47===x?10:47),S=k=w=0,Q++,B++),0===x+S+k+w){if(L===B&&(0<I&&(z=z.replace(d,"")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(L)}p=59}switch(p){case 123:for(h=(z=z.trim()).charCodeAt(0),m=1,N=++L;L<Q;){switch(p=l.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(p=l.charCodeAt(L+1)){case 42:case 47:e:{for(D=L+1;D<B;++D)switch(l.charCodeAt(D)){case 47:if(42===p&&42===l.charCodeAt(D-1)&&L+2!==D){L=D+1;break e}break;case 10:if(47===p){L=D+1;break e}}L=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;L++<B&&l.charCodeAt(L)!==p;);}if(0===m)break;L++}if(m=l.substring(N,L),0===h&&(h=(z=z.replace(u,"").trim()).charCodeAt(0)),64===h){switch(0<I&&(z=z.replace(d,"")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:I=n;break;default:I=M}if(N=(m=t(n,I,m,p,f+1)).length,0<q&&(O=s(3,m,I=r(M,z,$),n,E,P,N,p,f,c),z=I.join(""),void 0!==O&&0===(N=(m=O.trim()).length)&&(p=0,m="")),0<N)switch(p){case 115:z=z.replace(A,a);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(y,"$1 $2"))+"{"+m+"}",m=1===j||2===j&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===c&&(F+=m,m="")}else m=""}else m=t(n,r(n,z,$),m,c,f+1);U+=m,m=$=I=D=h=0,z="",p=l.charCodeAt(++L);break;case 125:case 59:if(1<(N=(z=(0<I?z.replace(d,""):z).trim()).length))switch(0===D&&(h=z.charCodeAt(0),45===h||96<h&&123>h)&&(N=(z=z.replace(" ",":")).length),0<q&&void 0!==(O=s(1,z,n,e,E,P,F.length,c,f,c))&&0===(N=(z=O.trim()).length)&&(z="\0\0"),h=z.charCodeAt(0),p=z.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){Z+=z+l.charAt(L);break}default:58!==z.charCodeAt(N-1)&&(F+=o(z,h,p,z.charCodeAt(2)))}$=I=D=h=0,z="",p=l.charCodeAt(++L)}}switch(p){case 13:case 10:47===x?x=0:0===1+h&&107!==c&&0<z.length&&(I=1,z+="\0"),0<q*R&&s(0,z,n,e,E,P,F.length,c,f,c),P=1,E++;break;case 59:case 125:if(0===x+S+k+w){P++;break}default:switch(P++,g=l.charAt(L),p){case 9:case 32:if(0===S+w+x)switch(C){case 44:case 58:case 9:case 32:g="";break;default:32!==p&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===S+x+w&&(I=$=1,g="\f"+g);break;case 108:if(0===S+x+w+_&&0<D)switch(L-D){case 2:112===C&&58===l.charCodeAt(L-3)&&(_=C);case 8:111===T&&(_=T)}break;case 58:0===S+x+w&&(D=L);break;case 44:0===x+k+S+w&&(I=1,g+="\r");break;case 34:case 39:0===x&&(S=S===p?0:0===S?p:S);break;case 91:0===S+x+k&&w++;break;case 93:0===S+x+k&&w--;break;case 41:0===S+x+w&&k--;break;case 40:0===S+x+w&&(0===h&&(2*C+3*T==533||(h=1)),k++);break;case 64:0===x+k+S+w+D+m&&(m=1);break;case 42:case 47:if(!(0<S+w+k))switch(x){case 0:switch(2*p+3*l.charCodeAt(L+1)){case 235:x=47;break;case 220:N=L,x=42}break;case 42:47===p&&42===C&&N+2!==L&&(33===l.charCodeAt(N+2)&&(F+=l.substring(N,L+1)),g="",x=0)}}0===x&&(z+=g)}T=C,C=p,L++}if(0<(N=F.length)){if(I=n,0<q&&void 0!==(O=s(2,F,I,e,E,P,N,c,f,c))&&0===(F=O).length)return Z+F+U;if(F=I.join(",")+"{"+F+"}",0!=j*_){switch(2!==j||i(F,2)||(_=0),_){case 111:F=F.replace(b,":-moz-$1")+F;break;case 112:F=F.replace(v,"::-webkit-input-$1")+F.replace(v,"::-moz-$1")+F.replace(v,":-ms-input-$1")+F}_=0}}return Z+F+U}function r(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=n(e[c]+" ",o[s],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",s=2*t+3*r+4*n;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===j||2===j&&i(l,1)?"-webkit-"+l+l:l}if(0===j||2===j&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(O,"tb");break;case 232:l=a.replace(O,"tb-rl");break;case 220:l=a.replace(O,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),D(2!==t?n:n.replace(k,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,r,n,o,i,a,s,l,u){for(var d,f=0,h=t;f<q;++f)switch(d=T[f].call(c,e,h,r,n,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?j=1:(j=2,D=e):j=0),l}function c(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<q){var o=s(-1,r,n,n,E,P,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(M,n,r,0,0);return 0<q&&void 0!==(o=s(-2,i,n,n,E,P,i.length,0,0,0))&&(i=o),_=0,P=E=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,m=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,y=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,b=/:(read-only)/g,O=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,x=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,P=1,E=1,_=0,j=1,M=[],T=[],q=0,D=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:q=T.length=0;break;default:if("function"==typeof t)T[q++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else R=0|!!t}return e},c.set=l,void 0!==e&&l(e),c}var Pv={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ev(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var _v,jv,Mv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Tv=Ev((function(e){return Mv.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),qv={exports:{}},Dv={},Rv={};"production"===zc.env.NODE_ENV?qv.exports=function(){if(_v)return Dv;_v=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case n:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case p:case h:case a:return e;default:return f}}case r:return f}}}function O(e){return b(e)===c}return Dv.AsyncMode=l,Dv.ConcurrentMode=c,Dv.ContextConsumer=s,Dv.ContextProvider=a,Dv.Element=t,Dv.ForwardRef=u,Dv.Fragment=n,Dv.Lazy=p,Dv.Memo=h,Dv.Portal=r,Dv.Profiler=i,Dv.StrictMode=o,Dv.Suspense=d,Dv.isAsyncMode=function(e){return O(e)||b(e)===l},Dv.isConcurrentMode=O,Dv.isContextConsumer=function(e){return b(e)===s},Dv.isContextProvider=function(e){return b(e)===a},Dv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Dv.isForwardRef=function(e){return b(e)===u},Dv.isFragment=function(e){return b(e)===n},Dv.isLazy=function(e){return b(e)===p},Dv.isMemo=function(e){return b(e)===h},Dv.isPortal=function(e){return b(e)===r},Dv.isProfiler=function(e){return b(e)===i},Dv.isStrictMode=function(e){return b(e)===o},Dv.isSuspense=function(e){return b(e)===d},Dv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},Dv.typeOf=b,Dv}():qv.exports=(jv||(jv=1,"production"!==zc.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var m=e.type;switch(m){case l:case c:case n:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case p:case h:case a:return g;default:return f}}case r:return f}}}var O=l,A=c,w=s,x=a,k=t,S=u,C=n,P=p,E=h,_=r,j=i,M=o,T=d,q=!1;function D(e){return b(e)===c}Rv.AsyncMode=O,Rv.ConcurrentMode=A,Rv.ContextConsumer=w,Rv.ContextProvider=x,Rv.Element=k,Rv.ForwardRef=S,Rv.Fragment=C,Rv.Lazy=P,Rv.Memo=E,Rv.Portal=_,Rv.Profiler=j,Rv.StrictMode=M,Rv.Suspense=T,Rv.isAsyncMode=function(e){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(e)||b(e)===l},Rv.isConcurrentMode=D,Rv.isContextConsumer=function(e){return b(e)===s},Rv.isContextProvider=function(e){return b(e)===a},Rv.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Rv.isForwardRef=function(e){return b(e)===u},Rv.isFragment=function(e){return b(e)===n},Rv.isLazy=function(e){return b(e)===p},Rv.isMemo=function(e){return b(e)===h},Rv.isPortal=function(e){return b(e)===r},Rv.isProfiler=function(e){return b(e)===i},Rv.isStrictMode=function(e){return b(e)===o},Rv.isSuspense=function(e){return b(e)===d},Rv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===m)},Rv.typeOf=b}()),Rv);var Lv=qv.exports,Iv={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$v={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Nv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qv={};function Bv(e){return Lv.isMemo(e)?Nv:Qv[e.$$typeof]||Iv}Qv[Lv.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qv[Lv.Memo]=Nv;var zv=Object.defineProperty,Fv=Object.getOwnPropertyNames,Uv=Object.getOwnPropertySymbols,Zv=Object.getOwnPropertyDescriptor,Vv=Object.getPrototypeOf,Wv=Object.prototype,Yv=function e(t,r,n){if("string"!=typeof r){if(Wv){var o=Vv(r);o&&o!==Wv&&e(t,o,n)}var i=Fv(r);Uv&&(i=i.concat(Uv(r)));for(var a=Bv(t),s=Bv(r),l=0;l<i.length;++l){var c=i[l];if(!($v[c]||n&&n[c]||s&&s[c]||a&&a[c])){var u=Zv(r,c);try{zv(t,c,u)}catch(e){}}}}return t},Xv=Uc(Yv);function Hv(){return(Hv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Gv=function(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r},Kv=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Sv.typeOf(e)},Jv=Object.freeze([]),eb=Object.freeze({});function tb(e){return"function"==typeof e}function rb(e){return"production"!==zc.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function nb(e){return e&&"string"==typeof e.styledComponentId}var ob=void 0!==zc.env&&(zc.env.REACT_APP_SC_ATTR||zc.env.SC_ATTR)||"data-styled",ib="undefined"!=typeof window&&"HTMLElement"in window,ab=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==zc.env&&(void 0!==zc.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==zc.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==zc.env.REACT_APP_SC_DISABLE_SPEEDY&&zc.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==zc.env.SC_DISABLE_SPEEDY&&""!==zc.env.SC_DISABLE_SPEEDY?"false"!==zc.env.SC_DISABLE_SPEEDY&&zc.env.SC_DISABLE_SPEEDY:"production"!==zc.env.NODE_ENV)),sb="production"!==zc.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function lb(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],r=1,n=arguments.length;r<n;r+=1)t.push(r<0||arguments.length<=r?void 0:arguments[r]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t)})),e}function cb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw"production"===zc.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):"")):new Error(lb.apply(void 0,[sb[e]].concat(r)).trim())}var ub=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&cb(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),db=new Map,fb=new Map,hb=1,pb=function(e){if(db.has(e))return db.get(e);for(;fb.has(hb);)hb++;var t=hb++;return"production"!==zc.env.NODE_ENV&&((0|t)<0||t>1<<30)&&cb(16,""+t),db.set(e,t),fb.set(t,e),t},mb=function(e){return fb.get(e)},gb=function(e,t){t>=hb&&(hb=t+1),db.set(e,t),fb.set(t,e)},yb="style["+ob+'][data-styled-version="5.3.10"]',vb=new RegExp("^"+ob+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),bb=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ob=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],o=0,i=r.length;o<i;o++){var a=r[o].trim();if(a){var s=a.match(vb);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(gb(c,l),bb(e,c,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(a)}}},Ab=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(ob))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(ob,"active"),n.setAttribute("data-styled-version","5.3.10");var a=__webpack_require__.nc;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},wb=function(){function e(e){var t=this.element=Ab(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}cb(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),xb=function(){function e(e){var t=this.element=Ab(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),kb=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Sb=ib,Cb={isServer:!ib,useCSSOMInjection:!ab},Pb=function(){function e(e,t,r){void 0===e&&(e=eb),void 0===t&&(t={}),this.options=Hv({},Cb,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ib&&Sb&&(Sb=!1,function(e){for(var t=document.querySelectorAll(yb),r=0,n=t.length;r<n;r++){var o=t[r];o&&"active"!==o.getAttribute(ob)&&(Ob(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return pb(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Hv({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(r=(t=this.options).isServer,n=t.useCSSOMInjection,o=t.target,e=r?new kb(o):n?new wb(o):new xb(o),new ub(e)));var e,t,r,n,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(pb(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(pb(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(pb(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=0;o<r;o++){var i=mb(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=ob+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),n+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),Eb=/(a)(d)/gi,_b=function(e){return String.fromCharCode(e+(e>25?39:97))};function jb(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=_b(t%52)+r;return(_b(t%52)+r).replace(Eb,"$1-$2")}var Mb=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Tb=function(e){return Mb(5381,e)},qb=Tb("5.3.10"),Db=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===zc.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(tb(r)&&!nb(r))return!1}return!0}(e),this.componentId=t,this.baseHash=Mb(qb,t),this.baseStyle=r,Pb.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))o.push(this.staticRulesId);else{var i=Yb(this.rules,e,t,r).join(""),a=jb(Mb(this.baseHash,i)>>>0);if(!t.hasNameForId(n,a)){var s=r(i,"."+a,void 0,n);t.insertRules(n,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=Mb(this.baseHash,r.hash),u="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)u+=f,"production"!==zc.env.NODE_ENV&&(c=Mb(c,f+d));else if(f){var h=Yb(f,e,t,r),p=Array.isArray(h)?h.join(""):h;c=Mb(c,p+d),u+=p}}if(u){var m=jb(c>>>0);if(!t.hasNameForId(n,m)){var g=r(u,"."+m,void 0,n);t.insertRules(n,m,g)}o.push(m)}}return o.join(" ")},e}(),Rb=/^\s*\/\/.*$/gm,Lb=[":","[",".","#"],Ib=p().createContext();Ib.Consumer;var $b=p().createContext(),Nb=($b.Consumer,new Pb),Qb=function(){var e,t,r,n,o=eb,i=o.options,a=void 0===i?eb:i,s=o.plugins,l=void 0===s?Jv:s,c=new Cv(a),u=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,s,l,c,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){u.push(e)})),f=function(r,o,i){return 0===o&&-1!==Lb.indexOf(i[t.length])||i.match(n)?r:"."+e};function h(o,i,a,s){void 0===s&&(s="&");var l=o.replace(Rb,""),u=i&&a?a+" "+i+" { "+l+" }":l;return e=s,t=i,r=new RegExp("\\"+t+"\\b","g"),n=new RegExp("(\\"+t+"\\b){2,}"),c(a||!i?"":i,u)}return c.use([].concat(l,[function(e,n,o){2===e&&o.length&&o[0].lastIndexOf(t)>0&&(o[0]=o[0].replace(r,f))},d,function(e){if(-2===e){var t=u;return u=[],t}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||cb(15),Mb(e,t.name)}),5381).toString():"",h}(),Bb=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Qb);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return cb(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Qb),this.name+e.hash},e}(),zb=/([A-Z])/,Fb=/([A-Z])/g,Ub=/^ms-/,Zb=function(e){return"-"+e.toLowerCase()};function Vb(e){return zb.test(e)?e.replace(Fb,Zb).replace(Ub,"-ms-"):e}var Wb=function(e){return null==e||!1===e||""===e};function Yb(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Yb(e[a],t,r,n))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}if(Wb(e))return"";if(nb(e))return"."+e.styledComponentId;if(tb(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var l=e(t);return"production"!==zc.env.NODE_ENV&&Sv.isElement(l)&&console.warn(rb(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Yb(l,t,r,n)}var c;return e instanceof Bb?r?(e.inject(r,n),e.getName(n)):e:Kv(e)?function e(t,r){var n,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Wb(t[a])&&(Array.isArray(t[a])&&t[a].isCss||tb(t[a])?i.push(Vb(a)+":",t[a],";"):Kv(t[a])?i.push.apply(i,e(t[a],a)):i.push(Vb(a)+": "+(n=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in Pv||n.startsWith("--")?String(o).trim():o+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var Xb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Hb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return tb(e)||Kv(e)?Xb(Yb(Gv(Jv,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Xb(Yb(Gv(e,r)))}var Gb=/invalid hook call/i,Kb=new Set,Jb=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eO=/(^-|-$)/g;function tO(e){return e.replace(Jb,"-").replace(eO,"")}function rO(e){return"string"==typeof e&&("production"===zc.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var nO=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},oO=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function iO(e,t,r){var n=e[r];nO(t)&&nO(n)?aO(n,t):e[r]=t}function aO(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var o=0,i=r;o<i.length;o++){var a=i[o];if(nO(a))for(var s in a)oO(s)&&iO(e,a[s],s)}return e}var sO=p().createContext();sO.Consumer;var lO={};function cO(e,t,r){var n=nb(e),o=!rO(e),i=t.attrs,a=void 0===i?Jv:i,s=t.componentId,l=void 0===s?function(e,t){var r="string"!=typeof e?"sc":tO(e);lO[r]=(lO[r]||0)+1;var n=r+"-"+function(e){return jb(Tb(e)>>>0)}("5.3.10"+r+lO[r]);return t?t+"-"+n:n}(t.displayName,t.parentComponentId):s,c=t.displayName,u=void 0===c?function(e){return rO(e)?"styled."+e:"Styled("+rb(e)+")"}(e):c,d=t.displayName&&t.componentId?tO(t.displayName)+"-"+t.componentId:t.componentId||l,f=n&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,m=t.shouldForwardProp;n&&e.shouldForwardProp&&(m=t.shouldForwardProp?function(r,n,o){return e.shouldForwardProp(r,n,o)&&t.shouldForwardProp(r,n,o)}:e.shouldForwardProp);var g,y=new Db(r,d,n?e.componentStyle:void 0),v=y.isStatic&&0===a.length,b=function(e,t){return function(e,t,r,n){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,u=e.target;"production"!==zc.env.NODE_ENV&&(0,h.useDebugValue)(c);var d=function(e,t,r){void 0===e&&(e=eb);var n=Hv({},t,{theme:e}),o={};return r.forEach((function(e){var t,r,i,a=e;for(t in tb(a)&&(a=a(n)),a)n[t]=o[t]="className"===t?(r=o[t],i=a[t],r&&i?r+" "+i:r||i):a[t]})),[n,o]}(function(e,t,r){return void 0===r&&(r=eb),e.theme!==r.theme&&e.theme||t||r.theme}(t,(0,h.useContext)(sO),a)||eb,t,o),f=d[0],p=d[1],m=function(e,t,r,n){var o=(0,h.useContext)(Ib)||Nb,i=(0,h.useContext)($b)||Qb,a=t?e.generateAndInjectStyles(eb,o,i):e.generateAndInjectStyles(r,o,i);return"production"!==zc.env.NODE_ENV&&(0,h.useDebugValue)(a),"production"!==zc.env.NODE_ENV&&!t&&n&&n(a),a}(i,n,f,"production"!==zc.env.NODE_ENV?e.warnTooManyClasses:void 0),g=r,y=p.$as||t.$as||p.as||t.as||u,v=rO(y),b=p!==t?Hv({},t,{},p):t,O={};for(var A in b)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?O.as=b[A]:(l?l(A,Tv,y):!v||Tv(A))&&(O[A]=b[A]));return t.style&&p.style!==t.style&&(O.style=Hv({},t.style,{},p.style)),O.className=Array.prototype.concat(s,c,m!==c?m:null,t.className,p.className).filter(Boolean).join(" "),O.ref=g,(0,h.createElement)(y,O)}(g,e,t,v)};return b.displayName=u,(g=p().forwardRef(b)).attrs=f,g.componentStyle=y,g.displayName=u,g.shouldForwardProp=m,g.foldedComponentIds=n?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):Jv,g.styledComponentId=d,g.target=n?e.target:e,g.withComponent=function(e){var n=t.componentId,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(rO(e)?e:tO(rb(e)));return cO(e,Hv({},o,{attrs:f,componentId:i}),r)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?aO({},e.defaultProps,t):t}}),"production"!==zc.env.NODE_ENV&&(function(e,t){if("production"!==zc.env.NODE_ENV){var r="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",n=console.error;try{var o=!0;console.error=function(e){if(Gb.test(e))o=!1,Kb.delete(r);else{for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];n.apply(void 0,[e].concat(i))}},(0,h.useRef)(),o&&!Kb.has(r)&&(console.warn(r),Kb.add(r))}catch(e){Gb.test(e.message)&&Kb.delete(r)}finally{console.error=n}}}(u,d),g.warnTooManyClasses=function(e,t){var r={},n=!1;return function(o){if(!n&&(r[o]=!0,Object.keys(r).length>=200)){var i=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+i+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),n=!0,r={}}}}(u,d)),Object.defineProperty(g,"toString",{value:function(){return"."+g.styledComponentId}}),o&&Xv(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var uO=function(e){return function e(t,r,n){if(void 0===n&&(n=eb),!Sv.isValidElementType(r))return cb(1,String(r));var o=function(){return t(r,n,Hb.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,r,Hv({},n,{},o))},o.attrs=function(o){return e(t,r,Hv({},n,{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},o}(cO,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){uO[e]=uO(e)})),"production"!==zc.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==zc.env.NODE_ENV&&"test"!==zc.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var dO=uO;const fO=Hb`
76
76
  pointer-events: none;
77
77
  `,hO=dO.div`
78
78
  position: relative;