diff --git a/frontend/src/components/BottomBar.js b/frontend/src/components/BottomBar.js
index 818579d1..608eedb6 100644
--- a/frontend/src/components/BottomBar.js
+++ b/frontend/src/components/BottomBar.js
@@ -606,7 +606,7 @@ bottomBarDesktop =()=>{
}}
onChange={this.handleChangeLang}>
-
+
diff --git a/frontend/static/frontend/main.js b/frontend/static/frontend/main.js
index 55d008b3..2d8123f4 100644
--- a/frontend/static/frontend/main.js
+++ b/frontend/static/frontend/main.js
@@ -152,4 +152,4 @@
`),Zr))),Hr=(0,Ie.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${(0,Te.Z)(n.color)}`],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,s.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":t.palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:jr(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,Sr.iv)(Br||(Br=Ir`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
- `),Lr))),Vr=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:a,valueBuffer:i,variant:l="indeterminate"}=n,c=(0,M.Z)(n,Pr),u=(0,s.Z)({},n,{color:o,variant:l}),d=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${(0,Te.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,Te.Z)(r)}`],bar1:["bar",`barColor${(0,Te.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,Te.Z)(r)}`,"buffer"===n&&`color${(0,Te.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,Ee.Z)(o,Er,t)})(u),p=(0,ur.Z)(),m={},h={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==a){m["aria-valuenow"]=Math.round(a),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let e=a-100;"rtl"===p.direction&&(e=-e),h.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==i){let e=(i||0)-100;"rtl"===p.direction&&(e=-e),h.bar2.transform=`translateX(${e}%)`}return(0,Ne.jsxs)(Fr,(0,s.Z)({className:(0,Se.Z)(d.root,r),ownerState:u,role:"progressbar"},m,{ref:t},c,{children:["buffer"===l?(0,Ne.jsx)(zr,{className:d.dashed,ownerState:u}):null,(0,Ne.jsx)(Nr,{className:d.bar1,ownerState:u,style:h.bar1}),"determinate"===l?null:(0,Ne.jsx)(Hr,{className:d.bar2,ownerState:u,style:h.bar2})]}))})),Wr=Vr;var Ur=n(7167),Yr=n(4423);function Gr(e){return(0,Ze.Z)("MuiInputAdornment",e)}const qr=(0,Le.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Kr=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Xr=(0,Ie.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Te.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:e.palette.action.active},"filled"===t.variant&&{[`&.${qr.positionStart}&:not(.${qr.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Jr=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d}=n,p=(0,M.Z)(n,Kr),m=(0,Yr.Z)()||{};let h=d;d&&m.variant,m&&!h&&(h=m.variant);const f=(0,s.Z)({},n,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:l,position:u,variant:h}),g=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${(0,Te.Z)(o)}`,i,r&&"hiddenLabel",a&&`size${(0,Te.Z)(a)}`]};return(0,Ee.Z)(s,Gr,t)})(f);return(0,Ne.jsx)(Ur.Z.Provider,{value:null,children:(0,Ne.jsx)(Xr,(0,s.Z)({as:i,ownerState:f,className:(0,Se.Z)(g.root,a),ref:t},p,{children:"string"!=typeof o||c?(0,Ne.jsxs)(r.Fragment,{children:["start"===u?(0,Ne.jsx)("span",{className:"notranslate",dangerouslySetInnerHTML:{__html:""}}):null,o]}):(0,Ne.jsx)(st.Z,{color:"text.secondary",children:o})}))})})),Qr=Jr;var _r=n(9868),$r=n(6523),eo=n(6682);const to=["className","component"];var no=n(9981),ro=n(4345);const oo=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=(0,_r.ZP)("div")($r.Z);return r.forwardRef((function(e,r){const i=(0,eo.Z)(t),l=(0,Je.Z)(e),{className:c,component:u="div"}=l,d=(0,M.Z)(l,to);return(0,Ne.jsx)(a,(0,s.Z)({as:u,ref:r,className:(0,Se.Z)(c,o?o(n):n),theme:i},d))}))}({defaultTheme:(0,ro.Z)(),defaultClassName:"MuiBox-root",generateClassName:no.Z.generate});n(9864);var ao=n(7144);let io;function so(){if(io)return io;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),io="reverse",e.scrollLeft>0?io="default":(e.scrollLeft=1,0===e.scrollLeft&&(io="negative")),document.body.removeChild(e),io}function lo(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(so()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function co(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var uo=n(5340);const po=["onChange"],mo={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var ho=n(7070),fo=n(6686),go=n(6905);function bo(e){return(0,Ze.Z)("MuiTabScrollButton",e)}const vo=(0,Le.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);var yo,wo;const ko=["className","direction","orientation","disabled"],Co=(0,Ie.ZP)(go.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>(0,s.Z)({width:40,flexShrink:0,opacity:.8,[`&.${vo.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),xo=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiTabScrollButton"}),{className:r,direction:o}=n,a=(0,M.Z)(n,ko),i="rtl"===(0,ur.Z)().direction,l=(0,s.Z)({isRtl:i},n),c=(e=>{const{classes:t,orientation:n,disabled:r}=e,o={root:["root",n,r&&"disabled"]};return(0,Ee.Z)(o,bo,t)})(l);return(0,Ne.jsx)(Co,(0,s.Z)({component:"div",className:(0,Se.Z)(c.root,r),ref:t,role:null,ownerState:l,tabIndex:null},a,{children:"left"===o?yo||(yo=(0,Ne.jsx)(ho.Z,{fontSize:"small"})):wo||(wo=(0,Ne.jsx)(fo.Z,{fontSize:"small"}))}))})),So=xo;var Eo=n(2068);function Po(e){return(0,Ze.Z)("MuiTabs",e)}const To=(0,Le.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var Ao=n(8038);const Ro=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Oo=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Mo=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Bo=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},Io=(0,Ie.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${To.scrollButtons}`]:t.scrollButtons},{[`& .${To.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,s.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${To.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),Zo=(0,Ie.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,s.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),Lo=(0,Ie.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>(0,s.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),Do=(0,Ie.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,s.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:t.palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:t.palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),jo=(0,Ie.ZP)((function(e){const{onChange:t}=e,n=(0,M.Z)(e,po),o=r.useRef(),a=r.useRef(null),i=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return r.useEffect((()=>{const e=(0,ao.Z)((()=>{const e=o.current;i(),e!==o.current&&t(o.current)})),n=(0,uo.Z)(a.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),r.useEffect((()=>{i(),t(o.current)}),[t]),(0,Ne.jsx)("div",(0,s.Z)({style:mo,ref:a},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Fo={},zo=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiTabs"}),o=(0,ur.Z)(),a="rtl"===o.direction,{"aria-label":i,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:p,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:f="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=So,scrollButtons:y="auto",selectionFollowsFocus:w,TabIndicatorProps:k={},TabScrollButtonProps:C={},textColor:x="primary",value:S,variant:E="standard",visibleScrollbar:P=!1}=n,T=(0,M.Z)(n,Ro),A="scrollable"===E,R="vertical"===b,O=R?"scrollTop":"scrollLeft",B=R?"top":"left",I=R?"bottom":"right",Z=R?"clientHeight":"clientWidth",L=R?"height":"width",D=(0,s.Z)({},n,{component:m,allowScrollButtonsMobile:h,indicatorColor:f,orientation:b,vertical:R,scrollButtons:y,textColor:x,variant:E,visibleScrollbar:P,fixed:!A,hideScrollbar:A&&!P,scrollableX:A&&!R,scrollableY:A&&R,centered:u&&!A,scrollButtonsHideMobile:!h}),j=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,Ee.Z)(c,Po,l)})(D),[F,z]=r.useState(!1),[N,H]=r.useState(Fo),[V,W]=r.useState({start:!1,end:!1}),[U,Y]=r.useState({overflow:"hidden",scrollbarWidth:0}),G=new Map,q=r.useRef(null),K=r.useRef(null),X=()=>{const e=q.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:lo(e,o.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==S){const e=K.current.children;if(e.length>0){const t=e[G.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},J=(0,Eo.Z)((()=>{const{tabsMeta:e,tabMeta:t}=X();let n,r=0;if(R)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=a?"right":"left",t&&e){const o=a?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(a?-1:1)*(t[n]-e[n]+o)}const o={[n]:r,[L]:t?t[L]:0};if(isNaN(N[n])||isNaN(N[L]))H(o);else{const e=Math.abs(N[n]-o[n]),t=Math.abs(N[L]-o[L]);(e>=1||t>=1)&&H(o)}})),Q=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=(()=>{})){const{ease:a=co,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/i);t[e]=a(d)*(n-l)+l,d>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(O,q.current,e,{duration:o.transitions.duration.standard}):q.current[O]=e},_=e=>{let t=q.current[O];R?t+=e:(t+=e*(a?-1:1),t*=a&&"reverse"===so()?-1:1),Q(t)},$=()=>{const e=q.current[Z];let t=0;const n=Array.from(K.current.children);for(let r=0;re)break;t+=o[Z]}return t},ee=()=>{_(-1*$())},te=()=>{_($())},ne=r.useCallback((e=>{Y({overflow:null,scrollbarWidth:e})}),[]),re=(0,Eo.Z)((e=>{const{tabsMeta:t,tabMeta:n}=X();if(n&&t)if(n[B]t[I]){const r=t[O]+(n[I]-t[I]);Q(r,{animation:e})}})),oe=(0,Eo.Z)((()=>{if(A&&!1!==y){const{scrollTop:e,scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:i}=q.current;let s,l;if(R)s=e>1,l=e1,l=a?e>1:e{const e=(0,ao.Z)((()=>{J(),oe()})),t=(0,uo.Z)(q.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),Array.from(K.current.children).forEach((e=>{n.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[J,oe]);const ae=r.useMemo((()=>(0,ao.Z)((()=>{oe()}))),[oe]);r.useEffect((()=>()=>{ae.clear()}),[ae]),r.useEffect((()=>{z(!0)}),[]),r.useEffect((()=>{J(),oe()})),r.useEffect((()=>{re(Fo!==N)}),[re,N]),r.useImperativeHandle(c,(()=>({updateIndicator:J,updateScrollButtons:oe})),[J,oe]);const ie=(0,Ne.jsx)(Do,(0,s.Z)({},k,{className:(0,Se.Z)(j.indicator,k.className),ownerState:D,style:(0,s.Z)({},N,k.style)}));let se=0;const le=r.Children.map(d,(e=>{if(!r.isValidElement(e))return null;const t=void 0===e.props.value?se:e.props.value;G.set(t,se);const n=t===S;return se+=1,r.cloneElement(e,(0,s.Z)({fullWidth:"fullWidth"===E,indicator:n&&!F&&ie,selected:n,selectionFollowsFocus:w,onChange:g,textColor:x,value:t},1!==se||!1!==S||e.props.tabIndex?{}:{tabIndex:0}))})),ce=(()=>{const e={};e.scrollbarSizeListener=A?(0,Ne.jsx)(jo,{onChange:ne,className:(0,Se.Z)(j.scrollableX,j.hideScrollbar)}):null;const t=V.start||V.end,n=A&&("auto"===y&&t||!0===y);return e.scrollButtonStart=n?(0,Ne.jsx)(v,(0,s.Z)({orientation:b,direction:a?"right":"left",onClick:ee,disabled:!V.start},C,{className:(0,Se.Z)(j.scrollButtons,C.className)})):null,e.scrollButtonEnd=n?(0,Ne.jsx)(v,(0,s.Z)({orientation:b,direction:a?"left":"right",onClick:te,disabled:!V.end},C,{className:(0,Se.Z)(j.scrollButtons,C.className)})):null,e})();return(0,Ne.jsxs)(Io,(0,s.Z)({className:(0,Se.Z)(j.root,p),ownerState:D,ref:t,as:m},T,{children:[ce.scrollButtonStart,ce.scrollbarSizeListener,(0,Ne.jsxs)(Zo,{className:j.scroller,ownerState:D,style:{overflow:U.overflow,[R?"margin"+(a?"Left":"Right"):"marginBottom"]:P?void 0:-U.scrollbarWidth},ref:q,onScroll:ae,children:[(0,Ne.jsx)(Lo,{"aria-label":i,"aria-labelledby":l,"aria-orientation":"vertical"===b?"vertical":null,className:j.flexContainer,ownerState:D,onKeyDown:e=>{const t=K.current,n=(0,Ao.Z)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===b?"ArrowLeft":"ArrowUp",o="horizontal"===b?"ArrowRight":"ArrowDown";switch("horizontal"===b&&a&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),Bo(t,n,Mo);break;case o:e.preventDefault(),Bo(t,n,Oo);break;case"Home":e.preventDefault(),Bo(t,null,Oo);break;case"End":e.preventDefault(),Bo(t,null,Mo)}},ref:K,role:"tablist",children:le}),F&&ie]}),ce.scrollButtonEnd]}))})),No=zo;function Ho(e){return(0,Ze.Z)("MuiTab",e)}const Vo=(0,Le.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Wo=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Uo=(0,Ie.ZP)(go.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,Te.Z)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>(0,s.Z)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Vo.iconWrapper}`]:(0,s.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Vo.selected}`]:{opacity:1},[`&.${Vo.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"primary"===t.textColor&&{color:e.palette.text.secondary,[`&.${Vo.selected}`]:{color:e.palette.primary.main},[`&.${Vo.disabled}`]:{color:e.palette.text.disabled}},"secondary"===t.textColor&&{color:e.palette.text.secondary,[`&.${Vo.selected}`]:{color:e.palette.secondary.main},[`&.${Vo.disabled}`]:{color:e.palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),Yo=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:p,onChange:m,onClick:h,onFocus:f,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:y,wrapped:w=!1}=n,k=(0,M.Z)(n,Wo),C=(0,s.Z)({},n,{disabled:a,disableFocusRipple:i,selected:g,icon:!!c,iconPosition:u,label:!!p,fullWidth:l,textColor:v,wrapped:w}),x=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${(0,Te.Z)(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,Ee.Z)(c,Ho,t)})(C),S=c&&p&&r.isValidElement(c)?r.cloneElement(c,{className:(0,Se.Z)(x.iconWrapper,c.props.className)}):c;return(0,Ne.jsxs)(Uo,(0,s.Z)({focusRipple:!i,className:(0,Se.Z)(x.root,o),ref:t,role:"tab","aria-selected":g,disabled:a,onClick:e=>{!g&&m&&m(e,y),h&&h(e)},onFocus:e=>{b&&!g&&m&&m(e,y),f&&f(e)},ownerState:C,tabIndex:g?0:-1},k,{children:["top"===u||"start"===u?(0,Ne.jsxs)(r.Fragment,{children:[S,p]}):(0,Ne.jsxs)(r.Fragment,{children:[p,S]}),d]}))})),Go=Yo,qo=r.createContext(null),Ko=function(e){const{children:t,dateAdapter:n,dateFormats:o,dateLibInstance:a,locale:i}=e,s=r.useMemo((()=>new n({locale:i,formats:o,instance:a})),[n,i,o,a]),l=r.useMemo((()=>({minDate:s.date("1900-01-01T00:00:00.000"),maxDate:s.date("2099-12-31T00:00:00.000")})),[s]),c=r.useMemo((()=>({utils:s,defaultDates:l})),[l,s]);return(0,Ne.jsx)(qo.Provider,{value:c,children:t})};function Xo(){return Xo=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var Qo=n(4168),_o=n(539),$o=n(8974);const ea=(0,wn.Z)((0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,Ne.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");function ta(e,t){return e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date"}const na=(e,t,n)=>{const r=e.date(t);return null===t?"":e.isValid(r)?e.formatByString(r,n):""};function ra(e,t,n){return e||(void 0===t?n.localized:t?n["12h"]:n["24h"])}function oa(){const e=r.useContext(qo);if(null===e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;ee,da=(()=>{let e=ua;return{configure(t){e=t},generate:t=>e(t),reset(){e=ua}}})(),pa={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function ma(e,t){return pa[t]||`${da.generate(e)}-${t}`}function ha(e,t){const n={};return t.forEach((t=>{n[t]=ma(e,t)})),n}function fa(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e)),[]).join(" ")})),r}const ga=["className","selected","value"],ba=ha("PrivatePickersToolbarText",["selected"]),va=(0,Ie.ZP)(st.Z)((({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${ba.selected}`]:{color:e.palette.text.primary}}))),ya=r.forwardRef((function(e,t){const{className:n,selected:r,value:o}=e,a=Jo(e,ga);return(0,Ne.jsx)(va,Xo({ref:t,className:(0,Se.Z)(n,r&&ba.selected),component:"span"},a,{children:o}))})),wa=["align","className","selected","typographyClassName","value","variant"],ka=(0,Ie.ZP)(pt.Z)({padding:0,minWidth:16,textTransform:"none"}),Ca=r.forwardRef((function(e,t){const{align:n,className:r,selected:o,typographyClassName:a,value:i,variant:s}=e,l=Jo(e,wa);return(0,Ne.jsx)(ka,Xo({variant:"text",ref:t,className:r},l,{children:(0,Ne.jsx)(ya,{align:n,className:a,variant:s,value:i,selected:o})}))})),xa=(0,wn.Z)((0,Ne.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),Sa=(0,wn.Z)((0,Ne.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");var Ea,Pa,Ta;const Aa=ha("PrivatePickersToolbar",["root","dateTitleContainer"]),Ra=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Xo({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}))),Oa=(0,Ie.ZP)(it)({flex:1}),Ma=e=>"clock"===e?Ea||(Ea=(0,Ne.jsx)(ea,{color:"inherit"})):Pa||(Pa=(0,Ne.jsx)(Sa,{color:"inherit"}));function Ba(e,t){return e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`}const Ia=r.forwardRef((function(e,t){const{children:n,className:r,getMobileKeyboardInputViewButtonText:o=Ba,isLandscape:a,isMobileKeyboardViewOpen:i,landscapeDirection:s="column",penIconClassName:l,toggleMobileKeyboardView:c,toolbarTitle:u,viewType:d="calendar"}=e,p=e;return(0,Ne.jsxs)(Ra,{ref:t,className:(0,Se.Z)(Aa.root,r),ownerState:p,children:[(0,Ne.jsx)(st.Z,{color:"text.secondary",variant:"overline",children:u}),(0,Ne.jsxs)(Oa,{container:!0,justifyContent:"space-between",className:Aa.dateTitleContainer,direction:a?s:"row",alignItems:a?"flex-start":"flex-end",children:[n,(0,Ne.jsx)(dt.Z,{onClick:c,className:l,color:"inherit","aria-label":o(i,d),children:i?Ma(d):Ta||(Ta=(0,Ne.jsx)(xa,{color:"inherit"}))})]})]})}));function Za(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}const La=(e,t)=>n=>{"Enter"!==n.key&&" "!==n.key||(e(),n.preventDefault(),n.stopPropagation()),t&&t(n)},Da=(...e)=>e.reduceRight(((e,t)=>(...n)=>t(e(...n))),(e=>e));function ja(e,t){return n=>{e(n),t&&t(n)}}const Fa=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?"am"===t?e-12:e+12:e;function za(e,t){return 3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e)}const Na=(e,t)=>(n,r)=>e?t.isAfter(n,r):za(n,t)>za(r,t),Ha=(e,t,{minTime:n,maxTime:r,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a})=>{const i=e.date(t),s=Na(Boolean(a),e);if(null===t)return null;switch(!0){case!e.isValid(t):return"invalidDate";case Boolean(n&&s(n,i)):return"minTime";case Boolean(r&&s(i,r)):return"maxTime";case Boolean(o&&o(e.getHours(i),"hours")):return"shouldDisableTime-hours";case Boolean(o&&o(e.getMinutes(i),"minutes")):return"shouldDisableTime-minutes";case Boolean(o&&o(e.getSeconds(i),"seconds")):return"shouldDisableTime-seconds";default:return null}};function Va(e,t,n){const o=aa(),a=((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(e,o),i=r.useCallback((r=>{const a=((e,t,n,r)=>{const o=Fa(r.getHours(e),t,n);return r.setHours(e,o)})(e,r,Boolean(t),o);n(a,"partial")}),[t,e,n,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Wa=["ampm","ampmInClock","date","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views"];function Ua(e){return ma("PrivateTimePickerToolbar",e)}const Ya=ha("PrivateTimePickerToolbar",["separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel","penIconLandscape"]),Ga=(0,Ie.ZP)(Ia)({[`& .${Ya.penIconLandscape}`]:{marginTop:"auto"}}),qa=(0,Ie.ZP)(ya)({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Ka=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Xo({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"}))),Xa=(0,Ie.ZP)("div")((({ownerState:e})=>Xo({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Ya.ampmLabel}`]:{fontSize:17}}))),Ja=e=>{const{ampm:t,ampmInClock:n,date:r,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:i,openView:s,setOpenView:l,toggleMobileKeyboardView:c,toolbarTitle:u="Select time",views:d}=e,p=Jo(e,Wa),m=aa(),h=(0,ur.Z)(),f=Boolean(t&&!n),{meridiemMode:g,handleMeridiemChange:b}=Va(r,t,i),v=e,y=(e=>{const{theme:t,isLandscape:n,classes:r}=e;return fa({penIconLandscape:["penIconLandscape"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Ua,r)})(Xo({},v,{theme:h})),w=(0,Ne.jsx)(qa,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:y.separator});return(0,Ne.jsxs)(Ga,Xo({viewType:"clock",landscapeDirection:"row",toolbarTitle:u,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:c,ownerState:v,penIconClassName:(0,Se.Z)(o&&y.penIconLandscape)},p,{children:[(0,Ne.jsxs)(Ka,{className:y.hourMinuteLabel,ownerState:v,children:[Za(d,"hours")&&(0,Ne.jsx)(Ca,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:"hours"===s,value:r?(k=r,t?m.format(k,"hours12h"):m.format(k,"hours24h")):"--"}),Za(d,["hours","minutes"])&&w,Za(d,"minutes")&&(0,Ne.jsx)(Ca,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:"minutes"===s,value:r?m.format(r,"minutes"):"--"}),Za(d,["minutes","seconds"])&&w,Za(d,"seconds")&&(0,Ne.jsx)(Ca,{variant:"h3",onClick:()=>l("seconds"),selected:"seconds"===s,value:r?m.format(r,"seconds"):"--"})]}),f&&(0,Ne.jsxs)(Xa,{className:y.ampmSelection,ownerState:v,children:[(0,Ne.jsx)(Ca,{disableRipple:!0,variant:"subtitle2",selected:"am"===g,typographyClassName:y.ampmLabel,value:m.getMeridiemText("am"),onClick:()=>b("am")}),(0,Ne.jsx)(Ca,{disableRipple:!0,variant:"subtitle2",selected:"pm"===g,typographyClassName:y.ampmLabel,value:m.getMeridiemText("pm"),onClick:()=>b("pm")})]})]}));var k},Qa=r.createContext(null);var _a=n(6514),$a=n(2486),ei=n(2310);const ti=["onClick","onTouchStart"],ni=(0,Ie.ZP)($a.Z)((({theme:e})=>({zIndex:e.zIndex.modal}))),ri=(0,Ie.ZP)(Me.Z)((({ownerState:e})=>Xo({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"}))),oi=(0,Ie.ZP)(Wt)((({ownerState:e})=>Xo({},e.clearable?{justifyContent:"flex-start","& > *:first-of-type":{marginRight:"auto"}}:{padding:0}))),ai=e=>{var t;const{anchorEl:n,children:o,containerRef:a=null,onClose:i,onClear:s,clearable:l=!1,clearText:c="Clear",open:u,PopperProps:d,role:p,TransitionComponent:m=_a.Z,TrapFocusProps:h,PaperProps:f={}}=e;r.useEffect((()=>{function e(e){"Escape"!==e.key&&"Esc"!==e.key||i()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[i]);const g=r.useRef(null);r.useEffect((()=>{"tooltip"!==p&&(u?g.current=document.activeElement:g.current&&g.current instanceof HTMLElement&&g.current.focus())}),[u,p]);const[b,v,y]=function(e,t){const n=r.useRef(!1),o=r.useRef(!1),a=r.useRef(null),i=r.useRef(!1);r.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),i.current=!1};function t(){i.current=!0}}),[e]);const s=(0,Eo.Z)((e=>{if(!i.current)return;const r=o.current;o.current=!1;const s=(0,Ao.Z)(a.current);if(!a.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!s.documentElement.contains(e.target)||a.current.contains(e.target),l||r||t(e)})),l=()=>{o.current=!0};return r.useEffect((()=>{if(e){const e=(0,Ao.Z)(a.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}}),[e,s]),r.useEffect((()=>{if(e){const e=(0,Ao.Z)(a.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),o.current=!1}}}),[e,s]),[a,l,l]}(u,i),w=r.useRef(null),k=(0,Mt.Z)(w,a),C=(0,Mt.Z)(k,b),x=e,{onClick:S,onTouchStart:E}=f,P=Jo(f,ti);return(0,Ne.jsx)(ni,Xo({transition:!0,role:p,open:u,anchorEl:n,ownerState:x},d,{children:({TransitionProps:e,placement:n})=>(0,Ne.jsx)(ei.Z,Xo({open:u,disableAutoFocus:!0,disableEnforceFocus:"tooltip"===p,isEnabled:()=>!0},h,{children:(0,Ne.jsx)(m,Xo({},e,{children:(0,Ne.jsxs)(ri,Xo({tabIndex:-1,elevation:8,ref:C,onClick:e=>{v(e),S&&S(e)},onTouchStart:e=>{y(e),E&&E(e)},ownerState:Xo({},x,{placement:n})},P,{children:[o,(0,Ne.jsx)(oi,{ownerState:x,children:l&&(t||(t=(0,Ne.jsx)(pt.Z,{onClick:s,children:c})))})]}))}))}))}))},ii=function(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:o,onDismiss:a,open:i,PopperProps:s,PaperProps:l,TransitionComponent:c,onClear:u,clearText:d,clearable:p}=e,m=r.useRef(null),h=(0,Mt.Z)(n.inputRef,m);return(0,Ne.jsxs)(Qa.Provider,{value:"desktop",children:[(0,Ne.jsx)(o,Xo({},n,{inputRef:h})),(0,Ne.jsx)(ai,{role:"dialog",open:i,anchorEl:m.current,TransitionComponent:c,PopperProps:s,PaperProps:l,onClose:a,onClear:u,clearText:d,clearable:p,children:t})]})};function si({onChange:e,onViewChange:t,openTo:n,view:o,views:a}){var i,s;const[l,c]=(0,mn.Z)({name:"Picker",state:"view",controlled:o,default:n&&Za(a,n)?n:a[0]}),u=null!=(i=a[a.indexOf(l)-1])?i:null,d=null!=(s=a[a.indexOf(l)+1])?s:null,p=r.useCallback((e=>{c(e),t&&t(e)}),[c,t]),m=r.useCallback((()=>{d&&p(d)}),[d,p]);return{handleChangeAndOpenNext:r.useCallback(((t,n)=>{const r="finish"===n,o=r&&Boolean(d)?"partial":n;e(t,o),r&&m()}),[d,e,m]),nextView:d,previousView:u,openNext:m,openView:l,setOpenView:p}}let li=0;const ci=o.useId;const ui="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,di=110,pi=110,mi=di-di,hi=0-pi,fi=(e,t,n)=>{const r=t-di,o=n-pi;let a=(Math.atan2(mi,hi)-Math.atan2(r,o))*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const i=r**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(i)}},gi=["className","hasSelected","isInner","type","value"],bi=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Xo({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.toAnimateTransform&&{transition:e.transitions.create(["transform","height"])}))),vi=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Xo({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main})));class yi extends r.Component{constructor(...e){super(...e),this.state={toAnimateTransform:!1,previousType:void 0}}render(){const e=this.props,{className:t,isInner:n,type:r,value:o}=e,a=Jo(e,gi),i=Xo({},this.props,this.state);return(0,Ne.jsx)(bi,Xo({style:(()=>{let e=360/("hours"===r?12:60)*o;return"hours"===r&&o>12&&(e-=360),{height:Math.round(220*(n?.26:.4)),transform:`rotateZ(${e}deg)`}})(),className:t,ownerState:i},a,{children:(0,Ne.jsx)(vi,{ownerState:i})}))}}yi.getDerivedStateFromProps=(e,t)=>e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type};const wi=yi;var ki,Ci,xi;const Si=(0,Ie.ZP)("div")((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)}))),Ei=(0,Ie.ZP)("div")({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Pi=(0,Ie.ZP)("div")({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none","@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}),Ti=(0,Ie.ZP)("div")((({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}))),Ai=(0,Ie.ZP)(dt.Z)((({theme:e,ownerState:t})=>Xo({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},"am"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}))),Ri=(0,Ie.ZP)(dt.Z)((({theme:e,ownerState:t})=>Xo({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},"pm"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}))),Oi=function(e){const{ampm:t,ampmInClock:n,autoFocus:o,children:a,date:i,getClockLabelText:s,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:p,selectedId:m,type:h,value:f}=e,g=e,b=aa(),v=r.useContext(Qa),y=r.useRef(!1),w=c(f,h),k=!t&&"hours"===h&&(f<1||f>12),C=(e,t)=>{c(e,h)||p(e,t)},x=(e,n)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const a="seconds"===h||"minutes"===h?((e,t,n=1)=>{const r=6*n;let{value:o}=fi(r,e,t);return o=o*n%60,o})(r,o,d):((e,t,n)=>{const{value:r,distance:o}=fi(30,e,t);let a=r||12;return n?a%=12:o<74&&(a+=12,a%=24),a})(r,o,Boolean(t));C(a,n)},S=r.useMemo((()=>"hours"===h||f%5==0),[h,f]),E="minutes"===h?d:1,P=r.useRef(null);return ui((()=>{o&&P.current.focus()}),[o]),(0,Ne.jsxs)(Si,{children:[(0,Ne.jsxs)(Ei,{children:[(0,Ne.jsx)(Pi,{onTouchMove:e=>{y.current=!0,x(e,"shallow")},onTouchEnd:e=>{y.current&&(x(e,"finish"),y.current=!1)},onMouseUp:e=>{y.current&&(y.current=!1),x(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&x(e.nativeEvent,"shallow")}}),!w&&(0,Ne.jsxs)(r.Fragment,{children:[ki||(ki=(0,Ne.jsx)(Ti,{})),i&&(0,Ne.jsx)(wi,{type:h,value:f,isInner:k,hasSelected:S})]}),(0,Ne.jsx)("div",{"aria-activedescendant":m,"aria-label":s(h,i,b),ref:P,role:"listbox",onKeyDown:e=>{if(!y.current)switch(e.key){case"Home":C(0,"partial"),e.preventDefault();break;case"End":C("minutes"===h?59:23,"partial"),e.preventDefault();break;case"ArrowUp":C(f+E,"partial"),e.preventDefault();break;case"ArrowDown":C(f-E,"partial"),e.preventDefault()}},tabIndex:0,children:a})]}),t&&("desktop"===v||n)&&(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)(Ai,{onClick:()=>l("am"),disabled:null===u,ownerState:g,children:Ci||(Ci=(0,Ne.jsx)(st.Z,{variant:"caption",children:"AM"}))}),(0,Ne.jsx)(Ri,{disabled:null===u,onClick:()=>l("pm"),ownerState:g,children:xi||(xi=(0,Ne.jsx)(st.Z,{variant:"caption",children:"PM"}))})]})]})},Mi=["className","disabled","index","inner","label","selected"],Bi=ha("PrivateClockNumber",["selected","disabled"]),Ii=(0,Ie.ZP)("span")((({theme:e,ownerState:t})=>Xo({height:36,width:36,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${Bi.selected}`]:{color:e.palette.primary.contrastText},[`&.${Bi.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Xo({},e.typography.body2,{color:e.palette.text.secondary})))),Zi=function(e){const{className:t,disabled:n,index:r,inner:o,label:a,selected:i}=e,s=Jo(e,Mi),l=e,c=r%12/12*Math.PI*2-Math.PI/2,u=91*(o?.65:1),d=Math.round(Math.cos(c)*u),p=Math.round(Math.sin(c)*u);return(0,Ne.jsx)(Ii,Xo({className:(0,Se.Z)(t,i&&Bi.selected,n&&Bi.disabled),"aria-disabled":!!n||void 0,"aria-selected":!!i||void 0,role:"option",style:{transform:`translate(${d}px, ${p+92}px`},ownerState:l},s,{children:a}))},Li=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?12:23,c=t=>null!==i&&(e?12===t?12===i||0===i:i===t||i-12===t:i===t);for(let t=e?1:0;t<=l;t+=1){let i=t.toString();0===t&&(i="00");const l=!e&&(0===t||t>12);i=a.formatNumber(i);const u=c(t);s.push((0,Ne.jsx)(Zi,{id:u?o:void 0,index:t,inner:l,selected:u,disabled:r(t),label:i,"aria-label":n(i)},t))}return s},Di=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map((([e,a],i)=>{const s=e===t;return(0,Ne.jsx)(Zi,{label:a,id:s?o:void 0,index:i+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(a)},e)}))},ji=(0,wn.Z)((0,Ne.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Fi=(0,wn.Z)((0,Ne.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),zi=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],Ni=(0,Ie.ZP)("div")({display:"flex"}),Hi=(0,Ie.ZP)("div")((({theme:e})=>({width:e.spacing(3)}))),Vi=(0,Ie.ZP)(dt.Z)((({ownerState:e})=>Xo({},e.hidden&&{visibility:"hidden"}))),Wi=r.forwardRef((function(e,t){const{children:n,className:r,components:o={},componentsProps:a={},isLeftDisabled:i,isLeftHidden:s,isRightDisabled:l,isRightHidden:c,leftArrowButtonText:u,onLeftClick:d,onRightClick:p,rightArrowButtonText:m}=e,h=Jo(e,zi),f="rtl"===(0,ur.Z)().direction,g=a.leftArrowButton||{},b=o.LeftArrowIcon||ji,v=a.rightArrowButton||{},y=o.RightArrowIcon||Fi,w=e;return(0,Ne.jsxs)(Ni,Xo({ref:t,className:r,ownerState:w},h,{children:[(0,Ne.jsx)(Vi,Xo({as:o.LeftArrowButton,size:"small","aria-label":u,title:u,disabled:i,edge:"end",onClick:d},g,{className:g.className,ownerState:Xo({},w,g,{hidden:s}),children:f?(0,Ne.jsx)(y,{}):(0,Ne.jsx)(b,{})})),n?(0,Ne.jsx)(st.Z,{variant:"subtitle1",component:"span",children:n}):(0,Ne.jsx)(Hi,{ownerState:w}),(0,Ne.jsx)(Vi,Xo({as:o.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:l,onClick:p},v,{className:v.className,ownerState:Xo({},w,v,{hidden:c}),children:f?(0,Ne.jsx)(b,{}):(0,Ne.jsx)(y,{})}))]}))}));function Ui(e){return ma("MuiClockPicker",e)}ha("MuiClockPicker",["arrowSwitcher"]);const Yi=(0,Ie.ZP)(Wi,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Gi=(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,qi=e=>`${e} minutes`,Ki=e=>`${e} hours`,Xi=e=>`${e} seconds`,Ji=function(e){const t=(0,Be.Z)({props:e,name:"MuiClockPicker"}),{ampm:n=!1,ampmInClock:o=!1,autoFocus:a,components:i,componentsProps:s,date:l,disableIgnoringDatePartForTimeValidation:c=!1,getClockLabelText:u=Gi,getHoursClockNumberText:d=Ki,getMinutesClockNumberText:p=qi,getSecondsClockNumberText:m=Xi,leftArrowButtonText:h="open previous view",maxTime:f,minTime:g,minutesStep:b=1,nextViewAvailable:v,onChange:y,openNextView:w,openPreviousView:k,previousViewAvailable:C,rightArrowButtonText:x="open next view",shouldDisableTime:S,showViewSwitcher:E,view:P}=t,T=ia(),A=aa(),R=A.setSeconds(A.setMinutes(A.setHours(T,0),0),0),O=l||R,{meridiemMode:M,handleMeridiemChange:B}=Va(O,n,y),I=r.useCallback(((e,t)=>{if(null===l)return!1;const r=n=>{const r=Na(c,A);return Boolean(g&&r(g,n("end"))||f&&r(n("start"),f)||S&&S(e,t))};switch(t){case"hours":{const t=Fa(e,M,n);return r((e=>Da((e=>A.setHours(e,t)),(t=>A.setMinutes(t,"start"===e?0:59)),(t=>A.setSeconds(t,"start"===e?0:59)))(l)))}case"minutes":return r((t=>Da((t=>A.setMinutes(t,e)),(e=>A.setSeconds(e,"start"===t?0:59)))(l)));case"seconds":return r((()=>A.setSeconds(l,e)));default:throw new Error("not supported")}}),[n,l,c,f,M,g,S,A]),Z=function(e){if(void 0!==ci){const t=ci();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),o=e||t;return r.useEffect((()=>{null==t&&(li+=1,n(`mui-${li}`))}),[t]),o}(e)}(),L=r.useMemo((()=>{switch(P){case"hours":{const e=(e,t)=>{const r=Fa(e,M,n);y(A.setHours(O,r),t)};return{onChange:e,value:A.getHours(O),children:Li({date:l,utils:A,ampm:n,onChange:e,getClockNumberText:d,isDisabled:e=>I(e,"hours"),selectedId:Z})}}case"minutes":{const e=A.getMinutes(O),t=(e,t)=>{y(A.setMinutes(O,e),t)};return{value:e,onChange:t,children:Di({utils:A,value:e,onChange:t,getClockNumberText:p,isDisabled:e=>I(e,"minutes"),selectedId:Z})}}case"seconds":{const e=A.getSeconds(O),t=(e,t)=>{y(A.setSeconds(O,e),t)};return{value:e,onChange:t,children:Di({utils:A,value:e,onChange:t,getClockNumberText:m,isDisabled:e=>I(e,"seconds"),selectedId:Z})}}default:throw new Error("You must provide the type for ClockView")}}),[P,A,l,n,d,p,m,M,y,O,I,Z]),D=t,j=(e=>{const{classes:t}=e;return fa({arrowSwitcher:["arrowSwitcher"]},Ui,t)})(D);return(0,Ne.jsxs)(r.Fragment,{children:[E&&(0,Ne.jsx)(Yi,{className:j.arrowSwitcher,leftArrowButtonText:h,rightArrowButtonText:x,components:i,componentsProps:s,onLeftClick:k,onRightClick:w,isLeftDisabled:C,isRightDisabled:v,ownerState:D}),(0,Ne.jsx)(Oi,Xo({autoFocus:a,date:l,ampmInClock:o,type:P,ampm:n,getClockLabelText:u,minutesStep:b,isTimeDisabled:I,meridiemMode:M,handleMeridiemChange:B,selectedId:Z},L))]})},Qi=["disabled","onSelect","selected","value"],_i=ha("PrivatePickersMonth",["root","selected"]),$i=(0,Ie.ZP)(st.Z)((({theme:e})=>Xo({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,mt.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${_i.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}}))),es=e=>{const{disabled:t,onSelect:n,selected:r,value:o}=e,a=Jo(e,Qi),i=()=>{n(o)};return(0,Ne.jsx)($i,Xo({component:"button",className:(0,Se.Z)(_i.root,r&&_i.selected),tabIndex:t?-1:0,onClick:i,onKeyDown:La(i),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t},a))},ts=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","onMonthChange","readOnly"];function ns(e){return ma("MuiMonthPicker",e)}ha("MuiMonthPicker",["root"]);const rs=(0,Ie.ZP)("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),os=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiMonthPicker"}),{className:r,date:o,disabled:a,disableFuture:i,disablePast:s,maxDate:l,minDate:c,onChange:u,onMonthChange:d,readOnly:p}=n,m=Jo(n,ts),h=n,f=(e=>{const{classes:t}=e;return fa({root:["root"]},ns,t)})(h),g=aa(),b=ia(),v=g.getMonth(o||b),y=e=>{const t=g.startOfMonth(s&&g.isAfter(b,c)?b:c),n=g.startOfMonth(i&&g.isBefore(b,l)?b:l),r=g.isBefore(e,t),o=g.isAfter(e,n);return r||o},w=e=>{if(p)return;const t=g.setMonth(o||b,e);u(t,"finish"),d&&d(t)};return(0,Ne.jsx)(rs,Xo({ref:t,className:(0,Se.Z)(f.root,r),ownerState:h},m,{children:g.getMonthArray(o||b).map((e=>{const t=g.getMonth(e),n=g.format(e,"monthShort");return(0,Ne.jsx)(es,{value:t,selected:t===v,onSelect:w,disabled:a||y(e),children:n},n)}))}))})),as=os,is=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,shouldDisableDate:a,utils:i})=>{const s=i.startOfDay(i.date());n&&i.isBefore(o,s)&&(o=s),t&&i.isAfter(r,s)&&(r=s);let l=e,c=e;for(i.isBefore(e,o)&&(l=i.date(o),c=null),i.isAfter(e,r)&&(c&&(c=i.date(r)),l=null);l||c;){if(l&&i.isAfter(l,r)&&(l=null),c&&i.isBefore(c,o)&&(c=null),l){if(!a(l))return l;l=i.addDays(l,1)}if(c){if(!a(c))return c;c=i.addDays(c,-1)}}return s};function ss(e,t){const n=e.date(t);return e.isValid(n)?n:null}function ls({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:i,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u}){var d;const p=ia(),m=aa(),h=r.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return Xo({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Xo({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!==r.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=Boolean(o.focusedDay)&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return Xo({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(c),a,m)).current,[f,g]=r.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||p,currentMonth:m.startOfMonth(null!=(d=null!=e?e:t)?d:p),slideDirection:"left"}),b=r.useCallback((e=>{g(Xo({type:"changeMonth"},e)),l&&l(e.newMonth)}),[l]),v=r.useCallback((e=>{const t=null!=e?e:p;m.isSameMonth(t,f.currentMonth)||b({newMonth:m.startOfMonth(t),direction:m.isAfterDay(t,f.currentMonth)?"left":"right"})}),[f.currentMonth,b,p,m]),y=r.useCallback((e=>null!==((e,t,{disablePast:n,disableFuture:r,minDate:o,maxDate:a,shouldDisableDate:i})=>{const s=e.date(),l=e.date(t);if(null===l)return null;switch(!0){case!e.isValid(t):return"invalidDate";case Boolean(i&&i(l)):return"shouldDisableDate";case Boolean(r&&e.isAfterDay(l,s)):return"disableFuture";case Boolean(n&&e.isBeforeDay(l,s)):return"disablePast";case Boolean(o&&e.isBeforeDay(l,o)):return"minDate";case Boolean(a&&e.isAfterDay(l,a)):return"maxDate";default:return null}})(m,e,{disablePast:o,disableFuture:n,minDate:s,maxDate:i,shouldDisableDate:u})),[n,o,i,s,u,m]),w=r.useCallback((()=>{g({type:"finishMonthSwitchingAnimation"})}),[]),k=r.useCallback((e=>{y(e)||g({type:"changeFocusedDay",focusedDay:e})}),[y]);return{calendarState:f,changeMonth:v,changeFocusedDay:k,isDateDisabled:y,onMonthSwitchingAnimationEnd:w,handleChangeMonth:b}}var cs=n(4537);const us=ha("PrivatePickersFadeTransitionGroup",["root"]),ds=(0,Ie.ZP)(cs.Z)({display:"block",position:"relative"}),ps=({children:e,className:t,reduceAnimations:n,transKey:r})=>n?e:(0,Ne.jsx)(ds,{className:(0,Se.Z)(us.root,t),children:(0,Ne.jsx)(Re.Z,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:e},r)}),ms=["allowSameDateSelection","autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDayFocus","onDaySelect","onFocus","onKeyDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"];function hs(e){return ma("MuiPickersDay",e)}const fs=ha("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),gs=({theme:e,ownerState:t})=>Xo({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:(0,mt.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:(0,mt.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${fs.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${fs.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${fs.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:"0 2px"},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${fs.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),bs=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},vs=(0,Ie.ZP)(go.Z,{name:"MuiPickersDay",slot:"Root",overridesResolver:bs})(gs),ys=(0,Ie.ZP)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:bs})((({theme:e,ownerState:t})=>Xo({},gs({theme:e,ownerState:t}),{visibility:"hidden"}))),ws=()=>{},ks=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiPickersDay"}),{allowSameDateSelection:o=!1,autoFocus:a=!1,className:i,day:s,disabled:l=!1,disableHighlightToday:c=!1,disableMargin:u=!1,isAnimating:d,onClick:p,onDayFocus:m=ws,onDaySelect:h,onFocus:f,onKeyDown:g,outsideCurrentMonth:b,selected:v=!1,showDaysOutsideCurrentMonth:y=!1,children:w,today:k=!1}=n,C=Jo(n,ms),x=Xo({},n,{allowSameDateSelection:o,autoFocus:a,disabled:l,disableHighlightToday:c,disableMargin:u,selected:v,showDaysOutsideCurrentMonth:y,today:k}),S=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:i,classes:s}=e;return fa({root:["root",t&&"selected",!n&&"dayWithMargin",!r&&o&&"today",a&&i&&"dayOutsideMonth"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},hs,s)})(x),E=aa(),P=r.useRef(null),T=(0,Mt.Z)(P,t);ui((()=>{!a||l||d||b||P.current.focus()}),[a,l,d,b]);const A=(0,ur.Z)();return b&&!y?(0,Ne.jsx)(ys,{className:(0,Se.Z)(S.root,S.hiddenDaySpacingFiller,i),ownerState:x}):(0,Ne.jsx)(vs,Xo({className:(0,Se.Z)(S.root,i),ownerState:x,ref:T,centerRipple:!0,disabled:l,"aria-label":w?void 0:E.format(s,"fullDate"),tabIndex:v?0:-1,onFocus:e=>{m&&m(s),f&&f(e)},onKeyDown:function(e){switch(void 0!==g&&g(e),e.key){case"ArrowUp":m(E.addDays(s,-7)),e.preventDefault();break;case"ArrowDown":m(E.addDays(s,7)),e.preventDefault();break;case"ArrowLeft":m(E.addDays(s,"ltr"===A.direction?-1:1)),e.preventDefault();break;case"ArrowRight":m(E.addDays(s,"ltr"===A.direction?1:-1)),e.preventDefault();break;case"Home":m(E.startOfWeek(s)),e.preventDefault();break;case"End":m(E.endOfWeek(s)),e.preventDefault();break;case"PageUp":m(E.getNextMonth(s)),e.preventDefault();break;case"PageDown":m(E.getPreviousMonth(s)),e.preventDefault()}},onClick:e=>{!o&&v||(l||h(s,"finish"),p&&p(e))}},C,{children:w||E.format(s,"dayOfMonth")}))})),Cs=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onDayFocus===t.onDayFocus&&e.onDaySelect===t.onDaySelect,xs=r.memo(ks,Cs);function Ss(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Es=n(2666),Ps=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ss(n.className,r):n.setAttribute("class",Ss(n.className&&n.className.baseVal||"",r)));var n,r}))},Ts=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o{const t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Os["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Os["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Os.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Os.slideExit}`]:{transform:"translate(0%)"},[`& .${Os["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Os["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}));var Bs;const Is=(0,Ie.ZP)("div")({display:"flex",justifyContent:"center",alignItems:"center"}),Zs=(0,Ie.ZP)(st.Z)((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary}))),Ls=(0,Ie.ZP)("div")({display:"flex",justifyContent:"center",alignItems:"center",minHeight:264}),Ds=(0,Ie.ZP)((e=>{let{children:t,className:n,reduceAnimations:o,slideDirection:a,transKey:i}=e,s=Jo(e,Rs);if(o)return(0,Ne.jsx)("div",{className:(0,Se.Z)(Os.root,n),children:t});const l={exit:Os.slideExit,enterActive:Os.slideEnterActive,enter:Os[`slideEnter-${a}`],exitActive:Os[`slideExitActiveLeft-${a}`]};return(0,Ne.jsx)(Ms,{className:(0,Se.Z)(Os.root,n),childFactory:e=>r.cloneElement(e,{classNames:l}),children:(0,Ne.jsx)(As,Xo({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:l},s,{children:t}),i)})}))({minHeight:264}),js=(0,Ie.ZP)("div")({overflow:"hidden"}),Fs=(0,Ie.ZP)("div")({margin:"2px 0",display:"flex",justifyContent:"center"}),zs=function(e){const{allowSameDateSelection:t,autoFocus:n,onFocusedDayChange:o,className:a,currentMonth:i,date:s,disabled:l,disableHighlightToday:c,focusedDay:u,isDateDisabled:d,isMonthSwitchingAnimating:p,loading:m,onChange:h,onMonthSwitchingAnimationEnd:f,readOnly:g,reduceAnimations:b,renderDay:v,renderLoading:y=(()=>Bs||(Bs=(0,Ne.jsx)("span",{children:"..."}))),showDaysOutsideCurrentMonth:w,slideDirection:k,TransitionProps:C}=e,x=ia(),S=aa(),E=r.useCallback(((e,t="finish")=>{if(g)return;const n=Array.isArray(s)?e:S.mergeDateAndTime(e,s||x);h(n,t)}),[s,x,h,g,S]),P=S.getMonth(i),T=(Array.isArray(s)?s:[s]).filter(Boolean).map((e=>e&&S.startOfDay(e))),A=P,R=r.useMemo((()=>r.createRef()),[A]);return(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)(Is,{children:S.getWeekdays().map(((e,t)=>(0,Ne.jsx)(Zs,{"aria-hidden":!0,variant:"caption",children:e.charAt(0).toUpperCase()},e+t.toString())))}),m?(0,Ne.jsx)(Ls,{children:y()}):(0,Ne.jsx)(Ds,Xo({transKey:A,onExited:f,reduceAnimations:b,slideDirection:k,className:a},C,{nodeRef:R,children:(0,Ne.jsx)(js,{ref:R,role:"grid",children:S.getWeekArray(i).map((e=>(0,Ne.jsx)(Fs,{role:"row",children:e.map((e=>{const r={key:null==e?void 0:e.toString(),day:e,isAnimating:p,disabled:l||d(e),allowSameDateSelection:t,autoFocus:n&&null!==u&&S.isSameDay(e,u),today:S.isSameDay(e,x),outsideCurrentMonth:S.getMonth(e)!==P,selected:T.some((t=>t&&S.isSameDay(t,e))),disableHighlightToday:c,showDaysOutsideCurrentMonth:w,onDayFocus:o,onDaySelect:E};return v?v(e,T,r):(0,Ne.jsx)("div",{role:"cell",children:(0,Ne.jsx)(xs,Xo({},r))},r.key)}))},`week-${e[0]}`)))})}))]})},Ns=(0,wn.Z)((0,Ne.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Hs=(0,Ie.ZP)("div")({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Vs=(0,Ie.ZP)("div")((({theme:e})=>Xo({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),Ws=(0,Ie.ZP)("div")({marginRight:6}),Us=(0,Ie.ZP)(dt.Z)({marginRight:"auto"}),Ys=(0,Ie.ZP)(Ns)((({theme:e,ownerState:t})=>Xo({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},"year"===t.openView&&{transform:"rotate(180deg)"})));function Gs(e){return"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view"}const qs=function(e){const{components:t={},componentsProps:n={},currentMonth:o,disabled:a,disableFuture:i,disablePast:s,getViewSwitchingButtonText:l=Gs,leftArrowButtonText:c="Previous month",maxDate:u,minDate:d,onMonthChange:p,onViewChange:m,openView:h,reduceAnimations:f,rightArrowButtonText:g="Next month",views:b}=e,v=aa(),y=n.switchViewButton||{},w=function(e,{disableFuture:t,maxDate:n}){const o=aa();return r.useMemo((()=>{const r=o.date(),a=o.startOfMonth(t&&o.isBefore(r,n)?r:n);return!o.isAfter(a,e)}),[t,n,e,o])}(o,{disableFuture:i||a,maxDate:u}),k=function(e,{disablePast:t,minDate:n}){const o=aa();return r.useMemo((()=>{const r=o.date(),a=o.startOfMonth(t&&o.isAfter(r,n)?r:n);return!o.isBefore(a,e)}),[t,n,e,o])}(o,{disablePast:s||a,minDate:d});if(1===b.length&&"year"===b[0])return null;const C=e;return(0,Ne.jsxs)(Hs,{ownerState:C,children:[(0,Ne.jsxs)(Vs,{role:"presentation",onClick:()=>{if(1!==b.length&&m&&!a)if(2===b.length)m(b.find((e=>e!==h))||b[0]);else{const e=0!==b.indexOf(h)?0:1;m(b[e])}},ownerState:C,children:[(0,Ne.jsx)(ps,{reduceAnimations:f,transKey:v.format(o,"month"),children:(0,Ne.jsx)(Ws,{"aria-live":"polite",ownerState:C,children:v.format(o,"month")})}),(0,Ne.jsx)(ps,{reduceAnimations:f,transKey:v.format(o,"year"),children:(0,Ne.jsx)(Ws,{"aria-live":"polite",ownerState:C,children:v.format(o,"year")})}),b.length>1&&!a&&(0,Ne.jsx)(Us,Xo({size:"small",as:t.SwitchViewButton,"aria-label":l(h)},y,{children:(0,Ne.jsx)(Ys,{as:t.SwitchViewIcon,ownerState:C})}))]}),(0,Ne.jsx)(Re.Z,{in:"day"===h,children:(0,Ne.jsx)(Wi,{leftArrowButtonText:c,rightArrowButtonText:g,components:t,componentsProps:n,onLeftClick:()=>p(v.getPreviousMonth(o),"right"),onRightClick:()=>p(v.getNextMonth(o),"left"),isLeftDisabled:k,isRightDisabled:w})})]})};function Ks(e){return ma("PrivatePickersYear",e)}const Xs=ha("PrivatePickersYear",["root","modeMobile","modeDesktop","yearButton","disabled","selected"]),Js=(0,Ie.ZP)("div")((({ownerState:e})=>Xo({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==e?void 0:e.wrapperVariant)&&{flexBasis:"25%"}))),Qs=(0,Ie.ZP)("button")((({theme:e})=>Xo({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,mt.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Xs.disabled}`]:{color:e.palette.text.secondary},[`&.${Xs.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}}))),_s=r.forwardRef((function(e,t){const{autoFocus:n,className:o,children:a,disabled:i,onClick:s,onKeyDown:l,selected:c,value:u}=e,d=r.useRef(null),p=(0,Mt.Z)(d,t),m=Xo({},e,{wrapperVariant:r.useContext(Qa)}),h=(e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:o}=e;return fa({root:["root",t&&`mode${(0,Te.Z)(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]},Ks,o)})(m);return r.useEffect((()=>{n&&d.current.focus()}),[n]),(0,Ne.jsx)(Js,{className:(0,Se.Z)(h.root,o),ownerState:m,children:(0,Ne.jsx)(Qs,{ref:p,disabled:i,type:"button",tabIndex:c?0:-1,onClick:e=>s(e,u),onKeyDown:e=>l(e,u),className:h.yearButton,ownerState:m,children:a})})})),$s=_s;function el(e){return ma("MuiYearPicker",e)}ha("MuiYearPicker",["root"]);const tl=(0,Ie.ZP)("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",margin:"0 4px"}),nl=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiYearPicker"}),{autoFocus:o,className:a,date:i,disabled:s,disableFuture:l,disablePast:c,isDateDisabled:u,maxDate:d,minDate:p,onChange:m,onFocusedDayChange:h,onYearChange:f,readOnly:g,shouldDisableYear:b}=n,v=n,y=(e=>{const{classes:t}=e;return fa({root:["root"]},el,t)})(v),w=ia(),k=(0,ur.Z)(),C=aa(),x=i||w,S=C.getYear(x),E=r.useContext(Qa),P=r.useRef(null),[T,A]=r.useState(S),R=(e,t,n="finish")=>{if(g)return;const r=e=>{m(e,n),h&&h(e||w),f&&f(e)},o=C.setYear(x,t);u(o)?r(is({utils:C,date:o,minDate:p,maxDate:d,disablePast:Boolean(c),disableFuture:Boolean(l),shouldDisableDate:u})||w):r(o)},O=r.useCallback((e=>{u(C.setYear(x,e))||A(e)}),[x,u,C]),M="desktop"===E?4:3,B=(e,t)=>{switch(e.key){case"ArrowUp":O(t-M),e.preventDefault();break;case"ArrowDown":O(t+M),e.preventDefault();break;case"ArrowLeft":O(t+("ltr"===k.direction?-1:1)),e.preventDefault();break;case"ArrowRight":O(t+("ltr"===k.direction?1:-1)),e.preventDefault()}};return(0,Ne.jsx)(tl,{ref:t,className:(0,Se.Z)(y.root,a),ownerState:v,children:C.getYearRange(p,d).map((e=>{const t=C.getYear(e),n=t===S;return(0,Ne.jsx)($s,{selected:n,value:t,onClick:R,onKeyDown:B,autoFocus:o&&t===T,ref:n?P:void 0,disabled:s||c&&C.isBeforeYear(e,w)||l&&C.isAfterYear(e,w)||b&&b(e),children:C.format(e,"year")},C.format(e,"year"))}))})})),rl=nl,ol=(0,Ie.ZP)("div")({overflowX:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"});var al;const il=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","loading","maxDate","minDate","onChange","onMonthChange","reduceAnimations","renderLoading","shouldDisableDate","shouldDisableYear","view","views","openTo","className"];function sl(e){return ma("MuiCalendarPicker",e)}ha("MuiCalendarPicker",["root","viewTransitionContainer"]);const ll=(0,Ie.ZP)(ol,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),cl=(0,Ie.ZP)(ps,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({overflowY:"auto"}),ul="undefined"!=typeof navigator&&/(android)/i.test(navigator.userAgent),dl=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiCalendarPicker"}),{autoFocus:o,onViewChange:a,date:i,disableFuture:s=!1,disablePast:l=!1,defaultCalendarMonth:c,loading:u=!1,maxDate:d,minDate:p,onChange:m,onMonthChange:h,reduceAnimations:f=ul,renderLoading:g=(()=>al||(al=(0,Ne.jsx)("span",{children:"..."}))),shouldDisableDate:b,shouldDisableYear:v,view:y,views:w=["year","day"],openTo:k="day",className:C}=n,x=Jo(n,il),S=aa(),E=oa().defaultDates,P=null!=p?p:E.minDate,T=null!=d?d:E.maxDate,{openView:A,setOpenView:R}=si({view:y,views:w,openTo:k,onChange:m,onViewChange:a}),{calendarState:O,changeFocusedDay:M,changeMonth:B,isDateDisabled:I,handleChangeMonth:Z,onMonthSwitchingAnimationEnd:L}=ls({date:i,defaultCalendarMonth:c,reduceAnimations:f,onMonthChange:h,minDate:P,maxDate:T,shouldDisableDate:b,disablePast:l,disableFuture:s});r.useEffect((()=>{if(i&&I(i)){const e=is({utils:S,date:i,minDate:P,maxDate:T,disablePast:l,disableFuture:s,shouldDisableDate:I});m(e,"partial")}}),[]),r.useEffect((()=>{i&&B(i)}),[i]);const D=n,j=(e=>{const{classes:t}=e;return fa({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},sl,t)})(D),F={className:C,date:i,disabled:x.disabled,disablePast:l,disableFuture:s,onChange:m,minDate:P,maxDate:T,onMonthChange:h,readOnly:x.readOnly};return(0,Ne.jsxs)(ll,{ref:t,className:(0,Se.Z)(j.root,C),ownerState:D,children:[(0,Ne.jsx)(qs,Xo({},x,{views:w,openView:A,currentMonth:O.currentMonth,onViewChange:R,onMonthChange:(e,t)=>Z({newMonth:e,direction:t}),minDate:P,maxDate:T,disablePast:l,disableFuture:s,reduceAnimations:f})),(0,Ne.jsx)(cl,{reduceAnimations:f,className:j.viewTransitionContainer,transKey:A,ownerState:D,children:(0,Ne.jsxs)("div",{children:["year"===A&&(0,Ne.jsx)(rl,Xo({},x,{autoFocus:o,date:i,onChange:m,minDate:P,maxDate:T,disableFuture:s,disablePast:l,isDateDisabled:I,shouldDisableYear:v,onFocusedDayChange:M})),"month"===A&&(0,Ne.jsx)(as,Xo({},F)),"day"===A&&(0,Ne.jsx)(zs,Xo({},x,O,{autoFocus:o,onMonthSwitchingAnimationEnd:L,onFocusedDayChange:M,reduceAnimations:f,date:i,onChange:m,isDateDisabled:I,loading:u,renderLoading:g}))]})})]})})),pl=dl;function ml({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:o,inputFormat:a,inputProps:i,label:s,mask:l,onChange:c,rawValue:u,readOnly:d,rifmFormatter:p,TextFieldProps:m,validationError:h}){const f=aa(),[g,b]=r.useState(!1),v=f.getFormatHelperText(a),y=r.useMemo((()=>!(!l||n)&&function(e,t,n,r){const o=r.formatByString(r.date("2019-01-01T09:00:00.000"),t).replace(n,"_"),a=r.formatByString(r.date("2019-11-21T22:30:00.000"),t).replace(n,"_")===e&&o===e;return!a&&r.lib,a}(l,a,e,f)),[e,n,a,l,f]),w=r.useMemo((()=>y&&l?((e,t)=>n=>n.split("").map(((r,o)=>{if(t.lastIndex=0,o>e.length-1)return"";const a=e[o],i=e[o+1],s=t.test(r)?r:"",l="_"===a?s:a+s;return o===n.length-1&&i&&"_"!==i?l?l+i:"":l})).join(""))(l,e):e=>e),[e,l,y]),k=na(f,u,a),[C,x]=r.useState(k),S=r.useRef(k);r.useEffect((()=>{S.current=k}),[k]);const E=!g,P=S.current!==k;E&&P&&(null===u||f.isValid(u))&&k!==C&&x(k);const T=e=>{const t=""===e||e===l?"":e;x(t);const n=null===t?null:f.parse(t,a);o&&!f.isValid(n)||c(n,t||void 0)},A=(e=>{const[,t]=(0,r.useReducer)((e=>e+1),0),n=(0,r.useRef)(null),{replace:o,append:a}=e,i=o?o(e.format(e.value)):e.format(e.value),s=(0,r.useRef)(!1);return(0,r.useLayoutEffect)((()=>{if(null==n.current)return;let[r,s,l,c,u]=n.current;n.current=null;const d=c&&u,p=r.slice(s.selectionStart).search(e.accept||/\d/g),m=-1!==p?p:0,h=t=>(t.match(e.accept||/\d/g)||[]).join(""),f=h(r.substr(0,s.selectionStart)),g=e=>{let t=0,n=0;for(let r=0;r!==f.length;++r){let o=e.indexOf(f[r],t)+1,a=h(e).indexOf(f[r],n)+1;a-n>1&&(o=t,a=n),n=Math.max(a,n),t=Math.max(t,o)}return t};if(!0===e.mask&&l&&!u){let e=g(r);const t=h(r.substr(e))[0];e=r.indexOf(t,e),r=`${r.substr(0,e)}${r.substr(e+1)}`}let b=e.format(r);null==a||s.selectionStart!==r.length||u||(l?b=a(b):""===h(b.slice(-1))&&(b=b.slice(0,-1)));const v=o?o(b):b;return i===v?t():e.onChange(v),()=>{let t=g(b);if(null!=e.mask&&(l||c&&!d))for(;b[t]&&""===h(b[t]);)t+=1;s.selectionStart=s.selectionEnd=t+(d?1+m:0)}})),(0,r.useEffect)((()=>{const e=e=>{"Delete"===e.code&&(s.current=!0)},t=e=>{"Delete"===e.code&&(s.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),{value:null!=n.current?n.current[0]:i,onChange:r=>{const o=r.target.value;n.current=[o,r.target,o.length>i.length,s.current,i===e.format(o)],t()}}})({value:C,onChange:T,format:p||w});return Xo({label:s,disabled:t,error:h,inputProps:Xo({},y?A:{value:C,onChange:e=>{T(e.currentTarget.value)}},{disabled:t,placeholder:v,readOnly:d,type:y?"tel":"text"},i,{onFocus:ja((()=>{b(!0)}),null==i?void 0:i.onFocus),onBlur:ja((()=>{b(!1)}),null==i?void 0:i.onBlur)})},m)}const hl=["components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],fl=r.forwardRef((function(e,t){const{components:n={},disableOpenPicker:r,getOpenDialogAriaText:o=ta,InputAdornmentProps:a,InputProps:i,inputRef:s,openPicker:l,OpenPickerButtonProps:c,renderInput:u}=e,d=Jo(e,hl),p=aa(),m=ml(d),h=(null==a?void 0:a.position)||"end",f=n.OpenPickerIcon||Sa;return u(Xo({ref:t,inputRef:s},m,{InputProps:Xo({},i,{[`${h}Adornment`]:r?void 0:(0,Ne.jsx)(Qr,Xo({position:h},a,{children:(0,Ne.jsx)(dt.Z,Xo({edge:h,disabled:d.disabled||d.readOnly,"aria-label":o(d.rawValue,p)},c,{onClick:l,children:(0,Ne.jsx)(f,{})}))}))})}))}));function gl(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const bl=["autoFocus","className","date","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],vl=(0,Ie.ZP)("div")({padding:"16px 24px"}),yl=(0,Ie.ZP)("div")((({ownerState:e})=>Xo({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"}))),wl={fullWidth:!0},kl=e=>"year"===e||"month"===e||"day"===e,Cl=function(e){const{autoFocus:t,date:n,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:i,onViewChange:s,openTo:l,orientation:c,showToolbar:u,toggleMobileKeyboardView:d,ToolbarComponent:p=(()=>null),toolbarFormat:m,toolbarPlaceholder:h,toolbarTitle:f,views:g}=e,b=Jo(e,bl),v=function(e,t){const[n,o]=r.useState(gl);return ui((()=>{const e=()=>{o(gl())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!Za(e,["hours","minutes","seconds"])&&"landscape"===(t||n)}(g,c),y=r.useContext(Qa),w=void 0===u?"desktop"!==y:u,k=r.useCallback(((e,t)=>{i(e,y,t)}),[i,y]),C=r.useCallback((e=>{a&&d(),s&&s(e)}),[a,s,d]),{openView:x,nextView:S,previousView:E,setOpenView:P,handleChangeAndOpenNext:T}=si({view:void 0,views:g,openTo:l,onChange:k,onViewChange:C});return(0,Ne.jsxs)(yl,{ownerState:{isLandscape:v},children:[w&&(0,Ne.jsx)(p,Xo({},b,{views:g,isLandscape:v,date:n,onChange:k,setOpenView:P,openView:x,toolbarTitle:f,toolbarFormat:m,toolbarPlaceholder:h,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:d})),(0,Ne.jsx)(ol,{children:a?(0,Ne.jsx)(vl,{children:(0,Ne.jsx)(fl,Xo({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:wl}))}):(0,Ne.jsxs)(r.Fragment,{children:[kl(x)&&(0,Ne.jsx)(pl,Xo({autoFocus:t,date:n,onViewChange:P,onChange:T,view:x,views:g.filter(kl)},b)),(A=x,("hours"===A||"minutes"===A||"seconds"===A)&&(0,Ne.jsx)(Ji,Xo({},b,{autoFocus:t,date:n,view:x,onChange:T,openNextView:()=>P(S),openPreviousView:()=>P(E),nextViewAvailable:!S,previousViewAvailable:!E||kl(E),showViewSwitcher:"desktop"===y})))]})})]});var A};function xl(e,t){return e===t}function Sl(e){return function(e,t,n=xl){const{value:o,onError:a}=e,i=aa(),s=r.useRef(null),l=t(i,o,e);return r.useEffect((()=>{a&&!n(l,s.current)&&a(l,o),s.current=l}),[n,a,s,l,o]),l}(e,Ha,xl)}function El(e,t){const{disableCloseOnSelect:n,onAccept:o,onChange:a,value:i}=e,s=aa(),{isOpen:l,setIsOpen:c}=function({open:e,onOpen:t,onClose:n}){const o=r.useRef("boolean"==typeof e).current,[a,i]=r.useState(!1);return r.useEffect((()=>{if(o){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}}),[o,e]),{isOpen:a,setIsOpen:r.useCallback((e=>{o||i(e),e&&t&&t(),!e&&n&&n()}),[o,t,n])}}(e);function u(e){return{committed:e,draft:e}}const d=t.parseInput(s,i),[p,m]=r.useReducer(((e,t)=>{switch(t.type){case"reset":return u(t.payload);case"update":return Xo({},e,{draft:t.payload});default:return e}}),d,u);t.areValuesEqual(s,p.committed,d)||m({type:"reset",payload:d});const[h,f]=r.useState(p.committed),[g,b]=r.useState(!1),v=r.useCallback(((e,t)=>{a(e),t&&(c(!1),f(e),o&&o(e))}),[o,a,c]),y=r.useMemo((()=>({open:l,onClear:()=>v(t.emptyValue,!0),onAccept:()=>v(p.draft,!0),onDismiss:()=>v(h,!0),onSetToday:()=>{const e=s.date();m({type:"update",payload:e}),v(e,!n)}})),[v,n,l,s,p.draft,t.emptyValue,h]),w={pickerProps:r.useMemo((()=>({date:p.draft,isMobileKeyboardViewOpen:g,toggleMobileKeyboardView:()=>b(!g),onDateChange:(e,t,r="partial")=>{m({type:"update",payload:e}),"partial"===r&&v(e,!1),"finish"===r&&v(e,!(null!=n?n:"mobile"===t))}})),[v,n,g,p.draft]),inputProps:r.useMemo((()=>({onChange:a,open:l,rawValue:i,openPicker:()=>c(!0)})),[a,l,i,c]),wrapperProps:y};return r.useDebugValue(w,(()=>({MuiPickerState:{pickerDraft:p,other:w}}))),w}const Pl=["onChange","PopperProps","ToolbarComponent","TransitionComponent","value"],Tl={emptyValue:null,parseInput:ss,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},Al=r.forwardRef((function(e,t){const n=ca(e,"MuiDesktopTimePicker"),r=null!==Sl(n),{pickerProps:o,inputProps:a,wrapperProps:i}=El(n,Tl),{PopperProps:s,ToolbarComponent:l=Ja,TransitionComponent:c}=n,u=Jo(n,Pl),d=Xo({},a,u,{ref:t,validationError:r});return(0,Ne.jsx)(ii,Xo({},i,{DateInputProps:d,KeyboardDateInputComponent:fl,PopperProps:s,TransitionComponent:c,children:(0,Ne.jsx)(Cl,Xo({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:l,DateInputProps:d},u))}))})),Rl=(0,Ie.ZP)(Ke)({[`& .${je.container}`]:{outline:0},[`& .${je.paper}`]:{outline:0,minWidth:320}}),Ol=(0,Ie.ZP)(At)({"&:first-of-type":{padding:0}}),Ml=(0,Ie.ZP)(Wt)((({ownerState:e})=>Xo({},(e.clearable||e.showTodayButton)&&{justifyContent:"flex-start","& > *:first-of-type":{marginRight:"auto"}}))),Bl=e=>{const{cancelText:t="Cancel",children:n,clearable:r=!1,clearText:o="Clear",DialogProps:a={},okText:i="OK",onAccept:s,onClear:l,onDismiss:c,onSetToday:u,open:d,showTodayButton:p=!1,todayText:m="Today"}=e,h=e;return(0,Ne.jsxs)(Rl,Xo({open:d,onClose:c},a,{children:[(0,Ne.jsx)(Ol,{children:n}),(0,Ne.jsxs)(Ml,{ownerState:h,children:[r&&(0,Ne.jsx)(pt.Z,{onClick:l,children:o}),p&&(0,Ne.jsx)(pt.Z,{onClick:u,children:m}),t&&(0,Ne.jsx)(pt.Z,{onClick:c,children:t}),i&&(0,Ne.jsx)(pt.Z,{onClick:s,children:i})]})]}))},Il=["cancelText","children","clearable","clearText","DateInputProps","DialogProps","okText","onAccept","onClear","onDismiss","onSetToday","open","PureDateInputComponent","showTodayButton","todayText"],Zl=function(e){const{cancelText:t,children:n,clearable:r,clearText:o,DateInputProps:a,DialogProps:i,okText:s,onAccept:l,onClear:c,onDismiss:u,onSetToday:d,open:p,PureDateInputComponent:m,showTodayButton:h,todayText:f}=e,g=Jo(e,Il);return(0,Ne.jsxs)(Qa.Provider,{value:"mobile",children:[(0,Ne.jsx)(m,Xo({},g,a)),(0,Ne.jsx)(Bl,{cancelText:t,clearable:r,clearText:o,DialogProps:i,okText:s,onAccept:l,onClear:c,onDismiss:u,onSetToday:d,open:p,showTodayButton:h,todayText:f,children:n})]})},Ll=r.forwardRef((function(e,t){const{disabled:n,getOpenDialogAriaText:o=ta,inputFormat:a,InputProps:i,inputRef:s,label:l,openPicker:c,rawValue:u,renderInput:d,TextFieldProps:p={},validationError:m}=e,h=aa(),f=r.useMemo((()=>Xo({},i,{readOnly:!0})),[i]),g=na(h,u,a);return d(Xo({label:l,disabled:n,ref:t,inputRef:s,error:m,InputProps:f,inputProps:Xo({disabled:n,readOnly:!0,"aria-readonly":!0,"aria-label":o(u,h),value:g},!e.readOnly&&{onClick:c},{onKeyDown:La(c)})},p))}));Ll.propTypes={getOpenDialogAriaText:S().func,renderInput:S().func.isRequired};const Dl=["ToolbarComponent","value","onChange"],jl={emptyValue:null,parseInput:ss,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},Fl=r.forwardRef((function(e,t){const n=ca(e,"MuiMobileTimePicker"),r=null!==Sl(n),{pickerProps:o,inputProps:a,wrapperProps:i}=El(n,jl),{ToolbarComponent:s=Ja}=n,l=Jo(n,Dl),c=Xo({},a,l,{ref:t,validationError:r});return(0,Ne.jsx)(Zl,Xo({},l,i,{DateInputProps:c,PureDateInputComponent:Ll,children:(0,Ne.jsx)(Cl,Xo({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:s,DateInputProps:c},l))}))})),zl=["cancelText","clearable","clearText","desktopModeMediaQuery","DialogProps","okText","PopperProps","showTodayButton","todayText","TransitionComponent"],Nl=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiTimePicker"}),{cancelText:o,clearable:a,clearText:i,desktopModeMediaQuery:s="@media (pointer: fine)",DialogProps:l,okText:c,PopperProps:u,showTodayButton:d,todayText:p,TransitionComponent:m}=n,h=Jo(n,zl),f=function(e,t={}){const n=(0,Qo.Z)(),o="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:a=!1,matchMedia:i=(o?window.matchMedia:null),noSsr:s=!1,ssrMatchMedia:l=null}=(0,_o.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let c="function"==typeof e?e(n):e;c=c.replace(/^@media( ?)/m,"");const[u,d]=r.useState((()=>s&&o?i(c).matches:l?l(c).matches:a));return(0,$o.Z)((()=>{let e=!0;if(!o)return;const t=i(c),n=()=>{e&&d(t.matches)};return n(),t.addListener(n),()=>{e=!1,t.removeListener(n)}}),[c,i,o]),u}(s);return f?(0,Ne.jsx)(Al,Xo({ref:t,PopperProps:u,TransitionComponent:m},h)):(0,Ne.jsx)(Fl,Xo({ref:t,cancelText:o,clearable:a,clearText:i,DialogProps:l,okText:c,showTodayButton:d,todayText:p},h))})),Hl=Nl;function Vl(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Wl(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Ul(e){Wl(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Yl(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function Gl(e,t){Wl(2,arguments);var n=Ul(e).getTime(),r=Vl(t);return new Date(n+r)}var ql=36e5;function Kl(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var i=a.getDate();return o>=i?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function Xl(e,t){Wl(2,arguments);var n=Vl(t);return Kl(e,12*n)}function Jl(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getFullYear()-r.getFullYear()}function Ql(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function _l(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t),o=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return 12*o+a}function $l(e){Wl(1,arguments);var t=Ul(e);return t.setHours(23,59,59,999),t}function ec(e){Wl(1,arguments);var t=Ul(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function tc(e){Wl(1,arguments);var t=Ul(e);return $l(t).getTime()===ec(t).getTime()}function nc(e,t){Wl(2,arguments);var n,r=Ul(e),o=Ul(t),a=Ql(r,o),i=Math.abs(_l(r,o));if(i<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*i);var s=Ql(r,o)===-a;tc(Ul(e))&&1===i&&1===Ql(e,o)&&(s=!1),n=a*(i-Number(s))}return 0===n?0:n}var rc={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function oc(e){return e?rc[e]:rc.trunc}function ac(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ic(e){Wl(1,arguments);var t=Ul(e);return t.setHours(0,0,0,0),t}var sc=864e5;function lc(e,t){Wl(2,arguments);var n=ic(e),r=ic(t),o=n.getTime()-ac(n),a=r.getTime()-ac(r);return Math.round((o-a)/sc)}function cc(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function uc(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t),o=cc(n,r),a=Math.abs(lc(n,r));n.setDate(n.getDate()-o*a);var i=Number(cc(n,r)===-o),s=o*(a-i);return 0===s?0:s}Math.pow(10,8);var dc=6e4,pc=36e5;function mc(e,t){return Wl(2,arguments),Ul(e).getTime()-Ul(t).getTime()}function hc(e,t){Wl(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:Vl(o),i=null==n.weekStartsOn?a:Vl(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Ul(e),l=s.getDay(),c=6+(l0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const wc={date:yc({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:yc({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:yc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var kc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Cc(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=o.width?String(o.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const xc={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Cc({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Cc({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Cc({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Cc({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Cc({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Sc(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Pc(l,(function(e){return e.test(s)})):Ec(l,(function(e){return e.test(s)}));i=e.valueCallback?e.valueCallback(c):c,i=n.valueCallback?n.valueCallback(i):i;var u=t.slice(s.length);return{value:i,rest:u}}}function Ec(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Pc(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Tc.matchPattern);if(!n)return null;var r=n[0],o=e.match(Tc.parsePattern);if(!o)return null;var a=Tc.valueCallback?Tc.valueCallback(o[0]):o[0];a=t.valueCallback?t.valueCallback(a):a;var i=e.slice(r.length);return{value:a,rest:i}}),era:Sc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Sc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Sc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Sc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Sc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Rc={code:"en-US",formatDistance:function(e,t,n){var r,o=vc[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:wc,formatRelative:function(e,t,n,r){return kc[e]},localize:xc,match:Ac,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Oc(e,t){Wl(2,arguments);var n=Vl(t);return Gl(e,-n)}var Mc=864e5;function Bc(e){Wl(1,arguments);var t=1,n=Ul(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Zc(e){Wl(1,arguments);var t=Ic(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Bc(n);return r}var Lc=6048e5;function Dc(e){Wl(1,arguments);var t=Ul(e),n=Bc(t).getTime()-Zc(t).getTime();return Math.round(n/Lc)+1}function jc(e,t){Wl(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:Vl(o),i=null==n.weekStartsOn?a:Vl(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Ul(e),l=s.getUTCDay(),c=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,l),c.setUTCHours(0,0,0,0);var u=jc(c,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var p=jc(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function zc(e,t){Wl(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:Vl(o),i=null==n.firstWeekContainsDate?a:Vl(n.firstWeekContainsDate),s=Fc(e,t),l=new Date(0);l.setUTCFullYear(s,0,i),l.setUTCHours(0,0,0,0);var c=jc(l,t);return c}var Nc=6048e5;function Hc(e,t){Wl(1,arguments);var n=Ul(e),r=jc(n,t).getTime()-zc(n,t).getTime();return Math.round(r/Nc)+1}function Vc(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return Vc("yy"===t?r%100:r,t.length)},Uc=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Vc(n+1,2)},Yc=function(e,t){return Vc(e.getUTCDate(),t.length)},Gc=function(e,t){return Vc(e.getUTCHours()%12||12,t.length)},qc=function(e,t){return Vc(e.getUTCHours(),t.length)},Kc=function(e,t){return Vc(e.getUTCMinutes(),t.length)},Xc=function(e,t){return Vc(e.getUTCSeconds(),t.length)},Jc=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Vc(Math.floor(r*Math.pow(10,n-3)),t.length)};function Qc(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+Vc(a,2)}function _c(e,t){return e%60==0?(e>0?"-":"+")+Vc(Math.abs(e)/60,2):$c(e,t)}function $c(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+Vc(Math.floor(o/60),2)+n+Vc(o%60,2)}const eu={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Wc(e,t)},Y:function(e,t,n,r){var o=Fc(e,r),a=o>0?o:1-o;return"YY"===t?Vc(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Vc(a,t.length)},R:function(e,t){return Vc(Ic(e),t.length)},u:function(e,t){return Vc(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Vc(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Vc(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Uc(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Vc(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Hc(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Vc(o,t.length)},I:function(e,t,n){var r=Dc(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Vc(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Yc(e,t)},D:function(e,t,n){var r=function(e){Wl(1,arguments);var t=Ul(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Mc)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Vc(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Vc(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Vc(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Vc(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Gc(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):qc(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Vc(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Vc(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Kc(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Xc(e,t)},S:function(e,t){return Jc(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return _c(o);case"XXXX":case"XX":return $c(o);default:return $c(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _c(o);case"xxxx":case"xx":return $c(o);default:return $c(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qc(o,":");default:return"GMT"+$c(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qc(o,":");default:return"GMT"+$c(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return Vc(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return Vc((r._originalDate||e).getTime(),t.length)}};function tu(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function nu(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}const ru={p:nu,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return tu(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",tu(o,t)).replace("{{time}}",nu(a,t))}};var ou=["D","DD"],au=["YY","YYYY"];function iu(e){return-1!==ou.indexOf(e)}function su(e){return-1!==au.indexOf(e)}function lu(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var cu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,du=/^'([^]*?)'?$/,pu=/''/g,mu=/[a-zA-Z]/;function hu(e){return e.match(du)[1].replace(pu,"'")}function fu(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getTime()>r.getTime()}function gu(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getTime()=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Ul(e),c=Vl(t),u=l.getUTCDay(),d=c%7,p=(d+7)%7,m=(p0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}var Qu=[31,28,31,30,31,30,31,31,30,31,30,31],_u=[31,29,31,30,31,30,31,31,30,31,30,31];function $u(e){return e%400==0||e%4==0&&e%100!=0}var ed={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return qu(4,e,o);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return qu(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var a=Ju(n.year,o);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return qu(4,e,o);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return qu(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=Fc(e,r);if(n.isTwoDigitYear){var a=Ju(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),jc(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),jc(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Ku("R"===t?4:t.length,e)},set:function(e,t,n,r){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),Bc(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Ku("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return qu(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return qu(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"M":return Uu(wu,e,o);case"MM":return qu(2,e,o);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"L":return Uu(wu,e,o);case"LL":return qu(2,e,o);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return Uu(xu,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return jc(function(e,t,n){Wl(2,arguments);var r=Ul(e),o=Vl(t),a=Hc(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return Uu(xu,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Bc(function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t),o=Dc(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return Uu(ku,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return qu(t.length,e)}},validate:function(e,t,n){var r=$u(e.getUTCFullYear()),o=e.getUTCMonth();return r?t>=1&&t<=_u[o]:t>=1&&t<=Qu[o]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return Uu(Cu,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return qu(t.length,e)}},validate:function(e,t,n){return $u(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=yu(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return qu(t.length,e,o);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=yu(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return qu(t.length,e,o);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=yu(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return qu(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:o})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){Wl(2,arguments);var n=Vl(t);n%7==0&&(n-=7);var r=1,o=Ul(e),a=o.getUTCDay(),i=((n%7+7)%7=1&&t<=12},set:function(e,t,n,r){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return Uu(Su,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return Uu(Pu,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return Uu(Eu,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return Uu(Au,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return Uu(Ru,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return qu(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return Yu(zu,e);case"XX":return Yu(Nu,e);case"XXXX":return Yu(Hu,e);case"XXXXX":return Yu(Wu,e);default:return Yu(Vu,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return Yu(zu,e);case"xx":return Yu(Nu,e);case"xxxx":return Yu(Hu,e);case"xxxxx":return Yu(Wu,e);default:return Yu(Vu,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return Gu(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return Gu(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const td=ed;var nd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,od=/^'([^]*?)'?$/,ad=/''/g,id=/\S/,sd=/[a-zA-Z]/;function ld(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function cd(e){return e.match(od)[1].replace(ad,"'")}function ud(e){Wl(1,arguments);var t=Ul(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function dd(e){Wl(1,arguments);var t=Ul(e),n=t.getDay();return n}function pd(e){Wl(1,arguments);var t=Ul(e);return t.setDate(1),t.setHours(0,0,0,0),t}function md(e,t){Wl(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:Vl(o),i=null==n.weekStartsOn?a:Vl(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Ul(e),l=s.getDay(),c=(l2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],fd.timeZoneDelimiter.test(n.date)&&(n.date=e.split(fd.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=fd.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function wd(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function kd(e,t){if(null===t)return new Date(NaN);var n=e.match(gd);if(!n)return new Date(NaN);var r=!!n[4],o=Cd(n[1]),a=Cd(n[2])-1,i=Cd(n[3]),s=Cd(n[4]),l=Cd(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Pd[t]||(Td(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Td(e)?366:365)}(t,o)?(c.setUTCFullYear(t,a,Math.max(o,i)),c):new Date(NaN)}function Cd(e){return e?parseInt(e):1}function xd(e){var t=e.match(bd);if(!t)return NaN;var n=Sd(t[1]),r=Sd(t[2]),o=Sd(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*pc+r*dc+1e3*o:NaN}function Sd(e){return e&&parseFloat(e.replace(",","."))||0}function Ed(e){if("Z"===e)return 0;var t=e.match(vd);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*pc+o*dc):NaN}var Pd=[31,null,31,30,31,30,31,31,30,31,30,31];function Td(e){return e%400==0||e%4==0&&e%100!=0}var Ad=n(5209),Rd=n.n(Ad),Od={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},Md=function(e){var t=this,n=void 0===e?{}:e,r=n.locale,o=n.formats;this.lib="date-fns",this.is12HourCycleInCurrentLocale=function(){return!t.locale||/a/.test(t.locale.formatLong.time())},this.getFormatHelperText=function(e){var n=t.locale||Rc;return e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Rd()[t])(e,n.formatLong,{}):e})).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},this.parseISO=function(e){return function(e,t){Wl(1,arguments);var n=t||{},r=null==n.additionalDigits?2:Vl(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=yd(e);if(a.date){var i=wd(a.date,r);o=kd(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,l=o.getTime(),c=0;if(a.time&&(c=xd(a.time),isNaN(c)))return new Date(NaN);if(!a.timezone){var u=new Date(l+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=Ed(a.timezone),isNaN(s)?new Date(NaN):new Date(l+c+s)}(e)},this.toISO=function(e){return function(e,t){Wl(1,arguments);var n=Ul(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var r=null!=t&&t.format?String(t.format):"extended",o=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",i="",s="extended"===r?"-":"",l="extended"===r?":":"";if("time"!==o){var c=Vc(n.getDate(),2),u=Vc(n.getMonth()+1,2),d=Vc(n.getFullYear(),4);a="".concat(d).concat(s).concat(u).concat(s).concat(c)}if("date"!==o){var p=n.getTimezoneOffset();if(0!==p){var m=Math.abs(p),h=Vc(Math.floor(m/60),2),f=Vc(m%60,2);i="".concat(p<0?"+":"-").concat(h,":").concat(f)}else i="Z";var g=""===a?"":"T",b=[Vc(n.getHours(),2),Vc(n.getMinutes(),2),Vc(n.getSeconds(),2)].join(l);a="".concat(a).concat(g).concat(b).concat(i)}return a}(e,{format:"extended"})},this.getCurrentLocaleCode=function(){var e;return(null===(e=t.locale)||void 0===e?void 0:e.code)||"en-US"},this.addSeconds=function(e,t){return function(e,t){Wl(2,arguments);var n=Vl(t);return Gl(e,1e3*n)}(e,t)},this.addMinutes=function(e,t){return function(e,t){Wl(2,arguments);var n=Vl(t);return Gl(e,6e4*n)}(e,t)},this.addHours=function(e,t){return function(e,t){Wl(2,arguments);var n=Vl(t);return Gl(e,n*ql)}(e,t)},this.addDays=function(e,t){return Yl(e,t)},this.addWeeks=function(e,t){return function(e,t){Wl(2,arguments);var n=Vl(t);return Yl(e,7*n)}(e,t)},this.addMonths=function(e,t){return Kl(e,t)},this.isValid=function(e){return bc(t.date(e))},this.getDiff=function(e,n,r){switch(r){case"years":return function(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t),o=Ql(n,r),a=Math.abs(Jl(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Ql(n,r)===-o,s=o*(a-Number(i));return 0===s?0:s}(e,t.date(n));case"quarters":return function(e,t,n){Wl(2,arguments);var r=nc(e,t)/3;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));case"months":return nc(e,t.date(n));case"weeks":return function(e,t,n){Wl(2,arguments);var r=uc(e,t)/7;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));case"days":return uc(e,t.date(n));case"hours":return function(e,t,n){Wl(2,arguments);var r=mc(e,t)/pc;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));case"minutes":return function(e,t,n){Wl(2,arguments);var r=mc(e,t)/dc;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));case"seconds":return function(e,t,n){Wl(2,arguments);var r=mc(e,t)/1e3;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));default:return mc(e,t.date(n))}},this.isAfter=function(e,t){return fu(e,t)},this.isBefore=function(e,t){return gu(e,t)},this.startOfDay=function(e){return ic(e)},this.endOfDay=function(e){return $l(e)},this.getHours=function(e){return function(e){return Wl(1,arguments),Ul(e).getHours()}(e)},this.setHours=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return n.setHours(r),n}(e,t)},this.setMinutes=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return n.setMinutes(r),n}(e,t)},this.getSeconds=function(e){return function(e){return Wl(1,arguments),Ul(e).getSeconds()}(e)},this.setSeconds=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return n.setSeconds(r),n}(e,t)},this.isSameDay=function(e,t){return function(e,t){Wl(2,arguments);var n=ic(e),r=ic(t);return n.getTime()===r.getTime()}(e,t)},this.isSameMonth=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t)},this.isSameYear=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getFullYear()===r.getFullYear()}(e,t)},this.isSameHour=function(e,t){return function(e,t){Wl(2,arguments);var n=bu(e),r=bu(t);return n.getTime()===r.getTime()}(e,t)},this.startOfMonth=function(e){return pd(e)},this.endOfMonth=function(e){return ec(e)},this.startOfWeek=function(e){return md(e,{locale:t.locale})},this.endOfWeek=function(e){return hc(e,{locale:t.locale})},this.getYear=function(e){return function(e){return Wl(1,arguments),Ul(e).getFullYear()}(e)},this.setYear=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(e,t)},this.date=function(e){return void 0===e?new Date:null===e?null:new Date(e)},this.toJsDate=function(e){return e},this.parse=function(e,n){return""===e?null:function(e,t,n,r){Wl(3,arguments);var o=String(e),a=String(t),i=r||{},s=i.locale||Rc;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,c=null==l?1:Vl(l),u=null==i.firstWeekContainsDate?c:Vl(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,p=null==d?0:Vl(d),m=null==i.weekStartsOn?p:Vl(i.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===a)return""===o?Ul(n):new Date(NaN);var h,f={firstWeekContainsDate:u,weekStartsOn:m,locale:s},g=[{priority:10,subPriority:-1,set:ld,index:0}],b=a.match(rd).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ru[t])(e,s.formatLong,f):e})).join("").match(nd),v=[];for(h=0;h0&&id.test(o))return new Date(NaN);var T=g.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return g.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),A=Ul(n);if(isNaN(A))return new Date(NaN);var R=Oc(A,ac(A)),O={};for(h=0;h=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=a.options&&a.options.weekStartsOn,u=null==c?0:Vl(c),d=null==o.weekStartsOn?u:Vl(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var p=Ul(e);if(!bc(p))throw new RangeError("Invalid time value");var m=ac(p),h=Oc(p,m),f={firstWeekContainsDate:l,weekStartsOn:d,locale:a,_originalDate:p};return r.match(uu).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ru[t])(e,a.formatLong,f):e})).join("").match(cu).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return hu(n);var i=eu[r];if(i)return!o.useAdditionalWeekYearTokens&&su(n)&&lu(n,t,e),!o.useAdditionalDayOfYearTokens&&iu(n)&&lu(n,t,e),i(h,n,a.localize,f);if(r.match(mu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(e,n,{locale:t.locale})},this.isEqual=function(e,t){return null===e&&null===t||function(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getTime()===r.getTime()}(e,t)},this.isNull=function(e){return null===e},this.isAfterDay=function(e,t){return fu(e,$l(t))},this.isBeforeDay=function(e,t){return gu(e,ic(t))},this.isBeforeYear=function(e,t){return gu(e,hd(t))},this.isAfterYear=function(e,t){return fu(e,fc(t))},this.isWithinRange=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e).getTime(),r=Ul(t.start).getTime(),o=Ul(t.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return n>=r&&n<=o}(e,{start:t[0],end:t[1]})},this.formatNumber=function(e){return e},this.getMinutes=function(e){return e.getMinutes()},this.getMonth=function(e){return e.getMonth()},this.getDaysInMonth=function(e){return ud(e)},this.setMonth=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t),o=n.getFullYear(),a=n.getDate(),i=new Date(0);i.setFullYear(o,r,15),i.setHours(0,0,0,0);var s=ud(i);return n.setMonth(r,Math.min(a,s)),n}(e,t)},this.getMeridiemText=function(e){return"am"===e?"AM":"PM"},this.getNextMonth=function(e){return Kl(e,1)},this.getPreviousMonth=function(e){return Kl(e,-1)},this.getMonthArray=function(e){for(var n=[hd(e)];n.length<12;){var r=n[n.length-1];n.push(t.getNextMonth(r))}return n},this.mergeDateAndTime=function(e,n){return t.setSeconds(t.setMinutes(t.setHours(e,t.getHours(n)),t.getMinutes(n)),t.getSeconds(n))},this.getWeekdays=function(){var e=new Date;return function(e,t){Wl(1,arguments);var n=e||{},r=Ul(n.start),o=Ul(n.end).getTime();if(!(r.getTime()<=o))throw new RangeError("Invalid interval");var a=[],i=r;i.setHours(0,0,0,0);var s=t&&"step"in t?Number(t.step):1;if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;i.getTime()<=o;)a.push(Ul(i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return a}({start:md(e,{locale:t.locale}),end:hc(e,{locale:t.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},this.getWeekArray=function(e){for(var n=md(pd(e),{locale:t.locale}),r=hc(ec(e),{locale:t.locale}),o=0,a=n,i=[],s=null;gu(a,r);){var l=Math.floor(o/7);i[l]=i[l]||[];var c=dd(a);s!==c&&(s=c,i[l].push(a),o+=1),a=Yl(a,1)}return i},this.getYearRange=function(e,t){for(var n=hd(e),r=fc(t),o=[],a=n;gu(a,r);)o.push(a),a=Xl(a,1);return o},this.locale=r,this.formats=Object.assign({},Od,o)};function Bd(){return Bd=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Zd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),r.createElement("path",{fill:"#338AF3",d:"M0 0h512v114H0zm0 228h512v114H0z"}),r.createElement("circle",{fill:"#FFDA44",stroke:"#d6ab00",strokeWidth:5,cx:256.5,cy:171,r:40}))},Ld=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M222.2 170.7c.3-.3.5-.6.8-.9-.2.3-.5.6-.8.9zM188 212.6l11 22.9 24.7-5.7-11 22.8 19.9 15.8-24.8 5.6.1 25.4-19.9-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-48.6-116l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9L332 136zm48.6-66.2l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm42.5 49.7l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.4-7.6-9.5 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zM398 166.5l4.1 12.7h13.3l-10.8 7.8 4.2 12.7-10.8-7.9-10.8 7.9 4.1-12.7-10.7-7.8h13.3z"}),r.createElement("path",{d:"M254.8 0v30.6l-45.1 25.1h45.1V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9H99v-48.6l-87.4 48.6H-1.2v-30.6L44 115H-1.2V55.7h59.1L-1.2 22.8V0h26.7L99 40.8V0h55.6v48.6L242.1 0z"})),r.createElement("path",{fill:"#D80027",d:"M142.8 0h-32v69.3h-112v32h112v69.4h32v-69.4h112v-32h-112z"}),r.createElement("path",{fill:"#0052B4",d:"M154.6 115l100.2 55.7v-15.8L183 115z"}),r.createElement("path",{fill:"#FFF",d:"M154.6 115l100.2 55.7v-15.8L183 115z"}),r.createElement("path",{d:"M154.6 115l100.2 55.7v-15.8L183 115zm-83.9 0l-71.9 39.9v15.8L99 115z",fill:"#D80027"}),r.createElement("path",{fill:"#0052B4",d:"M99 55.7L-1.2 0v15.7l71.9 40z"}),r.createElement("path",{fill:"#FFF",d:"M99 55.7L-1.2 0v15.7l71.9 40z"}),r.createElement("path",{d:"M99 55.7L-1.2 0v15.7l71.9 40zm84 0l71.8-40V0L154.6 55.7z",fill:"#D80027"}))},Dd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#ef3340",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#00b5e2",d:"M0 0h513v114H0z"}),r.createElement("path",{fill:"#509e2f",d:"M0 228h513v114H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M265.6 212.6c-23 0-41.6-18.6-41.6-41.6s18.6-41.6 41.6-41.6c7.2 0 13.9 1.8 19.8 5-9.2-9-21.9-14.6-35.8-14.6-28.3 0-51.2 22.9-51.2 51.2s22.9 51.2 51.2 51.2c13.9 0 26.6-5.6 35.8-14.6-5.9 3.2-12.6 5-19.8 5z"}),r.createElement("path",{d:"M297.6 142.2l5.5 15.5 14.9-7.1-7.1 14.9 15.5 5.5-15.5 5.5 7.1 14.9-14.9-7.1-5.5 15.5-5.5-15.5-14.9 7.1 7.1-14.9-15.5-5.5 15.5-5.5-7.1-14.9 14.9 7.1z"})))},jd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#d52b1e",d:"M0 0h513v114H0z"}),r.createElement("path",{fill:"#f9e300",d:"M0 114h513v114H0z"}),r.createElement("path",{fill:"#007934",d:"M0 228h513v114H0z"}))},Fd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#009b3a",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#fedf00",d:"M256.5 19.3l204.9 151.4L256.5 322 50.6 170.7z"}),r.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:80.4}),r.createElement("path",{fill:"#002776",d:"M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z"}))},zd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 0h142v342H0zm371 0h142v342H371zm-64.5 206l50.4-25.2-25.2-12.6V143l-50.4 25.2 25.2-50.4h-25.2L256.1 80l-25.2 37.8h-25.2l25.2 50.4-50.4-25.2v25.2l-25.2 12.6 50.4 25.2-12.6 25.2h50.4V269h25.2v-37.8h50.4z",fill:"red"}))},Nd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"red",d:"M0 85.337h513v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M356.174 222.609h-66.783v-66.783h-66.782v66.783h-66.783v66.782h66.783v66.783h66.782v-66.783h66.783z"}))},Hd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M196 0h317v171H196z"}),r.createElement("path",{fill:"#0037A1",d:"M0 0h196v171H0z"}),r.createElement("path",{fill:"#FFF",d:"M98 24.5L113.1 71H162l-39.6 28.7 15.2 46.5L98 117.5l-39.6 28.7 15.2-46.5L34 71h48.9z"}))},Vd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M226.8 239.2l-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6l-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4l-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z",fill:"#FFDA44"}))},Wd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 343.096h512v83.567H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 256h512v87.096H0z"}))},Ud=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 211.473h512v89.043H0z"}),r.createElement("path",{d:"M0 352.462h512v74.207H0zM0 85.331h512v74.207H0z",fill:"#0052B4"}))},Yd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 512 341.3"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FF9811",d:"M0-40.8v422.9-211.4z"}),r.createElement("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),r.createElement("path",{d:"M0 0h512v68.3H0zm0 136.5h512v68.3H0zm0 136.6h512v68.3H0z",fill:"#0052B4"}),r.createElement("path",{fill:"#D80027",d:"M256 170.7L0 341.3V0z"}),r.createElement("path",{fill:"#FFF",d:"M86.5 111.4l12.7 39.2h41.3l-33.4 24.2 12.8 39.3-33.4-24.2-33.4 24.2 12.8-39.3-33.4-24.2h41.2z"}))},Gd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#002b7f",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#f9e814",d:"M0 233.5h513v51H0z"}),r.createElement("path",{d:"M168.7 86.5l12.9 39.8h41.8l-33.8 24.5 12.9 39.7-33.8-24.5-33.8 24.5 12.9-39.7-33.8-24.5h41.8zm-83.3-54l7.8 23.9h25L97.9 71.1l7.8 23.8-20.3-14.7-20.3 14.7 7.8-23.8-20.3-14.7h25.1z",fill:"#FFF"}))},qd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#11457e",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#d7141a",d:"M512 256v170.663H0L215.185 256z"}),r.createElement("path",{fill:"#FFF",d:"M512 85.337V256H215.185L0 85.337z"}))},Kd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#c60c30",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M190 0h-60v140H0v60h130v142h60V200h323v-60H190z"}))},Xd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 512 341.3"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 215.2h211.5v126.1H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 0h211.5v126.2H0z"}),r.createElement("path",{fill:"#D80027",d:"M300.5 0H512v126.2H300.5z"}),r.createElement("path",{fill:"#0052B4",d:"M300.5 215.2H512v126.1H300.5z"}),r.createElement("g",{stroke:"#FFF",strokeWidth:5,strokeMiterlimit:10},r.createElement("path",{fill:"#0052B4",d:"M256 130h-49.9v49.4s19.5 6 49.9 6V130z"}),r.createElement("path",{fill:"#D80027",d:"M206.1 179.4v6c0 27.5 22.3 49.9 49.9 49.9v-49.9c-30.4 0-49.9-6-49.9-6z"}),r.createElement("path",{fill:"#0052B4",d:"M256 235.3c27.5 0 49.9-22.3 49.9-49.9v-6s-19.5 6-49.9 6v49.9z"}),r.createElement("path",{fill:"#D80027",d:"M256 130v55.4c30.4 0 49.9-6 49.9-6V130H256z"})))},Jd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 22.5 15"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h22.5v15H0V0z"}),r.createElement("path",{fill:"#D03433",d:"M0 0h22.5v4H0V0zm0 11h22.5v4H0v-4z"}),r.createElement("path",{fill:"#FBCA46",d:"M0 4h22.5v7H0V4z"}),r.createElement("path",{fill:"#FFF",d:"M7.8 7h1v.5h-1V7z"}),r.createElement("path",{fill:"#A41517",d:"M7.2 8.5c0 .3.3.5.6.5s.6-.2.6-.5L8.5 7H7.1l.1 1.5zM6.6 7c0-.3.2-.5.4-.5h1.5c.3 0 .5.2.5.4V7l-.1 1.5c-.1.6-.5 1-1.1 1-.6 0-1-.4-1.1-1L6.6 7z"}),r.createElement("path",{fill:"#A41517",d:"M6.8 7.5h2V8h-.5l-.5 1-.5-1h-.5v-.5zM5.3 6h1v3.5h-1V6zm4 0h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3 0 .5.2.5.5v.2c0 .2-.1.3-.3.3H7c-.1 0-.2-.1-.2-.2v-.3z"}))},Qd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 810 540"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#039",d:"M0 0h810v540H0z"}),r.createElement("path",{fill:"#FC0",d:"M404.951 59.865l6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-90 24l6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-66 66l6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-24 89.999l6.735 20.719h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm24 90.001l6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm66 66l6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm180-312l6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm66 66l6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm24 90l6.735 20.718h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm-24 90l6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm-156 90l6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm90-24.001l6.735 20.719h21.894l-17.633 12.812 6.639 20.74-17.635-12.812-17.633 12.812 6.735-20.73-17.633-12.811h21.797z"}))},_d=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.333h512V426.67H0z"}),r.createElement("path",{fill:"#D80027",d:"M288 85.33h-64v138.666H0v64h224v138.666h64V287.996h224v-64H288z"}),r.createElement("path",{d:"M393.785 315.358L512 381.034v-65.676zm-82.133 0L512 426.662v-31.474l-143.693-79.83zm146.982 111.304l-146.982-81.664v81.664z",fill:"#0052B4"}),r.createElement("path",{fill:"#FFF",d:"M311.652 315.358L512 426.662v-31.474l-143.693-79.83z"}),r.createElement("path",{fill:"#D80027",d:"M311.652 315.358L512 426.662v-31.474l-143.693-79.83z"}),r.createElement("path",{d:"M90.341 315.356L0 365.546v-50.19zm110.007 14.154v97.151H25.491z",fill:"#0052B4"}),r.createElement("path",{fill:"#D80027",d:"M143.693 315.358L0 395.188v31.474l200.348-111.304z"}),r.createElement("path",{d:"M118.215 196.634L0 130.958v65.676zm82.133 0L0 85.33v31.474l143.693 79.83zM53.366 85.33l146.982 81.664V85.33z",fill:"#0052B4"}),r.createElement("path",{fill:"#FFF",d:"M200.348 196.634L0 85.33v31.474l143.693 79.83z"}),r.createElement("path",{fill:"#D80027",d:"M200.348 196.634L0 85.33v31.474l143.693 79.83z"}),r.createElement("path",{d:"M421.659 196.636L512 146.446v50.19zm-110.007-14.154V85.331h174.857z",fill:"#0052B4"}),r.createElement("path",{fill:"#D80027",d:"M368.307 196.634L512 116.804V85.33L311.652 196.634z"}))},$d=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),r.createElement("path",{fill:"#496E2D",d:"M0 312.888h512v113.775H0z"}),r.createElement("path",{d:"M255.883 199.111l14.119 43.458 40.366 3.2-36.969 26.861 19.453 40.259-36.969-26.859-36.97 26.859 14.123-43.459-36.969-26.861h45.696z"}))},ep=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#338AF3"}),r.createElement("circle",{fill:"#DCC26D",cx:256,cy:155.8,r:25.5}),r.createElement("path",{fill:"#628A40",d:"M194.2 155.9c0 22.1 11.8 42.5 30.8 53.5 5.9 3.4 13.5 1.4 16.9-4.5 3.4-5.9 1.4-13.5-4.5-16.9-11.5-6.6-18.5-18.9-18.5-32.1 0-6.8-5.5-12.4-12.4-12.4s-12.3 5.5-12.3 12.4zm95.1 52.1c17.8-11.4 28.6-31 28.5-52.1 0-6.8-5.5-12.4-12.4-12.4-6.8 0-12.4 5.5-12.4 12.4 0 12.7-6.5 24.5-17.1 31.3-5.8 3.6-7.7 11.2-4.1 17 3.6 5.8 11.2 7.7 17 4.1.2-.1.3-.2.5-.3z"}))},tp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0.5 21 14"},n),t&&r.createElement("title",null,t),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0z"}),r.createElement("path",{fill:"#ee1c25",d:"M0 0h21v15H0z"}),r.createElement("path",{d:"M12 7.19c-.798-.5-1 .409-1 0 0-.828.895-1.5 2-1.5s2 .672 2 1.5c-.949 0-1.044.5-1.5.5-.56 0-.702 0-1.5-.5zM13.25 7a.25.25 0 100-.5.25.25 0 000 .5zm-1.81 1.962c.228-.913-.698-.824-.31-.95.788-.257 1.703.387 2.045 1.438.341 1.05-.021 2.11-.809 2.366-.293-.903-.798-.838-.939-1.272-.173-.533-.217-.668.012-1.582zm.566 1.13a.25.25 0 10.476-.154.25.25 0 00-.476.154zM9.58 8.977c.94-.065.57-.919.81-.588.486.67.157 1.74-.737 2.389-.894.65-2.013.632-2.5-.038.768-.558.55-1.018.92-1.286.453-.33.568-.413 1.507-.477zm-.899.888a.25.25 0 10.294.405.25.25 0 00-.294-.405zm.312-2.652c.351.874 1.049.258.809.588-.487.67-1.606.687-2.5.038-.894-.65-1.223-1.719-.736-2.39.767.559 1.138.21 1.507.478.453.33.568.413.92 1.286zm-1.124-.58a.25.25 0 10-.293.404.25.25 0 00.293-.404zm2.619-.524c-.722.605.08 1.078-.309.951-.788-.256-1.15-1.315-.809-2.365.342-1.05 1.257-1.695 2.045-1.439-.293.903.153 1.147.012 1.581-.173.533-.217.668-.939 1.272zm.205-1.247a.25.25 0 10-.475-.155.25.25 0 00.475.155z",fill:"#FFF"})))},np=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}),r.createElement("path",{d:"M309.3 113.2v-44l17.5-14.4 17.7 14.4v44zm-105.6 0v-44l-17.3-14.4-17.9 14.4v44zm35.2 0v-44l17.6-14.4 17.6 14.4v44z",fill:"#338AF3"}),r.createElement("path",{d:"M309.3 113.2h-35.2v-44l17.5-14.4 17.7 14.4zm-70.4 0h-35.2v-44l17.5-14.4 17.7 14.4z",fill:"#0052B4"}),r.createElement("path",{stroke:"#D80027",fill:"#FFF",d:"M168.5 113.2v101.9c0 24.3 14.4 46.2 35.4 59.4 21.3 13.4 42.1 14.7 52.6 14.7s31.4-1.7 52.6-14.8c21-13 35.4-35.1 35.4-59.3V113.2h-176z"}),r.createElement("path",{d:"M168.5 113.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm35.2 35.2h35.2V254h-35.2zm35.2-35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-35.2 35.2h35.2V254h-35.2zm35.2 55.5c8.6-5.4 16.2-12.3 22-20.3h-22v20.3zM181.7 254c5.8 8 13.3 14.9 22 20.4V254h-22zm57.2 0v33.7c7.2 1.2 13.3 1.5 17.6 1.5 4.3 0 10.4-.3 17.6-1.6V254h-35.2z",fill:"#D80027"}))},rp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),r.createElement("path",{fill:"#6DA544",d:"M0 312.888h512v113.775H0z"}))},op=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.333h512v341.333H0z"}),r.createElement("path",{fill:"#E00",d:"M0 85.333h512V256H0z"}))},ap=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M340.6 122.4h-56.1l-28-48.6-28 48.6h-56.1l28 48.6-28 48.6h56.1l28 48.6 28-48.6h56.1l-28-48.6 28-48.6zM293.2 171L276 204.2h-38.9L219.8 171l17.2-33.2h38.9l17.3 33.2zm-36.7-71.8l11.9 23.3h-23.9l12-23.3zm-58.3 38.6h23.9l-10.8 21-13.1-21zm0 66.4l13-22.1 11.9 22.1h-24.9zm58.3 37.5l-11.9-22.1h23.9l-12 22.1zm59.4-37.5h-25l11.9-22.1 13.1 22.1zm-26.1-66.4h26.1l-13 22.1-13.1-22.1zM0 21.3h512V64H0zm0 256h512V320H0z",fill:"#2E52B2"}))},ip=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#181A93",d:"M17.3 0h478.4v342H17.3V0z"}),r.createElement("path",{fill:"#FFA44A",d:"M0 0h513v114H0V0z"}),r.createElement("path",{fill:"#1A9F0B",d:"M0 228h513v114H0V228z"}),r.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0V114z"}),r.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:34.2}),r.createElement("path",{fill:"#181A93",d:"M256.5 216.6c-25.1 0-45.6-20.5-45.6-45.6s20.5-45.6 45.6-45.6 45.6 20.5 45.6 45.6-20.5 45.6-45.6 45.6zm0-11.4c18.2 0 34.2-16 34.2-34.2s-15.9-34.2-34.2-34.2-34.2 16-34.2 34.2 16 34.2 34.2 34.2z"}),r.createElement("circle",{fill:"#181A93",cx:256.5,cy:171,r:22.8}))},sp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),r.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),r.createElement("path",{fill:"#D80027",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},lp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{d:"M215.864 256.006L0 399.911V112.089zM512 112.089v287.822L296.136 256.006z"}),r.createElement("path",{fill:"#0052B4",d:"M512 112.089L296.136 256.006 512 399.911v26.757h-40.125L256 282.752 40.125 426.668H0v-26.757l215.864-143.905L0 112.089V85.331h40.125L256 229.248 471.875 85.331H512z"}),r.createElement("path",{fill:"#FFDA44",d:"M512 112.089L296.136 256.006 512 399.911v26.757h-40.125L256 282.752 40.125 426.668H0v-26.757l215.864-143.905L0 112.089V85.331h40.125L256 229.248 471.875 85.331H512z"}))},cp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),r.createElement("circle",{fill:"#D80027",cx:256,cy:255.994,r:96}))},up=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),r.createElement("path",{d:"M0 85.331h512v90.579H0z"}),r.createElement("path",{fill:"#496E2D",d:"M0 336.089h512v90.568H0z"}),r.createElement("path",{fill:"#A2001D",d:"M0 198.606h512v114.799H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M323.265 139.803l-25.583-11.809L256 222.376l-41.682-94.382-25.583 11.809 51.749 116.191-51.749 116.192 25.583 11.808L256 289.613l41.682 94.381 25.583-11.808-51.749-116.192z"}),r.createElement("path",{d:"M273.376 150.931C263.472 140.115 256 133.898 256 133.898s-7.472 6.216-17.376 17.032v210.127C248.528 371.873 256 378.091 256 378.091s7.472-6.216 17.376-17.033V150.931z"})),r.createElement("path",{d:"M209.04 191.226v129.535c10.465 18.542 23.274 33.742 32.872 43.818V147.408c-9.599 10.076-22.408 25.275-32.872 43.818zm93.92 0c-10.465-18.543-23.274-33.742-32.872-43.818V364.58c9.599-10.077 22.407-25.276 32.872-43.818V191.226z",fill:"#A2001D"}),r.createElement("path",{d:"M302.96 191.226v129.535c10.594-18.774 18.784-40.973 18.784-64.767s-8.19-45.993-18.784-64.768zm-93.92 0v129.535c-10.594-18.774-18.784-40.973-18.784-64.767s8.19-45.993 18.784-64.768z"}))},dp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 900 600"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h900v600H0z"}),r.createElement("g",{transform:"rotate(-56.31)"},r.createElement("path",{d:"M-75 228.3H75m-150 37.5H75m-150 37.5H75m-150 475H75m-150 37.5H75m-150 37.5H75",stroke:"#000",strokeWidth:25}),r.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"M0 753.3v125"}),r.createElement("circle",{fill:"#ca163a",cy:540.8,r:150}),r.createElement("path",{fill:"#0e4896",d:"M0 390.8c-41.4 0-75 33.6-75 75s33.6 75 75 75 75 33.6 75 75-33.6 75-75 75c-82.8 0-150-67.2-150-150s67.2-150 150-150z"})),r.createElement("path",{d:"M231.56 535.73l-83.205-124.808M262.76 514.928l-83.205-124.807m114.407 104.006l-83.205-124.808m478.43-138.675l-83.205-124.807M720.39 209.843L637.184 85.036m114.407 104.006L668.386 64.234",stroke:"#000",strokeWidth:25}),r.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"M205.6 462.897l31.202-20.8m389.981-259.989l36.444-24.296m31.202-20.801l31.202-20.801"}))},pp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#36B6CC",d:"M0 0h513v342H0V0z"}),r.createElement("circle",{fill:"#FFD400",cx:256.5,cy:170.9,r:68.4}),r.createElement("path",{fill:"#FFD400",d:"M256.5 251.5l-27.9 41.7-7.1-49.7-43.2 25.5 15.2-47.8-50 4.2 34.4-36.5-46.9-18 46.8-18-34.4-36.5 50 4.2-15.2-47.8 43.2 25.4 7.1-49.7 27.9 41.7 27.9-41.7 7.1 49.7 43.2-25.4-15.2 47.8 50-4.2-34.3 36.6 46.8 17.9-46.8 18 34.4 36.5-50-4.2 15.2 47.8-43.2-25.4-7.1 49.7c0-.1-27.9-41.8-27.9-41.8zm0-.8c44.1 0 79.9-35.8 79.9-79.9S300.6 91 256.5 91s-79.9 35.8-79.9 79.9 35.8 79.8 79.9 79.8zM22.8 28.3c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V28.3zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V74zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm22.8-22.8c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7V245c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V188zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V96.8zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V51.2z"}))},mp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#dc2339",d:"M342 0H0v341.3h513V0z"}),r.createElement("path",{fill:"#11865d",d:"M0 0h171v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M171 0h171v342H171z"}),r.createElement("path",{fill:"#8C9157",d:"M195.8 171.2c0 21.6 11.5 41.7 30.3 52.5 5.8 3.4 13.2 1.4 16.6-4.4 3.4-5.8 1.4-13.2-4.4-16.6-11.3-6.5-18.2-18.5-18.2-31.5 0-6.7-5.4-12.1-12.1-12.1-6.7 0-12.2 5.4-12.2 12.1zm93.4 51.1c17.5-11.1 28-30.4 28-51.1 0-6.7-5.4-12.1-12.1-12.1s-12.1 5.4-12.1 12.1c0 12.4-6.3 24-16.8 30.7-5.7 3.5-7.5 10.9-4.1 16.7s10.9 7.5 16.7 4.1c0-.2.2-.3.4-.4z"}),r.createElement("ellipse",{fill:"#C59262",cx:256.5,cy:159.1,rx:24.3,ry:36.4}))},hp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 0h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0zm0 48.9h513V171H0zm0 48.8h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0z",fill:"#c00"}),r.createElement("path",{fill:"#006",d:"M0 0h256.5v195.4H0z"}),r.createElement("path",{d:"M153.3 42.1C122.6 30.7 88.5 46.3 77.1 77s4.2 64.8 34.9 76.2c13.3 5 28 5 41.4 0-30.7 24.5-75.4 19.6-100-11.1s-19.6-75.4 11.1-100c26-20.7 62.9-20.7 88.8 0zm26.7 75l-20.6 23.3 5.4-30.6-31-1.6 27.3-14.9L143 68l28.6 12 8.4-29.9 8.4 29.9L217 68l-18 25.4 27.3 14.9-31 1.6 5.4 30.6-20.7-23.4z",fill:"#fc0"}))},fp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.337h512"}),r.createElement("path",{fill:"#FFF",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),r.createElement("path",{fill:"#A2001D",d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}),r.createElement("path",{fill:"#FFDA44",d:"M187.737 189.212l-22.741 10.696 12.11 22.024-24.693-4.724-3.129 24.945-17.199-18.347-17.2 18.347-3.129-24.945-24.693 4.723 12.109-22.023-22.739-10.696 22.74-10.697-12.11-22.022 24.693 4.722 3.13-24.944 17.199 18.347 17.2-18.347 3.128 24.944 24.693-4.722-12.108 22.024z"}))},gp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.5 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.5h513v342H0z"}),r.createElement("path",{d:"M0 85.5h171v342H0zm342 0h171v342H342z",fill:"#007b23"}))},bp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),r.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),r.createElement("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},vp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),r.createElement("path",{d:"M425.301 233.745l3.388 10.428h10.963l-8.87 6.444 3.388 10.427-8.869-6.444-8.871 6.444 3.388-10.427-8.87-6.444h10.963zm-39.194 75.072l5.083 15.642h16.445l-13.305 9.667 5.082 15.64-13.305-9.667-13.305 9.667 5.083-15.64-13.305-9.667h16.445zm1.481-122.846l4.236 13.036h13.704l-11.088 8.054 4.235 13.034-11.087-8.056-11.088 8.056 4.235-13.034-11.087-8.054h13.704zm-37.712 47.32l5.082 15.641h16.446l-13.306 9.666 5.084 15.641-13.306-9.666-13.305 9.666 5.082-15.641-13.305-9.666h16.445z",fill:"#D80027"}),r.createElement("path",{fill:"#FFF",d:"M256.003 85.329v30.564l-45.178 25.088h45.178v59.359H196.89l59.113 32.846v22.806h-26.69l-73.484-40.826v40.826h-55.652v-48.573l-87.429 48.573H.003v-30.553l45.168-25.099H.003v-59.359h59.103L.003 108.147V85.329h26.68l73.494 40.838V85.329h55.652v48.573l87.43-48.573z"}),r.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.334H0v32h112v69.334h32v-69.334h112v-32H144z"}),r.createElement("path",{fill:"#0052B4",d:"M155.826 200.344L256 255.998v-15.739l-71.847-39.915z"}),r.createElement("path",{fill:"#FFF",d:"M155.826 200.344L256 255.998v-15.739l-71.847-39.915z"}),r.createElement("path",{d:"M155.826 200.344L256 255.998v-15.739l-71.847-39.915zm-83.98 0L0 240.259v15.739l100.174-55.654z",fill:"#D80027"}),r.createElement("path",{fill:"#0052B4",d:"M100.174 140.983L0 85.33v15.738l71.847 39.915z"}),r.createElement("path",{fill:"#FFF",d:"M100.174 140.983L0 85.33v15.738l71.847 39.915z"}),r.createElement("path",{d:"M100.174 140.983L0 85.33v15.738l71.847 39.915zm83.98 0L256 101.068V85.33l-100.174 55.653z",fill:"#D80027"}))},yp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M256 256v170.663H0V256h256z"}),r.createElement("path",{fill:"#D80027",d:"M512 85.337V256H256V85.337h256z"}),r.createElement("path",{fill:"#0052B4",d:"M128 123.034l11.824 36.389h38.263l-30.955 22.491 11.823 36.389L128 195.813l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}),r.createElement("path",{fill:"#D80027",d:"M384 293.697l11.824 36.389h38.263l-30.955 22.491 11.823 36.389L384 366.476l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}))},wp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.326H0z"}),r.createElement("path",{d:"M0 85.331h170.663v341.337H0zm341.337 0H512v341.337H341.337z",fill:"#D80027"}))},kp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M512 85.337V256H256L0 85.337z"}),r.createElement("path",{fill:"#D80027",d:"M512 256v170.663H0L256 256z"}),r.createElement("path",{d:"M161.908 256l-27.288-12.835 14.532-26.428-29.632 5.668-3.755-29.933-20.64 22.015-20.639-22.015-3.755 29.933-29.631-5.669 14.531 26.428L28.343 256l27.288 12.835L41.1 295.263l29.633-5.668 3.753 29.933 20.639-22.015 20.64 22.015 3.755-29.933 29.631 5.669-14.532-26.427zM21.789 117.607l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.694-14.809-4.932-9.268 12.559.117-15.608-14.809-4.934 14.88-4.712zm0 235.923l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.695-14.809-4.933-9.268 12.558.117-15.607-14.809-4.934 14.88-4.712zm188.606-117.961l-9.081 12.695-14.879-4.713 9.268 12.559-9.081 12.696 14.809-4.933 9.268 12.558-.117-15.607 14.809-4.934-14.88-4.713z",fill:"#FFDA44"}))},Cp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M393.508 170.516l17.512 18.875 23.363-10.821-12.541 22.487 17.513 18.876-25.263-4.978-12.539 22.488-3.073-25.564-25.263-4.978 23.363-10.82z"}),r.createElement("path",{d:"M0 85.343h512v341.326H0z"})),r.createElement("path",{fill:"#01411c",d:"M128 85.331h384v341.337H128z"}),r.createElement("path",{d:"M361.909 298.793c-31.037 22.426-74.378 15.446-96.804-15.592-22.427-31.038-15.446-74.379 15.593-96.804 9.677-6.992 20.55-11.125 31.613-12.563-21.283-3.183-43.777 1.613-62.598 15.211-38.2 27.602-46.792 80.944-19.191 119.145 27.601 38.199 80.944 46.792 119.145 19.189 18.82-13.598 30.436-33.448 34.096-54.655-4.839 10.05-12.176 19.076-21.854 26.069zm-1.329-125.904l17.484 18.842 23.322-10.802-12.519 22.447 17.483 18.844-25.219-4.968-12.519 22.45-3.067-25.521-25.22-4.969 23.323-10.802z",fill:"#FFF"}))},xp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{d:"M0 85.337h512V256H0z"})),r.createElement("path",{fill:"#D80027",d:"M0 256h512v170.663H0z"}))},Sp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 312.888h512v113.775H0z"}),r.createElement("path",{fill:"#6DA544",d:"M289.579 216.738l-12.592 12.592c5.37 5.372 8.693 12.792 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.112-5.316-24.985-13.91-33.579z"}),r.createElement("path",{fill:"#FFDA44",d:"M256 232.51l4.421 13.605h14.304l-11.573 8.408 4.421 13.604L256 259.719l-11.573 8.408 4.421-13.604-11.573-8.408h14.304z"}))},Ep=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#751A46",d:"M0 0h512v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M0 0v342h150.3l37.7-19.6-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19 37.7-18.9-37.7-19 37.7-19-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19L188 57l-37.7-19L188 19.1 150.3 0z"}))},Pp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),r.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},Tp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.33v341.332h512V85.33z"}),r.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),r.createElement("path",{fill:"#FFF",d:"M0 85.333h512v113.775H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 312.884h512v113.775H0z"}))},Ap=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#055e1c",d:"M0 85.333h512v341.333H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M183.548 289.386c0 12.295 9.731 22.261 21.736 22.261h65.208c0 10.244 8.11 18.551 18.114 18.551h21.736c10.004 0 18.114-8.306 18.114-18.551v-22.261H183.548zm146.716-107.595v51.942c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942h-21.735zm-155.773 51.943c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942H174.49v51.942z"}),r.createElement("path",{d:"M297.661 181.788h21.736v51.942h-21.736zm-32.604 29.685c0 2.046-1.625 3.71-3.623 3.71-1.998 0-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 2.046-1.625 3.71-3.623 3.71s-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 14.32 11.376 25.971 25.358 25.971 5.385 0 10.38-1.733 14.491-4.677 4.11 2.944 9.106 4.677 14.491 4.677 1.084 0 2.15-.078 3.2-.215-1.54 6.499-7.255 11.345-14.068 11.345v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.943h-21.736l.002 29.682z"}),r.createElement("path",{d:"M207.093 248.57h32.601v22.261h-32.601z"})))},Rp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),r.createElement("path",{fill:"#FFDA44",d:"M192 85.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z"}))},Op=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512V256H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M83.478 170.666c0-24.865 17.476-45.637 40.812-50.734a52.059 52.059 0 00-11.13-1.208c-28.688 0-51.942 23.254-51.942 51.941s23.255 51.942 51.942 51.942c3.822 0 7.543-.425 11.13-1.208-23.336-5.095-40.812-25.867-40.812-50.733zm66.783-48.231l3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921z"}),r.createElement("path",{d:"M121.344 144.696l3.683 11.337h11.921l-9.645 7.007 3.684 11.337-9.643-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921zm57.834 0l3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.685-11.337-9.645-7.007h11.921zm-11.131 33.391l3.684 11.337h11.921l-9.644 7.007 3.684 11.337-9.645-7.006-9.643 7.006 3.684-11.337-9.644-7.007h11.92zm-35.573 0l3.683 11.337h11.921l-9.644 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.684-11.337-9.644-7.007h11.92z"})))},Mp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.334h512V426.66H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 194.056h512v123.882H0z"}),r.createElement("path",{d:"M0 85.334h512v54.522H0zm0 286.809h512v54.522H0z",fill:"#D80027"}))},Bp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#E30A17",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M259.7 118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8 0-73.8 30.8-73.8 68.9s33.1 68.9 73.8 68.9c17.1 0 32.9-5.4 45.3-14.5-30 38.6-85.7 45.6-124.3 15.5s-45.6-85.7-15.5-124.3 85.7-45.6 124.3-15.5c5.8 4.5 11 9.8 15.5 15.5zm39.9 65.8l-18.1 21.9 1.2-28.4-26.4-10.4 27.3-7.6 1.8-28.3 15.6 23.7 27.5-7.1-17.5 22 15.3 23.9-26.7-9.7z"}))},Ip=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#FFF",d:"M6.066 85.337l207.961 212.636 131.584 128.69h160.323L297.973 214.027 166.389 85.337z"}),r.createElement("path",{d:"M43.364 85.337L384.69 426.663h83.946L127.31 85.337z"}))},Zp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 85.337h256V256H0z"}),r.createElement("path",{fill:"#FFF",d:"M186.435 170.669L162.558 181.9l12.714 23.125-25.927-4.961-3.286 26.192L128 206.993l-18.06 19.263-3.285-26.192-25.927 4.96 12.714-23.125-23.877-11.23 23.877-11.231-12.714-23.125 25.927 4.96 3.286-26.192L128 134.344l18.06-19.263 3.285 26.192 25.928-4.96-12.715 23.125z"}),r.createElement("circle",{fill:"#0052B4",cx:128,cy:170.674,r:29.006}),r.createElement("path",{fill:"#FFF",d:"M128 190.06c-10.692 0-19.391-8.7-19.391-19.391 0-10.692 8.7-19.391 19.391-19.391 10.692 0 19.391 8.7 19.391 19.391 0 10.691-8.699 19.391-19.391 19.391z"}))},Lp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),r.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),r.createElement("path",{d:"M47.8 138.9l-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0l-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0l-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0l-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0l-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0l-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0l-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6l-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0l-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0l-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0l-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},Dp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 38h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z",fill:"#0038a8"}),r.createElement("path",{fill:"#FFF",d:"M0 0h256.5v190H0z"}),r.createElement("path",{fill:"#FED443",d:"M128.3 138.7l-15.1 22.6-3.8-26.9L86 148.2l8.2-25.9-27.2 2.2 18.6-19.8L60.3 95l25.4-9.7L67 65.5l27.1 2.3-8.2-25.9 23.4 13.8 3.9-26.9 15.1 22.6 15.1-22.6 3.8 26.9 23.4-13.8-8.2 25.9 27.1-2.2-18.6 19.8 25.4 9.7-25.4 9.7 18.6 19.8-27.1-2.2 8.2 25.9-23.4-13.8-3.9 26.9-15-22.7zm0-.5c23.9.9 44-17.6 44.9-41.5.9-23.9-17.6-44-41.5-44.9h-3.4c-23.9.8-42.6 20.8-41.8 44.6.6 22.8 19 41.1 41.8 41.8zm0-10.6c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.3 34-34 34z"}))},jp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 22.5 15"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFCE00",d:"M0 0h22.5v5H0z"}),r.createElement("path",{fill:"#203899",d:"M0 5h22.5v5H0z"}),r.createElement("path",{fill:"#D82B2B",d:"M0 10h22.5v5H0z"}),r.createElement("path",{fill:"#FFF",d:"M12.13 5.38l.14.46.45.14-.39.27.01.48-.38-.29-.45.15.15-.44-.28-.38h.47zm-1.77 0l.27.39h.47l-.28.38.15.45-.45-.16-.38.28.01-.47-.39-.28.45-.13zm3.44.56l-.01.48.39.27-.46.14-.14.45-.27-.38h-.48l.29-.38-.15-.45.45.16zm-5.11.02l.4.27.44-.18-.13.46.3.36-.47.02-.26.4-.16-.44-.46-.12.37-.3zm6.55 1.17l-.2.44.25.4-.47-.05-.31.36-.1-.46-.43-.18.41-.24.03-.47.35.31zm.19 1.12l.21.43.47.07-.34.33.08.46-.42-.22-.42.22.08-.46-.34-.33.47-.07zM7 8.2l.21.43.47.06-.34.33.08.47L7 9.27l-.42.22.08-.47-.34-.33.47-.06zm.31-1.15l.45.14.38-.29v.48l.39.26-.45.15-.13.46-.28-.38-.47.01.27-.38z"}))},Fp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M196.641 85.337H0v341.326h512V85.337z"}),r.createElement("path",{fill:"#FFDA44",d:"M256 157.279l22.663 69.747H352l-59.332 43.106 22.664 69.749L256 296.774l-59.332 43.107 22.664-69.749L160 227.026h73.337z"}))},zp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{d:"M114.024 256.001L0 141.926v228.17z"}),r.createElement("path",{fill:"#ffb915",d:"M161.192 256L0 94.7v47.226l114.024 114.075L0 370.096v47.138z"}),r.createElement("path",{fill:"#007847",d:"M509.833 289.391c.058-.44.804-.878 2.167-1.318v-65.464H222.602L85.33 85.337H0V94.7L161.192 256 0 417.234v9.429h85.33l137.272-137.272h287.231z"}),r.createElement("path",{fill:"#000c8a",d:"M503.181 322.783H236.433l-103.881 103.88H512v-103.88z"}),r.createElement("path",{fill:"#e1392d",d:"M503.181 189.217H512V85.337H132.552l103.881 103.88z"}))};var Np=n(4939);function Hp(e){const t={width:20,height:20};var n="";return"AUD"==e&&(n=r.createElement(Ld,t)),"ARS"==e&&(n=r.createElement(Zd,t)),"BRL"==e&&(n=r.createElement(Fd,t)),"CAD"==e&&(n=r.createElement(zd,t)),"CHF"==e&&(n=r.createElement(Nd,t)),"CLP"==e&&(n=r.createElement(Hd,t)),"CNY"==e&&(n=r.createElement(Vd,t)),"EUR"==e&&(n=r.createElement(Qd,t)),"HRK"==e&&(n=r.createElement(np,t)),"CZK"==e&&(n=r.createElement(qd,t)),"DKK"==e&&(n=r.createElement(Kd,t)),"GBP"==e&&(n=r.createElement(_d,t)),"HKD"==e&&(n=r.createElement(tp,t)),"HUF"==e&&(n=r.createElement(rp,t)),"INR"==e&&(n=r.createElement(ip,t)),"ISK"==e&&(n=r.createElement(sp,t)),"JPY"==e&&(n=r.createElement(cp,t)),"KRW"==e&&(n=r.createElement(dp,t)),"MXN"==e&&(n=r.createElement(mp,t)),"NOK"==e&&(n=r.createElement(bp,t)),"NZD"==e&&(n=r.createElement(vp,t)),"PLN"==e&&(n=r.createElement(xp,t)),"RON"==e&&(n=r.createElement(Pp,t)),"RUB"==e&&(n=r.createElement(Tp,t)),"SEK"==e&&(n=r.createElement(Rp,t)),"SGD"==e&&(n=r.createElement(Op,t)),"VES"==e&&(n=r.createElement(jp,t)),"TRY"==e&&(n=r.createElement(Bp,t)),"USD"==e&&(n=r.createElement(Lp,t)),"ZAR"==e&&(n=r.createElement(zp,t)),"COP"==e&&(n=r.createElement(Wd,t)),"PEN"==e&&(n=r.createElement(wp,t)),"UYU"==e&&(n=r.createElement(Dp,t)),"PYG"==e&&(n=r.createElement(Sp,t)),"BOB"==e&&(n=r.createElement(jd,t)),"IDR"==e&&(n=r.createElement(op,t)),"ANG"==e&&(n=r.createElement(Gd,t)),"CRC"==e&&(n=r.createElement(Ud,t)),"CUP"==e&&(n=r.createElement(Yd,t)),"DOP"==e&&(n=r.createElement(Xd,t)),"GHS"==e&&(n=r.createElement($d,t)),"GTQ"==e&&(n=r.createElement(ep,t)),"ILS"==e&&(n=r.createElement(ap,t)),"JMD"==e&&(n=r.createElement(lp,t)),"KES"==e&&(n=r.createElement(up,t)),"KZT"==e&&(n=r.createElement(pp,t)),"MYR"==e&&(n=r.createElement(hp,t)),"NAD"==e&&(n=r.createElement(fp,t)),"NGN"==e&&(n=r.createElement(gp,t)),"AZN"==e&&(n=r.createElement(Dd,t)),"PAB"==e&&(n=r.createElement(yp,t)),"PHP"==e&&(n=r.createElement(kp,t)),"PKR"==e&&(n=r.createElement(Cp,t)),"QAR"==e&&(n=r.createElement(Ep,t)),"SAR"==e&&(n=r.createElement(Ap,t)),"THB"==e&&(n=r.createElement(Mp,t)),"TTD"==e&&(n=r.createElement(Ip,t)),"VND"==e&&(n=r.createElement(Fp,t)),"XOF"==e&&(n=r.createElement(Rp,t)),"TWD"==e&&(n=r.createElement(Zp,t)),"XAU"==e?"🟨":"BTC"==e?r.createElement(Np.Z,{color:"primary"}):r.createElement("div",{style:{width:28,height:20}},n)}var Vp=n(7960);function Wp(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Up(e,t){for(let n=0;n{let c=i?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=Wp(c));const u=e.filter((e=>{let r=(a||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Wp(r)),"start"===o?0===r.indexOf(c):r.indexOf(c)>-1}));return"number"==typeof r?u.slice(0,r):u}}();var Gp=n(7036),qp=n(594),Kp=n(5302);function Xp(){return Xp=Object.assign||function(e){for(var t=1;t`\n color: ${"dark"===e.palette.mode?"rgba(255,255,255,0.65)":"rgba(0,0,0,.85)"};\n font-size: 14px;\n`)),tm=(0,Ie.ZP)("label")((({theme:e,error:t})=>`\n color: ${"dark"===e.palette.mode?t?"#f44336":"#cfcfcf":t?"#dd0000":"#717171"};\n aling: center;\n padding: 0 0 4px;\n line-height: 1.5; f44336\n display: block;\n font-size: 13px;\n`)),nm=(0,Ie.ZP)("div")((({theme:e,error:t})=>`\n width: 244px;\n min-height: 44px;\n max-height: 124px;\n border: 1px solid ${"dark"===e.palette.mode?t?"#f44336":"#434343":t?"#dd0000":"#c4c4c4"};\n background-color: ${"dark"===e.palette.mode?"#141414":"#fff"};\n border-radius: 4px;\n padding: 1px;\n display: flex;\n flex-wrap: wrap;\n overflow-y:auto;\n \n &:hover {\n border-color: ${"dark"===e.palette.mode?t?"#f44336":"#ffffff":t?"#dd0000":"#2f2f2f"};\n }\n\n &.focused {\n border: 2px solid ${"dark"===e.palette.mode?t?"#f44336":"#90caf9":t?"#dd0000":"#1976d2"};\n }\n\n & input {\n background-color: ${"dark"===e.palette.mode?"#141414":"#fff"};\n color: ${"dark"===e.palette.mode?"rgba(255,255,255,0.65)":"rgba(0,0,0,.85)"};\n height: 30px;\n box-sizing: border-box;\n padding: 4px 6px;\n width: 0;\n min-width: 30px;\n font-size: 15px;\n flex-grow: 1;\n border: 0;\n margin: 0;\n outline: 0;\n max-height: 124px;\n }\n`));function rm(e){const{label:t,icon:n,onDelete:o,...a}=e;return r.createElement("div",a,r.createElement("div",{style:{position:"relative",left:"-5px",top:"4px"}},r.createElement(Qp,{width:22,height:22,icon:n})),r.createElement("span",{style:{position:"relative",left:"2px"}},t),r.createElement(qp.Z,{onClick:o}))}rm.propTypes={label:S().string.isRequired,icon:S().string.isRequired,onDelete:S().func.isRequired};const om=(0,Ie.ZP)(rm)((({theme:e})=>`\n display: flex;\n align-items: center;\n height: 34px;\n margin: 2px;\n line-height: 22px;\n background-color: ${"dark"===e.palette.mode?"rgba(255,255,255,0.08)":"#fafafa"};\n border: 1px solid ${"dark"===e.palette.mode?"#303030":"#e8e8e8"};\n border-radius: 2px;\n box-sizing: content-box;\n padding: 0 4px 0 10px;\n outline: 0;\n overflow: hidden;\n\n &:focus {\n border-color: ${"dark"===e.palette.mode?"#177ddc":"#40a9ff"};\n background-color: ${"dark"===e.palette.mode?"#003b57":"#e6f7ff"};\n }\n\n & span {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 15px;\n }\n\n & svg {\n font-size: 15px;\n cursor: pointer;\n padding: 4px;\n }\n`)),am=(0,Ie.ZP)("span")((({theme:e})=>`\n color: ${"dark"===e.palette.mode?"#90caf9":"#1976d2"};\n aling: center;\n width: 141px;\n line-height:10px;\n max-height: 10px;\n display: inline-block;\n background-color: ${"dark"===e.palette.mode?"#141414":"#ffffff"};\n font-size: 12px;\n pointer-events: none;\n`)),im=(0,Ie.ZP)("ul")((({theme:e})=>`\n width: 244px;\n margin: 2px 0 0;\n padding: 0;\n position: absolute;\n list-style: none;\n background-color: ${"dark"===e.palette.mode?"#141414":"#fff"};\n overflow: auto;\n max-height: 250px;\n border-radius: 4px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n z-index: 999;\n\n & li {\n padding: 5px 12px;\n display: flex;\n\n & span {\n flex-grow: 1;\n }\n\n & svg {\n color: transparent;\n }\n\n }\n\n & li[aria-selected='true'] {\n background-color: ${"dark"===e.palette.mode?"#2b2b2b":"#fafafa"};\n font-weight: 600;\n\n & svg {\n color: ${e.palette.primary.main};\n }\n }\n\n & li[data-focus='true'] {\n background-color: ${"dark"===e.palette.mode?"#003b57":"#e6f7ff"};\n cursor: pointer;\n\n & svg {\n color: currentColor;\n }\n }\n`));function sm(e){const{getRootProps:t,getInputLabelProps:n,getInputProps:o,getTagProps:a,getListboxProps:i,getOptionProps:l,groupedOptions:c,value:u,focused:d="true",setAnchorEl:p}=function(e){const{autoComplete:t=!1,autoHighlight:n=!1,autoSelect:o=!1,blurOnSelect:a=!1,disabled:i,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:m=!1,disabledItemsFocusable:h=!1,disableListWrap:f=!1,filterOptions:g=Yp,filterSelectedOptions:b=!1,freeSolo:v=!1,getOptionDisabled:y,getOptionLabel:w=(e=>{var t;return null!=(t=e.label)?t:e}),isOptionEqualToValue:k=((e,t)=>e===t),groupBy:C,handleHomeEndKeys:x=!e.freeSolo,id:S,includeInputInList:E=!1,inputValue:P,multiple:T=!1,onChange:A,onClose:R,onHighlightChange:O,onInputChange:M,onOpen:B,open:I,openOnFocus:Z=!1,options:L,selectOnFocus:D=!e.freeSolo,value:j}=e,F=(0,Pe.Z)(S);let z=w;z=e=>{const t=w(e);return"string"!=typeof t?String(t):t};const N=r.useRef(!1),H=r.useRef(!0),V=r.useRef(null),W=r.useRef(null),[U,Y]=r.useState(null),[G,q]=r.useState(-1),K=n?0:-1,X=r.useRef(K),[J,Q]=(0,Wn.Z)({controlled:j,default:d,name:u}),[_,$]=(0,Wn.Z)({controlled:P,default:"",name:u,state:"inputValue"}),[ee,te]=r.useState(!1),ne=r.useCallback(((e,t)=>{if(!(T?J.length{const e=J!==re.current;re.current=J,ee&&!e||v&&!e||ne(null,J)}),[J,ne,ee,re,v]);const[oe,ae]=(0,Wn.Z)({controlled:I,default:!1,name:u,state:"open"}),[ie,se]=r.useState(!0),le=!T&&null!=J&&_===z(J),ce=oe,ue=ce?g(L.filter((e=>!b||!(T?J:[J]).some((t=>null!==t&&k(e,t))))),{inputValue:le&&ie?"":_,getOptionLabel:z}):[],de=oe&&ue.length>0,pe=(0,Gn.Z)((e=>{-1===e?V.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{T&&G>J.length-1&&(q(-1),pe(-1))}),[J,T,G,pe]);const me=(0,Gn.Z)((({event:e,index:t,reason:n="auto"})=>{if(X.current=t,-1===t?V.current.removeAttribute("aria-activedescendant"):V.current.setAttribute("aria-activedescendant",`${F}-option-${t}`),O&&O(e,-1===t?null:ue[t],n),!W.current)return;const r=W.current.querySelector('[role="option"].Mui-focused');r&&(r.classList.remove("Mui-focused"),r.classList.remove("Mui-focusVisible"));const o=W.current.parentElement.querySelector('[role="listbox"]');if(!o)return;if(-1===t)return void(o.scrollTop=0);const a=W.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add("Mui-focused"),"keyboard"===n&&a.classList.add("Mui-focusVisible"),o.scrollHeight>o.clientHeight&&"mouse"!==n)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0){if(!ce)return;const a=function(e,t){if(!W.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ue.length||"previous"===t&&-1===n)return-1;const e=W.current.querySelector(`[data-option-index="${n}"]`),r=!h&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=ue.length-1;if("reset"===n)return K;if("start"===n)return 0;if("end"===n)return e;const t=X.current+n;return t<0?-1===t&&E?-1:f&&-1!==X.current||Math.abs(n)>1?0:e:t>e?t===e+1&&E?-1:f||Math.abs(n)>1?e:0:t})(),r);if(me({index:a,reason:o,event:e}),t&&"reset"!==n)if(-1===a)V.current.value=_;else{const e=z(ue[a]);V.current.value=e,0===e.toLowerCase().indexOf(_.toLowerCase())&&_.length>0&&V.current.setSelectionRange(_.length,e.length)}})),fe=r.useCallback((()=>{if(!ce)return;const e=T?J[0]:J;if(0!==ue.length&&null!=e){if(W.current)if(null==e)X.current>=ue.length-1?me({index:ue.length-1}):me({index:X.current});else{const t=ue[X.current];if(T&&t&&-1!==Up(J,(e=>k(t,e))))return;const n=Up(ue,(t=>k(t,e)));-1===n?he({diff:"reset"}):me({index:n})}}else he({diff:"reset"})}),[ue.length,!T&&J,b,he,me,ce,_,T]),ge=(0,Gn.Z)((e=>{(0,Vp.Z)(W,e),e&&fe()}));r.useEffect((()=>{fe()}),[fe]);const be=e=>{oe||(ae(!0),se(!0),B&&B(e))},ve=(e,t)=>{oe&&(ae(!1),R&&R(e,t))},ye=(e,t,n,r)=>{if(Array.isArray(J)){if(J.length===t.length&&J.every(((e,n)=>e===t[n])))return}else if(J===t)return;A&&A(e,t,n,r),Q(t)},we=r.useRef(!1),ke=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(T){i=Array.isArray(J)?J.slice():[];const e=Up(i,(e=>k(t,e)));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}ne(e,i),ye(e,i,o,{option:t}),m||e.ctrlKey||e.metaKey||ve(e,o),(!0===a||"touch"===a&&we.current||"mouse"===a&&!we.current)&&V.current.blur()},Ce=(e,t)=>{if(!T)return;ve(e,"toggleInput");let n=G;-1===G?""===_&&"previous"===t&&(n=J.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===J.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===J.length||"previous"===t&&-1===n)return-1;const e=U.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),q(n),pe(n)},xe=e=>{N.current=!0,$(""),M&&M(e,"","clear"),ye(e,T?[]:null,"clear")},Se=e=>n=>{if(e.onKeyDown&&e.onKeyDown(n),!n.defaultMuiPrevented&&(-1!==G&&-1===["ArrowLeft","ArrowRight"].indexOf(n.key)&&(q(-1),pe(-1)),229!==n.which))switch(n.key){case"Home":ce&&x&&(n.preventDefault(),he({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":ce&&x&&(n.preventDefault(),he({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),he({diff:-5,direction:"previous",reason:"keyboard",event:n}),be(n);break;case"PageDown":n.preventDefault(),he({diff:5,direction:"next",reason:"keyboard",event:n}),be(n);break;case"ArrowDown":n.preventDefault(),he({diff:1,direction:"next",reason:"keyboard",event:n}),be(n);break;case"ArrowUp":n.preventDefault(),he({diff:-1,direction:"previous",reason:"keyboard",event:n}),be(n);break;case"ArrowLeft":Ce(n,"previous");break;case"ArrowRight":Ce(n,"next");break;case"Enter":if(-1!==X.current&&ce){const e=ue[X.current],r=!!y&&y(e);if(n.preventDefault(),r)return;ke(n,e,"selectOption"),t&&V.current.setSelectionRange(V.current.value.length,V.current.value.length)}else v&&""!==_&&!1===le&&(T&&n.preventDefault(),ke(n,_,"createOption","freeSolo"));break;case"Escape":ce?(n.preventDefault(),n.stopPropagation(),ve(n,"escape")):c&&(""!==_||T&&J.length>0)&&(n.preventDefault(),n.stopPropagation(),xe(n));break;case"Backspace":if(T&&""===_&&J.length>0){const e=-1===G?J.length-1:G,t=J.slice();t.splice(e,1),ye(n,t,"removeOption",{option:J[e]})}}},Ee=e=>{te(!0),Z&&!N.current&&be(e)},Te=e=>{null!==W.current&&W.current.parentElement.contains(document.activeElement)?V.current.focus():(te(!1),H.current=!0,N.current=!1,o&&-1!==X.current&&ce?ke(e,ue[X.current],"blur"):o&&v&&""!==_?ke(e,_,"blur","freeSolo"):l&&ne(e,J),ve(e,"blur"))},Ae=e=>{const t=e.target.value;_!==t&&($(t),se(!1),M&&M(e,t,"input")),""===t?p||T||ye(e,null,"clear"):be(e)},Re=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Oe=()=>{we.current=!0},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,ue[t],"selectOption"),we.current=!1},Be=e=>t=>{const n=J.slice();n.splice(e,1),ye(t,n,"removeOption",{option:J[e]})},Ie=e=>{oe?ve(e,"toggleInput"):be(e)},Ze=e=>{e.target.getAttribute("id")!==F&&e.preventDefault()},Le=()=>{V.current.focus(),D&&H.current&&V.current.selectionEnd-V.current.selectionStart==0&&V.current.select(),H.current=!1},De=e=>{""!==_&&oe||Ie(e)};let je=v&&_.length>0;je=je||(T?J.length>0:null!==J);let Fe=ue;return C&&(new Map,Fe=ue.reduce(((e,t,n)=>{const r=C(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),i&&ee&&Te(),{getRootProps:(e={})=>(0,s.Z)({"aria-owns":de?`${F}-listbox`:null,role:"combobox","aria-expanded":de},e,{onKeyDown:Se(e),onMouseDown:Ze,onClick:Le}),getInputLabelProps:()=>({id:`${F}-label`,htmlFor:F}),getInputProps:()=>({id:F,value:_,onBlur:Te,onFocus:Ee,onChange:Ae,onMouseDown:De,"aria-activedescendant":ce?"":null,"aria-autocomplete":t?"both":"list","aria-controls":de?`${F}-listbox`:void 0,autoComplete:"off",ref:V,autoCapitalize:"none",spellCheck:"false"}),getClearProps:()=>({tabIndex:-1,onClick:xe}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Ie}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,onDelete:Be(e)}),getListboxProps:()=>({role:"listbox",id:`${F}-listbox`,"aria-labelledby":`${F}-label`,ref:ge,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(T?J:[J]).some((e=>null!=e&&k(t,e))),r=!!y&&y(t);return{key:z(t),tabIndex:-1,role:"option",id:`${F}-option-${e}`,onMouseOver:Re,onClick:Me,onTouchStart:Oe,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:F,inputValue:_,value:J,dirty:je,popupOpen:ce,focused:ee||-1!==G,anchorEl:U,setAnchorEl:Y,focusedTag:G,groupedOptions:Fe}}({sx:{width:"200px",align:"left"},id:"payment-methods",multiple:!0,options:"fiat"==e.optionsType?lm:cm,getOptionLabel:e=>e.name,onInputChange:e=>h(e&&e.target.value?e.target.value:""),onChange:(t,n)=>e.onAutocompleteChange(f(n)),onClose:()=>h((()=>""))}),[m,h]=(0,r.useState)();function f(e){for(var t="",n=e.length,r=0;r"")),(n||null==n)&&e.onAutocompleteChange(f(u)),!1}return r.createElement(em,null,r.createElement("div",{style:{height:"5px"}}),r.createElement("div",t(),r.createElement(tm,$p({},n(),{error:e.error}),e.label),r.createElement(nm,{ref:p,error:e.error,className:d?"focused":""},u.map(((e,t)=>r.createElement(om,$p({label:e.name,icon:e.icon},a({index:t}))))),r.createElement("input",$p({},o(),{value:m})))),c.length>0?r.createElement(im,i(),r.createElement("div",{style:{position:"fixed",minHeight:"20px",marginLeft:"53px",marginTop:"-13px"}},r.createElement(am,null,r.createElement("i",null,e.listHeaderText))),c.map(((e,t)=>r.createElement("li",l({option:e,index:t}),r.createElement(pt.Z,{fullWidth:!0,color:"inherit",size:"small",sx:{textTransform:"none"},style:{justifyContent:"flex-start"}},r.createElement("div",{style:{position:"relative",right:"4px",top:"4px"}},r.createElement(_p.Z,{style:{color:"#1976d2"},sx:{width:18,height:18}})),e.name),r.createElement("div",{style:{position:"relative",top:"5px"}},r.createElement(Gp.Z,null))))),null!=m&&m.length>2?r.createElement(pt.Z,{size:"small",fullWidth:!0,onClick:()=>g(o())},r.createElement(Kp.Z,{sx:{width:18,height:18}}),e.addNewButtonText):null):o().value.length>0?r.createElement(im,i(),r.createElement(pt.Z,{fullWidth:!0,onClick:()=>g(o())},r.createElement(Kp.Z,{sx:{width:20,height:20}}),e.addNewButtonText)):null)}var lm=[{name:"Revolut",icon:"revolut"},{name:"CashApp",icon:"cashapp"},{name:"Zelle",icon:"zelle"},{name:"Strike",icon:"strike"},{name:"Rebellion",icon:"rebellion"},{name:"Instant SEPA",icon:"sepa"},{name:"Interac e-Transfer",icon:"interac"},{name:"Wise",icon:"wise"},{name:"Venmo",icon:"venmo"},{name:"Faster Payments",icon:"faster"},{name:"Paypal",icon:"paypal"},{name:"LINE Pay",icon:"linepay"},{name:"PromptPay",icon:"promptpay"},{name:"Bizum",icon:"bizum"},{name:"N26",icon:"n26"},{name:"Amazon GiftCard",icon:"amazon"},{name:"Bancolombia",icon:"bancolombia"},{name:"SPEI",icon:"spei"},{name:"PIX",icon:"pix"},{name:"HalCash",icon:"halcash"},{name:"Vivid",icon:"vivid"},{name:"Google Play Gift Code",icon:"googleplay"},{name:"Nequi",icon:"nequi"},{name:"MercadoPago",icon:"mercadopago"},{name:"Monero",icon:"monero"},{name:"USDT",icon:"usdt"},{name:"Airtel Money",icon:"airtel"},{name:"MTN Money",icon:"mtn"},{name:"M-Pesa",icon:"mpesa"},{name:"MoMo",icon:"momo"},{name:"Tigo Pesa",icon:"tigopesa"},{name:"Cash F2F",icon:"cash"}],cm=[{name:"On-Chain BTC",icon:"onchain"},{name:"RBTC",icon:"rbtc"},{name:"LBTC",icon:"lbtc"},{name:"WBTC",icon:"wbtc"}],um=n(3595),dm=n(6517);const pm=JSON.parse('{"1":"USD","2":"EUR","3":"JPY","4":"GBP","5":"AUD","6":"CAD","7":"CHF","8":"CNY","9":"HKD","10":"NZD","11":"SEK","12":"KRW","13":"SGD","14":"NOK","15":"MXN","16":"KRW","17":"RUB","18":"ZAR","19":"TRY","20":"BRL","21":"CLP","22":"CZK","23":"DKK","24":"HRK","25":"HUF","26":"INR","27":"ISK","28":"PLN","29":"RON","30":"ARS","31":"VES","32":"COP","33":"PEN","34":"UYU","35":"PYG","36":"BOB","37":"IDR","38":"ANG","39":"CRC","40":"CUP","41":"DOP","42":"GHS","43":"GTQ","44":"ILS","45":"JMD","46":"KES","47":"KZT","48":"MYR","49":"NAD","50":"NGN","51":"AZN","52":"PAB","53":"PHP","54":"PKR","55":"QAR","56":"SAR","57":"THB","58":"TTD","59":"VND","60":"XOF","61":"TWD","300":"XAU","1000":"BTC"}');function mm(){return mm=Object.assign||function(e){for(var t=1;t{this.setState({type:e.target.value})})),hm(this,"handleCurrencyChange",(e=>{this.setState({currency:e.target.value,currencyCode:this.getCurrencyCode(e.target.value)}),this.state.enableAmountRange&&this.setState({minAmount:parseFloat(Number(.25*this.state.limits[e.target.value].max_amount).toPrecision(2)),maxAmount:parseFloat(Number(.75*this.state.limits[e.target.value].max_amount).toPrecision(2))})})),hm(this,"handleAmountChange",(e=>{this.setState({amount:e.target.value})})),hm(this,"handleMinAmountChange",(e=>{this.setState({minAmount:parseFloat(Number(e.target.value).toPrecision(e.target.value<100?2:3))})})),hm(this,"handleMaxAmountChange",(e=>{this.setState({maxAmount:parseFloat(Number(e.target.value).toPrecision(e.target.value<100?2:3))})})),hm(this,"handleRangeAmountChange",((e,t,n)=>{var r=this.getMaxAmount(),o=this.getMinAmount(),a=e.target.value[0],i=e.target.value[1],s=this.minRangeAmountMultiple,l=this.maxRangeAmountMultiple;a>r/s&&(a=r/s),ii/s?0===n?i=s*a:a=i/s:a{e.length>50?this.setState({badPaymentMethod:!0}):this.setState({payment_method:e.substring(0,53),badPaymentMethod:e.length>50})})),hm(this,"handlePremiumChange",(e=>{const{t}=this.props;if(e.target.value>999)var n=t("Must be less than {{max}}%",{max:999});e.target.value<=-100&&(n=t("Must be more than {{min}}%",{min:-100})),this.setState({premium:e.target.value,badPremium:n})})),hm(this,"handleSatoshisChange",(e=>{const{t}=this.props;if(e.target.value>this.maxTradeSats)var n=t("Must be less than {{maxSats}",{maxSats:gm(this.maxTradeSats)});e.target.value{this.setState({is_explicit:!1}),this.handlePremiumChange()})),hm(this,"handleClickExplicit",(e=>{this.state.enableAmountRange||(this.setState({is_explicit:!0}),this.handleSatoshisChange())})),hm(this,"handleCreateOfferButtonPressed",(()=>{null==this.state.amount&&this.setState({amount:0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":fm("csrftoken")},body:JSON.stringify({type:this.state.type,currency:this.state.currency,amount:this.state.has_range?null:this.state.amount,has_range:this.state.enableAmountRange,min_amount:this.state.minAmount,max_amount:this.state.maxAmount,payment_method:this.state.payment_method,is_explicit:this.state.is_explicit,premium:this.state.is_explicit?null:this.state.premium,satoshis:this.state.is_explicit?this.state.satoshis:null,public_duration:this.state.publicDuration,bond_size:this.state.bondSize,bondless_taker:this.state.allowBondless})};fetch("/api/make/",e).then((e=>e.json())).then((e=>this.setState({badRequest:e.bad_request})&(e.id?this.props.history.push("/order/"+e.id):"")))})),hm(this,"handleInputBondSizeChange",(e=>{this.setState({bondSize:""===e.target.value?1:Number(e.target.value)})})),hm(this,"StandardMakerOptions",(()=>{const{t:e}=this.props;return r.createElement(Me.Z,{elevation:12,style:{padding:8,width:"260px",align:"center"}},r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement("div",{style:{position:"relative",left:"5px"}},r.createElement(an.Z,{component:"fieldset"},r.createElement(sn.Z,null,e("Buy or Sell Bitcoin?")),r.createElement(bn,{row:!0,defaultValue:"0",onChange:this.handleTypeChange},r.createElement(vn.Z,{value:"0",control:r.createElement(Ln,{color:"primary"}),label:e("Buy"),labelPlacement:"Top"}),r.createElement(vn.Z,{value:"1",control:r.createElement(Ln,{color:"secondary"}),label:e("Sell"),labelPlacement:"Top"}))))),r.createElement(it,{containter:!0,xs:12,alignItems:"stretch",style:{display:"flex"}},r.createElement("div",{style:{maxWidth:150}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"500",enterDelay:"700",enterNextDelay:"2000",title:e("Amount of fiat to exchange for bitcoin")},r.createElement(ut.Z,{disabled:this.state.enableAmountRange,variant:this.state.enableAmountRange?"filled":"outlined",error:this.state.amount<=0&""!=this.state.amount,helperText:this.state.amount<=0&""!=this.state.amount?e("Invalid"):null,label:e("Amount"),type:"number",required:"true",value:this.state.amount,inputProps:{min:0,style:{textAlign:"center"}},onChange:this.handleAmountChange}))),r.createElement("div",null,r.createElement(Dn.Z,{sx:{width:"120px"},required:"true",defaultValue:this.defaultCurrency,inputProps:{style:{textAlign:"center"}},onChange:this.handleCurrencyChange},Object.entries(pm).map((([e,t])=>r.createElement(jn.Z,{value:parseInt(e)},r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},Hp(t)," "+t))))))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"300",enterDelay:"700",enterNextDelay:"2000",title:e("Enter your preferred fiat payment methods. Fast methods are highly recommended.")},r.createElement(sm,{onAutocompleteChange:this.handlePaymentMethodChange,optionsType:1e3==this.state.currency?"swap":"fiat",error:this.state.badPaymentMethod,helperText:this.state.badPaymentMethod?e("Must be shorter than 65 characters"):"",label:1e3==this.state.currency?e("Swap Destination(s)"):e("Fiat Payment Method(s)"),listHeaderText:e("You can add any method"),addNewButtonText:e("Add New")}))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(an.Z,{component:"fieldset"},r.createElement(sn.Z,null,r.createElement("div",{align:"center"},e("Choose a Pricing Method"))),r.createElement(bn,{row:!0,defaultValue:"relative"},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",enterDelay:"1000",enterNextDelay:"2000",title:e("Let the price move with the market")},r.createElement(vn.Z,{value:"relative",control:r.createElement(Ln,{color:"primary"}),label:e("Relative"),labelPlacement:"Top",onClick:this.handleClickRelative})),r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",enterDelay:"1000",enterNextDelay:"2000",title:e("Set a fix amount of satoshis")},r.createElement(vn.Z,{disabled:this.state.enableAmountRange,value:"explicit",control:r.createElement(Ln,{color:"secondary"}),label:e("Explicit"),labelPlacement:"Top",onClick:this.handleClickExplicit}))))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement("div",{style:{display:this.state.is_explicit?"":"none"}},r.createElement(ut.Z,{sx:{width:240},label:e("Satoshis"),error:this.state.badSatoshis,helperText:this.state.badSatoshis,type:"number",required:"true",value:this.state.satoshis,inputProps:{min:this.minTradeSats,max:this.maxTradeSats,style:{textAlign:"center"}},onChange:this.handleSatoshisChange})),r.createElement("div",{style:{display:this.state.is_explicit?"none":""}},r.createElement(ut.Z,{sx:{width:240},error:this.state.badPremium,helperText:this.state.badPremium,label:e("Premium over Market (%)"),type:"number",inputProps:{min:-100,max:999,style:{textAlign:"center"}},onChange:this.handlePremiumChange}))))})),hm(this,"handleChangePublicDuration",(e=>{let t=new Date(e);var n=60*t.getHours()*60+60*t.getMinutes();this.setState({changedPublicExpiryTime:!0,publicExpiryTime:e,publicDuration:n,badDuration:!1})})),hm(this,"getMaxAmount",(()=>{if(null==this.state.limits)var e=null;else e=this.state.limits[this.state.currency].max_amount*(1+this.state.premium/100);return parseFloat(Number(.98*e).toPrecision(2))})),hm(this,"getMinAmount",(()=>{if(null==this.state.limits)var e=null;else e=this.state.limits[this.state.currency].min_amount*(1+this.state.premium/100);return parseFloat(Number(1.1*e).toPrecision(2))})),hm(this,"RangeSlider",(0,Ie.ZP)(Cr)((({theme:e})=>({color:"primary",height:3,padding:"13px 0","& .MuiSlider-thumb":{height:27,width:27,backgroundColor:"#fff",border:"1px solid currentColor","&:hover":{boxShadow:"0 0 0 8px rgba(58, 133, 137, 0.16)"},"& .range-bar":{height:9,width:1,backgroundColor:"currentColor",marginLeft:1,marginRight:1}},"& .MuiSlider-track":{height:3},"& .MuiSlider-rail":{color:"dark"===e.palette.mode?"#bfbfbf":"#d8d8d8",opacity:"dark"===e.palette.mode?void 0:1,height:3}})))),hm(this,"minAmountError",(()=>this.state.minAmountthis.state.maxAmount)),hm(this,"maxAmountError",(()=>this.state.maxAmount>this.getMaxAmount()||this.state.maxAmountthis.state.maxAmount)),hm(this,"rangeText",(()=>{const{t:e}=this.props;return r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},r.createElement("span",{style:{width:40}},e("From")),r.createElement(ut.Z,{variant:"standard",type:"number",size:"small",value:this.state.minAmount,onChange:this.handleMinAmountChange,error:this.minAmountError(),sx:{width:9*this.state.minAmount.toString().length,maxWidth:40}}),r.createElement("span",{style:{width:20}},e("to")),r.createElement(ut.Z,{variant:"standard",size:"small",type:"number",value:this.state.maxAmount,error:this.maxAmountError(),onChange:this.handleMaxAmountChange,sx:{width:9*this.state.maxAmount.toString().length,maxWidth:50}}),r.createElement("span",null,this.state.currencyCode))})),hm(this,"AdvancedMakerOptions",(()=>{const{t:e}=this.props;return r.createElement(Me.Z,{elevation:12,style:{padding:8,width:"280px",align:"center"}},r.createElement(it,{container:!0,xs:12,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement(an.Z,{align:"center"},r.createElement(sn.Z,null,r.createElement(lt.Z,{enterTouchDelay:"0",placement:"top",align:"center",title:e("Let the taker chose an amount within the range")},r.createElement("div",{align:"center",style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},r.createElement(xr.Z,{onChange:e=>this.setState({enableAmountRange:e.target.checked,is_explicit:!1})&(e.target.checked?this.getLimits():null)}),this.state.enableAmountRange&null!=this.state.minAmount?r.createElement(this.rangeText,null):e("Enable Amount Range")))),r.createElement("div",{style:{display:1==this.state.loadingLimits?"":"none"}},r.createElement(Wr,null)),r.createElement("div",{style:{display:0==this.state.loadingLimits?"":"none"}},r.createElement(this.RangeSlider,{disableSwap:!0,sx:{width:200,align:"center"},disabled:!this.state.enableAmountRange||this.state.loadingLimits,value:[this.state.minAmount,this.state.maxAmount],step:(this.getMaxAmount()-this.getMinAmount())/5e3,valueLabelDisplay:"auto",components:{Thumb:this.RangeThumbComponent},valueLabelFormat:e=>parseFloat(Number(e).toPrecision(e<100?2:3))+" "+this.state.currencyCode,marks:null==this.state.limits?null:[{value:this.getMinAmount(),label:this.getMinAmount()+" "+this.state.currencyCode},{value:this.getMaxAmount(),label:this.getMaxAmount()+" "+this.state.currencyCode}],min:this.getMinAmount(),max:this.getMaxAmount(),onChange:this.handleRangeAmountChange})))),r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement(Ko,{dateAdapter:Md},r.createElement(Hl,{sx:{width:210,align:"center"},ampm:!1,openTo:"hours",views:["hours","minutes"],inputFormat:"HH:mm",mask:"__:__",components:{OpenPickerIcon:dm.Z},open:this.state.openTimePicker,InputProps:{endAdornment:r.createElement(Qr,{position:"end"},r.createElement(dm.Z,null))},renderInput:e=>r.createElement(ut.Z,e),label:e("Public Duration (HH:mm)"),value:this.state.publicExpiryTime,onChange:this.handleChangePublicDuration,minTime:new Date(0,0,0,0,10),maxTime:new Date(0,0,0,23,59)}))),r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement(an.Z,{align:"center"},r.createElement(lt.Z,{enterDelay:"800",enterTouchDelay:"0",placement:"top",title:e("Set the skin-in-the-game, increase for higher safety assurance")},r.createElement(sn.Z,null,r.createElement("div",{align:"center",style:{display:"flex",flexWrap:"wrap",transform:"translate(20%, 0)"}},e("Fidelity Bond Size")," ",r.createElement(um.Z,{sx:{height:20,width:20}})))),r.createElement(Cr,{sx:{width:220,align:"center"},"aria-label":"Bond Size (%)",defaultValue:1,valueLabelDisplay:"auto",valueLabelFormat:e=>e+"%",step:.25,marks:[{value:1,label:"1%"},{value:5,label:"5%"},{value:10,label:"10%"},{value:15,label:"15%"}],min:1,max:15,onChange:e=>this.setState({bondSize:e.target.value})}))),r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement(lt.Z,{enterTouchDelay:"0",title:e("COMING SOON - High risk! Limited to {{limitSats}}K Sats",{limitSats:this.maxBondlessSats/1e3})},r.createElement(vn.Z,{label:e("Allow bondless takers"),control:r.createElement(xr.Z,{disabled:!0,color:"secondary",checked:this.state.allowBondless,onChange:()=>this.setState({allowBondless:!this.state.allowBondless})})})))))})),hm(this,"makeOrderBox",(()=>{const[e,t]=r.useState(this.state.showAdvanced),{t:n}=this.props;return r.createElement(oo,{sx:{width:this.state.showAdvanced?"270px":"252px"}},r.createElement(oo,{sx:{borderBottom:1,borderColor:"divider",position:"relative",left:"5px"}},r.createElement(No,{value:e||0,onChange:(e,n)=>{this.setState({showAdvanced:n}),t(n)},variant:"fullWidth"},r.createElement(Go,mm({label:n("Order")},this.a11yProps(0))),r.createElement(Go,mm({label:n("Customize")},this.a11yProps(1))))),r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement("div",{style:{display:0==this.state.showAdvanced?"":"none"}},r.createElement(this.StandardMakerOptions,null)),r.createElement("div",{style:{display:1==this.state.showAdvanced?"":"none"}},r.createElement(this.AdvancedMakerOptions,null))))})),this.state={is_explicit:!1,type:0,currency:this.defaultCurrency,currencyCode:this.defaultCurrencyCode,payment_method:this.defaultPaymentMethod,premium:0,satoshis:null,showAdvanced:!1,allowBondless:!1,publicExpiryTime:new Date(0,0,0,23,59),enableAmountRange:!1,minAmount:null,bondSize:1,limits:null,minAmount:null,maxAmount:null,loadingLimits:!1}}getLimits(){this.setState({loadingLimits:!0}),fetch("/api/limits/").then((e=>e.json())).then((e=>this.setState({limits:e,loadingLimits:!1,minAmount:this.state.amount?parseFloat((this.state.amount/2).toPrecision(2)):parseFloat(Number(.25*e[this.state.currency].max_amount).toPrecision(2)),maxAmount:this.state.amount?this.state.amount:parseFloat(Number(.75*e[this.state.currency].max_amount).toPrecision(2))})))}a11yProps(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}getCurrencyCode(e){return pm[e.toString()]}RangeThumbComponent(e){const{children:t,...n}=e;return r.createElement(gr,n,t,r.createElement("span",{className:"range-bar"}),r.createElement("span",{className:"range-bar"}),r.createElement("span",{className:"range-bar"}))}render(){const{t:e}=this.props;return r.createElement(it,{container:!0,xs:12,align:"center",spacing:1,sx:{minWidth:380}},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(this.makeOrderBox,null)),r.createElement(it,{item:!0,xs:12,align:"center"},null==this.state.amount&(0==this.state.enableAmountRange||this.state.loadingLimits)||this.state.enableAmountRange&(this.minAmountError()||this.maxAmountError())||this.state.amount<=0&!this.state.enableAmountRange||this.state.is_explicit&(null!=this.state.badSatoshis||null==this.state.satoshis)||!this.state.is_explicit&null!=this.state.badPremium?r.createElement(lt.Z,{enterTouchDelay:"0",title:e("You must fill the order correctly")},r.createElement("div",null,r.createElement(pt.Z,{disabled:!0,color:"primary",variant:"contained",onClick:this.handleCreateOfferButtonPressed},e("Create Order")))):r.createElement(pt.Z,{color:"primary",variant:"contained",onClick:this.handleCreateOfferButtonPressed},e("Create Order"))),r.createElement(it,{item:!0,xs:12,align:"center"},this.state.badRequest?r.createElement(st.Z,{component:"subtitle2",variant:"subtitle2",color:"secondary"},this.state.badRequest," ",r.createElement("br",null)):"",r.createElement(st.Z,{component:"subtitle2",variant:"subtitle2"},r.createElement("div",{align:"center"},0==this.state.type?e("Create a BTC buy order for "):e("Create a BTC sell order for "),this.state.enableAmountRange&null!=this.state.minAmount?this.state.minAmount+"-"+this.state.maxAmount:gm(this.state.amount)," "+this.state.currencyCode,this.state.is_explicit?e(" of {{satoshis}} Satoshis",{satoshis:gm(this.state.satoshis)}):0==this.state.premium?e(" at market price"):this.state.premium>0?e(" at a {{premium}}% premium",{premium:this.state.premium}):e(" at a {{discount}}% discount",{discount:-this.state.premium}))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{color:"secondary",variant:"contained",to:"/",component:K},e("Back")))))}}const vm=xe()(bm);var ym=n(9773);function wm(e){return(0,Ze.Z)("MuiListItemButton",e)}const km=(0,Le.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Cm=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],xm=(0,Ie.ZP)(go.Z,{shouldForwardProp:e=>(0,Ie.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${km.selected}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${km.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${km.selected}:hover`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${km.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${km.disabled}`]:{opacity:e.palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Sm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:i="div",children:l,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:p,selected:m=!1}=n,h=(0,M.Z)(n,Cm),f=r.useContext(ym.Z),g={dense:c||f.dense||!1,alignItems:o,disableGutters:u},b=r.useRef(null);(0,$o.Z)((()=>{a&&b.current&&b.current.focus()}),[a]);const v=(0,s.Z)({},n,{alignItems:o,dense:g.dense,disableGutters:u,divider:d,selected:m}),y=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:i,selected:l}=e,c={root:["root",r&&"dense",!a&&"gutters",i&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},u=(0,Ee.Z)(c,wm,n);return(0,s.Z)({},n,u)})(v),w=(0,Mt.Z)(b,t);return(0,Ne.jsx)(ym.Z.Provider,{value:g,children:(0,Ne.jsx)(xm,(0,s.Z)({ref:w,component:i,focusVisibleClassName:(0,Se.Z)(y.focusVisible,p),ownerState:v},h,{classes:y,children:l}))})})),Em=Sm;function Pm(e){return(0,Ze.Z)("MuiListItemAvatar",e)}(0,Le.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Tm=["className"],Am=(0,Ie.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({ownerState:e})=>(0,s.Z)({minWidth:56,flexShrink:0},"flex-start"===e.alignItems&&{marginTop:8}))),Rm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemAvatar"}),{className:o}=n,a=(0,M.Z)(n,Tm),i=r.useContext(ym.Z),l=(0,s.Z)({},n,{alignItems:i.alignItems}),c=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Ee.Z)(r,Pm,n)})(l);return(0,Ne.jsx)(Am,(0,s.Z)({className:(0,Se.Z)(c.root,o),ownerState:l,ref:t},a))})),Om=Rm;var Mm=n(9346),Bm=n(6336);const Im=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Zm=(0,Ie.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bm.Z.primary}`]:t.primary},{[`& .${Bm.Z.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>(0,s.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),Lm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p}=n,m=(0,M.Z)(n,Im),{dense:h}=r.useContext(ym.Z);let f=null!=c?c:o,g=d;const b=(0,s.Z)({},n,{disableTypography:i,inset:l,primary:!!f,secondary:!!g,dense:h}),v=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e,i={root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,Ee.Z)(i,Bm.L,t)})(b);return null==f||f.type===st.Z||i||(f=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:h?"body2":"body1",className:v.primary,component:"span",display:"block"},u,{children:f}))),null==g||g.type===st.Z||i||(g=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},p,{children:g}))),(0,Ne.jsxs)(Zm,(0,s.Z)({className:(0,Se.Z)(v.root,a),ownerState:b,ref:t},m,{children:[f,g]}))})),Dm=Lm;var jm=n(428);const Fm=[{name:"Revolut",icon:"revolut"},{name:"CashApp",icon:"cashapp"},{name:"Zelle",icon:"zelle"},{name:"Strike",icon:"strike"},{name:"Rebellion",icon:"rebellion"},{name:"Instant SEPA",icon:"sepa"},{name:"Interac e-Transfer",icon:"interac"},{name:"Wise",icon:"wise"},{name:"Venmo",icon:"venmo"},{name:"Faster Payments",icon:"faster"},{name:"Paypal",icon:"paypal"},{name:"LINE Pay",icon:"linepay"},{name:"PromptPay",icon:"promptpay"},{name:"Bizum",icon:"bizum"},{name:"N26",icon:"n26"},{name:"Amazon GiftCard",icon:"amazon"},{name:"Bancolombia",icon:"bancolombia"},{name:"SPEI",icon:"spei"},{name:"PIX",icon:"pix"},{name:"HalCash",icon:"halcash"},{name:"Vivid",icon:"vivid"},{name:"Google Play Gift Code",icon:"googleplay"},{name:"Nequi",icon:"nequi"},{name:"MercadoPago",icon:"mercadopago"},{name:"Monero",icon:"monero"},{name:"USDT",icon:"usdt"},{name:"Airtel Money",icon:"airtel"},{name:"MTN Money",icon:"mtn"},{name:"M-Pesa",icon:"mpesa"},{name:"MoMo",icon:"momo"},{name:"Tigo Pesa",icon:"tigopesa"},{name:"Cash F2F",icon:"cash"},{name:"On-Chain BTC",icon:"onchain"},{name:"RBTC",icon:"rbtc"},{name:"LBTC",icon:"lbtc"},{name:"WBTC",icon:"wbtc"}];class zm extends r.Component{constructor(e){super(e)}parseText(){var e=[],t=this.props.text;Fm.forEach(((n,o)=>{this.props.text.includes(n.name)&&(t=t.replace(n.name,""),e.push(r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:n.name},r.createElement("div",{style:{display:"inline-block",width:this.props.size+2,height:this.props.size}},r.createElement(Qp,{width:this.props.size,height:this.props.size,icon:n.icon})))))}));var n=t.replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","");return console.log(n),n.length>0&&e.push(r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:this.props.verbose?this.props.othersText:this.props.othersText+": "+t},r.createElement("div",{style:{position:"relative",display:"inline-block",width:this.props.size+2,maxHeight:this.props.size,top:"-1px"}},r.createElement(Qp,{width:1.1*this.props.size,height:1.1*this.props.size,icon:"custom"})))),this.props.verbose?r.createElement(r.Fragment,null,e," ",r.createElement("div",{style:{display:"inline-block"}}," ",r.createElement("span",null,t))):e}render(){return r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},this.parseText())}}function Nm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Hm extends r.Component{constructor(e){super(e),Nm(this,"handleRowClick",(e=>{this.props.history.push("/order/"+e)})),Nm(this,"handleTypeChange",(e=>{this.setState({loading:!0}),this.props.setAppState({bookType:e.target.value}),this.getOrderDetails(e.target.value,this.props.currency)})),Nm(this,"handleCurrencyChange",(e=>{var t=e.target.value;this.setState({loading:!0}),this.props.setAppState({bookCurrency:t,bookCurrencyCode:this.getCurrencyCode(t)}),this.getOrderDetails(this.props.type,t)})),Nm(this,"amountToString",((e,t,n,r)=>t?this.pn(parseFloat(Number(n).toPrecision(2)))+"-"+this.pn(parseFloat(Number(r).toPrecision(2))):this.pn(parseFloat(Number(e).toPrecision(3))))),Nm(this,"bookListTableDesktop",(()=>{const{t:e}=this.props;return r.createElement("div",{style:{height:422,width:"100%"}},r.createElement(jm._$r,{rows:this.state.orders.map((t=>({id:t.id,avatar:window.location.origin+"/static/assets/avatars/"+t.maker_nick+".png",robot:t.maker_nick,robot_status:t.maker_status,type:t.type?e("Seller"):e("Buyer"),amount:t.amount,has_range:t.has_range,min_amount:t.min_amount,max_amount:t.max_amount,currency:this.getCurrencyCode(t.currency),payment_method:t.payment_method,price:t.price,premium:t.premium}))),loading:this.state.loading,columns:[{field:"robot",headerName:e("Robot"),width:240,renderCell:t=>r.createElement(Em,{style:{cursor:"pointer"}},r.createElement(Om,null,r.createElement(lt.Z,{placement:"right",enterTouchDelay:"0",title:e(t.row.robot_status)},r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(t.row.robot_status)},r.createElement("div",{style:{width:45,height:45}},r.createElement(kt.Z,{className:"bookAvatar",disableError:"true",disableSpinner:"true",color:"null",alt:t.row.robot,src:t.row.avatar}))))),r.createElement(Dm,{primary:t.row.robot}))},{field:"type",headerName:e("Is"),width:60},{field:"amount",headerName:e("Amount"),type:"number",width:90,renderCell:e=>r.createElement("div",{style:{cursor:"pointer"}},this.amountToString(e.row.amount,e.row.has_range,e.row.min_amount,e.row.max_amount))},{field:"currency",headerName:e("Currency"),width:100,renderCell:e=>r.createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center",flexWrap:"wrap"}},e.row.currency+" ",Hp(e.row.currency))},{field:"payment_method",headerName:e("Payment Method"),width:180,renderCell:t=>r.createElement("div",{style:{cursor:"pointer"}},r.createElement(zm,{othersText:e("Others"),verbose:!0,size:20,text:t.row.payment_method}))},{field:"price",headerName:e("Price"),type:"number",width:140,renderCell:e=>r.createElement("div",{style:{cursor:"pointer"}},this.pn(e.row.price)+" "+e.row.currency+"/BTC")},{field:"premium",headerName:e("Premium"),type:"number",width:100,renderCell:e=>r.createElement("div",{style:{cursor:"pointer"}},parseFloat(parseFloat(e.row.premium).toFixed(4))+"%")}],pageSize:this.state.loading?0:this.state.pageSize,rowsPerPageOptions:[6,20,50],onPageSizeChange:e=>this.setState({pageSize:e}),onRowClick:e=>this.handleRowClick(e.row.id)}))})),Nm(this,"bookListTablePhone",(()=>{const{t:e}=this.props;return r.createElement("div",{style:{height:422,width:"100%"}},r.createElement(jm._$r,{loading:this.state.loading,rows:this.state.orders.map((t=>({id:t.id,avatar:window.location.origin+"/static/assets/avatars/"+t.maker_nick+".png",robot:t.maker_nick,robot_status:t.maker_status,type:t.type?e("Seller"):e("Buyer"),amount:t.amount,has_range:t.has_range,min_amount:t.min_amount,max_amount:t.max_amount,currency:this.getCurrencyCode(t.currency),payment_method:t.payment_method,price:t.price,premium:t.premium}))),columns:[{field:"robot",headerName:e("Robot"),width:64,renderCell:t=>r.createElement(lt.Z,{placement:"right",enterTouchDelay:"0",title:t.row.robot+" ("+e(t.row.robot_status)+")"},r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(t.row.robot_status)},r.createElement("div",{style:{width:45,height:45}},r.createElement(kt.Z,{className:"bookAvatar",disableError:"true",disableSpinner:"true",color:"null",alt:t.row.robot,src:t.row.avatar}))))},{field:"type",headerName:e("Is"),width:60,hide:"true"},{field:"amount",headerName:e("Amount"),type:"number",width:84,renderCell:t=>r.createElement(lt.Z,{placement:"right",enterTouchDelay:"0",title:e(t.row.type)},r.createElement("div",{style:{cursor:"pointer"}},this.amountToString(t.row.amount,t.row.has_range,t.row.min_amount,t.row.max_amount)))},{field:"currency",headerName:e("Currency"),width:85,renderCell:e=>r.createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center",flexWrap:"wrap"}},e.row.currency+" ",Hp(e.row.currency))},{field:"payment_method",headerName:e("Payment Method"),width:180,hide:"true"},{field:"payment_icons",headerName:e("Pay"),width:75,renderCell:t=>r.createElement("div",{style:{position:"relative",left:"-4px",cursor:"pointer",align:"center"}},r.createElement(zm,{othersText:e("Others"),size:16,text:t.row.payment_method}))},{field:"price",headerName:e("Price"),type:"number",width:140,hide:"true",renderCell:e=>r.createElement("div",{style:{cursor:"pointer"}},this.pn(e.row.price)+" "+e.row.currency+"/BTC")},{field:"premium",headerName:e("Premium"),type:"number",width:85,renderCell:e=>r.createElement(lt.Z,{placement:"left",enterTouchDelay:"0",title:this.pn(e.row.price)+" "+e.row.currency+"/BTC"},r.createElement("div",{style:{cursor:"pointer"}},parseFloat(parseFloat(e.row.premium).toFixed(4))+"%"))}],pageSize:this.state.loading?0:this.state.pageSize,rowsPerPageOptions:[6,20,50],onPageSizeChange:e=>this.setState({pageSize:e}),onRowClick:e=>this.handleRowClick(e.row.id)}))})),this.state={orders:new Array({id:0}),loading:!0,pageSize:6},this.getOrderDetails(this.props.type,this.props.currency)}getOrderDetails(e,t){fetch("/api/book?currency="+t+"&type="+e).then((e=>e.json())).then((e=>this.setState({orders:e,not_found:e.not_found,loading:!1})))}getCurrencyCode(e){const{t}=this.props;return e?0==e?t("ANY_currency"):pm[e.toString()]:t("ANY_currency")}pn(e){if(null==e)return"null";var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}statusBadgeColor(e){return"Active"==e?"success":"Seen recently"==e?"warning":"Inactive"==e?"error":void 0}render(){const{t:e}=this.props;return r.createElement(it,{className:"orderBook",container:!0,spacing:1,sx:{minWidth:400}},r.createElement(it,{item:!0,xs:6,align:"right"},r.createElement(an.Z,{align:"center"},r.createElement(sn.Z,{align:"center"},e("I want to")),r.createElement(Dn.Z,{sx:{width:90},autoWidth:!0,label:e("Select Order Type"),required:"true",value:this.props.type,inputProps:{style:{textAlign:"center"}},onChange:this.handleTypeChange}," ",r.createElement(jn.Z,{value:2},e("ANY_type")),r.createElement(jn.Z,{value:1},e("BUY")),r.createElement(jn.Z,{value:0},e("SELL"))))),r.createElement(it,{item:!0,xs:6,align:"left"},r.createElement(an.Z,{align:"center"},r.createElement(sn.Z,{align:"center"},0==this.props.type?e("and receive"):1==this.props.type?e("and pay with"):e("and use")),r.createElement(Dn.Z,{sx:{width:110},label:e("Select Payment Currency"),required:"true",value:this.props.currency,inputProps:{style:{textAlign:"center"}},onChange:this.handleCurrencyChange}," ",r.createElement(jn.Z,{value:0},"🌍 "+e("ANY_currency")),Object.entries(pm).map((([e,t])=>r.createElement(jn.Z,{value:parseInt(e)},r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},Hp(t)," "+t))))))),this.state.not_found?"":r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h5",variant:"h5"},0==this.props.type?e("You are SELLING BTC for {{currencyCode}}",{currencyCode:this.props.currencyCode}):1==this.props.type?e("You are BUYING BTC for {{currencyCode}}",{currencyCode:this.props.currencyCode}):e("You are looking at all"))),this.state.not_found?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h5",variant:"h5"},0==this.props.type?e("No orders found to sell BTC for {{currencyCode}}",{currencyCode:this.props.currencyCode}):e("No orders found to buy BTC for {{currencyCode}}",{currencyCode:this.props.currencyCode}))),r.createElement("br",null),r.createElement(it,{item:!0},r.createElement(pt.Z,{size:"large",variant:"contained",color:"primary",to:"/make/",component:K},e("Make Order"))),r.createElement(st.Z,{color:"primary",component:"body1",variant:"body1"},e("Be the first one to create an order"),r.createElement("br",null),r.createElement("br",null))):r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(Yt(),{minWidth:930},r.createElement(Me.Z,{elevation:0,style:{width:925,maxHeight:500,overflow:"auto"}},r.createElement(this.bookListTableDesktop,null))),r.createElement(Yt(),{maxWidth:929},r.createElement(Me.Z,{elevation:0,style:{width:395,maxHeight:450,overflow:"auto"}},r.createElement(this.bookListTablePhone,null)))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{color:"secondary",variant:"contained",to:"/",component:K},e("Back"))))}}const Vm=xe()(Hm),Wm=["className","id"],Um=(0,Ie.ZP)(st.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ym=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=(0,M.Z)(n,Wm),l=n,c=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"]},xt,t)})(l),{titleId:u=a}=r.useContext(Fe);return(0,Ne.jsx)(Um,(0,s.Z)({component:"h2",className:(0,Se.Z)(c.root,o),ownerState:l,ref:t,variant:"h6",id:u},i))})),Gm=Ym;function qm(e){return(0,Ze.Z)("MuiDialogContentText",e)}(0,Le.Z)("MuiDialogContentText",["root"]);const Km=["children"],Xm=(0,Ie.ZP)(st.Z,{shouldForwardProp:e=>(0,Ie.FO)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiDialogContentText"}),r=(0,M.Z)(n,Km),o=(e=>{const{classes:t}=e,n=(0,Ee.Z)({root:["root"]},qm,t);return(0,s.Z)({},t,n)})(r);return(0,Ne.jsx)(Xm,(0,s.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:r},n,{classes:o}))})),Qm=Jm;var _m=n(2440),$m=n(8502);function eh(e){return(0,Ze.Z)("MuiListItem",e)}const th=(0,Le.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function nh(e){return(0,Ze.Z)("MuiListItemSecondaryAction",e)}(0,Le.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);const rh=["className"],oh=(0,Ie.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,s.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),ah=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=n,a=(0,M.Z)(n,rh),i=r.useContext(ym.Z),l=(0,s.Z)({},n,{disableGutters:i.disableGutters}),c=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,Ee.Z)(r,nh,n)})(l);return(0,Ne.jsx)(oh,(0,s.Z)({className:(0,Se.Z)(c.root,o),ownerState:l,ref:t},a))}));ah.muiName="ListItemSecondaryAction";const ih=ah,sh=["className"],lh=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],ch=(0,Ie.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,s.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${km.root}`]:{paddingRight:48}},{[`&.${th.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${th.selected}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${th.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${th.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${th.selected}:hover`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),uh=(0,Ie.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),dh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:l,className:c,component:u,components:d={},componentsProps:p={},ContainerComponent:m="li",ContainerProps:{className:h}={},dense:f=!1,disabled:g=!1,disableGutters:b=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:k,selected:C=!1}=n,x=(0,M.Z)(n.ContainerProps,sh),S=(0,M.Z)(n,lh),E=r.useContext(ym.Z),P={dense:f||E.dense||!1,alignItems:o,disableGutters:b},T=r.useRef(null);(0,$o.Z)((()=>{a&&T.current&&T.current.focus()}),[a]);const A=r.Children.toArray(l),R=A.length&&(0,$m.Z)(A[A.length-1],["ListItemSecondaryAction"]),O=(0,s.Z)({},n,{alignItems:o,autoFocus:a,button:i,dense:P.dense,disabled:g,disableGutters:b,disablePadding:v,divider:y,hasSecondaryAction:R,selected:C}),B=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,Ee.Z)(d,eh,r)})(O),I=(0,Mt.Z)(T,t),Z=d.Root||ch,L=p.root||{},D=(0,s.Z)({className:(0,Se.Z)(B.root,L.className,c),disabled:g},S);let j=u||"li";return i&&(D.component=u||"div",D.focusVisibleClassName=(0,Se.Z)(th.focusVisible,w),j=go.Z),R?(j=D.component||u?j:"div","li"===m&&("li"===j?j="div":"li"===D.component&&(D.component="div")),(0,Ne.jsx)(ym.Z.Provider,{value:P,children:(0,Ne.jsxs)(uh,(0,s.Z)({as:m,className:(0,Se.Z)(B.container,h),ref:I,ownerState:O},x,{children:[(0,Ne.jsx)(Z,(0,s.Z)({},L,!(0,Fn.Z)(Z)&&{as:j,ownerState:(0,s.Z)({},O,L.ownerState)},D,{children:A})),A.pop()]}))})):(0,Ne.jsx)(ym.Z.Provider,{value:P,children:(0,Ne.jsxs)(Z,(0,s.Z)({},L,{as:j,ref:I,ownerState:O},!(0,Fn.Z)(Z)&&{ownerState:(0,s.Z)({},O,L.ownerState)},D,{children:[A,k&&(0,Ne.jsx)(ih,{children:k})]}))})})),ph=dh,mh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function hh(e){return(0,Ze.Z)("MuiAvatar",e)}(0,Le.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const fh=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],gh=(0,Ie.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>(0,s.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:e.shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&{color:e.palette.background.default,backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]}))),bh=(0,Ie.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),vh=(0,Ie.ZP)(mh,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),yh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:l="div",imgProps:c,sizes:u,src:d,srcSet:p,variant:m="circular"}=n,h=(0,M.Z)(n,fh);let f=null;const g=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:o}){const[a,i]=r.useState(!1);return r.useEffect((()=>{if(!n&&!o)return;i(!1);let r=!0;const a=new Image;return a.onload=()=>{r&&i("loaded")},a.onerror=()=>{r&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,o&&(a.srcset=o),()=>{r=!1}}),[e,t,n,o]),a}((0,s.Z)({},c,{src:d,srcSet:p})),b=d||p,v=b&&"error"!==g,y=(0,s.Z)({},n,{colorDefault:!v,component:l,variant:m}),w=(e=>{const{classes:t,variant:n,colorDefault:r}=e,o={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,Ee.Z)(o,hh,t)})(y);return f=v?(0,Ne.jsx)(bh,(0,s.Z)({alt:o,src:d,srcSet:p,sizes:u,ownerState:y,className:w.img},c)):null!=a?a:b&&o?o[0]:(0,Ne.jsx)(vh,{className:w.fallback}),(0,Ne.jsx)(gh,(0,s.Z)({as:l,ownerState:y,className:(0,Se.Z)(w.root,i),ref:t},h,{children:f}))})),wh=yh;var kh=n(5097);const Ch=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],xh=(0,Ie.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,s.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:e.palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:(0,mt.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,s.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${e.palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,s.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${e.palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,s.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Sh=(0,Ie.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Eh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=("hr"!==i?"separator":void 0),textAlign:p="center",variant:m="fullWidth"}=n,h=(0,M.Z)(n,Ch),f=(0,s.Z)({},n,{absolute:r,component:i,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:m}),g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]};return(0,Ee.Z)(c,kh.V,r)})(f);return(0,Ne.jsx)(xh,(0,s.Z)({as:i,className:(0,Se.Z)(g.root,a),role:d,ref:t,ownerState:f},h,{children:o?(0,Ne.jsx)(Sh,{className:g.wrapper,ownerState:f,children:o}):null}))})),Ph=Eh,Th=(0,wn.Z)((0,Ne.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Ah(e){return(0,Ze.Z)("MuiChip",e)}const Rh=(0,Le.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]),Oh=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],Mh=(0,Ie.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,clickable:o,onDelete:a,size:i,variant:s}=n;return[{[`& .${Rh.avatar}`]:t.avatar},{[`& .${Rh.avatar}`]:t[`avatar${(0,Te.Z)(i)}`]},{[`& .${Rh.avatar}`]:t[`avatarColor${(0,Te.Z)(r)}`]},{[`& .${Rh.icon}`]:t.icon},{[`& .${Rh.icon}`]:t[`icon${(0,Te.Z)(i)}`]},{[`& .${Rh.icon}`]:t[`iconColor${(0,Te.Z)(r)}`]},{[`& .${Rh.deleteIcon}`]:t.deleteIcon},{[`& .${Rh.deleteIcon}`]:t[`deleteIcon${(0,Te.Z)(i)}`]},{[`& .${Rh.deleteIcon}`]:t[`deleteIconColor${(0,Te.Z)(r)}`]},{[`& .${Rh.deleteIcon}`]:t[`deleteIconOutlinedColor${(0,Te.Z)(r)}`]},t.root,t[`size${(0,Te.Z)(i)}`],t[`color${(0,Te.Z)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,Te.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,Te.Z)(r)}`],t[s],"outlined"===s&&t[`outlined${(0,Te.Z)(r)}`]]}})((({theme:e,ownerState:t})=>{const n=(0,mt.Fq)(e.palette.text.primary,.26);return(0,s.Z)({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Rh.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Rh.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${Rh.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${Rh.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${Rh.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Rh.icon}`]:(0,s.Z)({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${Rh.deleteIcon}`]:(0,s.Z)({WebkitTapHighlightColor:"transparent",color:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,mt.Fq)(n,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:(0,mt.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${Rh.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${Rh.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,s.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:(0,mt.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Rh.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${Rh.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,s.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Rh.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${Rh.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${Rh.avatar}`]:{marginLeft:4},[`& .${Rh.avatarSmall}`]:{marginLeft:2},[`& .${Rh.icon}`]:{marginLeft:4},[`& .${Rh.iconSmall}`]:{marginLeft:2},[`& .${Rh.deleteIcon}`]:{marginRight:5},[`& .${Rh.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,mt.Fq)(e.palette[t.color].main,.7)}`,[`&.${Rh.clickable}:hover`]:{backgroundColor:(0,mt.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Rh.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Rh.deleteIcon}`]:{color:(0,mt.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),Bh=(0,Ie.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,Te.Z)(r)}`]]}})((({ownerState:e})=>(0,s.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function Ih(e){return"Backspace"===e.key||"Delete"===e.key}const Zh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:m,onClick:h,onDelete:f,onKeyDown:g,onKeyUp:b,size:v="medium",variant:y="filled"}=n,w=(0,M.Z)(n,Oh),k=r.useRef(null),C=(0,Mt.Z)(k,t),x=e=>{e.stopPropagation(),f&&f(e)},S=!(!1===i||!h)||i,E="small"===v,P=S||f?go.Z:c||"div",T=(0,s.Z)({},n,{component:P,disabled:d,size:v,color:l,onDelete:!!f,clickable:S,variant:y}),A=(e=>{const{classes:t,disabled:n,size:r,color:o,onDelete:a,clickable:i,variant:s}=e,l={root:["root",s,n&&"disabled",`size${(0,Te.Z)(r)}`,`color${(0,Te.Z)(o)}`,i&&"clickable",i&&`clickableColor${(0,Te.Z)(o)}`,a&&"deletable",a&&`deletableColor${(0,Te.Z)(o)}`,`${s}${(0,Te.Z)(o)}`],label:["label",`label${(0,Te.Z)(r)}`],avatar:["avatar",`avatar${(0,Te.Z)(r)}`,`avatarColor${(0,Te.Z)(o)}`],icon:["icon",`icon${(0,Te.Z)(r)}`,`iconColor${(0,Te.Z)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,Te.Z)(r)}`,`deleteIconColor${(0,Te.Z)(o)}`,`deleteIconOutlinedColor${(0,Te.Z)(o)}`]};return(0,Ee.Z)(l,Ah,t)})(T),R=P===go.Z?(0,s.Z)({component:c||"div",focusVisibleClassName:A.focusVisible},f&&{disableRipple:!0}):{};let O=null;if(f){const e=(0,Se.Z)("default"!==l&&("outlined"===y?A[`deleteIconOutlinedColor${(0,Te.Z)(l)}`]:A[`deleteIconColor${(0,Te.Z)(l)}`]),E&&A.deleteIconSmall);O=u&&r.isValidElement(u)?r.cloneElement(u,{className:(0,Se.Z)(u.props.className,A.deleteIcon,e),onClick:x}):(0,Ne.jsx)(Th,{className:(0,Se.Z)(A.deleteIcon,e),onClick:x})}let B=null;o&&r.isValidElement(o)&&(B=r.cloneElement(o,{className:(0,Se.Z)(A.avatar,o.props.className)}));let I=null;return p&&r.isValidElement(p)&&(I=r.cloneElement(p,{className:(0,Se.Z)(A.icon,p.props.className)})),(0,Ne.jsxs)(Mh,(0,s.Z)({as:P,className:(0,Se.Z)(A.root,a),disabled:!(!S||!d)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&Ih(e)&&e.preventDefault(),g&&g(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&Ih(e)?f(e):"Escape"===e.key&&k.current&&k.current.blur()),b&&b(e)},ref:C,ownerState:T},R,w,{children:[B||I,(0,Ne.jsx)(Bh,{className:(0,Se.Z)(A.label),ownerState:T,children:m}),O]}))})),Lh=Zh;var Dh=n(8885);function jh(e){return(0,Ze.Z)("MuiAlert",e)}const Fh=(0,Le.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),zh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Nh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Hh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Vh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Wh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Uh;const Yh=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],Gh=(0,Ie.ZP)(Me.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Te.Z)(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?mt._j:mt.$n,r="light"===e.palette.mode?mt.$n:mt._j,o=t.color||t.severity;return(0,s.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===t.variant&&{color:n(e.palette[o].light,.6),backgroundColor:r(e.palette[o].light,.9),[`& .${Fh.icon}`]:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"outlined"===t.variant&&{color:n(e.palette[o].light,.6),border:`1px solid ${e.palette[o].light}`,[`& .${Fh.icon}`]:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"filled"===t.variant&&{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:"dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main})})),qh=(0,Ie.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Kh=(0,Ie.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Xh=(0,Ie.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Jh={success:(0,Ne.jsx)(zh,{fontSize:"inherit"}),warning:(0,Ne.jsx)(Nh,{fontSize:"inherit"}),error:(0,Ne.jsx)(Hh,{fontSize:"inherit"}),info:(0,Ne.jsx)(Vh,{fontSize:"inherit"})},Qh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiAlert"}),{action:r,children:o,className:a,closeText:i="Close",color:l,icon:c,iconMapping:u=Jh,onClose:d,role:p="alert",severity:m="success",variant:h="standard"}=n,f=(0,M.Z)(n,Yh),g=(0,s.Z)({},n,{color:l,severity:m,variant:h}),b=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`${t}${(0,Te.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,Ee.Z)(a,jh,o)})(g);return(0,Ne.jsxs)(Gh,(0,s.Z)({role:p,elevation:0,ownerState:g,className:(0,Se.Z)(b.root,a),ref:t},f,{children:[!1!==c?(0,Ne.jsx)(qh,{ownerState:g,className:b.icon,children:c||u[m]||Jh[m]}):null,(0,Ne.jsx)(Kh,{ownerState:g,className:b.message,children:o}),null!=r?(0,Ne.jsx)(Xh,{className:b.action,children:r}):null,null==r&&d?(0,Ne.jsx)(Xh,{ownerState:g,className:b.action,children:(0,Ne.jsx)(dt.Z,{size:"small","aria-label":i,title:i,color:"inherit",onClick:d,children:Uh||(Uh=(0,Ne.jsx)(Wh,{fontSize:"small"}))})}):null]}))})),_h=Qh;function $h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ef(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);if(0===t)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),o=r?r[1]:"",a=r?r[3]:"",i=r?r[2]:n,s=i.length>=t?i:(lf(Array(t)).map((function(){return"0"})).join("")+i).slice(-1*t);return"".concat(o).concat(s).concat(a)}var df={daysInHours:!1,zeroPadTime:2};function pf(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.now,o=void 0===r?Date.now:r,a=n.precision,i=void 0===a?0:a,s=n.controlled,l=n.offsetTime,c=void 0===l?0:l,u=n.overtime;t="string"==typeof e?new Date(e).getTime():e instanceof Date?e.getTime():e,s||(t+=c);var d=s?t:t-o(),p=Math.min(20,Math.max(0,i)),m=Math.round(1e3*parseFloat(((u?d:Math.max(0,d))/1e3).toFixed(p))),h=Math.abs(m)/1e3;return{total:m,days:Math.floor(h/86400),hours:Math.floor(h/3600%24),minutes:Math.floor(h/60%60),seconds:Math.floor(h%60),milliseconds:Number((h%1*1e3).toFixed()),completed:m<=0}}function mf(e,t){var n=e.days,r=e.hours,o=e.minutes,a=e.seconds,i=Object.assign(Object.assign({},df),t),s=i.daysInHours,l=i.zeroPadTime,c=i.zeroPadDays,u=void 0===c?l:c,d=Math.min(2,l),p=s?uf(r+24*n,l):uf(r,d);return{days:s?"":uf(n,u),hours:p,minutes:uf(o,d),seconds:uf(a,d)}}var hf=function(e){nf(n,e);var t=sf(n);function n(){var e;return $h(this,n),(e=t.apply(this,arguments)).state={count:e.props.count||3},e.startCountdown=function(){e.interval=window.setInterval((function(){0==e.state.count-1?(e.stopCountdown(),e.props.onComplete&&e.props.onComplete()):e.setState((function(e){return{count:e.count-1}}))}),1e3)},e.stopCountdown=function(){clearInterval(e.interval)},e.addTime=function(t){e.stopCountdown(),e.setState((function(e){return{count:e.count+t}}),e.startCountdown)},e}return tf(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,r.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(r.Component);hf.propTypes={count:x.number,children:x.element,onComplete:x.func};var ff=function(e){nf(n,e);var t=sf(n);function n(e){var o;if($h(this,n),(o=t.call(this,e)).mounted=!1,o.initialTimestamp=o.calcOffsetStartTimestamp(),o.offsetStartTimestamp=o.props.autoStart?0:o.initialTimestamp,o.offsetTime=0,o.legacyMode=!1,o.legacyCountdownRef=(0,r.createRef)(),o.tick=function(){var e=o.calcTimeDelta(),t=e.completed&&!o.props.overtime?void 0:o.props.onTick;o.setTimeDeltaState(e,void 0,t)},o.start=function(){if(!o.isStarted()){var e=o.offsetStartTimestamp;o.offsetStartTimestamp=0,o.offsetTime+=e?o.calcOffsetStartTimestamp()-e:0;var t=o.calcTimeDelta();o.setTimeDeltaState(t,"STARTED",o.props.onStart),o.props.controlled||t.completed&&!o.props.overtime||(o.clearTimer(),o.interval=window.setInterval(o.tick,o.props.intervalDelay))}},o.pause=function(){o.isPaused()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.setTimeDeltaState(o.state.timeDelta,"PAUSED",o.props.onPause))},o.stop=function(){o.isStopped()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.offsetTime=o.offsetStartTimestamp-o.initialTimestamp,o.setTimeDeltaState(o.calcTimeDelta(),"STOPPED",o.props.onStop))},o.isStarted=function(){return o.isStatus("STARTED")},o.isPaused=function(){return o.isStatus("PAUSED")},o.isStopped=function(){return o.isStatus("STOPPED")},o.isCompleted=function(){return o.isStatus("COMPLETED")},o.handleOnComplete=function(e){o.props.onComplete&&o.props.onComplete(e)},e.date){var a=o.calcTimeDelta();o.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else o.legacyMode=!0;return o}return tf(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(e){this.legacyMode||this.props.date!==e.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var e=this.props,t=e.date,n=e.now,r=e.precision,o=e.controlled,a=e.overtime;return pf(t,{now:n,precision:r,controlled:o,offsetTime:this.offsetTime,overtime:a})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(e){this.legacyCountdownRef.current.addTime(e)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(e){return this.state.status===e}},{key:"setTimeDeltaState",value:function(e,t,n){var r,o=this;if(this.mounted)return!this.state.timeDelta.completed&&e.completed&&(this.props.overtime||this.clearTimer(),r=this.handleOnComplete),this.setState((function(n){var r=t||n.status;return e.completed&&!o.props.overtime?r="COMPLETED":t||"COMPLETED"!==r||(r="STOPPED"),{timeDelta:e,status:r}}),(function(){n&&n(o.state.timeDelta),r&&r(o.state.timeDelta)}))}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var e=this.props,t=e.daysInHours,n=e.zeroPadTime,r=e.zeroPadDays,o=this.state.timeDelta;return Object.assign(Object.assign({},o),{api:this.getApi(),props:this.props,formatted:mf(o,{daysInHours:t,zeroPadTime:n,zeroPadDays:r})})}},{key:"render",value:function(){if(this.legacyMode){var e=this.props,t=e.count,n=e.children,o=e.onComplete;return(0,r.createElement)(hf,{ref:this.legacyCountdownRef,count:t,onComplete:o},n)}var a=this.props,i=a.className,s=a.overtime,l=a.children,c=a.renderer,u=this.getRenderProps();if(c)return c(u);if(l&&this.state.timeDelta.completed&&!s)return(0,r.cloneElement)(l,{countdown:u});var d=u.formatted,p=d.days,m=d.hours,h=d.minutes,f=d.seconds;return(0,r.createElement)("span",{className:i},u.total<0?"-":"",p,p?":":"",m,":",h,":",f)}}]),n}(r.Component);ff.defaultProps=Object.assign(Object.assign({},df),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),ff.propTypes={date:(0,x.oneOfType)([(0,x.instanceOf)(Date),x.string,x.number]),daysInHours:x.bool,zeroPadTime:x.number,zeroPadDays:x.number,controlled:x.bool,intervalDelay:x.number,precision:x.number,autoStart:x.bool,overtime:x.bool,className:x.string,children:x.element,renderer:x.func,now:x.func,onMount:x.func,onStart:x.func,onPause:x.func,onStop:x.func,onTick:x.func,onComplete:x.func};const gf=ff;var bf=n(1002),vf=n(1739),yf=n.n(vf),wf=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function kf(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(yf()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(wf),a=null;null!==(a=o.exec(e));)if(a[0].trim())if(a[1]){var i=a[1].trim(),s=[i,""];i.indexOf("=")>-1&&(s=i.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var Cf=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,xf=/^\s*$/,Sf=Object.create(null);function Ef(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(Ef,"")+""+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var Pf={parse:function(e,t){t||(t={}),t.components||(t.components=Sf);var n,r=[],o=[],a=-1,i=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(Cf,(function(s,l){if(i){if(s!==""+n.name+">")return;i=!1}var c,u="/"!==s.charAt(1),d=s.startsWith("\x3c!--"),p=l+s.length,m=e.charAt(p);if(d){var h=kf(s);return a<0?(r.push(h),r):((c=o[a]).children.push(h),r)}if(u&&(a++,"tag"===(n=kf(s)).type&&t.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!m||"<"===m||n.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===a&&r.push(n),(c=o[a-1])&&c.children.push(n),o[a]=n),(!u||n.voidElement)&&(a>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(a--,n=-1===a?r:o[a]),!i&&"<"!==m&&m)){c=-1===a?r:o[a].children;var f=e.indexOf("<",p),g=e.slice(p,-1===f?void 0:f);xf.test(g)&&(g=" "),(f>-1&&a+c.length>=0||" "!==g)&&c.push({type:"text",content:g})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+Ef("",t)}),"")}};const Tf=Pf;var Af="".replace,Rf=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,Of={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'};function Mf(e){return Of[e]}var Bf=["format"],If=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function Zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t0:!!n}function jf(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function Ff(e){return Array.isArray(e)?e:[e]}function zf(e,t){if(!e)return"";var n="",o=Ff(e),a=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return o.forEach((function(e,o){if("string"==typeof e)n+="".concat(e);else if(r.isValidElement(e)){var i=Object.keys(e.props).length,s=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&s&&0===i)n+="<".concat(e.type,"/>");else if(l||s&&0===i)if(e.props.i18nIsDynamicList)n+="<".concat(o,">").concat(o,">");else if(s&&1===i&&"string"==typeof l)n+="<".concat(e.type,">").concat(l,"").concat(e.type,">");else{var c=zf(l,t);n+="<".concat(o,">").concat(c,"").concat(o,">")}else n+="<".concat(o,">").concat(o,">")}else if(null===e)de("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,bf.Z)(e)){var u=e.format,d=(0,$.Z)(e,Bf),p=Object.keys(d);if(1===p.length){var m=u?"".concat(p[0],", ").concat(u):p[0];n+="{{".concat(m,"}}")}else de("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else de("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function Nf(e){var t=e.children,n=e.count,o=e.parent,a=e.i18nKey,i=e.context,s=e.tOptions,l=void 0===s?{}:s,c=e.values,u=e.defaults,d=e.components,p=e.ns,m=e.i18n,h=e.t,f=e.shouldUnescape,g=(0,$.Z)(e,If),b=(0,r.useContext)(ie)||{},v=b.i18n,y=b.defaultNS,w=m||v||ce();if(!w)return me("You will need to pass in an i18next instance by using i18nextReactModule"),t;var k=h||w.t.bind(w)||function(e){return e};i&&(l.context=i);var C=Lf(Lf({},se()),w.options&&w.options.react),x=p||k.ns||y||w.options&&w.options.defaultNS;x="string"==typeof x?[x]:x||["translation"];var S=u||zf(t,C)||C.transEmptyNodeValue||a,E=C.hashTransKey,P=a||(E?E(S):S),T=c?l.interpolation:{interpolation:Lf(Lf({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},A=Lf(Lf(Lf(Lf({},l),{},{count:n},c),T),{},{defaultValue:S,ns:x}),R=function(e,t,n,o,a,i){if(""===t)return[];var s=o.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(s.join("|")).test(t);if(!e&&!l)return[t];var c={};!function e(t){Ff(t).forEach((function(t){"string"!=typeof t&&(Df(t)?e(jf(t)):"object"!==(0,bf.Z)(t)||r.isValidElement(t)||Object.assign(c,t))}))}(e);var u=Tf.parse("<0>".concat(t,"0>")),d=Lf(Lf({},c),a);function p(e,t,n){var o=jf(e),a=h(o,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return r.isValidElement(e)}))}(o)&&0===a.length?o:a}function m(e,t,n,o,a){e.dummy&&(e.children=t),n.push(r.cloneElement(e,Lf(Lf({},e.props),{},{key:o}),a?void 0:t))}function h(t,a,c){var u=Ff(t);return Ff(a).reduce((function(t,a,f){var g,b,v,y,w=a.children&&a.children[0]&&a.children[0].content&&n.services.interpolator.interpolate(a.children[0].content,d,n.language);if("tag"===a.type){var k=u[parseInt(a.name,10)];!k&&1===c.length&&c[0][a.name]&&(k=c[0][a.name]),k||(k={});var C=0!==Object.keys(a.attrs).length?(b={props:a.attrs},(y=Lf({},v=k)).props=Object.assign(b.props,v.props),y):k,x=r.isValidElement(C),S=x&&Df(a,!0)&&!a.voidElement,E=l&&"object"===(0,bf.Z)(C)&&C.dummy&&!x,P="object"===(0,bf.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,a.name);if("string"==typeof C){var T=n.services.interpolator.interpolate(C,d,n.language);t.push(T)}else if(Df(C)||S)m(C,p(C,a,c),t,f);else if(E){var A=h(u,a.children,c);t.push(r.cloneElement(C,Lf(Lf({},C.props),{},{key:f}),A))}else if(Number.isNaN(parseFloat(a.name)))if(P)m(C,p(C,a,c),t,f,a.voidElement);else if(o.transSupportBasicHtmlNodes&&s.indexOf(a.name)>-1)if(a.voidElement)t.push(r.createElement(a.name,{key:"".concat(a.name,"-").concat(f)}));else{var R=h(u,a.children,c);t.push(r.createElement(a.name,{key:"".concat(a.name,"-").concat(f)},R))}else if(a.voidElement)t.push("<".concat(a.name," />"));else{var O=h(u,a.children,c);t.push("<".concat(a.name,">").concat(O,"").concat(a.name,">"))}else if("object"!==(0,bf.Z)(C)||x)1===a.children.length&&w?t.push(r.cloneElement(C,Lf(Lf({},C.props),{},{key:f}),w)):t.push(r.cloneElement(C,Lf(Lf({},C.props),{},{key:f})));else{var M=a.children[0]?w:null;M&&t.push(M)}}else if("text"===a.type){var B=o.transWrapTextNodes,I=i?(g=n.services.interpolator.interpolate(a.content,d,n.language),Af.call(g,Rf,Mf)):n.services.interpolator.interpolate(a.content,d,n.language);B?t.push(r.createElement(B,{key:"".concat(a.name,"-").concat(f)},I)):t.push(I)}return t}),[])}return jf(h([{dummy:!0,children:e||[]}],u,Ff(e||[]))[0])}(d||t,P?k(P,A):S,w,C,A,f),O=void 0!==o?o:C.defaultTransParent;return O?r.createElement(O,g,R):R}const Hf=(0,wn.Z)((0,Ne.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),Vf=(0,wn.Z)((0,Ne.jsx)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function Wf(e){return(0,Ze.Z)("MuiRating",e)}const Uf=(0,Le.Z)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),Yf=["value"],Gf=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function qf(e,t){if(null==e)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(function(e){const t=e.toString().split(".")[1];return t?t.length:0}(t)))}const Kf=(0,Ie.ZP)("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Uf.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${(0,Te.Z)(n.size)}`],n.readOnly&&t.readOnly]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent",[`&.${Uf.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Uf.focusVisible} .${Uf.iconActive}`]:{outline:"1px solid #999"},[`& .${Uf.visuallyHidden}`]:Kn},"small"===t.size&&{fontSize:e.typography.pxToRem(18)},"large"===t.size&&{fontSize:e.typography.pxToRem(30)},t.readOnly&&{pointerEvents:"none"}))),Xf=(0,Ie.ZP)("label",{name:"MuiRating",slot:"Label",overridesResolver:(e,t)=>t.label})((({ownerState:e})=>(0,s.Z)({cursor:"inherit"},e.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}))),Jf=(0,Ie.ZP)("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none"},t.iconActive&&{transform:"scale(1.2)"},t.iconEmpty&&{color:e.palette.action.disabled}))),Qf=(0,Ie.ZP)("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>(0,Ie.Dz)(e)&&"iconActive"!==e,overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})((({iconActive:e})=>(0,s.Z)({position:"relative"},e&&{transform:"scale(1.2)"})));function _f(e){const t=(0,M.Z)(e,Yf);return(0,Ne.jsx)("span",(0,s.Z)({},t))}function $f(e){const{classes:t,disabled:n,emptyIcon:o,focus:a,getLabelText:i,highlightSelectedOnly:l,hover:c,icon:u,IconContainerComponent:d,isActive:p,itemValue:m,labelProps:h,name:f,onBlur:g,onChange:b,onClick:v,onFocus:y,readOnly:w,ownerState:k,ratingValue:C,ratingValueRounded:x}=e,S=l?m===C:m<=C,E=m<=c,P=m<=a,T=m===x,A=(0,fn.Z)(),R=(0,Ne.jsx)(Jf,{as:d,value:m,className:(0,Se.Z)(t.icon,S?t.iconFilled:t.iconEmpty,E&&t.iconHover,P&&t.iconFocus,p&&t.iconActive),ownerState:(0,s.Z)({},k,{iconEmpty:!S,iconFilled:S,iconHover:E,iconFocus:P,iconActive:p}),children:o&&!S?o:u});return w?(0,Ne.jsx)("span",(0,s.Z)({},h,{children:R})):(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsxs)(Xf,(0,s.Z)({ownerState:(0,s.Z)({},k,{emptyValueFocused:void 0}),htmlFor:A},h,{children:[R,(0,Ne.jsx)("span",{className:t.visuallyHidden,children:i(m)})]})),(0,Ne.jsx)("input",{className:t.visuallyHidden,onFocus:y,onBlur:g,onChange:b,onClick:v,disabled:n,value:m,id:A,type:"radio",name:f,checked:T})]})}const eg=(0,Ne.jsx)(Hf,{fontSize:"inherit"}),tg=(0,Ne.jsx)(Vf,{fontSize:"inherit"});function ng(e){return`${e} Star${1!==e?"s":""}`}const rg=r.forwardRef((function(e,t){const n=(0,Be.Z)({name:"MuiRating",props:e}),{className:o,defaultValue:a=null,disabled:i=!1,emptyIcon:l=tg,emptyLabelText:c="Empty",getLabelText:u=ng,highlightSelectedOnly:d=!1,icon:p=eg,IconContainerComponent:m=_f,max:h=5,name:f,onChange:g,onChangeActive:b,onMouseLeave:v,onMouseMove:y,precision:w=1,readOnly:k=!1,size:C="medium",value:x}=n,S=(0,M.Z)(n,Gf),E=(0,fn.Z)(f),[P,T]=(0,mn.Z)({controlled:x,default:a,name:"Rating"}),A=qf(P,w),R=(0,ur.Z)(),[{hover:O,focus:B},I]=r.useState({hover:-1,focus:-1});let Z=A;-1!==O&&(Z=O),-1!==B&&(Z=B);const{isFocusVisibleRef:L,onBlur:D,onFocus:j,ref:F}=(0,Ot.Z)(),[z,N]=r.useState(!1),H=r.useRef(),V=(0,Mt.Z)(F,H),W=(0,Mt.Z)(V,t),U=e=>{let t=""===e.target.value?null:parseFloat(e.target.value);-1!==O&&(t=O),T(t),g&&g(e,t)},Y=e=>{0===e.clientX&&0===e.clientY||(I({hover:-1,focus:-1}),T(null),g&&parseFloat(e.target.value)===A&&g(e,null))},G=e=>{j(e),!0===L.current&&N(!0);const t=parseFloat(e.target.value);I((e=>({hover:e.hover,focus:t})))},q=e=>{-1===O&&(D(e),!1===L.current&&N(!1),I((e=>({hover:e.hover,focus:-1}))))},[K,X]=r.useState(!1),J=(0,s.Z)({},n,{defaultValue:a,disabled:i,emptyIcon:l,emptyLabelText:c,emptyValueFocused:K,focusVisible:z,getLabelText:u,icon:p,IconContainerComponent:m,max:h,precision:w,readOnly:k,size:C}),Q=(e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:a,focusVisible:i}=e,s={root:["root",`size${(0,Te.Z)(n)}`,o&&"disabled",i&&"focusVisible",r&&"readyOnly"],label:["label","pristine"],labelEmptyValue:[a&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return(0,Ee.Z)(s,Wf,t)})(J);return(0,Ne.jsxs)(Kf,(0,s.Z)({ref:W,onMouseMove:e=>{y&&y(e);const t=H.current,{right:n,left:r}=t.getBoundingClientRect(),{width:o}=t.firstChild.getBoundingClientRect();let a;a="rtl"===R.direction?(n-e.clientX)/(o*h):(e.clientX-r)/(o*h);let i=qf(h*a+w/2,w);i=function(e,t,n){return en?n:e}(i,w,h),I((e=>e.hover===i&&e.focus===i?e:{hover:i,focus:i})),N(!1),b&&O!==i&&b(e,i)},onMouseLeave:e=>{v&&v(e),I({hover:-1,focus:-1}),b&&-1!==O&&b(e,-1)},className:(0,Se.Z)(Q.root,o),ownerState:J,role:k?"img":null,"aria-label":k?u(Z):null},S,{children:[Array.from(new Array(h)).map(((e,t)=>{const n=t+1,r={classes:Q,disabled:i,emptyIcon:l,focus:B,getLabelText:u,highlightSelectedOnly:d,hover:O,icon:p,IconContainerComponent:m,name:E,onBlur:q,onChange:U,onClick:Y,onFocus:G,ratingValue:Z,ratingValueRounded:A,readOnly:k,ownerState:J},o=n===Math.ceil(Z)&&(-1!==O||-1!==B);if(w<1){const e=Array.from(new Array(1/w));return(0,Ne.jsx)(Qf,{className:(0,Se.Z)(Q.decimal,o&&Q.iconActive),ownerState:J,iconActive:o,children:e.map(((t,o)=>{const a=qf(n-1+(o+1)*w,w);return(0,Ne.jsx)($f,(0,s.Z)({},r,{isActive:!1,itemValue:a,labelProps:{style:e.length-1===o?{}:{width:a===Z?(o+1)*w*100+"%":"0%",overflow:"hidden",position:"absolute"}}}),a)}))},n)}return(0,Ne.jsx)($f,(0,s.Z)({},r,{isActive:o,itemValue:n}),n)})),!k&&!i&&(0,Ne.jsxs)(Xf,{className:(0,Se.Z)(Q.label,Q.labelEmptyValue),ownerState:J,children:[(0,Ne.jsx)("input",{className:Q.visuallyHidden,value:"",id:`${E}-empty`,type:"radio",name:E,checked:null==A,onFocus:()=>X(!0),onBlur:()=>X(!1),onChange:U}),(0,Ne.jsx)("span",{className:Q.visuallyHidden,children:c})]})]}))})),og=rg;var ag=n(1653);function ig(e){return(0,Ze.Z)("MuiContainer",e)}(0,Le.Z)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const sg=["className","component","disableGutters","fixed","maxWidth"],lg=(0,Ie.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Te.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}})((({theme:e,ownerState:t})=>(0,s.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:`${r}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,s.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),cg=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiContainer"}),{className:r,component:o="div",disableGutters:a=!1,fixed:i=!1,maxWidth:l="lg"}=n,c=(0,M.Z)(n,sg),u=(0,s.Z)({},n,{component:o,disableGutters:a,fixed:i,maxWidth:l}),d=(e=>{const{classes:t,fixed:n,disableGutters:r,maxWidth:o}=e,a={root:["root",o&&`maxWidth${(0,Te.Z)(String(o))}`,n&&"fixed",r&&"disableGutters"]};return(0,Ee.Z)(a,ig,t)})(u);return(0,Ne.jsx)(lg,(0,s.Z)({as:o,ownerState:u,className:(0,Se.Z)(d.root,r),ref:t},c))})),ug=cg;function dg(e){return(0,Ze.Z)("MuiCard",e)}(0,Le.Z)("MuiCard",["root"]);const pg=["className","raised"],mg=(0,Ie.ZP)(Me.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),hg=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,a=(0,M.Z)(n,pg),i=(0,s.Z)({},n,{raised:o}),l=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"]},dg,t)})(i);return(0,Ne.jsx)(mg,(0,s.Z)({className:(0,Se.Z)(l.root,r),elevation:o?8:void 0,ref:t,ownerState:i},a))})),fg=hg;function gg(e){return(0,Ze.Z)("MuiCardHeader",e)}const bg=(0,Le.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),vg=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],yg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,s.Z)({[`& .${bg.title}`]:t.title,[`& .${bg.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),wg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),kg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Cg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),xg=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiCardHeader"}),{action:r,avatar:o,className:a,component:i="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p}=n,m=(0,M.Z)(n,vg),h=(0,s.Z)({},n,{component:i,disableTypography:l}),f=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},gg,t)})(h);let g=d;null==g||g.type===st.Z||l||(g=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:o?"body2":"h5",className:f.title,component:"span",display:"block"},p,{children:g})));let b=c;return null==b||b.type===st.Z||l||(b=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:o?"body2":"body1",className:f.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:b}))),(0,Ne.jsxs)(yg,(0,s.Z)({className:(0,Se.Z)(f.root,a),as:i,ref:t,ownerState:h},m,{children:[o&&(0,Ne.jsx)(wg,{className:f.avatar,ownerState:h,children:o}),(0,Ne.jsxs)(Cg,{className:f.content,ownerState:h,children:[g,b]}),r&&(0,Ne.jsx)(kg,{className:f.action,ownerState:h,children:r})]}))})),Sg=xg;var Eg=function(e,t){return Eg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Eg(e,t)};function Pg(e,t){function n(){this.constructor=e}Eg(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Tg(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ag(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),a=o.next();!a.done;a=o.next()){var i=a.value;this._callEventListener(e,i)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?Ig.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?Ig.minReconnectionDelay:r,a=e.maxReconnectionDelay,i=void 0===a?Ig.maxReconnectionDelay:a,s=0;return this._retryCount>0&&(s=o*Math.pow(n,this._retryCount-1))>i&&(s=i),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"==typeof e)return Promise.resolve(e);if("function"==typeof e){var t=e();if("string"==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?Ig.maxRetries:n,o=t.connectionTimeout,a=void 0===o?Ig.connectionTimeout:o,i=t.WebSocket,s=void 0===i?Bg():i;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),void 0===(l=s)||!l||2!==l.CLOSING)throw Error("No valid WebSocket class provided");var l;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),a))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new Og(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new Mg(e,t,this))}catch(e){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();const Lg=Zg;function Dg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class jg extends r.Component{constructor(e){super(e),Dg(this,"state",{messages:[],value:"",connected:!1,peer_connected:!1}),Dg(this,"rws",new Lg("ws://"+window.location.host+"/ws/chat/"+this.props.orderId+"/")),Dg(this,"scrollToBottom",(()=>{this.messagesEnd.scrollIntoView({behavior:"smooth"})})),Dg(this,"onButtonClicked",(e=>{""!=this.state.value&&(this.rws.send(JSON.stringify({type:"message",message:this.state.value,nick:this.props.ur_nick})),this.state.value=""),e.preventDefault()}))}componentDidMount(){this.rws.addEventListener("open",(()=>{console.log("Connected!"),this.setState({connected:!0}),this.rws.send(JSON.stringify({type:"message",message:"just-connected",nick:this.props.ur_nick}))})),this.rws.addEventListener("message",(e=>{const t=JSON.parse(e.data);console.log("Got reply!",t.type),t&&("just-connected"!=t.message&"peer-disconnected"!=t.message&&this.setState((e=>({messages:[...e.messages,{msg:t.message,userNick:t.user_nick}]}))),this.setState({peer_connected:t.peer_connected}))})),this.rws.addEventListener("close",(()=>{console.log("Socket is closed. Reconnect will be attempted"),this.setState({connected:!1})})),this.rws.addEventListener("error",(()=>{console.error("Socket encountered error: Closing socket")}))}componentDidUpdate(){this.scrollToBottom()}render(){const{t:e}=this.props;return r.createElement(ug,{component:"main",maxWidth:"xs"},r.createElement(it,{container:!0,xs:12,spacing:.5},r.createElement(it,{item:!0,xs:.3}),r.createElement(it,{item:!0,xs:5.5},r.createElement(Me.Z,{elevation:1,style:this.state.connected?{backgroundColor:"#e8ffe6"}:{backgroundColor:"#FFF1C5"}},r.createElement(st.Z,{variant:"caption",sx:{color:"#111111"}},e("You")+": ",this.state.connected?e("connected"):e("disconnected")))),r.createElement(it,{item:!0,xs:.4}),r.createElement(it,{item:!0,xs:5.5},r.createElement(Me.Z,{elevation:1,style:this.state.peer_connected?{backgroundColor:"#e8ffe6"}:{backgroundColor:"#FFF1C5"}},r.createElement(st.Z,{variant:"caption",sx:{color:"#111111"}},e("Peer")+": ",this.state.peer_connected?e("connected"):e("disconnected")))),r.createElement(it,{item:!0,xs:.3})),r.createElement(Me.Z,{elevation:1,style:{height:"300px",maxHeight:"300px",width:"280px",overflow:"auto",backgroundColor:"#F7F7F7"}},this.state.messages.map((e=>r.createElement(r.Fragment,null,r.createElement(fg,{elevation:5,align:"left"},e.userNick==this.props.ur_nick?r.createElement(Sg,{sx:{color:"#111111"},avatar:r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.state.connected?"success":"error"},r.createElement(wh,{className:"flippedSmallAvatar",alt:e.userNick,src:window.location.origin+"/static/assets/avatars/"+e.userNick+".png"})),style:{backgroundColor:"#eeeeee"},title:e.userNick,subheader:e.msg,subheaderTypographyProps:{sx:{wordWrap:"break-word",width:"200px",color:"#444444"}}}):r.createElement(Sg,{sx:{color:"#111111"},avatar:r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.state.peer_connected?"success":"error"},r.createElement(wh,{className:"flippedSmallAvatar",alt:e.userNick,src:window.location.origin+"/static/assets/avatars/"+e.userNick+".png"})),style:{backgroundColor:"#fafafa"},title:e.userNick,subheader:e.msg,subheaderTypographyProps:{sx:{wordWrap:"break-word",width:"200px",color:"#444444"}}}))))),r.createElement("div",{style:{float:"left",clear:"both"},ref:e=>{this.messagesEnd=e}})),r.createElement("form",{noValidate:!0,onSubmit:this.onButtonClicked},r.createElement(it,{containter:!0,alignItems:"stretch",style:{display:"flex"}},r.createElement(it,{item:!0,alignItems:"stretch",style:{display:"flex"}},r.createElement(ut.Z,{label:e("Type a message"),variant:"standard",size:"small",helperText:this.state.connected?null:e("Connecting..."),value:this.state.value,onChange:e=>{this.setState({value:e.target.value}),this.value=this.state.value},sx:{width:214}})),r.createElement(it,{item:!0,alignItems:"stretch",style:{display:"flex"}},r.createElement(pt.Z,{disabled:!this.state.connected,type:"submit",variant:"contained",color:"primary"},e("Send")," ")))),r.createElement(sn.Z,null,e("The chat has no memory: if you leave, messages are lost.")," ",r.createElement(Ft,{target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/blob/main/docs/sensitive-data-PGP-guide.md/"}," ",e("Learn easy PGP encryption."))))}}const Fg=xe()(jg);var zg=n(7164),Ng=n.n(zg),Hg=n(9972),Vg=n(9613),Wg=n(8394),Ug=n(6307),Yg=n(7412),Gg=n(2704);function qg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kg(e){let t=null;if(document.cookie&&""!==document.cookie){const n=document.cookie.split(";");for(let r=0;rr.createElement("audio",{autoPlay:!0,src:`/static/assets/sounds/${e}.mp3`}))),qg(this,"togglePlay",(()=>{this.setState({playSound:!this.state.playSound},(()=>{this.state.playSound?this.audio.play():this.audio.pause()}))})),qg(this,"stepXofY",(()=>{var e=null,t=null,n=this.props.data.status;return this.props.data.is_maker&&(t=5),this.props.data.is_taker&&(t=4),this.props.data.is_maker&&(0==n?e=1:[1,3].includes(n)?e=2:[6,7,8].includes(n)?e=3:9==n?e=4:10==n&&(e=5)),this.props.data.is_taker&&(3==n?e=1:[6,7,8].includes(n)?e=2:9==n?e=3:10==n&&(e=4)),null!=e&null!=t?"("+e+"/"+t+")":""})),qg(this,"handleClickOpenConfirmDispute",(()=>{this.setState({openConfirmDispute:!0})})),qg(this,"handleClickCloseConfirmDispute",(()=>{this.setState({openConfirmDispute:!1})})),qg(this,"handleClickAgreeDisputeButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"dispute"})};fetch("/api/order/?order_id="+this.props.data.id,e).then((e=>e.json())).then((e=>this.props.completeSetState(e))),this.handleClickCloseConfirmDispute()})),qg(this,"ConfirmDisputeDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openConfirmDispute,onClose:this.handleClickCloseConfirmDispute,"aria-labelledby":"open-dispute-dialog-title","aria-describedby":"open-dispute-dialog-description"},r.createElement(Gm,{id:"open-dispute-dialog-title"},e("Do you want to open a dispute?")),r.createElement(At,null,r.createElement(Qm,{id:"alert-dialog-description"},e("The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmDispute,autoFocus:!0},e("Disagree")),r.createElement(pt.Z,{onClick:this.handleClickAgreeDisputeButton},e("Agree and open dispute"))))})),qg(this,"handleClickOpenConfirmFiatReceived",(()=>{this.setState({openConfirmFiatReceived:!0})})),qg(this,"handleClickCloseConfirmFiatReceived",(()=>{this.setState({openConfirmFiatReceived:!1})})),qg(this,"handleClickTotallyConfirmFiatReceived",(()=>{this.handleClickConfirmButton(),this.handleClickCloseConfirmFiatReceived()})),qg(this,"ConfirmFiatReceivedDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openConfirmFiatReceived,onClose:this.handleClickCloseConfirmFiatReceived,"aria-labelledby":"fiat-received-dialog-title","aria-describedby":"fiat-received-dialog-description"},r.createElement(Gm,{id:"open-dispute-dialog-title"},e("Confirm you received {{currencyCode}}?",{currencyCode:this.props.data.currencyCode})),r.createElement(At,null,r.createElement(Qm,{id:"alert-dialog-description"},e("Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.",{currencyCode:this.props.data.currencyCode}))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmFiatReceived,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickTotallyConfirmFiatReceived},e("Confirm"))))})),qg(this,"showQRInvoice",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("Robots show commitment to their peers"))),r.createElement(it,{item:!0,xs:12,align:"center"},this.props.data.is_maker?r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("Lock {{amountSats}} Sats to PUBLISH order",{amountSats:Xg(this.props.data.bond_satoshis)}))," "," "+this.stepXofY()):r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("Lock {{amountSats}} Sats to TAKE order",{amountSats:Xg(this.props.data.bond_satoshis)}))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(oo,{sx:{bgcolor:"#ffffff",width:"315px",position:"relative",left:"-5px"}},r.createElement(ag.Z,{value:this.props.data.bond_invoice,size:305,style:{position:"relative",top:"3px"}})),r.createElement(lt.Z,{disableHoverListener:!0,enterTouchDelay:"0",title:e("Copied!")},r.createElement(pt.Z,{size:"small",color:"inherit",onClick:()=>{navigator.clipboard.writeText(this.props.data.bond_invoice)},align:"center"}," ",r.createElement(Jt.Z,null),e("Copy to clipboard")))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{hiddenLabel:!0,variant:"standard",size:"small",defaultValue:this.props.data.bond_invoice,disabled:"true",helperText:e("This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute."),color:"secondary"})))})),qg(this,"showBondIsLocked",(()=>{const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1",align:"center"},r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap"}},r.createElement(um.Z,null),this.props.data.is_maker?e("Your maker bond is locked"):e("Your taker bond is locked"))))})),qg(this,"showBondIsSettled",(()=>{const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"error",component:"subtitle1",variant:"subtitle1",align:"center"},r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap",align:"center"},align:"center"},r.createElement(Gg.Z,null),this.props.data.is_maker?e("Your maker bond was settled"):e("Your taker bond was settled"))))})),qg(this,"showBondIsReturned",(()=>{const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"green",component:"subtitle1",variant:"subtitle1",align:"center"},r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap"}},r.createElement(Yg.Z,null),this.props.data.is_maker?e("Your maker bond was unlock"):e("Your taker bond was unlocked"))))})),qg(this,"showEscrowQRInvoice",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"locked-invoice"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"green",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("Lock {{amountSats}} Sats as collateral",{amountSats:Xg(this.props.data.escrow_satoshis)}))," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(oo,{sx:{bgcolor:"#ffffff",width:"315px",position:"relative",left:"-5px"}},r.createElement(ag.Z,{value:this.props.data.escrow_invoice,size:305,style:{position:"relative",top:"3px"}})),r.createElement(lt.Z,{disableHoverListener:!0,enterTouchDelay:"0",title:e("Copied!")},r.createElement(pt.Z,{size:"small",color:"inherit",onClick:()=>{navigator.clipboard.writeText(this.props.data.escrow_invoice)},align:"center"}," ",r.createElement(Jt.Z,null),"Copy to clipboard"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{hiddenLabel:!0,variant:"filled",size:"small",defaultValue:this.props.data.escrow_invoice,disabled:"true",helperText:e("This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.",{currencyCode:this.props.data.currencyCode}),color:"secondary"})),this.showBondIsLocked())})),qg(this,"showTakerFound",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"taker-found"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("A taker has been found!"))," "," "+this.stepXofY())),r.createElement(Ph,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again."))),this.showBondIsLocked())})),qg(this,"handleClickOpenTelegramDialog",(()=>{this.setState({openEnableTelegram:!0})})),qg(this,"handleClickCloseEnableTelegramDialog",(()=>{this.setState({openEnableTelegram:!1})})),qg(this,"handleClickEnableTelegram",(()=>{window.open("https://t.me/"+this.props.data.tg_bot_name+"?start="+this.props.data.tg_token,"_blank").focus(),this.handleClickCloseEnableTelegramDialog()})),qg(this,"EnableTelegramDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openEnableTelegram,onClose:this.handleClickCloseEnableTelegramDialog,"aria-labelledby":"enable-telegram-dialog-title","aria-describedby":"enable-telegram-dialog-description"},r.createElement(Gm,{id:"open-dispute-dialog-title"},e("Enable TG Notifications")),r.createElement(At,null,r.createElement(Qm,{id:"alert-dialog-description"},e("You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseEnableTelegramDialog}," ",e("Go back")," "),r.createElement(pt.Z,{onClick:this.handleClickEnableTelegram,autoFocus:!0}," ",e("Enable")," ")))})),qg(this,"showMakerWait",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"locked-invoice"}),r.createElement(this.EnableTelegramDialog,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("Your order is public")," ")," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(_m.Z,{dense:"true"},r.createElement(Ph,null),r.createElement(ph,null,r.createElement(st.Z,{component:"body2",variant:"body2",align:"left"},r.createElement("p",null,e("Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.")," "),r.createElement("p",null,e("Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).")))),r.createElement(it,{item:!0,xs:12,align:"center"},this.props.data.tg_enabled?r.createElement(st.Z,{color:"primary",component:"h6",variant:"h6",align:"center"},e("Telegram enabled")):r.createElement(pt.Z,{color:"primary",onClick:this.handleClickOpenTelegramDialog},r.createElement(Ug.Z,null),e("Enable Telegram Notifications"))),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Vg.Z,null)),r.createElement(Dm,{primary:this.props.data.num_similar_orders,secondary:e("Public orders for {{currencyCode}}",{currencyCode:this.props.data.currencyCode})})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Hg.Z,null)),r.createElement(Dm,{primary:e("Premium rank")+" "+100*this.props.data.premium_percentile+"%",secondary:e("Among public {{currencyCode}} orders (higher is cheaper)",{currencyCode:this.props.data.currencyCode})})),r.createElement(Ph,null))),this.showBondIsLocked())})),qg(this,"handleInputInvoiceChanged",(e=>{this.setState({invoice:e.target.value,badInvoice:!1})})),qg(this,"handleClickSubmitInvoiceButton",(()=>{this.setState({badInvoice:!1});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"update_invoice",invoice:this.state.invoice})};fetch("/api/order/?order_id="+this.props.data.id,e).then((e=>e.json())).then((e=>this.setState({badInvoice:e.bad_invoice})&this.props.completeSetState(e)))})),qg(this,"handleInputDisputeChanged",(e=>{this.setState({statement:e.target.value,badStatement:!1})})),qg(this,"handleClickSubmitStatementButton",(()=>{this.setState({badInvoice:!1});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"submit_statement",statement:this.state.statement})};fetch("/api/order/?order_id="+this.props.data.id,e).then((e=>e.json())).then((e=>this.setState({badStatement:e.bad_statement})&this.props.completeSetState(e)))})),qg(this,"handleScan",(e=>{e&&this.setState({invoice:e})})),qg(this,"handleError",(e=>{console.error(e)})),qg(this,"handleQRbutton",(()=>{this.setState({qrscanner:!this.state.qrscanner})})),qg(this,"showInDisputeStatement",(()=>{const{t:e}=this.props;return this.props.data.statement_submitted?r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("We have received your statement")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},r.createElement("p",null,e("We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.")),r.createElement("p",null,e("Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).")))),this.showBondIsSettled()):r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("A dispute has been opened")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars."))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{error:this.state.badStatement,helperText:this.state.badStatement?this.state.badStatement:"",label:e("Submit dispute statement"),required:!0,inputProps:{style:{textAlign:"center"}},multiline:!0,rows:4,onChange:this.handleInputDisputeChanged})),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{onClick:this.handleClickSubmitStatementButton,variant:"contained",color:"primary"},"Submit")),this.showBondIsSettled())})),qg(this,"showWaitForDisputeResolution",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("We have the statements")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},r.createElement("p",null,e("Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.")," "),r.createElement("p",null,e("Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).")))),this.showBondIsSettled())})),qg(this,"showDisputeWinner",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("You have won the dispute")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method)."))),this.showBondIsSettled())})),qg(this,"showDisputeLoser",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"error",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("You have lost the dispute")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low."))),this.showBondIsSettled())})),qg(this,"handleClickConfirmButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"confirm"})};fetch("/api/order/?order_id="+this.props.data.id,e).then((e=>e.json())).then((e=>this.props.completeSetState(e)))})),qg(this,"handleRatingUserChange",(e=>{const t={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"rate_user",rating:e.target.value})};fetch("/api/order/?order_id="+this.props.data.id,t).then((e=>e.json())).then((e=>this.props.completeSetState(e)))})),qg(this,"handleRatingRobosatsChange",(e=>{if(null!=this.state.rating_platform)return null;this.setState({rating_platform:e.target.value});const t={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"rate_platform",rating:e.target.value})};fetch("/api/order/?order_id="+this.props.data.id,t).then((e=>e.json())).then((e=>this.props.completeSetState(e)))})),qg(this,"showChat",(()=>{const{t:e}=this.props;if(this.props.data.is_buyer&9==this.props.data.status)var t=!0,n=!1,o=!0;return this.props.data.is_seller&9==this.props.data.status&&(t=!1,n=!1,o=!0),this.props.data.is_buyer&10==this.props.data.status&&(t=!1,n=!1,o=!0),this.props.data.is_seller&10==this.props.data.status&&(t=!1,n=!0,o=!0),r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"chat-open"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",this.props.data.is_seller?e("Chat with the buyer"):e("Chat with the seller"))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},this.props.data.is_seller?r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},9==this.props.data.status?e("Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.",{currencyCode:this.props.data.currencyCode}):e("The buyer has sent the fiat. Click 'Confirm Received' once you receive it.")):r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},9==this.props.data.status?e("Say hi! Ask for payment details and click 'Confirm Sent' as soon as the payment is sent."):e("Wait for the seller to confirm he has received the payment."))),r.createElement(Fg,{orderId:this.props.data.id,ur_nick:this.props.data.ur_nick}),r.createElement(it,{item:!0,xs:12,align:"center"},o?this.showOpenDisputeButton():"",t?this.showFiatSentButton():"",n?this.showFiatReceivedButton():""),this.showBondIsLocked())})),qg(this,"countdownRenderer",(({minutes:e,seconds:t,completed:n})=>{const{t:o}=this.props;return n?r.createElement("div",{align:"center"},r.createElement("span",null," ",o("Retrying!")," "),r.createElement("br",null),r.createElement(ct.Z,null)):r.createElement("span",null,uf(e),"m ",uf(t),"s ")})),qg(this,"showRoutingFailed",(()=>{const{t:e}=this.props;return this.props.data.invoice_expired?r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h6",variant:"h6"},e("Lightning Routing Failed"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},e("Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. "),r.createElement(Ft,{href:"https://github.com/Reckless-Satoshi/robosats/issues/44"}," ",e("Check the list of compatible wallets")))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("Submit an invoice for {{amountSats}} Sats",{amountSats:Xg(this.props.data.invoice_amount)})))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{error:this.state.badInvoice,helperText:this.state.badInvoice?this.state.badInvoice:"",label:e("Payout Lightning Invoice"),required:!0,inputProps:{style:{textAlign:"center"}},multiline:!0,minRows:4,maxRows:8,onChange:this.handleInputInvoiceChanged})),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{onClick:this.handleClickSubmitInvoiceButton,variant:"contained",color:"primary"},"Submit")),this.showBondIsReturned()):r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h6",variant:"h6"},e("Lightning Routing Failed"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},e("RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.")),r.createElement(_m.Z,null,r.createElement(Ph,null),r.createElement(Dm,{secondary:e("Next attempt in")},r.createElement(gf,{date:new Date(this.props.data.next_retry_time),renderer:this.countdownRenderer})))),this.showBondIsReturned())})),this.state={openConfirmFiatReceived:!1,openConfirmDispute:!1,openEnableTelegram:!1,badInvoice:!1,badStatement:!1,qrscanner:!1}}showInputInvoice(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(this.Sound,{soundFileName:"locked-invoice"}),r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("Submit an invoice for {{amountSats}} Sats",{amountSats:Xg(this.props.data.invoice_amount)}))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.",{amountFiat:parseFloat(parseFloat(this.props.data.amount).toFixed(4)),currencyCode:this.props.data.currencyCode,amountSats:Xg(this.props.data.invoice_amount)}))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{error:this.state.badInvoice,helperText:this.state.badInvoice?this.state.badInvoice:"",label:e("Payout Lightning Invoice"),required:!0,value:this.state.invoice,inputProps:{style:{textAlign:"center"},maxHeight:200},multiline:!0,minRows:5,maxRows:this.state.qrscanner?5:14,onChange:this.handleInputInvoiceChanged})),this.state.qrscanner?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(Ng(),{delay:300,onError:this.handleError,onScan:this.handleScan,style:{width:"75%"}})):null,r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(dt.Z,null,r.createElement(Wg.Z,{onClick:this.handleQRbutton})),r.createElement(pt.Z,{onClick:this.handleClickSubmitInvoiceButton,variant:"contained",color:"primary"},"Submit")),this.showBondIsLocked())}showWaitingForEscrow(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("Your invoice looks good!"))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"left"},r.createElement("p",null,e("We are waiting for the seller lock the trade amount.")),r.createElement("p",null,e("Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).")))),this.showBondIsLocked())}showWaitingForBuyerInvoice(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"locked-invoice"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("The trade collateral is locked!"))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"left"},r.createElement("p",null,e("We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.")," "),r.createElement("p",null,e("Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).")))),this.showBondIsLocked())}showFiatSentButton(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{defaultValue:"confirm",variant:"contained",color:"secondary",onClick:this.handleClickConfirmButton},e("Confirm {{currencyCode}} sent",{currencyCode:this.props.data.currencyCode}))))}showFiatReceivedButton(){const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{defaultValue:"confirm",variant:"contained",color:"secondary",onClick:this.handleClickOpenConfirmFiatReceived},e("Confirm {{currencyCode}} received",{currencyCode:this.props.data.currencyCode})))}showOpenDisputeButton(){const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{color:"inherit",onClick:this.handleClickOpenConfirmDispute},e("Open Dispute")))}showOrderExpired(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("The order has expired")))))}showRateSelect(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"successful"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h6",variant:"h6"},e("🎉Trade finished!🥳"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},r.createElement(Nf,{i18nKey:"rate_robosats"},"What do you think of 🤖",r.createElement("b",null,"RoboSats"),"⚡?"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(og,{name:"size-large",defaultValue:0,size:"large",onChange:this.handleRatingRobosatsChange})),5==this.state.rating_platform?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},r.createElement("p",null,r.createElement("b",null,e("Thank you! RoboSats loves you too ❤️"))),r.createElement("p",null,e("RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!")))):null,5!=this.state.rating_platform&null!=this.state.rating_platform?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},r.createElement("p",null,r.createElement("b",null,e("Thank you for using Robosats!"))),r.createElement("p",null,r.createElement(Nf,{i18nKey:"let_us_know_hot_to_improve"},"Let us know how the platform could improve (",r.createElement(Ft,{target:"_blank",href:"https://t.me/robosats"},"Telegram")," / ",r.createElement(Ft,{target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/issues"},"Github"),")")))):null,r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{color:"primary",onClick:()=>{this.props.push("/")}},e("Start Again"))),this.showBondIsReturned())}showSendingPayment(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h6",variant:"h6"},e("Attempting Lightning Payment"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},e("RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.")),r.createElement("br",null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ct.Z,null))))}render(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1,style:{width:this.props.width}},r.createElement(this.ConfirmDisputeDialog,null),r.createElement(this.ConfirmFiatReceivedDialog,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(Yt(),{minWidth:920},r.createElement(st.Z,{component:"h5",variant:"h5"},e("Contract Box"))),r.createElement(Me.Z,{elevation:12,style:{padding:8}},this.props.data.is_maker&0==this.props.data.status?this.showQRInvoice():"",this.props.data.is_taker&3==this.props.data.status?this.showQRInvoice():"",this.props.data.is_maker&1==this.props.data.status?this.showMakerWait():"",this.props.data.is_maker&3==this.props.data.status?this.showTakerFound():"",this.props.data.is_seller&(6==this.props.data.status||7==this.props.data.status)?this.showEscrowQRInvoice():"",this.props.data.is_buyer&(6==this.props.data.status||8==this.props.data.status)?this.showInputInvoice():"",this.props.data.is_buyer&7==this.props.data.status?this.showWaitingForEscrow():"",this.props.data.is_seller&8==this.props.data.status?this.showWaitingForBuyerInvoice():"",9==this.props.data.status||10==this.props.data.status?this.showChat():"",this.props.data.is_seller&[13,14,15].includes(this.props.data.status)?this.showRateSelect():"",this.props.data.is_buyer&14==this.props.data.status?this.showRateSelect():"",this.props.data.is_buyer&13==this.props.data.status?this.showSendingPayment():"",this.props.data.is_buyer&15==this.props.data.status?this.showRoutingFailed():"",11==this.props.data.status?this.showInDisputeStatement():"",16==this.props.data.status?this.showWaitForDisputeResolution():"",17==this.props.data.status&this.props.data.is_taker||18==this.props.data.status&this.props.data.is_maker?this.showDisputeWinner():"",18==this.props.data.status&this.props.data.is_taker||17==this.props.data.status&this.props.data.is_maker?this.showDisputeLoser():"",5==this.props.data.status?this.showOrderExpired():"")))}}const Qg=xe()(Jg);var _g=n(244),$g=n(842),eb=n(6543),tb=n(7116),nb=n(1523);function rb(e){return rb="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},rb(e)}function ob(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ab(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};ob(this,e),this.init(t,n)}return ib(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||gb,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),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(o())return{};var i=r(a.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function Sb(e,t,n){var r=xb(e,t,Object);r.obj[r.k]=n}function Eb(e,t){var n=xb(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Pb(e,t,n){var r=Eb(e,n);return void 0!==r?r:Eb(t,n)}function Tb(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Tb(e[r],t[r],n):e[r]=t[r]);return e}function Ab(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Rb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Ob(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Rb[e]})):e}var Mb="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Bb=[" ",",","?","!",";"];function Ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zb(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,a=0;aa+i;)i++,l=o[s=r.slice(a,a+i).join(n)];if(void 0===l)return;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var c=r.slice(a+i).join(n);return c?Lb(l,c,n):void 0}o=o[r[a]]}return o}}var Db=function(e){cb(o,e);var t,n,r=(t=o,n=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,r=db(t);if(n){var o=db(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return ub(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ob(this,o),t=r.call(this),Mb&&yb.call(sb(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return ib(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,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."));var s=Eb(this.data,i);return s||!a||"string"!=typeof n?s:Lb(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(i=e.split("."))[1]),this.addNamespaces(t),Sb(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(i=e.split("."))[1]),this.addNamespaces(t);var s=Eb(this.data,i)||{};r?Tb(s,n,o):s=Zb(Zb({},s),n),Sb(this.data,i,s),a.silent||this.emit("added",e,t,n)}},{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?Zb(Zb({},{}),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}(yb),jb={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,o))})),t}};function Fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zb(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return ob(this,o),t=r.call(this),Mb&&yb.call(sb(t)),Cb(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,sb(t)),t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=vb.create("translator"),t}return ib(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 n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=Bb.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),a=!o.test(e);if(!a){var i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a}(e,n,r));if(a&&!i){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==rb(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],t),s=i.key,l=i.namespaces,c=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(d){var p=t.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var m=this.resolve(e,t),h=m&&m.res,f=m&&m.usedKey||s,g=m&&m.exactUsedKey||s,b=Object.prototype.toString.apply(h),v=["[object Number]","[object Function]","[object RegExp]"],y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,k="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&k&&v.indexOf(b)<0&&("string"!=typeof y||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,h,zb(zb({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C="[object Array]"===b,x=C?[]:{},S=C?g:f;for(var E in h)if(Object.prototype.hasOwnProperty.call(h,E)){var P="".concat(S).concat(a).concat(E);x[E]=this.translate(P,zb(zb({},t),{joinArrays:!1,ns:l})),x[E]===P&&(x[E]=h[E])}h=x}}else if(w&&"string"==typeof y&&"[object Array]"===b)(h=h.join(y))&&(h=this.extendTranslation(h,e,t,n));else{var T=!1,A=!1,R=void 0!==t.count&&"string"!=typeof t.count,O=o.hasDefaultValue(t),M=R?this.pluralResolver.getSuffix(u,t.count,t):"",B=t["defaultValue".concat(M)]||t.defaultValue;!this.isValidLookup(h)&&O&&(T=!0,h=B),this.isValidLookup(h)||(A=!0,h=s);var I=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Z=I&&A?void 0:h,L=O&&B!==h&&this.options.updateMissing;if(A||T||L){if(this.logger.log(L?"updateKey":"missingKey",u,c,s,L?B:h),a){var D=this.resolve(s,zb(zb({},t),{},{keySeparator:!1}));D&&D.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 j=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&i.pluralResolver.shouldUseIntlApi(),m=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(e){i.isValidLookup(t)||(a=e,!Nb["".concat(h[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(a)&&(Nb["".concat(h[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(a,'" 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!!!")),h.forEach((function(n){if(!i.isValidLookup(t)){o=n;var a,l=[c];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(l,c,n,e,s);else{var u;d&&(u=i.pluralResolver.getSuffix(n,s.count,s));var h="_zero";if(d&&(l.push(c+u),p&&l.push(c+h)),m){var f="".concat(c).concat(i.options.contextSeparator).concat(s.context);l.push(f),d&&(l.push(f+u),p&&l.push(f+h))}}for(;a=l.pop();)i.isValidLookup(t)||(r=a,t=i.getResource(n,e,a,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}(yb);function Vb(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Wb=function(){function e(t){ob(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=vb.create("languageUtils")}return ib(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"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vb(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vb(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Vb(n[2].toLowerCase()))),n.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,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),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 n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],a=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))})),o}}]),e}(),Ub=[{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}],Yb={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)}},Gb=["v1","v2","v3"],qb={zero:0,one:1,two:2,few:3,many:4,other:5};function Kb(){var e={};return Ub.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Yb[t.fc]}}))})),e}var Xb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ob(this,e),this.languageUtils=t,this.options=n,this.logger=vb.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=Kb()}return ib(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]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return qb[e]-qb[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Gb.includes(this.options.compatibilityJSON)}}]),e}();function Jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qb(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ob(this,e),this.logger=vb.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ib(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:Ob,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Ab(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Ab(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?Ab(t.nestingPrefix):t.nestingPrefixEscaped||Ab("$t("),this.nestingSuffix=t.nestingSuffix?Ab(t.nestingSuffix):t.nestingSuffixEscaped||Ab(")"),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 n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,a,i,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=Pb(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,Qb(Qb(Qb({},r),t),{},{interpolationkey:e})):o}var a=e.split(s.formatSeparator),i=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(Pb(t,l,i),c,n,Qb(Qb(Qb({},r),t),{},{interpolationkey:i}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.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(i=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(a=u(n)))if("function"==typeof d){var l=d(e,o,r);a="string"==typeof l?l:""}else if(r&&r.hasOwnProperty(n))a="";else{if(p){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=kb(a));var c=t.safeValue(a);if(e=e.replace(o[0],c),p?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++i>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Qb({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,i)).replace(/'/g,'"');try{i=JSON.parse(o),t&&(i=Qb(Qb({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=kb(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return o.format(e,t,a.lng,Qb(Qb({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function $b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ev(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ob(this,e),this.logger=vb.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,ev(ev({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,ev({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,ev({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,ev({},n)).format(e)}},this.init(t)}return ib(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var o=this,a=t.split(this.formatSeparator).reduce((function(e,t){var a=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=function(e){return function(e){if(Array.isArray(e))return 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 mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mb(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(":")),r=t[0],o=t.slice(1).join(":");n[r.trim()]||(n[r.trim()]=o.trim()),"false"===o.trim()&&(n[r.trim()]=!1),"true"===o.trim()&&(n[r.trim()]=!0),isNaN(o.trim())||(n[r.trim()]=parseInt(o.trim(),10))}}))}return{formatName:t,formatOptions:n}}(t),i=a.formatName,s=a.formatOptions;if(o.formats[i]){var l=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},u=c.locale||c.lng||r.locale||r.lng||n;l=o.formats[i](e,u,ev(ev(ev({},s),r),c))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(i)),e}),e);return a}}]),e}();function nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rv(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return ob(this,o),a=r.call(this),Mb&&yb.call(sb(a)),a.backend=e,a.store=t,a.services=n,a.languageUtils=n.languageUtils,a.options=i,a.logger=vb.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,i.backend,i),a}return ib(o,[{key:"queueLoad",value:function(e,t,n,r){var o=this,a=[],i=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?i.indexOf(s)<0&&i.push(s):(o.state[s]=1,r=!1,i.indexOf(s)<0&&i.push(s),a.indexOf(s)<0&&a.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(a.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:r}),{toLoad:a,pending:i,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],a=r[1];t&&this.emit("failedLoading",o,a,t),n&&this.store.addResourceBundle(o,a,n),this.state[e]=t?-1:2;var i={};this.queue.forEach((function(n){!function(e,t,n,r){var o=xb(e,t,Object),a=o.obj,i=o.k;a[i]=a[i]||[],a[i].push(n)}(n.loaded,[o],a),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){i[e]||(i[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){i[e].indexOf(t)<0&&i[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,i=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*a,i)}),a):i(s,l)})):i(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;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 a=this.queueLoad(e,t,r,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],a=r[1];this.read(o,a,"read",void 0,void 0,(function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),t.loaded(e,r,i)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" 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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,rv(rv({},a),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),o}(yb);function av(){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"===rb(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===rb(e[2])||"object"===rb(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function iv(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 sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lv(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(ob(this,o),e=r.call(this),Mb&&yb.call(sb(e)),e.options=iv(t),e.services={},e.logger=vb,e.modules={external:[]},uv(sb(e)),n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),ub(e,sb(e));setTimeout((function(){e.init(t,n)}),0)}return e}return ib(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=av();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=lv(lv(lv({},r),this.options),iv(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=lv(lv({},r.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 a;this.modules.logger?vb.init(o(this.modules.logger),this.options):vb.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=tv);var i=new Wb(this.options);this.store=new Db(this.options.resources,this.options);var s=this.services;s.logger=vb,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new Xb(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=o(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new _b(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ov(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o0&&"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");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=wb(),p=function(){var t=function(t,r){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),d.resolve(r),n(t,r)};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?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cv,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var a=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(o)i(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return i(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(a,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,n){var r=wb();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cv),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{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&&jb.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-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=wb();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var i="string"==typeof a?a:n.services.languageUtils.getBestMatchFromCodes(a);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,a){a?(o(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var a;if("object"!==rb(o)){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l1&&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 r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!i(r,e)||o&&!i(a,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=wb();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=wb();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e?["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(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cv,r=lv(lv(lv({},this.options),t),{isClone:!0}),a=new o(r),i=["store","services","language"];return i.forEach((function(t){a[t]=e[t]})),a.services=lv({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new Hb(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new dv(e,t)}));var pv=dv.createInstance();pv.createInstance=dv.createInstance,pv.createInstance,pv.init,pv.loadResources,pv.reloadResources,pv.use,pv.changeLanguage,pv.getFixedT;var mv=pv.t;pv.exists,pv.setDefaultNamespace,pv.hasLoadedNamespace,pv.loadNamespaces,pv.loadLanguages;const hv=pv;function fv(){return fv=Object.assign||function(e){for(var t=1;t{null==e.currency&&(e.currency=this.state.currency,e.status=this.state.status);var t={amount:e.amount?e.amount:null,loading:!1,delay:this.setDelay(e.status),currencyCode:this.getCurrencyCode(e.currency),penalty:e.penalty,invoice_expired:e.invoice_expired},n=Object.assign({},e,t);this.setState(n)})),gv(this,"tick",(()=>{this.getOrderDetails()})),gv(this,"countdownRenderer",(({total:e,hours:t,minutes:n,seconds:o,completed:a})=>{const{t:i}=this.props;if(a)return r.createElement("span",null," ",i("The order has expired"));var s="inherit",l=e/1e3/this.state.total_secs_exp;return l<.25&&(s="orange"),l<.1&&(s="red"),l<.25?r.createElement("b",null,r.createElement("span",{style:{color:s}},t,"h ",uf(n),"m ",uf(o),"s ")):r.createElement("span",{style:{color:s}},t,"h ",uf(n),"m ",uf(o),"s ")})),gv(this,"countdownPenaltyRenderer",(({minutes:e,seconds:t,completed:n})=>{const{t:o}=this.props;return n?r.createElement("span",null," ",o("Penalty lifted, good to go!")):r.createElement("span",null," ",o("You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s",{timeMin:uf(e),timeSec:uf(t)})," ")})),gv(this,"handleTakeAmountChange",(e=>{""!=e.target.value&null!=e.target.value?this.setState({takeAmount:parseFloat(e.target.value)}):this.setState({takeAmount:e.target.value})})),gv(this,"amountHelperText",(()=>{const{t:e}=this.props;return this.state.takeAmountthis.state.max_amount&""!=this.state.takeAmount?e("Too high"):null})),gv(this,"takeOrderButton",(()=>{const{t:e}=this.props;return this.state.has_range?r.createElement(it,{containter:!0,xs:12,align:"center",alignItems:"stretch",justifyContent:"center",style:{display:"flex"}},r.createElement(this.InactiveMakerDialog,null),r.createElement("div",{style:{maxWidth:120}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"500",enterDelay:"700",enterNextDelay:"2000",title:e("Enter amount of fiat to exchange for bitcoin")},r.createElement(Me.Z,{elevation:5,sx:{maxHeight:40}},r.createElement(ut.Z,{error:(this.state.takeAmountthis.state.max_amount)&""!=this.state.takeAmount,helperText:this.amountHelperText(),label:e("Amount {{currencyCode}}",{currencyCode:this.state.currencyCode}),size:"small",type:"number",required:"true",value:this.state.takeAmount,inputProps:{min:this.state.min_amount,max:this.state.max_amount,style:{textAlign:"center"}},onChange:this.handleTakeAmountChange})))),r.createElement("div",{style:{height:38,top:"1px",position:"relative",display:this.state.takeAmountthis.state.max_amount||""==this.state.takeAmount||null==this.state.takeAmount?"":"none"}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",enterDelay:"500",enterNextDelay:"1200",title:e("You must specify an amount first")},r.createElement(Me.Z,{elevation:4},r.createElement(pt.Z,{sx:{height:38},variant:"contained",color:"primary",disabled:!0},e("Take Order"))))),r.createElement("div",{style:{height:38,top:"1px",position:"relative",display:this.state.takeAmountthis.state.max_amount||""==this.state.takeAmount||null==this.state.takeAmount?"none":""}},r.createElement(Me.Z,{elevation:4},r.createElement(pt.Z,{sx:{height:38},variant:"contained",color:"primary",onClick:"Inactive"==this.state.maker_status?this.handleClickOpenInactiveMakerDialog:this.takeOrder},e("Take Order"))))):r.createElement(r.Fragment,null,r.createElement(this.InactiveMakerDialog,null),r.createElement(pt.Z,{variant:"contained",color:"primary",onClick:"Inactive"==this.state.maker_status?this.handleClickOpenInactiveMakerDialog:this.takeOrder},e("Take Order")))})),gv(this,"countdownTakeOrderRenderer",(({seconds:e,completed:t})=>isNaN(e)||t?r.createElement(this.takeOrderButton,null):r.createElement(lt.Z,{enterTouchDelay:"0",title:mv("Wait until you can take an order")},r.createElement("div",null,r.createElement(pt.Z,{disabled:!0,variant:"contained",color:"primary"},mv("Take Order")))))),gv(this,"LinearDeterminate",(()=>{const[e,t]=r.useState(0);return r.useEffect((()=>{const e=setInterval((()=>{t((e=>pf(new Date(this.state.expires_at)).total/1e3/this.state.total_secs_exp*100))}),1e3);return()=>{clearInterval(e)}}),[]),r.createElement(oo,{sx:{width:"100%"}},r.createElement(Wr,{variant:"determinate",value:e}))})),gv(this,"takeOrder",(()=>{this.setState({loading:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":bv("csrftoken")},body:JSON.stringify({action:"take",amount:this.state.takeAmount})};fetch("/api/order/?order_id="+this.orderId,e).then((e=>e.json())).then((e=>this.completeSetState(e)))})),gv(this,"setDelay",(e=>e>=0?this.statusToDelay[e.toString()]:99999999)),gv(this,"handleClickConfirmCancelButton",(()=>{this.setState({loading:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":bv("csrftoken")},body:JSON.stringify({action:"cancel"})};fetch("/api/order/?order_id="+this.orderId,e).then((e=>e.json())).then((e=>this.getOrderDetails(e.id))),this.handleClickCloseConfirmCancelDialog()})),gv(this,"handleClickOpenConfirmCancelDialog",(()=>{this.setState({openCancel:!0})})),gv(this,"handleClickCloseConfirmCancelDialog",(()=>{this.setState({openCancel:!1})})),gv(this,"CancelDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openCancel,onClose:this.handleClickCloseConfirmCancelDialog,"aria-labelledby":"cancel-dialog-title","aria-describedby":"cancel-dialog-description"},r.createElement(Gm,{id:"cancel-dialog-title"},e("Cancel the order?")),r.createElement(At,null,r.createElement(Qm,{id:"cancel-dialog-description"},e("If the order is cancelled now you will lose your bond."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmCancelDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickConfirmCancelButton},e("Confirm Cancel"))))})),gv(this,"handleClickOpenInactiveMakerDialog",(()=>{this.setState({openInactiveMaker:!0})})),gv(this,"handleClickCloseInactiveMakerDialog",(()=>{this.setState({openInactiveMaker:!1})})),gv(this,"InactiveMakerDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openInactiveMaker,onClose:this.handleClickCloseInactiveMakerDialog,"aria-labelledby":"inactive-maker-dialog-title","aria-describedby":"inactive-maker-description"},r.createElement(Gm,{id:"inactive-maker-dialog-title"},e("The maker is away")),r.createElement(At,null,r.createElement(Qm,{id:"cancel-dialog-description"},e("By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseInactiveMakerDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.takeOrder},e("Take Order"))))})),gv(this,"handleClickConfirmCollaborativeCancelButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":bv("csrftoken")},body:JSON.stringify({action:"cancel"})};fetch("/api/order/?order_id="+this.orderId,e).then((e=>e.json())).then((e=>this.getOrderDetails(e.id))),this.handleClickCloseCollaborativeCancelDialog()})),gv(this,"handleClickOpenCollaborativeCancelDialog",(()=>{this.setState({openCollaborativeCancel:!0})})),gv(this,"handleClickCloseCollaborativeCancelDialog",(()=>{this.setState({openCollaborativeCancel:!1})})),gv(this,"CollaborativeCancelDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openCollaborativeCancel,onClose:this.handleClickCloseCollaborativeCancelDialog,"aria-labelledby":"collaborative-cancel-dialog-title","aria-describedby":"collaborative-cancel-dialog-description"},r.createElement(Gm,{id:"cancel-dialog-title"},e("Collaborative cancel the order?")),r.createElement(At,null,r.createElement(Qm,{id:"cancel-dialog-description"},e("The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseCollaborativeCancelDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickConfirmCollaborativeCancelButton},e("Ask for Cancel"))))})),gv(this,"BackButton",(()=>{const{t:e}=this.props;return 5==this.state.status?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.props.history.goBack},e("Back"))):null})),gv(this,"CancelButton",(()=>{const{t:e}=this.props;return this.state.is_maker&[0,1].includes(this.state.status)||this.state.is_taker&3==this.state.status?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.handleClickConfirmCancelButton},e("Cancel"))):[3,6,7].includes(this.state.status)?r.createElement("div",{id:"openDialogCancelButton"},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(this.CancelDialog,null),r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.handleClickOpenConfirmCancelDialog},e("Cancel")))):[8,9].includes(this.state.status)?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(this.CollaborativeCancelDialog,null),r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.handleClickOpenCollaborativeCancelDialog},e("Collaborative Cancel"))):null})),gv(this,"orderBox",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(Yt(),{minWidth:920},r.createElement(st.Z,{component:"h5",variant:"h5"},e("Order Box"))),r.createElement(Me.Z,{elevation:12,style:{padding:8}},r.createElement(_m.Z,{dense:"true"},r.createElement(ph,null,r.createElement(Om,{sx:{width:56,height:56}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:e(this.state.maker_status)},r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(this.state.maker_status)},r.createElement(wh,{className:"flippedSmallAvatar",alt:this.state.maker_nick,src:window.location.origin+"/static/assets/avatars/"+this.state.maker_nick+".png"})))),r.createElement(Dm,{primary:this.state.maker_nick+(this.state.type?" "+e("(Seller)"):" "+e("(Buyer)")),secondary:e("Order maker"),align:"right"})),this.state.is_participant?r.createElement(r.Fragment,null,"None"!=this.state.taker_nick?r.createElement(r.Fragment,null,r.createElement(Ph,null),r.createElement(ph,{align:"left"},r.createElement(Dm,{primary:this.state.taker_nick+(this.state.type?" "+e("(Buyer)"):" "+e("(Seller)")),secondary:e("Order taker")}),r.createElement(Om,null,r.createElement(lt.Z,{enterTouchDelay:"0",title:e(this.state.taker_status)},r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(this.state.taker_status)},r.createElement(wh,{className:"smallAvatar",alt:this.state.taker_nick,src:window.location.origin+"/static/assets/avatars/"+this.state.taker_nick+".png"})))))):"",r.createElement(Ph,null,r.createElement(Lh,{label:e("Order Details")})),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(nb.Z,null)),r.createElement(Dm,{primary:e(this.state.status_message),secondary:e("Order status")})),r.createElement(Ph,null)):r.createElement(Ph,null,r.createElement(Lh,{label:e("Order Details")})),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement("div",{style:{zoom:1.25,opacity:.7,"-ms-zoom":1.25,"-webkit-zoom":1.25,"-moz-transform":"scale(1.25,1.25)","-moz-transform-origin":"left center"}},Hp(this.state.currencyCode))),this.state.has_range&null==this.state.amount?r.createElement(Dm,{primary:parseFloat(Number(this.state.min_amount).toPrecision(2))+"-"+parseFloat(Number(this.state.max_amount).toPrecision(2))+" "+this.state.currencyCode,secondary:e("Amount range")}):r.createElement(Dm,{primary:parseFloat(parseFloat(this.state.amount).toFixed(4))+" "+this.state.currencyCode,secondary:e("Amount")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(tb.Z,null)),r.createElement(Dm,{primary:r.createElement(zm,{size:20,othersText:e("Others"),verbose:!0,text:this.state.payment_method}),secondary:1e3==this.state.currency?e("Swap destination"):e("Accepted payment methods")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(eb.Z,null)),this.state.price_now?r.createElement(Dm,{primary:e("{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%",{price:vv(this.state.price_now),currencyCode:this.state.currencyCode,premium:this.state.premium_now}),secondary:e("Price and Premium")}):this.state.is_explicit?r.createElement(Dm,{primary:vv(this.state.satoshis),secondary:e("Amount of Satoshis")}):r.createElement(Dm,{primary:parseFloat(parseFloat(this.state.premium).toFixed(2))+"%",secondary:e("Premium over market price")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement($g.Z,null)),r.createElement(Dm,{primary:this.orderId,secondary:e("Order ID")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(_g.Z,null)),r.createElement(Dm,{secondary:e("Expires in")},r.createElement(gf,{date:new Date(this.state.expires_at),renderer:this.countdownRenderer}))),r.createElement(this.LinearDeterminate,null)),this.state.penalty?r.createElement(r.Fragment,null,r.createElement(Ph,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(_h,{severity:"warning",sx:{maxWidth:360}},r.createElement(gf,{date:new Date(this.state.penalty),renderer:this.countdownPenaltyRenderer})))):null,this.state.pending_cancel?r.createElement(r.Fragment,null,r.createElement(Ph,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(_h,{severity:"warning",sx:{maxWidth:360}},e("{{nickname}} is asking for a collaborative cancel",{nickname:this.state.is_maker?this.state.taker_nick:this.state.maker_nick})))):null,this.state.asked_for_cancel?r.createElement(r.Fragment,null,r.createElement(Ph,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(_h,{severity:"warning",sx:{maxWidth:360}},e("You asked for a collaborative cancellation")))):null)),r.createElement(it,{item:!0,xs:12,align:"center"},this.state.is_participant?r.createElement(r.Fragment,null,r.createElement(this.CancelButton,null),r.createElement(this.BackButton,null)):r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(gf,{date:new Date(this.state.penalty),renderer:this.countdownTakeOrderRenderer})),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.props.history.goBack},e("Back"))))))})),gv(this,"doubleOrderPageDesktop",(()=>r.createElement(it,{container:!0,xs:12,align:"center",spacing:2},r.createElement(it,{item:!0,xs:6,align:"left",style:{width:330}},this.orderBox()),r.createElement(it,{item:!0,xs:6,align:"left"},r.createElement(Qg,{push:this.props.history.push,width:330,data:this.state,completeSetState:this.completeSetState}))))),gv(this,"doubleOrderPagePhone",(()=>{const{t:e}=this.props,[t,n]=r.useState(this.state.showContractBox);return r.createElement(oo,{sx:{width:"100%"}},r.createElement(oo,{sx:{borderBottom:1,borderColor:"divider"}},r.createElement(No,{value:t,onChange:(e,t)=>{this.setState({showContractBox:t}),n(t)},variant:"fullWidth"},r.createElement(Go,fv({label:e("Order")},this.a11yProps(0))),r.createElement(Go,fv({label:e("Contract")},this.a11yProps(1))))),r.createElement(it,{container:!0,spacing:2},r.createElement(it,{item:!0},r.createElement("div",{style:{width:330,display:0==this.state.showContractBox?"":"none"}},this.orderBox()),r.createElement("div",{style:{display:1==this.state.showContractBox?"":"none"}},r.createElement(Qg,{push:this.props.history.push,width:330,data:this.state,completeSetState:this.completeSetState})))))})),this.state={is_explicit:!1,delay:6e4,total_secs_exp:300,loading:!0,openCancel:!1,openCollaborativeCancel:!1,openInactiveMaker:!1,showContractBox:1},this.orderId=this.props.match.params.orderId,this.getOrderDetails(),this.statusToDelay={0:2e3,1:25e3,2:999999,3:2e3,4:999999,5:999999,6:6e3,7:8e3,8:8e3,9:1e4,10:1e4,11:3e4,12:999999,13:3e3,14:999999,15:1e4,16:18e4,17:18e4,18:18e4}}getOrderDetails(){this.setState(null),fetch("/api/order?order_id="+this.orderId).then((e=>e.json())).then((e=>this.completeSetState(e)))}componentDidMount(){this.interval=setInterval(this.tick,this.state.delay)}componentDidUpdate(){clearInterval(this.interval),this.interval=setInterval(this.tick,this.state.delay)}componentWillUnmount(){clearInterval(this.interval)}getCurrencyCode(e){return e?pm[e.toString()]:""}statusBadgeColor(e){return"Active"==e?"success":"Seen recently"==e?"warning":"Inactive"==e?"error":void 0}a11yProps(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}orderDetailsPage(){const{t:e}=this.props;return this.state.bad_request?r.createElement("div",{align:"center"},r.createElement(st.Z,{component:"subtitle2",variant:"subtitle2",color:"secondary"},e(this.state.bad_request),r.createElement("br",null)),r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.props.history.goBack},e("Back"))):this.state.is_participant?r.createElement(r.Fragment,null,r.createElement(Yt(),{minWidth:920},r.createElement(this.doubleOrderPageDesktop,null)),r.createElement(Yt(),{maxWidth:919},r.createElement(this.doubleOrderPagePhone,null))):r.createElement(it,{item:!0,xs:12,align:"center",style:{width:330}},this.orderBox())}render(){return this.state.loading?r.createElement(ct.Z,null):this.orderDetailsPage()}}const wv=xe()(yv);var kv=n(2852),Cv=n(4229),xv=n(8571),Sv=n(2133),Ev=n(62),Pv=n(5449),Tv=n(4855),Av=n(9055),Rv=n(8557),Ov=n(4804),Mv=n(4210),Bv=n(8594),Iv=n(5089);function Zv(){return Zv=Object.assign||function(e){for(var t=1;t{this.setState({openStatsForNerds:!0})})),jv(this,"handleClickCloseStatsForNerds",(()=>{this.setState({openStatsForNerds:!1})})),jv(this,"StatsDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openStatsForNerds,onClose:this.handleClickCloseStatsForNerds,"aria-labelledby":"stats-for-nerds-dialog-title","aria-describedby":"stats-for-nerds-description"},r.createElement(At,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Stats For Nerds")),r.createElement(_m.Z,{dense:!0},r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(en.Z,null)),r.createElement(Dm,{primary:this.state.lnd_version,secondary:e("LND version")})),r.createElement(Ph,null),"testnet"==this.state.network?r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Ov.Z,null)),r.createElement(Dm,{secondary:this.state.node_alias},r.createElement(Ft,{target:"_blank",href:"https://1ml.com/testnet/node/"+this.state.node_id},this.state.node_id.slice(0,12)+"... (1ML)"))):r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Lv,null)),r.createElement(Dm,{secondary:this.state.node_alias},r.createElement(Ft,{target:"_blank",href:"https://amboss.space/node/"+this.state.node_id},this.state.node_id.slice(0,12)+"... (AMBOSS)"))),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Mv.Z,null)),r.createElement(Dm,{secondary:this.state.alternative_name},r.createElement(Ft,{target:"_blank",href:"http://"+this.state.alternative_site},this.state.alternative_site.slice(0,12)+"...onion"))),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Pv.Z,null)),r.createElement(Dm,{secondary:e("Currently running commit hash")},r.createElement(Ft,{target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/tree/"+this.state.robosats_running_commit_hash},this.state.robosats_running_commit_hash.slice(0,12)+"..."))),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Tv.Z,null)),r.createElement(Dm,{primary:Fv(this.state.last_day_volume)+" Sats",secondary:e("24h contracted volume")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Tv.Z,null)),r.createElement(Dm,{primary:Fv(this.state.lifetime_volume)+" BTC",secondary:e("Lifetime contracted volume")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Av.Z,null)),r.createElement(Dm,{primary:r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"left",flexWrap:"wrap"}},r.createElement("span",null,e("Made with")+" "),r.createElement(Dv.Z,{sx:{color:"#FF0000",height:"22px",width:"22px"}}),r.createElement("span",null," "+e("and")+" "),r.createElement(en.Z,{sx:{color:"#fcba03",height:"23px",width:"23px"}})),secondary:e("... somewhere on Earth!")})))))})),jv(this,"handleClickOpenCommunity",(()=>{this.setState({openCommuniy:!0})})),jv(this,"handleClickCloseCommunity",(()=>{this.setState({openCommuniy:!1})})),jv(this,"CommunityDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openCommuniy,onClose:this.handleClickCloseCommunity,"aria-labelledby":"community-dialog-title","aria-describedby":"community-description"},r.createElement(At,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Community")),r.createElement(st.Z,{component:"body2",variant:"body2"},r.createElement("p",null,e("Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!"))),r.createElement(_m.Z,null,r.createElement(Ph,null),r.createElement(Em,{component:"a",target:"_blank",href:"https://t.me/robosats"},r.createElement(Dh.Z,null,r.createElement(Ug.Z,null)),r.createElement(Dm,{primary:e("Join the RoboSats group"),secondary:e("Telegram (English / Main)")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Ug.Z,null)),r.createElement(Dm,{secondary:e("RoboSats Telegram Communities")},r.createElement(lt.Z,{title:e("Join RoboSats Spanish speaking community!")},r.createElement(dt.Z,{component:"a",target:"_blank",href:"https://t.me/robosats_es"},r.createElement(Jd,{width:30,height:30,style:{filter:"drop-shadow(2px 2px 2px #444444)"}}))),r.createElement(lt.Z,{title:e("Join RoboSats Russian speaking community!")},r.createElement(dt.Z,{component:"a",target:"_blank",href:"https://t.me/robosats_ru"},r.createElement(Tp,{width:30,height:30,style:{filter:"drop-shadow(2px 2px 2px #444444)"}}))),r.createElement(lt.Z,{title:e("Join RoboSats Chinese speaking community!")},r.createElement(dt.Z,{component:"a",target:"_blank",href:"https://t.me/robosats_cn"},r.createElement(Vd,{width:30,height:30,style:{filter:"drop-shadow(2px 2px 2px #444444)"}}))),r.createElement(lt.Z,{title:e("Join RoboSats English speaking community!")},r.createElement(dt.Z,{component:"a",target:"_blank",href:"https://t.me/robosats"},r.createElement(Lp,{width:30,height:30,style:{filter:"drop-shadow(2px 2px 2px #444444)"}}))))),r.createElement(Ph,null),r.createElement(Em,{component:"a",target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/issues"},r.createElement(Dh.Z,null,r.createElement(Pv.Z,null)),r.createElement(Dm,{primary:e("Tell us about a new feature or a bug"),secondary:e("Github Issues - The Robotic Satoshis Open Source Project")})))))})),jv(this,"handleClickOpenProfile",(()=>{this.getInfo(),this.setState({openProfile:!0,profileShown:!0})})),jv(this,"handleClickCloseProfile",(()=>{this.setState({openProfile:!1})})),jv(this,"handleSubmitInvoiceClicked",(()=>{this.setState({badInvoice:!1,showRewardsSpinner:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":zv("csrftoken")},body:JSON.stringify({invoice:this.state.rewardInvoice})};fetch("/api/reward/",e).then((e=>e.json())).then((e=>console.log(e)&this.setState({badInvoice:e.bad_invoice,openClaimRewards:!e.successful_withdrawal,earned_rewards:e.successful_withdrawal?0:this.state.earned_rewards,withdrawn:!!e.successful_withdrawal,showRewardsSpinner:!1})))})),jv(this,"dialogProfile",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openProfile,onClose:this.handleClickCloseProfile,"aria-labelledby":"profile-title","aria-describedby":"profile-description"},r.createElement(At,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Your Profile")),r.createElement(_m.Z,null,r.createElement(Ph,null),r.createElement(ph,{className:"profileNickname"},r.createElement(Dm,{secondary:e("Your robot")},r.createElement(st.Z,{component:"h6",variant:"h6"},this.props.nickname?r.createElement("div",{style:{position:"relative",left:"-7px"}},r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"left",flexWrap:"wrap",width:300}},r.createElement(en.Z,{sx:{color:"#fcba03",height:"28px",width:"24px"}}),r.createElement("a",null,this.props.nickname),r.createElement(en.Z,{sx:{color:"#fcba03",height:"28px",width:"24px"}}))):"")),r.createElement(Om,null,r.createElement(wh,{className:"profileAvatar",sx:{width:65,height:65},alt:this.props.nickname,src:this.props.nickname?window.location.origin+"/static/assets/avatars/"+this.props.nickname+".png":null}))),r.createElement(Ph,null),this.state.active_order_id?r.createElement(Em,{onClick:this.handleClickCloseProfile,to:"/order/"+this.state.active_order_id,component:K},r.createElement(Dh.Z,null,r.createElement(Mm.Z,{badgeContent:"",color:"primary"},r.createElement($g.Z,{color:"primary"}))),r.createElement(Dm,{primary:e("One active order #{{orderID}}",{orderID:this.state.active_order_id}),secondary:e("Your current order")})):r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement($g.Z,null)),r.createElement(Dm,{primary:e("No active orders"),secondary:e("Your current order")})),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Rv.Z,null)),r.createElement(Dm,{secondary:e("Your token (will not remain here)")},this.props.token?r.createElement(ut.Z,{disabled:!0,label:e("Back it up!"),value:this.props.token,variant:"filled",size:"small",InputProps:{endAdornment:r.createElement(lt.Z,{disableHoverListener:!0,enterTouchDelay:"0",title:e("Copied!")},r.createElement(dt.Z,{onClick:()=>navigator.clipboard.writeText(this.props.token)},r.createElement(Jt.Z,null)))}}):e("Cannot remember"))),r.createElement(Ph,null),r.createElement(it,{spacing:1,align:"center"},r.createElement(vn.Z,{labelPlacement:"start",control:r.createElement(kv.Z,{checked:this.state.showRewards,onChange:()=>this.setState({showRewards:!this.state.showRewards})}),label:e("Rewards and compensations")})),r.createElement("div",{style:{display:this.state.showRewards?"":"none"}},r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Bv.Z,null)),r.createElement(Dm,{secondary:e("Share to earn 100 Sats per trade")},r.createElement(ut.Z,{label:e("Your referral link"),value:this.getHost()+"/ref/"+this.state.referral_code,size:"small",InputProps:{endAdornment:r.createElement(lt.Z,{disableHoverListener:!0,enterTouchDelay:"0",title:e("Copied!")},r.createElement(dt.Z,{onClick:()=>navigator.clipboard.writeText("http://"+this.getHost()+"/ref/"+this.state.referral_code)},r.createElement(Jt.Z,null)))}}))),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Iv.Z,null)),this.state.openClaimRewards?r.createElement("form",{style:{maxWidth:270}},r.createElement(it,{alignItems:"stretch",style:{display:"flex"},align:"center"},r.createElement(it,{item:!0,alignItems:"stretch",style:{display:"flex"},align:"center"},r.createElement(ut.Z,{error:this.state.badInvoice,helperText:this.state.badInvoice?this.state.badInvoice:"",label:e("Invoice for {{amountSats}} Sats",{amountSats:this.state.earned_rewards}),size:"small",value:this.state.rewardInvoice,onChange:e=>{this.setState({rewardInvoice:e.target.value})}})),r.createElement(it,{item:!0,alignItems:"stretch",style:{display:"flex"}},r.createElement(pt.Z,{sx:{maxHeight:38},onClick:this.handleSubmitInvoiceClicked,variant:"contained",color:"primary",size:"small"},e("Submit"))))):r.createElement(Dm,{secondary:e("Your earned rewards")},r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:9},r.createElement(st.Z,null,this.state.earned_rewards+" Sats")),r.createElement(it,{item:!0,xs:3},r.createElement(pt.Z,{disabled:0==this.state.earned_rewards,onClick:()=>this.setState({openClaimRewards:!0}),variant:"contained",size:"small"},e("Claim")))))),this.state.showRewardsSpinner?r.createElement("div",{style:{display:"flex",justifyContent:"center"}},r.createElement(ct.Z,null)):"",this.state.withdrawn?r.createElement("div",{style:{display:"flex",justifyContent:"center"}},r.createElement(st.Z,{color:"primary",variant:"body2"},r.createElement("b",null,e("There it goes, thank you!🥇")))):""))))})),jv(this,"bottomBarDesktop",(()=>{const{t:e}=this.props;return r.createElement(Me.Z,{elevation:6,style:{height:40}},r.createElement(this.StatsDialog,null),r.createElement(this.CommunityDialog,null),r.createElement(this.dialogProfile,null),r.createElement(this.exchangeSummaryDialog,null),r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:1.9},r.createElement("div",{style:{display:this.props.avatarLoaded?"":"none"}},r.createElement(Em,{onClick:this.handleClickOpenProfile},r.createElement(lt.Z,{open:this.state.earned_rewards>0,title:e("You can claim satoshis!")},r.createElement(lt.Z,{open:!!(this.state.active_order_id>0&!this.state.profileShown&this.props.avatarLoaded),title:e("You have an active order")},r.createElement(Om,{sx:{width:30,height:30}},r.createElement(Mm.Z,{badgeContent:this.state.active_order_id>0&!this.state.profileShown?"":null,color:"primary"},r.createElement(wh,{className:"flippedSmallAvatar",sx:{margin:0,top:-13},alt:this.props.nickname,imgProps:{onLoad:()=>this.props.setAppState({avatarLoaded:!0})},src:this.props.nickname?window.location.origin+"/static/assets/avatars/"+this.props.nickname+".png":null}))))),r.createElement(Dm,{primary:this.props.nickname})))),r.createElement(it,{item:!0,xs:1.9},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Sv.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_buy_orders,secondary:e("Public Buy Orders")}))),r.createElement(it,{item:!0,xs:1.9},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Ev.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_sell_orders,secondary:e("Public Sell Orders")}))),r.createElement(it,{item:!0,xs:1.9},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Kt.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.active_robots_today,secondary:e("Today Active Robots")}))),r.createElement(it,{item:!0,xs:1.9},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(eb.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.last_day_nonkyc_btc_premium+"%",secondary:e("24h Avg Premium")}))),r.createElement(it,{item:!0,xs:1.5},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Hg.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:100*(this.state.maker_fee+this.state.taker_fee),secondary:e("Trade Fee")}))),r.createElement(it,{container:!0,item:!0,xs:1},r.createElement(it,{item:!0,xs:6},r.createElement(this.LangSelect,null)),r.createElement(it,{item:!0,xs:3},r.createElement(lt.Z,{enterTouchDelay:"250",title:e("Show community and support links")},r.createElement(dt.Z,{color:"primary","aria-label":"Community",onClick:this.handleClickOpenCommunity},r.createElement(xv.Z,null)))),r.createElement(it,{item:!0,xs:3},r.createElement(lt.Z,{enterTouchDelay:"250",title:e("Show stats for nerds")},r.createElement(dt.Z,{color:"primary","aria-label":"Stats for Nerds",onClick:this.handleClickOpenStatsForNerds},r.createElement(Cv.Z,null)))))))})),jv(this,"handleChangeLang",(e=>{const{i18n:t}=this.props;console.log(t),t.changeLanguage(e.target.value)})),jv(this,"LangSelect",(()=>{const{i18n:e}=this.props;return r.createElement(Dn.Z,{size:"small",value:e.resolvedLanguage.substring(0,2),inputProps:{style:{textAlign:"center"}},onChange:this.handleChangeLang},r.createElement(jn.Z,{value:"en"},"EN"),r.createElement(jn.Z,{disabled:!0,value:"es"},"ES"),r.createElement(jn.Z,{disabled:!0,value:"de"},"DE"),r.createElement(jn.Z,{disabled:!0,value:"ru"},"RU"),r.createElement(jn.Z,{disabled:!0,value:"zh"},"ZH"))})),jv(this,"handleClickOpenExchangeSummary",(()=>{this.getInfo(),this.setState({openExchangeSummary:!0})})),jv(this,"handleClickCloseExchangeSummary",(()=>{this.setState({openExchangeSummary:!1})})),jv(this,"exchangeSummaryDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openExchangeSummary,onClose:this.handleClickCloseExchangeSummary,"aria-labelledby":"exchange-summary-title","aria-describedby":"exchange-summary-description"},r.createElement(At,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Exchange Summary")),r.createElement(_m.Z,{dense:!0},r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Sv.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_buy_orders,secondary:e("Public buy orders")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Ev.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_sell_orders,secondary:e("Public sell orders")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Vg.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:Fv(this.state.book_liquidity)+" Sats",secondary:e("Book liquidity")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Kt.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.active_robots_today,secondary:e("Today active robots")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(eb.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.last_day_nonkyc_btc_premium+"%",secondary:e("24h non-KYC bitcoin premium")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Hg.Z,null)),r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:6},r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},secondary:e("Maker fee")},(100*this.state.maker_fee).toFixed(3),"%")),r.createElement(it,{item:!0,xs:6},r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},secondary:e("Taker fee")},(100*this.state.taker_fee).toFixed(3),"%")))))))})),jv(this,"bottomBarPhone",(()=>{const{t:e}=this.props;return r.createElement(Me.Z,{elevation:6,style:{height:40}},r.createElement(this.StatsDialog,null),r.createElement(this.CommunityDialog,null),r.createElement(this.exchangeSummaryDialog,null),r.createElement(this.dialogProfile,null),r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:1.6},r.createElement("div",{style:{display:this.props.avatarLoaded?"":"none"}},r.createElement(lt.Z,{open:this.state.earned_rewards>0,title:e("You can claim satoshis!")},r.createElement(lt.Z,{open:!!(this.state.active_order_id>0&!this.state.profileShown&this.props.avatarLoaded),title:e("You have an active order")},r.createElement(dt.Z,{onClick:this.handleClickOpenProfile,sx:{margin:0,bottom:17,right:8}},r.createElement(Mm.Z,{badgeContent:this.state.active_order_id>0&!this.state.profileShown?"":null,color:"primary"},r.createElement(wh,{className:"phoneFlippedSmallAvatar",sx:{width:55,height:55},alt:this.props.nickname,imgProps:{onLoad:()=>this.props.setAppState({avatarLoaded:!0})},src:this.props.nickname?window.location.origin+"/static/assets/avatars/"+this.props.nickname+".png":null}))))))),r.createElement(it,{item:!0,xs:1.6,align:"center"},r.createElement(lt.Z,{enterTouchDelay:"300",title:e("Number of public BUY orders")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Mm.Z,{badgeContent:this.state.num_public_buy_orders,color:"action"},r.createElement(Sv.Z,null))))),r.createElement(it,{item:!0,xs:1.6,align:"center"},r.createElement(lt.Z,{enterTouchDelay:"300",title:e("Number of public SELL orders")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Mm.Z,{badgeContent:this.state.num_public_sell_orders,color:"action"},r.createElement(Ev.Z,null))))),r.createElement(it,{item:!0,xs:1.6,align:"center"},r.createElement(lt.Z,{enterTouchDelay:"300",title:e("Today active robots")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Mm.Z,{badgeContent:this.state.active_robots_today,color:"action"},r.createElement(Kt.Z,null))))),r.createElement(it,{item:!0,xs:1.8,align:"center"},r.createElement(lt.Z,{enterTouchDelay:"300",title:e("24h non-KYC bitcoin premium")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Mm.Z,{badgeContent:this.state.last_day_nonkyc_btc_premium+"%",color:"action"},r.createElement(eb.Z,null))))),r.createElement(it,{container:!0,item:!0,xs:3.8},r.createElement(it,{item:!0,xs:6},r.createElement(this.LangSelect,null)),r.createElement(it,{item:!0,xs:3},r.createElement(lt.Z,{enterTouchDelay:"250",title:e("Show community and support links")},r.createElement(dt.Z,{color:"primary","aria-label":"Community",onClick:this.handleClickOpenCommunity},r.createElement(xv.Z,null)))),r.createElement(it,{item:!0,xs:3},r.createElement(lt.Z,{enterTouchDelay:"250",title:e("Show stats for nerds")},r.createElement(dt.Z,{color:"primary","aria-label":"Stats for Nerds",onClick:this.handleClickOpenStatsForNerds},r.createElement(Cv.Z,null)))))))})),this.state={openStatsForNerds:!1,openCommuniy:!1,openExchangeSummary:!1,openClaimRewards:!1,num_public_buy_orders:0,num_public_sell_orders:0,book_liquidity:0,active_robots_today:0,maker_fee:0,taker_fee:0,last_day_nonkyc_btc_premium:0,last_day_volume:0,lifetime_volume:0,robosats_running_commit_hash:"000000000000000",openProfile:!1,profileShown:!1,alternative_site:"robosats...",node_id:"00000000",showRewards:!1,referral_code:"",earned_rewards:0,rewardInvoice:null,badInvoice:!1,showRewardsSpinner:!1,withdrawn:!1},this.getInfo()}getInfo(){this.setState(null),fetch("/api/info/").then((e=>e.json())).then((e=>this.setState(e)&this.setState({active_order_id:e.active_order_id?e.active_order_id:null})&this.props.setAppState({nickname:e.nickname,loading:!1})))}getHost(){return(window.location!=window.parent.location?this.getHost(document.referrer):document.location.href).split("/")[2]}render(){return r.createElement("div",null,r.createElement(Yt(),{minWidth:1200},r.createElement(this.bottomBarDesktop,null)),r.createElement(Yt(),{maxWidth:1199},r.createElement(this.bottomBarPhone,null)))}}const Hv=xe()(Nv);function Vv(){return Vv=Object.assign||function(e){for(var t=1;t{this.setState(e)},(n="setAppState")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.state={nickname:null,token:null,avatarLoaded:!1,bookType:2,bookCurrency:0,bookCurrencyCode:"ANY"}}redirectTo(e){this.props.history.push(e)}render(){return r.createElement(V,null,r.createElement("div",{className:"appCenter"},r.createElement(H,null,r.createElement(N,{exact:!0,path:"/",render:e=>r.createElement(on,Vv({},e,this.state,{setAppState:this.setAppState}))}),r.createElement(N,{path:"/ref/:refCode",render:e=>r.createElement(on,Vv({},e,this.state,{setAppState:this.setAppState}))}),r.createElement(N,{path:"/make",component:vm}),r.createElement(N,{path:"/book",render:e=>r.createElement(Vm,Vv({},e,{type:this.state.bookType,currencyCode:this.state.bookCurrencyCode,currency:this.state.bookCurrency,setAppState:this.setAppState}))}),r.createElement(N,{path:"/order/:orderId",component:wv}))),r.createElement("div",{className:"bottomBar"},r.createElement(Hv,Vv({redirectTo:this.redirectTo},this.state,{setAppState:this.setAppState}))))}}var Uv=n(9695);const Yv=(e,t)=>(0,s.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&{colorScheme:e.palette.mode}),Gv=e=>(0,s.Z)({color:e.palette.text.primary},e.typography.body1,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}}),qv=function(e){const t=(0,Be.Z)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:o=!1}=t;return(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)(Uv.Z,{styles:e=>((e,t=!1)=>{var n,r;let o={html:Yv(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,s.Z)({margin:0},Gv(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})};const a=null==(n=e.components)||null==(r=n.MuiCssBaseline)?void 0:r.styleOverrides;return a&&(o=[o,a]),o})(e,o)}),n]})};var Kv=n(4819),Xv=n(6760);const Jv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Qv=function(e){const{children:t,theme:n}=e,o=(0,Xv.Z)(),a=r.useMemo((()=>{const e=null===o?n:function(e,t){return"function"==typeof t?t(e):(0,s.Z)({},e,t)}(o,n);return null!=e&&(e[Jv]=null!==o),e}),[n,o]);return(0,Ne.jsx)(Kv.Z.Provider,{value:a,children:t})};var _v=n(5638);function $v(e){const t=(0,eo.Z)();return(0,Ne.jsx)(_v.T.Provider,{value:"object"==typeof t?t:{},children:e.children})}const ey=function(e){const{children:t,theme:n}=e;return(0,Ne.jsx)(Qv,{theme:n,children:(0,Ne.jsx)($v,{children:t})})};function ty(e){return(0,Ze.Z)("MuiAlertTitle",e)}(0,Le.Z)("MuiAlertTitle",["root"]);const ny=["className"],ry=(0,Ie.ZP)(st.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),oy=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiAlertTitle"}),{className:r}=n,o=(0,M.Z)(n,ny),a=n,i=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"]},ty,t)})(a);return(0,Ne.jsx)(ry,(0,s.Z)({gutterBottom:!0,component:"div",ownerState:a,ref:t,className:(0,Se.Z)(i.root,r)},o))})),ay=oy;function iy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class sy extends r.Component{constructor(e){super(e),iy(this,"state",{show:!0}),iy(this,"safe_urls",["robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion","robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion","robodevs7ixniseezbv7uryxhamtz3hvcelzfwpx3rvoipttjomrmpqd.onion"])}getHost(){return(window.location!=window.parent.location?this.getHost(document.referrer):document.location.href).split("/")[2]}render(){const{t:e,i18n:t}=this.props;return!this.safe_urls.includes(this.getHost())&this.state.show?r.createElement("div",null,r.createElement(Yt(),{minWidth:800},r.createElement(Me.Z,{elevation:6,className:"alertUnsafe"},r.createElement(_h,{severity:"warning",sx:{maxHeight:"100px"},action:r.createElement(pt.Z,{onClick:()=>this.setState({show:!1})},e("Hide"))},r.createElement(ay,null,e("You are not using RoboSats privately")),r.createElement(Nf,{i18nKey:"desktop_unsafe_alert"},"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use ",r.createElement(Ft,{href:"https://www.torproject.org/download/",target:"_blank"},"Tor Browser")," and visit the ",r.createElement(Ft,{href:"http://robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion",target:"_blank"},"Onion")," site.")))),r.createElement(Yt(),{maxWidth:799},r.createElement(Me.Z,{elevation:6,className:"alertUnsafe"},r.createElement(_h,{severity:"warning",sx:{maxHeight:"120px"}},r.createElement(ay,null,e("You are not using RoboSats privately")),r.createElement(Nf,{i18nKey:"phone_unsafe_alert"},"You will not be able to complete a trade. Use ",r.createElement(Ft,{href:"https://www.torproject.org/download/",target:"_blank"},"Tor Browser")," and visit the ",r.createElement(Ft,{href:"http://robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion",target:"_blank"},"Onion")," site."),r.createElement("div",{style:{width:"100%"}}),r.createElement("div",{align:"center"},r.createElement(pt.Z,{className:"hideAlertButton",onClick:()=>this.setState({show:!1})},e("Hide"))))))):null}}const ly=xe()(sy);function cy(e){var t=e.i18n,n=e.defaultNS,o=e.children,a=(0,r.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,r.createElement)(ie.Provider,{value:a},o)}var uy=[],dy=uy.forEach,py=uy.slice;function my(e){return dy.call(py.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var hy=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,fy=function(e,t,n){var r=n||{};r.path=r.path||"/";var o=e+"="+encodeURIComponent(t);if(r.maxAge>0){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!hy.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!hy.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},gy={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=fy(e,encodeURIComponent(t),o)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},by={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),o=0;o0&&r[o].substring(0,a)===e.lookupQuerystring&&(t=r[o].substring(a+1))}}return t}},vy=null,yy=function(){if(null!==vy)return vy;try{vy="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){vy=!1}return vy},wy={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&yy()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&yy()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},ky=null,Cy=function(){if(null!==ky)return ky;try{ky="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){ky=!1}return ky},xy={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Cy()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Cy()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},Sy={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},Ey={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},Py={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},Ty={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}},Ay=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ee(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return(0,te.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=my(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=n,this.addDetector(gy),this.addDetector(by),this.addDetector(wy),this.addDetector(xy),this.addDetector(Sy),this.addDetector(Ey),this.addDetector(Py),this.addDetector(Ty)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();function Ry(e){return Ry="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},Ry(e)}Ay.type="languageDetector";var Oy=[],My=Oy.forEach,By=Oy.slice;function Iy(e){return My.call(By.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Zy(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Ry(XMLHttpRequest))}var Ly,Dy,jy,Fy=n(3154),zy=n.t(Fy,2);function Ny(e){return Ny="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},Ny(e)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?Ly=global.fetch:"undefined"!=typeof window&&window.fetch&&(Ly=window.fetch)),Zy&&("undefined"!=typeof global&&global.XMLHttpRequest?Dy=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(Dy=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?jy=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(jy=window.ActiveXObject)),Ly||!zy||Dy||jy||(Ly=Fy||zy),"function"!=typeof Ly&&(Ly=void 0);var Hy=function(e,t){if(t&&"object"===Ny(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e};const Vy=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Ly?function(e,t,n,r){e.queryStringParams&&(t=Hy(t,e.queryStringParams));var o=Iy({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);n&&(o["Content-Type"]="application/json"),Ly(t,Iy({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},"function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions)).then((function(e){if(!e.ok)return r(e.statusText||"Error",{status:e.status});e.text().then((function(t){r(null,{status:e.status,data:t})})).catch(r)})).catch(r)}(e,t,n,r):Zy||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===Ny(n)&&(n=Hy("",n).slice(1)),e.queryStringParams&&(t=Hy(t,e.queryStringParams));try{var o;(o=Dy?new Dy:new jy("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a="function"==typeof a?a():a)for(var i in a)o.setRequestHeader(i,a[i]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}}(e,t,n,r):void 0};function Wy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uy(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wy(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}var t,n;return t=e,n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=Iy(n,this.options||{},Yy()),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var a,i=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=function(e){return!!e&&"function"==typeof e.then}(a=s)?a:Promise.resolve(a)).then((function(a){if(!a)return o(null,{});var s=i.services.interpolator.interpolate(a,{lng:e.join("+"),ns:n.join("+")});i.loadUrl(s,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;this.options.request(this.options,e,void 0,(function(a,i){if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+e+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+e+"; status code: "+i.status,!1);if(!i&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+a.message,!0);if(a)return t(a,!1);var s,l;try{s="string"==typeof i.data?o.options.parse(i.data,n,r):i.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,o){var a=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var i=this.options.parsePayload(t,n,r),s=0,l=[],c=[];e.forEach((function(n){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(n,t));var u=a.services.interpolator.interpolate(r,{lng:n,ns:t});a.options.request(a.options,u,i,(function(t,n){s+=1,l.push(t),c.push(n),s===e.length&&o&&o(l,c)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,a=n.language;if(!a||"cimode"!==a.toLowerCase()){var i=[],s=function(e){r.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};s(a),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,a){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&a&&o.log("loaded namespace ".concat(e," for language ").concat(t),a),n.loaded("".concat(t,"|").concat(e),r,a)}))}))}))}}}],n&&Uy(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Gy.type="backend";const qy=Gy,Ky=JSON.parse('{"UNSAFE ALERT - UnsafeAlert.js":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"You are not using RoboSats privately","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","USER GENERATION PAGE - UserGenPage.js":"Landing Page and User Generation","Simple and Private LN P2P Exchange":"Simple and Private LN P2P Exchange","This is your trading avatar":"This is your trading avatar","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker choose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaboratively","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}'),Xy=JSON.parse('{"UNSAFE-ALERT":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"No estás usando RoboSats de forma privada","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","UserGenPage":"User Generation Page and Landing Page","Simple and Private LN P2P Exchange":"Intercambio LN P2P Fácil y Privado","This is your trading avatar":"Este es tu avatar de compraventa","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker chose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaborativelly","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}'),Jy=JSON.parse('{"UNSAFE ALERT - UnsafeAlert.js":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"You are not using RoboSats privately","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","USER GENERATION PAGE - UserGenPage.js":"Landing Page and User Generation","Simple and Private LN P2P Exchange":"Simple and Private LN P2P Exchange","This is your trading avatar":"This is your trading avatar","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker chose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaborativelly","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}'),Qy=JSON.parse('{"UNSAFE ALERT - UnsafeAlert.js":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"You are not using RoboSats privately","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","USER GENERATION PAGE - UserGenPage.js":"Landing Page and User Generation","Simple and Private LN P2P Exchange":"Simple and Private LN P2P Exchange","This is your trading avatar":"This is your trading avatar","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker chose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaborativelly","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}'),_y=JSON.parse('{"UNSAFE ALERT - UnsafeAlert.js":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"You are not using RoboSats privately","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","USER GENERATION PAGE - UserGenPage.js":"Landing Page and User Generation","Simple and Private LN P2P Exchange":"Simple and Private LN P2P Exchange","This is your trading avatar":"This is your trading avatar","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker chose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaborativelly","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}');hv.use(qy).use(Ay).use(ue).init({resources:{en:{translations:Ky},es:{translations:Xy},ru:{translations:Qy},de:{translations:Jy},zh:{translations:_y}},fallbackLng:"en",debug:!0,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1,formatSeparator:","}});const $y=hv;var ew=n(9078),tw=n(6646);function nw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class rw extends r.Component{constructor(e){super(e),nw(this,"lightTheme",(0,ro.Z)({})),nw(this,"darkTheme",(0,ro.Z)({palette:{mode:"dark",background:{default:"#070707"}}})),this.state={dark:!1}}render(){return r.createElement(cy,{i18n:$y},r.createElement(ey,{theme:this.state.dark?this.darkTheme:this.lightTheme},r.createElement(qv,null),r.createElement(dt.Z,{sx:{position:"fixed",right:"0px"},onClick:()=>this.setState({dark:!this.state.dark})},this.state.dark?r.createElement(tw.Z,null):r.createElement(ew.Z,null)),r.createElement(ly,{className:"unsafeAlert"}),r.createElement(Wv,null)))}}const ow=document.getElementById("app");(0,a.render)(r.createElement(rw,null),ow)},6010:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to})},4098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,i="ArrayBuffer"in e;if(i)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function f(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function k(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},b.call(y.prototype),b.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];k.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,n){return new Promise((function(r,a){var i=new y(e,n);if(i.signal&&i.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new k(o,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(i.method,i.url,!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),i.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",l)}),s.send(void 0===i._bodyInit?null:i._bodyInit)}))}x.polyfill=!0,e.fetch||(e.fetch=x,e.Headers=p,e.Request=y,e.Response=k),t.Headers=p,t.Request=y,t.Response=k,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},5209:(e,t)=>{"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={p:r,P:function(e,t){var o,a=e.match(/(P+)(p+)?/)||[],i=a[1],s=a[2];if(!s)return n(e,t);switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(i,t)).replace("{{time}}",r(s,t))}};t.default=o,e.exports=t.default},8679:(e,t,n)=>{"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=m(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),f=l(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case o:return t}}}function C(e){return k(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return C(e)||k(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===f},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=k},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(7294)),o=c(n(5697)),a=c(n(8674)),i=c(n(515)),s=c(n(167)),l=c(n(4449));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return d="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},d(e)}function p(){return p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["animationDuration","aspectRatio","color","cover","disableError","disableSpinner","disableTransition","errorIcon","iconContainerStyle","imageStyle","loading","onClick","style"]));return r.default.createElement("div",{style:e.root,onClick:s},l.src&&r.default.createElement("img",p({},l,{ref:this.image,style:e.image,onLoad:this.handleLoadImage,onError:this.handleImageError})),r.default.createElement("div",{style:e.iconContainer},!o&&!this.state.imageLoaded&&!this.state.imageError&&i,!n&&this.state.imageError&&a))}}])&&f(t.prototype,n),o&&f(t,o),l}(r.Component);t.default=k,k.defaultProps={animationDuration:3e3,aspectRatio:1,color:i.default.white,disableError:!1,disableSpinner:!1,disableTransition:!1,errorIcon:r.default.createElement(l.default,{style:{width:48,height:48,color:s.default[300]}}),loading:r.default.createElement(a.default,{size:48})},k.propTypes={animationDuration:o.default.number,aspectRatio:o.default.number,cover:o.default.bool,color:o.default.string,disableError:o.default.bool,disableSpinner:o.default.bool,disableTransition:o.default.bool,errorIcon:o.default.node,iconContainerStyle:o.default.object,imageStyle:o.default.object,loading:o.default.node,onClick:o.default.func,onError:o.default.func,onLoad:o.default.func,src:o.default.string.isRequired,style:o.default.object}},4472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(2467))&&r.__esModule?r:{default:r}},3173:(e,t,n)=>{"use strict";var r;t.Z=void 0;var o=((r=n(4472))&&r.__esModule?r:{default:r}).default;t.Z=o},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,s,l=o(e),c=1;c{var r=n(5826);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3655:(e,t,n)=>{var r=n(2792);function o(e){this.mode=r.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t{function t(){this.buffer=new Array,this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},9381:e=>{e.exports={L:1,M:0,Q:3,H:2}},2832:(e,t,n)=>{var r=n(1518);function o(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n{var r=n(3655),o=n(7611),a=n(7321),i=n(3160),s=n(2832);function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=l.prototype;c.addData=function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},c.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),n=new a,r=0,s=0;s=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},c.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},c.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=i.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},c.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!e&&1==(t>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r},c.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=i.getBCHTypeInfo(n),o=0;o<15;o++){var a=!e&&1==(r>>o&1);o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(o=0;o<15;o++)a=!e&&1==(r>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a;this.modules[this.moduleCount-8][8]=!e},c.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var c=!1;a>>o&1)),i.getMask(t,r,s-l)&&(c=!c),this.modules[r][s-l]=c,-1==--o&&(a++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=o.getRSBlocks(e,t),s=new a,c=0;c8*d)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d||(s.put(l.PAD0,8),s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,o=0,a=new Array(t.length),l=new Array(t.length),c=0;c=0?h.get(f):0}}var g=0;for(p=0;p{var r=n(9381);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var n=o.getRsBlockTable(e,t);if(null==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,a=new Array,i=0;i{for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<{e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},3160:(e,t,n)=>{var r=n(2792),o=n(2832),a=n(1518),i={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;i.getBCHDigit(t)-i.getBCHDigit(i.G15)>=0;)t^=i.G15<=0;)t^=i.G18<>>=1;return t},getPatternPosition:function(e){return i.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case 0:return(t+n)%2==0;case 1:return t%2==0;case 2:return n%3==0;case 3:return(t+n)%3==0;case 4:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case 5:return t*n%2+t*n%3==0;case 6:return(t*n%2+t*n%3)%2==0;case 7:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),n=0;n5&&(n+=3+a-5)}for(r=0;r{"use strict";var r=n(7294),o=n(7418),a=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!m.call(f,e)||!m.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=60103,x=60106,S=60107,E=60108,P=60114,T=60109,A=60110,R=60112,O=60113,M=60120,B=60115,I=60116,Z=60121,L=60128,D=60129,j=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;C=z("react.element"),x=z("react.portal"),S=z("react.fragment"),E=z("react.strict_mode"),P=z("react.profiler"),T=z("react.provider"),A=z("react.context"),R=z("react.forward_ref"),O=z("react.suspense"),M=z("react.suspense_list"),B=z("react.memo"),I=z("react.lazy"),Z=z("react.block"),z("react.scope"),L=z("react.opaque.id"),D=z("react.debug_trace_mode"),j=z("react.offscreen"),F=z("react.legacy_hidden")}var N,H="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}function W(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var U=!1;function Y(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s])return"\n"+o[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function G(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return Y(e.type,!1);case 11:return Y(e.type.render,!1);case 22:return Y(e.type._render,!1);case 1:return Y(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case P:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case B:return q(e.type);case Z:return q(e._render);case I:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function J(e){e._valueTracker||(e._valueTracker=function(e){var t=X(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&_(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ce(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,fe,ge=(fe=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return fe(e,t)}))}:fe);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ve).forEach((function(e){ye.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var Ce=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(Ce[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Te=null,Ae=null;function Re(e){if(e=no(e)){if("function"!=typeof Pe)throw Error(i(280));var t=e.stateNode;t&&(t=oo(t),Pe(e.stateNode,e.type,t))}}function Oe(e){Te?Ae?Ae.push(e):Ae=[e]:Te=e}function Me(){if(Te){var e=Te,t=Ae;if(Ae=Te=null,Re(e),t)for(e=0;e(r=31-Wt(r))?0:1<n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Yt|0)|0},Ut=Math.log,Yt=Math.LN2,Gt=a.unstable_UserBlockingPriority,qt=a.unstable_runWithPriority,Kt=!0;function Xt(e,t,n,r){De||Ze();var o=Qt,a=De;De=!0;try{Ie(o,e,t,n,r)}finally{(De=a)||Fe()}}function Jt(e,t,n,r){qt(Gt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var o;if(Kt)if((o=0==(4&t))&&0=jn),Nn=String.fromCharCode(32),Hn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1,Yn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yn[e.type]:"textarea"===t}function qn(e,t,n,r){Oe(r),0<(t=Dr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Xn=null;function Jn(e){Ar(e,0)}function Qn(e){if(Q(ro(e)))return e}function _n(e,t){if("change"===e)return t}var $n=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;$n=er&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=_();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=_((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,wr=null,kr=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==vr||vr!==_(r)||(r="selectionStart"in(r=vr)&&gr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Dr(yr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Zt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Zt(It,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Srso||(e.current=io[so],io[so]=null,so--)}function uo(e,t){so++,io[so]=e.current,e.current=t}var po={},mo=lo(po),ho=lo(!1),fo=po;function go(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function bo(e){return null!=e.childContextTypes}function vo(){co(ho),co(mo)}function yo(e,t,n){if(mo.current!==po)throw Error(i(168));uo(mo,t),uo(ho,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(i(108,q(t)||"Unknown",a));return o({},n,r)}function ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,fo=mo.current,uo(mo,e),uo(ho,ho.current),!0}function Co(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=wo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,co(ho),co(mo),uo(mo,e)):co(ho),uo(ho,n)}var xo=null,So=null,Eo=a.unstable_runWithPriority,Po=a.unstable_scheduleCallback,To=a.unstable_cancelCallback,Ao=a.unstable_shouldYield,Ro=a.unstable_requestPaint,Oo=a.unstable_now,Mo=a.unstable_getCurrentPriorityLevel,Bo=a.unstable_ImmediatePriority,Io=a.unstable_UserBlockingPriority,Zo=a.unstable_NormalPriority,Lo=a.unstable_LowPriority,Do=a.unstable_IdlePriority,jo={},Fo=void 0!==Ro?Ro:function(){},zo=null,No=null,Ho=!1,Vo=Oo(),Wo=1e4>Vo?Oo:function(){return Oo()-Vo};function Uo(){switch(Mo()){case Bo:return 99;case Io:return 98;case Zo:return 97;case Lo:return 96;case Do:return 95;default:throw Error(i(332))}}function Yo(e){switch(e){case 99:return Bo;case 98:return Io;case 97:return Zo;case 96:return Lo;case 95:return Do;default:throw Error(i(332))}}function Go(e,t){return e=Yo(e),Eo(e,t)}function qo(e,t,n){return e=Yo(e),Po(e,t,n)}function Ko(){if(null!==No){var e=No;No=null,To(e)}Xo()}function Xo(){if(!Ho&&null!==zo){Ho=!0;var e=0;try{var t=zo;Go(99,(function(){for(;ef?(g=d,d=null):g=d.sibling;var b=m(o,d,s[f],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(o,d),i=a(b,i,f),null===u?c=b:u.sibling=b,u=b,d=g}if(f===s.length)return n(o,d),c;if(null===d){for(;fg?(b=f,f=null):b=f.sibling;var y=m(o,f,v.value,c);if(null===y){null===f&&(f=b);break}e&&f&&null===y.alternate&&t(o,f),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y,f=b}if(v.done)return n(o,f),u;if(null===f){for(;!v.done;g++,v=l.next())null!==(v=p(o,v.value,c))&&(s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return u}for(f=r(o,f);!v.done;g++,v=l.next())null!==(v=h(f,o,g,v.value,c))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),s=a(v,s,g),null===d?u=v:d.sibling=v,d=v);return e&&f.forEach((function(e){return t(o,e)})),u}return function(e,r,a,l){var c="object"==typeof a&&null!==a&&a.type===S&&null===a.key;c&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case C:e:{for(u=a.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(a.type===S){n(e,c.sibling),(r=o(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===a.type){n(e,c.sibling),(r=o(c,a.props)).ref=xa(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===S?((r=Yl(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Ul(a.type,a.key,a.props,null,e.mode,l)).ref=xa(e,r,a),l.return=e,e=l)}return s(e);case x:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Kl(a,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=ql(a,e.mode,l)).return=e,e=r),s(e);if(Ca(a))return f(e,r,a,l);if(V(a))return g(e,r,a,l);if(u&&Sa(e,a),void 0===a&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,q(e.type)||"Component"))}return n(e,r)}}var Pa=Ea(!0),Ta=Ea(!1),Aa={},Ra=lo(Aa),Oa=lo(Aa),Ma=lo(Aa);function Ba(e){if(e===Aa)throw Error(i(174));return e}function Ia(e,t){switch(uo(Ma,t),uo(Oa,e),uo(Ra,Aa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}co(Ra),uo(Ra,t)}function Za(){co(Ra),co(Oa),co(Ma)}function La(e){Ba(Ma.current);var t=Ba(Ra.current),n=me(t,e.type);t!==n&&(uo(Oa,e),uo(Ra,n))}function Da(e){Oa.current===e&&(co(Ra),co(Oa))}var ja=lo(0);function Fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var za=null,Na=null,Ha=!1;function Va(e,t){var n=Hl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Wa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ua(e){if(Ha){var t=Na;if(t){var n=t;if(!Wa(e,t)){if(!(t=qr(n.nextSibling))||!Wa(e,t))return e.flags=-1025&e.flags|2,Ha=!1,void(za=e);Va(za,n)}za=e,Na=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ha=!1,za=e}}function Ya(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;za=e}function Ga(e){if(e!==za)return!1;if(!Ha)return Ya(e),Ha=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wr(t,e.memoizedProps))for(t=Na;t;)Va(e,t),t=qr(t.nextSibling);if(Ya(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Na=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Na=null}}else Na=za?qr(e.stateNode.nextSibling):null;return!0}function qa(){Na=za=null,Ha=!1}var Ka=[];function Xa(){for(var e=0;ea))throw Error(i(301));a+=1,ti=ei=null,t.updateQueue=null,Ja.current=Zi,e=n(r,o)}while(ri)}if(Ja.current=Mi,t=null!==ei&&null!==ei.next,_a=0,ti=ei=$a=null,ni=!1,t)throw Error(i(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?$a.memoizedState=ti=e:ti=ti.next=e,ti}function li(){if(null===ei){var e=$a.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?$a.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?$a.memoizedState=ti=e:ti=ti.next=e}return ti}function ci(e,t){return"function"==typeof t?t(e):t}function ui(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ei,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=a=null,c=o;do{var u=c.lane;if((_a&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,$a.lanes|=u,Fs|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,cr(r,t.memoizedState)||(Di=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);cr(a,t.memoizedState)||(Di=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function pi(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(_a&e)===e)&&(t._workInProgressVersionPrimary=r,Ka.push(t))),e)return n(t._source);throw Ka.push(t),Error(i(350))}function mi(e,t,n,r){var o=Os;if(null===o)throw Error(i(349));var a=t._getVersion,s=a(t._source),l=Ja.current,c=l.useState((function(){return pi(o,t,n)})),u=c[1],d=c[0];c=ti;var p=e.memoizedState,m=p.refs,h=m.getSnapshot,f=p.source;p=p.subscribe;var g=$a;return e.memoizedState={refs:m,source:t,subscribe:r},l.useEffect((function(){m.getSnapshot=n,m.setSnapshot=u;var e=a(t._source);if(!cr(s,e)){e=n(t._source),cr(d,e)||(u(e),e=ul(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,i=e;0n?98:n,(function(){e(!0)})),Go(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Qr]=t,e[_r]=r,qi(e,t),t.stateNode=e,c=Se(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),a=r;break;case"iframe":case"object":case"embed":Rr("load",e),a=r;break;case"video":case"audio":for(a=0;aWs&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Fa(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ha)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wo()-r.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wo(),n.sibling=null,t=ja.current,uo(ja,s?1&t|2:1&t),n):null;case 23:case 24:return wl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function as(e){switch(e.tag){case 1:bo(e.type)&&vo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Za(),co(ho),co(mo),Xa(),0!=(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Da(e),null;case 13:return co(ja),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return co(ja),null;case 4:return Za(),null;case 10:return ra(e),null;case 23:case 24:return wl(),null;default:return null}}function is(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function ss(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ki=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ba(Ra.current);var i,s=null;switch(n){case"input":a=$(e,a),r=$(e,r),s=[];break;case"option":a=ae(e,a),r=ae(e,r),s=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":a=se(e,a),r=se(e,r),s=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=zr)}for(d in xe(n,r),n=null,a)if(!r.hasOwnProperty(d)&&a.hasOwnProperty(d)&&null!=a[d])if("style"===d){var c=a[d];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=a?a[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(i in c)!c.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&c[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Rr("scroll",e),s||c===u||(s=[])):"object"==typeof u&&null!==u&&u.$$typeof===L?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Xi=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"==typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=ua(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Ks=r),ss(0,t)},n}function us(e,t,n){(n=ua(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ss(0,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Xs?Xs=new Set([this]):Xs.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ds="function"==typeof WeakSet?WeakSet:Set;function ps(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){jl(e,t)}else t.current=null}function ms(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(i(163))}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Zl(n,e),Il(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ha(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ha(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))))}throw Error(i(163))}function fs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gs(e,t){if(So&&"function"==typeof So.onCommitFiberUnmount)try{So.onCommitFiberUnmount(xo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Zl(t,n);else{r=t;try{o()}catch(e){jl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ps(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){jl(t,e)}break;case 5:ps(t);break;case 4:Cs(e,t)}}function bs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(vs(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ws(e,n,t):ks(e,n,t)}function ws(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=zr));else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function ks(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function Cs(e,t){for(var n,r,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(i(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(gs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(gs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function xs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[_r]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;oo&&(o=s),n&=~a}if(n=o,10<(n=(120>(n=Wo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ps(n/1960))-n)){e.timeoutHandle=Ur(Rl.bind(null,e),n);break}Rl(e);break;default:throw Error(i(329))}}return ml(e,Wo()),e.callbackNode===t?hl.bind(null,e):null}function fl(e,t){for(t&=~Ns,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),l=is(l,s),p=i;do{switch(p.tag){case 3:a=l,p.flags|=4096,t&=-t,p.lanes|=t,pa(p,cs(0,a,t));break e;case 1:a=l;var k=p.type,C=p.stateNode;if(0==(64&p.flags)&&("function"==typeof k.getDerivedStateFromError||null!==C&&"function"==typeof C.componentDidCatch&&(null===Xs||!Xs.has(C)))){p.flags|=4096,t&=-t,p.lanes|=t,pa(p,us(p,a,t));break e}}p=p.return}while(null!==p)}Al(n)}catch(e){t=e,Ms===n&&null!==n&&(Ms=n=n.return);continue}break}}function xl(){var e=Ts.current;return Ts.current=Mi,null===e?Mi:e}function Sl(e,t){var n=Rs;Rs|=16;var r=xl();for(Os===e&&Bs===t||kl(e,t);;)try{El();break}catch(t){Cl(e,t)}if(na(),Rs=n,Ts.current=r,null!==Ms)throw Error(i(261));return Os=null,Bs=0,Ls}function El(){for(;null!==Ms;)Tl(Ms)}function Pl(){for(;null!==Ms&&!Ao();)Tl(Ms)}function Tl(e){var t=Ys(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?Al(e):Ms=t,As.current=null}function Al(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=os(n,t,Is)))return void(Ms=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Is)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1s&&(l=s,s=C,C=l),l=mr(y,C),a=mr(y,s),l&&a&&(1!==k.rangeCount||k.anchorNode!==l.node||k.anchorOffset!==l.offset||k.focusNode!==a.node||k.focusOffset!==a.offset)&&((w=w.createRange()).setStart(l.node,l.offset),k.removeAllRanges(),C>s?(k.addRange(w),k.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),k.addRange(w))))),w=[];for(k=y;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;yWo()-Vs?kl(e,0):Ns|=n),ml(e,t)}function zl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Uo()?1:2:(0===al&&(al=js),0===(t=Nt(62914560&~al))&&(t=4194304))),n=cl(),null!==(e=pl(e,t))&&(Vt(e,t,n),ml(e,n))}function Nl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,r){return new Nl(e,t,n,r)}function Vl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wl(e,t){var n=e.alternate;return null===n?((n=Hl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ul(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)Vl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Yl(n.children,o,a,t);case D:s=8,o|=16;break;case E:s=8,o|=1;break;case P:return(e=Hl(12,n,t,8|o)).elementType=P,e.type=P,e.lanes=a,e;case O:return(e=Hl(13,n,t,o)).type=O,e.elementType=O,e.lanes=a,e;case M:return(e=Hl(19,n,t,o)).elementType=M,e.lanes=a,e;case j:return Gl(n,o,a,t);case F:return(e=Hl(24,n,t,o)).elementType=F,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case A:s=9;break e;case R:s=11;break e;case B:s=14;break e;case I:s=16,r=null;break e;case Z:s=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Hl(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Yl(e,t,n,r){return(e=Hl(7,e,r,t)).lanes=n,e}function Gl(e,t,n,r){return(e=Hl(23,e,r,t)).elementType=j,e.lanes=n,e}function ql(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function Kl(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n){var r=3{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},9921:(e,t)=>{"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden")}},9864:(e,t,n)=>{"use strict";n(9921)},8330:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(5697)),o=a(n(7294));function a(e){return e&&e.__esModule?e:{default:e}}var i={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},s=function(e){var t=e.d,n=e.fill,r=e.transformX,a=e.transformY;return o.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,a]+")"})};s.propTypes=i,s.defaultProps={},t.default=s},5335:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return a.default.createElement("svg",r({},s,{height:n,width:n,xmlns:i}),o?a.default.createElement("title",null,o):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},1653:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),m=new o.default(-1,a.default[i]);m.addData(d),m.make();var h=m.modules,f=s/h.length;return l.default.createElement(u.default,r({},p,{size:s}),h.map((function(e,r){return e.map((function(e,o){var a=e?n:t,i=Math.round(o*f),s=Math.round(r*f),u=Math.round((o+1)*f)-i,d=Math.round((r+1)*f)-s,p="M 0 0 L "+u+" 0 L "+u+" "+d+" L 0 "+d+" Z";return l.default.createElement(c.default,{key:"rectangle-"+r+"-"+o,d:p,fill:a,transformX:i,transformY:s})}))})))};m.propTypes=p,m.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(m)},1914:e=>{"use strict";e.exports=function(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new(window.BlobBuilder||window.MSBlobBuilder||window.MozBlobBuilder||window.WebKitBlobBuilder),r=0;r{"use strict";function t(){this.name="NoVideoInputDevicesError",this.message="No video input devices found"}t.prototype=new Error,e.exports={NoVideoInputDevicesError:t}},6743:(e,t,n)=>{"use strict";var r=n(3451).NoVideoInputDevicesError;function o(e,t,n){return e.length>0?e[0].deviceId:1==t.length||"user"==n?t[0].deviceId:t[1].deviceId}var a=function(e){return"environment"==e?/rear|back|environment/gi:/front|user|face/gi};e.exports={getDeviceId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return new Promise((function(n,o){var i=void 0;try{i=navigator.mediaDevices.enumerateDevices()}catch(e){o(new r)}i.then((function(i){var s=i.filter((function(e){return"videoinput"==e.kind}));if(s.length<1)o(new r);else{var l=a(e),c=s.filter((function(e){var t=e.label;return l.test(t)}));n(t(c,s,e))}}))}))},getFacingModePattern:a}},2614:e=>{"use strict";e.exports=function(e,t,n){var r=[];return n.forEach((function(n){e[n]!=t[n]&&r.push(n)})),r}},7164:(e,t,n)=>{"use strict";var r,o,a=Object.assign||function(e){for(var t=1;t=this.width||e<0||e>=this.height)&&!!this.data[e*this.width+o]},o.prototype.set=function(o,e,r){this.data[e*this.width+o]=r?1:0},o.prototype.setRegion=function(o,e,r,t,c){for(var s=e;s=this.size&&(t=(t^this.primitive)&this.size-1);for(var s=0;s1&&0===e[0]){for(var t=1;tc.length&&(n=[c,r],r=n[0],c=n[1]);for(var s=new Uint8ClampedArray(c.length),a=c.length-r.length,d=0;dr?r:o}function c(o,e,r,c){if(o.length!==e*r*4)throw new Error("Malformed data passed to binarizer.");for(var l=new n(e,r),i=0;i0&&v>0)){var x=(w.get(v,P-1)+2*w.get(v-1,P)+w.get(v-1,P-1))/4;p6&&(r.setRegion(e-11,0,3,6,!0),r.setRegion(0,e-11,6,3,!0)),r}function a(o,e,r){for(var t=w[r.dataMask],a=o.height,d=s(e),n=[],l=0,i=0,B=!0,k=a-1;k>0;k-=2){6===k&&k--;for(var u=0;u=0;a--)for(var d=e-9;d>=e-11;d--)s=c(o.get(d,a),s);for(var n=0,d=5;d>=0;d--)for(var a=e-9;a>=e-11;a--)n=c(o.get(d,a),n);for(var l,i=1/0,B=0,k=m.VERSIONS;B=0;s--)6!==s&&(e=c(o.get(8,s),e));for(var a=o.height,d=0,s=a-1;s>=a-7;s--)d=c(o.get(8,s),d);for(var r=a-8;r1)for(var B=t.ecBlocks[0].numBlocks,k=t.ecBlocks[1].numBlocks,d=0;d0;)for(var u=0,C=c;u=3;){var a=o.readBits(10);if(a>=1e3)throw new Error("Invalid numeric value above 999");var d=Math.floor(a/100),n=Math.floor(a/10)%10,l=a%10;r.push(48+d,48+n,48+l),t+=d.toString()+n.toString()+l.toString(),s-=3}if(2===s){var a=o.readBits(7);if(a>=100)throw new Error("Invalid numeric value above 99");var d=Math.floor(a/10),n=a%10;r.push(48+d,48+n),t+=d.toString()+n.toString()}else if(1===s){var a=o.readBits(4);if(a>=10)throw new Error("Invalid numeric value above 9");r.push(48+a),t+=a.toString()}return{bytes:r,text:t}}function c(o,e){for(var r=[],t="",c=[9,11,13][e],s=o.readBits(c);s>=2;){var a=o.readBits(11),d=Math.floor(a/45),n=a%45;r.push(k[d].charCodeAt(0),k[n].charCodeAt(0)),t+=k[d]+k[n],s-=2}if(1===s){var d=o.readBits(6);r.push(k[d].charCodeAt(0)),t+=k[d]}return{bytes:r,text:t}}function s(o,e){for(var r=[],t="",c=[8,16,16][e],s=o.readBits(c),a=0;a>8,255&n),t+=String.fromCharCode(i.shiftJISTable[n])}return{bytes:r,text:t}}function d(o,e){for(var r=new l.BitStream(o),d=e<=9?0:e<=26?1:2,i={text:"",bytes:[],chunks:[]};r.available()>=4;){var k=r.readBits(4);if(k===B.Terminator)return i;if(k===B.ECI)0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(7)}):0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(14)}):0===r.readBits(1)?i.chunks.push({type:n.ECI,assignmentNumber:r.readBits(21)}):i.chunks.push({type:n.ECI,assignmentNumber:-1});else if(k===B.Numeric){var u=t(r,d);i.text+=u.text,(w=i.bytes).push.apply(w,u.bytes),i.chunks.push({type:n.Numeric,text:u.text})}else if(k===B.Alphanumeric){var C=c(r,d);i.text+=C.text,(P=i.bytes).push.apply(P,C.bytes),i.chunks.push({type:n.Alphanumeric,text:C.text})}else if(k===B.Byte){var m=s(r,d);i.text+=m.text,(v=i.bytes).push.apply(v,m.bytes),i.chunks.push({type:n.Byte,bytes:m.bytes,text:m.text})}else if(k===B.Kanji){var f=a(r,d);i.text+=f.text,(h=i.bytes).push.apply(h,f.bytes),i.chunks.push({type:n.Kanji,bytes:f.bytes,text:f.text})}}var w,P,v,h}Object.defineProperty(e,"__esModule",{value:!0});var n,l=r(7),i=r(8);!function(o){o.Numeric="numeric",o.Alphanumeric="alphanumeric",o.Byte="byte",o.Kanji="kanji",o.ECI="eci"}(n=e.Mode||(e.Mode={}));var B;!function(o){o[o.Terminator=0]="Terminator",o[o.Numeric=1]="Numeric",o[o.Alphanumeric=2]="Alphanumeric",o[o.Byte=4]="Byte",o[o.Kanji=8]="Kanji",o[o.ECI=7]="ECI"}(B||(B={}));var k=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];e.decode=d},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function o(o){this.byteOffset=0,this.bitOffset=0,this.bytes=o}return o.prototype.readBits=function(o){if(o<1||o>32||o>this.available())throw new Error("Cannot read "+o.toString()+" bits");var e=0;if(this.bitOffset>0){var r=8-this.bitOffset,t=o>8-t<>c,o-=t,this.bitOffset+=t,8===this.bitOffset&&(this.bitOffset=0,this.byteOffset++)}if(o>0){for(;o>=8;)e=e<<8|255&this.bytes[this.byteOffset],this.byteOffset++,o-=8;if(o>0){var c=8-o,s=255>>c<>c,this.bitOffset+=o}}return e},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();e.BitStream=t},function(o,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,\n36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,\n39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,\n59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(o,e,r){"use strict";function t(o,e,r,t){e.degree()=t/2;){var n=c,l=a;if(c=s,a=d,c.isZero())return null;s=n;for(var i=o.zero,B=c.getCoefficient(c.degree()),k=o.inverse(B);s.degree()>=c.degree()&&!s.isZero();){var u=s.degree()-c.degree(),C=o.multiply(s.getCoefficient(s.degree()),k);i=i.addOrSubtract(o.buildMonomial(u,C)),s=s.addOrSubtract(c.multiplyByMonomial(u,C))}if(d=i.multiplyPoly(a).addOrSubtract(l),s.degree()>=c.degree())return null}var m=d.getCoefficient(0);if(0===m)return null;var f=o.inverse(m);return[d.multiply(f),s.multiply(f)];var w}function c(o,e){var r=e.degree();if(1===r)return[e.getCoefficient(1)];for(var t=new Array(r),c=0,s=1;s=a&&d>=n?(l=[e,o,r],t=l[0],c=l[1],s=l[2]):n>=d&&n>=a?(i=[o,e,r],t=i[0],c=i[1],s=i[2]):(B=[o,r,e],t=B[0],c=B[1],s=B[2]),(s.x-c.x)*(t.y-c.y)-(s.y-c.y)*(t.x-c.x)<0&&(k=[s,t],t=k[0],s=k[1]),{bottomLeft:t,topLeft:c,topRight:s};var l,i,B,k}function s(o,e,r,c){var s=(t(d(o,r,c,5))/7+t(d(o,e,c,5))/7+t(d(r,o,c,5))/7+t(d(e,o,c,5))/7)/4;if(s<1)throw new Error("Invalid module size");var a=Math.round(C(o,e)/s),n=Math.round(C(o,r)/s),l=Math.floor((a+n)/2)+7;switch(l%4){case 0:l++;break;case 2:l--}return{dimension:l,moduleSize:s}}function a(o,e,r,t){var c,s,a,d,n=[{x:Math.floor(o.x),y:Math.floor(o.y)}],l=Math.abs(e.y-o.y)>Math.abs(e.x-o.x);l?(c=Math.floor(o.y),s=Math.floor(o.x),a=Math.floor(e.y),d=Math.floor(e.x)):(c=Math.floor(o.x),s=Math.floor(o.y),a=Math.floor(e.x),d=Math.floor(e.y));for(var i=Math.abs(a-c),B=Math.abs(d-s),k=Math.floor(-i/2),u=c0){if(P===d)break;P+=m,k-=i}}for(var p=[],y=0;y=o.bottom.startX&&w<=o.bottom.endX||f>=o.bottom.startX&&w<=o.bottom.endX||w<=o.bottom.startX&&f>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)k});v.length>0?v[0].bottom=P:r.push({top:P,bottom:P})}if(m){var h=e-l[4],p=h-l[3],P={startX:p,y:c,endX:h},v=d.filter(function(o){return p>=o.bottom.startX&&p<=o.bottom.endX||h>=o.bottom.startX&&p<=o.bottom.endX||p<=o.bottom.startX&&h>=o.bottom.endX&&l[2]/(o.bottom.endX-o.bottom.startX)k});v.length>0?v[0].bottom=P:d.push({top:P,bottom:P})}}}(i);e.push.apply(e,r.filter(function(o){return o.bottom.y!==c&&o.bottom.y-o.top.y>=2})),r=r.filter(function(o){return o.bottom.y===c}),a.push.apply(a,d.filter(function(o){return o.bottom.y!==c})),d=d.filter(function(o){return o.bottom.y===c})}(n);e.push.apply(e,r.filter(function(o){return o.bottom.y-o.top.y>=2})),a.push.apply(a,d);var i=e.filter(function(o){return o.bottom.y-o.top.y>=2}).map(function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,c=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.round(r),Math.round(c))){\nvar s=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1],a=t(s)/s.length;return{score:l({x:Math.round(r),y:Math.round(c)},[1,1,3,1,1],o),x:r,y:c,size:a}}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score}).map(function(o,e,r){if(e>B)return null;var t=r.filter(function(o,r){return e!==r}).map(function(e){return{x:e.x,y:e.y,score:e.score+Math.pow(e.size-o.size,2)/o.size,size:e.size}}).sort(function(o,e){return o.score-e.score});if(t.length<2)return null;var c=o.score+t[0].score+t[1].score;return{points:[o].concat(t.slice(0,2)),score:c}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score});if(0===i.length)return null;var m,f,w=c(i[0].points[0],i[0].points[1],i[0].points[2]),P=w.topRight,v=w.topLeft,h=w.bottomLeft;try{L=s(v,P,h,o),m=L.dimension,f=L.moduleSize}catch(o){return null}var p={x:P.x-v.x+h.x,y:P.y-v.y+h.y},y=(C(v,h)+C(v,P))/2/f,b=1-3/y,g={x:v.x+b*(p.x-v.x),y:v.y+b*(p.y-v.y)},x=a.map(function(e){var r=(e.top.startX+e.top.endX+e.bottom.startX+e.bottom.endX)/4,c=(e.top.y+e.bottom.y+1)/2;if(o.get(Math.floor(r),Math.floor(c))){var s=[e.top.endX-e.top.startX,e.bottom.endX-e.bottom.startX,e.bottom.y-e.top.y+1];t(s);return{x:r,y:c,score:l({x:Math.floor(r),y:Math.floor(c)},[1,1,1],o)+C({x:r,y:c},g)}}}).filter(function(o){return!!o}).sort(function(o,e){return o.score-e.score}),M=y>=15&&x.length?x[0]:g;return{alignmentPattern:{x:M.x,y:M.y},bottomLeft:{x:h.x,y:h.y},dimension:m,topLeft:{x:v.x,y:v.y},topRight:{x:P.x,y:P.y}};var L}Object.defineProperty(e,"__esModule",{value:!0});var B=4,k=.5,u=1.5,C=function(o,e){return Math.sqrt(Math.pow(e.x-o.x,2)+Math.pow(e.y-o.y,2))};e.locate=i}]).default}),self.addEventListener("message",function(o){var e=jsQR(o.data.data,o.data.width,o.data.height);e?postMessage(e.data):postMessage(null)});'],{type:"application/javascript"}),f=["delay","legacyMode","facingMode"];e.exports=(o=r=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.els={},n.state={mirrorVideo:!1},n.initiate=n.initiate.bind(n),n.initiateLegacyMode=n.initiateLegacyMode.bind(n),n.check=n.check.bind(n),n.handleVideo=n.handleVideo.bind(n),n.handleLoadStart=n.handleLoadStart.bind(n),n.handleInputChange=n.handleInputChange.bind(n),n.clearComponent=n.clearComponent.bind(n),n.handleReaderLoad=n.handleReaderLoad.bind(n),n.openImageDialog=n.openImageDialog.bind(n),n.handleWorkerMessage=n.handleWorkerMessage.bind(n),n.setRefFactory=n.setRefFactory.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.worker=new Worker(URL.createObjectURL(h)),this.worker.onmessage=this.handleWorkerMessage,this.props.legacyMode?this.initiateLegacyMode():this.initiate()}},{key:"componentWillReceiveProps",value:function(e){var t=p(this.props,e,f),n=!0,r=!1,o=void 0;try{for(var a,i=t[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var s=a.value;if("facingMode"==s){this.clearComponent(),this.initiate(e);break}if("delay"==s)0!=this.props.delay||e.legacyMode||(this.timeout=setTimeout(this.check,e.delay)),0==e.delay&&clearTimeout(this.timeout);else if("legacyMode"==s){this.props.legacyMode&&!e.legacyMode?(this.clearComponent(),this.initiate(e)):(this.clearComponent(),this.componentDidUpdate=this.initiateLegacyMode);break}}}catch(e){r=!0,o=e}finally{try{!n&&i.return&&i.return()}finally{if(r)throw o}}}},{key:"shouldComponentUpdate",value:function(e,t){return t!==this.state||p(this.props,e,f).length>0}},{key:"componentWillUnmount",value:function(){this.worker&&(this.worker.terminate(),this.worker=void 0),this.clearComponent()}},{key:"clearComponent",value:function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0),this.stopCamera&&this.stopCamera(),this.reader&&this.reader.removeEventListener("load",this.handleReaderLoad),this.els.img&&this.els.img.removeEventListener("load",this.check)}},{key:"initiate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.onError,n=e.facingMode,r=/firefox/i.test(navigator.userAgent),o={};navigator.mediaDevices&&"function"==typeof navigator.mediaDevices.getSupportedConstraints&&(o=navigator.mediaDevices.getSupportedConstraints());var a={};o.facingMode&&(a.facingMode={ideal:n}),o.frameRate&&(a.frameRate={ideal:25,min:10});var i=o.facingMode||r?Promise.resolve(e.constraints||a):d(n).then((function(t){return Object.assign({},{deviceId:t},e.constraints)}));i.then((function(e){return navigator.mediaDevices.getUserMedia({video:e})})).then(this.handleVideo).catch(t)}},{key:"handleVideo",value:function(e){var t=this.els.preview,n=this.props.facingMode;if(!t)return setTimeout(this.handleVideo,200,e);void 0!==(t||{}).srcObject?t.srcObject=e:void 0!==t.mozSrcObject?t.mozSrcObject=e:window.URL.createObjectURL?t.src=window.URL.createObjectURL(e):window.webkitURL?t.src=window.webkitURL.createObjectURL(e):t.src=e,t.playsInline=!0;var r=e.getTracks()[0];this.stopCamera=r.stop.bind(r),t.addEventListener("loadstart",this.handleLoadStart),this.setState({mirrorVideo:"user"==n,streamLabel:r.label})}},{key:"handleLoadStart",value:function(){var e=this.props,t=e.delay,n=e.onLoad,r=this.state,o=r.mirrorVideo,a=r.streamLabel,i=this.els.preview;i.play(),"function"==typeof n&&n({mirrorVideo:o,streamLabel:a}),"number"==typeof t&&(this.timeout=setTimeout(this.check,t)),i.removeEventListener("loadstart",this.handleLoadStart)}},{key:"check",value:function(){var e=this.props,t=e.legacyMode,n=e.resolution,r=e.delay,o=this.els,a=o.preview,i=o.canvas,s=o.img,l=Math.floor(t?s.naturalWidth:a.videoWidth),c=Math.floor(t?s.naturalHeight:a.videoHeight),u=0,d=0;if(t){var p=n/(l>c?l:c);c*=p,l*=p,i.width=l,i.height=c}else{var m=n/(l=s;case"max":return l<=s;default:return l===s}}));return s&&!n||!s&&n}))},t.parse=r;var s=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,l=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,u=/(em|rem|px|cm|mm|in|pt|pc)?$/,d=/(dpi|dpcm|dppx)?$/},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0;a>",k={array:p("array"),bigint:p("bigint"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:d(r),arrayOf:function(e){return d((function(t,n,r,o,a){if("function"!=typeof e)return new u("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var i=t[n];if(!Array.isArray(i))return new u("Invalid "+o+" `"+a+"` of type `"+f(i)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),r)},oneOfType:function(e){if(!Array.isArray(e))return o("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var t=0;t0?", expected one of type ["+i.join(", ")+"]":"")+".")}))},shape:function(e){return d((function(t,n,r,o,a){var i=t[n],l=f(i);if("object"!==l)return new u("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return m(r,o,a,c,g(d));var p=d(i,c,r,o,a+"."+c,s);if(p)return p}return null}))},exact:function(e){return d((function(t,n,r,o,a){var c=t[n],d=f(c);if("object"!==d)return new u("Invalid "+o+" `"+a+"` of type `"+d+"` supplied to `"+r+"`, expected `object`.");var p=i({},t[n],e);for(var h in p){var b=e[h];if(l(e,h)&&"function"!=typeof b)return m(r,o,a,h,g(b));if(!b)return new u("Invalid "+o+" `"+a+"` key `"+h+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var v=b(c,h,r,o,a+"."+h,s);if(v)return v}return null}))}};return u.prototype=Error.prototype,k.checkPropTypes=c,k.resetWarningCache=c.resetWarningCache,k.PropTypes=k,k}},function(e,t,n){"use strict";function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=r(e),c=1;c{"use strict";var n="function"==typeof Symbol&&Symbol.for;n&&Symbol.for("react.element"),n&&Symbol.for("react.portal"),n&&Symbol.for("react.fragment"),n&&Symbol.for("react.strict_mode"),n&&Symbol.for("react.profiler"),n&&Symbol.for("react.provider"),n&&Symbol.for("react.context"),n&&Symbol.for("react.async_mode"),n&&Symbol.for("react.concurrent_mode"),n&&Symbol.for("react.forward_ref"),n&&Symbol.for("react.suspense"),n&&Symbol.for("react.suspense_list"),n&&Symbol.for("react.memo"),n&&Symbol.for("react.lazy"),n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope")},663:(e,t,n)=>{"use strict";n(86)},2666:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>f});var r=n(3366),o=n(1721),a=n(7294),i=n(3935);var s=n(220),l="unmounted",c="exited",u="entering",d="entered",p="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=c,r.appearStatus=u):o=d:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==d&&(t=u):n!==u&&n!==d||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===u?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[i.findDOMNode(this),r],a=o[0],s=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;e||n?(this.props.onEnter(a,s),this.safeSetState({status:u},(function(){t.props.onEntering(a,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(a,s)}))}))}))):this.safeSetState({status:d},(function(){t.props.onEntered(a)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=(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,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(s.Z.Provider,{value:null},"function"==typeof n?n(e,o):a.cloneElement(a.Children.only(n),o))},t}(a.Component);function h(){}m.contextType=s.Z,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},m.UNMOUNTED=l,m.EXITED=c,m.ENTERING=u,m.ENTERED=d,m.EXITING=p;const f=m},4537:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(3366),o=n(7462),a=n(7326),i=n(1721),s=n(7294),l=n(220);function c(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var r=c(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var l in t){if(o[l])for(r=0;r{"use strict";n.d(t,{Z:()=>r});const r=n(7294).createContext(null)},5251:(e,t,n)=>{"use strict";n(7418);var r=n(7294),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),t.Fragment=a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:i.current}}t.jsx=c,t.jsxs=c},2408:(e,t,n)=>{"use strict";var r=n(7418),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),i=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},2539:(e,t,n)=>{"use strict";var r=n(7539);function o(e,t,n,o,a){var i=r.writeRtpDescription(e.kind,t);if(i+=r.writeIceParameters(e.iceGatherer.getLocalParameters()),i+=r.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":a||"active"),i+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?i+="a=sendrecv\r\n":e.rtpSender?i+="a=sendonly\r\n":e.rtpReceiver?i+="a=recvonly\r\n":i+="a=inactive\r\n",e.rtpSender){var s=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=s;var l="msid:"+(o?o.id:"-")+" "+s+"\r\n";i+="a="+l,i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+l,e.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+l,i+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+r.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(i+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+r.localCName+"\r\n"),i}function a(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(e,t){e=parseInt(e,10);for(var n=0;n=14393&&-1===e.indexOf("?transport=udp"):(n=!0,!0)})),delete e.url,e.urls=o?r[0]:r,!!r.length}}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var i=n.iceCandidatePoolSize;i>0;i--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy}));else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=r.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(u.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(u.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),u.prototype.onicecandidate=null,u.prototype.onaddstream=null,u.prototype.ontrack=null,u.prototype.onremovestream=null,u.prototype.onsignalingstatechange=null,u.prototype.oniceconnectionstatechange=null,u.prototype.onconnectionstatechange=null,u.prototype.onicegatheringstatechange=null,u.prototype.onnegotiationneeded=null,u.prototype.ondatachannel=null,u.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},u.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},u.prototype.getConfiguration=function(){return this._config},u.prototype.getLocalStreams=function(){return this.localStreams},u.prototype.getRemoteStreams=function(){return this.remoteStreams},u.prototype._createTransceiver=function(e,t){var n=this.transceivers.length>0,r={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&n)r.iceTransport=this.transceivers[0].iceTransport,r.dtlsTransport=this.transceivers[0].dtlsTransport;else{var o=this._createIceAndDtlsTransports();r.iceTransport=o.iceTransport,r.dtlsTransport=o.dtlsTransport}return t||this.transceivers.push(r),r},u.prototype.addTrack=function(t,n){if(this._isClosed)throw l("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var r;if(this.transceivers.find((function(e){return e.track===t})))throw l("InvalidAccessError","Track already exists.");for(var o=0;o=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var r=e.clone();e.getTracks().forEach((function(e,t){var n=r.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),r.getTracks().forEach((function(e){n.addTrack(e,r)}))}},u.prototype.removeTrack=function(t){if(this._isClosed)throw l("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var n=this.transceivers.find((function(e){return e.rtpSender===t}));if(!n)throw l("InvalidAccessError","Sender was not created by this connection.");var r=n.stream;n.rtpSender.stop(),n.rtpSender=null,n.track=null,n.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(r)&&this.localStreams.indexOf(r)>-1&&this.localStreams.splice(this.localStreams.indexOf(r),1),this._maybeFireNegotiationNeeded()},u.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var n=t.getSenders().find((function(t){return t.track===e}));n&&t.removeTrack(n)}))},u.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},u.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},u.prototype._createIceGatherer=function(t,n){var r=this;if(n&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var o=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(o,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;o.state=n?"completed":"gathering",null!==r.transceivers[t].bufferedCandidateEvents&&r.transceivers[t].bufferedCandidateEvents.push(e)},o.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),o},u.prototype._gather=function(t,n){var o=this,a=this.transceivers[n].iceGatherer;if(!a.onlocalcandidate){var i=this.transceivers[n].bufferedCandidateEvents;this.transceivers[n].bufferedCandidateEvents=null,a.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),a.onlocalcandidate=function(e){if(!(o.usingBundle&&n>0)){var i=new Event("icecandidate");i.candidate={sdpMid:t,sdpMLineIndex:n};var s=e.candidate,l=!s||0===Object.keys(s).length;if(l)"new"!==a.state&&"gathering"!==a.state||(a.state="completed");else{"new"===a.state&&(a.state="gathering"),s.component=1,s.ufrag=a.getLocalParameters().usernameFragment;var c=r.writeCandidate(s);i.candidate=Object.assign(i.candidate,r.parseCandidate(c)),i.candidate.candidate=c,i.candidate.toJSON=function(){return{candidate:i.candidate.candidate,sdpMid:i.candidate.sdpMid,sdpMLineIndex:i.candidate.sdpMLineIndex,usernameFragment:i.candidate.usernameFragment}}}var u=r.getMediaSections(o._localDescription.sdp);u[i.candidate.sdpMLineIndex]+=l?"a=end-of-candidates\r\n":"a="+i.candidate.candidate+"\r\n",o._localDescription.sdp=r.getDescription(o._localDescription.sdp)+u.join("");var d=o.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==o.iceGatheringState&&(o.iceGatheringState="gathering",o._emitGatheringStateChange()),l||o._dispatchEvent("icecandidate",i),d&&(o._dispatchEvent("icecandidate",new Event("icecandidate")),o.iceGatheringState="complete",o._emitGatheringStateChange())}},e.setTimeout((function(){i.forEach((function(e){a.onlocalcandidate(e)}))}),0)}},u.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var r=new e.RTCDtlsTransport(n);return r.ondtlsstatechange=function(){t._updateConnectionState()},r.onerror=function(){Object.defineProperty(r,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:r}},u.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var r=this.transceivers[e].dtlsTransport;r&&(delete r.ondtlsstatechange,delete r.onerror,delete this.transceivers[e].dtlsTransport)},u.prototype._transceive=function(e,n,o){var i=a(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(i.encodings=e.sendEncodingParameters,i.rtcp={cname:r.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(i.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(i)),o&&e.rtpReceiver&&i.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?i.encodings=e.recvEncodingParameters:i.encodings=[{}],i.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(i.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(i.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(i))},u.prototype.setLocalDescription=function(e){var t,n,o=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(l("TypeError",'Unsupported type "'+e.type+'"'));if(!i("setLocalDescription",e.type,o.signalingState)||o._isClosed)return Promise.reject(l("InvalidStateError","Can not set local "+e.type+" in state "+o.signalingState));if("offer"===e.type)t=r.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=r.parseRtpParameters(e);o.transceivers[t].localCapabilities=n})),o.transceivers.forEach((function(e,t){o._gather(e.mid,t)}));else if("answer"===e.type){t=r.splitSections(o._remoteDescription.sdp),n=t.shift();var s=r.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var i=o.transceivers[t],l=i.iceGatherer,c=i.iceTransport,u=i.dtlsTransport,d=i.localCapabilities,p=i.remoteCapabilities;if(!(r.isRejected(e)&&0===r.matchPrefix(e,"a=bundle-only").length||i.rejected)){var m=r.getIceParameters(e,n),h=r.getDtlsParameters(e,n);s&&(h.role="server"),o.usingBundle&&0!==t||(o._gather(i.mid,t),"new"===c.state&&c.start(l,m,s?"controlling":"controlled"),"new"===u.state&&u.start(h));var f=a(d,p);o._transceive(i,f.codecs.length>0,!1)}}))}return o._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?o._updateSignalingState("have-local-offer"):o._updateSignalingState("stable"),Promise.resolve()},u.prototype.setRemoteDescription=function(o){var u=this;if(-1===["offer","answer"].indexOf(o.type))return Promise.reject(l("TypeError",'Unsupported type "'+o.type+'"'));if(!i("setRemoteDescription",o.type,u.signalingState)||u._isClosed)return Promise.reject(l("InvalidStateError","Can not set remote "+o.type+" in state "+u.signalingState));var d={};u.remoteStreams.forEach((function(e){d[e.id]=e}));var p=[],m=r.splitSections(o.sdp),h=m.shift(),f=r.matchPrefix(h,"a=ice-lite").length>0,g=r.matchPrefix(h,"a=group:BUNDLE ").length>0;u.usingBundle=g;var b=r.matchPrefix(h,"a=ice-options:")[0];return u.canTrickleIceCandidates=!!b&&b.substr(14).split(" ").indexOf("trickle")>=0,m.forEach((function(i,l){var c=r.splitLines(i),m=r.getKind(i),b=r.isRejected(i)&&0===r.matchPrefix(i,"a=bundle-only").length,v=c[0].substr(2).split(" ")[2],y=r.getDirection(i,h),w=r.parseMsid(i),k=r.getMid(i)||r.generateIdentifier();if(b||"application"===m&&("DTLS/SCTP"===v||"UDP/DTLS/SCTP"===v))u.transceivers[l]={mid:k,kind:m,protocol:v,rejected:!0};else{var C,x,S,E,P,T,A,R,O;!b&&u.transceivers[l]&&u.transceivers[l].rejected&&(u.transceivers[l]=u._createTransceiver(m,!0));var M,B,I=r.parseRtpParameters(i);b||(M=r.getIceParameters(i,h),(B=r.getDtlsParameters(i,h)).role="client"),A=r.parseRtpEncodingParameters(i);var Z=r.parseRtcpParameters(i),L=r.matchPrefix(i,"a=end-of-candidates",h).length>0,D=r.matchPrefix(i,"a=candidate:").map((function(e){return r.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===o.type||"answer"===o.type)&&!b&&g&&l>0&&u.transceivers[l]&&(u._disposeIceAndDtlsTransports(l),u.transceivers[l].iceGatherer=u.transceivers[0].iceGatherer,u.transceivers[l].iceTransport=u.transceivers[0].iceTransport,u.transceivers[l].dtlsTransport=u.transceivers[0].dtlsTransport,u.transceivers[l].rtpSender&&u.transceivers[l].rtpSender.setTransport(u.transceivers[0].dtlsTransport),u.transceivers[l].rtpReceiver&&u.transceivers[l].rtpReceiver.setTransport(u.transceivers[0].dtlsTransport)),"offer"!==o.type||b)"answer"!==o.type||b||(x=(C=u.transceivers[l]).iceGatherer,S=C.iceTransport,E=C.dtlsTransport,P=C.rtpReceiver,T=C.sendEncodingParameters,R=C.localCapabilities,u.transceivers[l].recvEncodingParameters=A,u.transceivers[l].remoteCapabilities=I,u.transceivers[l].rtcpParameters=Z,D.length&&"new"===S.state&&(!f&&!L||g&&0!==l?D.forEach((function(e){s(C.iceTransport,e)})):S.setRemoteCandidates(D)),g&&0!==l||("new"===S.state&&S.start(x,M,"controlling"),"new"===E.state&&E.start(B)),!a(C.localCapabilities,C.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&C.sendEncodingParameters[0].rtx&&delete C.sendEncodingParameters[0].rtx,u._transceive(C,"sendrecv"===y||"recvonly"===y,"sendrecv"===y||"sendonly"===y),!P||"sendrecv"!==y&&"sendonly"!==y?delete C.rtpReceiver:(O=P.track,w?(d[w.stream]||(d[w.stream]=new e.MediaStream),n(O,d[w.stream]),p.push([O,P,d[w.stream]])):(d.default||(d.default=new e.MediaStream),n(O,d.default),p.push([O,P,d.default]))));else{(C=u.transceivers[l]||u._createTransceiver(m)).mid=k,C.iceGatherer||(C.iceGatherer=u._createIceGatherer(l,g)),D.length&&"new"===C.iceTransport.state&&(!L||g&&0!==l?D.forEach((function(e){s(C.iceTransport,e)})):C.iceTransport.setRemoteCandidates(D)),R=e.RTCRtpReceiver.getCapabilities(m),t<15019&&(R.codecs=R.codecs.filter((function(e){return"rtx"!==e.name}))),T=C.sendEncodingParameters||[{ssrc:1001*(2*l+2)}];var j,F=!1;"sendrecv"===y||"sendonly"===y?(F=!C.rtpReceiver,P=C.rtpReceiver||new e.RTCRtpReceiver(C.dtlsTransport,m),F&&(O=P.track,w&&"-"===w.stream||(w?(d[w.stream]||(d[w.stream]=new e.MediaStream,Object.defineProperty(d[w.stream],"id",{get:function(){return w.stream}})),Object.defineProperty(O,"id",{get:function(){return w.track}}),j=d[w.stream]):(d.default||(d.default=new e.MediaStream),j=d.default)),j&&(n(O,j),C.associatedRemoteMediaStreams.push(j)),p.push([O,P,j]))):C.rtpReceiver&&C.rtpReceiver.track&&(C.associatedRemoteMediaStreams.forEach((function(t){var n=t.getTracks().find((function(e){return e.id===C.rtpReceiver.track.id}));n&&function(t,n){n.removeTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(n,t)})),C.associatedRemoteMediaStreams=[]),C.localCapabilities=R,C.remoteCapabilities=I,C.rtpReceiver=P,C.rtcpParameters=Z,C.sendEncodingParameters=T,C.recvEncodingParameters=A,u._transceive(u.transceivers[l],!1,F)}}})),void 0===u._dtlsRole&&(u._dtlsRole="offer"===o.type?"active":"passive"),u._remoteDescription={type:o.type,sdp:o.sdp},"offer"===o.type?u._updateSignalingState("have-remote-offer"):u._updateSignalingState("stable"),Object.keys(d).forEach((function(t){var n=d[t];if(n.getTracks().length){if(-1===u.remoteStreams.indexOf(n)){u.remoteStreams.push(n);var r=new Event("addstream");r.stream=n,e.setTimeout((function(){u._dispatchEvent("addstream",r)}))}p.forEach((function(e){var t=e[0],r=e[1];n.id===e[2].id&&c(u,t,r,[n])}))}})),p.forEach((function(e){e[2]||c(u,e[0],e[1],[])})),e.setTimeout((function(){u&&u.transceivers&&u.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},u.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},u.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},u.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},u.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",n)}},u.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var n=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",n)}},u.prototype.createOffer=function(){var n=this;if(n._isClosed)return Promise.reject(l("InvalidStateError","Can not call createOffer after close"));var a=n.transceivers.filter((function(e){return"audio"===e.kind})).length,i=n.transceivers.filter((function(e){return"video"===e.kind})).length,s=arguments[0];if(s){if(s.mandatory||s.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==s.offerToReceiveAudio&&(a=!0===s.offerToReceiveAudio?1:!1===s.offerToReceiveAudio?0:s.offerToReceiveAudio),void 0!==s.offerToReceiveVideo&&(i=!0===s.offerToReceiveVideo?1:!1===s.offerToReceiveVideo?0:s.offerToReceiveVideo)}for(n.transceivers.forEach((function(e){"audio"===e.kind?--a<0&&(e.wantReceive=!1):"video"===e.kind&&--i<0&&(e.wantReceive=!1)}));a>0||i>0;)a>0&&(n._createTransceiver("audio"),a--),i>0&&(n._createTransceiver("video"),i--);var c=r.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.transceivers.forEach((function(o,a){var i=o.track,s=o.kind,l=o.mid||r.generateIdentifier();o.mid=l,o.iceGatherer||(o.iceGatherer=n._createIceGatherer(a,n.usingBundle));var c=e.RTCRtpSender.getCapabilities(s);t<15019&&(c.codecs=c.codecs.filter((function(e){return"rtx"!==e.name}))),c.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),o.remoteCapabilities&&o.remoteCapabilities.codecs&&o.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),c.headerExtensions.forEach((function(e){(o.remoteCapabilities&&o.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var u=o.sendEncodingParameters||[{ssrc:1001*(2*a+1)}];i&&t>=15019&&"video"===s&&!u[0].rtx&&(u[0].rtx={ssrc:u[0].ssrc+1}),o.wantReceive&&(o.rtpReceiver=new e.RTCRtpReceiver(o.dtlsTransport,s)),o.localCapabilities=c,o.sendEncodingParameters=u})),"max-compat"!==n._config.bundlePolicy&&(c+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),c+="a=ice-options:trickle\r\n",n.transceivers.forEach((function(e,t){c+=o(e,e.localCapabilities,"offer",e.stream,n._dtlsRole),c+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===n.iceGatheringState||0!==t&&n.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,c+="a="+r.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(c+="a=end-of-candidates\r\n"))}));var u=new e.RTCSessionDescription({type:"offer",sdp:c});return Promise.resolve(u)},u.prototype.createAnswer=function(){var n=this;if(n._isClosed)return Promise.reject(l("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==n.signalingState&&"have-local-pranswer"!==n.signalingState)return Promise.reject(l("InvalidStateError","Can not call createAnswer in signalingState "+n.signalingState));var i=r.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.usingBundle&&(i+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),i+="a=ice-options:trickle\r\n";var s=r.getMediaSections(n._remoteDescription.sdp).length;n.transceivers.forEach((function(e,r){if(!(r+1>s)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?i+="m=application 0 DTLS/SCTP 5000\r\n":i+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?i+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(i+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(i+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var l;e.stream&&("audio"===e.kind?l=e.stream.getAudioTracks()[0]:"video"===e.kind&&(l=e.stream.getVideoTracks()[0]),l&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1}));var c=a(e.localCapabilities,e.remoteCapabilities);!c.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,i+=o(e,c,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(i+="a=rtcp-rsize\r\n")}}));var c=new e.RTCSessionDescription({type:"answer",sdp:i});return Promise.resolve(c)},u.prototype.addIceCandidate=function(e){var t,n=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(o,a){if(!n._remoteDescription)return a(l("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var i=e.sdpMLineIndex;if(e.sdpMid)for(var c=0;c0?r.parseCandidate(e.candidate):{};if("tcp"===d.protocol&&(0===d.port||9===d.port))return o();if(d.component&&1!==d.component)return o();if((0===i||i>0&&u.iceTransport!==n.transceivers[0].iceTransport)&&!s(u.iceTransport,d))return a(l("OperationError","Can not add ICE candidate"));var p=e.candidate.trim();0===p.indexOf("a=")&&(p=p.substr(2)),(t=r.getMediaSections(n._remoteDescription.sdp))[i]+="a="+(d.type?p:"end-of-candidates")+"\r\n",n._remoteDescription.sdp=r.getDescription(n._remoteDescription.sdp)+t.join("")}else for(var m=0;m{"use strict";var n,r,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var f=!1,g=null,b=-1,v=5,y=0;t.unstable_shouldYield=function(){return t.unstable_now()>=y},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0E(i,n))void 0!==l&&0>E(l,i)?(e[r]=l,e[s]=n,r=s):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==l&&0>E(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],T=[],A=1,R=null,O=3,M=!1,B=!1,I=!1;function Z(e){for(var t=x(T);null!==t;){if(null===t.callback)S(T);else{if(!(t.startTime<=e))break;S(T),t.sortIndex=t.expirationTime,C(P,t)}t=x(T)}}function L(e){if(I=!1,Z(e),!B)if(null!==x(P))B=!0,n(D);else{var t=x(T);null!==t&&r(L,t.startTime-e)}}function D(e,n){B=!1,I&&(I=!1,o()),M=!0;var a=O;try{for(Z(n),R=x(P);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=R.callback;if("function"==typeof i){R.callback=null,O=R.priorityLevel;var s=i(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?R.callback=s:R===x(P)&&S(P),Z(n)}else S(P);R=x(P)}if(null!==R)var l=!0;else{var c=x(T);null!==c&&r(L,c.startTime-n),l=!1}return l}finally{R=null,O=a,M=!1}}var j=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){B||M||(B=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return O},t.unstable_getFirstCallbackNode=function(){return x(P)},t.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=j,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},t.unstable_scheduleCallback=function(e,a,i){var s=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0s?(e.sortIndex=i,C(T,e),null===x(P)&&e===x(T)&&(I?o():I=!0,r(L,i-s))):(e.sortIndex=l,C(P,e),B||M||(B=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},7539:e=>{"use strict";var t={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},t.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},t.getDescription=function(e){var n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){var n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter((function(e){return 0===e.indexOf(n)}))},t.parseCandidate=function(e){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},t.parseFmtp=function(e){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),o=0;o-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},t.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},t.getMid=function(e){var n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substr(6)},t.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},t.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){var r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],o=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&o?{usernameFragment:r.substr(12),password:o.substr(10)}:null},t.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},t.parseRtpParameters=function(e){for(var n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" "),o=3;o0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=n.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach((function(e){r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)}));var o=0;return n.codecs.forEach((function(e){e.maxptime>o&&(o=e.maxptime)})),o>0&&(r+="a=maxptime:"+o+"\r\n"),r+="a=rtcp-mux\r\n",n.headerExtensions&&n.headerExtensions.forEach((function(e){r+=t.writeExtmap(e)})),r},t.parseRtpEncodingParameters=function(e){var n,r=[],o=t.parseRtpParameters(e),a=-1!==o.fecMechanisms.indexOf("RED"),i=-1!==o.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),l=s.length>0&&s[0].ssrc,c=t.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));c.length>0&&c[0].length>1&&c[0][0]===l&&(n=c[0][1]),o.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var t={ssrc:l,codecPayloadType:parseInt(e.parameters.apt,10)};l&&n&&(t.rtx={ssrc:n}),r.push(t),a&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:l,mechanism:i?"red+ulpfec":"red"},r.push(t))}})),0===r.length&&l&&r.push({ssrc:l});var u=t.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substr(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substr(5),10)*.95-16e3:void 0,r.forEach((function(e){e.maxBitrate=u}))),r},t.parseRtcpParameters=function(e){var n={},r=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);var o=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=o.length>0,n.compound=0===o.length;var a=t.matchPrefix(e,"a=rtcp-mux");return n.mux=a.length>0,n},t.parseMsid=function(e){var n,r=t.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(n=r[0].substr(7).split(" "))[0],track:n[1]};var o=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return o.length>0?{stream:(n=o[0].value.split(" "))[0],track:n[1]}:void 0},t.parseSctpDescription=function(e){var n,r=t.parseMLine(e),o=t.matchPrefix(e,"a=max-message-size:");o.length>0&&(n=parseInt(o[0].substr(19),10)),isNaN(n)&&(n=65536);var a=t.matchPrefix(e,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substr(12),10),protocol:r.fmt,maxMessageSize:n};if(t.matchPrefix(e,"a=sctpmap:").length>0){var i=t.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(i[0],10),protocol:i[1],maxMessageSize:n}}},t.writeSctpDescription=function(e,t){var n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,21)},t.writeSessionBoilerplate=function(e,n,r){var o=void 0!==n?n:2;return"v=0\r\no="+(r||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+o+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.writeMediaSection=function(e,n,r,o){var a=t.writeRtpDescription(e.kind,n);if(a+=t.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=t.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":"active"),a+="a=mid:"+e.mid+"\r\n",e.direction?a+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var i="msid:"+o.id+" "+e.rtpSender.track.id+"\r\n";a+="a="+i,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+i,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+i,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+t.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+t.localCName+"\r\n"),a},t.getDirection=function(e,n){for(var r=t.splitLines(e),o=0;o{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},8117:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>he});var r={};n.r(r),n.d(r,{fixNegotiationNeeded:()=>M,shimAddTrackRemoveTrack:()=>R,shimAddTrackRemoveTrackWithNative:()=>A,shimGetDisplayMedia:()=>C,shimGetSendersWithDtmf:()=>E,shimGetStats:()=>P,shimGetUserMedia:()=>k,shimMediaStream:()=>x,shimOnTrack:()=>S,shimPeerConnection:()=>O,shimSenderReceiverGetStats:()=>T});var o={};n.r(o),n.d(o,{shimGetDisplayMedia:()=>L,shimGetUserMedia:()=>Z,shimPeerConnection:()=>D,shimReplaceTrack:()=>j});var a={};n.r(a),n.d(a,{shimAddTransceiver:()=>G,shimCreateAnswer:()=>X,shimCreateOffer:()=>K,shimGetDisplayMedia:()=>z,shimGetParameters:()=>q,shimGetUserMedia:()=>F,shimOnTrack:()=>N,shimPeerConnection:()=>H,shimRTCDataChannel:()=>Y,shimReceiverGetStats:()=>W,shimRemoveStream:()=>U,shimSenderGetStats:()=>V});var i={};n.r(i),n.d(i,{shimAudioContext:()=>oe,shimCallbacksAPI:()=>_,shimConstraints:()=>ee,shimCreateOfferLegacy:()=>re,shimGetUserMedia:()=>$,shimLocalStreamsAPI:()=>J,shimRTCIceServerUrls:()=>te,shimRemoteStreamsAPI:()=>Q,shimTrackEventTransceiver:()=>ne});var s={};n.r(s),n.d(s,{removeExtmapAllowMixed:()=>de,shimAddIceCandidateNullOrEmpty:()=>pe,shimConnectionState:()=>ue,shimMaxMessageSize:()=>le,shimRTCIceCandidate:()=>se,shimSendThrowTypeError:()=>ce});let l=!0,c=!0;function u(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function d(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return o.apply(this,arguments);const a=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,a),o.apply(this,[e,a])};const a=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return a.apply(this,arguments);if(!this._eventMap[t].has(n))return a.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,a.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function p(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(l=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function m(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(c=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function h(){if("object"==typeof window){if(l)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function f(e,t){c&&console.warn(e+" is deprecated, please use "+t+" instead.")}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return g(e)?Object.keys(e).reduce((function(t,n){const r=g(e[n]),o=r?b(e[n]):e[n],a=r&&!Object.keys(o).length;return void 0===o||a?t:Object.assign(t,{[n]:o})}),{}):e}function v(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach((r=>{r.endsWith("Id")?v(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach((t=>{v(e,e.get(t),n)}))})))}function y(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(null===t)return o;const a=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&a.push(e)})),a.forEach((t=>{e.forEach((n=>{n.type===r&&n.trackId===t.id&&v(e,n,o)}))})),o}const w=h;function k(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);const o=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[o("min",n)]=r.ideal,t.optional.push(e),e={},e[o("max",n)]=r.ideal,t.optional.push(e)):(e[o("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach((e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[o(e,n)]=r[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},o=function(e,o){if(t.version>=61)return o(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let a=e.video.facingMode;a=a&&("object"==typeof a?a:{ideal:a});const i=t.version<66;if(a&&("user"===a.exact||"environment"===a.exact||"user"===a.ideal||"environment"===a.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||i)){let t;if(delete e.video.facingMode,"environment"===a.exact||"environment"===a.ideal?t=["back","rear"]:"user"!==a.exact&&"user"!==a.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then((n=>{let i=(n=n.filter((e=>"videoinput"===e.kind))).find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!i&&n.length&&t.includes("back")&&(i=n[n.length-1]),i&&(e.video.deviceId=a.exact?{exact:i.deviceId}:{ideal:i.deviceId}),e.video=r(e.video),w("chrome: "+JSON.stringify(e)),o(e)}))}e.video=r(e.video)}return w("chrome: "+JSON.stringify(e)),o(e)},a=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,r){o(e,(e=>{n.webkitGetUserMedia(e,t,(e=>{r&&r(a(e))}))}))}.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return o(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(a(e))))))}}}function C(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then((t=>{const r=n.video&&n.video.width,o=n.video&&n.video.height,a=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:a||3}},r&&(n.video.mandatory.maxWidth=r),o&&(n.video.mandatory.maxHeight=o),e.navigator.mediaDevices.getUserMedia(n)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function x(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function S(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.track.id)):{track:n.track};const o=new Event("track");o.track=n.track,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)})),t.stream.getTracks().forEach((n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===n.id)):{track:n};const o=new Event("track");o.track=n,o.receiver=r,o.transceiver={receiver:r},o.streams=[t.stream],this.dispatchEvent(o)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else d(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function E(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let o=n.apply(this,arguments);return o||(o=t(this,e),this._senders.push(o)),o};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function P(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const o=function(e){const t={};return e.result().forEach((e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{n[t]=e.stat(t)})),t[n.id]=n})),t},a=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const r=function(e){n(a(o(e)))};return t.apply(this,[r,e])}return new Promise(((e,n)=>{t.apply(this,[function(t){e(a(o(t)))},n])})).then(n,r)}}function T(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>y(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),d(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>y(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach((n=>{n.track===e&&(t?r=!0:t=n)})),this.getReceivers().forEach((t=>(t.track===e&&(n?r=!0:n=t),t.track===e))),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function A(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),o.apply(this,arguments)}}function R(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return A(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{if(this.getSenders().find((t=>t.track===e)))throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const o=e.RTCPeerConnection.prototype.removeStream;function a(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(o.id,"g"),r.id)})),new RTCSessionDescription({type:t.type,sdp:n})}function i(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const r=e._reverseStreams[t],o=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),o.id)})),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const o=this.getSenders().find((e=>e.track===t));if(o)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const a=this._streams[n.id];if(a)a.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=a(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then((e=>a(this,e)))}};e.RTCPeerConnection.prototype[t]=r[t]}));const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=i(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=l.get.apply(this);return""===e.type?e:a(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((n=>{this._streams[n].getTracks().find((t=>e.track===t))&&(t=this._streams[n])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function O(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function M(e,t){d(e,"negotiationneeded",(e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e}))}var B=n(2539),I=n.n(B);function Z(e){const t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch((e=>Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString(){return this.name}}}(e))))}}function L(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function D(e,t){if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){const t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set(e){t.set.call(this,e);const n=new Event("enabled");n.enabled=e,this.dispatchEvent(n)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);const n=I()(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=function(e,t){let n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((e=>{if(e&&(e.urls||e.url)){let t=e.urls||e.url;e.url&&!e.urls&&f("RTCIceServer.url","RTCIceServer.urls");const r="string"==typeof t;return r&&(t=[t]),t=t.filter((e=>{if(0===e.indexOf("stun:"))return!1;const t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!n?(n=!0,!0):t&&!n})),delete e.url,e.urls=r?t[0]:t,!!t.length}}))}(e.iceServers,t.version),h("ICE servers after filtering:",e.iceServers)),new n(e)},e.RTCPeerConnection.prototype=n.prototype}function j(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}function F(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){f("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function z(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function N(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function H(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,o,a]=arguments;return r.apply(this,[e||null]).then((e=>{if(t.version<53&&!o)try{e.forEach((e=>{e.type=n[e.type]||e.type}))}catch(t){if("TypeError"!==t.name)throw t;e.forEach(((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))}))}return e})).then(o,a)}}function V(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function W(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),d(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function U(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){f("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function Y(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function G(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach((e=>{if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e.sendEncodings,t.sendEncodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(n).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return r})}function q(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function K(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function X(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function J(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((n=>t.call(this,n,e))),e.getVideoTracks().forEach((n=>t.call(this,n,e)))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach((e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach((e=>{n.includes(e.track)&&this.removeTrack(e)}))})}}function Q(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}))}),t.apply(e,arguments)}}}function _(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,a=t.setRemoteDescription,i=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],o=n.apply(this,[r]);return t?(o.then(e,t),Promise.resolve()):o},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],o=r.apply(this,[n]);return t?(o.then(e,t),Promise.resolve()):o};let s=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){const r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function $(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(ee(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function ee(e){return e&&void 0!==e.video?Object.assign({},e,{video:b(e.video)}):e}function te(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;nt.generateCertificate})}function ne(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function re(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video")}return t.apply(this,arguments)}}function oe(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var ae=n(7539),ie=n.n(ae);function se(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){const n=new t(e),r=ie().parseCandidate(e.candidate),o=Object.assign(n,r);return o.toJSON=function(){return{candidate:o.candidate,sdpMid:o.sdpMid,sdpMLineIndex:o.sdpMLineIndex,usernameFragment:o.usernameFragment}},o}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,d(e,"icecandidate",(t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function le(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=ie().splitSections(e.sdp);return t.shift(),t.some((e=>{const t=ie().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n},o=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},a=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const o=ie().matchPrefix(e.sdp,"a=max-message-size:");return o.length>0?r=parseInt(o[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},i=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=o(e),n=a(arguments[0],e);let i;i=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const s={};Object.defineProperty(s,"maxMessageSize",{get:()=>i}),this._sctp=s}return i.apply(this,arguments)}}function ce(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],o=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&o>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},d(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function ue(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}}))}function de(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function pe(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}const me=function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const n=h,l=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=u(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=u(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(n.mediaDevices&&n.userAgent.match(/Edge\/(\d+).(\d+)$/))t.browser="edge",t.version=u(n.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=u(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),c={browserDetails:l,commonShim:s,extractVersion:u,disableLog:p,disableWarnings:m};switch(l.browser){case"chrome":if(!r||!O||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),c;if(null===l.version)return n("Chrome shim can not determine version, not shimming."),c;n("adapter.js shimming chrome."),c.browserShim=r,pe(e,l),k(e,l),x(e),O(e,l),S(e),R(e,l),E(e),P(e),T(e),M(e,l),se(e),ue(e),le(e,l),ce(e),de(e,l);break;case"firefox":if(!a||!H||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),c;n("adapter.js shimming firefox."),c.browserShim=a,pe(e,l),F(e,l),H(e,l),N(e),U(e),V(e),W(e),Y(e),G(e),q(e),K(e),X(e),se(e),ue(e),le(e,l),ce(e);break;case"edge":if(!o||!D||!t.shimEdge)return n("MS edge shim is not included in this adapter release."),c;n("adapter.js shimming edge."),c.browserShim=o,Z(e),L(e),D(e,l),j(e),le(e,l),ce(e);break;case"safari":if(!i||!t.shimSafari)return n("Safari shim is not included in this adapter release."),c;n("adapter.js shimming safari."),c.browserShim=i,pe(e,l),te(e),re(e),_(e),J(e),Q(e),ne(e),$(e),oe(e),se(e),le(e,l),ce(e),de(e,l);break;default:n("Unsupported browser!")}return c}({window:"undefined"==typeof window?void 0:window}),he=me},3154:(e,t,n)=>{var r;if("function"==typeof fetch&&(void 0!==n.g&&n.g.fetch?r=n.g.fetch:"undefined"!=typeof window&&window.fetch&&(r=window.fetch)),"undefined"==typeof window||void 0===window.document){var o=r||n(4098);o.default&&(o=o.default),t.default=o,e.exports=t.default}},907:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr})},7326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},3144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;no})},4942:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;tr})},1721:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},5987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3366);function o(e,t){if(null==e)return{};var n,o,a=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},3366:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},885:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(181);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var a=Object.create(null);o.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,o.d(a,i),a},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(7599)})();
\ No newline at end of file
+ `),Lr))),Vr=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiLinearProgress"}),{className:r,color:o="primary",value:a,valueBuffer:i,variant:l="indeterminate"}=n,c=(0,M.Z)(n,Pr),u=(0,s.Z)({},n,{color:o,variant:l}),d=(e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${(0,Te.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,Te.Z)(r)}`],bar1:["bar",`barColor${(0,Te.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,Te.Z)(r)}`,"buffer"===n&&`color${(0,Te.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,Ee.Z)(o,Er,t)})(u),p=(0,ur.Z)(),m={},h={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==a){m["aria-valuenow"]=Math.round(a),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let e=a-100;"rtl"===p.direction&&(e=-e),h.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==i){let e=(i||0)-100;"rtl"===p.direction&&(e=-e),h.bar2.transform=`translateX(${e}%)`}return(0,Ne.jsxs)(Fr,(0,s.Z)({className:(0,Se.Z)(d.root,r),ownerState:u,role:"progressbar"},m,{ref:t},c,{children:["buffer"===l?(0,Ne.jsx)(zr,{className:d.dashed,ownerState:u}):null,(0,Ne.jsx)(Nr,{className:d.bar1,ownerState:u,style:h.bar1}),"determinate"===l?null:(0,Ne.jsx)(Hr,{className:d.bar2,ownerState:u,style:h.bar2})]}))})),Wr=Vr;var Ur=n(7167),Yr=n(4423);function Gr(e){return(0,Ze.Z)("MuiInputAdornment",e)}const qr=(0,Le.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Kr=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Xr=(0,Ie.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Te.Z)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:e.palette.action.active},"filled"===t.variant&&{[`&.${qr.positionStart}&:not(.${qr.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Jr=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d}=n,p=(0,M.Z)(n,Kr),m=(0,Yr.Z)()||{};let h=d;d&&m.variant,m&&!h&&(h=m.variant);const f=(0,s.Z)({},n,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:l,position:u,variant:h}),g=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${(0,Te.Z)(o)}`,i,r&&"hiddenLabel",a&&`size${(0,Te.Z)(a)}`]};return(0,Ee.Z)(s,Gr,t)})(f);return(0,Ne.jsx)(Ur.Z.Provider,{value:null,children:(0,Ne.jsx)(Xr,(0,s.Z)({as:i,ownerState:f,className:(0,Se.Z)(g.root,a),ref:t},p,{children:"string"!=typeof o||c?(0,Ne.jsxs)(r.Fragment,{children:["start"===u?(0,Ne.jsx)("span",{className:"notranslate",dangerouslySetInnerHTML:{__html:""}}):null,o]}):(0,Ne.jsx)(st.Z,{color:"text.secondary",children:o})}))})})),Qr=Jr;var _r=n(9868),$r=n(6523),eo=n(6682);const to=["className","component"];var no=n(9981),ro=n(4345);const oo=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=(0,_r.ZP)("div")($r.Z);return r.forwardRef((function(e,r){const i=(0,eo.Z)(t),l=(0,Je.Z)(e),{className:c,component:u="div"}=l,d=(0,M.Z)(l,to);return(0,Ne.jsx)(a,(0,s.Z)({as:u,ref:r,className:(0,Se.Z)(c,o?o(n):n),theme:i},d))}))}({defaultTheme:(0,ro.Z)(),defaultClassName:"MuiBox-root",generateClassName:no.Z.generate});n(9864);var ao=n(7144);let io;function so(){if(io)return io;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),io="reverse",e.scrollLeft>0?io="default":(e.scrollLeft=1,0===e.scrollLeft&&(io="negative")),document.body.removeChild(e),io}function lo(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(so()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function co(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var uo=n(5340);const po=["onChange"],mo={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var ho=n(7070),fo=n(6686),go=n(6905);function bo(e){return(0,Ze.Z)("MuiTabScrollButton",e)}const vo=(0,Le.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);var yo,wo;const ko=["className","direction","orientation","disabled"],Co=(0,Ie.ZP)(go.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>(0,s.Z)({width:40,flexShrink:0,opacity:.8,[`&.${vo.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),xo=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiTabScrollButton"}),{className:r,direction:o}=n,a=(0,M.Z)(n,ko),i="rtl"===(0,ur.Z)().direction,l=(0,s.Z)({isRtl:i},n),c=(e=>{const{classes:t,orientation:n,disabled:r}=e,o={root:["root",n,r&&"disabled"]};return(0,Ee.Z)(o,bo,t)})(l);return(0,Ne.jsx)(Co,(0,s.Z)({component:"div",className:(0,Se.Z)(c.root,r),ref:t,role:null,ownerState:l,tabIndex:null},a,{children:"left"===o?yo||(yo=(0,Ne.jsx)(ho.Z,{fontSize:"small"})):wo||(wo=(0,Ne.jsx)(fo.Z,{fontSize:"small"}))}))})),So=xo;var Eo=n(2068);function Po(e){return(0,Ze.Z)("MuiTabs",e)}const To=(0,Le.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var Ao=n(8038);const Ro=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Oo=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Mo=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Bo=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},Io=(0,Ie.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${To.scrollButtons}`]:t.scrollButtons},{[`& .${To.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>(0,s.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${To.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),Zo=(0,Ie.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>(0,s.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),Lo=(0,Ie.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>(0,s.Z)({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),Do=(0,Ie.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>(0,s.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:t.palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:t.palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),jo=(0,Ie.ZP)((function(e){const{onChange:t}=e,n=(0,M.Z)(e,po),o=r.useRef(),a=r.useRef(null),i=()=>{o.current=a.current.offsetHeight-a.current.clientHeight};return r.useEffect((()=>{const e=(0,ao.Z)((()=>{const e=o.current;i(),e!==o.current&&t(o.current)})),n=(0,uo.Z)(a.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),r.useEffect((()=>{i(),t(o.current)}),[t]),(0,Ne.jsx)("div",(0,s.Z)({style:mo,ref:a},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Fo={},zo=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiTabs"}),o=(0,ur.Z)(),a="rtl"===o.direction,{"aria-label":i,"aria-labelledby":l,action:c,centered:u=!1,children:d,className:p,component:m="div",allowScrollButtonsMobile:h=!1,indicatorColor:f="primary",onChange:g,orientation:b="horizontal",ScrollButtonComponent:v=So,scrollButtons:y="auto",selectionFollowsFocus:w,TabIndicatorProps:k={},TabScrollButtonProps:C={},textColor:x="primary",value:S,variant:E="standard",visibleScrollbar:P=!1}=n,T=(0,M.Z)(n,Ro),A="scrollable"===E,R="vertical"===b,O=R?"scrollTop":"scrollLeft",B=R?"top":"left",I=R?"bottom":"right",Z=R?"clientHeight":"clientWidth",L=R?"height":"width",D=(0,s.Z)({},n,{component:m,allowScrollButtonsMobile:h,indicatorColor:f,orientation:b,vertical:R,scrollButtons:y,textColor:x,variant:E,visibleScrollbar:P,fixed:!A,hideScrollbar:A&&!P,scrollableX:A&&!R,scrollableY:A&&R,centered:u&&!A,scrollButtonsHideMobile:!h}),j=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,Ee.Z)(c,Po,l)})(D),[F,z]=r.useState(!1),[N,H]=r.useState(Fo),[V,W]=r.useState({start:!1,end:!1}),[U,Y]=r.useState({overflow:"hidden",scrollbarWidth:0}),G=new Map,q=r.useRef(null),K=r.useRef(null),X=()=>{const e=q.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:lo(e,o.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==S){const e=K.current.children;if(e.length>0){const t=e[G.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},J=(0,Eo.Z)((()=>{const{tabsMeta:e,tabMeta:t}=X();let n,r=0;if(R)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=a?"right":"left",t&&e){const o=a?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(a?-1:1)*(t[n]-e[n]+o)}const o={[n]:r,[L]:t?t[L]:0};if(isNaN(N[n])||isNaN(N[L]))H(o);else{const e=Math.abs(N[n]-o[n]),t=Math.abs(N[L]-o[L]);(e>=1||t>=1)&&H(o)}})),Q=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=(()=>{})){const{ease:a=co,duration:i=300}=r;let s=null;const l=t[e];let c=!1;const u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/i);t[e]=a(d)*(n-l)+l,d>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(O,q.current,e,{duration:o.transitions.duration.standard}):q.current[O]=e},_=e=>{let t=q.current[O];R?t+=e:(t+=e*(a?-1:1),t*=a&&"reverse"===so()?-1:1),Q(t)},$=()=>{const e=q.current[Z];let t=0;const n=Array.from(K.current.children);for(let r=0;re)break;t+=o[Z]}return t},ee=()=>{_(-1*$())},te=()=>{_($())},ne=r.useCallback((e=>{Y({overflow:null,scrollbarWidth:e})}),[]),re=(0,Eo.Z)((e=>{const{tabsMeta:t,tabMeta:n}=X();if(n&&t)if(n[B]t[I]){const r=t[O]+(n[I]-t[I]);Q(r,{animation:e})}})),oe=(0,Eo.Z)((()=>{if(A&&!1!==y){const{scrollTop:e,scrollHeight:t,clientHeight:n,scrollWidth:r,clientWidth:i}=q.current;let s,l;if(R)s=e>1,l=e1,l=a?e>1:e{const e=(0,ao.Z)((()=>{J(),oe()})),t=(0,uo.Z)(q.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),Array.from(K.current.children).forEach((e=>{n.observe(e)}))),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[J,oe]);const ae=r.useMemo((()=>(0,ao.Z)((()=>{oe()}))),[oe]);r.useEffect((()=>()=>{ae.clear()}),[ae]),r.useEffect((()=>{z(!0)}),[]),r.useEffect((()=>{J(),oe()})),r.useEffect((()=>{re(Fo!==N)}),[re,N]),r.useImperativeHandle(c,(()=>({updateIndicator:J,updateScrollButtons:oe})),[J,oe]);const ie=(0,Ne.jsx)(Do,(0,s.Z)({},k,{className:(0,Se.Z)(j.indicator,k.className),ownerState:D,style:(0,s.Z)({},N,k.style)}));let se=0;const le=r.Children.map(d,(e=>{if(!r.isValidElement(e))return null;const t=void 0===e.props.value?se:e.props.value;G.set(t,se);const n=t===S;return se+=1,r.cloneElement(e,(0,s.Z)({fullWidth:"fullWidth"===E,indicator:n&&!F&&ie,selected:n,selectionFollowsFocus:w,onChange:g,textColor:x,value:t},1!==se||!1!==S||e.props.tabIndex?{}:{tabIndex:0}))})),ce=(()=>{const e={};e.scrollbarSizeListener=A?(0,Ne.jsx)(jo,{onChange:ne,className:(0,Se.Z)(j.scrollableX,j.hideScrollbar)}):null;const t=V.start||V.end,n=A&&("auto"===y&&t||!0===y);return e.scrollButtonStart=n?(0,Ne.jsx)(v,(0,s.Z)({orientation:b,direction:a?"right":"left",onClick:ee,disabled:!V.start},C,{className:(0,Se.Z)(j.scrollButtons,C.className)})):null,e.scrollButtonEnd=n?(0,Ne.jsx)(v,(0,s.Z)({orientation:b,direction:a?"left":"right",onClick:te,disabled:!V.end},C,{className:(0,Se.Z)(j.scrollButtons,C.className)})):null,e})();return(0,Ne.jsxs)(Io,(0,s.Z)({className:(0,Se.Z)(j.root,p),ownerState:D,ref:t,as:m},T,{children:[ce.scrollButtonStart,ce.scrollbarSizeListener,(0,Ne.jsxs)(Zo,{className:j.scroller,ownerState:D,style:{overflow:U.overflow,[R?"margin"+(a?"Left":"Right"):"marginBottom"]:P?void 0:-U.scrollbarWidth},ref:q,onScroll:ae,children:[(0,Ne.jsx)(Lo,{"aria-label":i,"aria-labelledby":l,"aria-orientation":"vertical"===b?"vertical":null,className:j.flexContainer,ownerState:D,onKeyDown:e=>{const t=K.current,n=(0,Ao.Z)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===b?"ArrowLeft":"ArrowUp",o="horizontal"===b?"ArrowRight":"ArrowDown";switch("horizontal"===b&&a&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),Bo(t,n,Mo);break;case o:e.preventDefault(),Bo(t,n,Oo);break;case"Home":e.preventDefault(),Bo(t,null,Oo);break;case"End":e.preventDefault(),Bo(t,null,Mo)}},ref:K,role:"tablist",children:le}),F&&ie]}),ce.scrollButtonEnd]}))})),No=zo;function Ho(e){return(0,Ze.Z)("MuiTab",e)}const Vo=(0,Le.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Wo=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Uo=(0,Ie.ZP)(go.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${(0,Te.Z)(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>(0,s.Z)({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Vo.iconWrapper}`]:(0,s.Z)({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Vo.selected}`]:{opacity:1},[`&.${Vo.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"primary"===t.textColor&&{color:e.palette.text.secondary,[`&.${Vo.selected}`]:{color:e.palette.primary.main},[`&.${Vo.disabled}`]:{color:e.palette.text.disabled}},"secondary"===t.textColor&&{color:e.palette.text.secondary,[`&.${Vo.selected}`]:{color:e.palette.secondary.main},[`&.${Vo.disabled}`]:{color:e.palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),Yo=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiTab"}),{className:o,disabled:a=!1,disableFocusRipple:i=!1,fullWidth:l,icon:c,iconPosition:u="top",indicator:d,label:p,onChange:m,onClick:h,onFocus:f,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:y,wrapped:w=!1}=n,k=(0,M.Z)(n,Wo),C=(0,s.Z)({},n,{disabled:a,disableFocusRipple:i,selected:g,icon:!!c,iconPosition:u,label:!!p,fullWidth:l,textColor:v,wrapped:w}),x=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:a,label:i,selected:s,disabled:l}=e,c={root:["root",a&&i&&"labelIcon",`textColor${(0,Te.Z)(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,Ee.Z)(c,Ho,t)})(C),S=c&&p&&r.isValidElement(c)?r.cloneElement(c,{className:(0,Se.Z)(x.iconWrapper,c.props.className)}):c;return(0,Ne.jsxs)(Uo,(0,s.Z)({focusRipple:!i,className:(0,Se.Z)(x.root,o),ref:t,role:"tab","aria-selected":g,disabled:a,onClick:e=>{!g&&m&&m(e,y),h&&h(e)},onFocus:e=>{b&&!g&&m&&m(e,y),f&&f(e)},ownerState:C,tabIndex:g?0:-1},k,{children:["top"===u||"start"===u?(0,Ne.jsxs)(r.Fragment,{children:[S,p]}):(0,Ne.jsxs)(r.Fragment,{children:[p,S]}),d]}))})),Go=Yo,qo=r.createContext(null),Ko=function(e){const{children:t,dateAdapter:n,dateFormats:o,dateLibInstance:a,locale:i}=e,s=r.useMemo((()=>new n({locale:i,formats:o,instance:a})),[n,i,o,a]),l=r.useMemo((()=>({minDate:s.date("1900-01-01T00:00:00.000"),maxDate:s.date("2099-12-31T00:00:00.000")})),[s]),c=r.useMemo((()=>({utils:s,defaultDates:l})),[l,s]);return(0,Ne.jsx)(qo.Provider,{value:c,children:t})};function Xo(){return Xo=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var Qo=n(4168),_o=n(539),$o=n(8974);const ea=(0,wn.Z)((0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,Ne.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");function ta(e,t){return e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date"}const na=(e,t,n)=>{const r=e.date(t);return null===t?"":e.isValid(r)?e.formatByString(r,n):""};function ra(e,t,n){return e||(void 0===t?n.localized:t?n["12h"]:n["24h"])}function oa(){const e=r.useContext(qo);if(null===e)throw new Error(function(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;ee,da=(()=>{let e=ua;return{configure(t){e=t},generate:t=>e(t),reset(){e=ua}}})(),pa={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function ma(e,t){return pa[t]||`${da.generate(e)}-${t}`}function ha(e,t){const n={};return t.forEach((t=>{n[t]=ma(e,t)})),n}function fa(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e)),[]).join(" ")})),r}const ga=["className","selected","value"],ba=ha("PrivatePickersToolbarText",["selected"]),va=(0,Ie.ZP)(st.Z)((({theme:e})=>({transition:e.transitions.create("color"),color:e.palette.text.secondary,[`&.${ba.selected}`]:{color:e.palette.text.primary}}))),ya=r.forwardRef((function(e,t){const{className:n,selected:r,value:o}=e,a=Jo(e,ga);return(0,Ne.jsx)(va,Xo({ref:t,className:(0,Se.Z)(n,r&&ba.selected),component:"span"},a,{children:o}))})),wa=["align","className","selected","typographyClassName","value","variant"],ka=(0,Ie.ZP)(pt.Z)({padding:0,minWidth:16,textTransform:"none"}),Ca=r.forwardRef((function(e,t){const{align:n,className:r,selected:o,typographyClassName:a,value:i,variant:s}=e,l=Jo(e,wa);return(0,Ne.jsx)(ka,Xo({variant:"text",ref:t,className:r},l,{children:(0,Ne.jsx)(ya,{align:n,className:a,variant:s,value:i,selected:o})}))})),xa=(0,wn.Z)((0,Ne.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),Sa=(0,wn.Z)((0,Ne.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");var Ea,Pa,Ta;const Aa=ha("PrivatePickersToolbar",["root","dateTitleContainer"]),Ra=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Xo({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}))),Oa=(0,Ie.ZP)(it)({flex:1}),Ma=e=>"clock"===e?Ea||(Ea=(0,Ne.jsx)(ea,{color:"inherit"})):Pa||(Pa=(0,Ne.jsx)(Sa,{color:"inherit"}));function Ba(e,t){return e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`}const Ia=r.forwardRef((function(e,t){const{children:n,className:r,getMobileKeyboardInputViewButtonText:o=Ba,isLandscape:a,isMobileKeyboardViewOpen:i,landscapeDirection:s="column",penIconClassName:l,toggleMobileKeyboardView:c,toolbarTitle:u,viewType:d="calendar"}=e,p=e;return(0,Ne.jsxs)(Ra,{ref:t,className:(0,Se.Z)(Aa.root,r),ownerState:p,children:[(0,Ne.jsx)(st.Z,{color:"text.secondary",variant:"overline",children:u}),(0,Ne.jsxs)(Oa,{container:!0,justifyContent:"space-between",className:Aa.dateTitleContainer,direction:a?s:"row",alignItems:a?"flex-start":"flex-end",children:[n,(0,Ne.jsx)(dt.Z,{onClick:c,className:l,color:"inherit","aria-label":o(i,d),children:i?Ma(d):Ta||(Ta=(0,Ne.jsx)(xa,{color:"inherit"}))})]})]})}));function Za(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}const La=(e,t)=>n=>{"Enter"!==n.key&&" "!==n.key||(e(),n.preventDefault(),n.stopPropagation()),t&&t(n)},Da=(...e)=>e.reduceRight(((e,t)=>(...n)=>t(e(...n))),(e=>e));function ja(e,t){return n=>{e(n),t&&t(n)}}const Fa=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?"am"===t?e-12:e+12:e;function za(e,t){return 3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e)}const Na=(e,t)=>(n,r)=>e?t.isAfter(n,r):za(n,t)>za(r,t),Ha=(e,t,{minTime:n,maxTime:r,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:a})=>{const i=e.date(t),s=Na(Boolean(a),e);if(null===t)return null;switch(!0){case!e.isValid(t):return"invalidDate";case Boolean(n&&s(n,i)):return"minTime";case Boolean(r&&s(i,r)):return"maxTime";case Boolean(o&&o(e.getHours(i),"hours")):return"shouldDisableTime-hours";case Boolean(o&&o(e.getMinutes(i),"minutes")):return"shouldDisableTime-minutes";case Boolean(o&&o(e.getSeconds(i),"seconds")):return"shouldDisableTime-seconds";default:return null}};function Va(e,t,n){const o=aa(),a=((e,t)=>e?t.getHours(e)>=12?"pm":"am":null)(e,o),i=r.useCallback((r=>{const a=((e,t,n,r)=>{const o=Fa(r.getHours(e),t,n);return r.setHours(e,o)})(e,r,Boolean(t),o);n(a,"partial")}),[t,e,n,o]);return{meridiemMode:a,handleMeridiemChange:i}}const Wa=["ampm","ampmInClock","date","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views"];function Ua(e){return ma("PrivateTimePickerToolbar",e)}const Ya=ha("PrivateTimePickerToolbar",["separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel","penIconLandscape"]),Ga=(0,Ie.ZP)(Ia)({[`& .${Ya.penIconLandscape}`]:{marginTop:"auto"}}),qa=(0,Ie.ZP)(ya)({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Ka=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Xo({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"}))),Xa=(0,Ie.ZP)("div")((({ownerState:e})=>Xo({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${Ya.ampmLabel}`]:{fontSize:17}}))),Ja=e=>{const{ampm:t,ampmInClock:n,date:r,isLandscape:o,isMobileKeyboardViewOpen:a,onChange:i,openView:s,setOpenView:l,toggleMobileKeyboardView:c,toolbarTitle:u="Select time",views:d}=e,p=Jo(e,Wa),m=aa(),h=(0,ur.Z)(),f=Boolean(t&&!n),{meridiemMode:g,handleMeridiemChange:b}=Va(r,t,i),v=e,y=(e=>{const{theme:t,isLandscape:n,classes:r}=e;return fa({penIconLandscape:["penIconLandscape"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Ua,r)})(Xo({},v,{theme:h})),w=(0,Ne.jsx)(qa,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:y.separator});return(0,Ne.jsxs)(Ga,Xo({viewType:"clock",landscapeDirection:"row",toolbarTitle:u,isLandscape:o,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:c,ownerState:v,penIconClassName:(0,Se.Z)(o&&y.penIconLandscape)},p,{children:[(0,Ne.jsxs)(Ka,{className:y.hourMinuteLabel,ownerState:v,children:[Za(d,"hours")&&(0,Ne.jsx)(Ca,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:"hours"===s,value:r?(k=r,t?m.format(k,"hours12h"):m.format(k,"hours24h")):"--"}),Za(d,["hours","minutes"])&&w,Za(d,"minutes")&&(0,Ne.jsx)(Ca,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:"minutes"===s,value:r?m.format(r,"minutes"):"--"}),Za(d,["minutes","seconds"])&&w,Za(d,"seconds")&&(0,Ne.jsx)(Ca,{variant:"h3",onClick:()=>l("seconds"),selected:"seconds"===s,value:r?m.format(r,"seconds"):"--"})]}),f&&(0,Ne.jsxs)(Xa,{className:y.ampmSelection,ownerState:v,children:[(0,Ne.jsx)(Ca,{disableRipple:!0,variant:"subtitle2",selected:"am"===g,typographyClassName:y.ampmLabel,value:m.getMeridiemText("am"),onClick:()=>b("am")}),(0,Ne.jsx)(Ca,{disableRipple:!0,variant:"subtitle2",selected:"pm"===g,typographyClassName:y.ampmLabel,value:m.getMeridiemText("pm"),onClick:()=>b("pm")})]})]}));var k},Qa=r.createContext(null);var _a=n(6514),$a=n(2486),ei=n(2310);const ti=["onClick","onTouchStart"],ni=(0,Ie.ZP)($a.Z)((({theme:e})=>({zIndex:e.zIndex.modal}))),ri=(0,Ie.ZP)(Me.Z)((({ownerState:e})=>Xo({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"}))),oi=(0,Ie.ZP)(Wt)((({ownerState:e})=>Xo({},e.clearable?{justifyContent:"flex-start","& > *:first-of-type":{marginRight:"auto"}}:{padding:0}))),ai=e=>{var t;const{anchorEl:n,children:o,containerRef:a=null,onClose:i,onClear:s,clearable:l=!1,clearText:c="Clear",open:u,PopperProps:d,role:p,TransitionComponent:m=_a.Z,TrapFocusProps:h,PaperProps:f={}}=e;r.useEffect((()=>{function e(e){"Escape"!==e.key&&"Esc"!==e.key||i()}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[i]);const g=r.useRef(null);r.useEffect((()=>{"tooltip"!==p&&(u?g.current=document.activeElement:g.current&&g.current instanceof HTMLElement&&g.current.focus())}),[u,p]);const[b,v,y]=function(e,t){const n=r.useRef(!1),o=r.useRef(!1),a=r.useRef(null),i=r.useRef(!1);r.useEffect((()=>{if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),()=>{document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),i.current=!1};function t(){i.current=!0}}),[e]);const s=(0,Eo.Z)((e=>{if(!i.current)return;const r=o.current;o.current=!1;const s=(0,Ao.Z)(a.current);if(!a.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!s.documentElement.contains(e.target)||a.current.contains(e.target),l||r||t(e)})),l=()=>{o.current=!0};return r.useEffect((()=>{if(e){const e=(0,Ao.Z)(a.current),t=()=>{n.current=!0};return e.addEventListener("touchstart",s),e.addEventListener("touchmove",t),()=>{e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",t)}}}),[e,s]),r.useEffect((()=>{if(e){const e=(0,Ao.Z)(a.current);return e.addEventListener("click",s),()=>{e.removeEventListener("click",s),o.current=!1}}}),[e,s]),[a,l,l]}(u,i),w=r.useRef(null),k=(0,Mt.Z)(w,a),C=(0,Mt.Z)(k,b),x=e,{onClick:S,onTouchStart:E}=f,P=Jo(f,ti);return(0,Ne.jsx)(ni,Xo({transition:!0,role:p,open:u,anchorEl:n,ownerState:x},d,{children:({TransitionProps:e,placement:n})=>(0,Ne.jsx)(ei.Z,Xo({open:u,disableAutoFocus:!0,disableEnforceFocus:"tooltip"===p,isEnabled:()=>!0},h,{children:(0,Ne.jsx)(m,Xo({},e,{children:(0,Ne.jsxs)(ri,Xo({tabIndex:-1,elevation:8,ref:C,onClick:e=>{v(e),S&&S(e)},onTouchStart:e=>{y(e),E&&E(e)},ownerState:Xo({},x,{placement:n})},P,{children:[o,(0,Ne.jsx)(oi,{ownerState:x,children:l&&(t||(t=(0,Ne.jsx)(pt.Z,{onClick:s,children:c})))})]}))}))}))}))},ii=function(e){const{children:t,DateInputProps:n,KeyboardDateInputComponent:o,onDismiss:a,open:i,PopperProps:s,PaperProps:l,TransitionComponent:c,onClear:u,clearText:d,clearable:p}=e,m=r.useRef(null),h=(0,Mt.Z)(n.inputRef,m);return(0,Ne.jsxs)(Qa.Provider,{value:"desktop",children:[(0,Ne.jsx)(o,Xo({},n,{inputRef:h})),(0,Ne.jsx)(ai,{role:"dialog",open:i,anchorEl:m.current,TransitionComponent:c,PopperProps:s,PaperProps:l,onClose:a,onClear:u,clearText:d,clearable:p,children:t})]})};function si({onChange:e,onViewChange:t,openTo:n,view:o,views:a}){var i,s;const[l,c]=(0,mn.Z)({name:"Picker",state:"view",controlled:o,default:n&&Za(a,n)?n:a[0]}),u=null!=(i=a[a.indexOf(l)-1])?i:null,d=null!=(s=a[a.indexOf(l)+1])?s:null,p=r.useCallback((e=>{c(e),t&&t(e)}),[c,t]),m=r.useCallback((()=>{d&&p(d)}),[d,p]);return{handleChangeAndOpenNext:r.useCallback(((t,n)=>{const r="finish"===n,o=r&&Boolean(d)?"partial":n;e(t,o),r&&m()}),[d,e,m]),nextView:d,previousView:u,openNext:m,openView:l,setOpenView:p}}let li=0;const ci=o.useId;const ui="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,di=110,pi=110,mi=di-di,hi=0-pi,fi=(e,t,n)=>{const r=t-di,o=n-pi;let a=(Math.atan2(mi,hi)-Math.atan2(r,o))*(180/Math.PI);a=Math.round(a/e)*e,a%=360;const i=r**2+o**2;return{value:Math.floor(a/e)||0,distance:Math.sqrt(i)}},gi=["className","hasSelected","isInner","type","value"],bi=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Xo({width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.toAnimateTransform&&{transition:e.transitions.create(["transform","height"])}))),vi=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Xo({width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${e.palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:e.palette.primary.main})));class yi extends r.Component{constructor(...e){super(...e),this.state={toAnimateTransform:!1,previousType:void 0}}render(){const e=this.props,{className:t,isInner:n,type:r,value:o}=e,a=Jo(e,gi),i=Xo({},this.props,this.state);return(0,Ne.jsx)(bi,Xo({style:(()=>{let e=360/("hours"===r?12:60)*o;return"hours"===r&&o>12&&(e-=360),{height:Math.round(220*(n?.26:.4)),transform:`rotateZ(${e}deg)`}})(),className:t,ownerState:i},a,{children:(0,Ne.jsx)(vi,{ownerState:i})}))}}yi.getDerivedStateFromProps=(e,t)=>e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type};const wi=yi;var ki,Ci,xi;const Si=(0,Ie.ZP)("div")((({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)}))),Ei=(0,Ie.ZP)("div")({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Pi=(0,Ie.ZP)("div")({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none","@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}),Ti=(0,Ie.ZP)("div")((({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}))),Ai=(0,Ie.ZP)(dt.Z)((({theme:e,ownerState:t})=>Xo({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,left:8},"am"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}))),Ri=(0,Ie.ZP)(dt.Z)((({theme:e,ownerState:t})=>Xo({zIndex:1,position:"absolute",bottom:t.ampmInClock?64:8,right:8},"pm"===t.meridiemMode&&{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,"&:hover":{backgroundColor:e.palette.primary.light}}))),Oi=function(e){const{ampm:t,ampmInClock:n,autoFocus:o,children:a,date:i,getClockLabelText:s,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:p,selectedId:m,type:h,value:f}=e,g=e,b=aa(),v=r.useContext(Qa),y=r.useRef(!1),w=c(f,h),k=!t&&"hours"===h&&(f<1||f>12),C=(e,t)=>{c(e,h)||p(e,t)},x=(e,n)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){const t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}const a="seconds"===h||"minutes"===h?((e,t,n=1)=>{const r=6*n;let{value:o}=fi(r,e,t);return o=o*n%60,o})(r,o,d):((e,t,n)=>{const{value:r,distance:o}=fi(30,e,t);let a=r||12;return n?a%=12:o<74&&(a+=12,a%=24),a})(r,o,Boolean(t));C(a,n)},S=r.useMemo((()=>"hours"===h||f%5==0),[h,f]),E="minutes"===h?d:1,P=r.useRef(null);return ui((()=>{o&&P.current.focus()}),[o]),(0,Ne.jsxs)(Si,{children:[(0,Ne.jsxs)(Ei,{children:[(0,Ne.jsx)(Pi,{onTouchMove:e=>{y.current=!0,x(e,"shallow")},onTouchEnd:e=>{y.current&&(x(e,"finish"),y.current=!1)},onMouseUp:e=>{y.current&&(y.current=!1),x(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&x(e.nativeEvent,"shallow")}}),!w&&(0,Ne.jsxs)(r.Fragment,{children:[ki||(ki=(0,Ne.jsx)(Ti,{})),i&&(0,Ne.jsx)(wi,{type:h,value:f,isInner:k,hasSelected:S})]}),(0,Ne.jsx)("div",{"aria-activedescendant":m,"aria-label":s(h,i,b),ref:P,role:"listbox",onKeyDown:e=>{if(!y.current)switch(e.key){case"Home":C(0,"partial"),e.preventDefault();break;case"End":C("minutes"===h?59:23,"partial"),e.preventDefault();break;case"ArrowUp":C(f+E,"partial"),e.preventDefault();break;case"ArrowDown":C(f-E,"partial"),e.preventDefault()}},tabIndex:0,children:a})]}),t&&("desktop"===v||n)&&(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)(Ai,{onClick:()=>l("am"),disabled:null===u,ownerState:g,children:Ci||(Ci=(0,Ne.jsx)(st.Z,{variant:"caption",children:"AM"}))}),(0,Ne.jsx)(Ri,{disabled:null===u,onClick:()=>l("pm"),ownerState:g,children:xi||(xi=(0,Ne.jsx)(st.Z,{variant:"caption",children:"PM"}))})]})]})},Mi=["className","disabled","index","inner","label","selected"],Bi=ha("PrivateClockNumber",["selected","disabled"]),Ii=(0,Ie.ZP)("span")((({theme:e,ownerState:t})=>Xo({height:36,width:36,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:e.palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:e.palette.background.paper},[`&.${Bi.selected}`]:{color:e.palette.primary.contrastText},[`&.${Bi.disabled}`]:{pointerEvents:"none",color:e.palette.text.disabled}},t.inner&&Xo({},e.typography.body2,{color:e.palette.text.secondary})))),Zi=function(e){const{className:t,disabled:n,index:r,inner:o,label:a,selected:i}=e,s=Jo(e,Mi),l=e,c=r%12/12*Math.PI*2-Math.PI/2,u=91*(o?.65:1),d=Math.round(Math.cos(c)*u),p=Math.round(Math.sin(c)*u);return(0,Ne.jsx)(Ii,Xo({className:(0,Se.Z)(t,i&&Bi.selected,n&&Bi.disabled),"aria-disabled":!!n||void 0,"aria-selected":!!i||void 0,role:"option",style:{transform:`translate(${d}px, ${p+92}px`},ownerState:l},s,{children:a}))},Li=({ampm:e,date:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:a})=>{const i=t?a.getHours(t):null,s=[],l=e?12:23,c=t=>null!==i&&(e?12===t?12===i||0===i:i===t||i-12===t:i===t);for(let t=e?1:0;t<=l;t+=1){let i=t.toString();0===t&&(i="00");const l=!e&&(0===t||t>12);i=a.formatNumber(i);const u=c(t);s.push((0,Ne.jsx)(Zi,{id:u?o:void 0,index:t,inner:l,selected:u,disabled:r(t),label:i,"aria-label":n(i)},t))}return s},Di=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map((([e,a],i)=>{const s=e===t;return(0,Ne.jsx)(Zi,{label:a,id:s?o:void 0,index:i+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(a)},e)}))},ji=(0,wn.Z)((0,Ne.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Fi=(0,wn.Z)((0,Ne.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),zi=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],Ni=(0,Ie.ZP)("div")({display:"flex"}),Hi=(0,Ie.ZP)("div")((({theme:e})=>({width:e.spacing(3)}))),Vi=(0,Ie.ZP)(dt.Z)((({ownerState:e})=>Xo({},e.hidden&&{visibility:"hidden"}))),Wi=r.forwardRef((function(e,t){const{children:n,className:r,components:o={},componentsProps:a={},isLeftDisabled:i,isLeftHidden:s,isRightDisabled:l,isRightHidden:c,leftArrowButtonText:u,onLeftClick:d,onRightClick:p,rightArrowButtonText:m}=e,h=Jo(e,zi),f="rtl"===(0,ur.Z)().direction,g=a.leftArrowButton||{},b=o.LeftArrowIcon||ji,v=a.rightArrowButton||{},y=o.RightArrowIcon||Fi,w=e;return(0,Ne.jsxs)(Ni,Xo({ref:t,className:r,ownerState:w},h,{children:[(0,Ne.jsx)(Vi,Xo({as:o.LeftArrowButton,size:"small","aria-label":u,title:u,disabled:i,edge:"end",onClick:d},g,{className:g.className,ownerState:Xo({},w,g,{hidden:s}),children:f?(0,Ne.jsx)(y,{}):(0,Ne.jsx)(b,{})})),n?(0,Ne.jsx)(st.Z,{variant:"subtitle1",component:"span",children:n}):(0,Ne.jsx)(Hi,{ownerState:w}),(0,Ne.jsx)(Vi,Xo({as:o.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:l,onClick:p},v,{className:v.className,ownerState:Xo({},w,v,{hidden:c}),children:f?(0,Ne.jsx)(b,{}):(0,Ne.jsx)(y,{})}))]}))}));function Ui(e){return ma("MuiClockPicker",e)}ha("MuiClockPicker",["arrowSwitcher"]);const Yi=(0,Ie.ZP)(Wi,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Gi=(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,qi=e=>`${e} minutes`,Ki=e=>`${e} hours`,Xi=e=>`${e} seconds`,Ji=function(e){const t=(0,Be.Z)({props:e,name:"MuiClockPicker"}),{ampm:n=!1,ampmInClock:o=!1,autoFocus:a,components:i,componentsProps:s,date:l,disableIgnoringDatePartForTimeValidation:c=!1,getClockLabelText:u=Gi,getHoursClockNumberText:d=Ki,getMinutesClockNumberText:p=qi,getSecondsClockNumberText:m=Xi,leftArrowButtonText:h="open previous view",maxTime:f,minTime:g,minutesStep:b=1,nextViewAvailable:v,onChange:y,openNextView:w,openPreviousView:k,previousViewAvailable:C,rightArrowButtonText:x="open next view",shouldDisableTime:S,showViewSwitcher:E,view:P}=t,T=ia(),A=aa(),R=A.setSeconds(A.setMinutes(A.setHours(T,0),0),0),O=l||R,{meridiemMode:M,handleMeridiemChange:B}=Va(O,n,y),I=r.useCallback(((e,t)=>{if(null===l)return!1;const r=n=>{const r=Na(c,A);return Boolean(g&&r(g,n("end"))||f&&r(n("start"),f)||S&&S(e,t))};switch(t){case"hours":{const t=Fa(e,M,n);return r((e=>Da((e=>A.setHours(e,t)),(t=>A.setMinutes(t,"start"===e?0:59)),(t=>A.setSeconds(t,"start"===e?0:59)))(l)))}case"minutes":return r((t=>Da((t=>A.setMinutes(t,e)),(e=>A.setSeconds(e,"start"===t?0:59)))(l)));case"seconds":return r((()=>A.setSeconds(l,e)));default:throw new Error("not supported")}}),[n,l,c,f,M,g,S,A]),Z=function(e){if(void 0!==ci){const t=ci();return null!=e?e:t}return function(e){const[t,n]=r.useState(e),o=e||t;return r.useEffect((()=>{null==t&&(li+=1,n(`mui-${li}`))}),[t]),o}(e)}(),L=r.useMemo((()=>{switch(P){case"hours":{const e=(e,t)=>{const r=Fa(e,M,n);y(A.setHours(O,r),t)};return{onChange:e,value:A.getHours(O),children:Li({date:l,utils:A,ampm:n,onChange:e,getClockNumberText:d,isDisabled:e=>I(e,"hours"),selectedId:Z})}}case"minutes":{const e=A.getMinutes(O),t=(e,t)=>{y(A.setMinutes(O,e),t)};return{value:e,onChange:t,children:Di({utils:A,value:e,onChange:t,getClockNumberText:p,isDisabled:e=>I(e,"minutes"),selectedId:Z})}}case"seconds":{const e=A.getSeconds(O),t=(e,t)=>{y(A.setSeconds(O,e),t)};return{value:e,onChange:t,children:Di({utils:A,value:e,onChange:t,getClockNumberText:m,isDisabled:e=>I(e,"seconds"),selectedId:Z})}}default:throw new Error("You must provide the type for ClockView")}}),[P,A,l,n,d,p,m,M,y,O,I,Z]),D=t,j=(e=>{const{classes:t}=e;return fa({arrowSwitcher:["arrowSwitcher"]},Ui,t)})(D);return(0,Ne.jsxs)(r.Fragment,{children:[E&&(0,Ne.jsx)(Yi,{className:j.arrowSwitcher,leftArrowButtonText:h,rightArrowButtonText:x,components:i,componentsProps:s,onLeftClick:k,onRightClick:w,isLeftDisabled:C,isRightDisabled:v,ownerState:D}),(0,Ne.jsx)(Oi,Xo({autoFocus:a,date:l,ampmInClock:o,type:P,ampm:n,getClockLabelText:u,minutesStep:b,isTimeDisabled:I,meridiemMode:M,handleMeridiemChange:B,selectedId:Z},L))]})},Qi=["disabled","onSelect","selected","value"],_i=ha("PrivatePickersMonth",["root","selected"]),$i=(0,Ie.ZP)(st.Z)((({theme:e})=>Xo({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,mt.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:e.palette.text.secondary},[`&.${_i.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}}))),es=e=>{const{disabled:t,onSelect:n,selected:r,value:o}=e,a=Jo(e,Qi),i=()=>{n(o)};return(0,Ne.jsx)($i,Xo({component:"button",className:(0,Se.Z)(_i.root,r&&_i.selected),tabIndex:t?-1:0,onClick:i,onKeyDown:La(i),color:r?"primary":void 0,variant:r?"h5":"subtitle1",disabled:t},a))},ts=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","onMonthChange","readOnly"];function ns(e){return ma("MuiMonthPicker",e)}ha("MuiMonthPicker",["root"]);const rs=(0,Ie.ZP)("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),os=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiMonthPicker"}),{className:r,date:o,disabled:a,disableFuture:i,disablePast:s,maxDate:l,minDate:c,onChange:u,onMonthChange:d,readOnly:p}=n,m=Jo(n,ts),h=n,f=(e=>{const{classes:t}=e;return fa({root:["root"]},ns,t)})(h),g=aa(),b=ia(),v=g.getMonth(o||b),y=e=>{const t=g.startOfMonth(s&&g.isAfter(b,c)?b:c),n=g.startOfMonth(i&&g.isBefore(b,l)?b:l),r=g.isBefore(e,t),o=g.isAfter(e,n);return r||o},w=e=>{if(p)return;const t=g.setMonth(o||b,e);u(t,"finish"),d&&d(t)};return(0,Ne.jsx)(rs,Xo({ref:t,className:(0,Se.Z)(f.root,r),ownerState:h},m,{children:g.getMonthArray(o||b).map((e=>{const t=g.getMonth(e),n=g.format(e,"monthShort");return(0,Ne.jsx)(es,{value:t,selected:t===v,onSelect:w,disabled:a||y(e),children:n},n)}))}))})),as=os,is=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,shouldDisableDate:a,utils:i})=>{const s=i.startOfDay(i.date());n&&i.isBefore(o,s)&&(o=s),t&&i.isAfter(r,s)&&(r=s);let l=e,c=e;for(i.isBefore(e,o)&&(l=i.date(o),c=null),i.isAfter(e,r)&&(c&&(c=i.date(r)),l=null);l||c;){if(l&&i.isAfter(l,r)&&(l=null),c&&i.isBefore(c,o)&&(c=null),l){if(!a(l))return l;l=i.addDays(l,1)}if(c){if(!a(c))return c;c=i.addDays(c,-1)}}return s};function ss(e,t){const n=e.date(t);return e.isValid(n)?n:null}function ls({date:e,defaultCalendarMonth:t,disableFuture:n,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:i,minDate:s,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u}){var d;const p=ia(),m=aa(),h=r.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return Xo({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Xo({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!==r.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=Boolean(o.focusedDay)&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return Xo({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}})(Boolean(c),a,m)).current,[f,g]=r.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:e||p,currentMonth:m.startOfMonth(null!=(d=null!=e?e:t)?d:p),slideDirection:"left"}),b=r.useCallback((e=>{g(Xo({type:"changeMonth"},e)),l&&l(e.newMonth)}),[l]),v=r.useCallback((e=>{const t=null!=e?e:p;m.isSameMonth(t,f.currentMonth)||b({newMonth:m.startOfMonth(t),direction:m.isAfterDay(t,f.currentMonth)?"left":"right"})}),[f.currentMonth,b,p,m]),y=r.useCallback((e=>null!==((e,t,{disablePast:n,disableFuture:r,minDate:o,maxDate:a,shouldDisableDate:i})=>{const s=e.date(),l=e.date(t);if(null===l)return null;switch(!0){case!e.isValid(t):return"invalidDate";case Boolean(i&&i(l)):return"shouldDisableDate";case Boolean(r&&e.isAfterDay(l,s)):return"disableFuture";case Boolean(n&&e.isBeforeDay(l,s)):return"disablePast";case Boolean(o&&e.isBeforeDay(l,o)):return"minDate";case Boolean(a&&e.isAfterDay(l,a)):return"maxDate";default:return null}})(m,e,{disablePast:o,disableFuture:n,minDate:s,maxDate:i,shouldDisableDate:u})),[n,o,i,s,u,m]),w=r.useCallback((()=>{g({type:"finishMonthSwitchingAnimation"})}),[]),k=r.useCallback((e=>{y(e)||g({type:"changeFocusedDay",focusedDay:e})}),[y]);return{calendarState:f,changeMonth:v,changeFocusedDay:k,isDateDisabled:y,onMonthSwitchingAnimationEnd:w,handleChangeMonth:b}}var cs=n(4537);const us=ha("PrivatePickersFadeTransitionGroup",["root"]),ds=(0,Ie.ZP)(cs.Z)({display:"block",position:"relative"}),ps=({children:e,className:t,reduceAnimations:n,transKey:r})=>n?e:(0,Ne.jsx)(ds,{className:(0,Se.Z)(us.root,t),children:(0,Ne.jsx)(Re.Z,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:e},r)}),ms=["allowSameDateSelection","autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDayFocus","onDaySelect","onFocus","onKeyDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"];function hs(e){return ma("MuiPickersDay",e)}const fs=ha("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),gs=({theme:e,ownerState:t})=>Xo({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,"&:hover":{backgroundColor:(0,mt.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:focus":{backgroundColor:(0,mt.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),[`&.${fs.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${fs.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${fs.disabled}`]:{color:e.palette.text.disabled}},!t.disableMargin&&{margin:"0 2px"},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:e.palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${fs.selected})`]:{border:`1px solid ${e.palette.text.secondary}`}}),bs=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},vs=(0,Ie.ZP)(go.Z,{name:"MuiPickersDay",slot:"Root",overridesResolver:bs})(gs),ys=(0,Ie.ZP)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:bs})((({theme:e,ownerState:t})=>Xo({},gs({theme:e,ownerState:t}),{visibility:"hidden"}))),ws=()=>{},ks=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiPickersDay"}),{allowSameDateSelection:o=!1,autoFocus:a=!1,className:i,day:s,disabled:l=!1,disableHighlightToday:c=!1,disableMargin:u=!1,isAnimating:d,onClick:p,onDayFocus:m=ws,onDaySelect:h,onFocus:f,onKeyDown:g,outsideCurrentMonth:b,selected:v=!1,showDaysOutsideCurrentMonth:y=!1,children:w,today:k=!1}=n,C=Jo(n,ms),x=Xo({},n,{allowSameDateSelection:o,autoFocus:a,disabled:l,disableHighlightToday:c,disableMargin:u,selected:v,showDaysOutsideCurrentMonth:y,today:k}),S=(e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:i,classes:s}=e;return fa({root:["root",t&&"selected",!n&&"dayWithMargin",!r&&o&&"today",a&&i&&"dayOutsideMonth"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},hs,s)})(x),E=aa(),P=r.useRef(null),T=(0,Mt.Z)(P,t);ui((()=>{!a||l||d||b||P.current.focus()}),[a,l,d,b]);const A=(0,ur.Z)();return b&&!y?(0,Ne.jsx)(ys,{className:(0,Se.Z)(S.root,S.hiddenDaySpacingFiller,i),ownerState:x}):(0,Ne.jsx)(vs,Xo({className:(0,Se.Z)(S.root,i),ownerState:x,ref:T,centerRipple:!0,disabled:l,"aria-label":w?void 0:E.format(s,"fullDate"),tabIndex:v?0:-1,onFocus:e=>{m&&m(s),f&&f(e)},onKeyDown:function(e){switch(void 0!==g&&g(e),e.key){case"ArrowUp":m(E.addDays(s,-7)),e.preventDefault();break;case"ArrowDown":m(E.addDays(s,7)),e.preventDefault();break;case"ArrowLeft":m(E.addDays(s,"ltr"===A.direction?-1:1)),e.preventDefault();break;case"ArrowRight":m(E.addDays(s,"ltr"===A.direction?1:-1)),e.preventDefault();break;case"Home":m(E.startOfWeek(s)),e.preventDefault();break;case"End":m(E.endOfWeek(s)),e.preventDefault();break;case"PageUp":m(E.getNextMonth(s)),e.preventDefault();break;case"PageDown":m(E.getPreviousMonth(s)),e.preventDefault()}},onClick:e=>{!o&&v||(l||h(s,"finish"),p&&p(e))}},C,{children:w||E.format(s,"dayOfMonth")}))})),Cs=(e,t)=>e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onDayFocus===t.onDayFocus&&e.onDaySelect===t.onDaySelect,xs=r.memo(ks,Cs);function Ss(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Es=n(2666),Ps=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ss(n.className,r):n.setAttribute("class",Ss(n.className&&n.className.baseVal||"",r)));var n,r}))},Ts=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o{const t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Os["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Os["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Os.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Os.slideExit}`]:{transform:"translate(0%)"},[`& .${Os["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Os["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}));var Bs;const Is=(0,Ie.ZP)("div")({display:"flex",justifyContent:"center",alignItems:"center"}),Zs=(0,Ie.ZP)(st.Z)((({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.secondary}))),Ls=(0,Ie.ZP)("div")({display:"flex",justifyContent:"center",alignItems:"center",minHeight:264}),Ds=(0,Ie.ZP)((e=>{let{children:t,className:n,reduceAnimations:o,slideDirection:a,transKey:i}=e,s=Jo(e,Rs);if(o)return(0,Ne.jsx)("div",{className:(0,Se.Z)(Os.root,n),children:t});const l={exit:Os.slideExit,enterActive:Os.slideEnterActive,enter:Os[`slideEnter-${a}`],exitActive:Os[`slideExitActiveLeft-${a}`]};return(0,Ne.jsx)(Ms,{className:(0,Se.Z)(Os.root,n),childFactory:e=>r.cloneElement(e,{classNames:l}),children:(0,Ne.jsx)(As,Xo({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:l},s,{children:t}),i)})}))({minHeight:264}),js=(0,Ie.ZP)("div")({overflow:"hidden"}),Fs=(0,Ie.ZP)("div")({margin:"2px 0",display:"flex",justifyContent:"center"}),zs=function(e){const{allowSameDateSelection:t,autoFocus:n,onFocusedDayChange:o,className:a,currentMonth:i,date:s,disabled:l,disableHighlightToday:c,focusedDay:u,isDateDisabled:d,isMonthSwitchingAnimating:p,loading:m,onChange:h,onMonthSwitchingAnimationEnd:f,readOnly:g,reduceAnimations:b,renderDay:v,renderLoading:y=(()=>Bs||(Bs=(0,Ne.jsx)("span",{children:"..."}))),showDaysOutsideCurrentMonth:w,slideDirection:k,TransitionProps:C}=e,x=ia(),S=aa(),E=r.useCallback(((e,t="finish")=>{if(g)return;const n=Array.isArray(s)?e:S.mergeDateAndTime(e,s||x);h(n,t)}),[s,x,h,g,S]),P=S.getMonth(i),T=(Array.isArray(s)?s:[s]).filter(Boolean).map((e=>e&&S.startOfDay(e))),A=P,R=r.useMemo((()=>r.createRef()),[A]);return(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)(Is,{children:S.getWeekdays().map(((e,t)=>(0,Ne.jsx)(Zs,{"aria-hidden":!0,variant:"caption",children:e.charAt(0).toUpperCase()},e+t.toString())))}),m?(0,Ne.jsx)(Ls,{children:y()}):(0,Ne.jsx)(Ds,Xo({transKey:A,onExited:f,reduceAnimations:b,slideDirection:k,className:a},C,{nodeRef:R,children:(0,Ne.jsx)(js,{ref:R,role:"grid",children:S.getWeekArray(i).map((e=>(0,Ne.jsx)(Fs,{role:"row",children:e.map((e=>{const r={key:null==e?void 0:e.toString(),day:e,isAnimating:p,disabled:l||d(e),allowSameDateSelection:t,autoFocus:n&&null!==u&&S.isSameDay(e,u),today:S.isSameDay(e,x),outsideCurrentMonth:S.getMonth(e)!==P,selected:T.some((t=>t&&S.isSameDay(t,e))),disableHighlightToday:c,showDaysOutsideCurrentMonth:w,onDayFocus:o,onDaySelect:E};return v?v(e,T,r):(0,Ne.jsx)("div",{role:"cell",children:(0,Ne.jsx)(xs,Xo({},r))},r.key)}))},`week-${e[0]}`)))})}))]})},Ns=(0,wn.Z)((0,Ne.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Hs=(0,Ie.ZP)("div")({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Vs=(0,Ie.ZP)("div")((({theme:e})=>Xo({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),Ws=(0,Ie.ZP)("div")({marginRight:6}),Us=(0,Ie.ZP)(dt.Z)({marginRight:"auto"}),Ys=(0,Ie.ZP)(Ns)((({theme:e,ownerState:t})=>Xo({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"},"year"===t.openView&&{transform:"rotate(180deg)"})));function Gs(e){return"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view"}const qs=function(e){const{components:t={},componentsProps:n={},currentMonth:o,disabled:a,disableFuture:i,disablePast:s,getViewSwitchingButtonText:l=Gs,leftArrowButtonText:c="Previous month",maxDate:u,minDate:d,onMonthChange:p,onViewChange:m,openView:h,reduceAnimations:f,rightArrowButtonText:g="Next month",views:b}=e,v=aa(),y=n.switchViewButton||{},w=function(e,{disableFuture:t,maxDate:n}){const o=aa();return r.useMemo((()=>{const r=o.date(),a=o.startOfMonth(t&&o.isBefore(r,n)?r:n);return!o.isAfter(a,e)}),[t,n,e,o])}(o,{disableFuture:i||a,maxDate:u}),k=function(e,{disablePast:t,minDate:n}){const o=aa();return r.useMemo((()=>{const r=o.date(),a=o.startOfMonth(t&&o.isAfter(r,n)?r:n);return!o.isBefore(a,e)}),[t,n,e,o])}(o,{disablePast:s||a,minDate:d});if(1===b.length&&"year"===b[0])return null;const C=e;return(0,Ne.jsxs)(Hs,{ownerState:C,children:[(0,Ne.jsxs)(Vs,{role:"presentation",onClick:()=>{if(1!==b.length&&m&&!a)if(2===b.length)m(b.find((e=>e!==h))||b[0]);else{const e=0!==b.indexOf(h)?0:1;m(b[e])}},ownerState:C,children:[(0,Ne.jsx)(ps,{reduceAnimations:f,transKey:v.format(o,"month"),children:(0,Ne.jsx)(Ws,{"aria-live":"polite",ownerState:C,children:v.format(o,"month")})}),(0,Ne.jsx)(ps,{reduceAnimations:f,transKey:v.format(o,"year"),children:(0,Ne.jsx)(Ws,{"aria-live":"polite",ownerState:C,children:v.format(o,"year")})}),b.length>1&&!a&&(0,Ne.jsx)(Us,Xo({size:"small",as:t.SwitchViewButton,"aria-label":l(h)},y,{children:(0,Ne.jsx)(Ys,{as:t.SwitchViewIcon,ownerState:C})}))]}),(0,Ne.jsx)(Re.Z,{in:"day"===h,children:(0,Ne.jsx)(Wi,{leftArrowButtonText:c,rightArrowButtonText:g,components:t,componentsProps:n,onLeftClick:()=>p(v.getPreviousMonth(o),"right"),onRightClick:()=>p(v.getNextMonth(o),"left"),isLeftDisabled:k,isRightDisabled:w})})]})};function Ks(e){return ma("PrivatePickersYear",e)}const Xs=ha("PrivatePickersYear",["root","modeMobile","modeDesktop","yearButton","disabled","selected"]),Js=(0,Ie.ZP)("div")((({ownerState:e})=>Xo({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==e?void 0:e.wrapperVariant)&&{flexBasis:"25%"}))),Qs=(0,Ie.ZP)("button")((({theme:e})=>Xo({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:(0,mt.Fq)(e.palette.action.active,e.palette.action.hoverOpacity)},[`&.${Xs.disabled}`]:{color:e.palette.text.secondary},[`&.${Xs.selected}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:focus, &:hover":{backgroundColor:e.palette.primary.dark}}}))),_s=r.forwardRef((function(e,t){const{autoFocus:n,className:o,children:a,disabled:i,onClick:s,onKeyDown:l,selected:c,value:u}=e,d=r.useRef(null),p=(0,Mt.Z)(d,t),m=Xo({},e,{wrapperVariant:r.useContext(Qa)}),h=(e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:o}=e;return fa({root:["root",t&&`mode${(0,Te.Z)(t)}`],yearButton:["yearButton",n&&"disabled",r&&"selected"]},Ks,o)})(m);return r.useEffect((()=>{n&&d.current.focus()}),[n]),(0,Ne.jsx)(Js,{className:(0,Se.Z)(h.root,o),ownerState:m,children:(0,Ne.jsx)(Qs,{ref:p,disabled:i,type:"button",tabIndex:c?0:-1,onClick:e=>s(e,u),onKeyDown:e=>l(e,u),className:h.yearButton,ownerState:m,children:a})})})),$s=_s;function el(e){return ma("MuiYearPicker",e)}ha("MuiYearPicker",["root"]);const tl=(0,Ie.ZP)("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",margin:"0 4px"}),nl=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiYearPicker"}),{autoFocus:o,className:a,date:i,disabled:s,disableFuture:l,disablePast:c,isDateDisabled:u,maxDate:d,minDate:p,onChange:m,onFocusedDayChange:h,onYearChange:f,readOnly:g,shouldDisableYear:b}=n,v=n,y=(e=>{const{classes:t}=e;return fa({root:["root"]},el,t)})(v),w=ia(),k=(0,ur.Z)(),C=aa(),x=i||w,S=C.getYear(x),E=r.useContext(Qa),P=r.useRef(null),[T,A]=r.useState(S),R=(e,t,n="finish")=>{if(g)return;const r=e=>{m(e,n),h&&h(e||w),f&&f(e)},o=C.setYear(x,t);u(o)?r(is({utils:C,date:o,minDate:p,maxDate:d,disablePast:Boolean(c),disableFuture:Boolean(l),shouldDisableDate:u})||w):r(o)},O=r.useCallback((e=>{u(C.setYear(x,e))||A(e)}),[x,u,C]),M="desktop"===E?4:3,B=(e,t)=>{switch(e.key){case"ArrowUp":O(t-M),e.preventDefault();break;case"ArrowDown":O(t+M),e.preventDefault();break;case"ArrowLeft":O(t+("ltr"===k.direction?-1:1)),e.preventDefault();break;case"ArrowRight":O(t+("ltr"===k.direction?1:-1)),e.preventDefault()}};return(0,Ne.jsx)(tl,{ref:t,className:(0,Se.Z)(y.root,a),ownerState:v,children:C.getYearRange(p,d).map((e=>{const t=C.getYear(e),n=t===S;return(0,Ne.jsx)($s,{selected:n,value:t,onClick:R,onKeyDown:B,autoFocus:o&&t===T,ref:n?P:void 0,disabled:s||c&&C.isBeforeYear(e,w)||l&&C.isAfterYear(e,w)||b&&b(e),children:C.format(e,"year")},C.format(e,"year"))}))})})),rl=nl,ol=(0,Ie.ZP)("div")({overflowX:"hidden",width:320,maxHeight:358,display:"flex",flexDirection:"column",margin:"0 auto"});var al;const il=["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","loading","maxDate","minDate","onChange","onMonthChange","reduceAnimations","renderLoading","shouldDisableDate","shouldDisableYear","view","views","openTo","className"];function sl(e){return ma("MuiCalendarPicker",e)}ha("MuiCalendarPicker",["root","viewTransitionContainer"]);const ll=(0,Ie.ZP)(ol,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),cl=(0,Ie.ZP)(ps,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({overflowY:"auto"}),ul="undefined"!=typeof navigator&&/(android)/i.test(navigator.userAgent),dl=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiCalendarPicker"}),{autoFocus:o,onViewChange:a,date:i,disableFuture:s=!1,disablePast:l=!1,defaultCalendarMonth:c,loading:u=!1,maxDate:d,minDate:p,onChange:m,onMonthChange:h,reduceAnimations:f=ul,renderLoading:g=(()=>al||(al=(0,Ne.jsx)("span",{children:"..."}))),shouldDisableDate:b,shouldDisableYear:v,view:y,views:w=["year","day"],openTo:k="day",className:C}=n,x=Jo(n,il),S=aa(),E=oa().defaultDates,P=null!=p?p:E.minDate,T=null!=d?d:E.maxDate,{openView:A,setOpenView:R}=si({view:y,views:w,openTo:k,onChange:m,onViewChange:a}),{calendarState:O,changeFocusedDay:M,changeMonth:B,isDateDisabled:I,handleChangeMonth:Z,onMonthSwitchingAnimationEnd:L}=ls({date:i,defaultCalendarMonth:c,reduceAnimations:f,onMonthChange:h,minDate:P,maxDate:T,shouldDisableDate:b,disablePast:l,disableFuture:s});r.useEffect((()=>{if(i&&I(i)){const e=is({utils:S,date:i,minDate:P,maxDate:T,disablePast:l,disableFuture:s,shouldDisableDate:I});m(e,"partial")}}),[]),r.useEffect((()=>{i&&B(i)}),[i]);const D=n,j=(e=>{const{classes:t}=e;return fa({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},sl,t)})(D),F={className:C,date:i,disabled:x.disabled,disablePast:l,disableFuture:s,onChange:m,minDate:P,maxDate:T,onMonthChange:h,readOnly:x.readOnly};return(0,Ne.jsxs)(ll,{ref:t,className:(0,Se.Z)(j.root,C),ownerState:D,children:[(0,Ne.jsx)(qs,Xo({},x,{views:w,openView:A,currentMonth:O.currentMonth,onViewChange:R,onMonthChange:(e,t)=>Z({newMonth:e,direction:t}),minDate:P,maxDate:T,disablePast:l,disableFuture:s,reduceAnimations:f})),(0,Ne.jsx)(cl,{reduceAnimations:f,className:j.viewTransitionContainer,transKey:A,ownerState:D,children:(0,Ne.jsxs)("div",{children:["year"===A&&(0,Ne.jsx)(rl,Xo({},x,{autoFocus:o,date:i,onChange:m,minDate:P,maxDate:T,disableFuture:s,disablePast:l,isDateDisabled:I,shouldDisableYear:v,onFocusedDayChange:M})),"month"===A&&(0,Ne.jsx)(as,Xo({},F)),"day"===A&&(0,Ne.jsx)(zs,Xo({},x,O,{autoFocus:o,onMonthSwitchingAnimationEnd:L,onFocusedDayChange:M,reduceAnimations:f,date:i,onChange:m,isDateDisabled:I,loading:u,renderLoading:g}))]})})]})})),pl=dl;function ml({acceptRegex:e=/[\d]/gi,disabled:t,disableMaskedInput:n,ignoreInvalidInputs:o,inputFormat:a,inputProps:i,label:s,mask:l,onChange:c,rawValue:u,readOnly:d,rifmFormatter:p,TextFieldProps:m,validationError:h}){const f=aa(),[g,b]=r.useState(!1),v=f.getFormatHelperText(a),y=r.useMemo((()=>!(!l||n)&&function(e,t,n,r){const o=r.formatByString(r.date("2019-01-01T09:00:00.000"),t).replace(n,"_"),a=r.formatByString(r.date("2019-11-21T22:30:00.000"),t).replace(n,"_")===e&&o===e;return!a&&r.lib,a}(l,a,e,f)),[e,n,a,l,f]),w=r.useMemo((()=>y&&l?((e,t)=>n=>n.split("").map(((r,o)=>{if(t.lastIndex=0,o>e.length-1)return"";const a=e[o],i=e[o+1],s=t.test(r)?r:"",l="_"===a?s:a+s;return o===n.length-1&&i&&"_"!==i?l?l+i:"":l})).join(""))(l,e):e=>e),[e,l,y]),k=na(f,u,a),[C,x]=r.useState(k),S=r.useRef(k);r.useEffect((()=>{S.current=k}),[k]);const E=!g,P=S.current!==k;E&&P&&(null===u||f.isValid(u))&&k!==C&&x(k);const T=e=>{const t=""===e||e===l?"":e;x(t);const n=null===t?null:f.parse(t,a);o&&!f.isValid(n)||c(n,t||void 0)},A=(e=>{const[,t]=(0,r.useReducer)((e=>e+1),0),n=(0,r.useRef)(null),{replace:o,append:a}=e,i=o?o(e.format(e.value)):e.format(e.value),s=(0,r.useRef)(!1);return(0,r.useLayoutEffect)((()=>{if(null==n.current)return;let[r,s,l,c,u]=n.current;n.current=null;const d=c&&u,p=r.slice(s.selectionStart).search(e.accept||/\d/g),m=-1!==p?p:0,h=t=>(t.match(e.accept||/\d/g)||[]).join(""),f=h(r.substr(0,s.selectionStart)),g=e=>{let t=0,n=0;for(let r=0;r!==f.length;++r){let o=e.indexOf(f[r],t)+1,a=h(e).indexOf(f[r],n)+1;a-n>1&&(o=t,a=n),n=Math.max(a,n),t=Math.max(t,o)}return t};if(!0===e.mask&&l&&!u){let e=g(r);const t=h(r.substr(e))[0];e=r.indexOf(t,e),r=`${r.substr(0,e)}${r.substr(e+1)}`}let b=e.format(r);null==a||s.selectionStart!==r.length||u||(l?b=a(b):""===h(b.slice(-1))&&(b=b.slice(0,-1)));const v=o?o(b):b;return i===v?t():e.onChange(v),()=>{let t=g(b);if(null!=e.mask&&(l||c&&!d))for(;b[t]&&""===h(b[t]);)t+=1;s.selectionStart=s.selectionEnd=t+(d?1+m:0)}})),(0,r.useEffect)((()=>{const e=e=>{"Delete"===e.code&&(s.current=!0)},t=e=>{"Delete"===e.code&&(s.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),{value:null!=n.current?n.current[0]:i,onChange:r=>{const o=r.target.value;n.current=[o,r.target,o.length>i.length,s.current,i===e.format(o)],t()}}})({value:C,onChange:T,format:p||w});return Xo({label:s,disabled:t,error:h,inputProps:Xo({},y?A:{value:C,onChange:e=>{T(e.currentTarget.value)}},{disabled:t,placeholder:v,readOnly:d,type:y?"tel":"text"},i,{onFocus:ja((()=>{b(!0)}),null==i?void 0:i.onFocus),onBlur:ja((()=>{b(!1)}),null==i?void 0:i.onBlur)})},m)}const hl=["components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],fl=r.forwardRef((function(e,t){const{components:n={},disableOpenPicker:r,getOpenDialogAriaText:o=ta,InputAdornmentProps:a,InputProps:i,inputRef:s,openPicker:l,OpenPickerButtonProps:c,renderInput:u}=e,d=Jo(e,hl),p=aa(),m=ml(d),h=(null==a?void 0:a.position)||"end",f=n.OpenPickerIcon||Sa;return u(Xo({ref:t,inputRef:s},m,{InputProps:Xo({},i,{[`${h}Adornment`]:r?void 0:(0,Ne.jsx)(Qr,Xo({position:h},a,{children:(0,Ne.jsx)(dt.Z,Xo({edge:h,disabled:d.disabled||d.readOnly,"aria-label":o(d.rawValue,p)},c,{onClick:l,children:(0,Ne.jsx)(f,{})}))}))})}))}));function gl(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const bl=["autoFocus","className","date","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],vl=(0,Ie.ZP)("div")({padding:"16px 24px"}),yl=(0,Ie.ZP)("div")((({ownerState:e})=>Xo({display:"flex",flexDirection:"column"},e.isLandscape&&{flexDirection:"row"}))),wl={fullWidth:!0},kl=e=>"year"===e||"month"===e||"day"===e,Cl=function(e){const{autoFocus:t,date:n,DateInputProps:o,isMobileKeyboardViewOpen:a,onDateChange:i,onViewChange:s,openTo:l,orientation:c,showToolbar:u,toggleMobileKeyboardView:d,ToolbarComponent:p=(()=>null),toolbarFormat:m,toolbarPlaceholder:h,toolbarTitle:f,views:g}=e,b=Jo(e,bl),v=function(e,t){const[n,o]=r.useState(gl);return ui((()=>{const e=()=>{o(gl())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!Za(e,["hours","minutes","seconds"])&&"landscape"===(t||n)}(g,c),y=r.useContext(Qa),w=void 0===u?"desktop"!==y:u,k=r.useCallback(((e,t)=>{i(e,y,t)}),[i,y]),C=r.useCallback((e=>{a&&d(),s&&s(e)}),[a,s,d]),{openView:x,nextView:S,previousView:E,setOpenView:P,handleChangeAndOpenNext:T}=si({view:void 0,views:g,openTo:l,onChange:k,onViewChange:C});return(0,Ne.jsxs)(yl,{ownerState:{isLandscape:v},children:[w&&(0,Ne.jsx)(p,Xo({},b,{views:g,isLandscape:v,date:n,onChange:k,setOpenView:P,openView:x,toolbarTitle:f,toolbarFormat:m,toolbarPlaceholder:h,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:d})),(0,Ne.jsx)(ol,{children:a?(0,Ne.jsx)(vl,{children:(0,Ne.jsx)(fl,Xo({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:wl}))}):(0,Ne.jsxs)(r.Fragment,{children:[kl(x)&&(0,Ne.jsx)(pl,Xo({autoFocus:t,date:n,onViewChange:P,onChange:T,view:x,views:g.filter(kl)},b)),(A=x,("hours"===A||"minutes"===A||"seconds"===A)&&(0,Ne.jsx)(Ji,Xo({},b,{autoFocus:t,date:n,view:x,onChange:T,openNextView:()=>P(S),openPreviousView:()=>P(E),nextViewAvailable:!S,previousViewAvailable:!E||kl(E),showViewSwitcher:"desktop"===y})))]})})]});var A};function xl(e,t){return e===t}function Sl(e){return function(e,t,n=xl){const{value:o,onError:a}=e,i=aa(),s=r.useRef(null),l=t(i,o,e);return r.useEffect((()=>{a&&!n(l,s.current)&&a(l,o),s.current=l}),[n,a,s,l,o]),l}(e,Ha,xl)}function El(e,t){const{disableCloseOnSelect:n,onAccept:o,onChange:a,value:i}=e,s=aa(),{isOpen:l,setIsOpen:c}=function({open:e,onOpen:t,onClose:n}){const o=r.useRef("boolean"==typeof e).current,[a,i]=r.useState(!1);return r.useEffect((()=>{if(o){if("boolean"!=typeof e)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}}),[o,e]),{isOpen:a,setIsOpen:r.useCallback((e=>{o||i(e),e&&t&&t(),!e&&n&&n()}),[o,t,n])}}(e);function u(e){return{committed:e,draft:e}}const d=t.parseInput(s,i),[p,m]=r.useReducer(((e,t)=>{switch(t.type){case"reset":return u(t.payload);case"update":return Xo({},e,{draft:t.payload});default:return e}}),d,u);t.areValuesEqual(s,p.committed,d)||m({type:"reset",payload:d});const[h,f]=r.useState(p.committed),[g,b]=r.useState(!1),v=r.useCallback(((e,t)=>{a(e),t&&(c(!1),f(e),o&&o(e))}),[o,a,c]),y=r.useMemo((()=>({open:l,onClear:()=>v(t.emptyValue,!0),onAccept:()=>v(p.draft,!0),onDismiss:()=>v(h,!0),onSetToday:()=>{const e=s.date();m({type:"update",payload:e}),v(e,!n)}})),[v,n,l,s,p.draft,t.emptyValue,h]),w={pickerProps:r.useMemo((()=>({date:p.draft,isMobileKeyboardViewOpen:g,toggleMobileKeyboardView:()=>b(!g),onDateChange:(e,t,r="partial")=>{m({type:"update",payload:e}),"partial"===r&&v(e,!1),"finish"===r&&v(e,!(null!=n?n:"mobile"===t))}})),[v,n,g,p.draft]),inputProps:r.useMemo((()=>({onChange:a,open:l,rawValue:i,openPicker:()=>c(!0)})),[a,l,i,c]),wrapperProps:y};return r.useDebugValue(w,(()=>({MuiPickerState:{pickerDraft:p,other:w}}))),w}const Pl=["onChange","PopperProps","ToolbarComponent","TransitionComponent","value"],Tl={emptyValue:null,parseInput:ss,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},Al=r.forwardRef((function(e,t){const n=ca(e,"MuiDesktopTimePicker"),r=null!==Sl(n),{pickerProps:o,inputProps:a,wrapperProps:i}=El(n,Tl),{PopperProps:s,ToolbarComponent:l=Ja,TransitionComponent:c}=n,u=Jo(n,Pl),d=Xo({},a,u,{ref:t,validationError:r});return(0,Ne.jsx)(ii,Xo({},i,{DateInputProps:d,KeyboardDateInputComponent:fl,PopperProps:s,TransitionComponent:c,children:(0,Ne.jsx)(Cl,Xo({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:l,DateInputProps:d},u))}))})),Rl=(0,Ie.ZP)(Ke)({[`& .${je.container}`]:{outline:0},[`& .${je.paper}`]:{outline:0,minWidth:320}}),Ol=(0,Ie.ZP)(At)({"&:first-of-type":{padding:0}}),Ml=(0,Ie.ZP)(Wt)((({ownerState:e})=>Xo({},(e.clearable||e.showTodayButton)&&{justifyContent:"flex-start","& > *:first-of-type":{marginRight:"auto"}}))),Bl=e=>{const{cancelText:t="Cancel",children:n,clearable:r=!1,clearText:o="Clear",DialogProps:a={},okText:i="OK",onAccept:s,onClear:l,onDismiss:c,onSetToday:u,open:d,showTodayButton:p=!1,todayText:m="Today"}=e,h=e;return(0,Ne.jsxs)(Rl,Xo({open:d,onClose:c},a,{children:[(0,Ne.jsx)(Ol,{children:n}),(0,Ne.jsxs)(Ml,{ownerState:h,children:[r&&(0,Ne.jsx)(pt.Z,{onClick:l,children:o}),p&&(0,Ne.jsx)(pt.Z,{onClick:u,children:m}),t&&(0,Ne.jsx)(pt.Z,{onClick:c,children:t}),i&&(0,Ne.jsx)(pt.Z,{onClick:s,children:i})]})]}))},Il=["cancelText","children","clearable","clearText","DateInputProps","DialogProps","okText","onAccept","onClear","onDismiss","onSetToday","open","PureDateInputComponent","showTodayButton","todayText"],Zl=function(e){const{cancelText:t,children:n,clearable:r,clearText:o,DateInputProps:a,DialogProps:i,okText:s,onAccept:l,onClear:c,onDismiss:u,onSetToday:d,open:p,PureDateInputComponent:m,showTodayButton:h,todayText:f}=e,g=Jo(e,Il);return(0,Ne.jsxs)(Qa.Provider,{value:"mobile",children:[(0,Ne.jsx)(m,Xo({},g,a)),(0,Ne.jsx)(Bl,{cancelText:t,clearable:r,clearText:o,DialogProps:i,okText:s,onAccept:l,onClear:c,onDismiss:u,onSetToday:d,open:p,showTodayButton:h,todayText:f,children:n})]})},Ll=r.forwardRef((function(e,t){const{disabled:n,getOpenDialogAriaText:o=ta,inputFormat:a,InputProps:i,inputRef:s,label:l,openPicker:c,rawValue:u,renderInput:d,TextFieldProps:p={},validationError:m}=e,h=aa(),f=r.useMemo((()=>Xo({},i,{readOnly:!0})),[i]),g=na(h,u,a);return d(Xo({label:l,disabled:n,ref:t,inputRef:s,error:m,InputProps:f,inputProps:Xo({disabled:n,readOnly:!0,"aria-readonly":!0,"aria-label":o(u,h),value:g},!e.readOnly&&{onClick:c},{onKeyDown:La(c)})},p))}));Ll.propTypes={getOpenDialogAriaText:S().func,renderInput:S().func.isRequired};const Dl=["ToolbarComponent","value","onChange"],jl={emptyValue:null,parseInput:ss,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},Fl=r.forwardRef((function(e,t){const n=ca(e,"MuiMobileTimePicker"),r=null!==Sl(n),{pickerProps:o,inputProps:a,wrapperProps:i}=El(n,jl),{ToolbarComponent:s=Ja}=n,l=Jo(n,Dl),c=Xo({},a,l,{ref:t,validationError:r});return(0,Ne.jsx)(Zl,Xo({},l,i,{DateInputProps:c,PureDateInputComponent:Ll,children:(0,Ne.jsx)(Cl,Xo({},o,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:s,DateInputProps:c},l))}))})),zl=["cancelText","clearable","clearText","desktopModeMediaQuery","DialogProps","okText","PopperProps","showTodayButton","todayText","TransitionComponent"],Nl=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiTimePicker"}),{cancelText:o,clearable:a,clearText:i,desktopModeMediaQuery:s="@media (pointer: fine)",DialogProps:l,okText:c,PopperProps:u,showTodayButton:d,todayText:p,TransitionComponent:m}=n,h=Jo(n,zl),f=function(e,t={}){const n=(0,Qo.Z)(),o="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:a=!1,matchMedia:i=(o?window.matchMedia:null),noSsr:s=!1,ssrMatchMedia:l=null}=(0,_o.Z)({name:"MuiUseMediaQuery",props:t,theme:n});let c="function"==typeof e?e(n):e;c=c.replace(/^@media( ?)/m,"");const[u,d]=r.useState((()=>s&&o?i(c).matches:l?l(c).matches:a));return(0,$o.Z)((()=>{let e=!0;if(!o)return;const t=i(c),n=()=>{e&&d(t.matches)};return n(),t.addListener(n),()=>{e=!1,t.removeListener(n)}}),[c,i,o]),u}(s);return f?(0,Ne.jsx)(Al,Xo({ref:t,PopperProps:u,TransitionComponent:m},h)):(0,Ne.jsx)(Fl,Xo({ref:t,cancelText:o,clearable:a,clearText:i,DialogProps:l,okText:c,showTodayButton:d,todayText:p},h))})),Hl=Nl;function Vl(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Wl(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Ul(e){Wl(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Yl(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function Gl(e,t){Wl(2,arguments);var n=Ul(e).getTime(),r=Vl(t);return new Date(n+r)}var ql=36e5;function Kl(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var i=a.getDate();return o>=i?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function Xl(e,t){Wl(2,arguments);var n=Vl(t);return Kl(e,12*n)}function Jl(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getFullYear()-r.getFullYear()}function Ql(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function _l(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t),o=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return 12*o+a}function $l(e){Wl(1,arguments);var t=Ul(e);return t.setHours(23,59,59,999),t}function ec(e){Wl(1,arguments);var t=Ul(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function tc(e){Wl(1,arguments);var t=Ul(e);return $l(t).getTime()===ec(t).getTime()}function nc(e,t){Wl(2,arguments);var n,r=Ul(e),o=Ul(t),a=Ql(r,o),i=Math.abs(_l(r,o));if(i<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-a*i);var s=Ql(r,o)===-a;tc(Ul(e))&&1===i&&1===Ql(e,o)&&(s=!1),n=a*(i-Number(s))}return 0===n?0:n}var rc={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function oc(e){return e?rc[e]:rc.trunc}function ac(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ic(e){Wl(1,arguments);var t=Ul(e);return t.setHours(0,0,0,0),t}var sc=864e5;function lc(e,t){Wl(2,arguments);var n=ic(e),r=ic(t),o=n.getTime()-ac(n),a=r.getTime()-ac(r);return Math.round((o-a)/sc)}function cc(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function uc(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t),o=cc(n,r),a=Math.abs(lc(n,r));n.setDate(n.getDate()-o*a);var i=Number(cc(n,r)===-o),s=o*(a-i);return 0===s?0:s}Math.pow(10,8);var dc=6e4,pc=36e5;function mc(e,t){return Wl(2,arguments),Ul(e).getTime()-Ul(t).getTime()}function hc(e,t){Wl(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:Vl(o),i=null==n.weekStartsOn?a:Vl(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Ul(e),l=s.getDay(),c=6+(l0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}const wc={date:yc({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:yc({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:yc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var kc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Cc(e){return function(t,n){var r,o=n||{};if("formatting"===(o.context?String(o.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,i=o.width?String(o.width):a;r=e.formattingValues[i]||e.formattingValues[a]}else{var s=e.defaultWidth,l=o.width?String(o.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const xc={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Cc({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Cc({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Cc({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Cc({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Cc({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Sc(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var i,s=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Pc(l,(function(e){return e.test(s)})):Ec(l,(function(e){return e.test(s)}));i=e.valueCallback?e.valueCallback(c):c,i=n.valueCallback?n.valueCallback(i):i;var u=t.slice(s.length);return{value:i,rest:u}}}function Ec(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Pc(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Tc.matchPattern);if(!n)return null;var r=n[0],o=e.match(Tc.parsePattern);if(!o)return null;var a=Tc.valueCallback?Tc.valueCallback(o[0]):o[0];a=t.valueCallback?t.valueCallback(a):a;var i=e.slice(r.length);return{value:a,rest:i}}),era:Sc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Sc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Sc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Sc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Sc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Rc={code:"en-US",formatDistance:function(e,t,n){var r,o=vc[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:wc,formatRelative:function(e,t,n,r){return kc[e]},localize:xc,match:Ac,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Oc(e,t){Wl(2,arguments);var n=Vl(t);return Gl(e,-n)}var Mc=864e5;function Bc(e){Wl(1,arguments);var t=1,n=Ul(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Zc(e){Wl(1,arguments);var t=Ic(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=Bc(n);return r}var Lc=6048e5;function Dc(e){Wl(1,arguments);var t=Ul(e),n=Bc(t).getTime()-Zc(t).getTime();return Math.round(n/Lc)+1}function jc(e,t){Wl(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:Vl(o),i=null==n.weekStartsOn?a:Vl(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Ul(e),l=s.getUTCDay(),c=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,l),c.setUTCHours(0,0,0,0);var u=jc(c,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var p=jc(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function zc(e,t){Wl(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:Vl(o),i=null==n.firstWeekContainsDate?a:Vl(n.firstWeekContainsDate),s=Fc(e,t),l=new Date(0);l.setUTCFullYear(s,0,i),l.setUTCHours(0,0,0,0);var c=jc(l,t);return c}var Nc=6048e5;function Hc(e,t){Wl(1,arguments);var n=Ul(e),r=jc(n,t).getTime()-zc(n,t).getTime();return Math.round(r/Nc)+1}function Vc(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length0?n:1-n;return Vc("yy"===t?r%100:r,t.length)},Uc=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Vc(n+1,2)},Yc=function(e,t){return Vc(e.getUTCDate(),t.length)},Gc=function(e,t){return Vc(e.getUTCHours()%12||12,t.length)},qc=function(e,t){return Vc(e.getUTCHours(),t.length)},Kc=function(e,t){return Vc(e.getUTCMinutes(),t.length)},Xc=function(e,t){return Vc(e.getUTCSeconds(),t.length)},Jc=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Vc(Math.floor(r*Math.pow(10,n-3)),t.length)};function Qc(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+Vc(a,2)}function _c(e,t){return e%60==0?(e>0?"-":"+")+Vc(Math.abs(e)/60,2):$c(e,t)}function $c(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+Vc(Math.floor(o/60),2)+n+Vc(o%60,2)}const eu={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Wc(e,t)},Y:function(e,t,n,r){var o=Fc(e,r),a=o>0?o:1-o;return"YY"===t?Vc(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Vc(a,t.length)},R:function(e,t){return Vc(Ic(e),t.length)},u:function(e,t){return Vc(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Vc(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Vc(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Uc(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Vc(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=Hc(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Vc(o,t.length)},I:function(e,t,n){var r=Dc(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Vc(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Yc(e,t)},D:function(e,t,n){var r=function(e){Wl(1,arguments);var t=Ul(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Mc)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Vc(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Vc(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Vc(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Vc(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Gc(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):qc(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Vc(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Vc(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Kc(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Xc(e,t)},S:function(e,t){return Jc(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return _c(o);case"XXXX":case"XX":return $c(o);default:return $c(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _c(o);case"xxxx":case"xx":return $c(o);default:return $c(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qc(o,":");default:return"GMT"+$c(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qc(o,":");default:return"GMT"+$c(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return Vc(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return Vc((r._originalDate||e).getTime(),t.length)}};function tu(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function nu(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}const ru={p:nu,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return tu(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",tu(o,t)).replace("{{time}}",nu(a,t))}};var ou=["D","DD"],au=["YY","YYYY"];function iu(e){return-1!==ou.indexOf(e)}function su(e){return-1!==au.indexOf(e)}function lu(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var cu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,uu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,du=/^'([^]*?)'?$/,pu=/''/g,mu=/[a-zA-Z]/;function hu(e){return e.match(du)[1].replace(pu,"'")}function fu(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getTime()>r.getTime()}function gu(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getTime()=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Ul(e),c=Vl(t),u=l.getUTCDay(),d=c%7,p=(d+7)%7,m=(p0,o=r?t:1-t;if(o<=50)n=e||100;else{var a=o+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}var Qu=[31,28,31,30,31,30,31,31,30,31,30,31],_u=[31,29,31,30,31,30,31,31,30,31,30,31];function $u(e){return e%400==0||e%4==0&&e%100!=0}var ed={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return qu(4,e,o);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return qu(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=e.getUTCFullYear();if(n.isTwoDigitYear){var a=Ju(n.year,o);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var o=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return qu(4,e,o);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:o});default:return qu(t.length,e,o)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var o=Fc(e,r);if(n.isTwoDigitYear){var a=Ju(n.year,o);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),jc(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),jc(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Ku("R"===t?4:t.length,e)},set:function(e,t,n,r){var o=new Date(0);return o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0),Bc(o)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Ku("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return qu(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return qu(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"M":return Uu(wu,e,o);case"MM":return qu(2,e,o);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var o=function(e){return e-1};switch(t){case"L":return Uu(wu,e,o);case"LL":return qu(2,e,o);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:o});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return Uu(xu,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return jc(function(e,t,n){Wl(2,arguments);var r=Ul(e),o=Vl(t),a=Hc(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return Uu(xu,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Bc(function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t),o=Dc(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return Uu(ku,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return qu(t.length,e)}},validate:function(e,t,n){var r=$u(e.getUTCFullYear()),o=e.getUTCMonth();return r?t>=1&&t<=_u[o]:t>=1&&t<=Qu[o]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return Uu(Cu,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return qu(t.length,e)}},validate:function(e,t,n){return $u(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=yu(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return qu(t.length,e,o);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=yu(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return qu(t.length,e,o);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:o});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=yu(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var o=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return qu(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:o});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o});default:return n.day(e,{width:"wide",context:"formatting",valueCallback:o})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:o})||n.day(e,{width:"short",context:"formatting",valueCallback:o})||n.day(e,{width:"narrow",context:"formatting",valueCallback:o})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return e=function(e,t){Wl(2,arguments);var n=Vl(t);n%7==0&&(n-=7);var r=1,o=Ul(e),a=o.getUTCDay(),i=((n%7+7)%7=1&&t<=12},set:function(e,t,n,r){var o=e.getUTCHours()>=12;return o&&n<12?e.setUTCHours(n+12,0,0,0):o||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return Uu(Su,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return Uu(Pu,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return Uu(Eu,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var o=n<=24?n%24:n;return e.setUTCHours(o,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return Uu(Au,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return Uu(Ru,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return qu(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return qu(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return Yu(zu,e);case"XX":return Yu(Nu,e);case"XXXX":return Yu(Hu,e);case"XXXXX":return Yu(Wu,e);default:return Yu(Vu,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return Yu(zu,e);case"xx":return Yu(Nu,e);case"xxxx":return Yu(Hu,e);case"xxxxx":return Yu(Wu,e);default:return Yu(Vu,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return Gu(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return Gu(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};const td=ed;var nd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,od=/^'([^]*?)'?$/,ad=/''/g,id=/\S/,sd=/[a-zA-Z]/;function ld(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function cd(e){return e.match(od)[1].replace(ad,"'")}function ud(e){Wl(1,arguments);var t=Ul(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function dd(e){Wl(1,arguments);var t=Ul(e),n=t.getDay();return n}function pd(e){Wl(1,arguments);var t=Ul(e);return t.setDate(1),t.setHours(0,0,0,0),t}function md(e,t){Wl(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:Vl(o),i=null==n.weekStartsOn?a:Vl(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Ul(e),l=s.getDay(),c=(l2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],fd.timeZoneDelimiter.test(n.date)&&(n.date=e.split(fd.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=fd.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function wd(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function kd(e,t){if(null===t)return new Date(NaN);var n=e.match(gd);if(!n)return new Date(NaN);var r=!!n[4],o=Cd(n[1]),a=Cd(n[2])-1,i=Cd(n[3]),s=Cd(n[4]),l=Cd(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Pd[t]||(Td(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Td(e)?366:365)}(t,o)?(c.setUTCFullYear(t,a,Math.max(o,i)),c):new Date(NaN)}function Cd(e){return e?parseInt(e):1}function xd(e){var t=e.match(bd);if(!t)return NaN;var n=Sd(t[1]),r=Sd(t[2]),o=Sd(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?n*pc+r*dc+1e3*o:NaN}function Sd(e){return e&&parseFloat(e.replace(",","."))||0}function Ed(e){if("Z"===e)return 0;var t=e.match(vd);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(r*pc+o*dc):NaN}var Pd=[31,null,31,30,31,30,31,31,30,31,30,31];function Td(e){return e%400==0||e%4==0&&e%100!=0}var Ad=n(5209),Rd=n.n(Ad),Od={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},Md=function(e){var t=this,n=void 0===e?{}:e,r=n.locale,o=n.formats;this.lib="date-fns",this.is12HourCycleInCurrentLocale=function(){return!t.locale||/a/.test(t.locale.formatLong.time())},this.getFormatHelperText=function(e){var n=t.locale||Rc;return e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Rd()[t])(e,n.formatLong,{}):e})).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},this.parseISO=function(e){return function(e,t){Wl(1,arguments);var n=t||{},r=null==n.additionalDigits?2:Vl(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,a=yd(e);if(a.date){var i=wd(a.date,r);o=kd(i.restDateString,i.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var s,l=o.getTime(),c=0;if(a.time&&(c=xd(a.time),isNaN(c)))return new Date(NaN);if(!a.timezone){var u=new Date(l+c),d=new Date(0);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return s=Ed(a.timezone),isNaN(s)?new Date(NaN):new Date(l+c+s)}(e)},this.toISO=function(e){return function(e,t){Wl(1,arguments);var n=Ul(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var r=null!=t&&t.format?String(t.format):"extended",o=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",i="",s="extended"===r?"-":"",l="extended"===r?":":"";if("time"!==o){var c=Vc(n.getDate(),2),u=Vc(n.getMonth()+1,2),d=Vc(n.getFullYear(),4);a="".concat(d).concat(s).concat(u).concat(s).concat(c)}if("date"!==o){var p=n.getTimezoneOffset();if(0!==p){var m=Math.abs(p),h=Vc(Math.floor(m/60),2),f=Vc(m%60,2);i="".concat(p<0?"+":"-").concat(h,":").concat(f)}else i="Z";var g=""===a?"":"T",b=[Vc(n.getHours(),2),Vc(n.getMinutes(),2),Vc(n.getSeconds(),2)].join(l);a="".concat(a).concat(g).concat(b).concat(i)}return a}(e,{format:"extended"})},this.getCurrentLocaleCode=function(){var e;return(null===(e=t.locale)||void 0===e?void 0:e.code)||"en-US"},this.addSeconds=function(e,t){return function(e,t){Wl(2,arguments);var n=Vl(t);return Gl(e,1e3*n)}(e,t)},this.addMinutes=function(e,t){return function(e,t){Wl(2,arguments);var n=Vl(t);return Gl(e,6e4*n)}(e,t)},this.addHours=function(e,t){return function(e,t){Wl(2,arguments);var n=Vl(t);return Gl(e,n*ql)}(e,t)},this.addDays=function(e,t){return Yl(e,t)},this.addWeeks=function(e,t){return function(e,t){Wl(2,arguments);var n=Vl(t);return Yl(e,7*n)}(e,t)},this.addMonths=function(e,t){return Kl(e,t)},this.isValid=function(e){return bc(t.date(e))},this.getDiff=function(e,n,r){switch(r){case"years":return function(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t),o=Ql(n,r),a=Math.abs(Jl(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Ql(n,r)===-o,s=o*(a-Number(i));return 0===s?0:s}(e,t.date(n));case"quarters":return function(e,t,n){Wl(2,arguments);var r=nc(e,t)/3;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));case"months":return nc(e,t.date(n));case"weeks":return function(e,t,n){Wl(2,arguments);var r=uc(e,t)/7;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));case"days":return uc(e,t.date(n));case"hours":return function(e,t,n){Wl(2,arguments);var r=mc(e,t)/pc;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));case"minutes":return function(e,t,n){Wl(2,arguments);var r=mc(e,t)/dc;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));case"seconds":return function(e,t,n){Wl(2,arguments);var r=mc(e,t)/1e3;return oc(null==n?void 0:n.roundingMethod)(r)}(e,t.date(n));default:return mc(e,t.date(n))}},this.isAfter=function(e,t){return fu(e,t)},this.isBefore=function(e,t){return gu(e,t)},this.startOfDay=function(e){return ic(e)},this.endOfDay=function(e){return $l(e)},this.getHours=function(e){return function(e){return Wl(1,arguments),Ul(e).getHours()}(e)},this.setHours=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return n.setHours(r),n}(e,t)},this.setMinutes=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return n.setMinutes(r),n}(e,t)},this.getSeconds=function(e){return function(e){return Wl(1,arguments),Ul(e).getSeconds()}(e)},this.setSeconds=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return n.setSeconds(r),n}(e,t)},this.isSameDay=function(e,t){return function(e,t){Wl(2,arguments);var n=ic(e),r=ic(t);return n.getTime()===r.getTime()}(e,t)},this.isSameMonth=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t)},this.isSameYear=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getFullYear()===r.getFullYear()}(e,t)},this.isSameHour=function(e,t){return function(e,t){Wl(2,arguments);var n=bu(e),r=bu(t);return n.getTime()===r.getTime()}(e,t)},this.startOfMonth=function(e){return pd(e)},this.endOfMonth=function(e){return ec(e)},this.startOfWeek=function(e){return md(e,{locale:t.locale})},this.endOfWeek=function(e){return hc(e,{locale:t.locale})},this.getYear=function(e){return function(e){return Wl(1,arguments),Ul(e).getFullYear()}(e)},this.setYear=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(e,t)},this.date=function(e){return void 0===e?new Date:null===e?null:new Date(e)},this.toJsDate=function(e){return e},this.parse=function(e,n){return""===e?null:function(e,t,n,r){Wl(3,arguments);var o=String(e),a=String(t),i=r||{},s=i.locale||Rc;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,c=null==l?1:Vl(l),u=null==i.firstWeekContainsDate?c:Vl(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var d=s.options&&s.options.weekStartsOn,p=null==d?0:Vl(d),m=null==i.weekStartsOn?p:Vl(i.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===a)return""===o?Ul(n):new Date(NaN);var h,f={firstWeekContainsDate:u,weekStartsOn:m,locale:s},g=[{priority:10,subPriority:-1,set:ld,index:0}],b=a.match(rd).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ru[t])(e,s.formatLong,f):e})).join("").match(nd),v=[];for(h=0;h0&&id.test(o))return new Date(NaN);var T=g.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return g.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),A=Ul(n);if(isNaN(A))return new Date(NaN);var R=Oc(A,ac(A)),O={};for(h=0;h=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=a.options&&a.options.weekStartsOn,u=null==c?0:Vl(c),d=null==o.weekStartsOn?u:Vl(o.weekStartsOn);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var p=Ul(e);if(!bc(p))throw new RangeError("Invalid time value");var m=ac(p),h=Oc(p,m),f={firstWeekContainsDate:l,weekStartsOn:d,locale:a,_originalDate:p};return r.match(uu).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,ru[t])(e,a.formatLong,f):e})).join("").match(cu).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return hu(n);var i=eu[r];if(i)return!o.useAdditionalWeekYearTokens&&su(n)&&lu(n,t,e),!o.useAdditionalDayOfYearTokens&&iu(n)&&lu(n,t,e),i(h,n,a.localize,f);if(r.match(mu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(e,n,{locale:t.locale})},this.isEqual=function(e,t){return null===e&&null===t||function(e,t){Wl(2,arguments);var n=Ul(e),r=Ul(t);return n.getTime()===r.getTime()}(e,t)},this.isNull=function(e){return null===e},this.isAfterDay=function(e,t){return fu(e,$l(t))},this.isBeforeDay=function(e,t){return gu(e,ic(t))},this.isBeforeYear=function(e,t){return gu(e,hd(t))},this.isAfterYear=function(e,t){return fu(e,fc(t))},this.isWithinRange=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e).getTime(),r=Ul(t.start).getTime(),o=Ul(t.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return n>=r&&n<=o}(e,{start:t[0],end:t[1]})},this.formatNumber=function(e){return e},this.getMinutes=function(e){return e.getMinutes()},this.getMonth=function(e){return e.getMonth()},this.getDaysInMonth=function(e){return ud(e)},this.setMonth=function(e,t){return function(e,t){Wl(2,arguments);var n=Ul(e),r=Vl(t),o=n.getFullYear(),a=n.getDate(),i=new Date(0);i.setFullYear(o,r,15),i.setHours(0,0,0,0);var s=ud(i);return n.setMonth(r,Math.min(a,s)),n}(e,t)},this.getMeridiemText=function(e){return"am"===e?"AM":"PM"},this.getNextMonth=function(e){return Kl(e,1)},this.getPreviousMonth=function(e){return Kl(e,-1)},this.getMonthArray=function(e){for(var n=[hd(e)];n.length<12;){var r=n[n.length-1];n.push(t.getNextMonth(r))}return n},this.mergeDateAndTime=function(e,n){return t.setSeconds(t.setMinutes(t.setHours(e,t.getHours(n)),t.getMinutes(n)),t.getSeconds(n))},this.getWeekdays=function(){var e=new Date;return function(e,t){Wl(1,arguments);var n=e||{},r=Ul(n.start),o=Ul(n.end).getTime();if(!(r.getTime()<=o))throw new RangeError("Invalid interval");var a=[],i=r;i.setHours(0,0,0,0);var s=t&&"step"in t?Number(t.step):1;if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;i.getTime()<=o;)a.push(Ul(i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return a}({start:md(e,{locale:t.locale}),end:hc(e,{locale:t.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},this.getWeekArray=function(e){for(var n=md(pd(e),{locale:t.locale}),r=hc(ec(e),{locale:t.locale}),o=0,a=n,i=[],s=null;gu(a,r);){var l=Math.floor(o/7);i[l]=i[l]||[];var c=dd(a);s!==c&&(s=c,i[l].push(a),o+=1),a=Yl(a,1)}return i},this.getYearRange=function(e,t){for(var n=hd(e),r=fc(t),o=[],a=n;gu(a,r);)o.push(a),a=Xl(a,1);return o},this.locale=r,this.formats=Object.assign({},Od,o)};function Bd(){return Bd=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Zd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),r.createElement("path",{fill:"#338AF3",d:"M0 0h512v114H0zm0 228h512v114H0z"}),r.createElement("circle",{fill:"#FFDA44",stroke:"#d6ab00",strokeWidth:5,cx:256.5,cy:171,r:40}))},Ld=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M222.2 170.7c.3-.3.5-.6.8-.9-.2.3-.5.6-.8.9zM188 212.6l11 22.9 24.7-5.7-11 22.8 19.9 15.8-24.8 5.6.1 25.4-19.9-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-48.6-116l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9L332 136zm48.6-66.2l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm42.5 49.7l5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V150l-9.4-7.6-9.5 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zM398 166.5l4.1 12.7h13.3l-10.8 7.8 4.2 12.7-10.8-7.9-10.8 7.9 4.1-12.7-10.7-7.8h13.3z"}),r.createElement("path",{d:"M254.8 0v30.6l-45.1 25.1h45.1V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9H99v-48.6l-87.4 48.6H-1.2v-30.6L44 115H-1.2V55.7h59.1L-1.2 22.8V0h26.7L99 40.8V0h55.6v48.6L242.1 0z"})),r.createElement("path",{fill:"#D80027",d:"M142.8 0h-32v69.3h-112v32h112v69.4h32v-69.4h112v-32h-112z"}),r.createElement("path",{fill:"#0052B4",d:"M154.6 115l100.2 55.7v-15.8L183 115z"}),r.createElement("path",{fill:"#FFF",d:"M154.6 115l100.2 55.7v-15.8L183 115z"}),r.createElement("path",{d:"M154.6 115l100.2 55.7v-15.8L183 115zm-83.9 0l-71.9 39.9v15.8L99 115z",fill:"#D80027"}),r.createElement("path",{fill:"#0052B4",d:"M99 55.7L-1.2 0v15.7l71.9 40z"}),r.createElement("path",{fill:"#FFF",d:"M99 55.7L-1.2 0v15.7l71.9 40z"}),r.createElement("path",{d:"M99 55.7L-1.2 0v15.7l71.9 40zm84 0l71.8-40V0L154.6 55.7z",fill:"#D80027"}))},Dd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#ef3340",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#00b5e2",d:"M0 0h513v114H0z"}),r.createElement("path",{fill:"#509e2f",d:"M0 228h513v114H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M265.6 212.6c-23 0-41.6-18.6-41.6-41.6s18.6-41.6 41.6-41.6c7.2 0 13.9 1.8 19.8 5-9.2-9-21.9-14.6-35.8-14.6-28.3 0-51.2 22.9-51.2 51.2s22.9 51.2 51.2 51.2c13.9 0 26.6-5.6 35.8-14.6-5.9 3.2-12.6 5-19.8 5z"}),r.createElement("path",{d:"M297.6 142.2l5.5 15.5 14.9-7.1-7.1 14.9 15.5 5.5-15.5 5.5 7.1 14.9-14.9-7.1-5.5 15.5-5.5-15.5-14.9 7.1 7.1-14.9-15.5-5.5 15.5-5.5-7.1-14.9 14.9 7.1z"})))},jd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#d52b1e",d:"M0 0h513v114H0z"}),r.createElement("path",{fill:"#f9e300",d:"M0 114h513v114H0z"}),r.createElement("path",{fill:"#007934",d:"M0 228h513v114H0z"}))},Fd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#009b3a",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#fedf00",d:"M256.5 19.3l204.9 151.4L256.5 322 50.6 170.7z"}),r.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:80.4}),r.createElement("path",{fill:"#002776",d:"M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z"}))},zd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 0h142v342H0zm371 0h142v342H371zm-64.5 206l50.4-25.2-25.2-12.6V143l-50.4 25.2 25.2-50.4h-25.2L256.1 80l-25.2 37.8h-25.2l25.2 50.4-50.4-25.2v25.2l-25.2 12.6 50.4 25.2-12.6 25.2h50.4V269h25.2v-37.8h50.4z",fill:"red"}))},Nd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"red",d:"M0 85.337h513v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M356.174 222.609h-66.783v-66.783h-66.782v66.783h-66.783v66.782h66.783v66.783h66.782v-66.783h66.783z"}))},Hd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M196 0h317v171H196z"}),r.createElement("path",{fill:"#0037A1",d:"M0 0h196v171H0z"}),r.createElement("path",{fill:"#FFF",d:"M98 24.5L113.1 71H162l-39.6 28.7 15.2 46.5L98 117.5l-39.6 28.7 15.2-46.5L34 71h48.9z"}))},Vd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M226.8 239.2l-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6l-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4l-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z",fill:"#FFDA44"}))},Wd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 343.096h512v83.567H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 256h512v87.096H0z"}))},Ud=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 211.473h512v89.043H0z"}),r.createElement("path",{d:"M0 352.462h512v74.207H0zM0 85.331h512v74.207H0z",fill:"#0052B4"}))},Yd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 512 341.3"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FF9811",d:"M0-40.8v422.9-211.4z"}),r.createElement("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),r.createElement("path",{d:"M0 0h512v68.3H0zm0 136.5h512v68.3H0zm0 136.6h512v68.3H0z",fill:"#0052B4"}),r.createElement("path",{fill:"#D80027",d:"M256 170.7L0 341.3V0z"}),r.createElement("path",{fill:"#FFF",d:"M86.5 111.4l12.7 39.2h41.3l-33.4 24.2 12.8 39.3-33.4-24.2-33.4 24.2 12.8-39.3-33.4-24.2h41.2z"}))},Gd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#002b7f",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#f9e814",d:"M0 233.5h513v51H0z"}),r.createElement("path",{d:"M168.7 86.5l12.9 39.8h41.8l-33.8 24.5 12.9 39.7-33.8-24.5-33.8 24.5 12.9-39.7-33.8-24.5h41.8zm-83.3-54l7.8 23.9h25L97.9 71.1l7.8 23.8-20.3-14.7-20.3 14.7 7.8-23.8-20.3-14.7h25.1z",fill:"#FFF"}))},qd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#11457e",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#d7141a",d:"M512 256v170.663H0L215.185 256z"}),r.createElement("path",{fill:"#FFF",d:"M512 85.337V256H215.185L0 85.337z"}))},Kd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#c60c30",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M190 0h-60v140H0v60h130v142h60V200h323v-60H190z"}))},Xd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 512 341.3"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 215.2h211.5v126.1H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 0h211.5v126.2H0z"}),r.createElement("path",{fill:"#D80027",d:"M300.5 0H512v126.2H300.5z"}),r.createElement("path",{fill:"#0052B4",d:"M300.5 215.2H512v126.1H300.5z"}),r.createElement("g",{stroke:"#FFF",strokeWidth:5,strokeMiterlimit:10},r.createElement("path",{fill:"#0052B4",d:"M256 130h-49.9v49.4s19.5 6 49.9 6V130z"}),r.createElement("path",{fill:"#D80027",d:"M206.1 179.4v6c0 27.5 22.3 49.9 49.9 49.9v-49.9c-30.4 0-49.9-6-49.9-6z"}),r.createElement("path",{fill:"#0052B4",d:"M256 235.3c27.5 0 49.9-22.3 49.9-49.9v-6s-19.5 6-49.9 6v49.9z"}),r.createElement("path",{fill:"#D80027",d:"M256 130v55.4c30.4 0 49.9-6 49.9-6V130H256z"})))},Jd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 22.5 15"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h22.5v15H0V0z"}),r.createElement("path",{fill:"#D03433",d:"M0 0h22.5v4H0V0zm0 11h22.5v4H0v-4z"}),r.createElement("path",{fill:"#FBCA46",d:"M0 4h22.5v7H0V4z"}),r.createElement("path",{fill:"#FFF",d:"M7.8 7h1v.5h-1V7z"}),r.createElement("path",{fill:"#A41517",d:"M7.2 8.5c0 .3.3.5.6.5s.6-.2.6-.5L8.5 7H7.1l.1 1.5zM6.6 7c0-.3.2-.5.4-.5h1.5c.3 0 .5.2.5.4V7l-.1 1.5c-.1.6-.5 1-1.1 1-.6 0-1-.4-1.1-1L6.6 7z"}),r.createElement("path",{fill:"#A41517",d:"M6.8 7.5h2V8h-.5l-.5 1-.5-1h-.5v-.5zM5.3 6h1v3.5h-1V6zm4 0h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3 0 .5.2.5.5v.2c0 .2-.1.3-.3.3H7c-.1 0-.2-.1-.2-.2v-.3z"}))},Qd=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 810 540"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#039",d:"M0 0h810v540H0z"}),r.createElement("path",{fill:"#FC0",d:"M404.951 59.865l6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-90 24l6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-66 66l6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-24 89.999l6.735 20.719h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm24 90.001l6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm66 66l6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm180-312l6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm66 66l6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm24 90l6.735 20.718h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm-24 90l6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm-156 90l6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm90-24.001l6.735 20.719h21.894l-17.633 12.812 6.639 20.74-17.635-12.812-17.633 12.812 6.735-20.73-17.633-12.811h21.797z"}))},_d=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.333h512V426.67H0z"}),r.createElement("path",{fill:"#D80027",d:"M288 85.33h-64v138.666H0v64h224v138.666h64V287.996h224v-64H288z"}),r.createElement("path",{d:"M393.785 315.358L512 381.034v-65.676zm-82.133 0L512 426.662v-31.474l-143.693-79.83zm146.982 111.304l-146.982-81.664v81.664z",fill:"#0052B4"}),r.createElement("path",{fill:"#FFF",d:"M311.652 315.358L512 426.662v-31.474l-143.693-79.83z"}),r.createElement("path",{fill:"#D80027",d:"M311.652 315.358L512 426.662v-31.474l-143.693-79.83z"}),r.createElement("path",{d:"M90.341 315.356L0 365.546v-50.19zm110.007 14.154v97.151H25.491z",fill:"#0052B4"}),r.createElement("path",{fill:"#D80027",d:"M143.693 315.358L0 395.188v31.474l200.348-111.304z"}),r.createElement("path",{d:"M118.215 196.634L0 130.958v65.676zm82.133 0L0 85.33v31.474l143.693 79.83zM53.366 85.33l146.982 81.664V85.33z",fill:"#0052B4"}),r.createElement("path",{fill:"#FFF",d:"M200.348 196.634L0 85.33v31.474l143.693 79.83z"}),r.createElement("path",{fill:"#D80027",d:"M200.348 196.634L0 85.33v31.474l143.693 79.83z"}),r.createElement("path",{d:"M421.659 196.636L512 146.446v50.19zm-110.007-14.154V85.331h174.857z",fill:"#0052B4"}),r.createElement("path",{fill:"#D80027",d:"M368.307 196.634L512 116.804V85.33L311.652 196.634z"}))},$d=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),r.createElement("path",{fill:"#496E2D",d:"M0 312.888h512v113.775H0z"}),r.createElement("path",{d:"M255.883 199.111l14.119 43.458 40.366 3.2-36.969 26.861 19.453 40.259-36.969-26.859-36.97 26.859 14.123-43.459-36.969-26.861h45.696z"}))},ep=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#338AF3"}),r.createElement("circle",{fill:"#DCC26D",cx:256,cy:155.8,r:25.5}),r.createElement("path",{fill:"#628A40",d:"M194.2 155.9c0 22.1 11.8 42.5 30.8 53.5 5.9 3.4 13.5 1.4 16.9-4.5 3.4-5.9 1.4-13.5-4.5-16.9-11.5-6.6-18.5-18.9-18.5-32.1 0-6.8-5.5-12.4-12.4-12.4s-12.3 5.5-12.3 12.4zm95.1 52.1c17.8-11.4 28.6-31 28.5-52.1 0-6.8-5.5-12.4-12.4-12.4-6.8 0-12.4 5.5-12.4 12.4 0 12.7-6.5 24.5-17.1 31.3-5.8 3.6-7.7 11.2-4.1 17 3.6 5.8 11.2 7.7 17 4.1.2-.1.3-.2.5-.3z"}))},tp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0.5 21 14"},n),t&&r.createElement("title",null,t),r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0z"}),r.createElement("path",{fill:"#ee1c25",d:"M0 0h21v15H0z"}),r.createElement("path",{d:"M12 7.19c-.798-.5-1 .409-1 0 0-.828.895-1.5 2-1.5s2 .672 2 1.5c-.949 0-1.044.5-1.5.5-.56 0-.702 0-1.5-.5zM13.25 7a.25.25 0 100-.5.25.25 0 000 .5zm-1.81 1.962c.228-.913-.698-.824-.31-.95.788-.257 1.703.387 2.045 1.438.341 1.05-.021 2.11-.809 2.366-.293-.903-.798-.838-.939-1.272-.173-.533-.217-.668.012-1.582zm.566 1.13a.25.25 0 10.476-.154.25.25 0 00-.476.154zM9.58 8.977c.94-.065.57-.919.81-.588.486.67.157 1.74-.737 2.389-.894.65-2.013.632-2.5-.038.768-.558.55-1.018.92-1.286.453-.33.568-.413 1.507-.477zm-.899.888a.25.25 0 10.294.405.25.25 0 00-.294-.405zm.312-2.652c.351.874 1.049.258.809.588-.487.67-1.606.687-2.5.038-.894-.65-1.223-1.719-.736-2.39.767.559 1.138.21 1.507.478.453.33.568.413.92 1.286zm-1.124-.58a.25.25 0 10-.293.404.25.25 0 00.293-.404zm2.619-.524c-.722.605.08 1.078-.309.951-.788-.256-1.15-1.315-.809-2.365.342-1.05 1.257-1.695 2.045-1.439-.293.903.153 1.147.012 1.581-.173.533-.217.668-.939 1.272zm.205-1.247a.25.25 0 10-.475-.155.25.25 0 00.475.155z",fill:"#FFF"})))},np=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}),r.createElement("path",{d:"M309.3 113.2v-44l17.5-14.4 17.7 14.4v44zm-105.6 0v-44l-17.3-14.4-17.9 14.4v44zm35.2 0v-44l17.6-14.4 17.6 14.4v44z",fill:"#338AF3"}),r.createElement("path",{d:"M309.3 113.2h-35.2v-44l17.5-14.4 17.7 14.4zm-70.4 0h-35.2v-44l17.5-14.4 17.7 14.4z",fill:"#0052B4"}),r.createElement("path",{stroke:"#D80027",fill:"#FFF",d:"M168.5 113.2v101.9c0 24.3 14.4 46.2 35.4 59.4 21.3 13.4 42.1 14.7 52.6 14.7s31.4-1.7 52.6-14.8c21-13 35.4-35.1 35.4-59.3V113.2h-176z"}),r.createElement("path",{d:"M168.5 113.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm35.2 35.2h35.2V254h-35.2zm35.2-35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-35.2 35.2h35.2V254h-35.2zm35.2 55.5c8.6-5.4 16.2-12.3 22-20.3h-22v20.3zM181.7 254c5.8 8 13.3 14.9 22 20.4V254h-22zm57.2 0v33.7c7.2 1.2 13.3 1.5 17.6 1.5 4.3 0 10.4-.3 17.6-1.6V254h-35.2z",fill:"#D80027"}))},rp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),r.createElement("path",{fill:"#6DA544",d:"M0 312.888h512v113.775H0z"}))},op=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.333h512v341.333H0z"}),r.createElement("path",{fill:"#E00",d:"M0 85.333h512V256H0z"}))},ap=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M340.6 122.4h-56.1l-28-48.6-28 48.6h-56.1l28 48.6-28 48.6h56.1l28 48.6 28-48.6h56.1l-28-48.6 28-48.6zM293.2 171L276 204.2h-38.9L219.8 171l17.2-33.2h38.9l17.3 33.2zm-36.7-71.8l11.9 23.3h-23.9l12-23.3zm-58.3 38.6h23.9l-10.8 21-13.1-21zm0 66.4l13-22.1 11.9 22.1h-24.9zm58.3 37.5l-11.9-22.1h23.9l-12 22.1zm59.4-37.5h-25l11.9-22.1 13.1 22.1zm-26.1-66.4h26.1l-13 22.1-13.1-22.1zM0 21.3h512V64H0zm0 256h512V320H0z",fill:"#2E52B2"}))},ip=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#181A93",d:"M17.3 0h478.4v342H17.3V0z"}),r.createElement("path",{fill:"#FFA44A",d:"M0 0h513v114H0V0z"}),r.createElement("path",{fill:"#1A9F0B",d:"M0 228h513v114H0V228z"}),r.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0V114z"}),r.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:34.2}),r.createElement("path",{fill:"#181A93",d:"M256.5 216.6c-25.1 0-45.6-20.5-45.6-45.6s20.5-45.6 45.6-45.6 45.6 20.5 45.6 45.6-20.5 45.6-45.6 45.6zm0-11.4c18.2 0 34.2-16 34.2-34.2s-15.9-34.2-34.2-34.2-34.2 16-34.2 34.2 16 34.2 34.2 34.2z"}),r.createElement("circle",{fill:"#181A93",cx:256.5,cy:171,r:22.8}))},sp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),r.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),r.createElement("path",{fill:"#D80027",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},lp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{d:"M215.864 256.006L0 399.911V112.089zM512 112.089v287.822L296.136 256.006z"}),r.createElement("path",{fill:"#0052B4",d:"M512 112.089L296.136 256.006 512 399.911v26.757h-40.125L256 282.752 40.125 426.668H0v-26.757l215.864-143.905L0 112.089V85.331h40.125L256 229.248 471.875 85.331H512z"}),r.createElement("path",{fill:"#FFDA44",d:"M512 112.089L296.136 256.006 512 399.911v26.757h-40.125L256 282.752 40.125 426.668H0v-26.757l215.864-143.905L0 112.089V85.331h40.125L256 229.248 471.875 85.331H512z"}))},cp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),r.createElement("circle",{fill:"#D80027",cx:256,cy:255.994,r:96}))},up=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),r.createElement("path",{d:"M0 85.331h512v90.579H0z"}),r.createElement("path",{fill:"#496E2D",d:"M0 336.089h512v90.568H0z"}),r.createElement("path",{fill:"#A2001D",d:"M0 198.606h512v114.799H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M323.265 139.803l-25.583-11.809L256 222.376l-41.682-94.382-25.583 11.809 51.749 116.191-51.749 116.192 25.583 11.808L256 289.613l41.682 94.381 25.583-11.808-51.749-116.192z"}),r.createElement("path",{d:"M273.376 150.931C263.472 140.115 256 133.898 256 133.898s-7.472 6.216-17.376 17.032v210.127C248.528 371.873 256 378.091 256 378.091s7.472-6.216 17.376-17.033V150.931z"})),r.createElement("path",{d:"M209.04 191.226v129.535c10.465 18.542 23.274 33.742 32.872 43.818V147.408c-9.599 10.076-22.408 25.275-32.872 43.818zm93.92 0c-10.465-18.543-23.274-33.742-32.872-43.818V364.58c9.599-10.077 22.407-25.276 32.872-43.818V191.226z",fill:"#A2001D"}),r.createElement("path",{d:"M302.96 191.226v129.535c10.594-18.774 18.784-40.973 18.784-64.767s-8.19-45.993-18.784-64.768zm-93.92 0v129.535c-10.594-18.774-18.784-40.973-18.784-64.767s8.19-45.993 18.784-64.768z"}))},dp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 900 600"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h900v600H0z"}),r.createElement("g",{transform:"rotate(-56.31)"},r.createElement("path",{d:"M-75 228.3H75m-150 37.5H75m-150 37.5H75m-150 475H75m-150 37.5H75m-150 37.5H75",stroke:"#000",strokeWidth:25}),r.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"M0 753.3v125"}),r.createElement("circle",{fill:"#ca163a",cy:540.8,r:150}),r.createElement("path",{fill:"#0e4896",d:"M0 390.8c-41.4 0-75 33.6-75 75s33.6 75 75 75 75 33.6 75 75-33.6 75-75 75c-82.8 0-150-67.2-150-150s67.2-150 150-150z"})),r.createElement("path",{d:"M231.56 535.73l-83.205-124.808M262.76 514.928l-83.205-124.807m114.407 104.006l-83.205-124.808m478.43-138.675l-83.205-124.807M720.39 209.843L637.184 85.036m114.407 104.006L668.386 64.234",stroke:"#000",strokeWidth:25}),r.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"M205.6 462.897l31.202-20.8m389.981-259.989l36.444-24.296m31.202-20.801l31.202-20.801"}))},pp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#36B6CC",d:"M0 0h513v342H0V0z"}),r.createElement("circle",{fill:"#FFD400",cx:256.5,cy:170.9,r:68.4}),r.createElement("path",{fill:"#FFD400",d:"M256.5 251.5l-27.9 41.7-7.1-49.7-43.2 25.5 15.2-47.8-50 4.2 34.4-36.5-46.9-18 46.8-18-34.4-36.5 50 4.2-15.2-47.8 43.2 25.4 7.1-49.7 27.9 41.7 27.9-41.7 7.1 49.7 43.2-25.4-15.2 47.8 50-4.2-34.3 36.6 46.8 17.9-46.8 18 34.4 36.5-50-4.2 15.2 47.8-43.2-25.4-7.1 49.7c0-.1-27.9-41.8-27.9-41.8zm0-.8c44.1 0 79.9-35.8 79.9-79.9S300.6 91 256.5 91s-79.9 35.8-79.9 79.9 35.8 79.8 79.9 79.8zM22.8 28.3c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V28.3zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V74zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm22.8-22.8c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7V245c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V188zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V96.8zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V51.2z"}))},mp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#dc2339",d:"M342 0H0v341.3h513V0z"}),r.createElement("path",{fill:"#11865d",d:"M0 0h171v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M171 0h171v342H171z"}),r.createElement("path",{fill:"#8C9157",d:"M195.8 171.2c0 21.6 11.5 41.7 30.3 52.5 5.8 3.4 13.2 1.4 16.6-4.4 3.4-5.8 1.4-13.2-4.4-16.6-11.3-6.5-18.2-18.5-18.2-31.5 0-6.7-5.4-12.1-12.1-12.1-6.7 0-12.2 5.4-12.2 12.1zm93.4 51.1c17.5-11.1 28-30.4 28-51.1 0-6.7-5.4-12.1-12.1-12.1s-12.1 5.4-12.1 12.1c0 12.4-6.3 24-16.8 30.7-5.7 3.5-7.5 10.9-4.1 16.7s10.9 7.5 16.7 4.1c0-.2.2-.3.4-.4z"}),r.createElement("ellipse",{fill:"#C59262",cx:256.5,cy:159.1,rx:24.3,ry:36.4}))},hp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 0h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0zm0 48.9h513V171H0zm0 48.8h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0z",fill:"#c00"}),r.createElement("path",{fill:"#006",d:"M0 0h256.5v195.4H0z"}),r.createElement("path",{d:"M153.3 42.1C122.6 30.7 88.5 46.3 77.1 77s4.2 64.8 34.9 76.2c13.3 5 28 5 41.4 0-30.7 24.5-75.4 19.6-100-11.1s-19.6-75.4 11.1-100c26-20.7 62.9-20.7 88.8 0zm26.7 75l-20.6 23.3 5.4-30.6-31-1.6 27.3-14.9L143 68l28.6 12 8.4-29.9 8.4 29.9L217 68l-18 25.4 27.3 14.9-31 1.6 5.4 30.6-20.7-23.4z",fill:"#fc0"}))},fp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.337h512"}),r.createElement("path",{fill:"#FFF",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),r.createElement("path",{fill:"#A2001D",d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}),r.createElement("path",{fill:"#FFDA44",d:"M187.737 189.212l-22.741 10.696 12.11 22.024-24.693-4.724-3.129 24.945-17.199-18.347-17.2 18.347-3.129-24.945-24.693 4.723 12.109-22.023-22.739-10.696 22.74-10.697-12.11-22.022 24.693 4.722 3.13-24.944 17.199 18.347 17.2-18.347 3.128 24.944 24.693-4.722-12.108 22.024z"}))},gp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.5 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.5h513v342H0z"}),r.createElement("path",{d:"M0 85.5h171v342H0zm342 0h171v342H342z",fill:"#007b23"}))},bp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),r.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),r.createElement("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},vp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),r.createElement("path",{d:"M425.301 233.745l3.388 10.428h10.963l-8.87 6.444 3.388 10.427-8.869-6.444-8.871 6.444 3.388-10.427-8.87-6.444h10.963zm-39.194 75.072l5.083 15.642h16.445l-13.305 9.667 5.082 15.64-13.305-9.667-13.305 9.667 5.083-15.64-13.305-9.667h16.445zm1.481-122.846l4.236 13.036h13.704l-11.088 8.054 4.235 13.034-11.087-8.056-11.088 8.056 4.235-13.034-11.087-8.054h13.704zm-37.712 47.32l5.082 15.641h16.446l-13.306 9.666 5.084 15.641-13.306-9.666-13.305 9.666 5.082-15.641-13.305-9.666h16.445z",fill:"#D80027"}),r.createElement("path",{fill:"#FFF",d:"M256.003 85.329v30.564l-45.178 25.088h45.178v59.359H196.89l59.113 32.846v22.806h-26.69l-73.484-40.826v40.826h-55.652v-48.573l-87.429 48.573H.003v-30.553l45.168-25.099H.003v-59.359h59.103L.003 108.147V85.329h26.68l73.494 40.838V85.329h55.652v48.573l87.43-48.573z"}),r.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.334H0v32h112v69.334h32v-69.334h112v-32H144z"}),r.createElement("path",{fill:"#0052B4",d:"M155.826 200.344L256 255.998v-15.739l-71.847-39.915z"}),r.createElement("path",{fill:"#FFF",d:"M155.826 200.344L256 255.998v-15.739l-71.847-39.915z"}),r.createElement("path",{d:"M155.826 200.344L256 255.998v-15.739l-71.847-39.915zm-83.98 0L0 240.259v15.739l100.174-55.654z",fill:"#D80027"}),r.createElement("path",{fill:"#0052B4",d:"M100.174 140.983L0 85.33v15.738l71.847 39.915z"}),r.createElement("path",{fill:"#FFF",d:"M100.174 140.983L0 85.33v15.738l71.847 39.915z"}),r.createElement("path",{d:"M100.174 140.983L0 85.33v15.738l71.847 39.915zm83.98 0L256 101.068V85.33l-100.174 55.653z",fill:"#D80027"}))},yp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M256 256v170.663H0V256h256z"}),r.createElement("path",{fill:"#D80027",d:"M512 85.337V256H256V85.337h256z"}),r.createElement("path",{fill:"#0052B4",d:"M128 123.034l11.824 36.389h38.263l-30.955 22.491 11.823 36.389L128 195.813l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}),r.createElement("path",{fill:"#D80027",d:"M384 293.697l11.824 36.389h38.263l-30.955 22.491 11.823 36.389L384 366.476l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}))},wp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.326H0z"}),r.createElement("path",{d:"M0 85.331h170.663v341.337H0zm341.337 0H512v341.337H341.337z",fill:"#D80027"}))},kp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M512 85.337V256H256L0 85.337z"}),r.createElement("path",{fill:"#D80027",d:"M512 256v170.663H0L256 256z"}),r.createElement("path",{d:"M161.908 256l-27.288-12.835 14.532-26.428-29.632 5.668-3.755-29.933-20.64 22.015-20.639-22.015-3.755 29.933-29.631-5.669 14.531 26.428L28.343 256l27.288 12.835L41.1 295.263l29.633-5.668 3.753 29.933 20.639-22.015 20.64 22.015 3.755-29.933 29.631 5.669-14.532-26.427zM21.789 117.607l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.694-14.809-4.932-9.268 12.559.117-15.608-14.809-4.934 14.88-4.712zm0 235.923l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.695-14.809-4.933-9.268 12.558.117-15.607-14.809-4.934 14.88-4.712zm188.606-117.961l-9.081 12.695-14.879-4.713 9.268 12.559-9.081 12.696 14.809-4.933 9.268 12.558-.117-15.607 14.809-4.934-14.88-4.713z",fill:"#FFDA44"}))},Cp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M393.508 170.516l17.512 18.875 23.363-10.821-12.541 22.487 17.513 18.876-25.263-4.978-12.539 22.488-3.073-25.564-25.263-4.978 23.363-10.82z"}),r.createElement("path",{d:"M0 85.343h512v341.326H0z"})),r.createElement("path",{fill:"#01411c",d:"M128 85.331h384v341.337H128z"}),r.createElement("path",{d:"M361.909 298.793c-31.037 22.426-74.378 15.446-96.804-15.592-22.427-31.038-15.446-74.379 15.593-96.804 9.677-6.992 20.55-11.125 31.613-12.563-21.283-3.183-43.777 1.613-62.598 15.211-38.2 27.602-46.792 80.944-19.191 119.145 27.601 38.199 80.944 46.792 119.145 19.189 18.82-13.598 30.436-33.448 34.096-54.655-4.839 10.05-12.176 19.076-21.854 26.069zm-1.329-125.904l17.484 18.842 23.322-10.802-12.519 22.447 17.483 18.844-25.219-4.968-12.519 22.45-3.067-25.521-25.22-4.969 23.323-10.802z",fill:"#FFF"}))},xp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{d:"M0 85.337h512V256H0z"})),r.createElement("path",{fill:"#D80027",d:"M0 256h512v170.663H0z"}))},Sp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 312.888h512v113.775H0z"}),r.createElement("path",{fill:"#6DA544",d:"M289.579 216.738l-12.592 12.592c5.37 5.372 8.693 12.792 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.112-5.316-24.985-13.91-33.579z"}),r.createElement("path",{fill:"#FFDA44",d:"M256 232.51l4.421 13.605h14.304l-11.573 8.408 4.421 13.604L256 259.719l-11.573 8.408 4.421-13.604-11.573-8.408h14.304z"}))},Ep=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#751A46",d:"M0 0h512v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M0 0v342h150.3l37.7-19.6-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19 37.7-18.9-37.7-19 37.7-19-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19L188 57l-37.7-19L188 19.1 150.3 0z"}))},Pp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),r.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},Tp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.33v341.332h512V85.33z"}),r.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),r.createElement("path",{fill:"#FFF",d:"M0 85.333h512v113.775H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 312.884h512v113.775H0z"}))},Ap=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#055e1c",d:"M0 85.333h512v341.333H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M183.548 289.386c0 12.295 9.731 22.261 21.736 22.261h65.208c0 10.244 8.11 18.551 18.114 18.551h21.736c10.004 0 18.114-8.306 18.114-18.551v-22.261H183.548zm146.716-107.595v51.942c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942h-21.735zm-155.773 51.943c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942H174.49v51.942z"}),r.createElement("path",{d:"M297.661 181.788h21.736v51.942h-21.736zm-32.604 29.685c0 2.046-1.625 3.71-3.623 3.71-1.998 0-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 2.046-1.625 3.71-3.623 3.71s-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 14.32 11.376 25.971 25.358 25.971 5.385 0 10.38-1.733 14.491-4.677 4.11 2.944 9.106 4.677 14.491 4.677 1.084 0 2.15-.078 3.2-.215-1.54 6.499-7.255 11.345-14.068 11.345v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.943h-21.736l.002 29.682z"}),r.createElement("path",{d:"M207.093 248.57h32.601v22.261h-32.601z"})))},Rp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),r.createElement("path",{fill:"#FFDA44",d:"M192 85.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z"}))},Op=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512V256H0z"}),r.createElement("g",{fill:"#FFF"},r.createElement("path",{d:"M83.478 170.666c0-24.865 17.476-45.637 40.812-50.734a52.059 52.059 0 00-11.13-1.208c-28.688 0-51.942 23.254-51.942 51.941s23.255 51.942 51.942 51.942c3.822 0 7.543-.425 11.13-1.208-23.336-5.095-40.812-25.867-40.812-50.733zm66.783-48.231l3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921z"}),r.createElement("path",{d:"M121.344 144.696l3.683 11.337h11.921l-9.645 7.007 3.684 11.337-9.643-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921zm57.834 0l3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.685-11.337-9.645-7.007h11.921zm-11.131 33.391l3.684 11.337h11.921l-9.644 7.007 3.684 11.337-9.645-7.006-9.643 7.006 3.684-11.337-9.644-7.007h11.92zm-35.573 0l3.683 11.337h11.921l-9.644 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.684-11.337-9.644-7.007h11.92z"})))},Mp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.334h512V426.66H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 194.056h512v123.882H0z"}),r.createElement("path",{d:"M0 85.334h512v54.522H0zm0 286.809h512v54.522H0z",fill:"#D80027"}))},Bp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#E30A17",d:"M0 0h513v342H0z"}),r.createElement("path",{fill:"#FFF",d:"M259.7 118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8 0-73.8 30.8-73.8 68.9s33.1 68.9 73.8 68.9c17.1 0 32.9-5.4 45.3-14.5-30 38.6-85.7 45.6-124.3 15.5s-45.6-85.7-15.5-124.3 85.7-45.6 124.3-15.5c5.8 4.5 11 9.8 15.5 15.5zm39.9 65.8l-18.1 21.9 1.2-28.4-26.4-10.4 27.3-7.6 1.8-28.3 15.6 23.7 27.5-7.1-17.5 22 15.3 23.9-26.7-9.7z"}))},Ip=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#FFF",d:"M6.066 85.337l207.961 212.636 131.584 128.69h160.323L297.973 214.027 166.389 85.337z"}),r.createElement("path",{d:"M43.364 85.337L384.69 426.663h83.946L127.31 85.337z"}))},Zp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{fill:"#0052B4",d:"M0 85.337h256V256H0z"}),r.createElement("path",{fill:"#FFF",d:"M186.435 170.669L162.558 181.9l12.714 23.125-25.927-4.961-3.286 26.192L128 206.993l-18.06 19.263-3.285-26.192-25.927 4.96 12.714-23.125-23.877-11.23 23.877-11.231-12.714-23.125 25.927 4.96 3.286-26.192L128 134.344l18.06-19.263 3.285 26.192 25.928-4.96-12.715 23.125z"}),r.createElement("circle",{fill:"#0052B4",cx:128,cy:170.674,r:29.006}),r.createElement("path",{fill:"#FFF",d:"M128 190.06c-10.692 0-19.391-8.7-19.391-19.391 0-10.692 8.7-19.391 19.391-19.391 10.692 0 19.391 8.7 19.391 19.391 0 10.691-8.699 19.391-19.391 19.391z"}))},Lp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),r.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),r.createElement("path",{d:"M47.8 138.9l-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0l-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0l-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0l-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0l-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0l-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0l-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6l-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0l-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0l-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0l-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},Dp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 513 342"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),r.createElement("path",{d:"M0 38h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z",fill:"#0038a8"}),r.createElement("path",{fill:"#FFF",d:"M0 0h256.5v190H0z"}),r.createElement("path",{fill:"#FED443",d:"M128.3 138.7l-15.1 22.6-3.8-26.9L86 148.2l8.2-25.9-27.2 2.2 18.6-19.8L60.3 95l25.4-9.7L67 65.5l27.1 2.3-8.2-25.9 23.4 13.8 3.9-26.9 15.1 22.6 15.1-22.6 3.8 26.9 23.4-13.8-8.2 25.9 27.1-2.2-18.6 19.8 25.4 9.7-25.4 9.7 18.6 19.8-27.1-2.2 8.2 25.9-23.4-13.8-3.9 26.9-15-22.7zm0-.5c23.9.9 44-17.6 44.9-41.5.9-23.9-17.6-44-41.5-44.9h-3.4c-23.9.8-42.6 20.8-41.8 44.6.6 22.8 19 41.1 41.8 41.8zm0-10.6c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.3 34-34 34z"}))},jp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 0 22.5 15"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFCE00",d:"M0 0h22.5v5H0z"}),r.createElement("path",{fill:"#203899",d:"M0 5h22.5v5H0z"}),r.createElement("path",{fill:"#D82B2B",d:"M0 10h22.5v5H0z"}),r.createElement("path",{fill:"#FFF",d:"M12.13 5.38l.14.46.45.14-.39.27.01.48-.38-.29-.45.15.15-.44-.28-.38h.47zm-1.77 0l.27.39h.47l-.28.38.15.45-.45-.16-.38.28.01-.47-.39-.28.45-.13zm3.44.56l-.01.48.39.27-.46.14-.14.45-.27-.38h-.48l.29-.38-.15-.45.45.16zm-5.11.02l.4.27.44-.18-.13.46.3.36-.47.02-.26.4-.16-.44-.46-.12.37-.3zm6.55 1.17l-.2.44.25.4-.47-.05-.31.36-.1-.46-.43-.18.41-.24.03-.47.35.31zm.19 1.12l.21.43.47.07-.34.33.08.46-.42-.22-.42.22.08-.46-.34-.33.47-.07zM7 8.2l.21.43.47.06-.34.33.08.47L7 9.27l-.42.22.08-.47-.34-.33.47-.06zm.31-1.15l.45.14.38-.29v.48l.39.26-.45.15-.13.46-.28-.38-.47.01.27-.38z"}))},Fp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#D80027",d:"M196.641 85.337H0v341.326h512V85.337z"}),r.createElement("path",{fill:"#FFDA44",d:"M256 157.279l22.663 69.747H352l-59.332 43.106 22.664 69.749L256 296.774l-59.332 43.107 22.664-69.749L160 227.026h73.337z"}))},zp=function(e){var t=e.title,n=Id(e,["title"]);return r.createElement("svg",Bd({viewBox:"0 85.333 512 341.333"},n),t&&r.createElement("title",null,t),r.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),r.createElement("path",{d:"M114.024 256.001L0 141.926v228.17z"}),r.createElement("path",{fill:"#ffb915",d:"M161.192 256L0 94.7v47.226l114.024 114.075L0 370.096v47.138z"}),r.createElement("path",{fill:"#007847",d:"M509.833 289.391c.058-.44.804-.878 2.167-1.318v-65.464H222.602L85.33 85.337H0V94.7L161.192 256 0 417.234v9.429h85.33l137.272-137.272h287.231z"}),r.createElement("path",{fill:"#000c8a",d:"M503.181 322.783H236.433l-103.881 103.88H512v-103.88z"}),r.createElement("path",{fill:"#e1392d",d:"M503.181 189.217H512V85.337H132.552l103.881 103.88z"}))};var Np=n(4939);function Hp(e){const t={width:20,height:20};var n="";return"AUD"==e&&(n=r.createElement(Ld,t)),"ARS"==e&&(n=r.createElement(Zd,t)),"BRL"==e&&(n=r.createElement(Fd,t)),"CAD"==e&&(n=r.createElement(zd,t)),"CHF"==e&&(n=r.createElement(Nd,t)),"CLP"==e&&(n=r.createElement(Hd,t)),"CNY"==e&&(n=r.createElement(Vd,t)),"EUR"==e&&(n=r.createElement(Qd,t)),"HRK"==e&&(n=r.createElement(np,t)),"CZK"==e&&(n=r.createElement(qd,t)),"DKK"==e&&(n=r.createElement(Kd,t)),"GBP"==e&&(n=r.createElement(_d,t)),"HKD"==e&&(n=r.createElement(tp,t)),"HUF"==e&&(n=r.createElement(rp,t)),"INR"==e&&(n=r.createElement(ip,t)),"ISK"==e&&(n=r.createElement(sp,t)),"JPY"==e&&(n=r.createElement(cp,t)),"KRW"==e&&(n=r.createElement(dp,t)),"MXN"==e&&(n=r.createElement(mp,t)),"NOK"==e&&(n=r.createElement(bp,t)),"NZD"==e&&(n=r.createElement(vp,t)),"PLN"==e&&(n=r.createElement(xp,t)),"RON"==e&&(n=r.createElement(Pp,t)),"RUB"==e&&(n=r.createElement(Tp,t)),"SEK"==e&&(n=r.createElement(Rp,t)),"SGD"==e&&(n=r.createElement(Op,t)),"VES"==e&&(n=r.createElement(jp,t)),"TRY"==e&&(n=r.createElement(Bp,t)),"USD"==e&&(n=r.createElement(Lp,t)),"ZAR"==e&&(n=r.createElement(zp,t)),"COP"==e&&(n=r.createElement(Wd,t)),"PEN"==e&&(n=r.createElement(wp,t)),"UYU"==e&&(n=r.createElement(Dp,t)),"PYG"==e&&(n=r.createElement(Sp,t)),"BOB"==e&&(n=r.createElement(jd,t)),"IDR"==e&&(n=r.createElement(op,t)),"ANG"==e&&(n=r.createElement(Gd,t)),"CRC"==e&&(n=r.createElement(Ud,t)),"CUP"==e&&(n=r.createElement(Yd,t)),"DOP"==e&&(n=r.createElement(Xd,t)),"GHS"==e&&(n=r.createElement($d,t)),"GTQ"==e&&(n=r.createElement(ep,t)),"ILS"==e&&(n=r.createElement(ap,t)),"JMD"==e&&(n=r.createElement(lp,t)),"KES"==e&&(n=r.createElement(up,t)),"KZT"==e&&(n=r.createElement(pp,t)),"MYR"==e&&(n=r.createElement(hp,t)),"NAD"==e&&(n=r.createElement(fp,t)),"NGN"==e&&(n=r.createElement(gp,t)),"AZN"==e&&(n=r.createElement(Dd,t)),"PAB"==e&&(n=r.createElement(yp,t)),"PHP"==e&&(n=r.createElement(kp,t)),"PKR"==e&&(n=r.createElement(Cp,t)),"QAR"==e&&(n=r.createElement(Ep,t)),"SAR"==e&&(n=r.createElement(Ap,t)),"THB"==e&&(n=r.createElement(Mp,t)),"TTD"==e&&(n=r.createElement(Ip,t)),"VND"==e&&(n=r.createElement(Fp,t)),"XOF"==e&&(n=r.createElement(Rp,t)),"TWD"==e&&(n=r.createElement(Zp,t)),"XAU"==e?"🟨":"BTC"==e?r.createElement(Np.Z,{color:"primary"}):r.createElement("div",{style:{width:28,height:20}},n)}var Vp=n(7960);function Wp(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Up(e,t){for(let n=0;n{let c=i?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=Wp(c));const u=e.filter((e=>{let r=(a||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Wp(r)),"start"===o?0===r.indexOf(c):r.indexOf(c)>-1}));return"number"==typeof r?u.slice(0,r):u}}();var Gp=n(7036),qp=n(594),Kp=n(5302);function Xp(){return Xp=Object.assign||function(e){for(var t=1;t`\n color: ${"dark"===e.palette.mode?"rgba(255,255,255,0.65)":"rgba(0,0,0,.85)"};\n font-size: 14px;\n`)),tm=(0,Ie.ZP)("label")((({theme:e,error:t})=>`\n color: ${"dark"===e.palette.mode?t?"#f44336":"#cfcfcf":t?"#dd0000":"#717171"};\n aling: center;\n padding: 0 0 4px;\n line-height: 1.5; f44336\n display: block;\n font-size: 13px;\n`)),nm=(0,Ie.ZP)("div")((({theme:e,error:t})=>`\n width: 244px;\n min-height: 44px;\n max-height: 124px;\n border: 1px solid ${"dark"===e.palette.mode?t?"#f44336":"#434343":t?"#dd0000":"#c4c4c4"};\n background-color: ${"dark"===e.palette.mode?"#141414":"#fff"};\n border-radius: 4px;\n padding: 1px;\n display: flex;\n flex-wrap: wrap;\n overflow-y:auto;\n \n &:hover {\n border-color: ${"dark"===e.palette.mode?t?"#f44336":"#ffffff":t?"#dd0000":"#2f2f2f"};\n }\n\n &.focused {\n border: 2px solid ${"dark"===e.palette.mode?t?"#f44336":"#90caf9":t?"#dd0000":"#1976d2"};\n }\n\n & input {\n background-color: ${"dark"===e.palette.mode?"#141414":"#fff"};\n color: ${"dark"===e.palette.mode?"rgba(255,255,255,0.65)":"rgba(0,0,0,.85)"};\n height: 30px;\n box-sizing: border-box;\n padding: 4px 6px;\n width: 0;\n min-width: 30px;\n font-size: 15px;\n flex-grow: 1;\n border: 0;\n margin: 0;\n outline: 0;\n max-height: 124px;\n }\n`));function rm(e){const{label:t,icon:n,onDelete:o,...a}=e;return r.createElement("div",a,r.createElement("div",{style:{position:"relative",left:"-5px",top:"4px"}},r.createElement(Qp,{width:22,height:22,icon:n})),r.createElement("span",{style:{position:"relative",left:"2px"}},t),r.createElement(qp.Z,{onClick:o}))}rm.propTypes={label:S().string.isRequired,icon:S().string.isRequired,onDelete:S().func.isRequired};const om=(0,Ie.ZP)(rm)((({theme:e})=>`\n display: flex;\n align-items: center;\n height: 34px;\n margin: 2px;\n line-height: 22px;\n background-color: ${"dark"===e.palette.mode?"rgba(255,255,255,0.08)":"#fafafa"};\n border: 1px solid ${"dark"===e.palette.mode?"#303030":"#e8e8e8"};\n border-radius: 2px;\n box-sizing: content-box;\n padding: 0 4px 0 10px;\n outline: 0;\n overflow: hidden;\n\n &:focus {\n border-color: ${"dark"===e.palette.mode?"#177ddc":"#40a9ff"};\n background-color: ${"dark"===e.palette.mode?"#003b57":"#e6f7ff"};\n }\n\n & span {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 15px;\n }\n\n & svg {\n font-size: 15px;\n cursor: pointer;\n padding: 4px;\n }\n`)),am=(0,Ie.ZP)("span")((({theme:e})=>`\n color: ${"dark"===e.palette.mode?"#90caf9":"#1976d2"};\n aling: center;\n width: 141px;\n line-height:10px;\n max-height: 10px;\n display: inline-block;\n background-color: ${"dark"===e.palette.mode?"#141414":"#ffffff"};\n font-size: 12px;\n pointer-events: none;\n`)),im=(0,Ie.ZP)("ul")((({theme:e})=>`\n width: 244px;\n margin: 2px 0 0;\n padding: 0;\n position: absolute;\n list-style: none;\n background-color: ${"dark"===e.palette.mode?"#141414":"#fff"};\n overflow: auto;\n max-height: 250px;\n border-radius: 4px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n z-index: 999;\n\n & li {\n padding: 5px 12px;\n display: flex;\n\n & span {\n flex-grow: 1;\n }\n\n & svg {\n color: transparent;\n }\n\n }\n\n & li[aria-selected='true'] {\n background-color: ${"dark"===e.palette.mode?"#2b2b2b":"#fafafa"};\n font-weight: 600;\n\n & svg {\n color: ${e.palette.primary.main};\n }\n }\n\n & li[data-focus='true'] {\n background-color: ${"dark"===e.palette.mode?"#003b57":"#e6f7ff"};\n cursor: pointer;\n\n & svg {\n color: currentColor;\n }\n }\n`));function sm(e){const{getRootProps:t,getInputLabelProps:n,getInputProps:o,getTagProps:a,getListboxProps:i,getOptionProps:l,groupedOptions:c,value:u,focused:d="true",setAnchorEl:p}=function(e){const{autoComplete:t=!1,autoHighlight:n=!1,autoSelect:o=!1,blurOnSelect:a=!1,disabled:i,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:m=!1,disabledItemsFocusable:h=!1,disableListWrap:f=!1,filterOptions:g=Yp,filterSelectedOptions:b=!1,freeSolo:v=!1,getOptionDisabled:y,getOptionLabel:w=(e=>{var t;return null!=(t=e.label)?t:e}),isOptionEqualToValue:k=((e,t)=>e===t),groupBy:C,handleHomeEndKeys:x=!e.freeSolo,id:S,includeInputInList:E=!1,inputValue:P,multiple:T=!1,onChange:A,onClose:R,onHighlightChange:O,onInputChange:M,onOpen:B,open:I,openOnFocus:Z=!1,options:L,selectOnFocus:D=!e.freeSolo,value:j}=e,F=(0,Pe.Z)(S);let z=w;z=e=>{const t=w(e);return"string"!=typeof t?String(t):t};const N=r.useRef(!1),H=r.useRef(!0),V=r.useRef(null),W=r.useRef(null),[U,Y]=r.useState(null),[G,q]=r.useState(-1),K=n?0:-1,X=r.useRef(K),[J,Q]=(0,Wn.Z)({controlled:j,default:d,name:u}),[_,$]=(0,Wn.Z)({controlled:P,default:"",name:u,state:"inputValue"}),[ee,te]=r.useState(!1),ne=r.useCallback(((e,t)=>{if(!(T?J.length{const e=J!==re.current;re.current=J,ee&&!e||v&&!e||ne(null,J)}),[J,ne,ee,re,v]);const[oe,ae]=(0,Wn.Z)({controlled:I,default:!1,name:u,state:"open"}),[ie,se]=r.useState(!0),le=!T&&null!=J&&_===z(J),ce=oe,ue=ce?g(L.filter((e=>!b||!(T?J:[J]).some((t=>null!==t&&k(e,t))))),{inputValue:le&&ie?"":_,getOptionLabel:z}):[],de=oe&&ue.length>0,pe=(0,Gn.Z)((e=>{-1===e?V.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{T&&G>J.length-1&&(q(-1),pe(-1))}),[J,T,G,pe]);const me=(0,Gn.Z)((({event:e,index:t,reason:n="auto"})=>{if(X.current=t,-1===t?V.current.removeAttribute("aria-activedescendant"):V.current.setAttribute("aria-activedescendant",`${F}-option-${t}`),O&&O(e,-1===t?null:ue[t],n),!W.current)return;const r=W.current.querySelector('[role="option"].Mui-focused');r&&(r.classList.remove("Mui-focused"),r.classList.remove("Mui-focusVisible"));const o=W.current.parentElement.querySelector('[role="listbox"]');if(!o)return;if(-1===t)return void(o.scrollTop=0);const a=W.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add("Mui-focused"),"keyboard"===n&&a.classList.add("Mui-focusVisible"),o.scrollHeight>o.clientHeight&&"mouse"!==n)){const e=a,t=o.clientHeight+o.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?o.scrollTop=n-o.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0){if(!ce)return;const a=function(e,t){if(!W.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ue.length||"previous"===t&&-1===n)return-1;const e=W.current.querySelector(`[data-option-index="${n}"]`),r=!h&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}((()=>{const e=ue.length-1;if("reset"===n)return K;if("start"===n)return 0;if("end"===n)return e;const t=X.current+n;return t<0?-1===t&&E?-1:f&&-1!==X.current||Math.abs(n)>1?0:e:t>e?t===e+1&&E?-1:f||Math.abs(n)>1?e:0:t})(),r);if(me({index:a,reason:o,event:e}),t&&"reset"!==n)if(-1===a)V.current.value=_;else{const e=z(ue[a]);V.current.value=e,0===e.toLowerCase().indexOf(_.toLowerCase())&&_.length>0&&V.current.setSelectionRange(_.length,e.length)}})),fe=r.useCallback((()=>{if(!ce)return;const e=T?J[0]:J;if(0!==ue.length&&null!=e){if(W.current)if(null==e)X.current>=ue.length-1?me({index:ue.length-1}):me({index:X.current});else{const t=ue[X.current];if(T&&t&&-1!==Up(J,(e=>k(t,e))))return;const n=Up(ue,(t=>k(t,e)));-1===n?he({diff:"reset"}):me({index:n})}}else he({diff:"reset"})}),[ue.length,!T&&J,b,he,me,ce,_,T]),ge=(0,Gn.Z)((e=>{(0,Vp.Z)(W,e),e&&fe()}));r.useEffect((()=>{fe()}),[fe]);const be=e=>{oe||(ae(!0),se(!0),B&&B(e))},ve=(e,t)=>{oe&&(ae(!1),R&&R(e,t))},ye=(e,t,n,r)=>{if(Array.isArray(J)){if(J.length===t.length&&J.every(((e,n)=>e===t[n])))return}else if(J===t)return;A&&A(e,t,n,r),Q(t)},we=r.useRef(!1),ke=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(T){i=Array.isArray(J)?J.slice():[];const e=Up(i,(e=>k(t,e)));-1===e?i.push(t):"freeSolo"!==r&&(i.splice(e,1),o="removeOption")}ne(e,i),ye(e,i,o,{option:t}),m||e.ctrlKey||e.metaKey||ve(e,o),(!0===a||"touch"===a&&we.current||"mouse"===a&&!we.current)&&V.current.blur()},Ce=(e,t)=>{if(!T)return;ve(e,"toggleInput");let n=G;-1===G?""===_&&"previous"===t&&(n=J.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===J.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===J.length||"previous"===t&&-1===n)return-1;const e=U.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),q(n),pe(n)},xe=e=>{N.current=!0,$(""),M&&M(e,"","clear"),ye(e,T?[]:null,"clear")},Se=e=>n=>{if(e.onKeyDown&&e.onKeyDown(n),!n.defaultMuiPrevented&&(-1!==G&&-1===["ArrowLeft","ArrowRight"].indexOf(n.key)&&(q(-1),pe(-1)),229!==n.which))switch(n.key){case"Home":ce&&x&&(n.preventDefault(),he({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":ce&&x&&(n.preventDefault(),he({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),he({diff:-5,direction:"previous",reason:"keyboard",event:n}),be(n);break;case"PageDown":n.preventDefault(),he({diff:5,direction:"next",reason:"keyboard",event:n}),be(n);break;case"ArrowDown":n.preventDefault(),he({diff:1,direction:"next",reason:"keyboard",event:n}),be(n);break;case"ArrowUp":n.preventDefault(),he({diff:-1,direction:"previous",reason:"keyboard",event:n}),be(n);break;case"ArrowLeft":Ce(n,"previous");break;case"ArrowRight":Ce(n,"next");break;case"Enter":if(-1!==X.current&&ce){const e=ue[X.current],r=!!y&&y(e);if(n.preventDefault(),r)return;ke(n,e,"selectOption"),t&&V.current.setSelectionRange(V.current.value.length,V.current.value.length)}else v&&""!==_&&!1===le&&(T&&n.preventDefault(),ke(n,_,"createOption","freeSolo"));break;case"Escape":ce?(n.preventDefault(),n.stopPropagation(),ve(n,"escape")):c&&(""!==_||T&&J.length>0)&&(n.preventDefault(),n.stopPropagation(),xe(n));break;case"Backspace":if(T&&""===_&&J.length>0){const e=-1===G?J.length-1:G,t=J.slice();t.splice(e,1),ye(n,t,"removeOption",{option:J[e]})}}},Ee=e=>{te(!0),Z&&!N.current&&be(e)},Te=e=>{null!==W.current&&W.current.parentElement.contains(document.activeElement)?V.current.focus():(te(!1),H.current=!0,N.current=!1,o&&-1!==X.current&&ce?ke(e,ue[X.current],"blur"):o&&v&&""!==_?ke(e,_,"blur","freeSolo"):l&&ne(e,J),ve(e,"blur"))},Ae=e=>{const t=e.target.value;_!==t&&($(t),se(!1),M&&M(e,t,"input")),""===t?p||T||ye(e,null,"clear"):be(e)},Re=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Oe=()=>{we.current=!0},Me=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,ue[t],"selectOption"),we.current=!1},Be=e=>t=>{const n=J.slice();n.splice(e,1),ye(t,n,"removeOption",{option:J[e]})},Ie=e=>{oe?ve(e,"toggleInput"):be(e)},Ze=e=>{e.target.getAttribute("id")!==F&&e.preventDefault()},Le=()=>{V.current.focus(),D&&H.current&&V.current.selectionEnd-V.current.selectionStart==0&&V.current.select(),H.current=!1},De=e=>{""!==_&&oe||Ie(e)};let je=v&&_.length>0;je=je||(T?J.length>0:null!==J);let Fe=ue;return C&&(new Map,Fe=ue.reduce(((e,t,n)=>{const r=C(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])),i&&ee&&Te(),{getRootProps:(e={})=>(0,s.Z)({"aria-owns":de?`${F}-listbox`:null,role:"combobox","aria-expanded":de},e,{onKeyDown:Se(e),onMouseDown:Ze,onClick:Le}),getInputLabelProps:()=>({id:`${F}-label`,htmlFor:F}),getInputProps:()=>({id:F,value:_,onBlur:Te,onFocus:Ee,onChange:Ae,onMouseDown:De,"aria-activedescendant":ce?"":null,"aria-autocomplete":t?"both":"list","aria-controls":de?`${F}-listbox`:void 0,autoComplete:"off",ref:V,autoCapitalize:"none",spellCheck:"false"}),getClearProps:()=>({tabIndex:-1,onClick:xe}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:Ie}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,onDelete:Be(e)}),getListboxProps:()=>({role:"listbox",id:`${F}-listbox`,"aria-labelledby":`${F}-label`,ref:ge,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(T?J:[J]).some((e=>null!=e&&k(t,e))),r=!!y&&y(t);return{key:z(t),tabIndex:-1,role:"option",id:`${F}-option-${e}`,onMouseOver:Re,onClick:Me,onTouchStart:Oe,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:F,inputValue:_,value:J,dirty:je,popupOpen:ce,focused:ee||-1!==G,anchorEl:U,setAnchorEl:Y,focusedTag:G,groupedOptions:Fe}}({sx:{width:"200px",align:"left"},id:"payment-methods",multiple:!0,options:"fiat"==e.optionsType?lm:cm,getOptionLabel:e=>e.name,onInputChange:e=>h(e&&e.target.value?e.target.value:""),onChange:(t,n)=>e.onAutocompleteChange(f(n)),onClose:()=>h((()=>""))}),[m,h]=(0,r.useState)();function f(e){for(var t="",n=e.length,r=0;r"")),(n||null==n)&&e.onAutocompleteChange(f(u)),!1}return r.createElement(em,null,r.createElement("div",{style:{height:"5px"}}),r.createElement("div",t(),r.createElement(tm,$p({},n(),{error:e.error}),e.label),r.createElement(nm,{ref:p,error:e.error,className:d?"focused":""},u.map(((e,t)=>r.createElement(om,$p({label:e.name,icon:e.icon},a({index:t}))))),r.createElement("input",$p({},o(),{value:m})))),c.length>0?r.createElement(im,i(),r.createElement("div",{style:{position:"fixed",minHeight:"20px",marginLeft:"53px",marginTop:"-13px"}},r.createElement(am,null,r.createElement("i",null,e.listHeaderText))),c.map(((e,t)=>r.createElement("li",l({option:e,index:t}),r.createElement(pt.Z,{fullWidth:!0,color:"inherit",size:"small",sx:{textTransform:"none"},style:{justifyContent:"flex-start"}},r.createElement("div",{style:{position:"relative",right:"4px",top:"4px"}},r.createElement(_p.Z,{style:{color:"#1976d2"},sx:{width:18,height:18}})),e.name),r.createElement("div",{style:{position:"relative",top:"5px"}},r.createElement(Gp.Z,null))))),null!=m&&m.length>2?r.createElement(pt.Z,{size:"small",fullWidth:!0,onClick:()=>g(o())},r.createElement(Kp.Z,{sx:{width:18,height:18}}),e.addNewButtonText):null):o().value.length>0?r.createElement(im,i(),r.createElement(pt.Z,{fullWidth:!0,onClick:()=>g(o())},r.createElement(Kp.Z,{sx:{width:20,height:20}}),e.addNewButtonText)):null)}var lm=[{name:"Revolut",icon:"revolut"},{name:"CashApp",icon:"cashapp"},{name:"Zelle",icon:"zelle"},{name:"Strike",icon:"strike"},{name:"Rebellion",icon:"rebellion"},{name:"Instant SEPA",icon:"sepa"},{name:"Interac e-Transfer",icon:"interac"},{name:"Wise",icon:"wise"},{name:"Venmo",icon:"venmo"},{name:"Faster Payments",icon:"faster"},{name:"Paypal",icon:"paypal"},{name:"LINE Pay",icon:"linepay"},{name:"PromptPay",icon:"promptpay"},{name:"Bizum",icon:"bizum"},{name:"N26",icon:"n26"},{name:"Amazon GiftCard",icon:"amazon"},{name:"Bancolombia",icon:"bancolombia"},{name:"SPEI",icon:"spei"},{name:"PIX",icon:"pix"},{name:"HalCash",icon:"halcash"},{name:"Vivid",icon:"vivid"},{name:"Google Play Gift Code",icon:"googleplay"},{name:"Nequi",icon:"nequi"},{name:"MercadoPago",icon:"mercadopago"},{name:"Monero",icon:"monero"},{name:"USDT",icon:"usdt"},{name:"Airtel Money",icon:"airtel"},{name:"MTN Money",icon:"mtn"},{name:"M-Pesa",icon:"mpesa"},{name:"MoMo",icon:"momo"},{name:"Tigo Pesa",icon:"tigopesa"},{name:"Cash F2F",icon:"cash"}],cm=[{name:"On-Chain BTC",icon:"onchain"},{name:"RBTC",icon:"rbtc"},{name:"LBTC",icon:"lbtc"},{name:"WBTC",icon:"wbtc"}],um=n(3595),dm=n(6517);const pm=JSON.parse('{"1":"USD","2":"EUR","3":"JPY","4":"GBP","5":"AUD","6":"CAD","7":"CHF","8":"CNY","9":"HKD","10":"NZD","11":"SEK","12":"KRW","13":"SGD","14":"NOK","15":"MXN","16":"KRW","17":"RUB","18":"ZAR","19":"TRY","20":"BRL","21":"CLP","22":"CZK","23":"DKK","24":"HRK","25":"HUF","26":"INR","27":"ISK","28":"PLN","29":"RON","30":"ARS","31":"VES","32":"COP","33":"PEN","34":"UYU","35":"PYG","36":"BOB","37":"IDR","38":"ANG","39":"CRC","40":"CUP","41":"DOP","42":"GHS","43":"GTQ","44":"ILS","45":"JMD","46":"KES","47":"KZT","48":"MYR","49":"NAD","50":"NGN","51":"AZN","52":"PAB","53":"PHP","54":"PKR","55":"QAR","56":"SAR","57":"THB","58":"TTD","59":"VND","60":"XOF","61":"TWD","300":"XAU","1000":"BTC"}');function mm(){return mm=Object.assign||function(e){for(var t=1;t{this.setState({type:e.target.value})})),hm(this,"handleCurrencyChange",(e=>{this.setState({currency:e.target.value,currencyCode:this.getCurrencyCode(e.target.value)}),this.state.enableAmountRange&&this.setState({minAmount:parseFloat(Number(.25*this.state.limits[e.target.value].max_amount).toPrecision(2)),maxAmount:parseFloat(Number(.75*this.state.limits[e.target.value].max_amount).toPrecision(2))})})),hm(this,"handleAmountChange",(e=>{this.setState({amount:e.target.value})})),hm(this,"handleMinAmountChange",(e=>{this.setState({minAmount:parseFloat(Number(e.target.value).toPrecision(e.target.value<100?2:3))})})),hm(this,"handleMaxAmountChange",(e=>{this.setState({maxAmount:parseFloat(Number(e.target.value).toPrecision(e.target.value<100?2:3))})})),hm(this,"handleRangeAmountChange",((e,t,n)=>{var r=this.getMaxAmount(),o=this.getMinAmount(),a=e.target.value[0],i=e.target.value[1],s=this.minRangeAmountMultiple,l=this.maxRangeAmountMultiple;a>r/s&&(a=r/s),ii/s?0===n?i=s*a:a=i/s:a{e.length>50?this.setState({badPaymentMethod:!0}):this.setState({payment_method:e.substring(0,53),badPaymentMethod:e.length>50})})),hm(this,"handlePremiumChange",(e=>{const{t}=this.props;if(e.target.value>999)var n=t("Must be less than {{max}}%",{max:999});e.target.value<=-100&&(n=t("Must be more than {{min}}%",{min:-100})),this.setState({premium:e.target.value,badPremium:n})})),hm(this,"handleSatoshisChange",(e=>{const{t}=this.props;if(e.target.value>this.maxTradeSats)var n=t("Must be less than {{maxSats}",{maxSats:gm(this.maxTradeSats)});e.target.value{this.setState({is_explicit:!1}),this.handlePremiumChange()})),hm(this,"handleClickExplicit",(e=>{this.state.enableAmountRange||(this.setState({is_explicit:!0}),this.handleSatoshisChange())})),hm(this,"handleCreateOfferButtonPressed",(()=>{null==this.state.amount&&this.setState({amount:0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":fm("csrftoken")},body:JSON.stringify({type:this.state.type,currency:this.state.currency,amount:this.state.has_range?null:this.state.amount,has_range:this.state.enableAmountRange,min_amount:this.state.minAmount,max_amount:this.state.maxAmount,payment_method:this.state.payment_method,is_explicit:this.state.is_explicit,premium:this.state.is_explicit?null:this.state.premium,satoshis:this.state.is_explicit?this.state.satoshis:null,public_duration:this.state.publicDuration,bond_size:this.state.bondSize,bondless_taker:this.state.allowBondless})};fetch("/api/make/",e).then((e=>e.json())).then((e=>this.setState({badRequest:e.bad_request})&(e.id?this.props.history.push("/order/"+e.id):"")))})),hm(this,"handleInputBondSizeChange",(e=>{this.setState({bondSize:""===e.target.value?1:Number(e.target.value)})})),hm(this,"StandardMakerOptions",(()=>{const{t:e}=this.props;return r.createElement(Me.Z,{elevation:12,style:{padding:8,width:"260px",align:"center"}},r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement("div",{style:{position:"relative",left:"5px"}},r.createElement(an.Z,{component:"fieldset"},r.createElement(sn.Z,null,e("Buy or Sell Bitcoin?")),r.createElement(bn,{row:!0,defaultValue:"0",onChange:this.handleTypeChange},r.createElement(vn.Z,{value:"0",control:r.createElement(Ln,{color:"primary"}),label:e("Buy"),labelPlacement:"Top"}),r.createElement(vn.Z,{value:"1",control:r.createElement(Ln,{color:"secondary"}),label:e("Sell"),labelPlacement:"Top"}))))),r.createElement(it,{containter:!0,xs:12,alignItems:"stretch",style:{display:"flex"}},r.createElement("div",{style:{maxWidth:150}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"500",enterDelay:"700",enterNextDelay:"2000",title:e("Amount of fiat to exchange for bitcoin")},r.createElement(ut.Z,{disabled:this.state.enableAmountRange,variant:this.state.enableAmountRange?"filled":"outlined",error:this.state.amount<=0&""!=this.state.amount,helperText:this.state.amount<=0&""!=this.state.amount?e("Invalid"):null,label:e("Amount"),type:"number",required:"true",value:this.state.amount,inputProps:{min:0,style:{textAlign:"center"}},onChange:this.handleAmountChange}))),r.createElement("div",null,r.createElement(Dn.Z,{sx:{width:"120px"},required:"true",defaultValue:this.defaultCurrency,inputProps:{style:{textAlign:"center"}},onChange:this.handleCurrencyChange},Object.entries(pm).map((([e,t])=>r.createElement(jn.Z,{value:parseInt(e)},r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},Hp(t)," "+t))))))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"300",enterDelay:"700",enterNextDelay:"2000",title:e("Enter your preferred fiat payment methods. Fast methods are highly recommended.")},r.createElement(sm,{onAutocompleteChange:this.handlePaymentMethodChange,optionsType:1e3==this.state.currency?"swap":"fiat",error:this.state.badPaymentMethod,helperText:this.state.badPaymentMethod?e("Must be shorter than 65 characters"):"",label:1e3==this.state.currency?e("Swap Destination(s)"):e("Fiat Payment Method(s)"),listHeaderText:e("You can add any method"),addNewButtonText:e("Add New")}))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(an.Z,{component:"fieldset"},r.createElement(sn.Z,null,r.createElement("div",{align:"center"},e("Choose a Pricing Method"))),r.createElement(bn,{row:!0,defaultValue:"relative"},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",enterDelay:"1000",enterNextDelay:"2000",title:e("Let the price move with the market")},r.createElement(vn.Z,{value:"relative",control:r.createElement(Ln,{color:"primary"}),label:e("Relative"),labelPlacement:"Top",onClick:this.handleClickRelative})),r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",enterDelay:"1000",enterNextDelay:"2000",title:e("Set a fix amount of satoshis")},r.createElement(vn.Z,{disabled:this.state.enableAmountRange,value:"explicit",control:r.createElement(Ln,{color:"secondary"}),label:e("Explicit"),labelPlacement:"Top",onClick:this.handleClickExplicit}))))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement("div",{style:{display:this.state.is_explicit?"":"none"}},r.createElement(ut.Z,{sx:{width:240},label:e("Satoshis"),error:this.state.badSatoshis,helperText:this.state.badSatoshis,type:"number",required:"true",value:this.state.satoshis,inputProps:{min:this.minTradeSats,max:this.maxTradeSats,style:{textAlign:"center"}},onChange:this.handleSatoshisChange})),r.createElement("div",{style:{display:this.state.is_explicit?"none":""}},r.createElement(ut.Z,{sx:{width:240},error:this.state.badPremium,helperText:this.state.badPremium,label:e("Premium over Market (%)"),type:"number",inputProps:{min:-100,max:999,style:{textAlign:"center"}},onChange:this.handlePremiumChange}))))})),hm(this,"handleChangePublicDuration",(e=>{let t=new Date(e);var n=60*t.getHours()*60+60*t.getMinutes();this.setState({changedPublicExpiryTime:!0,publicExpiryTime:e,publicDuration:n,badDuration:!1})})),hm(this,"getMaxAmount",(()=>{if(null==this.state.limits)var e=null;else e=this.state.limits[this.state.currency].max_amount*(1+this.state.premium/100);return parseFloat(Number(.98*e).toPrecision(2))})),hm(this,"getMinAmount",(()=>{if(null==this.state.limits)var e=null;else e=this.state.limits[this.state.currency].min_amount*(1+this.state.premium/100);return parseFloat(Number(1.1*e).toPrecision(2))})),hm(this,"RangeSlider",(0,Ie.ZP)(Cr)((({theme:e})=>({color:"primary",height:3,padding:"13px 0","& .MuiSlider-thumb":{height:27,width:27,backgroundColor:"#fff",border:"1px solid currentColor","&:hover":{boxShadow:"0 0 0 8px rgba(58, 133, 137, 0.16)"},"& .range-bar":{height:9,width:1,backgroundColor:"currentColor",marginLeft:1,marginRight:1}},"& .MuiSlider-track":{height:3},"& .MuiSlider-rail":{color:"dark"===e.palette.mode?"#bfbfbf":"#d8d8d8",opacity:"dark"===e.palette.mode?void 0:1,height:3}})))),hm(this,"minAmountError",(()=>this.state.minAmountthis.state.maxAmount)),hm(this,"maxAmountError",(()=>this.state.maxAmount>this.getMaxAmount()||this.state.maxAmountthis.state.maxAmount)),hm(this,"rangeText",(()=>{const{t:e}=this.props;return r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},r.createElement("span",{style:{width:40}},e("From")),r.createElement(ut.Z,{variant:"standard",type:"number",size:"small",value:this.state.minAmount,onChange:this.handleMinAmountChange,error:this.minAmountError(),sx:{width:9*this.state.minAmount.toString().length,maxWidth:40}}),r.createElement("span",{style:{width:20}},e("to")),r.createElement(ut.Z,{variant:"standard",size:"small",type:"number",value:this.state.maxAmount,error:this.maxAmountError(),onChange:this.handleMaxAmountChange,sx:{width:9*this.state.maxAmount.toString().length,maxWidth:50}}),r.createElement("span",null,this.state.currencyCode))})),hm(this,"AdvancedMakerOptions",(()=>{const{t:e}=this.props;return r.createElement(Me.Z,{elevation:12,style:{padding:8,width:"280px",align:"center"}},r.createElement(it,{container:!0,xs:12,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement(an.Z,{align:"center"},r.createElement(sn.Z,null,r.createElement(lt.Z,{enterTouchDelay:"0",placement:"top",align:"center",title:e("Let the taker chose an amount within the range")},r.createElement("div",{align:"center",style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},r.createElement(xr.Z,{onChange:e=>this.setState({enableAmountRange:e.target.checked,is_explicit:!1})&(e.target.checked?this.getLimits():null)}),this.state.enableAmountRange&null!=this.state.minAmount?r.createElement(this.rangeText,null):e("Enable Amount Range")))),r.createElement("div",{style:{display:1==this.state.loadingLimits?"":"none"}},r.createElement(Wr,null)),r.createElement("div",{style:{display:0==this.state.loadingLimits?"":"none"}},r.createElement(this.RangeSlider,{disableSwap:!0,sx:{width:200,align:"center"},disabled:!this.state.enableAmountRange||this.state.loadingLimits,value:[this.state.minAmount,this.state.maxAmount],step:(this.getMaxAmount()-this.getMinAmount())/5e3,valueLabelDisplay:"auto",components:{Thumb:this.RangeThumbComponent},valueLabelFormat:e=>parseFloat(Number(e).toPrecision(e<100?2:3))+" "+this.state.currencyCode,marks:null==this.state.limits?null:[{value:this.getMinAmount(),label:this.getMinAmount()+" "+this.state.currencyCode},{value:this.getMaxAmount(),label:this.getMaxAmount()+" "+this.state.currencyCode}],min:this.getMinAmount(),max:this.getMaxAmount(),onChange:this.handleRangeAmountChange})))),r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement(Ko,{dateAdapter:Md},r.createElement(Hl,{sx:{width:210,align:"center"},ampm:!1,openTo:"hours",views:["hours","minutes"],inputFormat:"HH:mm",mask:"__:__",components:{OpenPickerIcon:dm.Z},open:this.state.openTimePicker,InputProps:{endAdornment:r.createElement(Qr,{position:"end"},r.createElement(dm.Z,null))},renderInput:e=>r.createElement(ut.Z,e),label:e("Public Duration (HH:mm)"),value:this.state.publicExpiryTime,onChange:this.handleChangePublicDuration,minTime:new Date(0,0,0,0,10),maxTime:new Date(0,0,0,23,59)}))),r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement(an.Z,{align:"center"},r.createElement(lt.Z,{enterDelay:"800",enterTouchDelay:"0",placement:"top",title:e("Set the skin-in-the-game, increase for higher safety assurance")},r.createElement(sn.Z,null,r.createElement("div",{align:"center",style:{display:"flex",flexWrap:"wrap",transform:"translate(20%, 0)"}},e("Fidelity Bond Size")," ",r.createElement(um.Z,{sx:{height:20,width:20}})))),r.createElement(Cr,{sx:{width:220,align:"center"},"aria-label":"Bond Size (%)",defaultValue:1,valueLabelDisplay:"auto",valueLabelFormat:e=>e+"%",step:.25,marks:[{value:1,label:"1%"},{value:5,label:"5%"},{value:10,label:"10%"},{value:15,label:"15%"}],min:1,max:15,onChange:e=>this.setState({bondSize:e.target.value})}))),r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement(lt.Z,{enterTouchDelay:"0",title:e("COMING SOON - High risk! Limited to {{limitSats}}K Sats",{limitSats:this.maxBondlessSats/1e3})},r.createElement(vn.Z,{label:e("Allow bondless takers"),control:r.createElement(xr.Z,{disabled:!0,color:"secondary",checked:this.state.allowBondless,onChange:()=>this.setState({allowBondless:!this.state.allowBondless})})})))))})),hm(this,"makeOrderBox",(()=>{const[e,t]=r.useState(this.state.showAdvanced),{t:n}=this.props;return r.createElement(oo,{sx:{width:this.state.showAdvanced?"270px":"252px"}},r.createElement(oo,{sx:{borderBottom:1,borderColor:"divider",position:"relative",left:"5px"}},r.createElement(No,{value:e||0,onChange:(e,n)=>{this.setState({showAdvanced:n}),t(n)},variant:"fullWidth"},r.createElement(Go,mm({label:n("Order")},this.a11yProps(0))),r.createElement(Go,mm({label:n("Customize")},this.a11yProps(1))))),r.createElement(it,{item:!0,xs:12,align:"center",spacing:1},r.createElement("div",{style:{display:0==this.state.showAdvanced?"":"none"}},r.createElement(this.StandardMakerOptions,null)),r.createElement("div",{style:{display:1==this.state.showAdvanced?"":"none"}},r.createElement(this.AdvancedMakerOptions,null))))})),this.state={is_explicit:!1,type:0,currency:this.defaultCurrency,currencyCode:this.defaultCurrencyCode,payment_method:this.defaultPaymentMethod,premium:0,satoshis:null,showAdvanced:!1,allowBondless:!1,publicExpiryTime:new Date(0,0,0,23,59),enableAmountRange:!1,minAmount:null,bondSize:1,limits:null,minAmount:null,maxAmount:null,loadingLimits:!1}}getLimits(){this.setState({loadingLimits:!0}),fetch("/api/limits/").then((e=>e.json())).then((e=>this.setState({limits:e,loadingLimits:!1,minAmount:this.state.amount?parseFloat((this.state.amount/2).toPrecision(2)):parseFloat(Number(.25*e[this.state.currency].max_amount).toPrecision(2)),maxAmount:this.state.amount?this.state.amount:parseFloat(Number(.75*e[this.state.currency].max_amount).toPrecision(2))})))}a11yProps(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}getCurrencyCode(e){return pm[e.toString()]}RangeThumbComponent(e){const{children:t,...n}=e;return r.createElement(gr,n,t,r.createElement("span",{className:"range-bar"}),r.createElement("span",{className:"range-bar"}),r.createElement("span",{className:"range-bar"}))}render(){const{t:e}=this.props;return r.createElement(it,{container:!0,xs:12,align:"center",spacing:1,sx:{minWidth:380}},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(this.makeOrderBox,null)),r.createElement(it,{item:!0,xs:12,align:"center"},null==this.state.amount&(0==this.state.enableAmountRange||this.state.loadingLimits)||this.state.enableAmountRange&(this.minAmountError()||this.maxAmountError())||this.state.amount<=0&!this.state.enableAmountRange||this.state.is_explicit&(null!=this.state.badSatoshis||null==this.state.satoshis)||!this.state.is_explicit&null!=this.state.badPremium?r.createElement(lt.Z,{enterTouchDelay:"0",title:e("You must fill the order correctly")},r.createElement("div",null,r.createElement(pt.Z,{disabled:!0,color:"primary",variant:"contained",onClick:this.handleCreateOfferButtonPressed},e("Create Order")))):r.createElement(pt.Z,{color:"primary",variant:"contained",onClick:this.handleCreateOfferButtonPressed},e("Create Order"))),r.createElement(it,{item:!0,xs:12,align:"center"},this.state.badRequest?r.createElement(st.Z,{component:"subtitle2",variant:"subtitle2",color:"secondary"},this.state.badRequest," ",r.createElement("br",null)):"",r.createElement(st.Z,{component:"subtitle2",variant:"subtitle2"},r.createElement("div",{align:"center"},0==this.state.type?e("Create a BTC buy order for "):e("Create a BTC sell order for "),this.state.enableAmountRange&null!=this.state.minAmount?this.state.minAmount+"-"+this.state.maxAmount:gm(this.state.amount)," "+this.state.currencyCode,this.state.is_explicit?e(" of {{satoshis}} Satoshis",{satoshis:gm(this.state.satoshis)}):0==this.state.premium?e(" at market price"):this.state.premium>0?e(" at a {{premium}}% premium",{premium:this.state.premium}):e(" at a {{discount}}% discount",{discount:-this.state.premium}))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{color:"secondary",variant:"contained",to:"/",component:K},e("Back")))))}}const vm=xe()(bm);var ym=n(9773);function wm(e){return(0,Ze.Z)("MuiListItemButton",e)}const km=(0,Le.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Cm=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],xm=(0,Ie.ZP)(go.Z,{shouldForwardProp:e=>(0,Ie.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${km.selected}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${km.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${km.selected}:hover`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${km.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${km.disabled}`]:{opacity:e.palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Sm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:a=!1,component:i="div",children:l,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:p,selected:m=!1}=n,h=(0,M.Z)(n,Cm),f=r.useContext(ym.Z),g={dense:c||f.dense||!1,alignItems:o,disableGutters:u},b=r.useRef(null);(0,$o.Z)((()=>{a&&b.current&&b.current.focus()}),[a]);const v=(0,s.Z)({},n,{alignItems:o,dense:g.dense,disableGutters:u,divider:d,selected:m}),y=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:a,divider:i,selected:l}=e,c={root:["root",r&&"dense",!a&&"gutters",i&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},u=(0,Ee.Z)(c,wm,n);return(0,s.Z)({},n,u)})(v),w=(0,Mt.Z)(b,t);return(0,Ne.jsx)(ym.Z.Provider,{value:g,children:(0,Ne.jsx)(xm,(0,s.Z)({ref:w,component:i,focusVisibleClassName:(0,Se.Z)(y.focusVisible,p),ownerState:v},h,{classes:y,children:l}))})})),Em=Sm;function Pm(e){return(0,Ze.Z)("MuiListItemAvatar",e)}(0,Le.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Tm=["className"],Am=(0,Ie.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({ownerState:e})=>(0,s.Z)({minWidth:56,flexShrink:0},"flex-start"===e.alignItems&&{marginTop:8}))),Rm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemAvatar"}),{className:o}=n,a=(0,M.Z)(n,Tm),i=r.useContext(ym.Z),l=(0,s.Z)({},n,{alignItems:i.alignItems}),c=(e=>{const{alignItems:t,classes:n}=e,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return(0,Ee.Z)(r,Pm,n)})(l);return(0,Ne.jsx)(Am,(0,s.Z)({className:(0,Se.Z)(c.root,o),ownerState:l,ref:t},a))})),Om=Rm;var Mm=n(9346),Bm=n(6336);const Im=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Zm=(0,Ie.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bm.Z.primary}`]:t.primary},{[`& .${Bm.Z.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>(0,s.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),Lm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p}=n,m=(0,M.Z)(n,Im),{dense:h}=r.useContext(ym.Z);let f=null!=c?c:o,g=d;const b=(0,s.Z)({},n,{disableTypography:i,inset:l,primary:!!f,secondary:!!g,dense:h}),v=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e,i={root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,Ee.Z)(i,Bm.L,t)})(b);return null==f||f.type===st.Z||i||(f=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:h?"body2":"body1",className:v.primary,component:"span",display:"block"},u,{children:f}))),null==g||g.type===st.Z||i||(g=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},p,{children:g}))),(0,Ne.jsxs)(Zm,(0,s.Z)({className:(0,Se.Z)(v.root,a),ownerState:b,ref:t},m,{children:[f,g]}))})),Dm=Lm;var jm=n(428);const Fm=[{name:"Revolut",icon:"revolut"},{name:"CashApp",icon:"cashapp"},{name:"Zelle",icon:"zelle"},{name:"Strike",icon:"strike"},{name:"Rebellion",icon:"rebellion"},{name:"Instant SEPA",icon:"sepa"},{name:"Interac e-Transfer",icon:"interac"},{name:"Wise",icon:"wise"},{name:"Venmo",icon:"venmo"},{name:"Faster Payments",icon:"faster"},{name:"Paypal",icon:"paypal"},{name:"LINE Pay",icon:"linepay"},{name:"PromptPay",icon:"promptpay"},{name:"Bizum",icon:"bizum"},{name:"N26",icon:"n26"},{name:"Amazon GiftCard",icon:"amazon"},{name:"Bancolombia",icon:"bancolombia"},{name:"SPEI",icon:"spei"},{name:"PIX",icon:"pix"},{name:"HalCash",icon:"halcash"},{name:"Vivid",icon:"vivid"},{name:"Google Play Gift Code",icon:"googleplay"},{name:"Nequi",icon:"nequi"},{name:"MercadoPago",icon:"mercadopago"},{name:"Monero",icon:"monero"},{name:"USDT",icon:"usdt"},{name:"Airtel Money",icon:"airtel"},{name:"MTN Money",icon:"mtn"},{name:"M-Pesa",icon:"mpesa"},{name:"MoMo",icon:"momo"},{name:"Tigo Pesa",icon:"tigopesa"},{name:"Cash F2F",icon:"cash"},{name:"On-Chain BTC",icon:"onchain"},{name:"RBTC",icon:"rbtc"},{name:"LBTC",icon:"lbtc"},{name:"WBTC",icon:"wbtc"}];class zm extends r.Component{constructor(e){super(e)}parseText(){var e=[],t=this.props.text;Fm.forEach(((n,o)=>{this.props.text.includes(n.name)&&(t=t.replace(n.name,""),e.push(r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:n.name},r.createElement("div",{style:{display:"inline-block",width:this.props.size+2,height:this.props.size}},r.createElement(Qp,{width:this.props.size,height:this.props.size,icon:n.icon})))))}));var n=t.replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","");return console.log(n),n.length>0&&e.push(r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:this.props.verbose?this.props.othersText:this.props.othersText+": "+t},r.createElement("div",{style:{position:"relative",display:"inline-block",width:this.props.size+2,maxHeight:this.props.size,top:"-1px"}},r.createElement(Qp,{width:1.1*this.props.size,height:1.1*this.props.size,icon:"custom"})))),this.props.verbose?r.createElement(r.Fragment,null,e," ",r.createElement("div",{style:{display:"inline-block"}}," ",r.createElement("span",null,t))):e}render(){return r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},this.parseText())}}function Nm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Hm extends r.Component{constructor(e){super(e),Nm(this,"handleRowClick",(e=>{this.props.history.push("/order/"+e)})),Nm(this,"handleTypeChange",(e=>{this.setState({loading:!0}),this.props.setAppState({bookType:e.target.value}),this.getOrderDetails(e.target.value,this.props.currency)})),Nm(this,"handleCurrencyChange",(e=>{var t=e.target.value;this.setState({loading:!0}),this.props.setAppState({bookCurrency:t,bookCurrencyCode:this.getCurrencyCode(t)}),this.getOrderDetails(this.props.type,t)})),Nm(this,"amountToString",((e,t,n,r)=>t?this.pn(parseFloat(Number(n).toPrecision(2)))+"-"+this.pn(parseFloat(Number(r).toPrecision(2))):this.pn(parseFloat(Number(e).toPrecision(3))))),Nm(this,"bookListTableDesktop",(()=>{const{t:e}=this.props;return r.createElement("div",{style:{height:422,width:"100%"}},r.createElement(jm._$r,{rows:this.state.orders.map((t=>({id:t.id,avatar:window.location.origin+"/static/assets/avatars/"+t.maker_nick+".png",robot:t.maker_nick,robot_status:t.maker_status,type:t.type?e("Seller"):e("Buyer"),amount:t.amount,has_range:t.has_range,min_amount:t.min_amount,max_amount:t.max_amount,currency:this.getCurrencyCode(t.currency),payment_method:t.payment_method,price:t.price,premium:t.premium}))),loading:this.state.loading,columns:[{field:"robot",headerName:e("Robot"),width:240,renderCell:t=>r.createElement(Em,{style:{cursor:"pointer"}},r.createElement(Om,null,r.createElement(lt.Z,{placement:"right",enterTouchDelay:"0",title:e(t.row.robot_status)},r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(t.row.robot_status)},r.createElement("div",{style:{width:45,height:45}},r.createElement(kt.Z,{className:"bookAvatar",disableError:"true",disableSpinner:"true",color:"null",alt:t.row.robot,src:t.row.avatar}))))),r.createElement(Dm,{primary:t.row.robot}))},{field:"type",headerName:e("Is"),width:60},{field:"amount",headerName:e("Amount"),type:"number",width:90,renderCell:e=>r.createElement("div",{style:{cursor:"pointer"}},this.amountToString(e.row.amount,e.row.has_range,e.row.min_amount,e.row.max_amount))},{field:"currency",headerName:e("Currency"),width:100,renderCell:e=>r.createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center",flexWrap:"wrap"}},e.row.currency+" ",Hp(e.row.currency))},{field:"payment_method",headerName:e("Payment Method"),width:180,renderCell:t=>r.createElement("div",{style:{cursor:"pointer"}},r.createElement(zm,{othersText:e("Others"),verbose:!0,size:20,text:t.row.payment_method}))},{field:"price",headerName:e("Price"),type:"number",width:140,renderCell:e=>r.createElement("div",{style:{cursor:"pointer"}},this.pn(e.row.price)+" "+e.row.currency+"/BTC")},{field:"premium",headerName:e("Premium"),type:"number",width:100,renderCell:e=>r.createElement("div",{style:{cursor:"pointer"}},parseFloat(parseFloat(e.row.premium).toFixed(4))+"%")}],pageSize:this.state.loading?0:this.state.pageSize,rowsPerPageOptions:[6,20,50],onPageSizeChange:e=>this.setState({pageSize:e}),onRowClick:e=>this.handleRowClick(e.row.id)}))})),Nm(this,"bookListTablePhone",(()=>{const{t:e}=this.props;return r.createElement("div",{style:{height:422,width:"100%"}},r.createElement(jm._$r,{loading:this.state.loading,rows:this.state.orders.map((t=>({id:t.id,avatar:window.location.origin+"/static/assets/avatars/"+t.maker_nick+".png",robot:t.maker_nick,robot_status:t.maker_status,type:t.type?e("Seller"):e("Buyer"),amount:t.amount,has_range:t.has_range,min_amount:t.min_amount,max_amount:t.max_amount,currency:this.getCurrencyCode(t.currency),payment_method:t.payment_method,price:t.price,premium:t.premium}))),columns:[{field:"robot",headerName:e("Robot"),width:64,renderCell:t=>r.createElement(lt.Z,{placement:"right",enterTouchDelay:"0",title:t.row.robot+" ("+e(t.row.robot_status)+")"},r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(t.row.robot_status)},r.createElement("div",{style:{width:45,height:45}},r.createElement(kt.Z,{className:"bookAvatar",disableError:"true",disableSpinner:"true",color:"null",alt:t.row.robot,src:t.row.avatar}))))},{field:"type",headerName:e("Is"),width:60,hide:"true"},{field:"amount",headerName:e("Amount"),type:"number",width:84,renderCell:t=>r.createElement(lt.Z,{placement:"right",enterTouchDelay:"0",title:e(t.row.type)},r.createElement("div",{style:{cursor:"pointer"}},this.amountToString(t.row.amount,t.row.has_range,t.row.min_amount,t.row.max_amount)))},{field:"currency",headerName:e("Currency"),width:85,renderCell:e=>r.createElement("div",{style:{cursor:"pointer",display:"flex",alignItems:"center",flexWrap:"wrap"}},e.row.currency+" ",Hp(e.row.currency))},{field:"payment_method",headerName:e("Payment Method"),width:180,hide:"true"},{field:"payment_icons",headerName:e("Pay"),width:75,renderCell:t=>r.createElement("div",{style:{position:"relative",left:"-4px",cursor:"pointer",align:"center"}},r.createElement(zm,{othersText:e("Others"),size:16,text:t.row.payment_method}))},{field:"price",headerName:e("Price"),type:"number",width:140,hide:"true",renderCell:e=>r.createElement("div",{style:{cursor:"pointer"}},this.pn(e.row.price)+" "+e.row.currency+"/BTC")},{field:"premium",headerName:e("Premium"),type:"number",width:85,renderCell:e=>r.createElement(lt.Z,{placement:"left",enterTouchDelay:"0",title:this.pn(e.row.price)+" "+e.row.currency+"/BTC"},r.createElement("div",{style:{cursor:"pointer"}},parseFloat(parseFloat(e.row.premium).toFixed(4))+"%"))}],pageSize:this.state.loading?0:this.state.pageSize,rowsPerPageOptions:[6,20,50],onPageSizeChange:e=>this.setState({pageSize:e}),onRowClick:e=>this.handleRowClick(e.row.id)}))})),this.state={orders:new Array({id:0}),loading:!0,pageSize:6},this.getOrderDetails(this.props.type,this.props.currency)}getOrderDetails(e,t){fetch("/api/book?currency="+t+"&type="+e).then((e=>e.json())).then((e=>this.setState({orders:e,not_found:e.not_found,loading:!1})))}getCurrencyCode(e){const{t}=this.props;return e?0==e?t("ANY_currency"):pm[e.toString()]:t("ANY_currency")}pn(e){if(null==e)return"null";var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}statusBadgeColor(e){return"Active"==e?"success":"Seen recently"==e?"warning":"Inactive"==e?"error":void 0}render(){const{t:e}=this.props;return r.createElement(it,{className:"orderBook",container:!0,spacing:1,sx:{minWidth:400}},r.createElement(it,{item:!0,xs:6,align:"right"},r.createElement(an.Z,{align:"center"},r.createElement(sn.Z,{align:"center"},e("I want to")),r.createElement(Dn.Z,{sx:{width:90},autoWidth:!0,label:e("Select Order Type"),required:"true",value:this.props.type,inputProps:{style:{textAlign:"center"}},onChange:this.handleTypeChange}," ",r.createElement(jn.Z,{value:2},e("ANY_type")),r.createElement(jn.Z,{value:1},e("BUY")),r.createElement(jn.Z,{value:0},e("SELL"))))),r.createElement(it,{item:!0,xs:6,align:"left"},r.createElement(an.Z,{align:"center"},r.createElement(sn.Z,{align:"center"},0==this.props.type?e("and receive"):1==this.props.type?e("and pay with"):e("and use")),r.createElement(Dn.Z,{sx:{width:110},label:e("Select Payment Currency"),required:"true",value:this.props.currency,inputProps:{style:{textAlign:"center"}},onChange:this.handleCurrencyChange}," ",r.createElement(jn.Z,{value:0},"🌍 "+e("ANY_currency")),Object.entries(pm).map((([e,t])=>r.createElement(jn.Z,{value:parseInt(e)},r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},Hp(t)," "+t))))))),this.state.not_found?"":r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h5",variant:"h5"},0==this.props.type?e("You are SELLING BTC for {{currencyCode}}",{currencyCode:this.props.currencyCode}):1==this.props.type?e("You are BUYING BTC for {{currencyCode}}",{currencyCode:this.props.currencyCode}):e("You are looking at all"))),this.state.not_found?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h5",variant:"h5"},0==this.props.type?e("No orders found to sell BTC for {{currencyCode}}",{currencyCode:this.props.currencyCode}):e("No orders found to buy BTC for {{currencyCode}}",{currencyCode:this.props.currencyCode}))),r.createElement("br",null),r.createElement(it,{item:!0},r.createElement(pt.Z,{size:"large",variant:"contained",color:"primary",to:"/make/",component:K},e("Make Order"))),r.createElement(st.Z,{color:"primary",component:"body1",variant:"body1"},e("Be the first one to create an order"),r.createElement("br",null),r.createElement("br",null))):r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(Yt(),{minWidth:930},r.createElement(Me.Z,{elevation:0,style:{width:925,maxHeight:500,overflow:"auto"}},r.createElement(this.bookListTableDesktop,null))),r.createElement(Yt(),{maxWidth:929},r.createElement(Me.Z,{elevation:0,style:{width:395,maxHeight:450,overflow:"auto"}},r.createElement(this.bookListTablePhone,null)))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{color:"secondary",variant:"contained",to:"/",component:K},e("Back"))))}}const Vm=xe()(Hm),Wm=["className","id"],Um=(0,Ie.ZP)(st.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Ym=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=(0,M.Z)(n,Wm),l=n,c=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"]},xt,t)})(l),{titleId:u=a}=r.useContext(Fe);return(0,Ne.jsx)(Um,(0,s.Z)({component:"h2",className:(0,Se.Z)(c.root,o),ownerState:l,ref:t,variant:"h6",id:u},i))})),Gm=Ym;function qm(e){return(0,Ze.Z)("MuiDialogContentText",e)}(0,Le.Z)("MuiDialogContentText",["root"]);const Km=["children"],Xm=(0,Ie.ZP)(st.Z,{shouldForwardProp:e=>(0,Ie.FO)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiDialogContentText"}),r=(0,M.Z)(n,Km),o=(e=>{const{classes:t}=e,n=(0,Ee.Z)({root:["root"]},qm,t);return(0,s.Z)({},t,n)})(r);return(0,Ne.jsx)(Xm,(0,s.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:r},n,{classes:o}))})),Qm=Jm;var _m=n(2440),$m=n(8502);function eh(e){return(0,Ze.Z)("MuiListItem",e)}const th=(0,Le.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function nh(e){return(0,Ze.Z)("MuiListItemSecondaryAction",e)}(0,Le.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);const rh=["className"],oh=(0,Ie.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,s.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),ah=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=n,a=(0,M.Z)(n,rh),i=r.useContext(ym.Z),l=(0,s.Z)({},n,{disableGutters:i.disableGutters}),c=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,Ee.Z)(r,nh,n)})(l);return(0,Ne.jsx)(oh,(0,s.Z)({className:(0,Se.Z)(c.root,o),ownerState:l,ref:t},a))}));ah.muiName="ListItemSecondaryAction";const ih=ah,sh=["className"],lh=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],ch=(0,Ie.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,s.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${km.root}`]:{paddingRight:48}},{[`&.${th.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${th.selected}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${th.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${th.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${th.selected}:hover`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),uh=(0,Ie.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),dh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItem"}),{alignItems:o="center",autoFocus:a=!1,button:i=!1,children:l,className:c,component:u,components:d={},componentsProps:p={},ContainerComponent:m="li",ContainerProps:{className:h}={},dense:f=!1,disabled:g=!1,disableGutters:b=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:w,secondaryAction:k,selected:C=!1}=n,x=(0,M.Z)(n.ContainerProps,sh),S=(0,M.Z)(n,lh),E=r.useContext(ym.Z),P={dense:f||E.dense||!1,alignItems:o,disableGutters:b},T=r.useRef(null);(0,$o.Z)((()=>{a&&T.current&&T.current.focus()}),[a]);const A=r.Children.toArray(l),R=A.length&&(0,$m.Z)(A[A.length-1],["ListItemSecondaryAction"]),O=(0,s.Z)({},n,{alignItems:o,autoFocus:a,button:i,dense:P.dense,disabled:g,disableGutters:b,disablePadding:v,divider:y,hasSecondaryAction:R,selected:C}),B=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",o&&"dense",!i&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,Ee.Z)(d,eh,r)})(O),I=(0,Mt.Z)(T,t),Z=d.Root||ch,L=p.root||{},D=(0,s.Z)({className:(0,Se.Z)(B.root,L.className,c),disabled:g},S);let j=u||"li";return i&&(D.component=u||"div",D.focusVisibleClassName=(0,Se.Z)(th.focusVisible,w),j=go.Z),R?(j=D.component||u?j:"div","li"===m&&("li"===j?j="div":"li"===D.component&&(D.component="div")),(0,Ne.jsx)(ym.Z.Provider,{value:P,children:(0,Ne.jsxs)(uh,(0,s.Z)({as:m,className:(0,Se.Z)(B.container,h),ref:I,ownerState:O},x,{children:[(0,Ne.jsx)(Z,(0,s.Z)({},L,!(0,Fn.Z)(Z)&&{as:j,ownerState:(0,s.Z)({},O,L.ownerState)},D,{children:A})),A.pop()]}))})):(0,Ne.jsx)(ym.Z.Provider,{value:P,children:(0,Ne.jsxs)(Z,(0,s.Z)({},L,{as:j,ref:I,ownerState:O},!(0,Fn.Z)(Z)&&{ownerState:(0,s.Z)({},O,L.ownerState)},D,{children:[A,k&&(0,Ne.jsx)(ih,{children:k})]}))})})),ph=dh,mh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function hh(e){return(0,Ze.Z)("MuiAvatar",e)}(0,Le.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const fh=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],gh=(0,Ie.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>(0,s.Z)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:e.shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&{color:e.palette.background.default,backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]}))),bh=(0,Ie.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),vh=(0,Ie.ZP)(mh,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),yh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiAvatar"}),{alt:o,children:a,className:i,component:l="div",imgProps:c,sizes:u,src:d,srcSet:p,variant:m="circular"}=n,h=(0,M.Z)(n,fh);let f=null;const g=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:o}){const[a,i]=r.useState(!1);return r.useEffect((()=>{if(!n&&!o)return;i(!1);let r=!0;const a=new Image;return a.onload=()=>{r&&i("loaded")},a.onerror=()=>{r&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,o&&(a.srcset=o),()=>{r=!1}}),[e,t,n,o]),a}((0,s.Z)({},c,{src:d,srcSet:p})),b=d||p,v=b&&"error"!==g,y=(0,s.Z)({},n,{colorDefault:!v,component:l,variant:m}),w=(e=>{const{classes:t,variant:n,colorDefault:r}=e,o={root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]};return(0,Ee.Z)(o,hh,t)})(y);return f=v?(0,Ne.jsx)(bh,(0,s.Z)({alt:o,src:d,srcSet:p,sizes:u,ownerState:y,className:w.img},c)):null!=a?a:b&&o?o[0]:(0,Ne.jsx)(vh,{className:w.fallback}),(0,Ne.jsx)(gh,(0,s.Z)({as:l,ownerState:y,className:(0,Se.Z)(w.root,i),ref:t},h,{children:f}))})),wh=yh;var kh=n(5097);const Ch=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],xh=(0,Ie.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>(0,s.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:e.palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:(0,mt.Fq)(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({theme:e,ownerState:t})=>(0,s.Z)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${e.palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>(0,s.Z)({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${e.palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>(0,s.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Sh=(0,Ie.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Eh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=("hr"!==i?"separator":void 0),textAlign:p="center",variant:m="fullWidth"}=n,h=(0,M.Z)(n,Ch),f=(0,s.Z)({},n,{absolute:r,component:i,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:m}),g=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]};return(0,Ee.Z)(c,kh.V,r)})(f);return(0,Ne.jsx)(xh,(0,s.Z)({as:i,className:(0,Se.Z)(g.root,a),role:d,ref:t,ownerState:f},h,{children:o?(0,Ne.jsx)(Sh,{className:g.wrapper,ownerState:f,children:o}):null}))})),Ph=Eh,Th=(0,wn.Z)((0,Ne.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Ah(e){return(0,Ze.Z)("MuiChip",e)}const Rh=(0,Le.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]),Oh=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],Mh=(0,Ie.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,clickable:o,onDelete:a,size:i,variant:s}=n;return[{[`& .${Rh.avatar}`]:t.avatar},{[`& .${Rh.avatar}`]:t[`avatar${(0,Te.Z)(i)}`]},{[`& .${Rh.avatar}`]:t[`avatarColor${(0,Te.Z)(r)}`]},{[`& .${Rh.icon}`]:t.icon},{[`& .${Rh.icon}`]:t[`icon${(0,Te.Z)(i)}`]},{[`& .${Rh.icon}`]:t[`iconColor${(0,Te.Z)(r)}`]},{[`& .${Rh.deleteIcon}`]:t.deleteIcon},{[`& .${Rh.deleteIcon}`]:t[`deleteIcon${(0,Te.Z)(i)}`]},{[`& .${Rh.deleteIcon}`]:t[`deleteIconColor${(0,Te.Z)(r)}`]},{[`& .${Rh.deleteIcon}`]:t[`deleteIconOutlinedColor${(0,Te.Z)(r)}`]},t.root,t[`size${(0,Te.Z)(i)}`],t[`color${(0,Te.Z)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,Te.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,Te.Z)(r)}`],t[s],"outlined"===s&&t[`outlined${(0,Te.Z)(r)}`]]}})((({theme:e,ownerState:t})=>{const n=(0,mt.Fq)(e.palette.text.primary,.26);return(0,s.Z)({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Rh.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Rh.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${Rh.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${Rh.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${Rh.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Rh.icon}`]:(0,s.Z)({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${Rh.deleteIcon}`]:(0,s.Z)({WebkitTapHighlightColor:"transparent",color:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,mt.Fq)(n,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:(0,mt.Fq)(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${Rh.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${Rh.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>(0,s.Z)({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:(0,mt.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Rh.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${Rh.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>(0,s.Z)({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Rh.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${Rh.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${Rh.avatar}`]:{marginLeft:4},[`& .${Rh.avatarSmall}`]:{marginLeft:2},[`& .${Rh.icon}`]:{marginLeft:4},[`& .${Rh.iconSmall}`]:{marginLeft:2},[`& .${Rh.deleteIcon}`]:{marginRight:5},[`& .${Rh.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,mt.Fq)(e.palette[t.color].main,.7)}`,[`&.${Rh.clickable}:hover`]:{backgroundColor:(0,mt.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Rh.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Rh.deleteIcon}`]:{color:(0,mt.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),Bh=(0,Ie.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,Te.Z)(r)}`]]}})((({ownerState:e})=>(0,s.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));function Ih(e){return"Backspace"===e.key||"Delete"===e.key}const Zh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:m,onClick:h,onDelete:f,onKeyDown:g,onKeyUp:b,size:v="medium",variant:y="filled"}=n,w=(0,M.Z)(n,Oh),k=r.useRef(null),C=(0,Mt.Z)(k,t),x=e=>{e.stopPropagation(),f&&f(e)},S=!(!1===i||!h)||i,E="small"===v,P=S||f?go.Z:c||"div",T=(0,s.Z)({},n,{component:P,disabled:d,size:v,color:l,onDelete:!!f,clickable:S,variant:y}),A=(e=>{const{classes:t,disabled:n,size:r,color:o,onDelete:a,clickable:i,variant:s}=e,l={root:["root",s,n&&"disabled",`size${(0,Te.Z)(r)}`,`color${(0,Te.Z)(o)}`,i&&"clickable",i&&`clickableColor${(0,Te.Z)(o)}`,a&&"deletable",a&&`deletableColor${(0,Te.Z)(o)}`,`${s}${(0,Te.Z)(o)}`],label:["label",`label${(0,Te.Z)(r)}`],avatar:["avatar",`avatar${(0,Te.Z)(r)}`,`avatarColor${(0,Te.Z)(o)}`],icon:["icon",`icon${(0,Te.Z)(r)}`,`iconColor${(0,Te.Z)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,Te.Z)(r)}`,`deleteIconColor${(0,Te.Z)(o)}`,`deleteIconOutlinedColor${(0,Te.Z)(o)}`]};return(0,Ee.Z)(l,Ah,t)})(T),R=P===go.Z?(0,s.Z)({component:c||"div",focusVisibleClassName:A.focusVisible},f&&{disableRipple:!0}):{};let O=null;if(f){const e=(0,Se.Z)("default"!==l&&("outlined"===y?A[`deleteIconOutlinedColor${(0,Te.Z)(l)}`]:A[`deleteIconColor${(0,Te.Z)(l)}`]),E&&A.deleteIconSmall);O=u&&r.isValidElement(u)?r.cloneElement(u,{className:(0,Se.Z)(u.props.className,A.deleteIcon,e),onClick:x}):(0,Ne.jsx)(Th,{className:(0,Se.Z)(A.deleteIcon,e),onClick:x})}let B=null;o&&r.isValidElement(o)&&(B=r.cloneElement(o,{className:(0,Se.Z)(A.avatar,o.props.className)}));let I=null;return p&&r.isValidElement(p)&&(I=r.cloneElement(p,{className:(0,Se.Z)(A.icon,p.props.className)})),(0,Ne.jsxs)(Mh,(0,s.Z)({as:P,className:(0,Se.Z)(A.root,a),disabled:!(!S||!d)||void 0,onClick:h,onKeyDown:e=>{e.currentTarget===e.target&&Ih(e)&&e.preventDefault(),g&&g(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&Ih(e)?f(e):"Escape"===e.key&&k.current&&k.current.blur()),b&&b(e)},ref:C,ownerState:T},R,w,{children:[B||I,(0,Ne.jsx)(Bh,{className:(0,Se.Z)(A.label),ownerState:T,children:m}),O]}))})),Lh=Zh;var Dh=n(8885);function jh(e){return(0,Ze.Z)("MuiAlert",e)}const Fh=(0,Le.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),zh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Nh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Hh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Vh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Wh=(0,wn.Z)((0,Ne.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var Uh;const Yh=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],Gh=(0,Ie.ZP)(Me.Z,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,Te.Z)(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?mt._j:mt.$n,r="light"===e.palette.mode?mt.$n:mt._j,o=t.color||t.severity;return(0,s.Z)({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===t.variant&&{color:n(e.palette[o].light,.6),backgroundColor:r(e.palette[o].light,.9),[`& .${Fh.icon}`]:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"outlined"===t.variant&&{color:n(e.palette[o].light,.6),border:`1px solid ${e.palette[o].light}`,[`& .${Fh.icon}`]:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"filled"===t.variant&&{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:"dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main})})),qh=(0,Ie.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Kh=(0,Ie.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),Xh=(0,Ie.ZP)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Jh={success:(0,Ne.jsx)(zh,{fontSize:"inherit"}),warning:(0,Ne.jsx)(Nh,{fontSize:"inherit"}),error:(0,Ne.jsx)(Hh,{fontSize:"inherit"}),info:(0,Ne.jsx)(Vh,{fontSize:"inherit"})},Qh=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiAlert"}),{action:r,children:o,className:a,closeText:i="Close",color:l,icon:c,iconMapping:u=Jh,onClose:d,role:p="alert",severity:m="success",variant:h="standard"}=n,f=(0,M.Z)(n,Yh),g=(0,s.Z)({},n,{color:l,severity:m,variant:h}),b=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`${t}${(0,Te.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,Ee.Z)(a,jh,o)})(g);return(0,Ne.jsxs)(Gh,(0,s.Z)({role:p,elevation:0,ownerState:g,className:(0,Se.Z)(b.root,a),ref:t},f,{children:[!1!==c?(0,Ne.jsx)(qh,{ownerState:g,className:b.icon,children:c||u[m]||Jh[m]}):null,(0,Ne.jsx)(Kh,{ownerState:g,className:b.message,children:o}),null!=r?(0,Ne.jsx)(Xh,{className:b.action,children:r}):null,null==r&&d?(0,Ne.jsx)(Xh,{ownerState:g,className:b.action,children:(0,Ne.jsx)(dt.Z,{size:"small","aria-label":i,title:i,color:"inherit",onClick:d,children:Uh||(Uh=(0,Ne.jsx)(Wh,{fontSize:"small"}))})}):null]}))})),_h=Qh;function $h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ef(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);if(0===t)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),o=r?r[1]:"",a=r?r[3]:"",i=r?r[2]:n,s=i.length>=t?i:(lf(Array(t)).map((function(){return"0"})).join("")+i).slice(-1*t);return"".concat(o).concat(s).concat(a)}var df={daysInHours:!1,zeroPadTime:2};function pf(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.now,o=void 0===r?Date.now:r,a=n.precision,i=void 0===a?0:a,s=n.controlled,l=n.offsetTime,c=void 0===l?0:l,u=n.overtime;t="string"==typeof e?new Date(e).getTime():e instanceof Date?e.getTime():e,s||(t+=c);var d=s?t:t-o(),p=Math.min(20,Math.max(0,i)),m=Math.round(1e3*parseFloat(((u?d:Math.max(0,d))/1e3).toFixed(p))),h=Math.abs(m)/1e3;return{total:m,days:Math.floor(h/86400),hours:Math.floor(h/3600%24),minutes:Math.floor(h/60%60),seconds:Math.floor(h%60),milliseconds:Number((h%1*1e3).toFixed()),completed:m<=0}}function mf(e,t){var n=e.days,r=e.hours,o=e.minutes,a=e.seconds,i=Object.assign(Object.assign({},df),t),s=i.daysInHours,l=i.zeroPadTime,c=i.zeroPadDays,u=void 0===c?l:c,d=Math.min(2,l),p=s?uf(r+24*n,l):uf(r,d);return{days:s?"":uf(n,u),hours:p,minutes:uf(o,d),seconds:uf(a,d)}}var hf=function(e){nf(n,e);var t=sf(n);function n(){var e;return $h(this,n),(e=t.apply(this,arguments)).state={count:e.props.count||3},e.startCountdown=function(){e.interval=window.setInterval((function(){0==e.state.count-1?(e.stopCountdown(),e.props.onComplete&&e.props.onComplete()):e.setState((function(e){return{count:e.count-1}}))}),1e3)},e.stopCountdown=function(){clearInterval(e.interval)},e.addTime=function(t){e.stopCountdown(),e.setState((function(e){return{count:e.count+t}}),e.startCountdown)},e}return tf(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,r.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(r.Component);hf.propTypes={count:x.number,children:x.element,onComplete:x.func};var ff=function(e){nf(n,e);var t=sf(n);function n(e){var o;if($h(this,n),(o=t.call(this,e)).mounted=!1,o.initialTimestamp=o.calcOffsetStartTimestamp(),o.offsetStartTimestamp=o.props.autoStart?0:o.initialTimestamp,o.offsetTime=0,o.legacyMode=!1,o.legacyCountdownRef=(0,r.createRef)(),o.tick=function(){var e=o.calcTimeDelta(),t=e.completed&&!o.props.overtime?void 0:o.props.onTick;o.setTimeDeltaState(e,void 0,t)},o.start=function(){if(!o.isStarted()){var e=o.offsetStartTimestamp;o.offsetStartTimestamp=0,o.offsetTime+=e?o.calcOffsetStartTimestamp()-e:0;var t=o.calcTimeDelta();o.setTimeDeltaState(t,"STARTED",o.props.onStart),o.props.controlled||t.completed&&!o.props.overtime||(o.clearTimer(),o.interval=window.setInterval(o.tick,o.props.intervalDelay))}},o.pause=function(){o.isPaused()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.setTimeDeltaState(o.state.timeDelta,"PAUSED",o.props.onPause))},o.stop=function(){o.isStopped()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.offsetTime=o.offsetStartTimestamp-o.initialTimestamp,o.setTimeDeltaState(o.calcTimeDelta(),"STOPPED",o.props.onStop))},o.isStarted=function(){return o.isStatus("STARTED")},o.isPaused=function(){return o.isStatus("PAUSED")},o.isStopped=function(){return o.isStatus("STOPPED")},o.isCompleted=function(){return o.isStatus("COMPLETED")},o.handleOnComplete=function(e){o.props.onComplete&&o.props.onComplete(e)},e.date){var a=o.calcTimeDelta();o.state={timeDelta:a,status:a.completed?"COMPLETED":"STOPPED"}}else o.legacyMode=!0;return o}return tf(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(e){this.legacyMode||this.props.date!==e.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var e=this.props,t=e.date,n=e.now,r=e.precision,o=e.controlled,a=e.overtime;return pf(t,{now:n,precision:r,controlled:o,offsetTime:this.offsetTime,overtime:a})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(e){this.legacyCountdownRef.current.addTime(e)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(e){return this.state.status===e}},{key:"setTimeDeltaState",value:function(e,t,n){var r,o=this;if(this.mounted)return!this.state.timeDelta.completed&&e.completed&&(this.props.overtime||this.clearTimer(),r=this.handleOnComplete),this.setState((function(n){var r=t||n.status;return e.completed&&!o.props.overtime?r="COMPLETED":t||"COMPLETED"!==r||(r="STOPPED"),{timeDelta:e,status:r}}),(function(){n&&n(o.state.timeDelta),r&&r(o.state.timeDelta)}))}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var e=this.props,t=e.daysInHours,n=e.zeroPadTime,r=e.zeroPadDays,o=this.state.timeDelta;return Object.assign(Object.assign({},o),{api:this.getApi(),props:this.props,formatted:mf(o,{daysInHours:t,zeroPadTime:n,zeroPadDays:r})})}},{key:"render",value:function(){if(this.legacyMode){var e=this.props,t=e.count,n=e.children,o=e.onComplete;return(0,r.createElement)(hf,{ref:this.legacyCountdownRef,count:t,onComplete:o},n)}var a=this.props,i=a.className,s=a.overtime,l=a.children,c=a.renderer,u=this.getRenderProps();if(c)return c(u);if(l&&this.state.timeDelta.completed&&!s)return(0,r.cloneElement)(l,{countdown:u});var d=u.formatted,p=d.days,m=d.hours,h=d.minutes,f=d.seconds;return(0,r.createElement)("span",{className:i},u.total<0?"-":"",p,p?":":"",m,":",h,":",f)}}]),n}(r.Component);ff.defaultProps=Object.assign(Object.assign({},df),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),ff.propTypes={date:(0,x.oneOfType)([(0,x.instanceOf)(Date),x.string,x.number]),daysInHours:x.bool,zeroPadTime:x.number,zeroPadDays:x.number,controlled:x.bool,intervalDelay:x.number,precision:x.number,autoStart:x.bool,overtime:x.bool,className:x.string,children:x.element,renderer:x.func,now:x.func,onMount:x.func,onStart:x.func,onPause:x.func,onStop:x.func,onTick:x.func,onComplete:x.func};const gf=ff;var bf=n(1002),vf=n(1739),yf=n.n(vf),wf=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function kf(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(yf()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(wf),a=null;null!==(a=o.exec(e));)if(a[0].trim())if(a[1]){var i=a[1].trim(),s=[i,""];i.indexOf("=")>-1&&(s=i.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var Cf=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,xf=/^\s*$/,Sf=Object.create(null);function Ef(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(Ef,"")+""+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var Pf={parse:function(e,t){t||(t={}),t.components||(t.components=Sf);var n,r=[],o=[],a=-1,i=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(Cf,(function(s,l){if(i){if(s!==""+n.name+">")return;i=!1}var c,u="/"!==s.charAt(1),d=s.startsWith("\x3c!--"),p=l+s.length,m=e.charAt(p);if(d){var h=kf(s);return a<0?(r.push(h),r):((c=o[a]).children.push(h),r)}if(u&&(a++,"tag"===(n=kf(s)).type&&t.components[n.name]&&(n.type="component",i=!0),n.voidElement||i||!m||"<"===m||n.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===a&&r.push(n),(c=o[a-1])&&c.children.push(n),o[a]=n),(!u||n.voidElement)&&(a>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(a--,n=-1===a?r:o[a]),!i&&"<"!==m&&m)){c=-1===a?r:o[a].children;var f=e.indexOf("<",p),g=e.slice(p,-1===f?void 0:f);xf.test(g)&&(g=" "),(f>-1&&a+c.length>=0||" "!==g)&&c.push({type:"text",content:g})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+Ef("",t)}),"")}};const Tf=Pf;var Af="".replace,Rf=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,Of={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'};function Mf(e){return Of[e]}var Bf=["format"],If=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function Zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t0:!!n}function jf(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function Ff(e){return Array.isArray(e)?e:[e]}function zf(e,t){if(!e)return"";var n="",o=Ff(e),a=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return o.forEach((function(e,o){if("string"==typeof e)n+="".concat(e);else if(r.isValidElement(e)){var i=Object.keys(e.props).length,s=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&s&&0===i)n+="<".concat(e.type,"/>");else if(l||s&&0===i)if(e.props.i18nIsDynamicList)n+="<".concat(o,">").concat(o,">");else if(s&&1===i&&"string"==typeof l)n+="<".concat(e.type,">").concat(l,"").concat(e.type,">");else{var c=zf(l,t);n+="<".concat(o,">").concat(c,"").concat(o,">")}else n+="<".concat(o,">").concat(o,">")}else if(null===e)de("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===(0,bf.Z)(e)){var u=e.format,d=(0,$.Z)(e,Bf),p=Object.keys(d);if(1===p.length){var m=u?"".concat(p[0],", ").concat(u):p[0];n+="{{".concat(m,"}}")}else de("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else de("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function Nf(e){var t=e.children,n=e.count,o=e.parent,a=e.i18nKey,i=e.context,s=e.tOptions,l=void 0===s?{}:s,c=e.values,u=e.defaults,d=e.components,p=e.ns,m=e.i18n,h=e.t,f=e.shouldUnescape,g=(0,$.Z)(e,If),b=(0,r.useContext)(ie)||{},v=b.i18n,y=b.defaultNS,w=m||v||ce();if(!w)return me("You will need to pass in an i18next instance by using i18nextReactModule"),t;var k=h||w.t.bind(w)||function(e){return e};i&&(l.context=i);var C=Lf(Lf({},se()),w.options&&w.options.react),x=p||k.ns||y||w.options&&w.options.defaultNS;x="string"==typeof x?[x]:x||["translation"];var S=u||zf(t,C)||C.transEmptyNodeValue||a,E=C.hashTransKey,P=a||(E?E(S):S),T=c?l.interpolation:{interpolation:Lf(Lf({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},A=Lf(Lf(Lf(Lf({},l),{},{count:n},c),T),{},{defaultValue:S,ns:x}),R=function(e,t,n,o,a,i){if(""===t)return[];var s=o.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(s.join("|")).test(t);if(!e&&!l)return[t];var c={};!function e(t){Ff(t).forEach((function(t){"string"!=typeof t&&(Df(t)?e(jf(t)):"object"!==(0,bf.Z)(t)||r.isValidElement(t)||Object.assign(c,t))}))}(e);var u=Tf.parse("<0>".concat(t,"0>")),d=Lf(Lf({},c),a);function p(e,t,n){var o=jf(e),a=h(o,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return r.isValidElement(e)}))}(o)&&0===a.length?o:a}function m(e,t,n,o,a){e.dummy&&(e.children=t),n.push(r.cloneElement(e,Lf(Lf({},e.props),{},{key:o}),a?void 0:t))}function h(t,a,c){var u=Ff(t);return Ff(a).reduce((function(t,a,f){var g,b,v,y,w=a.children&&a.children[0]&&a.children[0].content&&n.services.interpolator.interpolate(a.children[0].content,d,n.language);if("tag"===a.type){var k=u[parseInt(a.name,10)];!k&&1===c.length&&c[0][a.name]&&(k=c[0][a.name]),k||(k={});var C=0!==Object.keys(a.attrs).length?(b={props:a.attrs},(y=Lf({},v=k)).props=Object.assign(b.props,v.props),y):k,x=r.isValidElement(C),S=x&&Df(a,!0)&&!a.voidElement,E=l&&"object"===(0,bf.Z)(C)&&C.dummy&&!x,P="object"===(0,bf.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,a.name);if("string"==typeof C){var T=n.services.interpolator.interpolate(C,d,n.language);t.push(T)}else if(Df(C)||S)m(C,p(C,a,c),t,f);else if(E){var A=h(u,a.children,c);t.push(r.cloneElement(C,Lf(Lf({},C.props),{},{key:f}),A))}else if(Number.isNaN(parseFloat(a.name)))if(P)m(C,p(C,a,c),t,f,a.voidElement);else if(o.transSupportBasicHtmlNodes&&s.indexOf(a.name)>-1)if(a.voidElement)t.push(r.createElement(a.name,{key:"".concat(a.name,"-").concat(f)}));else{var R=h(u,a.children,c);t.push(r.createElement(a.name,{key:"".concat(a.name,"-").concat(f)},R))}else if(a.voidElement)t.push("<".concat(a.name," />"));else{var O=h(u,a.children,c);t.push("<".concat(a.name,">").concat(O,"").concat(a.name,">"))}else if("object"!==(0,bf.Z)(C)||x)1===a.children.length&&w?t.push(r.cloneElement(C,Lf(Lf({},C.props),{},{key:f}),w)):t.push(r.cloneElement(C,Lf(Lf({},C.props),{},{key:f})));else{var M=a.children[0]?w:null;M&&t.push(M)}}else if("text"===a.type){var B=o.transWrapTextNodes,I=i?(g=n.services.interpolator.interpolate(a.content,d,n.language),Af.call(g,Rf,Mf)):n.services.interpolator.interpolate(a.content,d,n.language);B?t.push(r.createElement(B,{key:"".concat(a.name,"-").concat(f)},I)):t.push(I)}return t}),[])}return jf(h([{dummy:!0,children:e||[]}],u,Ff(e||[]))[0])}(d||t,P?k(P,A):S,w,C,A,f),O=void 0!==o?o:C.defaultTransParent;return O?r.createElement(O,g,R):R}const Hf=(0,wn.Z)((0,Ne.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),Vf=(0,wn.Z)((0,Ne.jsx)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function Wf(e){return(0,Ze.Z)("MuiRating",e)}const Uf=(0,Le.Z)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),Yf=["value"],Gf=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function qf(e,t){if(null==e)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(function(e){const t=e.toString().split(".")[1];return t?t.length:0}(t)))}const Kf=(0,Ie.ZP)("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Uf.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${(0,Te.Z)(n.size)}`],n.readOnly&&t.readOnly]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent",[`&.${Uf.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Uf.focusVisible} .${Uf.iconActive}`]:{outline:"1px solid #999"},[`& .${Uf.visuallyHidden}`]:Kn},"small"===t.size&&{fontSize:e.typography.pxToRem(18)},"large"===t.size&&{fontSize:e.typography.pxToRem(30)},t.readOnly&&{pointerEvents:"none"}))),Xf=(0,Ie.ZP)("label",{name:"MuiRating",slot:"Label",overridesResolver:(e,t)=>t.label})((({ownerState:e})=>(0,s.Z)({cursor:"inherit"},e.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}))),Jf=(0,Ie.ZP)("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})((({theme:e,ownerState:t})=>(0,s.Z)({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none"},t.iconActive&&{transform:"scale(1.2)"},t.iconEmpty&&{color:e.palette.action.disabled}))),Qf=(0,Ie.ZP)("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>(0,Ie.Dz)(e)&&"iconActive"!==e,overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})((({iconActive:e})=>(0,s.Z)({position:"relative"},e&&{transform:"scale(1.2)"})));function _f(e){const t=(0,M.Z)(e,Yf);return(0,Ne.jsx)("span",(0,s.Z)({},t))}function $f(e){const{classes:t,disabled:n,emptyIcon:o,focus:a,getLabelText:i,highlightSelectedOnly:l,hover:c,icon:u,IconContainerComponent:d,isActive:p,itemValue:m,labelProps:h,name:f,onBlur:g,onChange:b,onClick:v,onFocus:y,readOnly:w,ownerState:k,ratingValue:C,ratingValueRounded:x}=e,S=l?m===C:m<=C,E=m<=c,P=m<=a,T=m===x,A=(0,fn.Z)(),R=(0,Ne.jsx)(Jf,{as:d,value:m,className:(0,Se.Z)(t.icon,S?t.iconFilled:t.iconEmpty,E&&t.iconHover,P&&t.iconFocus,p&&t.iconActive),ownerState:(0,s.Z)({},k,{iconEmpty:!S,iconFilled:S,iconHover:E,iconFocus:P,iconActive:p}),children:o&&!S?o:u});return w?(0,Ne.jsx)("span",(0,s.Z)({},h,{children:R})):(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsxs)(Xf,(0,s.Z)({ownerState:(0,s.Z)({},k,{emptyValueFocused:void 0}),htmlFor:A},h,{children:[R,(0,Ne.jsx)("span",{className:t.visuallyHidden,children:i(m)})]})),(0,Ne.jsx)("input",{className:t.visuallyHidden,onFocus:y,onBlur:g,onChange:b,onClick:v,disabled:n,value:m,id:A,type:"radio",name:f,checked:T})]})}const eg=(0,Ne.jsx)(Hf,{fontSize:"inherit"}),tg=(0,Ne.jsx)(Vf,{fontSize:"inherit"});function ng(e){return`${e} Star${1!==e?"s":""}`}const rg=r.forwardRef((function(e,t){const n=(0,Be.Z)({name:"MuiRating",props:e}),{className:o,defaultValue:a=null,disabled:i=!1,emptyIcon:l=tg,emptyLabelText:c="Empty",getLabelText:u=ng,highlightSelectedOnly:d=!1,icon:p=eg,IconContainerComponent:m=_f,max:h=5,name:f,onChange:g,onChangeActive:b,onMouseLeave:v,onMouseMove:y,precision:w=1,readOnly:k=!1,size:C="medium",value:x}=n,S=(0,M.Z)(n,Gf),E=(0,fn.Z)(f),[P,T]=(0,mn.Z)({controlled:x,default:a,name:"Rating"}),A=qf(P,w),R=(0,ur.Z)(),[{hover:O,focus:B},I]=r.useState({hover:-1,focus:-1});let Z=A;-1!==O&&(Z=O),-1!==B&&(Z=B);const{isFocusVisibleRef:L,onBlur:D,onFocus:j,ref:F}=(0,Ot.Z)(),[z,N]=r.useState(!1),H=r.useRef(),V=(0,Mt.Z)(F,H),W=(0,Mt.Z)(V,t),U=e=>{let t=""===e.target.value?null:parseFloat(e.target.value);-1!==O&&(t=O),T(t),g&&g(e,t)},Y=e=>{0===e.clientX&&0===e.clientY||(I({hover:-1,focus:-1}),T(null),g&&parseFloat(e.target.value)===A&&g(e,null))},G=e=>{j(e),!0===L.current&&N(!0);const t=parseFloat(e.target.value);I((e=>({hover:e.hover,focus:t})))},q=e=>{-1===O&&(D(e),!1===L.current&&N(!1),I((e=>({hover:e.hover,focus:-1}))))},[K,X]=r.useState(!1),J=(0,s.Z)({},n,{defaultValue:a,disabled:i,emptyIcon:l,emptyLabelText:c,emptyValueFocused:K,focusVisible:z,getLabelText:u,icon:p,IconContainerComponent:m,max:h,precision:w,readOnly:k,size:C}),Q=(e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:a,focusVisible:i}=e,s={root:["root",`size${(0,Te.Z)(n)}`,o&&"disabled",i&&"focusVisible",r&&"readyOnly"],label:["label","pristine"],labelEmptyValue:[a&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return(0,Ee.Z)(s,Wf,t)})(J);return(0,Ne.jsxs)(Kf,(0,s.Z)({ref:W,onMouseMove:e=>{y&&y(e);const t=H.current,{right:n,left:r}=t.getBoundingClientRect(),{width:o}=t.firstChild.getBoundingClientRect();let a;a="rtl"===R.direction?(n-e.clientX)/(o*h):(e.clientX-r)/(o*h);let i=qf(h*a+w/2,w);i=function(e,t,n){return en?n:e}(i,w,h),I((e=>e.hover===i&&e.focus===i?e:{hover:i,focus:i})),N(!1),b&&O!==i&&b(e,i)},onMouseLeave:e=>{v&&v(e),I({hover:-1,focus:-1}),b&&-1!==O&&b(e,-1)},className:(0,Se.Z)(Q.root,o),ownerState:J,role:k?"img":null,"aria-label":k?u(Z):null},S,{children:[Array.from(new Array(h)).map(((e,t)=>{const n=t+1,r={classes:Q,disabled:i,emptyIcon:l,focus:B,getLabelText:u,highlightSelectedOnly:d,hover:O,icon:p,IconContainerComponent:m,name:E,onBlur:q,onChange:U,onClick:Y,onFocus:G,ratingValue:Z,ratingValueRounded:A,readOnly:k,ownerState:J},o=n===Math.ceil(Z)&&(-1!==O||-1!==B);if(w<1){const e=Array.from(new Array(1/w));return(0,Ne.jsx)(Qf,{className:(0,Se.Z)(Q.decimal,o&&Q.iconActive),ownerState:J,iconActive:o,children:e.map(((t,o)=>{const a=qf(n-1+(o+1)*w,w);return(0,Ne.jsx)($f,(0,s.Z)({},r,{isActive:!1,itemValue:a,labelProps:{style:e.length-1===o?{}:{width:a===Z?(o+1)*w*100+"%":"0%",overflow:"hidden",position:"absolute"}}}),a)}))},n)}return(0,Ne.jsx)($f,(0,s.Z)({},r,{isActive:o,itemValue:n}),n)})),!k&&!i&&(0,Ne.jsxs)(Xf,{className:(0,Se.Z)(Q.label,Q.labelEmptyValue),ownerState:J,children:[(0,Ne.jsx)("input",{className:Q.visuallyHidden,value:"",id:`${E}-empty`,type:"radio",name:E,checked:null==A,onFocus:()=>X(!0),onBlur:()=>X(!1),onChange:U}),(0,Ne.jsx)("span",{className:Q.visuallyHidden,children:c})]})]}))})),og=rg;var ag=n(1653);function ig(e){return(0,Ze.Z)("MuiContainer",e)}(0,Le.Z)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const sg=["className","component","disableGutters","fixed","maxWidth"],lg=(0,Ie.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Te.Z)(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}})((({theme:e,ownerState:t})=>(0,s.Z)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:`${r}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>(0,s.Z)({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),cg=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiContainer"}),{className:r,component:o="div",disableGutters:a=!1,fixed:i=!1,maxWidth:l="lg"}=n,c=(0,M.Z)(n,sg),u=(0,s.Z)({},n,{component:o,disableGutters:a,fixed:i,maxWidth:l}),d=(e=>{const{classes:t,fixed:n,disableGutters:r,maxWidth:o}=e,a={root:["root",o&&`maxWidth${(0,Te.Z)(String(o))}`,n&&"fixed",r&&"disableGutters"]};return(0,Ee.Z)(a,ig,t)})(u);return(0,Ne.jsx)(lg,(0,s.Z)({as:o,ownerState:u,className:(0,Se.Z)(d.root,r),ref:t},c))})),ug=cg;function dg(e){return(0,Ze.Z)("MuiCard",e)}(0,Le.Z)("MuiCard",["root"]);const pg=["className","raised"],mg=(0,Ie.ZP)(Me.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),hg=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,a=(0,M.Z)(n,pg),i=(0,s.Z)({},n,{raised:o}),l=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"]},dg,t)})(i);return(0,Ne.jsx)(mg,(0,s.Z)({className:(0,Se.Z)(l.root,r),elevation:o?8:void 0,ref:t,ownerState:i},a))})),fg=hg;function gg(e){return(0,Ze.Z)("MuiCardHeader",e)}const bg=(0,Le.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),vg=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],yg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,s.Z)({[`& .${bg.title}`]:t.title,[`& .${bg.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),wg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),kg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),Cg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),xg=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiCardHeader"}),{action:r,avatar:o,className:a,component:i="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p}=n,m=(0,M.Z)(n,vg),h=(0,s.Z)({},n,{component:i,disableTypography:l}),f=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},gg,t)})(h);let g=d;null==g||g.type===st.Z||l||(g=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:o?"body2":"h5",className:f.title,component:"span",display:"block"},p,{children:g})));let b=c;return null==b||b.type===st.Z||l||(b=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:o?"body2":"body1",className:f.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:b}))),(0,Ne.jsxs)(yg,(0,s.Z)({className:(0,Se.Z)(f.root,a),as:i,ref:t,ownerState:h},m,{children:[o&&(0,Ne.jsx)(wg,{className:f.avatar,ownerState:h,children:o}),(0,Ne.jsxs)(Cg,{className:f.content,ownerState:h,children:[g,b]}),r&&(0,Ne.jsx)(kg,{className:f.action,ownerState:h,children:r})]}))})),Sg=xg;var Eg=function(e,t){return Eg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Eg(e,t)};function Pg(e,t){function n(){this.constructor=e}Eg(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Tg(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Ag(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(r),a=o.next();!a.done;a=o.next()){var i=a.value;this._callEventListener(e,i)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?Ig.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?Ig.minReconnectionDelay:r,a=e.maxReconnectionDelay,i=void 0===a?Ig.maxReconnectionDelay:a,s=0;return this._retryCount>0&&(s=o*Math.pow(n,this._retryCount-1))>i&&(s=i),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"==typeof e)return Promise.resolve(e);if("function"==typeof e){var t=e();if("string"==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?Ig.maxRetries:n,o=t.connectionTimeout,a=void 0===o?Ig.connectionTimeout:o,i=t.WebSocket,s=void 0===i?Bg():i;if(this._retryCount>=r)this._debug("max retries reached",this._retryCount,">=",r);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),void 0===(l=s)||!l||2!==l.CLOSING)throw Error("No valid WebSocket class provided");var l;this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),a))}))}}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new Og(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new Mg(e,t,this))}catch(e){}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();const Lg=Zg;function Dg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class jg extends r.Component{constructor(e){super(e),Dg(this,"state",{messages:[],value:"",connected:!1,peer_connected:!1}),Dg(this,"rws",new Lg("ws://"+window.location.host+"/ws/chat/"+this.props.orderId+"/")),Dg(this,"scrollToBottom",(()=>{this.messagesEnd.scrollIntoView({behavior:"smooth"})})),Dg(this,"onButtonClicked",(e=>{""!=this.state.value&&(this.rws.send(JSON.stringify({type:"message",message:this.state.value,nick:this.props.ur_nick})),this.state.value=""),e.preventDefault()}))}componentDidMount(){this.rws.addEventListener("open",(()=>{console.log("Connected!"),this.setState({connected:!0}),this.rws.send(JSON.stringify({type:"message",message:"just-connected",nick:this.props.ur_nick}))})),this.rws.addEventListener("message",(e=>{const t=JSON.parse(e.data);console.log("Got reply!",t.type),t&&("just-connected"!=t.message&"peer-disconnected"!=t.message&&this.setState((e=>({messages:[...e.messages,{msg:t.message,userNick:t.user_nick}]}))),this.setState({peer_connected:t.peer_connected}))})),this.rws.addEventListener("close",(()=>{console.log("Socket is closed. Reconnect will be attempted"),this.setState({connected:!1})})),this.rws.addEventListener("error",(()=>{console.error("Socket encountered error: Closing socket")}))}componentDidUpdate(){this.scrollToBottom()}render(){const{t:e}=this.props;return r.createElement(ug,{component:"main",maxWidth:"xs"},r.createElement(it,{container:!0,xs:12,spacing:.5},r.createElement(it,{item:!0,xs:.3}),r.createElement(it,{item:!0,xs:5.5},r.createElement(Me.Z,{elevation:1,style:this.state.connected?{backgroundColor:"#e8ffe6"}:{backgroundColor:"#FFF1C5"}},r.createElement(st.Z,{variant:"caption",sx:{color:"#111111"}},e("You")+": ",this.state.connected?e("connected"):e("disconnected")))),r.createElement(it,{item:!0,xs:.4}),r.createElement(it,{item:!0,xs:5.5},r.createElement(Me.Z,{elevation:1,style:this.state.peer_connected?{backgroundColor:"#e8ffe6"}:{backgroundColor:"#FFF1C5"}},r.createElement(st.Z,{variant:"caption",sx:{color:"#111111"}},e("Peer")+": ",this.state.peer_connected?e("connected"):e("disconnected")))),r.createElement(it,{item:!0,xs:.3})),r.createElement(Me.Z,{elevation:1,style:{height:"300px",maxHeight:"300px",width:"280px",overflow:"auto",backgroundColor:"#F7F7F7"}},this.state.messages.map((e=>r.createElement(r.Fragment,null,r.createElement(fg,{elevation:5,align:"left"},e.userNick==this.props.ur_nick?r.createElement(Sg,{sx:{color:"#111111"},avatar:r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.state.connected?"success":"error"},r.createElement(wh,{className:"flippedSmallAvatar",alt:e.userNick,src:window.location.origin+"/static/assets/avatars/"+e.userNick+".png"})),style:{backgroundColor:"#eeeeee"},title:e.userNick,subheader:e.msg,subheaderTypographyProps:{sx:{wordWrap:"break-word",width:"200px",color:"#444444"}}}):r.createElement(Sg,{sx:{color:"#111111"},avatar:r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.state.peer_connected?"success":"error"},r.createElement(wh,{className:"flippedSmallAvatar",alt:e.userNick,src:window.location.origin+"/static/assets/avatars/"+e.userNick+".png"})),style:{backgroundColor:"#fafafa"},title:e.userNick,subheader:e.msg,subheaderTypographyProps:{sx:{wordWrap:"break-word",width:"200px",color:"#444444"}}}))))),r.createElement("div",{style:{float:"left",clear:"both"},ref:e=>{this.messagesEnd=e}})),r.createElement("form",{noValidate:!0,onSubmit:this.onButtonClicked},r.createElement(it,{containter:!0,alignItems:"stretch",style:{display:"flex"}},r.createElement(it,{item:!0,alignItems:"stretch",style:{display:"flex"}},r.createElement(ut.Z,{label:e("Type a message"),variant:"standard",size:"small",helperText:this.state.connected?null:e("Connecting..."),value:this.state.value,onChange:e=>{this.setState({value:e.target.value}),this.value=this.state.value},sx:{width:214}})),r.createElement(it,{item:!0,alignItems:"stretch",style:{display:"flex"}},r.createElement(pt.Z,{disabled:!this.state.connected,type:"submit",variant:"contained",color:"primary"},e("Send")," ")))),r.createElement(sn.Z,null,e("The chat has no memory: if you leave, messages are lost.")," ",r.createElement(Ft,{target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/blob/main/docs/sensitive-data-PGP-guide.md/"}," ",e("Learn easy PGP encryption."))))}}const Fg=xe()(jg);var zg=n(7164),Ng=n.n(zg),Hg=n(9972),Vg=n(9613),Wg=n(8394),Ug=n(6307),Yg=n(7412),Gg=n(2704);function qg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kg(e){let t=null;if(document.cookie&&""!==document.cookie){const n=document.cookie.split(";");for(let r=0;rr.createElement("audio",{autoPlay:!0,src:`/static/assets/sounds/${e}.mp3`}))),qg(this,"togglePlay",(()=>{this.setState({playSound:!this.state.playSound},(()=>{this.state.playSound?this.audio.play():this.audio.pause()}))})),qg(this,"stepXofY",(()=>{var e=null,t=null,n=this.props.data.status;return this.props.data.is_maker&&(t=5),this.props.data.is_taker&&(t=4),this.props.data.is_maker&&(0==n?e=1:[1,3].includes(n)?e=2:[6,7,8].includes(n)?e=3:9==n?e=4:10==n&&(e=5)),this.props.data.is_taker&&(3==n?e=1:[6,7,8].includes(n)?e=2:9==n?e=3:10==n&&(e=4)),null!=e&null!=t?"("+e+"/"+t+")":""})),qg(this,"handleClickOpenConfirmDispute",(()=>{this.setState({openConfirmDispute:!0})})),qg(this,"handleClickCloseConfirmDispute",(()=>{this.setState({openConfirmDispute:!1})})),qg(this,"handleClickAgreeDisputeButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"dispute"})};fetch("/api/order/?order_id="+this.props.data.id,e).then((e=>e.json())).then((e=>this.props.completeSetState(e))),this.handleClickCloseConfirmDispute()})),qg(this,"ConfirmDisputeDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openConfirmDispute,onClose:this.handleClickCloseConfirmDispute,"aria-labelledby":"open-dispute-dialog-title","aria-describedby":"open-dispute-dialog-description"},r.createElement(Gm,{id:"open-dispute-dialog-title"},e("Do you want to open a dispute?")),r.createElement(At,null,r.createElement(Qm,{id:"alert-dialog-description"},e("The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmDispute,autoFocus:!0},e("Disagree")),r.createElement(pt.Z,{onClick:this.handleClickAgreeDisputeButton},e("Agree and open dispute"))))})),qg(this,"handleClickOpenConfirmFiatReceived",(()=>{this.setState({openConfirmFiatReceived:!0})})),qg(this,"handleClickCloseConfirmFiatReceived",(()=>{this.setState({openConfirmFiatReceived:!1})})),qg(this,"handleClickTotallyConfirmFiatReceived",(()=>{this.handleClickConfirmButton(),this.handleClickCloseConfirmFiatReceived()})),qg(this,"ConfirmFiatReceivedDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openConfirmFiatReceived,onClose:this.handleClickCloseConfirmFiatReceived,"aria-labelledby":"fiat-received-dialog-title","aria-describedby":"fiat-received-dialog-description"},r.createElement(Gm,{id:"open-dispute-dialog-title"},e("Confirm you received {{currencyCode}}?",{currencyCode:this.props.data.currencyCode})),r.createElement(At,null,r.createElement(Qm,{id:"alert-dialog-description"},e("Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.",{currencyCode:this.props.data.currencyCode}))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmFiatReceived,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickTotallyConfirmFiatReceived},e("Confirm"))))})),qg(this,"showQRInvoice",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("Robots show commitment to their peers"))),r.createElement(it,{item:!0,xs:12,align:"center"},this.props.data.is_maker?r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("Lock {{amountSats}} Sats to PUBLISH order",{amountSats:Xg(this.props.data.bond_satoshis)}))," "," "+this.stepXofY()):r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("Lock {{amountSats}} Sats to TAKE order",{amountSats:Xg(this.props.data.bond_satoshis)}))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(oo,{sx:{bgcolor:"#ffffff",width:"315px",position:"relative",left:"-5px"}},r.createElement(ag.Z,{value:this.props.data.bond_invoice,size:305,style:{position:"relative",top:"3px"}})),r.createElement(lt.Z,{disableHoverListener:!0,enterTouchDelay:"0",title:e("Copied!")},r.createElement(pt.Z,{size:"small",color:"inherit",onClick:()=>{navigator.clipboard.writeText(this.props.data.bond_invoice)},align:"center"}," ",r.createElement(Jt.Z,null),e("Copy to clipboard")))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{hiddenLabel:!0,variant:"standard",size:"small",defaultValue:this.props.data.bond_invoice,disabled:"true",helperText:e("This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute."),color:"secondary"})))})),qg(this,"showBondIsLocked",(()=>{const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1",align:"center"},r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap"}},r.createElement(um.Z,null),this.props.data.is_maker?e("Your maker bond is locked"):e("Your taker bond is locked"))))})),qg(this,"showBondIsSettled",(()=>{const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"error",component:"subtitle1",variant:"subtitle1",align:"center"},r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap",align:"center"},align:"center"},r.createElement(Gg.Z,null),this.props.data.is_maker?e("Your maker bond was settled"):e("Your taker bond was settled"))))})),qg(this,"showBondIsReturned",(()=>{const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"green",component:"subtitle1",variant:"subtitle1",align:"center"},r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap"}},r.createElement(Yg.Z,null),this.props.data.is_maker?e("Your maker bond was unlock"):e("Your taker bond was unlocked"))))})),qg(this,"showEscrowQRInvoice",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"locked-invoice"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"green",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("Lock {{amountSats}} Sats as collateral",{amountSats:Xg(this.props.data.escrow_satoshis)}))," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(oo,{sx:{bgcolor:"#ffffff",width:"315px",position:"relative",left:"-5px"}},r.createElement(ag.Z,{value:this.props.data.escrow_invoice,size:305,style:{position:"relative",top:"3px"}})),r.createElement(lt.Z,{disableHoverListener:!0,enterTouchDelay:"0",title:e("Copied!")},r.createElement(pt.Z,{size:"small",color:"inherit",onClick:()=>{navigator.clipboard.writeText(this.props.data.escrow_invoice)},align:"center"}," ",r.createElement(Jt.Z,null),"Copy to clipboard"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{hiddenLabel:!0,variant:"filled",size:"small",defaultValue:this.props.data.escrow_invoice,disabled:"true",helperText:e("This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.",{currencyCode:this.props.data.currencyCode}),color:"secondary"})),this.showBondIsLocked())})),qg(this,"showTakerFound",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"taker-found"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("A taker has been found!"))," "," "+this.stepXofY())),r.createElement(Ph,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again."))),this.showBondIsLocked())})),qg(this,"handleClickOpenTelegramDialog",(()=>{this.setState({openEnableTelegram:!0})})),qg(this,"handleClickCloseEnableTelegramDialog",(()=>{this.setState({openEnableTelegram:!1})})),qg(this,"handleClickEnableTelegram",(()=>{window.open("https://t.me/"+this.props.data.tg_bot_name+"?start="+this.props.data.tg_token,"_blank").focus(),this.handleClickCloseEnableTelegramDialog()})),qg(this,"EnableTelegramDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openEnableTelegram,onClose:this.handleClickCloseEnableTelegramDialog,"aria-labelledby":"enable-telegram-dialog-title","aria-describedby":"enable-telegram-dialog-description"},r.createElement(Gm,{id:"open-dispute-dialog-title"},e("Enable TG Notifications")),r.createElement(At,null,r.createElement(Qm,{id:"alert-dialog-description"},e("You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseEnableTelegramDialog}," ",e("Go back")," "),r.createElement(pt.Z,{onClick:this.handleClickEnableTelegram,autoFocus:!0}," ",e("Enable")," ")))})),qg(this,"showMakerWait",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"locked-invoice"}),r.createElement(this.EnableTelegramDialog,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("Your order is public")," ")," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(_m.Z,{dense:"true"},r.createElement(Ph,null),r.createElement(ph,null,r.createElement(st.Z,{component:"body2",variant:"body2",align:"left"},r.createElement("p",null,e("Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.")," "),r.createElement("p",null,e("Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).")))),r.createElement(it,{item:!0,xs:12,align:"center"},this.props.data.tg_enabled?r.createElement(st.Z,{color:"primary",component:"h6",variant:"h6",align:"center"},e("Telegram enabled")):r.createElement(pt.Z,{color:"primary",onClick:this.handleClickOpenTelegramDialog},r.createElement(Ug.Z,null),e("Enable Telegram Notifications"))),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Vg.Z,null)),r.createElement(Dm,{primary:this.props.data.num_similar_orders,secondary:e("Public orders for {{currencyCode}}",{currencyCode:this.props.data.currencyCode})})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Hg.Z,null)),r.createElement(Dm,{primary:e("Premium rank")+" "+100*this.props.data.premium_percentile+"%",secondary:e("Among public {{currencyCode}} orders (higher is cheaper)",{currencyCode:this.props.data.currencyCode})})),r.createElement(Ph,null))),this.showBondIsLocked())})),qg(this,"handleInputInvoiceChanged",(e=>{this.setState({invoice:e.target.value,badInvoice:!1})})),qg(this,"handleClickSubmitInvoiceButton",(()=>{this.setState({badInvoice:!1});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"update_invoice",invoice:this.state.invoice})};fetch("/api/order/?order_id="+this.props.data.id,e).then((e=>e.json())).then((e=>this.setState({badInvoice:e.bad_invoice})&this.props.completeSetState(e)))})),qg(this,"handleInputDisputeChanged",(e=>{this.setState({statement:e.target.value,badStatement:!1})})),qg(this,"handleClickSubmitStatementButton",(()=>{this.setState({badInvoice:!1});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"submit_statement",statement:this.state.statement})};fetch("/api/order/?order_id="+this.props.data.id,e).then((e=>e.json())).then((e=>this.setState({badStatement:e.bad_statement})&this.props.completeSetState(e)))})),qg(this,"handleScan",(e=>{e&&this.setState({invoice:e})})),qg(this,"handleError",(e=>{console.error(e)})),qg(this,"handleQRbutton",(()=>{this.setState({qrscanner:!this.state.qrscanner})})),qg(this,"showInDisputeStatement",(()=>{const{t:e}=this.props;return this.props.data.statement_submitted?r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("We have received your statement")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},r.createElement("p",null,e("We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.")),r.createElement("p",null,e("Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).")))),this.showBondIsSettled()):r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("A dispute has been opened")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars."))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{error:this.state.badStatement,helperText:this.state.badStatement?this.state.badStatement:"",label:e("Submit dispute statement"),required:!0,inputProps:{style:{textAlign:"center"}},multiline:!0,rows:4,onChange:this.handleInputDisputeChanged})),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{onClick:this.handleClickSubmitStatementButton,variant:"contained",color:"primary"},"Submit")),this.showBondIsSettled())})),qg(this,"showWaitForDisputeResolution",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("We have the statements")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},r.createElement("p",null,e("Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.")," "),r.createElement("p",null,e("Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).")))),this.showBondIsSettled())})),qg(this,"showDisputeWinner",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("You have won the dispute")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method)."))),this.showBondIsSettled())})),qg(this,"showDisputeLoser",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"error",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("You have lost the dispute")," "))),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low."))),this.showBondIsSettled())})),qg(this,"handleClickConfirmButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"confirm"})};fetch("/api/order/?order_id="+this.props.data.id,e).then((e=>e.json())).then((e=>this.props.completeSetState(e)))})),qg(this,"handleRatingUserChange",(e=>{const t={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"rate_user",rating:e.target.value})};fetch("/api/order/?order_id="+this.props.data.id,t).then((e=>e.json())).then((e=>this.props.completeSetState(e)))})),qg(this,"handleRatingRobosatsChange",(e=>{if(null!=this.state.rating_platform)return null;this.setState({rating_platform:e.target.value});const t={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":Kg("csrftoken")},body:JSON.stringify({action:"rate_platform",rating:e.target.value})};fetch("/api/order/?order_id="+this.props.data.id,t).then((e=>e.json())).then((e=>this.props.completeSetState(e)))})),qg(this,"showChat",(()=>{const{t:e}=this.props;if(this.props.data.is_buyer&9==this.props.data.status)var t=!0,n=!1,o=!0;return this.props.data.is_seller&9==this.props.data.status&&(t=!1,n=!1,o=!0),this.props.data.is_buyer&10==this.props.data.status&&(t=!1,n=!1,o=!0),this.props.data.is_seller&10==this.props.data.status&&(t=!1,n=!0,o=!0),r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"chat-open"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",this.props.data.is_seller?e("Chat with the buyer"):e("Chat with the seller"))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},this.props.data.is_seller?r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},9==this.props.data.status?e("Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.",{currencyCode:this.props.data.currencyCode}):e("The buyer has sent the fiat. Click 'Confirm Received' once you receive it.")):r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},9==this.props.data.status?e("Say hi! Ask for payment details and click 'Confirm Sent' as soon as the payment is sent."):e("Wait for the seller to confirm he has received the payment."))),r.createElement(Fg,{orderId:this.props.data.id,ur_nick:this.props.data.ur_nick}),r.createElement(it,{item:!0,xs:12,align:"center"},o?this.showOpenDisputeButton():"",t?this.showFiatSentButton():"",n?this.showFiatReceivedButton():""),this.showBondIsLocked())})),qg(this,"countdownRenderer",(({minutes:e,seconds:t,completed:n})=>{const{t:o}=this.props;return n?r.createElement("div",{align:"center"},r.createElement("span",null," ",o("Retrying!")," "),r.createElement("br",null),r.createElement(ct.Z,null)):r.createElement("span",null,uf(e),"m ",uf(t),"s ")})),qg(this,"showRoutingFailed",(()=>{const{t:e}=this.props;return this.props.data.invoice_expired?r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h6",variant:"h6"},e("Lightning Routing Failed"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},e("Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. "),r.createElement(Ft,{href:"https://github.com/Reckless-Satoshi/robosats/issues/44"}," ",e("Check the list of compatible wallets")))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("Submit an invoice for {{amountSats}} Sats",{amountSats:Xg(this.props.data.invoice_amount)})))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{error:this.state.badInvoice,helperText:this.state.badInvoice?this.state.badInvoice:"",label:e("Payout Lightning Invoice"),required:!0,inputProps:{style:{textAlign:"center"}},multiline:!0,minRows:4,maxRows:8,onChange:this.handleInputInvoiceChanged})),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{onClick:this.handleClickSubmitInvoiceButton,variant:"contained",color:"primary"},"Submit")),this.showBondIsReturned()):r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h6",variant:"h6"},e("Lightning Routing Failed"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},e("RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.")),r.createElement(_m.Z,null,r.createElement(Ph,null),r.createElement(Dm,{secondary:e("Next attempt in")},r.createElement(gf,{date:new Date(this.props.data.next_retry_time),renderer:this.countdownRenderer})))),this.showBondIsReturned())})),this.state={openConfirmFiatReceived:!1,openConfirmDispute:!1,openEnableTelegram:!1,badInvoice:!1,badStatement:!1,qrscanner:!1}}showInputInvoice(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(this.Sound,{soundFileName:"locked-invoice"}),r.createElement(st.Z,{color:"primary",component:"subtitle1",variant:"subtitle1"},r.createElement("b",null," ",e("Submit an invoice for {{amountSats}} Sats",{amountSats:Xg(this.props.data.invoice_amount)}))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"left"},r.createElement(st.Z,{component:"body2",variant:"body2"},e("The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.",{amountFiat:parseFloat(parseFloat(this.props.data.amount).toFixed(4)),currencyCode:this.props.data.currencyCode,amountSats:Xg(this.props.data.invoice_amount)}))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ut.Z,{error:this.state.badInvoice,helperText:this.state.badInvoice?this.state.badInvoice:"",label:e("Payout Lightning Invoice"),required:!0,value:this.state.invoice,inputProps:{style:{textAlign:"center"},maxHeight:200},multiline:!0,minRows:5,maxRows:this.state.qrscanner?5:14,onChange:this.handleInputInvoiceChanged})),this.state.qrscanner?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(Ng(),{delay:300,onError:this.handleError,onScan:this.handleScan,style:{width:"75%"}})):null,r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(dt.Z,null,r.createElement(Wg.Z,{onClick:this.handleQRbutton})),r.createElement(pt.Z,{onClick:this.handleClickSubmitInvoiceButton,variant:"contained",color:"primary"},"Submit")),this.showBondIsLocked())}showWaitingForEscrow(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("Your invoice looks good!"))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"left"},r.createElement("p",null,e("We are waiting for the seller lock the trade amount.")),r.createElement("p",null,e("Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).")))),this.showBondIsLocked())}showWaitingForBuyerInvoice(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"locked-invoice"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("The trade collateral is locked!"))," "," "+this.stepXofY())),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"left"},r.createElement("p",null,e("We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.")," "),r.createElement("p",null,e("Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).")))),this.showBondIsLocked())}showFiatSentButton(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{defaultValue:"confirm",variant:"contained",color:"secondary",onClick:this.handleClickConfirmButton},e("Confirm {{currencyCode}} sent",{currencyCode:this.props.data.currencyCode}))))}showFiatReceivedButton(){const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{defaultValue:"confirm",variant:"contained",color:"secondary",onClick:this.handleClickOpenConfirmFiatReceived},e("Confirm {{currencyCode}} received",{currencyCode:this.props.data.currencyCode})))}showOpenDisputeButton(){const{t:e}=this.props;return r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{color:"inherit",onClick:this.handleClickOpenConfirmDispute},e("Open Dispute")))}showOrderExpired(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"subtitle1",variant:"subtitle1"},r.createElement("b",null,e("The order has expired")))))}showRateSelect(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(this.Sound,{soundFileName:"successful"}),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h6",variant:"h6"},e("🎉Trade finished!🥳"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},r.createElement(Nf,{i18nKey:"rate_robosats"},"What do you think of 🤖",r.createElement("b",null,"RoboSats"),"⚡?"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(og,{name:"size-large",defaultValue:0,size:"large",onChange:this.handleRatingRobosatsChange})),5==this.state.rating_platform?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},r.createElement("p",null,r.createElement("b",null,e("Thank you! RoboSats loves you too ❤️"))),r.createElement("p",null,e("RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!")))):null,5!=this.state.rating_platform&null!=this.state.rating_platform?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},r.createElement("p",null,r.createElement("b",null,e("Thank you for using Robosats!"))),r.createElement("p",null,r.createElement(Nf,{i18nKey:"let_us_know_hot_to_improve"},"Let us know how the platform could improve (",r.createElement(Ft,{target:"_blank",href:"https://t.me/robosats"},"Telegram")," / ",r.createElement(Ft,{target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/issues"},"Github"),")")))):null,r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{color:"primary",onClick:()=>{this.props.push("/")}},e("Start Again"))),this.showBondIsReturned())}showSendingPayment(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"h6",variant:"h6"},e("Attempting Lightning Payment"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(st.Z,{component:"body2",variant:"body2",align:"center"},e("RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.")),r.createElement("br",null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(ct.Z,null))))}render(){const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1,style:{width:this.props.width}},r.createElement(this.ConfirmDisputeDialog,null),r.createElement(this.ConfirmFiatReceivedDialog,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(Yt(),{minWidth:920},r.createElement(st.Z,{component:"h5",variant:"h5"},e("Contract Box"))),r.createElement(Me.Z,{elevation:12,style:{padding:8}},this.props.data.is_maker&0==this.props.data.status?this.showQRInvoice():"",this.props.data.is_taker&3==this.props.data.status?this.showQRInvoice():"",this.props.data.is_maker&1==this.props.data.status?this.showMakerWait():"",this.props.data.is_maker&3==this.props.data.status?this.showTakerFound():"",this.props.data.is_seller&(6==this.props.data.status||7==this.props.data.status)?this.showEscrowQRInvoice():"",this.props.data.is_buyer&(6==this.props.data.status||8==this.props.data.status)?this.showInputInvoice():"",this.props.data.is_buyer&7==this.props.data.status?this.showWaitingForEscrow():"",this.props.data.is_seller&8==this.props.data.status?this.showWaitingForBuyerInvoice():"",9==this.props.data.status||10==this.props.data.status?this.showChat():"",this.props.data.is_seller&[13,14,15].includes(this.props.data.status)?this.showRateSelect():"",this.props.data.is_buyer&14==this.props.data.status?this.showRateSelect():"",this.props.data.is_buyer&13==this.props.data.status?this.showSendingPayment():"",this.props.data.is_buyer&15==this.props.data.status?this.showRoutingFailed():"",11==this.props.data.status?this.showInDisputeStatement():"",16==this.props.data.status?this.showWaitForDisputeResolution():"",17==this.props.data.status&this.props.data.is_taker||18==this.props.data.status&this.props.data.is_maker?this.showDisputeWinner():"",18==this.props.data.status&this.props.data.is_taker||17==this.props.data.status&this.props.data.is_maker?this.showDisputeLoser():"",5==this.props.data.status?this.showOrderExpired():"")))}}const Qg=xe()(Jg);var _g=n(244),$g=n(842),eb=n(6543),tb=n(7116),nb=n(1523);function rb(e){return rb="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},rb(e)}function ob(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ab(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};ob(this,e),this.init(t,n)}return ib(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||gb,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),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(o())return{};var i=r(a.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function Sb(e,t,n){var r=xb(e,t,Object);r.obj[r.k]=n}function Eb(e,t){var n=xb(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Pb(e,t,n){var r=Eb(e,n);return void 0!==r?r:Eb(t,n)}function Tb(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Tb(e[r],t[r],n):e[r]=t[r]);return e}function Ab(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Rb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Ob(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Rb[e]})):e}var Mb="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Bb=[" ",",","?","!",";"];function Ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zb(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,a=0;aa+i;)i++,l=o[s=r.slice(a,a+i).join(n)];if(void 0===l)return;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var c=r.slice(a+i).join(n);return c?Lb(l,c,n):void 0}o=o[r[a]]}return o}}var Db=function(e){cb(o,e);var t,n,r=(t=o,n=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,r=db(t);if(n){var o=db(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return ub(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ob(this,o),t=r.call(this),Mb&&yb.call(sb(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return ib(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,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."));var s=Eb(this.data,i);return s||!a||"string"!=typeof n?s:Lb(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(i=e.split("."))[1]),this.addNamespaces(t),Sb(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(i=e.split("."))[1]),this.addNamespaces(t);var s=Eb(this.data,i)||{};r?Tb(s,n,o):s=Zb(Zb({},s),n),Sb(this.data,i,s),a.silent||this.emit("added",e,t,n)}},{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?Zb(Zb({},{}),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}(yb),jb={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,o))})),t}};function Fb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zb(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return ob(this,o),t=r.call(this),Mb&&yb.call(sb(t)),Cb(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,sb(t)),t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=vb.create("translator"),t}return ib(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 n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=Bb.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),a=!o.test(e);if(!a){var i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a}(e,n,r));if(a&&!i){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==rb(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],t),s=i.key,l=i.namespaces,c=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(d){var p=t.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var m=this.resolve(e,t),h=m&&m.res,f=m&&m.usedKey||s,g=m&&m.exactUsedKey||s,b=Object.prototype.toString.apply(h),v=["[object Number]","[object Function]","[object RegExp]"],y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,k="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&k&&v.indexOf(b)<0&&("string"!=typeof y||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,h,zb(zb({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C="[object Array]"===b,x=C?[]:{},S=C?g:f;for(var E in h)if(Object.prototype.hasOwnProperty.call(h,E)){var P="".concat(S).concat(a).concat(E);x[E]=this.translate(P,zb(zb({},t),{joinArrays:!1,ns:l})),x[E]===P&&(x[E]=h[E])}h=x}}else if(w&&"string"==typeof y&&"[object Array]"===b)(h=h.join(y))&&(h=this.extendTranslation(h,e,t,n));else{var T=!1,A=!1,R=void 0!==t.count&&"string"!=typeof t.count,O=o.hasDefaultValue(t),M=R?this.pluralResolver.getSuffix(u,t.count,t):"",B=t["defaultValue".concat(M)]||t.defaultValue;!this.isValidLookup(h)&&O&&(T=!0,h=B),this.isValidLookup(h)||(A=!0,h=s);var I=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Z=I&&A?void 0:h,L=O&&B!==h&&this.options.updateMissing;if(A||T||L){if(this.logger.log(L?"updateKey":"missingKey",u,c,s,L?B:h),a){var D=this.resolve(s,zb(zb({},t),{},{keySeparator:!1}));D&&D.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 j=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&F&&F[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&i.pluralResolver.shouldUseIntlApi(),m=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(e){i.isValidLookup(t)||(a=e,!Nb["".concat(h[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(a)&&(Nb["".concat(h[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(a,'" 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!!!")),h.forEach((function(n){if(!i.isValidLookup(t)){o=n;var a,l=[c];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(l,c,n,e,s);else{var u;d&&(u=i.pluralResolver.getSuffix(n,s.count,s));var h="_zero";if(d&&(l.push(c+u),p&&l.push(c+h)),m){var f="".concat(c).concat(i.options.contextSeparator).concat(s.context);l.push(f),d&&(l.push(f+u),p&&l.push(f+h))}}for(;a=l.pop();)i.isValidLookup(t)||(r=a,t=i.getResource(n,e,a,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}(yb);function Vb(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Wb=function(){function e(t){ob(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=vb.create("languageUtils")}return ib(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"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vb(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vb(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Vb(n[2].toLowerCase()))),n.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,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),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 n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],a=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))})),o}}]),e}(),Ub=[{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}],Yb={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)}},Gb=["v1","v2","v3"],qb={zero:0,one:1,two:2,few:3,many:4,other:5};function Kb(){var e={};return Ub.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Yb[t.fc]}}))})),e}var Xb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ob(this,e),this.languageUtils=t,this.options=n,this.logger=vb.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=Kb()}return ib(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]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return qb[e]-qb[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Gb.includes(this.options.compatibilityJSON)}}]),e}();function Jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qb(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ob(this,e),this.logger=vb.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ib(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:Ob,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Ab(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Ab(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?Ab(t.nestingPrefix):t.nestingPrefixEscaped||Ab("$t("),this.nestingSuffix=t.nestingSuffix?Ab(t.nestingSuffix):t.nestingSuffixEscaped||Ab(")"),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 n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,a,i,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=Pb(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,Qb(Qb(Qb({},r),t),{},{interpolationkey:e})):o}var a=e.split(s.formatSeparator),i=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(Pb(t,l,i),c,n,Qb(Qb(Qb({},r),t),{},{interpolationkey:i}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.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(i=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(a=u(n)))if("function"==typeof d){var l=d(e,o,r);a="string"==typeof l?l:""}else if(r&&r.hasOwnProperty(n))a="";else{if(p){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=kb(a));var c=t.safeValue(a);if(e=e.replace(o[0],c),p?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++i>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Qb({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,i)).replace(/'/g,'"');try{i=JSON.parse(o),t&&(i=Qb(Qb({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=kb(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return o.format(e,t,a.lng,Qb(Qb({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function $b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ev(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ob(this,e),this.logger=vb.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,ev(ev({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,ev({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,ev({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,ev({},n)).format(e)}},this.init(t)}return ib(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var o=this,a=t.split(this.formatSeparator).reduce((function(e,t){var a=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=function(e){return function(e){if(Array.isArray(e))return 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 mb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mb(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(":")),r=t[0],o=t.slice(1).join(":");n[r.trim()]||(n[r.trim()]=o.trim()),"false"===o.trim()&&(n[r.trim()]=!1),"true"===o.trim()&&(n[r.trim()]=!0),isNaN(o.trim())||(n[r.trim()]=parseInt(o.trim(),10))}}))}return{formatName:t,formatOptions:n}}(t),i=a.formatName,s=a.formatOptions;if(o.formats[i]){var l=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},u=c.locale||c.lng||r.locale||r.lng||n;l=o.formats[i](e,u,ev(ev(ev({},s),r),c))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(i)),e}),e);return a}}]),e}();function nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rv(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return ob(this,o),a=r.call(this),Mb&&yb.call(sb(a)),a.backend=e,a.store=t,a.services=n,a.languageUtils=n.languageUtils,a.options=i,a.logger=vb.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,i.backend,i),a}return ib(o,[{key:"queueLoad",value:function(e,t,n,r){var o=this,a=[],i=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?i.indexOf(s)<0&&i.push(s):(o.state[s]=1,r=!1,i.indexOf(s)<0&&i.push(s),a.indexOf(s)<0&&a.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(a.length||i.length)&&this.queue.push({pending:i,loaded:{},errors:[],callback:r}),{toLoad:a,pending:i,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],a=r[1];t&&this.emit("failedLoading",o,a,t),n&&this.store.addResourceBundle(o,a,n),this.state[e]=t?-1:2;var i={};this.queue.forEach((function(n){!function(e,t,n,r){var o=xb(e,t,Object),a=o.obj,i=o.k;a[i]=a[i]||[],a[i].push(n)}(n.loaded,[o],a),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){i[e]||(i[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){i[e].indexOf(t)<0&&i[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,i=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*a,i)}),a):i(s,l)})):i(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;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 a=this.queueLoad(e,t,r,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],a=r[1];this.read(o,a,"read",void 0,void 0,(function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),t.loaded(e,r,i)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" 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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,rv(rv({},a),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),o}(yb);function av(){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"===rb(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===rb(e[2])||"object"===rb(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function iv(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 sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lv(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(ob(this,o),e=r.call(this),Mb&&yb.call(sb(e)),e.options=iv(t),e.services={},e.logger=vb,e.modules={external:[]},uv(sb(e)),n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),ub(e,sb(e));setTimeout((function(){e.init(t,n)}),0)}return e}return ib(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=av();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=lv(lv(lv({},r),this.options),iv(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=lv(lv({},r.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 a;this.modules.logger?vb.init(o(this.modules.logger),this.options):vb.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=tv);var i=new Wb(this.options);this.store=new Db(this.options.resources,this.options);var s=this.services;s.logger=vb,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new Xb(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=o(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new _b(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ov(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o0&&"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");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=wb(),p=function(){var t=function(t,r){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),d.resolve(r),n(t,r)};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?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cv,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var a=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(o)i(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return i(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(a,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,n){var r=wb();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cv),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{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&&jb.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-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=wb();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var i="string"==typeof a?a:n.services.languageUtils.getBestMatchFromCodes(a);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,a){a?(o(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var a;if("object"!==rb(o)){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l1&&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 r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!i(r,e)||o&&!i(a,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=wb();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=wb();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e?["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(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cv,r=lv(lv(lv({},this.options),t),{isClone:!0}),a=new o(r),i=["store","services","language"];return i.forEach((function(t){a[t]=e[t]})),a.services=lv({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new Hb(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new dv(e,t)}));var pv=dv.createInstance();pv.createInstance=dv.createInstance,pv.createInstance,pv.init,pv.loadResources,pv.reloadResources,pv.use,pv.changeLanguage,pv.getFixedT;var mv=pv.t;pv.exists,pv.setDefaultNamespace,pv.hasLoadedNamespace,pv.loadNamespaces,pv.loadLanguages;const hv=pv;function fv(){return fv=Object.assign||function(e){for(var t=1;t{null==e.currency&&(e.currency=this.state.currency,e.status=this.state.status);var t={amount:e.amount?e.amount:null,loading:!1,delay:this.setDelay(e.status),currencyCode:this.getCurrencyCode(e.currency),penalty:e.penalty,invoice_expired:e.invoice_expired},n=Object.assign({},e,t);this.setState(n)})),gv(this,"tick",(()=>{this.getOrderDetails()})),gv(this,"countdownRenderer",(({total:e,hours:t,minutes:n,seconds:o,completed:a})=>{const{t:i}=this.props;if(a)return r.createElement("span",null," ",i("The order has expired"));var s="inherit",l=e/1e3/this.state.total_secs_exp;return l<.25&&(s="orange"),l<.1&&(s="red"),l<.25?r.createElement("b",null,r.createElement("span",{style:{color:s}},t,"h ",uf(n),"m ",uf(o),"s ")):r.createElement("span",{style:{color:s}},t,"h ",uf(n),"m ",uf(o),"s ")})),gv(this,"countdownPenaltyRenderer",(({minutes:e,seconds:t,completed:n})=>{const{t:o}=this.props;return n?r.createElement("span",null," ",o("Penalty lifted, good to go!")):r.createElement("span",null," ",o("You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s",{timeMin:uf(e),timeSec:uf(t)})," ")})),gv(this,"handleTakeAmountChange",(e=>{""!=e.target.value&null!=e.target.value?this.setState({takeAmount:parseFloat(e.target.value)}):this.setState({takeAmount:e.target.value})})),gv(this,"amountHelperText",(()=>{const{t:e}=this.props;return this.state.takeAmountthis.state.max_amount&""!=this.state.takeAmount?e("Too high"):null})),gv(this,"takeOrderButton",(()=>{const{t:e}=this.props;return this.state.has_range?r.createElement(it,{containter:!0,xs:12,align:"center",alignItems:"stretch",justifyContent:"center",style:{display:"flex"}},r.createElement(this.InactiveMakerDialog,null),r.createElement("div",{style:{maxWidth:120}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"500",enterDelay:"700",enterNextDelay:"2000",title:e("Enter amount of fiat to exchange for bitcoin")},r.createElement(Me.Z,{elevation:5,sx:{maxHeight:40}},r.createElement(ut.Z,{error:(this.state.takeAmountthis.state.max_amount)&""!=this.state.takeAmount,helperText:this.amountHelperText(),label:e("Amount {{currencyCode}}",{currencyCode:this.state.currencyCode}),size:"small",type:"number",required:"true",value:this.state.takeAmount,inputProps:{min:this.state.min_amount,max:this.state.max_amount,style:{textAlign:"center"}},onChange:this.handleTakeAmountChange})))),r.createElement("div",{style:{height:38,top:"1px",position:"relative",display:this.state.takeAmountthis.state.max_amount||""==this.state.takeAmount||null==this.state.takeAmount?"":"none"}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",enterDelay:"500",enterNextDelay:"1200",title:e("You must specify an amount first")},r.createElement(Me.Z,{elevation:4},r.createElement(pt.Z,{sx:{height:38},variant:"contained",color:"primary",disabled:!0},e("Take Order"))))),r.createElement("div",{style:{height:38,top:"1px",position:"relative",display:this.state.takeAmountthis.state.max_amount||""==this.state.takeAmount||null==this.state.takeAmount?"none":""}},r.createElement(Me.Z,{elevation:4},r.createElement(pt.Z,{sx:{height:38},variant:"contained",color:"primary",onClick:"Inactive"==this.state.maker_status?this.handleClickOpenInactiveMakerDialog:this.takeOrder},e("Take Order"))))):r.createElement(r.Fragment,null,r.createElement(this.InactiveMakerDialog,null),r.createElement(pt.Z,{variant:"contained",color:"primary",onClick:"Inactive"==this.state.maker_status?this.handleClickOpenInactiveMakerDialog:this.takeOrder},e("Take Order")))})),gv(this,"countdownTakeOrderRenderer",(({seconds:e,completed:t})=>isNaN(e)||t?r.createElement(this.takeOrderButton,null):r.createElement(lt.Z,{enterTouchDelay:"0",title:mv("Wait until you can take an order")},r.createElement("div",null,r.createElement(pt.Z,{disabled:!0,variant:"contained",color:"primary"},mv("Take Order")))))),gv(this,"LinearDeterminate",(()=>{const[e,t]=r.useState(0);return r.useEffect((()=>{const e=setInterval((()=>{t((e=>pf(new Date(this.state.expires_at)).total/1e3/this.state.total_secs_exp*100))}),1e3);return()=>{clearInterval(e)}}),[]),r.createElement(oo,{sx:{width:"100%"}},r.createElement(Wr,{variant:"determinate",value:e}))})),gv(this,"takeOrder",(()=>{this.setState({loading:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":bv("csrftoken")},body:JSON.stringify({action:"take",amount:this.state.takeAmount})};fetch("/api/order/?order_id="+this.orderId,e).then((e=>e.json())).then((e=>this.completeSetState(e)))})),gv(this,"setDelay",(e=>e>=0?this.statusToDelay[e.toString()]:99999999)),gv(this,"handleClickConfirmCancelButton",(()=>{this.setState({loading:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":bv("csrftoken")},body:JSON.stringify({action:"cancel"})};fetch("/api/order/?order_id="+this.orderId,e).then((e=>e.json())).then((e=>this.getOrderDetails(e.id))),this.handleClickCloseConfirmCancelDialog()})),gv(this,"handleClickOpenConfirmCancelDialog",(()=>{this.setState({openCancel:!0})})),gv(this,"handleClickCloseConfirmCancelDialog",(()=>{this.setState({openCancel:!1})})),gv(this,"CancelDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openCancel,onClose:this.handleClickCloseConfirmCancelDialog,"aria-labelledby":"cancel-dialog-title","aria-describedby":"cancel-dialog-description"},r.createElement(Gm,{id:"cancel-dialog-title"},e("Cancel the order?")),r.createElement(At,null,r.createElement(Qm,{id:"cancel-dialog-description"},e("If the order is cancelled now you will lose your bond."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmCancelDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickConfirmCancelButton},e("Confirm Cancel"))))})),gv(this,"handleClickOpenInactiveMakerDialog",(()=>{this.setState({openInactiveMaker:!0})})),gv(this,"handleClickCloseInactiveMakerDialog",(()=>{this.setState({openInactiveMaker:!1})})),gv(this,"InactiveMakerDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openInactiveMaker,onClose:this.handleClickCloseInactiveMakerDialog,"aria-labelledby":"inactive-maker-dialog-title","aria-describedby":"inactive-maker-description"},r.createElement(Gm,{id:"inactive-maker-dialog-title"},e("The maker is away")),r.createElement(At,null,r.createElement(Qm,{id:"cancel-dialog-description"},e("By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseInactiveMakerDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.takeOrder},e("Take Order"))))})),gv(this,"handleClickConfirmCollaborativeCancelButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":bv("csrftoken")},body:JSON.stringify({action:"cancel"})};fetch("/api/order/?order_id="+this.orderId,e).then((e=>e.json())).then((e=>this.getOrderDetails(e.id))),this.handleClickCloseCollaborativeCancelDialog()})),gv(this,"handleClickOpenCollaborativeCancelDialog",(()=>{this.setState({openCollaborativeCancel:!0})})),gv(this,"handleClickCloseCollaborativeCancelDialog",(()=>{this.setState({openCollaborativeCancel:!1})})),gv(this,"CollaborativeCancelDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openCollaborativeCancel,onClose:this.handleClickCloseCollaborativeCancelDialog,"aria-labelledby":"collaborative-cancel-dialog-title","aria-describedby":"collaborative-cancel-dialog-description"},r.createElement(Gm,{id:"cancel-dialog-title"},e("Collaborative cancel the order?")),r.createElement(At,null,r.createElement(Qm,{id:"cancel-dialog-description"},e("The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel."))),r.createElement(Wt,null,r.createElement(pt.Z,{onClick:this.handleClickCloseCollaborativeCancelDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickConfirmCollaborativeCancelButton},e("Ask for Cancel"))))})),gv(this,"BackButton",(()=>{const{t:e}=this.props;return 5==this.state.status?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.props.history.goBack},e("Back"))):null})),gv(this,"CancelButton",(()=>{const{t:e}=this.props;return this.state.is_maker&[0,1].includes(this.state.status)||this.state.is_taker&3==this.state.status?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.handleClickConfirmCancelButton},e("Cancel"))):[3,6,7].includes(this.state.status)?r.createElement("div",{id:"openDialogCancelButton"},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(this.CancelDialog,null),r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.handleClickOpenConfirmCancelDialog},e("Cancel")))):[8,9].includes(this.state.status)?r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(this.CollaborativeCancelDialog,null),r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.handleClickOpenCollaborativeCancelDialog},e("Collaborative Cancel"))):null})),gv(this,"orderBox",(()=>{const{t:e}=this.props;return r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(Yt(),{minWidth:920},r.createElement(st.Z,{component:"h5",variant:"h5"},e("Order Box"))),r.createElement(Me.Z,{elevation:12,style:{padding:8}},r.createElement(_m.Z,{dense:"true"},r.createElement(ph,null,r.createElement(Om,{sx:{width:56,height:56}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:e(this.state.maker_status)},r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(this.state.maker_status)},r.createElement(wh,{className:"flippedSmallAvatar",alt:this.state.maker_nick,src:window.location.origin+"/static/assets/avatars/"+this.state.maker_nick+".png"})))),r.createElement(Dm,{primary:this.state.maker_nick+(this.state.type?" "+e("(Seller)"):" "+e("(Buyer)")),secondary:e("Order maker"),align:"right"})),this.state.is_participant?r.createElement(r.Fragment,null,"None"!=this.state.taker_nick?r.createElement(r.Fragment,null,r.createElement(Ph,null),r.createElement(ph,{align:"left"},r.createElement(Dm,{primary:this.state.taker_nick+(this.state.type?" "+e("(Buyer)"):" "+e("(Seller)")),secondary:e("Order taker")}),r.createElement(Om,null,r.createElement(lt.Z,{enterTouchDelay:"0",title:e(this.state.taker_status)},r.createElement(Mm.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(this.state.taker_status)},r.createElement(wh,{className:"smallAvatar",alt:this.state.taker_nick,src:window.location.origin+"/static/assets/avatars/"+this.state.taker_nick+".png"})))))):"",r.createElement(Ph,null,r.createElement(Lh,{label:e("Order Details")})),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(nb.Z,null)),r.createElement(Dm,{primary:e(this.state.status_message),secondary:e("Order status")})),r.createElement(Ph,null)):r.createElement(Ph,null,r.createElement(Lh,{label:e("Order Details")})),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement("div",{style:{zoom:1.25,opacity:.7,"-ms-zoom":1.25,"-webkit-zoom":1.25,"-moz-transform":"scale(1.25,1.25)","-moz-transform-origin":"left center"}},Hp(this.state.currencyCode))),this.state.has_range&null==this.state.amount?r.createElement(Dm,{primary:parseFloat(Number(this.state.min_amount).toPrecision(2))+"-"+parseFloat(Number(this.state.max_amount).toPrecision(2))+" "+this.state.currencyCode,secondary:e("Amount range")}):r.createElement(Dm,{primary:parseFloat(parseFloat(this.state.amount).toFixed(4))+" "+this.state.currencyCode,secondary:e("Amount")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(tb.Z,null)),r.createElement(Dm,{primary:r.createElement(zm,{size:20,othersText:e("Others"),verbose:!0,text:this.state.payment_method}),secondary:1e3==this.state.currency?e("Swap destination"):e("Accepted payment methods")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(eb.Z,null)),this.state.price_now?r.createElement(Dm,{primary:e("{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%",{price:vv(this.state.price_now),currencyCode:this.state.currencyCode,premium:this.state.premium_now}),secondary:e("Price and Premium")}):this.state.is_explicit?r.createElement(Dm,{primary:vv(this.state.satoshis),secondary:e("Amount of Satoshis")}):r.createElement(Dm,{primary:parseFloat(parseFloat(this.state.premium).toFixed(2))+"%",secondary:e("Premium over market price")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement($g.Z,null)),r.createElement(Dm,{primary:this.orderId,secondary:e("Order ID")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(_g.Z,null)),r.createElement(Dm,{secondary:e("Expires in")},r.createElement(gf,{date:new Date(this.state.expires_at),renderer:this.countdownRenderer}))),r.createElement(this.LinearDeterminate,null)),this.state.penalty?r.createElement(r.Fragment,null,r.createElement(Ph,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(_h,{severity:"warning",sx:{maxWidth:360}},r.createElement(gf,{date:new Date(this.state.penalty),renderer:this.countdownPenaltyRenderer})))):null,this.state.pending_cancel?r.createElement(r.Fragment,null,r.createElement(Ph,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(_h,{severity:"warning",sx:{maxWidth:360}},e("{{nickname}} is asking for a collaborative cancel",{nickname:this.state.is_maker?this.state.taker_nick:this.state.maker_nick})))):null,this.state.asked_for_cancel?r.createElement(r.Fragment,null,r.createElement(Ph,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(_h,{severity:"warning",sx:{maxWidth:360}},e("You asked for a collaborative cancellation")))):null)),r.createElement(it,{item:!0,xs:12,align:"center"},this.state.is_participant?r.createElement(r.Fragment,null,r.createElement(this.CancelButton,null),r.createElement(this.BackButton,null)):r.createElement(it,{container:!0,spacing:1},r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(gf,{date:new Date(this.state.penalty),renderer:this.countdownTakeOrderRenderer})),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.props.history.goBack},e("Back"))))))})),gv(this,"doubleOrderPageDesktop",(()=>r.createElement(it,{container:!0,xs:12,align:"center",spacing:2},r.createElement(it,{item:!0,xs:6,align:"left",style:{width:330}},this.orderBox()),r.createElement(it,{item:!0,xs:6,align:"left"},r.createElement(Qg,{push:this.props.history.push,width:330,data:this.state,completeSetState:this.completeSetState}))))),gv(this,"doubleOrderPagePhone",(()=>{const{t:e}=this.props,[t,n]=r.useState(this.state.showContractBox);return r.createElement(oo,{sx:{width:"100%"}},r.createElement(oo,{sx:{borderBottom:1,borderColor:"divider"}},r.createElement(No,{value:t,onChange:(e,t)=>{this.setState({showContractBox:t}),n(t)},variant:"fullWidth"},r.createElement(Go,fv({label:e("Order")},this.a11yProps(0))),r.createElement(Go,fv({label:e("Contract")},this.a11yProps(1))))),r.createElement(it,{container:!0,spacing:2},r.createElement(it,{item:!0},r.createElement("div",{style:{width:330,display:0==this.state.showContractBox?"":"none"}},this.orderBox()),r.createElement("div",{style:{display:1==this.state.showContractBox?"":"none"}},r.createElement(Qg,{push:this.props.history.push,width:330,data:this.state,completeSetState:this.completeSetState})))))})),this.state={is_explicit:!1,delay:6e4,total_secs_exp:300,loading:!0,openCancel:!1,openCollaborativeCancel:!1,openInactiveMaker:!1,showContractBox:1},this.orderId=this.props.match.params.orderId,this.getOrderDetails(),this.statusToDelay={0:2e3,1:25e3,2:999999,3:2e3,4:999999,5:999999,6:6e3,7:8e3,8:8e3,9:1e4,10:1e4,11:3e4,12:999999,13:3e3,14:999999,15:1e4,16:18e4,17:18e4,18:18e4}}getOrderDetails(){this.setState(null),fetch("/api/order?order_id="+this.orderId).then((e=>e.json())).then((e=>this.completeSetState(e)))}componentDidMount(){this.interval=setInterval(this.tick,this.state.delay)}componentDidUpdate(){clearInterval(this.interval),this.interval=setInterval(this.tick,this.state.delay)}componentWillUnmount(){clearInterval(this.interval)}getCurrencyCode(e){return e?pm[e.toString()]:""}statusBadgeColor(e){return"Active"==e?"success":"Seen recently"==e?"warning":"Inactive"==e?"error":void 0}a11yProps(e){return{id:`simple-tab-${e}`,"aria-controls":`simple-tabpanel-${e}`}}orderDetailsPage(){const{t:e}=this.props;return this.state.bad_request?r.createElement("div",{align:"center"},r.createElement(st.Z,{component:"subtitle2",variant:"subtitle2",color:"secondary"},e(this.state.bad_request),r.createElement("br",null)),r.createElement(pt.Z,{variant:"contained",color:"secondary",onClick:this.props.history.goBack},e("Back"))):this.state.is_participant?r.createElement(r.Fragment,null,r.createElement(Yt(),{minWidth:920},r.createElement(this.doubleOrderPageDesktop,null)),r.createElement(Yt(),{maxWidth:919},r.createElement(this.doubleOrderPagePhone,null))):r.createElement(it,{item:!0,xs:12,align:"center",style:{width:330}},this.orderBox())}render(){return this.state.loading?r.createElement(ct.Z,null):this.orderDetailsPage()}}const wv=xe()(yv);var kv=n(2852),Cv=n(4229),xv=n(8571),Sv=n(2133),Ev=n(62),Pv=n(5449),Tv=n(4855),Av=n(9055),Rv=n(8557),Ov=n(4804),Mv=n(4210),Bv=n(8594),Iv=n(5089);function Zv(){return Zv=Object.assign||function(e){for(var t=1;t{this.setState({openStatsForNerds:!0})})),jv(this,"handleClickCloseStatsForNerds",(()=>{this.setState({openStatsForNerds:!1})})),jv(this,"StatsDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openStatsForNerds,onClose:this.handleClickCloseStatsForNerds,"aria-labelledby":"stats-for-nerds-dialog-title","aria-describedby":"stats-for-nerds-description"},r.createElement(At,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Stats For Nerds")),r.createElement(_m.Z,{dense:!0},r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(en.Z,null)),r.createElement(Dm,{primary:this.state.lnd_version,secondary:e("LND version")})),r.createElement(Ph,null),"testnet"==this.state.network?r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Ov.Z,null)),r.createElement(Dm,{secondary:this.state.node_alias},r.createElement(Ft,{target:"_blank",href:"https://1ml.com/testnet/node/"+this.state.node_id},this.state.node_id.slice(0,12)+"... (1ML)"))):r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Lv,null)),r.createElement(Dm,{secondary:this.state.node_alias},r.createElement(Ft,{target:"_blank",href:"https://amboss.space/node/"+this.state.node_id},this.state.node_id.slice(0,12)+"... (AMBOSS)"))),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Mv.Z,null)),r.createElement(Dm,{secondary:this.state.alternative_name},r.createElement(Ft,{target:"_blank",href:"http://"+this.state.alternative_site},this.state.alternative_site.slice(0,12)+"...onion"))),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Pv.Z,null)),r.createElement(Dm,{secondary:e("Currently running commit hash")},r.createElement(Ft,{target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/tree/"+this.state.robosats_running_commit_hash},this.state.robosats_running_commit_hash.slice(0,12)+"..."))),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Tv.Z,null)),r.createElement(Dm,{primary:Fv(this.state.last_day_volume)+" Sats",secondary:e("24h contracted volume")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Tv.Z,null)),r.createElement(Dm,{primary:Fv(this.state.lifetime_volume)+" BTC",secondary:e("Lifetime contracted volume")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Av.Z,null)),r.createElement(Dm,{primary:r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"left",flexWrap:"wrap"}},r.createElement("span",null,e("Made with")+" "),r.createElement(Dv.Z,{sx:{color:"#FF0000",height:"22px",width:"22px"}}),r.createElement("span",null," "+e("and")+" "),r.createElement(en.Z,{sx:{color:"#fcba03",height:"23px",width:"23px"}})),secondary:e("... somewhere on Earth!")})))))})),jv(this,"handleClickOpenCommunity",(()=>{this.setState({openCommuniy:!0})})),jv(this,"handleClickCloseCommunity",(()=>{this.setState({openCommuniy:!1})})),jv(this,"CommunityDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openCommuniy,onClose:this.handleClickCloseCommunity,"aria-labelledby":"community-dialog-title","aria-describedby":"community-description"},r.createElement(At,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Community")),r.createElement(st.Z,{component:"body2",variant:"body2"},r.createElement("p",null,e("Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!"))),r.createElement(_m.Z,null,r.createElement(Ph,null),r.createElement(Em,{component:"a",target:"_blank",href:"https://t.me/robosats"},r.createElement(Dh.Z,null,r.createElement(Ug.Z,null)),r.createElement(Dm,{primary:e("Join the RoboSats group"),secondary:e("Telegram (English / Main)")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Ug.Z,null)),r.createElement(Dm,{secondary:e("RoboSats Telegram Communities")},r.createElement(lt.Z,{title:e("Join RoboSats Spanish speaking community!")},r.createElement(dt.Z,{component:"a",target:"_blank",href:"https://t.me/robosats_es"},r.createElement(Jd,{width:30,height:30,style:{filter:"drop-shadow(2px 2px 2px #444444)"}}))),r.createElement(lt.Z,{title:e("Join RoboSats Russian speaking community!")},r.createElement(dt.Z,{component:"a",target:"_blank",href:"https://t.me/robosats_ru"},r.createElement(Tp,{width:30,height:30,style:{filter:"drop-shadow(2px 2px 2px #444444)"}}))),r.createElement(lt.Z,{title:e("Join RoboSats Chinese speaking community!")},r.createElement(dt.Z,{component:"a",target:"_blank",href:"https://t.me/robosats_cn"},r.createElement(Vd,{width:30,height:30,style:{filter:"drop-shadow(2px 2px 2px #444444)"}}))),r.createElement(lt.Z,{title:e("Join RoboSats English speaking community!")},r.createElement(dt.Z,{component:"a",target:"_blank",href:"https://t.me/robosats"},r.createElement(Lp,{width:30,height:30,style:{filter:"drop-shadow(2px 2px 2px #444444)"}}))))),r.createElement(Ph,null),r.createElement(Em,{component:"a",target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/issues"},r.createElement(Dh.Z,null,r.createElement(Pv.Z,null)),r.createElement(Dm,{primary:e("Tell us about a new feature or a bug"),secondary:e("Github Issues - The Robotic Satoshis Open Source Project")})))))})),jv(this,"handleClickOpenProfile",(()=>{this.getInfo(),this.setState({openProfile:!0,profileShown:!0})})),jv(this,"handleClickCloseProfile",(()=>{this.setState({openProfile:!1})})),jv(this,"handleSubmitInvoiceClicked",(()=>{this.setState({badInvoice:!1,showRewardsSpinner:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":zv("csrftoken")},body:JSON.stringify({invoice:this.state.rewardInvoice})};fetch("/api/reward/",e).then((e=>e.json())).then((e=>console.log(e)&this.setState({badInvoice:e.bad_invoice,openClaimRewards:!e.successful_withdrawal,earned_rewards:e.successful_withdrawal?0:this.state.earned_rewards,withdrawn:!!e.successful_withdrawal,showRewardsSpinner:!1})))})),jv(this,"dialogProfile",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openProfile,onClose:this.handleClickCloseProfile,"aria-labelledby":"profile-title","aria-describedby":"profile-description"},r.createElement(At,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Your Profile")),r.createElement(_m.Z,null,r.createElement(Ph,null),r.createElement(ph,{className:"profileNickname"},r.createElement(Dm,{secondary:e("Your robot")},r.createElement(st.Z,{component:"h6",variant:"h6"},this.props.nickname?r.createElement("div",{style:{position:"relative",left:"-7px"}},r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"left",flexWrap:"wrap",width:300}},r.createElement(en.Z,{sx:{color:"#fcba03",height:"28px",width:"24px"}}),r.createElement("a",null,this.props.nickname),r.createElement(en.Z,{sx:{color:"#fcba03",height:"28px",width:"24px"}}))):"")),r.createElement(Om,null,r.createElement(wh,{className:"profileAvatar",sx:{width:65,height:65},alt:this.props.nickname,src:this.props.nickname?window.location.origin+"/static/assets/avatars/"+this.props.nickname+".png":null}))),r.createElement(Ph,null),this.state.active_order_id?r.createElement(Em,{onClick:this.handleClickCloseProfile,to:"/order/"+this.state.active_order_id,component:K},r.createElement(Dh.Z,null,r.createElement(Mm.Z,{badgeContent:"",color:"primary"},r.createElement($g.Z,{color:"primary"}))),r.createElement(Dm,{primary:e("One active order #{{orderID}}",{orderID:this.state.active_order_id}),secondary:e("Your current order")})):r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement($g.Z,null)),r.createElement(Dm,{primary:e("No active orders"),secondary:e("Your current order")})),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Rv.Z,null)),r.createElement(Dm,{secondary:e("Your token (will not remain here)")},this.props.token?r.createElement(ut.Z,{disabled:!0,label:e("Back it up!"),value:this.props.token,variant:"filled",size:"small",InputProps:{endAdornment:r.createElement(lt.Z,{disableHoverListener:!0,enterTouchDelay:"0",title:e("Copied!")},r.createElement(dt.Z,{onClick:()=>navigator.clipboard.writeText(this.props.token)},r.createElement(Jt.Z,null)))}}):e("Cannot remember"))),r.createElement(Ph,null),r.createElement(it,{spacing:1,align:"center"},r.createElement(vn.Z,{labelPlacement:"start",control:r.createElement(kv.Z,{checked:this.state.showRewards,onChange:()=>this.setState({showRewards:!this.state.showRewards})}),label:e("Rewards and compensations")})),r.createElement("div",{style:{display:this.state.showRewards?"":"none"}},r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Bv.Z,null)),r.createElement(Dm,{secondary:e("Share to earn 100 Sats per trade")},r.createElement(ut.Z,{label:e("Your referral link"),value:this.getHost()+"/ref/"+this.state.referral_code,size:"small",InputProps:{endAdornment:r.createElement(lt.Z,{disableHoverListener:!0,enterTouchDelay:"0",title:e("Copied!")},r.createElement(dt.Z,{onClick:()=>navigator.clipboard.writeText("http://"+this.getHost()+"/ref/"+this.state.referral_code)},r.createElement(Jt.Z,null)))}}))),r.createElement(ph,null,r.createElement(Dh.Z,null,r.createElement(Iv.Z,null)),this.state.openClaimRewards?r.createElement("form",{style:{maxWidth:270}},r.createElement(it,{alignItems:"stretch",style:{display:"flex"},align:"center"},r.createElement(it,{item:!0,alignItems:"stretch",style:{display:"flex"},align:"center"},r.createElement(ut.Z,{error:this.state.badInvoice,helperText:this.state.badInvoice?this.state.badInvoice:"",label:e("Invoice for {{amountSats}} Sats",{amountSats:this.state.earned_rewards}),size:"small",value:this.state.rewardInvoice,onChange:e=>{this.setState({rewardInvoice:e.target.value})}})),r.createElement(it,{item:!0,alignItems:"stretch",style:{display:"flex"}},r.createElement(pt.Z,{sx:{maxHeight:38},onClick:this.handleSubmitInvoiceClicked,variant:"contained",color:"primary",size:"small"},e("Submit"))))):r.createElement(Dm,{secondary:e("Your earned rewards")},r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:9},r.createElement(st.Z,null,this.state.earned_rewards+" Sats")),r.createElement(it,{item:!0,xs:3},r.createElement(pt.Z,{disabled:0==this.state.earned_rewards,onClick:()=>this.setState({openClaimRewards:!0}),variant:"contained",size:"small"},e("Claim")))))),this.state.showRewardsSpinner?r.createElement("div",{style:{display:"flex",justifyContent:"center"}},r.createElement(ct.Z,null)):"",this.state.withdrawn?r.createElement("div",{style:{display:"flex",justifyContent:"center"}},r.createElement(st.Z,{color:"primary",variant:"body2"},r.createElement("b",null,e("There it goes, thank you!🥇")))):""))))})),jv(this,"bottomBarDesktop",(()=>{const{t:e}=this.props;return r.createElement(Me.Z,{elevation:6,style:{height:40}},r.createElement(this.StatsDialog,null),r.createElement(this.CommunityDialog,null),r.createElement(this.dialogProfile,null),r.createElement(this.exchangeSummaryDialog,null),r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:1.9},r.createElement("div",{style:{display:this.props.avatarLoaded?"":"none"}},r.createElement(Em,{onClick:this.handleClickOpenProfile},r.createElement(lt.Z,{open:this.state.earned_rewards>0,title:e("You can claim satoshis!")},r.createElement(lt.Z,{open:!!(this.state.active_order_id>0&!this.state.profileShown&this.props.avatarLoaded),title:e("You have an active order")},r.createElement(Om,{sx:{width:30,height:30}},r.createElement(Mm.Z,{badgeContent:this.state.active_order_id>0&!this.state.profileShown?"":null,color:"primary"},r.createElement(wh,{className:"flippedSmallAvatar",sx:{margin:0,top:-13},alt:this.props.nickname,imgProps:{onLoad:()=>this.props.setAppState({avatarLoaded:!0})},src:this.props.nickname?window.location.origin+"/static/assets/avatars/"+this.props.nickname+".png":null}))))),r.createElement(Dm,{primary:this.props.nickname})))),r.createElement(it,{item:!0,xs:1.9},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Sv.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_buy_orders,secondary:e("Public Buy Orders")}))),r.createElement(it,{item:!0,xs:1.9},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Ev.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_sell_orders,secondary:e("Public Sell Orders")}))),r.createElement(it,{item:!0,xs:1.9},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Kt.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.active_robots_today,secondary:e("Today Active Robots")}))),r.createElement(it,{item:!0,xs:1.9},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(eb.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.last_day_nonkyc_btc_premium+"%",secondary:e("24h Avg Premium")}))),r.createElement(it,{item:!0,xs:1.5},r.createElement(ph,{className:"bottomItem"},r.createElement(Dh.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Hg.Z,null))),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:100*(this.state.maker_fee+this.state.taker_fee),secondary:e("Trade Fee")}))),r.createElement(it,{container:!0,item:!0,xs:1},r.createElement(it,{item:!0,xs:6},r.createElement(this.LangSelect,null)),r.createElement(it,{item:!0,xs:3},r.createElement(lt.Z,{enterTouchDelay:"250",title:e("Show community and support links")},r.createElement(dt.Z,{color:"primary","aria-label":"Community",onClick:this.handleClickOpenCommunity},r.createElement(xv.Z,null)))),r.createElement(it,{item:!0,xs:3},r.createElement(lt.Z,{enterTouchDelay:"250",title:e("Show stats for nerds")},r.createElement(dt.Z,{color:"primary","aria-label":"Stats for Nerds",onClick:this.handleClickOpenStatsForNerds},r.createElement(Cv.Z,null)))))))})),jv(this,"handleChangeLang",(e=>{const{i18n:t}=this.props;console.log(t),t.changeLanguage(e.target.value)})),jv(this,"LangSelect",(()=>{const{i18n:e}=this.props;return r.createElement(Dn.Z,{size:"small",value:e.resolvedLanguage.substring(0,2),inputProps:{style:{textAlign:"center"}},onChange:this.handleChangeLang},r.createElement(jn.Z,{value:"en"},"EN"),r.createElement(jn.Z,{value:"es"},"ES"),r.createElement(jn.Z,{disabled:!0,value:"de"},"DE"),r.createElement(jn.Z,{disabled:!0,value:"ru"},"RU"),r.createElement(jn.Z,{disabled:!0,value:"zh"},"ZH"))})),jv(this,"handleClickOpenExchangeSummary",(()=>{this.getInfo(),this.setState({openExchangeSummary:!0})})),jv(this,"handleClickCloseExchangeSummary",(()=>{this.setState({openExchangeSummary:!1})})),jv(this,"exchangeSummaryDialog",(()=>{const{t:e}=this.props;return r.createElement(Ke,{open:this.state.openExchangeSummary,onClose:this.handleClickCloseExchangeSummary,"aria-labelledby":"exchange-summary-title","aria-describedby":"exchange-summary-description"},r.createElement(At,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Exchange Summary")),r.createElement(_m.Z,{dense:!0},r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Sv.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_buy_orders,secondary:e("Public buy orders")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Ev.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_sell_orders,secondary:e("Public sell orders")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Vg.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:Fv(this.state.book_liquidity)+" Sats",secondary:e("Book liquidity")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Kt.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.active_robots_today,secondary:e("Today active robots")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(eb.Z,null)),r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.last_day_nonkyc_btc_premium+"%",secondary:e("24h non-KYC bitcoin premium")})),r.createElement(Ph,null),r.createElement(ph,null,r.createElement(Dh.Z,{size:"small"},r.createElement(Hg.Z,null)),r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:6},r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},secondary:e("Maker fee")},(100*this.state.maker_fee).toFixed(3),"%")),r.createElement(it,{item:!0,xs:6},r.createElement(Dm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},secondary:e("Taker fee")},(100*this.state.taker_fee).toFixed(3),"%")))))))})),jv(this,"bottomBarPhone",(()=>{const{t:e}=this.props;return r.createElement(Me.Z,{elevation:6,style:{height:40}},r.createElement(this.StatsDialog,null),r.createElement(this.CommunityDialog,null),r.createElement(this.exchangeSummaryDialog,null),r.createElement(this.dialogProfile,null),r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:1.6},r.createElement("div",{style:{display:this.props.avatarLoaded?"":"none"}},r.createElement(lt.Z,{open:this.state.earned_rewards>0,title:e("You can claim satoshis!")},r.createElement(lt.Z,{open:!!(this.state.active_order_id>0&!this.state.profileShown&this.props.avatarLoaded),title:e("You have an active order")},r.createElement(dt.Z,{onClick:this.handleClickOpenProfile,sx:{margin:0,bottom:17,right:8}},r.createElement(Mm.Z,{badgeContent:this.state.active_order_id>0&!this.state.profileShown?"":null,color:"primary"},r.createElement(wh,{className:"phoneFlippedSmallAvatar",sx:{width:55,height:55},alt:this.props.nickname,imgProps:{onLoad:()=>this.props.setAppState({avatarLoaded:!0})},src:this.props.nickname?window.location.origin+"/static/assets/avatars/"+this.props.nickname+".png":null}))))))),r.createElement(it,{item:!0,xs:1.6,align:"center"},r.createElement(lt.Z,{enterTouchDelay:"300",title:e("Number of public BUY orders")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Mm.Z,{badgeContent:this.state.num_public_buy_orders,color:"action"},r.createElement(Sv.Z,null))))),r.createElement(it,{item:!0,xs:1.6,align:"center"},r.createElement(lt.Z,{enterTouchDelay:"300",title:e("Number of public SELL orders")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Mm.Z,{badgeContent:this.state.num_public_sell_orders,color:"action"},r.createElement(Ev.Z,null))))),r.createElement(it,{item:!0,xs:1.6,align:"center"},r.createElement(lt.Z,{enterTouchDelay:"300",title:e("Today active robots")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Mm.Z,{badgeContent:this.state.active_robots_today,color:"action"},r.createElement(Kt.Z,null))))),r.createElement(it,{item:!0,xs:1.8,align:"center"},r.createElement(lt.Z,{enterTouchDelay:"300",title:e("24h non-KYC bitcoin premium")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Mm.Z,{badgeContent:this.state.last_day_nonkyc_btc_premium+"%",color:"action"},r.createElement(eb.Z,null))))),r.createElement(it,{container:!0,item:!0,xs:3.8},r.createElement(it,{item:!0,xs:6},r.createElement(this.LangSelect,null)),r.createElement(it,{item:!0,xs:3},r.createElement(lt.Z,{enterTouchDelay:"250",title:e("Show community and support links")},r.createElement(dt.Z,{color:"primary","aria-label":"Community",onClick:this.handleClickOpenCommunity},r.createElement(xv.Z,null)))),r.createElement(it,{item:!0,xs:3},r.createElement(lt.Z,{enterTouchDelay:"250",title:e("Show stats for nerds")},r.createElement(dt.Z,{color:"primary","aria-label":"Stats for Nerds",onClick:this.handleClickOpenStatsForNerds},r.createElement(Cv.Z,null)))))))})),this.state={openStatsForNerds:!1,openCommuniy:!1,openExchangeSummary:!1,openClaimRewards:!1,num_public_buy_orders:0,num_public_sell_orders:0,book_liquidity:0,active_robots_today:0,maker_fee:0,taker_fee:0,last_day_nonkyc_btc_premium:0,last_day_volume:0,lifetime_volume:0,robosats_running_commit_hash:"000000000000000",openProfile:!1,profileShown:!1,alternative_site:"robosats...",node_id:"00000000",showRewards:!1,referral_code:"",earned_rewards:0,rewardInvoice:null,badInvoice:!1,showRewardsSpinner:!1,withdrawn:!1},this.getInfo()}getInfo(){this.setState(null),fetch("/api/info/").then((e=>e.json())).then((e=>this.setState(e)&this.setState({active_order_id:e.active_order_id?e.active_order_id:null})&this.props.setAppState({nickname:e.nickname,loading:!1})))}getHost(){return(window.location!=window.parent.location?this.getHost(document.referrer):document.location.href).split("/")[2]}render(){return r.createElement("div",null,r.createElement(Yt(),{minWidth:1200},r.createElement(this.bottomBarDesktop,null)),r.createElement(Yt(),{maxWidth:1199},r.createElement(this.bottomBarPhone,null)))}}const Hv=xe()(Nv);function Vv(){return Vv=Object.assign||function(e){for(var t=1;t{this.setState(e)},(n="setAppState")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.state={nickname:null,token:null,avatarLoaded:!1,bookType:2,bookCurrency:0,bookCurrencyCode:"ANY"}}redirectTo(e){this.props.history.push(e)}render(){return r.createElement(V,null,r.createElement("div",{className:"appCenter"},r.createElement(H,null,r.createElement(N,{exact:!0,path:"/",render:e=>r.createElement(on,Vv({},e,this.state,{setAppState:this.setAppState}))}),r.createElement(N,{path:"/ref/:refCode",render:e=>r.createElement(on,Vv({},e,this.state,{setAppState:this.setAppState}))}),r.createElement(N,{path:"/make",component:vm}),r.createElement(N,{path:"/book",render:e=>r.createElement(Vm,Vv({},e,{type:this.state.bookType,currencyCode:this.state.bookCurrencyCode,currency:this.state.bookCurrency,setAppState:this.setAppState}))}),r.createElement(N,{path:"/order/:orderId",component:wv}))),r.createElement("div",{className:"bottomBar"},r.createElement(Hv,Vv({redirectTo:this.redirectTo},this.state,{setAppState:this.setAppState}))))}}var Uv=n(9695);const Yv=(e,t)=>(0,s.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&{colorScheme:e.palette.mode}),Gv=e=>(0,s.Z)({color:e.palette.text.primary},e.typography.body1,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}}),qv=function(e){const t=(0,Be.Z)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:o=!1}=t;return(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)(Uv.Z,{styles:e=>((e,t=!1)=>{var n,r;let o={html:Yv(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,s.Z)({margin:0},Gv(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})};const a=null==(n=e.components)||null==(r=n.MuiCssBaseline)?void 0:r.styleOverrides;return a&&(o=[o,a]),o})(e,o)}),n]})};var Kv=n(4819),Xv=n(6760);const Jv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Qv=function(e){const{children:t,theme:n}=e,o=(0,Xv.Z)(),a=r.useMemo((()=>{const e=null===o?n:function(e,t){return"function"==typeof t?t(e):(0,s.Z)({},e,t)}(o,n);return null!=e&&(e[Jv]=null!==o),e}),[n,o]);return(0,Ne.jsx)(Kv.Z.Provider,{value:a,children:t})};var _v=n(5638);function $v(e){const t=(0,eo.Z)();return(0,Ne.jsx)(_v.T.Provider,{value:"object"==typeof t?t:{},children:e.children})}const ey=function(e){const{children:t,theme:n}=e;return(0,Ne.jsx)(Qv,{theme:n,children:(0,Ne.jsx)($v,{children:t})})};function ty(e){return(0,Ze.Z)("MuiAlertTitle",e)}(0,Le.Z)("MuiAlertTitle",["root"]);const ny=["className"],ry=(0,Ie.ZP)(st.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),oy=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiAlertTitle"}),{className:r}=n,o=(0,M.Z)(n,ny),a=n,i=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"]},ty,t)})(a);return(0,Ne.jsx)(ry,(0,s.Z)({gutterBottom:!0,component:"div",ownerState:a,ref:t,className:(0,Se.Z)(i.root,r)},o))})),ay=oy;function iy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class sy extends r.Component{constructor(e){super(e),iy(this,"state",{show:!0}),iy(this,"safe_urls",["robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion","robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion","robodevs7ixniseezbv7uryxhamtz3hvcelzfwpx3rvoipttjomrmpqd.onion"])}getHost(){return(window.location!=window.parent.location?this.getHost(document.referrer):document.location.href).split("/")[2]}render(){const{t:e,i18n:t}=this.props;return!this.safe_urls.includes(this.getHost())&this.state.show?r.createElement("div",null,r.createElement(Yt(),{minWidth:800},r.createElement(Me.Z,{elevation:6,className:"alertUnsafe"},r.createElement(_h,{severity:"warning",sx:{maxHeight:"100px"},action:r.createElement(pt.Z,{onClick:()=>this.setState({show:!1})},e("Hide"))},r.createElement(ay,null,e("You are not using RoboSats privately")),r.createElement(Nf,{i18nKey:"desktop_unsafe_alert"},"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use ",r.createElement(Ft,{href:"https://www.torproject.org/download/",target:"_blank"},"Tor Browser")," and visit the ",r.createElement(Ft,{href:"http://robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion",target:"_blank"},"Onion")," site.")))),r.createElement(Yt(),{maxWidth:799},r.createElement(Me.Z,{elevation:6,className:"alertUnsafe"},r.createElement(_h,{severity:"warning",sx:{maxHeight:"120px"}},r.createElement(ay,null,e("You are not using RoboSats privately")),r.createElement(Nf,{i18nKey:"phone_unsafe_alert"},"You will not be able to complete a trade. Use ",r.createElement(Ft,{href:"https://www.torproject.org/download/",target:"_blank"},"Tor Browser")," and visit the ",r.createElement(Ft,{href:"http://robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion",target:"_blank"},"Onion")," site."),r.createElement("div",{style:{width:"100%"}}),r.createElement("div",{align:"center"},r.createElement(pt.Z,{className:"hideAlertButton",onClick:()=>this.setState({show:!1})},e("Hide"))))))):null}}const ly=xe()(sy);function cy(e){var t=e.i18n,n=e.defaultNS,o=e.children,a=(0,r.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,r.createElement)(ie.Provider,{value:a},o)}var uy=[],dy=uy.forEach,py=uy.slice;function my(e){return dy.call(py.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var hy=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,fy=function(e,t,n){var r=n||{};r.path=r.path||"/";var o=e+"="+encodeURIComponent(t);if(r.maxAge>0){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!hy.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!hy.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o},gy={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=fy(e,encodeURIComponent(t),o)}(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},by={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),o=0;o0&&r[o].substring(0,a)===e.lookupQuerystring&&(t=r[o].substring(a+1))}}return t}},vy=null,yy=function(){if(null!==vy)return vy;try{vy="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){vy=!1}return vy},wy={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&yy()){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&yy()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},ky=null,Cy=function(){if(null!==ky)return ky;try{ky="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){ky=!1}return ky},xy={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Cy()){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Cy()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},Sy={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},Ey={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},Py={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},Ty={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}},Ay=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ee(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return(0,te.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=my(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=n,this.addDetector(gy),this.addDetector(by),this.addDetector(wy),this.addDetector(xy),this.addDetector(Sy),this.addDetector(Ey),this.addDetector(Py),this.addDetector(Ty)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e}();function Ry(e){return Ry="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},Ry(e)}Ay.type="languageDetector";var Oy=[],My=Oy.forEach,By=Oy.slice;function Iy(e){return My.call(By.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function Zy(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Ry(XMLHttpRequest))}var Ly,Dy,jy,Fy=n(3154),zy=n.t(Fy,2);function Ny(e){return Ny="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},Ny(e)}"function"==typeof fetch&&("undefined"!=typeof global&&global.fetch?Ly=global.fetch:"undefined"!=typeof window&&window.fetch&&(Ly=window.fetch)),Zy&&("undefined"!=typeof global&&global.XMLHttpRequest?Dy=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(Dy=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?jy=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(jy=window.ActiveXObject)),Ly||!zy||Dy||jy||(Ly=Fy||zy),"function"!=typeof Ly&&(Ly=void 0);var Hy=function(e,t){if(t&&"object"===Ny(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e};const Vy=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},Ly?function(e,t,n,r){e.queryStringParams&&(t=Hy(t,e.queryStringParams));var o=Iy({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);n&&(o["Content-Type"]="application/json"),Ly(t,Iy({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},"function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions)).then((function(e){if(!e.ok)return r(e.statusText||"Error",{status:e.status});e.text().then((function(t){r(null,{status:e.status,data:t})})).catch(r)})).catch(r)}(e,t,n,r):Zy||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===Ny(n)&&(n=Hy("",n).slice(1)),e.queryStringParams&&(t=Hy(t,e.queryStringParams));try{var o;(o=Dy?new Dy:new jy("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a="function"==typeof a?a():a)for(var i in a)o.setRequestHeader(i,a[i]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}}(e,t,n,r):void 0};function Wy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uy(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Wy(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}var t,n;return t=e,n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=Iy(n,this.options||{},Yy()),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var a,i=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=function(e){return!!e&&"function"==typeof e.then}(a=s)?a:Promise.resolve(a)).then((function(a){if(!a)return o(null,{});var s=i.services.interpolator.interpolate(a,{lng:e.join("+"),ns:n.join("+")});i.loadUrl(s,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;this.options.request(this.options,e,void 0,(function(a,i){if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+e+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+e+"; status code: "+i.status,!1);if(!i&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+a.message,!0);if(a)return t(a,!1);var s,l;try{s="string"==typeof i.data?o.options.parse(i.data,n,r):i.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,o){var a=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var i=this.options.parsePayload(t,n,r),s=0,l=[],c=[];e.forEach((function(n){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(n,t));var u=a.services.interpolator.interpolate(r,{lng:n,ns:t});a.options.request(a.options,u,i,(function(t,n){s+=1,l.push(t),c.push(n),s===e.length&&o&&o(l,c)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,a=n.language;if(!a||"cimode"!==a.toLowerCase()){var i=[],s=function(e){r.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};s(a),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),i.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,a){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&a&&o.log("loaded namespace ".concat(e," for language ").concat(t),a),n.loaded("".concat(t,"|").concat(e),r,a)}))}))}))}}}],n&&Uy(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();Gy.type="backend";const qy=Gy,Ky=JSON.parse('{"UNSAFE ALERT - UnsafeAlert.js":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"You are not using RoboSats privately","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","USER GENERATION PAGE - UserGenPage.js":"Landing Page and User Generation","Simple and Private LN P2P Exchange":"Simple and Private LN P2P Exchange","This is your trading avatar":"This is your trading avatar","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker choose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaboratively","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}'),Xy=JSON.parse('{"UNSAFE-ALERT":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"No estás usando RoboSats de forma privada","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","UserGenPage":"User Generation Page and Landing Page","Simple and Private LN P2P Exchange":"Intercambio LN P2P Fácil y Privado","This is your trading avatar":"Este es tu avatar de compraventa","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker chose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaborativelly","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}'),Jy=JSON.parse('{"UNSAFE ALERT - UnsafeAlert.js":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"You are not using RoboSats privately","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","USER GENERATION PAGE - UserGenPage.js":"Landing Page and User Generation","Simple and Private LN P2P Exchange":"Simple and Private LN P2P Exchange","This is your trading avatar":"This is your trading avatar","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker chose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaborativelly","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}'),Qy=JSON.parse('{"UNSAFE ALERT - UnsafeAlert.js":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"You are not using RoboSats privately","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","USER GENERATION PAGE - UserGenPage.js":"Landing Page and User Generation","Simple and Private LN P2P Exchange":"Simple and Private LN P2P Exchange","This is your trading avatar":"This is your trading avatar","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker chose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaborativelly","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}'),_y=JSON.parse('{"UNSAFE ALERT - UnsafeAlert.js":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"You are not using RoboSats privately","desktop_unsafe_alert":"Some features are disabled for your protection (e.g. chat) and you will not be able to complete a trade without them. To protect your privacy and fully enable RoboSats, use <1>Tor Browser1> and visit the <3>Onion3> site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser1> and visit the <3>Onion3> site.","Hide":"Hide","USER GENERATION PAGE - UserGenPage.js":"Landing Page and User Generation","Simple and Private LN P2P Exchange":"Simple and Private LN P2P Exchange","This is your trading avatar":"This is your trading avatar","Store your token safely":"Store your token safely","A robot avatar was found, welcome back!":"A robot avatar was found, welcome back!","Copied!":"Copied!","Generate a new token":"Generate a new token","Generate Robot":"Generate Robot","You must enter a new token first":"You must enter a new token first","Make Order":"Make Order","Info":"Info","View Book":"View Book","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Order","Customize":"Customize","Buy or Sell Bitcoin?":"Buy or Sell Bitcoin?","Buy":"Buy","Sell":"Sell","Amount":"Amount","Amount of fiat to exchange for bitcoin":"Amount of fiat to exchange for bitcoin","Invalid":"Invalid","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Enter your preferred fiat payment methods. Fast methods are highly recommended.","Must be shorter than 65 characters":"Must be shorter than 65 characters","Swap Destination(s)":"Swap Destination(s)","Fiat Payment Method(s)":"Fiat Payment Method(s)","You can add any method":"You can add any method","Add New":"Add New","Choose a Pricing Method":"Choose a Pricing Method","Relative":"Relative","Let the price move with the market":"Let the price move with the market","Premium over Market (%)":"Premium over Market (%)","Explicit":"Explicit","Set a fix amount of satoshis":"Set a fix amount of satoshis","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Let the taker chose an amount within the range","Enable Amount Range":"Enable Amount Range","From":"From","to":"to","Public Duration (HH:mm)":"Public Duration (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Set the skin-in-the-game, increase for higher safety assurance","Fidelity Bond Size":"Fidelity Bond Size","Allow bondless takers":"Allow bondless takers","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"COMING SOON - High risk! Limited to {{limitSats}}K Sats","You must fill the order correctly":"You must fill the order correctly","Create Order":"Create Order","Back":"Back","Create a BTC buy order for ":"Create a BTC buy order for ","Create a BTC sell order for ":"Create a BTC sell order for "," of {{satoshis}} Satoshis":" of {{satoshis}} Satoshis"," at market price":" at market price"," at a {{premium}}% premium":" at a {{premium}}% premium"," at a {{discount}}% discount":" at a {{discount}}% discount","Must be less than {{max}}%":"Must be less than {{max}}%","Must be more than {{min}}%":"Must be more than {{min}}%","Must be less than {{maxSats}":"Must be less than {{maxSats}}","Must be more than {{minSats}}":"Must be more than {{minSats}}","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Seller","Buyer":"Buyer","I want to":"I want to","Select Order Type":"Select Order Type","ANY_type":"ANY","ANY_currency":"ANY","BUY":"BUY","SELL":"SELL","and receive":"and receive","and pay with":"and pay with","and use":"and use","Select Payment Currency":"Select Payment Currency","Robot":"Robot","Is":"Is","Currency":"Currency","Payment Method":"Payment Method","Pay":"Pay","Price":"Price","Premium":"Premium","You are SELLING BTC for {{currencyCode}}":"You are SELLING BTC for {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"You are BUYING BTC for {{currencyCode}}","You are looking at all":"You are looking at all","No orders found to sell BTC for {{currencyCode}}":"No orders found to sell BTC for {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}","Be the first one to create an order":"Be the first one to create an order","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Stats For Nerds","LND version":"LND version","Currently running commit hash":"Currently running commit hash","24h contracted volume":"24h contracted volume","Lifetime contracted volume":"Lifetime contracted volume","Made with":"Made with","and":"and","... somewhere on Earth!":"... somewhere on Earth!","Community":"Community","Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!":"Support is only offered via public channels. Join our Telegram community if you have questions or want to hang out with other cool robots. Please, use our Github Issues if you find a bug or want to see new features!","Join the RoboSats group":"Join the RoboSats group","Telegram (English / Main)":"Telegram (English / Main)","RoboSats Telegram Communities":"RoboSats Telegram Communities","Join RoboSats Spanish speaking community!":"Join RoboSats Spanish speaking community!","Join RoboSats Russian speaking community!":"Join RoboSats Russian speaking community!","Join RoboSats Chinese speaking community!":"Join RoboSats Chinese speaking community!","Join RoboSats English speaking community!":"Join RoboSats English speaking community!","Tell us about a new feature or a bug":"Tell us about a new feature or a bug","Github Issues - The Robotic Satoshis Open Source Project":"Github Issues - The Robotic Satoshis Open Source Project","Your Profile":"Your Profile","Your robot":"Your robot","One active order #{{orderID}}":"One active order #{{orderID}}","Your current order":"Your current order","No active orders":"No active orders","Your token (will not remain here)":"Your token (will not remain here)","Back it up!":"Back it up!","Cannot remember":"Cannot remember","Rewards and compensations":"Rewards and compensations","Share to earn 100 Sats per trade":"Share to earn 100 Sats per trade","Your referral link":"Your referral link","Your earned rewards":"Your earned rewards","Claim":"Claim","Invoice for {{amountSats}} Sats":"Invoice for {{amountSats}} Sats","Submit":"Submit","There it goes, thank you!🥇":"There it goes, thank you!🥇","You have an active order":"You have an active order","You can claim satoshis!":"You can claim satoshis!","Public Buy Orders":"Public Buy Orders","Public Sell Orders":"Public Sell Orders","Today Active Robots":"Today Active Robots","24h Avg Premium":"24h Avg Premium","Trade Fee":"Trade Fee","Show community and support links":"Show community and support links","Show stats for nerds":"Show stats for nerds","Exchange Summary":"Exchange Summary","Public buy orders":"Public buy orders","Public sell orders":"Public sell orders","Book liquidity":"Book liquidity","Today active robots":"Today active robots","24h non-KYC bitcoin premium":"24h non-KYC bitcoin premium","Maker fee":"Maker fee","Taker fee":"Taker fee","Number of public BUY orders":"Number of public BUY orders","Number of public SELL orders":"Number of public SELL orders","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Order Box","Contract":"Contract","Active":"Active","Seen recently":"Seen recently","Inactive":"Inactive","(Seller)":"(Seller)","(Buyer)":"(Buyer)","Order maker":"Order maker","Order taker":"Order taker","Order Details":"Order Details","Order status":"Order status","Waiting for maker bond":"Waiting for maker bond","Public":"Public","Waiting for taker bond":"Waiting for taker bond","Cancelled":"Cancelled","Expired":"Expired","Waiting for trade collateral and buyer invoice":"Waiting for trade collateral and buyer invoice","Waiting only for seller trade collateral":"Waiting only for seller trade collateral","Waiting only for buyer invoice":"Waiting only for buyer invoice","Sending fiat - In chatroom":"Sending fiat - In chatroom","Fiat sent - In chatroom":"Fiat sent - In chatroom","In dispute":"In dispute","Collaboratively cancelled":"Collaboratively cancelled","Sending satoshis to buyer":"Sending satoshis to buyer","Sucessful trade":"Successful trade","Failed lightning network routing":"Failed lightning network routing","Wait for dispute resolution":"Wait for dispute resolution","Maker lost dispute":"Maker lost dispute","Taker lost dispute":"Taker lost dispute","Amount range":"Amount range","Swap destination":"Swap destination","Accepted payment methods":"Accepted payment methods","Others":"Others","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%","Price and Premium":"Price and Premium","Amount of Satoshis":"Amount of Satoshis","Premium over market price":"Premium over market price","Order ID":"Order ID","Expires in":"Expires in","{{nickname}} is asking for a collaborative cancel":"{{nickname}} is asking for a collaborative cancel","You asked for a collaborative cancellation":"You asked for a collaborative cancellation","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Invoice expired. You did not confirm publishing the order in time. Make a new order.","This order has been cancelled by the maker":"This order has been cancelled by the maker","Penalty lifted, good to go!":"Penalty lifted, good to go!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s","Too low":"Too low","Too high":"Too high","Enter amount of fiat to exchange for bitcoin":"Enter amount of fiat to exchange for bitcoin","Amount {{currencyCode}}":"Amount {{currencyCode}}","You must specify an amount first":"You must specify an amount first","Take Order":"Take Order","Wait until you can take an order":"Wait until you can take an order","Cancel the order?":"Cancel the order?","If the order is cancelled now you will lose your bond.":"If the order is cancelled now you will lose your bond.","Confirm Cancel":"Confirm Cancel","The maker is away":"The maker is away","By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.":"By taking this order you risk wasting your time. If the maker does not proceed in time, you will be compensated in satoshis for 50% of the maker bond.","Collaborative cancel the order?":"Collaborative cancel the order?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.","Ask for Cancel":"Ask for Cancel","Cancel":"Cancel","Collaborative Cancel":"Collaborative Cancel","Invalid Order Id":"Invalid Order Id","You must have a robot avatar to see the order details":"You must have a robot avatar to see the order details","This order has been cancelled collaborativelly":"This order has been cancelled collaborativelly","You are not allowed to see this order":"You are not allowed to see this order","The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues":"The Robotic Satoshis working in the warehouse did not understand you. Please, fill a Bug Issue in Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Chat Box","You":"You","Peer":"Peer","connected":"connected","disconnected":"disconnected","Type a message":"Type a message","Connecting...":"Connecting...","Send":"Send","The chat has no memory: if you leave, messages are lost.":"The chat has no memory: if you leave, messages are lost.","Learn easy PGP encryption.":"Learn easy PGP encryption.","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contract Box","Robots show commitment to their peers":"Robots show commitment to their peers","Lock {{amountSats}} Sats to PUBLISH order":"Lock {{amountSats}} Sats to PUBLISH order","Lock {{amountSats}} Sats to TAKE order":"Lock {{amountSats}} Sats to TAKE order","Lock {{amountSats}} Sats as collateral":"Lock {{amountSats}} Sats as collateral","Copy to clipboard":"Copy to clipboard","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.","This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.":"This is a hold invoice, it will freeze in your wallet. It will be released to the buyer once you confirm to have received the {{currencyCode}}.","Your maker bond is locked":"Your maker bond is locked","Your taker bond is locked":"Your taker bond is locked","Your maker bond was settled":"Your maker bond was settled","Your taker bond was settled":"Your taker bond was settled","Your maker bond was unlock":"Your maker bond was unlock","Your taker bond was unlocked":"Your taker bond was unlocked","Your order is public":"Your order is public","Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.":"Be patient while robots check the book. It might take some time. This box will ring 🔊 once a robot takes your order.","Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).":"Please note that if your premium is excessive or your currency or payment methods are not popular, your order might expire untaken. Your bond will return to you (no action needed).","Enable Telegram Notifications":"Enable Telegram Notifications","Enable TG Notifications":"Enable TG Notifications","You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.":"You will be taken to a conversation with RoboSats telegram bot. Simply open the chat and press Start. Note that by enabling telegram notifications you might lower your level of anonymity.","Go back":"Go back","Enable":"Enable","Telegram enabled":"Telegram enabled","Public orders for {{currencyCode}}":"Public orders for {{currencyCode}}","Premium rank":"Premium rank","Among public {{currencyCode}} orders (higher is cheaper)":"Among public {{currencyCode}} orders (higher is cheaper)","A taker has been found!":"A taker has been found!","Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.":"Please wait for the taker to lock a bond. If the taker does not lock a bond in time, the order will be made public again.","Submit an invoice for {{amountSats}} Sats":"Submit an invoice for {{amountSats}} Sats","The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.":"The taker is committed! Before letting you send {{amountFiat}} {{currencyCode}}, we want to make sure you are able to receive the BTC. Please provide a valid invoice for {{amountSats}} Satoshis.","Payout Lightning Invoice":"Payout Lightning Invoice","Your invoice looks good!":"Your invoice looks good!","We are waiting for the seller lock the trade amount.":"We are waiting for the seller lock the trade amount.","Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the seller does not deposit, you will get your bond back automatically. In addition, you will receive a compensation (check the rewards in your profile).","The trade collateral is locked!":"The trade collateral is locked!","We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.":"We are waiting for the buyer to post a lightning invoice. Once he does, you will be able to directly communicate the fiat payment details.","Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).":"Just hang on for a moment. If the buyer does not cooperate, you will get back the trade collateral and your bond automatically. In addition, you will receive a compensation (check the rewards in your profile).","Confirm {{currencyCode}} sent":"Confirm {{currencyCode}} sent","Confirm {{currencyCode}} received":"Confirm {{currencyCode}} received","Open Dispute":"Open Dispute","The order has expired":"The order has expired","Chat with the buyer":"Chat with the buyer","Chat with the seller":"Chat with the seller","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.","Wait for the seller to confirm he has received the payment.":"Wait for the seller to confirm he has received the payment.","Confirm you received {{currencyCode}}?":"Confirm you received {{currencyCode}}?","Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.":"Confirming that you received the fiat will finalize the trade. The satoshis in the escrow will be released to the buyer. Only confirm after the {{currencyCode}} has arrived to your account. In addition, if you have received {{currencyCode}} and do not confirm the receipt, you risk losing your bond.","Confirm":"Confirm","🎉Trade finished!🥳":"🎉Trade finished!🥳","rate_robosats":"What do you think of 🤖<1>RoboSats1>⚡?","Thank you! RoboSats loves you too ❤️":"Thank you! RoboSats loves you too ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!","Thank you for using Robosats!":"Thank you for using Robosats!","let_us_know_hot_to_improve":"Let us know how the platform could improve (<1>Telegram1> / <3>Github3>)","Start Again":"Start Again","Attempting Lightning Payment":"Attempting Lightning Payment","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.","Retrying!":"Retrying!","Lightning Routing Failed":"Lightning Routing Failed","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ","Check the list of compatible wallets":"Check the list of compatible wallets","RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.","Next attempt in":"Next attempt in","Do you want to open a dispute?":"Do you want to open a dispute?","The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.":"The RoboSats staff will examine the statements and evidence provided. You need to build a complete case, as the staff cannot read the chat. It is best to provide a burner contact method with your statement. The satoshis in the trade escrow will be sent to the dispute winner, while the dispute loser will lose the bond.","Disagree":"Disagree","Agree and open dispute":"Agree and open dispute","A dispute has been opened":"A dispute has been opened","Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.":"Please, submit your statement. Be clear and specific about what happened and provide the necessary evidence. You MUST provide a contact method: burner email, XMPP or telegram username to follow up with the staff. Disputes are solved at the discretion of real robots (aka humans), so be as helpful as possible to ensure a fair outcome. Max 5000 chars.","Submit dispute statement":"Submit dispute statement","We have received your statement":"We have received your statement","We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.":"We are waiting for your trade counterpart statement. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com.","Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).":"Please, save the information needed to identify your order and your payments: order ID; payment hashes of the bonds or escrow (check on your lightning wallet); exact amount of satoshis; and robot nickname. You will have to identify yourself as the user involved in this trade via email (or other contact methods).","We have the statements":"We have the statements","Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.":"Both statements have been received, wait for the staff to resolve the dispute. If you are hesitant about the state of the dispute or want to add more information, contact robosats@protonmail.com. If you did not provide a contact method, or are unsure whether you wrote it right, write us immediately.","You have won the dispute":"You have won the dispute","You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).":"You can claim the dispute resolution amount (escrow and fidelity bond) from your profile rewards. If there is anything the staff can help with, do not hesitate to contact to robosats@protonmail.com (or via your provided burner contact method).","You have lost the dispute":"You have lost the dispute","Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.":"Unfortunately you have lost the dispute. If you think this is a mistake you can ask to re-open the case via email to robosats@protonmail.com. However, chances of it being investigated again are low.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Close","What is RoboSats?":"What is RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"It is a BTC/FIAT peer-to-peer exchange over lightning.","RoboSats is an open source project ":"RoboSats is an open source project ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.","(GitHub).":"(GitHub).","How does it work?":"How does it work?","AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!":"AnonymousAlice01 wants to sell bitcoin. She posts a sell order. BafflingBob02 wants to buy bitcoin and he takes Alice\'s order. Both have to post a small bond using lightning to prove they are real robots. Then, Alice posts the trade collateral also using a lightning hold invoice. RoboSats locks the invoice until Alice confirms she received the fiat, then the satoshis are released to Bob. Enjoy your satoshis, Bob!","At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.":"At no point, AnonymousAlice01 and BafflingBob02 have to entrust the bitcoin funds to each other. In case they have a conflict, RoboSats staff will help resolving the dispute.","You can find a step-by-step description of the trade pipeline in ":"You can find a step-by-step description of the trade pipeline in ","How it works":"How it works","You can also check the full guide in ":"You can also check the full guide in ","How to use":"How to use","What payment methods are accepted?":"What payment methods are accepted?","All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.":"All of them as long as they are fast. You can write down your preferred payment method(s). You will have to match with a peer who also accepts that method. The step to exchange fiat has a expiry time of 24 hours before a dispute is automatically open. We highly recommend using instant fiat payment rails.","Are there trade limits?":"Are there trade limits?","Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).":"Maximum single trade size is {{maxAmount}} Satoshis to minimize lightning routing failure. There is no limits to the number of trades per day. A robot can only have one order at a time. However, you can use multiple robots simultaneously in different browsers (remember to back up your robot tokens!).","Is RoboSats private?":"Is RoboSats private?","RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.":"RoboSats will never ask you for your name, country or ID. RoboSats does not custody your funds and does not care who you are. RoboSats does not collect or custody any personal data. For best anonymity use Tor Browser and access the .onion hidden service.","Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.":"Your trading peer is the only one who can potentially guess anything about you. Keep your chat short and concise. Avoid providing non-essential information other than strictly necessary for the fiat payment.","What are the risks?":"What are the risks?","This is an experimental application, things could go wrong. Trade small amounts!":"This is an experimental application, things could go wrong. Trade small amounts!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.","What is the trust model?":"What is the trust model?","The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.":"The buyer and the seller never have to trust each other. Some trust on RoboSats is needed since linking the seller\'s hold invoice and buyer payment is not atomic (yet). In addition, disputes are solved by the RoboSats staff.","To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq":"To be totally clear. Trust requirements are minimized. However, there is still one way RoboSats could run away with your satoshis: by not releasing the satoshis to the buyer. It could be argued that such move is not in RoboSats\' interest as it would damage the reputation for a small payout. However, you should hesitate and only trade small quantities at a time. For large amounts use an onchain escrow service such as Bisq","You can build more trust on RoboSats by inspecting the source code.":"You can build more trust on RoboSats by inspecting the source code.","Project source code":"Project source code","What happens if RoboSats suddenly disappears?":"What happens if RoboSats suddenly disappears?","Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.":"Your sats will return to you. Any hold invoice that is not settled would be automatically returned even if RoboSats goes down forever. This is true for both, locked bonds and trading escrows. However, there is a small window between the seller confirms FIAT RECEIVED and the moment the buyer receives the satoshis when the funds could be permanently lost if RoboSats disappears. This window is about 1 second long. Make sure to have enough inbound liquidity to avoid routing failures. If you have any problem, reach out trough the RoboSats public channels.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.","Is RoboSats legal in my country?":"Is RoboSats legal in my country?","Disclaimer":"Disclaimer","This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ":"This lightning application is provided as is. It is in active development: trade with the utmost caution. There is no private support. Support is only offered via public channels ","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats will never contact you. RoboSats will definitely never ask for your robot token."}');hv.use(qy).use(Ay).use(ue).init({resources:{en:{translations:Ky},es:{translations:Xy},ru:{translations:Qy},de:{translations:Jy},zh:{translations:_y}},fallbackLng:"en",debug:!0,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1,formatSeparator:","}});const $y=hv;var ew=n(9078),tw=n(6646);function nw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class rw extends r.Component{constructor(e){super(e),nw(this,"lightTheme",(0,ro.Z)({})),nw(this,"darkTheme",(0,ro.Z)({palette:{mode:"dark",background:{default:"#070707"}}})),this.state={dark:!1}}render(){return r.createElement(cy,{i18n:$y},r.createElement(ey,{theme:this.state.dark?this.darkTheme:this.lightTheme},r.createElement(qv,null),r.createElement(dt.Z,{sx:{position:"fixed",right:"0px"},onClick:()=>this.setState({dark:!this.state.dark})},this.state.dark?r.createElement(tw.Z,null):r.createElement(ew.Z,null)),r.createElement(ly,{className:"unsafeAlert"}),r.createElement(Wv,null)))}}const ow=document.getElementById("app");(0,a.render)(r.createElement(rw,null),ow)},6010:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to})},4098:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,i="ArrayBuffer"in e;if(i)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function f(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():i&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function k(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},b.call(y.prototype),b.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];k.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function x(e,n){return new Promise((function(r,a){var i=new y(e,n);if(i.signal&&i.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new k(o,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},s.open(i.method,i.url,!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),i.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",l)}),s.send(void 0===i._bodyInit?null:i._bodyInit)}))}x.polyfill=!0,e.fetch||(e.fetch=x,e.Headers=p,e.Request=y,e.Response=k),t.Headers=p,t.Request=y,t.Response=k,t.fetch=x,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},5209:(e,t)=>{"use strict";function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={p:r,P:function(e,t){var o,a=e.match(/(P+)(p+)?/)||[],i=a[1],s=a[2];if(!s)return n(e,t);switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(i,t)).replace("{{time}}",r(s,t))}};t.default=o,e.exports=t.default},8679:(e,t,n)=>{"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=m(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),f=l(n),g=0;g{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case a:case s:case i:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case o:return t}}}function C(e){return k(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=f,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return C(e)||k(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===f},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b)},t.typeOf=k},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(7294)),o=c(n(5697)),a=c(n(8674)),i=c(n(515)),s=c(n(167)),l=c(n(4449));function c(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){return d="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},d(e)}function p(){return p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["animationDuration","aspectRatio","color","cover","disableError","disableSpinner","disableTransition","errorIcon","iconContainerStyle","imageStyle","loading","onClick","style"]));return r.default.createElement("div",{style:e.root,onClick:s},l.src&&r.default.createElement("img",p({},l,{ref:this.image,style:e.image,onLoad:this.handleLoadImage,onError:this.handleImageError})),r.default.createElement("div",{style:e.iconContainer},!o&&!this.state.imageLoaded&&!this.state.imageError&&i,!n&&this.state.imageError&&a))}}])&&f(t.prototype,n),o&&f(t,o),l}(r.Component);t.default=k,k.defaultProps={animationDuration:3e3,aspectRatio:1,color:i.default.white,disableError:!1,disableSpinner:!1,disableTransition:!1,errorIcon:r.default.createElement(l.default,{style:{width:48,height:48,color:s.default[300]}}),loading:r.default.createElement(a.default,{size:48})},k.propTypes={animationDuration:o.default.number,aspectRatio:o.default.number,cover:o.default.bool,color:o.default.string,disableError:o.default.bool,disableSpinner:o.default.bool,disableTransition:o.default.bool,errorIcon:o.default.node,iconContainerStyle:o.default.object,imageStyle:o.default.object,loading:o.default.node,onClick:o.default.func,onError:o.default.func,onLoad:o.default.func,src:o.default.string.isRequired,style:o.default.object}},4472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(2467))&&r.__esModule?r:{default:r}},3173:(e,t,n)=>{"use strict";var r;t.Z=void 0;var o=((r=n(4472))&&r.__esModule?r:{default:r}).default;t.Z=o},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var i,s,l=o(e),c=1;c{var r=n(5826);e.exports=function e(t,n,o){return r(n)||(o=n||o,n=[]),o=o||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3655:(e,t,n)=>{var r=n(2792);function o(e){this.mode=r.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t{function t(){this.buffer=new Array,this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},9381:e=>{e.exports={L:1,M:0,Q:3,H:2}},2832:(e,t,n)=>{var r=n(1518);function o(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n{var r=n(3655),o=n(7611),a=n(7321),i=n(3160),s=n(2832);function l(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var c=l.prototype;c.addData=function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},c.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},c.getModuleCount=function(){return this.moduleCount},c.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),n=new a,r=0,s=0;s=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},c.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},c.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=i.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},c.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!e&&1==(t>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r},c.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=i.getBCHTypeInfo(n),o=0;o<15;o++){var a=!e&&1==(r>>o&1);o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(o=0;o<15;o++)a=!e&&1==(r>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a;this.modules[this.moduleCount-8][8]=!e},c.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var c=!1;a>>o&1)),i.getMask(t,r,s-l)&&(c=!c),this.modules[r][s-l]=c,-1==--o&&(a++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=o.getRSBlocks(e,t),s=new a,c=0;c8*d)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d||(s.put(l.PAD0,8),s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,o=0,a=new Array(t.length),l=new Array(t.length),c=0;c=0?h.get(f):0}}var g=0;for(p=0;p{var r=n(9381);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var n=o.getRsBlockTable(e,t);if(null==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,a=new Array,i=0;i{for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<{e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},3160:(e,t,n)=>{var r=n(2792),o=n(2832),a=n(1518),i={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;i.getBCHDigit(t)-i.getBCHDigit(i.G15)>=0;)t^=i.G15<=0;)t^=i.G18<>>=1;return t},getPatternPosition:function(e){return i.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case 0:return(t+n)%2==0;case 1:return t%2==0;case 2:return n%3==0;case 3:return(t+n)%3==0;case 4:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case 5:return t*n%2+t*n%3==0;case 6:return(t*n%2+t*n%3)%2==0;case 7:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),n=0;n5&&(n+=3+a-5)}for(r=0;r{"use strict";var r=n(7294),o=n(7418),a=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!m.call(f,e)||!m.call(h,e)&&(p.test(e)?f[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);b[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),b.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){b[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=60103,x=60106,S=60107,E=60108,P=60114,T=60109,A=60110,R=60112,O=60113,M=60120,B=60115,I=60116,Z=60121,L=60128,D=60129,j=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;C=z("react.element"),x=z("react.portal"),S=z("react.fragment"),E=z("react.strict_mode"),P=z("react.profiler"),T=z("react.provider"),A=z("react.context"),R=z("react.forward_ref"),O=z("react.suspense"),M=z("react.suspense_list"),B=z("react.memo"),I=z("react.lazy"),Z=z("react.block"),z("react.scope"),L=z("react.opaque.id"),D=z("react.debug_trace_mode"),j=z("react.offscreen"),F=z("react.legacy_hidden")}var N,H="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}function W(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var U=!1;function Y(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s])return"\n"+o[i].replace(" at new "," at ")}while(1<=i&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function G(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return Y(e.type,!1);case 11:return Y(e.type.render,!1);case 22:return Y(e.type._render,!1);case 1:return Y(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case P:return"Profiler";case E:return"StrictMode";case O:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case B:return q(e.type);case Z:return q(e._render);case I:t=e._payload,e=e._init;try{return q(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function J(e){e._valueTracker||(e._valueTracker=function(e){var t=X(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&_(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ce(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,fe,ge=(fe=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return fe(e,t)}))}:fe);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ye=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ve).forEach((function(e){ye.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var Ce=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(Ce[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Te=null,Ae=null;function Re(e){if(e=no(e)){if("function"!=typeof Pe)throw Error(i(280));var t=e.stateNode;t&&(t=oo(t),Pe(e.stateNode,e.type,t))}}function Oe(e){Te?Ae?Ae.push(e):Ae=[e]:Te=e}function Me(){if(Te){var e=Te,t=Ae;if(Ae=Te=null,Re(e),t)for(e=0;e(r=31-Wt(r))?0:1<n;n++)t.push(e);return t}function Vt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Yt|0)|0},Ut=Math.log,Yt=Math.LN2,Gt=a.unstable_UserBlockingPriority,qt=a.unstable_runWithPriority,Kt=!0;function Xt(e,t,n,r){De||Ze();var o=Qt,a=De;De=!0;try{Ie(o,e,t,n,r)}finally{(De=a)||Fe()}}function Jt(e,t,n,r){qt(Gt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var o;if(Kt)if((o=0==(4&t))&&0=jn),Nn=String.fromCharCode(32),Hn=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1,Yn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yn[e.type]:"textarea"===t}function qn(e,t,n,r){Oe(r),0<(t=Dr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Xn=null;function Jn(e){Ar(e,0)}function Qn(e){if(Q(ro(e)))return e}function _n(e,t){if("change"===e)return t}var $n=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;$n=er&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=_();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=_((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=d&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,wr=null,kr=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==vr||vr!==_(r)||(r="selectionStart"in(r=vr)&&gr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Dr(yr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Zt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Zt(It,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Srso||(e.current=io[so],io[so]=null,so--)}function uo(e,t){so++,io[so]=e.current,e.current=t}var po={},mo=lo(po),ho=lo(!1),fo=po;function go(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function bo(e){return null!=e.childContextTypes}function vo(){co(ho),co(mo)}function yo(e,t,n){if(mo.current!==po)throw Error(i(168));uo(mo,t),uo(ho,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(i(108,q(t)||"Unknown",a));return o({},n,r)}function ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,fo=mo.current,uo(mo,e),uo(ho,ho.current),!0}function Co(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=wo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,co(ho),co(mo),uo(mo,e)):co(ho),uo(ho,n)}var xo=null,So=null,Eo=a.unstable_runWithPriority,Po=a.unstable_scheduleCallback,To=a.unstable_cancelCallback,Ao=a.unstable_shouldYield,Ro=a.unstable_requestPaint,Oo=a.unstable_now,Mo=a.unstable_getCurrentPriorityLevel,Bo=a.unstable_ImmediatePriority,Io=a.unstable_UserBlockingPriority,Zo=a.unstable_NormalPriority,Lo=a.unstable_LowPriority,Do=a.unstable_IdlePriority,jo={},Fo=void 0!==Ro?Ro:function(){},zo=null,No=null,Ho=!1,Vo=Oo(),Wo=1e4>Vo?Oo:function(){return Oo()-Vo};function Uo(){switch(Mo()){case Bo:return 99;case Io:return 98;case Zo:return 97;case Lo:return 96;case Do:return 95;default:throw Error(i(332))}}function Yo(e){switch(e){case 99:return Bo;case 98:return Io;case 97:return Zo;case 96:return Lo;case 95:return Do;default:throw Error(i(332))}}function Go(e,t){return e=Yo(e),Eo(e,t)}function qo(e,t,n){return e=Yo(e),Po(e,t,n)}function Ko(){if(null!==No){var e=No;No=null,To(e)}Xo()}function Xo(){if(!Ho&&null!==zo){Ho=!0;var e=0;try{var t=zo;Go(99,(function(){for(;e