diff --git a/frontend/src/components/getFlags.js b/frontend/src/components/getFlags.js index 15bf9661..126aa722 100644 --- a/frontend/src/components/getFlags.js +++ b/frontend/src/components/getFlags.js @@ -66,8 +66,10 @@ export default function getFlags(code){ if(code == 'THB') flag = ; if(code == 'TTD') flag = ; if(code == 'VND') flag = ; - if(code == 'XOF') flag = ; + if(code == 'XOF') flag = ; if(code == 'TWD') flag = ; + if(code == 'TZS') flag = ; + if(code == 'XAF') flag = ; if(code == 'ANY') flag = ; if(code == 'XAU') flag = ; if(code == 'BTC') flag = ; diff --git a/frontend/static/assets/currencies.json b/frontend/static/assets/currencies.json index 46ede580..c7090aec 100644 --- a/frontend/static/assets/currencies.json +++ b/frontend/static/assets/currencies.json @@ -59,7 +59,9 @@ "58":"TTD", "59":"VND", "60":"XOF", - "61":"TWD", + "61":"TWD", + "62":"TZS", + "63":"XAF", "300":"XAU", "1000":"BTC" } diff --git a/frontend/static/frontend/main.js b/frontend/static/frontend/main.js index 8c60b052..e114c43e 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,Ae.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,Ae.Z)(r)}`,n],dashed:["dashed",`dashedColor${(0,Ae.Z)(r)}`],bar1:["bar",`barColor${(0,Ae.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&`barColor${(0,Ae.Z)(r)}`,"buffer"===n&&`color${(0,Ae.Z)(r)}`,("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return(0,Ee.Z)(o,Er,t)})(u),p=(0,ur.Z)(),m={},f={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),f.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==i){let e=(i||0)-100;"rtl"===p.direction&&(e=-e),f.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:f.bar1}),"determinate"===l?null:(0,Ne.jsx)(Hr,{className:d.bar2,ownerState:u,style:f.bar2})]}))})),Ur=Vr;var Wr=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"],Qr=(0,Ie.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${(0,Ae.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 f=d;d&&m.variant,m&&!f&&(f=m.variant);const h=(0,s.Z)({},n,{hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:l,position:u,variant:f}),g=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${(0,Ae.Z)(o)}`,i,r&&"hiddenLabel",a&&`size${(0,Ae.Z)(a)}`]};return(0,Ee.Z)(s,Gr,t)})(h);return(0,Ne.jsx)(Wr.Z.Provider,{value:null,children:(0,Ne.jsx)(Qr,(0,s.Z)({as:i,ownerState:h,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})}))})})),Xr=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 fo=n(7070),ho=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)(fo.Z,{fontSize:"small"})):wo||(wo=(0,Ne.jsx)(ho.Z,{fontSize:"small"}))}))})),So=xo;var Eo=n(2068);function Po(e){return(0,Ze.Z)("MuiTabs",e)}const Ao=(0,Le.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var To=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[{[`& .${Ao.scrollButtons}`]:t.scrollButtons},{[`& .${Ao.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&&{[`& .${Ao.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:f=!1,indicatorColor:h="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,A=(0,M.Z)(n,Ro),T="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:f,indicatorColor:h,orientation:b,vertical:R,scrollButtons:y,textColor:x,variant:E,visibleScrollbar:P,fixed:!T,hideScrollbar:T&&!P,scrollableX:T&&!R,scrollableY:T&&R,centered:u&&!T,scrollButtonsHideMobile:!f}),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,U]=r.useState({start:!1,end:!1}),[W,Y]=r.useState({overflow:"hidden",scrollbarWidth:0}),G=new Map,q=r.useRef(null),K=r.useRef(null),Q=()=>{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}=Q();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)}})),X=(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),X(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}=Q();if(n&&t)if(n[B]t[I]){const r=t[O]+(n[I]-t[I]);X(r,{animation:e})}})),oe=(0,Eo.Z)((()=>{if(T&&!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=T?(0,Ne.jsx)(jo,{onChange:ne,className:(0,Se.Z)(j.scrollableX,j.hideScrollbar)}):null;const t=V.start||V.end,n=T&&("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},A,{children:[ce.scrollButtonStart,ce.scrollbarSizeListener,(0,Ne.jsxs)(Zo,{className:j.scroller,ownerState:D,style:{overflow:W.overflow,[R?"margin"+(a?"Left":"Right"):"marginBottom"]:P?void 0:-W.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,To.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"]),Uo=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Wo=(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,Ae.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:f,onFocus:h,selected:g,selectionFollowsFocus:b,textColor:v="inherit",value:y,wrapped:w=!1}=n,k=(0,M.Z)(n,Uo),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,Ae.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)(Wo,(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),f&&f(e)},onFocus:e=>{b&&!g&&m&&m(e,y),h&&h(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 Qo(){return Qo=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var Xo=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 fa(e,t){const n={};return t.forEach((t=>{n[t]=ma(e,t)})),n}function ha(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=fa("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,Qo({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,Qo({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,Aa;const Ta=fa("PrivatePickersToolbar",["root","dateTitleContainer"]),Ra=(0,Ie.ZP)("div")((({theme:e,ownerState:t})=>Qo({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)(Ta.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:Ta.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):Aa||(Aa=(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 Ua=["ampm","ampmInClock","date","isLandscape","isMobileKeyboardViewOpen","onChange","openView","setOpenView","toggleMobileKeyboardView","toolbarTitle","views"];function Wa(e){return ma("PrivateTimePickerToolbar",e)}const Ya=fa("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})=>Qo({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},"rtl"===e.direction&&{flexDirection:"row-reverse"}))),Qa=(0,Ie.ZP)("div")((({ownerState:e})=>Qo({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,Ua),m=aa(),f=(0,ur.Z)(),h=Boolean(t&&!n),{meridiemMode:g,handleMeridiemChange:b}=Va(r,t,i),v=e,y=(e=>{const{theme:t,isLandscape:n,classes:r}=e;return ha({penIconLandscape:["penIconLandscape"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n&&"hourMinuteLabelLandscape","rtl"===t.direction&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},Wa,r)})(Qo({},v,{theme:f})),w=(0,Ne.jsx)(qa,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:y.separator});return(0,Ne.jsxs)(Ga,Qo({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"):"--"})]}),h&&(0,Ne.jsxs)(Qa,{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},Xa=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})=>Qo({transformOrigin:"top center",outline:0},"top"===e.placement&&{transformOrigin:"bottom center"}))),oi=(0,Ie.ZP)(Ut)((({ownerState:e})=>Qo({},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:f,PaperProps:h={}}=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,To.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,To.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,To.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}=h,P=Jo(h,ti);return(0,Ne.jsx)(ni,Qo({transition:!0,role:p,open:u,anchorEl:n,ownerState:x},d,{children:({TransitionProps:e,placement:n})=>(0,Ne.jsx)(ei.Z,Qo({open:u,disableAutoFocus:!0,disableEnforceFocus:"tooltip"===p,isEnabled:()=>!0},f,{children:(0,Ne.jsx)(m,Qo({},e,{children:(0,Ne.jsxs)(ri,Qo({tabIndex:-1,elevation:8,ref:C,onClick:e=>{v(e),S&&S(e)},onTouchStart:e=>{y(e),E&&E(e)},ownerState:Qo({},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),f=(0,Mt.Z)(n.inputRef,m);return(0,Ne.jsxs)(Xa.Provider,{value:"desktop",children:[(0,Ne.jsx)(o,Qo({},n,{inputRef:f})),(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,fi=0-pi,hi=(e,t,n)=>{const r=t-di,o=n-pi;let a=(Math.atan2(mi,fi)-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})=>Qo({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})=>Qo({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=Qo({},this.props,this.state);return(0,Ne.jsx)(bi,Qo({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"}}),Ai=(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%)"}))),Ti=(0,Ie.ZP)(dt.Z)((({theme:e,ownerState:t})=>Qo({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})=>Qo({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:f,value:h}=e,g=e,b=aa(),v=r.useContext(Xa),y=r.useRef(!1),w=c(h,f),k=!t&&"hours"===f&&(h<1||h>12),C=(e,t)=>{c(e,f)||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"===f||"minutes"===f?((e,t,n=1)=>{const r=6*n;let{value:o}=hi(r,e,t);return o=o*n%60,o})(r,o,d):((e,t,n)=>{const{value:r,distance:o}=hi(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"===f||h%5==0),[f,h]),E="minutes"===f?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)(Ai,{})),i&&(0,Ne.jsx)(wi,{type:f,value:h,isInner:k,hasSelected:S})]}),(0,Ne.jsx)("div",{"aria-activedescendant":m,"aria-label":s(f,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"===f?59:23,"partial"),e.preventDefault();break;case"ArrowUp":C(h+E,"partial"),e.preventDefault();break;case"ArrowDown":C(h-E,"partial"),e.preventDefault()}},tabIndex:0,children:a})]}),t&&("desktop"===v||n)&&(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsx)(Ti,{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=fa("PrivateClockNumber",["selected","disabled"]),Ii=(0,Ie.ZP)("span")((({theme:e,ownerState:t})=>Qo({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&&Qo({},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,Qo({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})=>Qo({},e.hidden&&{visibility:"hidden"}))),Ui=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,f=Jo(e,zi),h="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,Qo({ref:t,className:r,ownerState:w},f,{children:[(0,Ne.jsx)(Vi,Qo({as:o.LeftArrowButton,size:"small","aria-label":u,title:u,disabled:i,edge:"end",onClick:d},g,{className:g.className,ownerState:Qo({},w,g,{hidden:s}),children:h?(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,Qo({as:o.RightArrowButton,size:"small","aria-label":m,title:m,edge:"start",disabled:l,onClick:p},v,{className:v.className,ownerState:Qo({},w,v,{hidden:c}),children:h?(0,Ne.jsx)(b,{}):(0,Ne.jsx)(y,{})}))]}))}));function Wi(e){return ma("MuiClockPicker",e)}fa("MuiClockPicker",["arrowSwitcher"]);const Yi=(0,Ie.ZP)(Ui,{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`,Qi=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=Qi,leftArrowButtonText:f="open previous view",maxTime:h,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,A=ia(),T=aa(),R=T.setSeconds(T.setMinutes(T.setHours(A,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,T);return Boolean(g&&r(g,n("end"))||h&&r(n("start"),h)||S&&S(e,t))};switch(t){case"hours":{const t=Fa(e,M,n);return r((e=>Da((e=>T.setHours(e,t)),(t=>T.setMinutes(t,"start"===e?0:59)),(t=>T.setSeconds(t,"start"===e?0:59)))(l)))}case"minutes":return r((t=>Da((t=>T.setMinutes(t,e)),(e=>T.setSeconds(e,"start"===t?0:59)))(l)));case"seconds":return r((()=>T.setSeconds(l,e)));default:throw new Error("not supported")}}),[n,l,c,h,M,g,S,T]),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(T.setHours(O,r),t)};return{onChange:e,value:T.getHours(O),children:Li({date:l,utils:T,ampm:n,onChange:e,getClockNumberText:d,isDisabled:e=>I(e,"hours"),selectedId:Z})}}case"minutes":{const e=T.getMinutes(O),t=(e,t)=>{y(T.setMinutes(O,e),t)};return{value:e,onChange:t,children:Di({utils:T,value:e,onChange:t,getClockNumberText:p,isDisabled:e=>I(e,"minutes"),selectedId:Z})}}case"seconds":{const e=T.getSeconds(O),t=(e,t)=>{y(T.setSeconds(O,e),t)};return{value:e,onChange:t,children:Di({utils:T,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,T,l,n,d,p,m,M,y,O,I,Z]),D=t,j=(e=>{const{classes:t}=e;return ha({arrowSwitcher:["arrowSwitcher"]},Wi,t)})(D);return(0,Ne.jsxs)(r.Fragment,{children:[E&&(0,Ne.jsx)(Yi,{className:j.arrowSwitcher,leftArrowButtonText:f,rightArrowButtonText:x,components:i,componentsProps:s,onLeftClick:k,onRightClick:w,isLeftDisabled:C,isRightDisabled:v,ownerState:D}),(0,Ne.jsx)(Oi,Qo({autoFocus:a,date:l,ampmInClock:o,type:P,ampm:n,getClockLabelText:u,minutesStep:b,isTimeDisabled:I,meridiemMode:M,handleMeridiemChange:B,selectedId:Z},L))]})},Xi=["disabled","onSelect","selected","value"],_i=fa("PrivatePickersMonth",["root","selected"]),$i=(0,Ie.ZP)(st.Z)((({theme:e})=>Qo({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,Xi),i=()=>{n(o)};return(0,Ne.jsx)($i,Qo({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)}fa("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),f=n,h=(e=>{const{classes:t}=e;return ha({root:["root"]},ns,t)})(f),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,Qo({ref:t,className:(0,Se.Z)(h.root,r),ownerState:f},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(),f=r.useRef(((e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return Qo({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Qo({},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 Qo({},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,[h,g]=r.useReducer(f,{isMonthSwitchingAnimating:!1,focusedDay:e||p,currentMonth:m.startOfMonth(null!=(d=null!=e?e:t)?d:p),slideDirection:"left"}),b=r.useCallback((e=>{g(Qo({type:"changeMonth"},e)),l&&l(e.newMonth)}),[l]),v=r.useCallback((e=>{const t=null!=e?e:p;m.isSameMonth(t,h.currentMonth)||b({newMonth:m.startOfMonth(t),direction:m.isAfterDay(t,h.currentMonth)?"left":"right"})}),[h.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:h,changeMonth:v,changeFocusedDay:k,isDateDisabled:y,onMonthSwitchingAnimationEnd:w,handleChangeMonth:b}}var cs=n(4537);const us=fa("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 fs(e){return ma("MuiPickersDay",e)}const hs=fa("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),gs=({theme:e,ownerState:t})=>Qo({},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),[`&.${hs.selected}`]:{willChange:"background-color",backgroundColor:e.palette.primary.dark}},[`&.${hs.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}},[`&.${hs.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(.${hs.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})=>Qo({},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:f,onFocus:h,onKeyDown:g,outsideCurrentMonth:b,selected:v=!1,showDaysOutsideCurrentMonth:y=!1,children:w,today:k=!1}=n,C=Jo(n,ms),x=Qo({},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 ha({root:["root",t&&"selected",!n&&"dayWithMargin",!r&&o&&"today",a&&i&&"dayOutsideMonth"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},fs,s)})(x),E=aa(),P=r.useRef(null),A=(0,Mt.Z)(P,t);ui((()=>{!a||l||d||b||P.current.focus()}),[a,l,d,b]);const T=(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,Qo({className:(0,Se.Z)(S.root,i),ownerState:x,ref:A,centerRipple:!0,disabled:l,"aria-label":w?void 0:E.format(s,"fullDate"),tabIndex:v?0:-1,onFocus:e=>{m&&m(s),h&&h(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"===T.direction?-1:1)),e.preventDefault();break;case"ArrowRight":m(E.addDays(s,"ltr"===T.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||f(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}))},As=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)(Ts,Qo({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:f,onMonthSwitchingAnimationEnd:h,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);f(n,t)}),[s,x,f,g,S]),P=S.getMonth(i),A=(Array.isArray(s)?s:[s]).filter(Boolean).map((e=>e&&S.startOfDay(e))),T=P,R=r.useMemo((()=>r.createRef()),[T]);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,Qo({transKey:T,onExited:h,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:A.some((t=>t&&S.isSameDay(t,e))),disableHighlightToday:c,showDaysOutsideCurrentMonth:w,onDayFocus:o,onDaySelect:E};return v?v(e,A,r):(0,Ne.jsx)("div",{role:"cell",children:(0,Ne.jsx)(xs,Qo({},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})=>Qo({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium}))),Us=(0,Ie.ZP)("div")({marginRight:6}),Ws=(0,Ie.ZP)(dt.Z)({marginRight:"auto"}),Ys=(0,Ie.ZP)(Ns)((({theme:e,ownerState:t})=>Qo({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:f,reduceAnimations:h,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!==f))||b[0]);else{const e=0!==b.indexOf(f)?0:1;m(b[e])}},ownerState:C,children:[(0,Ne.jsx)(ps,{reduceAnimations:h,transKey:v.format(o,"month"),children:(0,Ne.jsx)(Us,{"aria-live":"polite",ownerState:C,children:v.format(o,"month")})}),(0,Ne.jsx)(ps,{reduceAnimations:h,transKey:v.format(o,"year"),children:(0,Ne.jsx)(Us,{"aria-live":"polite",ownerState:C,children:v.format(o,"year")})}),b.length>1&&!a&&(0,Ne.jsx)(Ws,Qo({size:"small",as:t.SwitchViewButton,"aria-label":l(f)},y,{children:(0,Ne.jsx)(Ys,{as:t.SwitchViewIcon,ownerState:C})}))]}),(0,Ne.jsx)(Re.Z,{in:"day"===f,children:(0,Ne.jsx)(Ui,{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 Qs=fa("PrivatePickersYear",["root","modeMobile","modeDesktop","yearButton","disabled","selected"]),Js=(0,Ie.ZP)("div")((({ownerState:e})=>Qo({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==e?void 0:e.wrapperVariant)&&{flexBasis:"25%"}))),Xs=(0,Ie.ZP)("button")((({theme:e})=>Qo({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)},[`&.${Qs.disabled}`]:{color:e.palette.text.secondary},[`&.${Qs.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=Qo({},e,{wrapperVariant:r.useContext(Xa)}),f=(e=>{const{wrapperVariant:t,disabled:n,selected:r,classes:o}=e;return ha({root:["root",t&&`mode${(0,Ae.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)(f.root,o),ownerState:m,children:(0,Ne.jsx)(Xs,{ref:p,disabled:i,type:"button",tabIndex:c?0:-1,onClick:e=>s(e,u),onKeyDown:e=>l(e,u),className:f.yearButton,ownerState:m,children:a})})})),$s=_s;function el(e){return ma("MuiYearPicker",e)}fa("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:f,onYearChange:h,readOnly:g,shouldDisableYear:b}=n,v=n,y=(e=>{const{classes:t}=e;return ha({root:["root"]},el,t)})(v),w=ia(),k=(0,ur.Z)(),C=aa(),x=i||w,S=C.getYear(x),E=r.useContext(Xa),P=r.useRef(null),[A,T]=r.useState(S),R=(e,t,n="finish")=>{if(g)return;const r=e=>{m(e,n),f&&f(e||w),h&&h(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))||T(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===A,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)}fa("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:f,reduceAnimations:h=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,A=null!=d?d:E.maxDate,{openView:T,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:h,onMonthChange:f,minDate:P,maxDate:A,shouldDisableDate:b,disablePast:l,disableFuture:s});r.useEffect((()=>{if(i&&I(i)){const e=is({utils:S,date:i,minDate:P,maxDate:A,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 ha({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},sl,t)})(D),F={className:C,date:i,disabled:x.disabled,disablePast:l,disableFuture:s,onChange:m,minDate:P,maxDate:A,onMonthChange:f,readOnly:x.readOnly};return(0,Ne.jsxs)(ll,{ref:t,className:(0,Se.Z)(j.root,C),ownerState:D,children:[(0,Ne.jsx)(qs,Qo({},x,{views:w,openView:T,currentMonth:O.currentMonth,onViewChange:R,onMonthChange:(e,t)=>Z({newMonth:e,direction:t}),minDate:P,maxDate:A,disablePast:l,disableFuture:s,reduceAnimations:h})),(0,Ne.jsx)(cl,{reduceAnimations:h,className:j.viewTransitionContainer,transKey:T,ownerState:D,children:(0,Ne.jsxs)("div",{children:["year"===T&&(0,Ne.jsx)(rl,Qo({},x,{autoFocus:o,date:i,onChange:m,minDate:P,maxDate:A,disableFuture:s,disablePast:l,isDateDisabled:I,shouldDisableYear:v,onFocusedDayChange:M})),"month"===T&&(0,Ne.jsx)(as,Qo({},F)),"day"===T&&(0,Ne.jsx)(zs,Qo({},x,O,{autoFocus:o,onMonthSwitchingAnimationEnd:L,onFocusedDayChange:M,reduceAnimations:h,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:f}){const h=aa(),[g,b]=r.useState(!1),v=h.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,h)),[e,n,a,l,h]),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(h,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||h.isValid(u))&&k!==C&&x(k);const A=e=>{const t=""===e||e===l?"":e;x(t);const n=null===t?null:h.parse(t,a);o&&!h.isValid(n)||c(n,t||void 0)},T=(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,f=t=>(t.match(e.accept||/\d/g)||[]).join(""),h=f(r.substr(0,s.selectionStart)),g=e=>{let t=0,n=0;for(let r=0;r!==h.length;++r){let o=e.indexOf(h[r],t)+1,a=f(e).indexOf(h[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=f(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):""===f(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]&&""===f(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:A,format:p||w});return Qo({label:s,disabled:t,error:f,inputProps:Qo({},y?T:{value:C,onChange:e=>{A(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 fl=["components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],hl=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,fl),p=aa(),m=ml(d),f=(null==a?void 0:a.position)||"end",h=n.OpenPickerIcon||Sa;return u(Qo({ref:t,inputRef:s},m,{InputProps:Qo({},i,{[`${f}Adornment`]:r?void 0:(0,Ne.jsx)(Xr,Qo({position:f},a,{children:(0,Ne.jsx)(dt.Z,Qo({edge:f,disabled:d.disabled||d.readOnly,"aria-label":o(d.rawValue,p)},c,{onClick:l,children:(0,Ne.jsx)(h,{})}))}))})}))}));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})=>Qo({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:f,toolbarTitle:h,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(Xa),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:A}=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,Qo({},b,{views:g,isLandscape:v,date:n,onChange:k,setOpenView:P,openView:x,toolbarTitle:h,toolbarFormat:m,toolbarPlaceholder:f,isMobileKeyboardViewOpen:a,toggleMobileKeyboardView:d})),(0,Ne.jsx)(ol,{children:a?(0,Ne.jsx)(vl,{children:(0,Ne.jsx)(hl,Qo({},o,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:wl}))}):(0,Ne.jsxs)(r.Fragment,{children:[kl(x)&&(0,Ne.jsx)(pl,Qo({autoFocus:t,date:n,onViewChange:P,onChange:A,view:x,views:g.filter(kl)},b)),(T=x,("hours"===T||"minutes"===T||"seconds"===T)&&(0,Ne.jsx)(Ji,Qo({},b,{autoFocus:t,date:n,view:x,onChange:A,openNextView:()=>P(S),openPreviousView:()=>P(E),nextViewAvailable:!S,previousViewAvailable:!E||kl(E),showViewSwitcher:"desktop"===y})))]})})]});var T};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 Qo({},e,{draft:t.payload});default:return e}}),d,u);t.areValuesEqual(s,p.committed,d)||m({type:"reset",payload:d});const[f,h]=r.useState(p.committed),[g,b]=r.useState(!1),v=r.useCallback(((e,t)=>{a(e),t&&(c(!1),h(e),o&&o(e))}),[o,a,c]),y=r.useMemo((()=>({open:l,onClear:()=>v(t.emptyValue,!0),onAccept:()=>v(p.draft,!0),onDismiss:()=>v(f,!0),onSetToday:()=>{const e=s.date();m({type:"update",payload:e}),v(e,!n)}})),[v,n,l,s,p.draft,t.emptyValue,f]),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"],Al={emptyValue:null,parseInput:ss,areValuesEqual:(e,t,n)=>e.isEqual(t,n)},Tl=r.forwardRef((function(e,t){const n=ca(e,"MuiDesktopTimePicker"),r=null!==Sl(n),{pickerProps:o,inputProps:a,wrapperProps:i}=El(n,Al),{PopperProps:s,ToolbarComponent:l=Ja,TransitionComponent:c}=n,u=Jo(n,Pl),d=Qo({},a,u,{ref:t,validationError:r});return(0,Ne.jsx)(ii,Qo({},i,{DateInputProps:d,KeyboardDateInputComponent:hl,PopperProps:s,TransitionComponent:c,children:(0,Ne.jsx)(Cl,Qo({},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)(Tt)({"&:first-of-type":{padding:0}}),Ml=(0,Ie.ZP)(Ut)((({ownerState:e})=>Qo({},(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,f=e;return(0,Ne.jsxs)(Rl,Qo({open:d,onClose:c},a,{children:[(0,Ne.jsx)(Ol,{children:n}),(0,Ne.jsxs)(Ml,{ownerState:f,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:f,todayText:h}=e,g=Jo(e,Il);return(0,Ne.jsxs)(Xa.Provider,{value:"mobile",children:[(0,Ne.jsx)(m,Qo({},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:f,todayText:h,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,f=aa(),h=r.useMemo((()=>Qo({},i,{readOnly:!0})),[i]),g=na(f,u,a);return d(Qo({label:l,disabled:n,ref:t,inputRef:s,error:m,InputProps:h,inputProps:Qo({disabled:n,readOnly:!0,"aria-readonly":!0,"aria-label":o(u,f),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=Qo({},a,l,{ref:t,validationError:r});return(0,Ne.jsx)(Zl,Qo({},l,i,{DateInputProps:c,PureDateInputComponent:Ll,children:(0,Ne.jsx)(Cl,Qo({},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,f=Jo(n,zl),h=function(e,t={}){const n=(0,Xo.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 h?(0,Ne.jsx)(Tl,Qo({ref:t,PopperProps:u,TransitionComponent:m},f)):(0,Ne.jsx)(Fl,Qo({ref:t,cancelText:o,clearable:a,clearText:i,DialogProps:l,okText:c,showTodayButton:d,todayText:p},f))})),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 Ul(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function Wl(e){Ul(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){Ul(2,arguments);var n=Wl(e),r=Vl(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function Gl(e,t){Ul(2,arguments);var n=Wl(e).getTime(),r=Vl(t);return new Date(n+r)}var ql=36e5;function Kl(e,t){Ul(2,arguments);var n=Wl(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 Ql(e,t){Ul(2,arguments);var n=Vl(t);return Kl(e,12*n)}function Jl(e,t){Ul(2,arguments);var n=Wl(e),r=Wl(t);return n.getFullYear()-r.getFullYear()}function Xl(e,t){Ul(2,arguments);var n=Wl(e),r=Wl(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function _l(e,t){Ul(2,arguments);var n=Wl(e),r=Wl(t),o=n.getFullYear()-r.getFullYear(),a=n.getMonth()-r.getMonth();return 12*o+a}function $l(e){Ul(1,arguments);var t=Wl(e);return t.setHours(23,59,59,999),t}function ec(e){Ul(1,arguments);var t=Wl(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function tc(e){Ul(1,arguments);var t=Wl(e);return $l(t).getTime()===ec(t).getTime()}function nc(e,t){Ul(2,arguments);var n,r=Wl(e),o=Wl(t),a=Xl(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=Xl(r,o)===-a;tc(Wl(e))&&1===i&&1===Xl(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){Ul(1,arguments);var t=Wl(e);return t.setHours(0,0,0,0),t}var sc=864e5;function lc(e,t){Ul(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){Ul(2,arguments);var n=Wl(e),r=Wl(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 Ul(2,arguments),Wl(e).getTime()-Wl(t).getTime()}function fc(e,t){Ul(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=Wl(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(Ac.matchPattern);if(!n)return null;var r=n[0],o=e.match(Ac.parsePattern);if(!o)return null;var a=Ac.valueCallback?Ac.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:Tc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Oc(e,t){Ul(2,arguments);var n=Vl(t);return Gl(e,-n)}var Mc=864e5;function Bc(e){Ul(1,arguments);var t=1,n=Wl(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function Zc(e){Ul(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){Ul(1,arguments);var t=Wl(e),n=Bc(t).getTime()-Zc(t).getTime();return Math.round(n/Lc)+1}function jc(e,t){Ul(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=Wl(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){Ul(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){Ul(1,arguments);var n=Wl(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)},Wc=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)},Qc=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 Xc(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 Uc(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 Wc(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){Ul(1,arguments);var t=Wl(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"}):Qc(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"+Xc(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"+Xc(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 fu(e){return e.match(du)[1].replace(pu,"'")}function hu(e,t){Ul(2,arguments);var n=Wl(e),r=Wl(t);return n.getTime()>r.getTime()}function gu(e,t){Ul(2,arguments);var n=Wl(e),r=Wl(t);return n.getTime()=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Wl(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 Xu=[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 Wu(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 Wu(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 Wu(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){Ul(2,arguments);var r=Wl(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 Wu(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){Ul(2,arguments);var n=Wl(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 Wu(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<=Xu[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 Wu(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){Ul(2,arguments);var n=Vl(t);n%7==0&&(n-=7);var r=1,o=Wl(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 Wu(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 Wu(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 Wu(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 Wu(Tu,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 Wu(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(Uu,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(Uu,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){Ul(1,arguments);var t=Wl(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){Ul(1,arguments);var t=Wl(e),n=t.getDay();return n}function pd(e){Ul(1,arguments);var t=Wl(e);return t.setDate(1),t.setHours(0,0,0,0),t}function md(e,t){Ul(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=Wl(e),l=s.getDay(),c=(l2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],hd.timeZoneDelimiter.test(n.date)&&(n.date=e.split(hd.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=hd.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]||(Ad(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(Ad(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 Ad(e){return e%400==0||e%4==0&&e%100!=0}var Td=n(5209),Rd=n.n(Td),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){Ul(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){Ul(1,arguments);var n=Wl(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),f=Vc(Math.floor(m/60),2),h=Vc(m%60,2);i="".concat(p<0?"+":"-").concat(f,":").concat(h)}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){Ul(2,arguments);var n=Vl(t);return Gl(e,1e3*n)}(e,t)},this.addMinutes=function(e,t){return function(e,t){Ul(2,arguments);var n=Vl(t);return Gl(e,6e4*n)}(e,t)},this.addHours=function(e,t){return function(e,t){Ul(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){Ul(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){Ul(2,arguments);var n=Wl(e),r=Wl(t),o=Xl(n,r),a=Math.abs(Jl(n,r));n.setFullYear(1584),r.setFullYear(1584);var i=Xl(n,r)===-o,s=o*(a-Number(i));return 0===s?0:s}(e,t.date(n));case"quarters":return function(e,t,n){Ul(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){Ul(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){Ul(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){Ul(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){Ul(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 hu(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 Ul(1,arguments),Wl(e).getHours()}(e)},this.setHours=function(e,t){return function(e,t){Ul(2,arguments);var n=Wl(e),r=Vl(t);return n.setHours(r),n}(e,t)},this.setMinutes=function(e,t){return function(e,t){Ul(2,arguments);var n=Wl(e),r=Vl(t);return n.setMinutes(r),n}(e,t)},this.getSeconds=function(e){return function(e){return Ul(1,arguments),Wl(e).getSeconds()}(e)},this.setSeconds=function(e,t){return function(e,t){Ul(2,arguments);var n=Wl(e),r=Vl(t);return n.setSeconds(r),n}(e,t)},this.isSameDay=function(e,t){return function(e,t){Ul(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){Ul(2,arguments);var n=Wl(e),r=Wl(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t)},this.isSameYear=function(e,t){return function(e,t){Ul(2,arguments);var n=Wl(e),r=Wl(t);return n.getFullYear()===r.getFullYear()}(e,t)},this.isSameHour=function(e,t){return function(e,t){Ul(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 fc(e,{locale:t.locale})},this.getYear=function(e){return function(e){return Ul(1,arguments),Wl(e).getFullYear()}(e)},this.setYear=function(e,t){return function(e,t){Ul(2,arguments);var n=Wl(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){Ul(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?Wl(n):new Date(NaN);var f,h={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,h):e})).join("").match(nd),v=[];for(f=0;f0&&id.test(o))return new Date(NaN);var A=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]})),T=Wl(n);if(isNaN(T))return new Date(NaN);var R=Oc(T,ac(T)),O={};for(f=0;f=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=Wl(e);if(!bc(p))throw new RangeError("Invalid time value");var m=ac(p),f=Oc(p,m),h={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,h):e})).join("").match(cu).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return fu(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(f,n,a.localize,h);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){Ul(2,arguments);var n=Wl(e),r=Wl(t);return n.getTime()===r.getTime()}(e,t)},this.isNull=function(e){return null===e},this.isAfterDay=function(e,t){return hu(e,$l(t))},this.isBeforeDay=function(e,t){return gu(e,ic(t))},this.isBeforeYear=function(e,t){return gu(e,fd(t))},this.isAfterYear=function(e,t){return hu(e,hc(t))},this.isWithinRange=function(e,t){return function(e,t){Ul(2,arguments);var n=Wl(e).getTime(),r=Wl(t.start).getTime(),o=Wl(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){Ul(2,arguments);var n=Wl(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=[fd(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){Ul(1,arguments);var n=e||{},r=Wl(n.start),o=Wl(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(Wl(i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return a}({start:md(e,{locale:t.locale}),end:fc(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=fc(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=fd(e),r=hc(t),o=[],a=n;gu(a,r);)o.push(a),a=Ql(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"}))},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:"#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"}))},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:"#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"}))},Qd=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"}))},Xd=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}))},fp=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"}))},hp=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"}))},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:"#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"}))},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:"#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){return r.createElement(Xt.Z,{x:"0px",y:"0px",viewBox:"0 0 511.882 511.882"},r.createElement("polygon",{style:{fill:"#F6BB42"},points:"350.216,176.572 278.374,158.615 37.038,264.123 0,338.207 125.753,374.324 386.13,258.531 "}),r.createElement("polygon",{style:{fill:"#FFCE54"},points:"350.216,176.572 107.756,284.345 125.753,374.324 386.13,258.531 "}),r.createElement("polygon",{style:{fill:"#E8AA3D"},points:"107.756,284.345 37.038,264.123 0.015,338.207 125.753,374.324 "}),r.createElement("polygon",{style:{fill:"#F6BB42"},points:"475.969,212.682 404.127,194.717 162.791,300.232 125.753,374.324 251.504,410.41 511.882,294.625 "}),r.createElement("polygon",{style:{fill:"#FFCE54"},points:"475.969,212.682 233.508,320.431 251.504,410.41 511.882,294.625 "}),r.createElement("polygon",{style:{fill:"#E8AA3D"},points:"233.508,320.431 162.791,300.232 125.753,374.324 251.504,410.41 "}),r.createElement("polygon",{style:{fill:"#F6BB42"},points:"396.316,119.429 324.488,101.473 103.867,198.435 66.843,272.519 192.596,308.621 432.245,201.379 "}),r.createElement("polygon",{style:{fill:"#FFCE54"},points:"396.316,119.429 174.6,218.641 192.596,308.621 432.245,201.379 "}),r.createElement("polygon",{style:{fill:"#E8AA3D"},points:"174.6,218.641 103.867,198.435 66.843,272.519 192.596,308.621 "}))}function Vp(){return Vp=Object.assign||function(e){for(var t=1;t{let c=i?s.trim():s;n&&(c=c.toLowerCase()),t&&(c=Gp(c));const u=e.filter((e=>{let r=(a||l)(e);return n&&(r=r.toLowerCase()),t&&(r=Gp(r)),"start"===o?0===r.indexOf(c):r.indexOf(c)>-1}));return"number"==typeof r?u.slice(0,r):u}}();var Qp=n(7036),Jp=n(594),Xp=n(5302);function _p(){return _p=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`)),im=(0,Ie.ZP)("label")((({theme:e,error:t})=>`\n color: ${"dark"===e.palette.mode?t?"#f44336":"#cfcfcf":t?"#dd0000":"#717171"};\n align: center;\n padding: 0 0 4px;\n line-height: 1.5; f44336\n display: block;\n font-size: 13px;\n`)),sm=(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 lm(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(em,{width:22,height:22,icon:n})),r.createElement("span",{style:{position:"relative",left:"2px"}},t),r.createElement(Jp.Z,{onClick:o}))}lm.propTypes={label:S().string.isRequired,icon:S().string.isRequired,onDelete:S().func.isRequired};const cm=(0,Ie.ZP)(lm)((({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`)),um=(0,Ie.ZP)("span")((({theme:e})=>`\n color: ${"dark"===e.palette.mode?"#90caf9":"#1976d2"};\n align: left;\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`)),dm=(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 pm(e){const{t,i18n:n}=ye(),{getRootProps:o,getInputLabelProps:a,getInputProps:i,getTagProps:l,getListboxProps:c,getOptionProps:u,groupedOptions:d,value:p,focused:m="true",setAnchorEl:f}=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:f=!1,disableListWrap:h=!1,filterOptions:g=Kp,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:A=!1,onChange:T,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),U=r.useRef(null),[W,Y]=r.useState(null),[G,q]=r.useState(-1),K=n?0:-1,Q=r.useRef(K),[J,X]=(0,Un.Z)({controlled:j,default:d,name:u}),[_,$]=(0,Un.Z)({controlled:P,default:"",name:u,state:"inputValue"}),[ee,te]=r.useState(!1),ne=r.useCallback(((e,t)=>{if(!(A?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,Un.Z)({controlled:I,default:!1,name:u,state:"open"}),[ie,se]=r.useState(!0),le=!A&&null!=J&&_===z(J),ce=oe,ue=ce?g(L.filter((e=>!b||!(A?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():W.querySelector(`[data-tag-index="${e}"]`).focus()}));r.useEffect((()=>{A&&G>J.length-1&&(q(-1),pe(-1))}),[J,A,G,pe]);const me=(0,Gn.Z)((({event:e,index:t,reason:n="auto"})=>{if(Q.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),!U.current)return;const r=U.current.querySelector('[role="option"].Mui-focused');r&&(r.classList.remove("Mui-focused"),r.classList.remove("Mui-focusVisible"));const o=U.current.parentElement.querySelector('[role="listbox"]');if(!o)return;if(-1===t)return void(o.scrollTop=0);const a=U.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(!U.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ue.length||"previous"===t&&-1===n)return-1;const e=U.current.querySelector(`[data-option-index="${n}"]`),r=!f&&(!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=Q.current+n;return t<0?-1===t&&E?-1:h&&-1!==Q.current||Math.abs(n)>1?0:e:t>e?t===e+1&&E?-1:h||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)}})),he=r.useCallback((()=>{if(!ce)return;const e=A?J[0]:J;if(0!==ue.length&&null!=e){if(U.current)if(null==e)Q.current>=ue.length-1?me({index:ue.length-1}):me({index:Q.current});else{const t=ue[Q.current];if(A&&t&&-1!==qp(J,(e=>k(t,e))))return;const n=qp(ue,(t=>k(t,e)));-1===n?fe({diff:"reset"}):me({index:n})}}else fe({diff:"reset"})}),[ue.length,!A&&J,b,fe,me,ce,_,A]),ge=(0,Gn.Z)((e=>{(0,Yp.Z)(U,e),e&&he()}));r.useEffect((()=>{he()}),[he]);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;T&&T(e,t,n,r),X(t)},we=r.useRef(!1),ke=(e,t,n="selectOption",r="options")=>{let o=n,i=t;if(A){i=Array.isArray(J)?J.slice():[];const e=qp(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(!A)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=W.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,A?[]: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(),fe({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":ce&&x&&(n.preventDefault(),fe({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),fe({diff:-5,direction:"previous",reason:"keyboard",event:n}),be(n);break;case"PageDown":n.preventDefault(),fe({diff:5,direction:"next",reason:"keyboard",event:n}),be(n);break;case"ArrowDown":n.preventDefault(),fe({diff:1,direction:"next",reason:"keyboard",event:n}),be(n);break;case"ArrowUp":n.preventDefault(),fe({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!==Q.current&&ce){const e=ue[Q.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&&(A&&n.preventDefault(),ke(n,_,"createOption","freeSolo"));break;case"Escape":ce?(n.preventDefault(),n.stopPropagation(),ve(n,"escape")):c&&(""!==_||A&&J.length>0)&&(n.preventDefault(),n.stopPropagation(),xe(n));break;case"Backspace":if(A&&""===_&&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)},Ae=e=>{null!==U.current&&U.current.parentElement.contains(document.activeElement)?V.current.focus():(te(!1),H.current=!0,N.current=!1,o&&-1!==Q.current&&ce?ke(e,ue[Q.current],"blur"):o&&v&&""!==_?ke(e,_,"blur","freeSolo"):l&&ne(e,J),ve(e,"blur"))},Te=e=>{const t=e.target.value;_!==t&&($(t),se(!1),M&&M(e,t,"input")),""===t?p||A||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||(A?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&&Ae(),{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:Ae,onFocus:Ee,onChange:Te,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=(A?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:W,setAnchorEl:Y,focusedTag:G,groupedOptions:Fe}}({sx:{width:"200px",align:"left"},id:"payment-methods",multiple:!0,options:"fiat"==e.optionsType?tm:nm,getOptionLabel:e=>e.name,onInputChange:e=>g(e&&e.target.value?e.target.value:""),onChange:(t,n)=>e.onAutocompleteChange(b(n)),onClose:()=>g((()=>""))}),[h,g]=(0,r.useState)();function b(e){for(var t="",n=e.length,r=0;r"")),(n||null==n)&&e.onAutocompleteChange(b(p)),!1}return r.createElement(am,null,r.createElement("div",{style:{height:"5px"}}),r.createElement("div",o(),r.createElement(im,om({},a(),{error:e.error}),e.label),r.createElement(sm,{ref:f,error:e.error,className:m?"focused":""},p.map(((e,n)=>r.createElement(cm,om({label:t(e.name),icon:e.icon},l({index:n}))))),r.createElement("input",om({},i(),{value:h})))),d.length>0?r.createElement(dm,c(),r.createElement("div",{style:{position:"fixed",minHeight:"20px",marginLeft:120-3*e.listHeaderText.length,marginTop:"-13px"}},r.createElement(um,null,r.createElement("i",null,e.listHeaderText+" "," ")," ")),d.map(((e,n)=>r.createElement("li",u({option:e,index:n}),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(rm.Z,{style:{color:"#1976d2"},sx:{width:18,height:18}})),t(e.name)),r.createElement("div",{style:{position:"relative",top:"5px"}},r.createElement(Qp.Z,null))))),null!=h&&h.length>2?r.createElement(pt.Z,{size:"small",fullWidth:!0,onClick:()=>v(i())},r.createElement(Xp.Z,{sx:{width:18,height:18}}),e.addNewButtonText):null):i().value.length>0?r.createElement(dm,c(),r.createElement(pt.Z,{fullWidth:!0,onClick:()=>v(i())},r.createElement(Xp.Z,{sx:{width:20,height:20}}),e.addNewButtonText)):null)}var mm=n(3595),fm=n(6517);const hm=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 gm(){return gm=Object.assign||function(e){for(var t=1;t{this.setState({type:e.target.value})})),bm(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))})})),bm(this,"handleAmountChange",(e=>{this.setState({amount:e.target.value})})),bm(this,"handleMinAmountChange",(e=>{this.setState({minAmount:parseFloat(Number(e.target.value).toPrecision(e.target.value<100?2:3))})})),bm(this,"handleMaxAmountChange",(e=>{this.setState({maxAmount:parseFloat(Number(e.target.value).toPrecision(e.target.value<100?2:3))})})),bm(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})})),bm(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})})),bm(this,"handleSatoshisChange",(e=>{const{t}=this.props;if(e.target.value>this.maxTradeSats)var n=t("Must be less than {{maxSats}",{maxSats:vm(this.maxTradeSats)});e.target.value{this.setState({is_explicit:!1}),this.handlePremiumChange()})),bm(this,"handleClickExplicit",(e=>{this.state.enableAmountRange||(this.setState({is_explicit:!0}),this.handleSatoshisChange())})),bm(this,"handleCreateOfferButtonPressed",(()=>{null==this.state.amount&&this.setState({amount:0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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):"")))})),bm(this,"handleInputBondSizeChange",(e=>{this.setState({bondSize:""===e.target.value?1:Number(e.target.value)})})),bm(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,{sx:{align:"center"}},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(hm).map((([e,t])=>r.createElement(jn.Z,{value:parseInt(e)},r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},Wp(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(pm,{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 new methods"),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}))))})),bm(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})})),bm(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))})),bm(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))})),bm(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}})))),bm(this,"minAmountError",(()=>this.state.minAmountthis.state.maxAmount)),bm(this,"maxAmountError",(()=>this.state.maxAmount>this.getMaxAmount()||this.state.maxAmountthis.state.maxAmount)),bm(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:8*e("to").length,align:"center"}},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",{style:{width:9*this.state.currencyCode.length+4,align:"right"}},this.state.currencyCode))})),bm(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(Ur,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:fm.Z},open:this.state.openTimePicker,InputProps:{endAdornment:r.createElement(Xr,{position:"end"},r.createElement(fm.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(mm.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})})})))))})),bm(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,gm({label:n("Order")},this.a11yProps(0))),r.createElement(Go,gm({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 hm[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:vm(this.state.amount)," "+this.state.currencyCode,this.state.is_explicit?e(" of {{satoshis}} Satoshis",{satoshis:vm(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 wm=xe()(ym);var km=n(9773);function Cm(e){return(0,Ze.Z)("MuiListItemButton",e)}const xm=(0,Le.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Sm=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],Em=(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"}},[`&.${xm.selected}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xm.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xm.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)}},[`&.${xm.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${xm.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}))),Pm=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,f=(0,M.Z)(n,Sm),h=r.useContext(km.Z),g={dense:c||h.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,Cm,n);return(0,s.Z)({},n,u)})(v),w=(0,Mt.Z)(b,t);return(0,Ne.jsx)(km.Z.Provider,{value:g,children:(0,Ne.jsx)(Em,(0,s.Z)({ref:w,component:i,focusVisibleClassName:(0,Se.Z)(y.focusVisible,p),ownerState:v},f,{classes:y,children:l}))})})),Am=Pm;function Tm(e){return(0,Ze.Z)("MuiListItemAvatar",e)}(0,Le.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Rm=["className"],Om=(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}))),Mm=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemAvatar"}),{className:o}=n,a=(0,M.Z)(n,Rm),i=r.useContext(km.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,Tm,n)})(l);return(0,Ne.jsx)(Om,(0,s.Z)({className:(0,Se.Z)(c.root,o),ownerState:l,ref:t},a))})),Bm=Mm;var Im=n(9346),Zm=n(6336);const Lm=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Dm=(0,Ie.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Zm.Z.primary}`]:t.primary},{[`& .${Zm.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}))),jm=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,Lm),{dense:f}=r.useContext(km.Z);let h=null!=c?c:o,g=d;const b=(0,s.Z)({},n,{disableTypography:i,inset:l,primary:!!h,secondary:!!g,dense:f}),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,Zm.L,t)})(b);return null==h||h.type===st.Z||i||(h=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:f?"body2":"body1",className:v.primary,component:"span",display:"block"},u,{children:h}))),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)(Dm,(0,s.Z)({className:(0,Se.Z)(v.root,a),ownerState:b,ref:t},m,{children:[h,g]}))})),Fm=jm;var zm=n(428);const Nm=[{name:"not specified",icon:"notspecified"}].concat(nm).concat(tm);class Hm extends r.Component{constructor(e){super(e)}parseText(){const{t:e}=this.props;var t=[],n=this.props.text;return Nm.forEach(((o,a)=>{this.props.text.includes(o.name)&&(n=n.replace(o.name,""),t.push(r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:e(o.name)},r.createElement("div",{style:{display:"inline-block",width:this.props.size+2,height:this.props.size}},r.createElement(em,{width:this.props.size,height:this.props.size,icon:o.icon})))))})),n.replace(" ","").replace(" ","").replace(" ","").replace(" ","").replace(" ","").length>0&&t.push(r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:this.props.verbose?this.props.othersText:this.props.othersText+": "+n},r.createElement("div",{style:{position:"relative",display:"inline-block",width:this.props.size+2,maxHeight:this.props.size,top:"-1px"}},r.createElement(em,{width:1.1*this.props.size,height:1.1*this.props.size,icon:"custom"})))),this.props.verbose?r.createElement(r.Fragment,null,t," ",r.createElement("div",{style:{display:"inline-block"}}," ",r.createElement("span",null,n))):t}render(){return r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},this.parseText())}}const Vm=xe()(Hm);function Um(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Wm extends r.Component{constructor(e){super(e),Um(this,"handleRowClick",(e=>{this.props.history.push("/order/"+e)})),Um(this,"handleTypeChange",(e=>{this.setState({loading:!0}),this.props.setAppState({bookType:e.target.value}),this.getOrderDetails(e.target.value,this.props.currency)})),Um(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)})),Um(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))))),Um(this,"bookListTableDesktop",(()=>{const{t:e}=this.props;return r.createElement("div",{style:{height:422,width:"100%"}},r.createElement(zm._$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(Am,{style:{cursor:"pointer"}},r.createElement(Bm,null,r.createElement(lt.Z,{placement:"right",enterTouchDelay:"0",title:e(t.row.robot_status)},r.createElement(Im.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(Fm,{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+" ",Wp(e.row.currency))},{field:"payment_method",headerName:e("Payment Method"),width:180,renderCell:t=>r.createElement("div",{style:{cursor:"pointer"}},r.createElement(Vm,{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)}))})),Um(this,"bookListTablePhone",(()=>{const{t:e}=this.props;return r.createElement("div",{style:{height:422,width:"100%"}},r.createElement(zm._$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(Im.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+" ",Wp(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(Vm,{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"):hm[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:110},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:120},label:e("Select Payment Currency"),required:"true",value:this.props.currency,inputProps:{style:{textAlign:"center"}},onChange:this.handleCurrencyChange}," ",r.createElement(jn.Z,{value:0},r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},Wp("ANY")," "+e("ANY_currency"))),Object.entries(hm).map((([e,t])=>r.createElement(jn.Z,{value:parseInt(e)},r.createElement("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},Wp(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 Ym=xe()(Wm),Gm=["className","id"],qm=(0,Ie.ZP)(st.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Km=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiDialogTitle"}),{className:o,id:a}=n,i=(0,M.Z)(n,Gm),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)(qm,(0,s.Z)({component:"h2",className:(0,Se.Z)(c.root,o),ownerState:l,ref:t,variant:"h6",id:u},i))})),Qm=Km;function Jm(e){return(0,Ze.Z)("MuiDialogContentText",e)}(0,Le.Z)("MuiDialogContentText",["root"]);const Xm=["children"],_m=(0,Ie.ZP)(st.Z,{shouldForwardProp:e=>(0,Ie.FO)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$m=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiDialogContentText"}),r=(0,M.Z)(n,Xm),o=(e=>{const{classes:t}=e,n=(0,Ee.Z)({root:["root"]},Jm,t);return(0,s.Z)({},t,n)})(r);return(0,Ne.jsx)(_m,(0,s.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:r},n,{classes:o}))})),ef=$m;var tf=n(2440),nf=n(8502);function rf(e){return(0,Ze.Z)("MuiListItem",e)}const of=(0,Le.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function af(e){return(0,Ze.Z)("MuiListItemSecondaryAction",e)}(0,Le.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);const sf=["className"],lf=(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}))),cf=r.forwardRef((function(e,t){const n=(0,Be.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=n,a=(0,M.Z)(n,sf),i=r.useContext(km.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,af,n)})(l);return(0,Ne.jsx)(lf,(0,s.Z)({className:(0,Se.Z)(c.root,o),ownerState:l,ref:t},a))}));cf.muiName="ListItemSecondaryAction";const uf=cf,df=["className"],pf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],mf=(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&&{[`& > .${xm.root}`]:{paddingRight:48}},{[`&.${of.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${of.selected}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${of.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${of.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"}},[`&.${of.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}))),ff=(0,Ie.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),hf=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:f}={},dense:h=!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,df),S=(0,M.Z)(n,pf),E=r.useContext(km.Z),P={dense:h||E.dense||!1,alignItems:o,disableGutters:b},A=r.useRef(null);(0,$o.Z)((()=>{a&&A.current&&A.current.focus()}),[a]);const T=r.Children.toArray(l),R=T.length&&(0,nf.Z)(T[T.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,rf,r)})(O),I=(0,Mt.Z)(A,t),Z=d.Root||mf,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)(of.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)(km.Z.Provider,{value:P,children:(0,Ne.jsxs)(ff,(0,s.Z)({as:m,className:(0,Se.Z)(B.container,f),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:T})),T.pop()]}))})):(0,Ne.jsx)(km.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:[T,k&&(0,Ne.jsx)(uf,{children:k})]}))})})),gf=hf,bf=(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 vf(e){return(0,Ze.Z)("MuiAvatar",e)}(0,Le.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const yf=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],wf=(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]}))),kf=(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}),Cf=(0,Ie.ZP)(bf,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"}),xf=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,f=(0,M.Z)(n,yf);let h=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,vf,t)})(y);return h=v?(0,Ne.jsx)(kf,(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)(Cf,{className:w.fallback}),(0,Ne.jsx)(wf,(0,s.Z)({as:l,ownerState:y,className:(0,Se.Z)(w.root,i),ref:t},f,{children:h}))})),Sf=xf;var Ef=n(5097);const Pf=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Af=(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%"}}))),Tf=(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)`}))),Rf=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,f=(0,M.Z)(n,Pf),h=(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,Ef.V,r)})(h);return(0,Ne.jsx)(Af,(0,s.Z)({as:i,className:(0,Se.Z)(g.root,a),role:d,ref:t,ownerState:h},f,{children:o?(0,Ne.jsx)(Tf,{className:g.wrapper,ownerState:h,children:o}):null}))})),Of=Rf,Mf=(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 Bf(e){return(0,Ze.Z)("MuiChip",e)}const If=(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"]),Zf=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],Lf=(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[{[`& .${If.avatar}`]:t.avatar},{[`& .${If.avatar}`]:t[`avatar${(0,Ae.Z)(i)}`]},{[`& .${If.avatar}`]:t[`avatarColor${(0,Ae.Z)(r)}`]},{[`& .${If.icon}`]:t.icon},{[`& .${If.icon}`]:t[`icon${(0,Ae.Z)(i)}`]},{[`& .${If.icon}`]:t[`iconColor${(0,Ae.Z)(r)}`]},{[`& .${If.deleteIcon}`]:t.deleteIcon},{[`& .${If.deleteIcon}`]:t[`deleteIcon${(0,Ae.Z)(i)}`]},{[`& .${If.deleteIcon}`]:t[`deleteIconColor${(0,Ae.Z)(r)}`]},{[`& .${If.deleteIcon}`]:t[`deleteIconOutlinedColor${(0,Ae.Z)(r)}`]},t.root,t[`size${(0,Ae.Z)(i)}`],t[`color${(0,Ae.Z)(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${(0,Ae.Z)(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${(0,Ae.Z)(r)}`],t[s],"outlined"===s&&t[`outlined${(0,Ae.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",[`&.${If.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${If.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)},[`& .${If.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${If.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${If.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${If.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"}),[`& .${If.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&&{[`&.${If.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${If.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)},[`&.${If.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, &.${If.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]}`,[`&.${If.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${If.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${If.avatar}`]:{marginLeft:4},[`& .${If.avatarSmall}`]:{marginLeft:2},[`& .${If.icon}`]:{marginLeft:4},[`& .${If.iconSmall}`]:{marginLeft:2},[`& .${If.deleteIcon}`]:{marginRight:5},[`& .${If.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)}`,[`&.${If.clickable}:hover`]:{backgroundColor:(0,mt.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${If.focusVisible}`]:{backgroundColor:(0,mt.Fq)(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${If.deleteIcon}`]:{color:(0,mt.Fq)(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),Df=(0,Ie.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${(0,Ae.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 jf(e){return"Backspace"===e.key||"Delete"===e.key}const Ff=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:f,onDelete:h,onKeyDown:g,onKeyUp:b,size:v="medium",variant:y="filled"}=n,w=(0,M.Z)(n,Zf),k=r.useRef(null),C=(0,Mt.Z)(k,t),x=e=>{e.stopPropagation(),h&&h(e)},S=!(!1===i||!f)||i,E="small"===v,P=S||h?go.Z:c||"div",A=(0,s.Z)({},n,{component:P,disabled:d,size:v,color:l,onDelete:!!h,clickable:S,variant:y}),T=(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,Ae.Z)(r)}`,`color${(0,Ae.Z)(o)}`,i&&"clickable",i&&`clickableColor${(0,Ae.Z)(o)}`,a&&"deletable",a&&`deletableColor${(0,Ae.Z)(o)}`,`${s}${(0,Ae.Z)(o)}`],label:["label",`label${(0,Ae.Z)(r)}`],avatar:["avatar",`avatar${(0,Ae.Z)(r)}`,`avatarColor${(0,Ae.Z)(o)}`],icon:["icon",`icon${(0,Ae.Z)(r)}`,`iconColor${(0,Ae.Z)(o)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,Ae.Z)(r)}`,`deleteIconColor${(0,Ae.Z)(o)}`,`deleteIconOutlinedColor${(0,Ae.Z)(o)}`]};return(0,Ee.Z)(l,Bf,t)})(A),R=P===go.Z?(0,s.Z)({component:c||"div",focusVisibleClassName:T.focusVisible},h&&{disableRipple:!0}):{};let O=null;if(h){const e=(0,Se.Z)("default"!==l&&("outlined"===y?T[`deleteIconOutlinedColor${(0,Ae.Z)(l)}`]:T[`deleteIconColor${(0,Ae.Z)(l)}`]),E&&T.deleteIconSmall);O=u&&r.isValidElement(u)?r.cloneElement(u,{className:(0,Se.Z)(u.props.className,T.deleteIcon,e),onClick:x}):(0,Ne.jsx)(Mf,{className:(0,Se.Z)(T.deleteIcon,e),onClick:x})}let B=null;o&&r.isValidElement(o)&&(B=r.cloneElement(o,{className:(0,Se.Z)(T.avatar,o.props.className)}));let I=null;return p&&r.isValidElement(p)&&(I=r.cloneElement(p,{className:(0,Se.Z)(T.icon,p.props.className)})),(0,Ne.jsxs)(Lf,(0,s.Z)({as:P,className:(0,Se.Z)(T.root,a),disabled:!(!S||!d)||void 0,onClick:f,onKeyDown:e=>{e.currentTarget===e.target&&jf(e)&&e.preventDefault(),g&&g(e)},onKeyUp:e=>{e.currentTarget===e.target&&(h&&jf(e)?h(e):"Escape"===e.key&&k.current&&k.current.blur()),b&&b(e)},ref:C,ownerState:A},R,w,{children:[B||I,(0,Ne.jsx)(Df,{className:(0,Se.Z)(T.label),ownerState:A,children:m}),O]}))})),zf=Ff;var Nf=n(8885);function Hf(e){return(0,Ze.Z)("MuiAlert",e)}const Vf=(0,Le.Z)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Uf=(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"),Wf=(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"),Yf=(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"),Gf=(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"),qf=(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 Kf;const Qf=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],Jf=(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,Ae.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),[`& .${Vf.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}`,[`& .${Vf.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})})),Xf=(0,Ie.ZP)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),_f=(0,Ie.ZP)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),$f=(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}),eh={success:(0,Ne.jsx)(Uf,{fontSize:"inherit"}),warning:(0,Ne.jsx)(Wf,{fontSize:"inherit"}),error:(0,Ne.jsx)(Yf,{fontSize:"inherit"}),info:(0,Ne.jsx)(Gf,{fontSize:"inherit"})},th=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=eh,onClose:d,role:p="alert",severity:m="success",variant:f="standard"}=n,h=(0,M.Z)(n,Qf),g=(0,s.Z)({},n,{color:l,severity:m,variant:f}),b=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,a={root:["root",`${t}${(0,Ae.Z)(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,Ee.Z)(a,Hf,o)})(g);return(0,Ne.jsxs)(Jf,(0,s.Z)({role:p,elevation:0,ownerState:g,className:(0,Se.Z)(b.root,a),ref:t},h,{children:[!1!==c?(0,Ne.jsx)(Xf,{ownerState:g,className:b.icon,children:c||u[m]||eh[m]}):null,(0,Ne.jsx)(_f,{ownerState:g,className:b.message,children:o}),null!=r?(0,Ne.jsx)($f,{className:b.action,children:r}):null,null==r&&d?(0,Ne.jsx)($f,{ownerState:g,className:b.action,children:(0,Ne.jsx)(dt.Z,{size:"small","aria-label":i,title:i,color:"inherit",onClick:d,children:Kf||(Kf=(0,Ne.jsx)(qf,{fontSize:"small"}))})}):null]}))})),nh=th;function rh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oh(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:(dh(Array(t)).map((function(){return"0"})).join("")+i).slice(-1*t);return"".concat(o).concat(s).concat(a)}var fh={daysInHours:!1,zeroPadTime:2};function hh(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))),f=Math.abs(m)/1e3;return{total:m,days:Math.floor(f/86400),hours:Math.floor(f/3600%24),minutes:Math.floor(f/60%60),seconds:Math.floor(f%60),milliseconds:Number((f%1*1e3).toFixed()),completed:m<=0}}function gh(e,t){var n=e.days,r=e.hours,o=e.minutes,a=e.seconds,i=Object.assign(Object.assign({},fh),t),s=i.daysInHours,l=i.zeroPadTime,c=i.zeroPadDays,u=void 0===c?l:c,d=Math.min(2,l),p=s?mh(r+24*n,l):mh(r,d);return{days:s?"":mh(n,u),hours:p,minutes:mh(o,d),seconds:mh(a,d)}}var bh=function(e){ih(n,e);var t=uh(n);function n(){var e;return rh(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 ah(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);bh.propTypes={count:x.number,children:x.element,onComplete:x.func};var vh=function(e){ih(n,e);var t=uh(n);function n(e){var o;if(rh(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 ah(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 hh(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:gh(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)(bh,{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,f=d.minutes,h=d.seconds;return(0,r.createElement)("span",{className:i},u.total<0?"-":"",p,p?":":"",m,":",f,":",h)}}]),n}(r.Component);vh.defaultProps=Object.assign(Object.assign({},fh),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),vh.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 yh=vh;var wh=n(1002),kh=n(1739),Ch=n.n(kh),xh=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Sh(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(Ch()[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(xh),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 Eh=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Ph=/^\s*$/,Ah=Object.create(null);function Th(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(Th,"")+"";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var Rh={parse:function(e,t){t||(t={}),t.components||(t.components=Ah);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(Eh,(function(s,l){if(i){if(s!=="")return;i=!1}var c,u="/"!==s.charAt(1),d=s.startsWith("\x3c!--"),p=l+s.length,m=e.charAt(p);if(d){var f=Sh(s);return a<0?(r.push(f),r):((c=o[a]).children.push(f),r)}if(u&&(a++,"tag"===(n=Sh(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 h=e.indexOf("<",p),g=e.slice(p,-1===h?void 0:h);Ph.test(g)&&(g=" "),(h>-1&&a+c.length>=0||" "!==g)&&c.push({type:"text",content:g})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+Th("",t)}),"")}};const Oh=Rh;var Mh="".replace,Bh=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,Ih={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'};function Zh(e){return Ih[e]}var Lh=["format"],Dh=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function jh(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 Fh(e){for(var t=1;t0:!!n}function Nh(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function Hh(e){return Array.isArray(e)?e:[e]}function Vh(e,t){if(!e)return"";var n="",o=Hh(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,">");else if(s&&1===i&&"string"==typeof l)n+="<".concat(e.type,">").concat(l,"");else{var c=Vh(l,t);n+="<".concat(o,">").concat(c,"")}else n+="<".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,wh.Z)(e)){var u=e.format,d=(0,$.Z)(e,Lh),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 Uh(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,f=e.t,h=e.shouldUnescape,g=(0,$.Z)(e,Dh),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=f||w.t.bind(w)||function(e){return e};i&&(l.context=i);var C=Fh(Fh({},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||Vh(t,C)||C.transEmptyNodeValue||a,E=C.hashTransKey,P=a||(E?E(S):S),A=c?l.interpolation:{interpolation:Fh(Fh({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},T=Fh(Fh(Fh(Fh({},l),{},{count:n},c),A),{},{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){Hh(t).forEach((function(t){"string"!=typeof t&&(zh(t)?e(Nh(t)):"object"!==(0,wh.Z)(t)||r.isValidElement(t)||Object.assign(c,t))}))}(e);var u=Oh.parse("<0>".concat(t,"")),d=Fh(Fh({},c),a);function p(e,t,n){var o=Nh(e),a=f(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,Fh(Fh({},e.props),{},{key:o}),a?void 0:t))}function f(t,a,c){var u=Hh(t);return Hh(a).reduce((function(t,a,h){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=Fh({},v=k)).props=Object.assign(b.props,v.props),y):k,x=r.isValidElement(C),S=x&&zh(a,!0)&&!a.voidElement,E=l&&"object"===(0,wh.Z)(C)&&C.dummy&&!x,P="object"===(0,wh.Z)(e)&&null!==e&&Object.hasOwnProperty.call(e,a.name);if("string"==typeof C){var A=n.services.interpolator.interpolate(C,d,n.language);t.push(A)}else if(zh(C)||S)m(C,p(C,a,c),t,h);else if(E){var T=f(u,a.children,c);t.push(r.cloneElement(C,Fh(Fh({},C.props),{},{key:h}),T))}else if(Number.isNaN(parseFloat(a.name)))if(P)m(C,p(C,a,c),t,h,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(h)}));else{var R=f(u,a.children,c);t.push(r.createElement(a.name,{key:"".concat(a.name,"-").concat(h)},R))}else if(a.voidElement)t.push("<".concat(a.name," />"));else{var O=f(u,a.children,c);t.push("<".concat(a.name,">").concat(O,""))}else if("object"!==(0,wh.Z)(C)||x)1===a.children.length&&w?t.push(r.cloneElement(C,Fh(Fh({},C.props),{},{key:h}),w)):t.push(r.cloneElement(C,Fh(Fh({},C.props),{},{key:h})));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),Mh.call(g,Bh,Zh)):n.services.interpolator.interpolate(a.content,d,n.language);B?t.push(r.createElement(B,{key:"".concat(a.name,"-").concat(h)},I)):t.push(I)}return t}),[])}return Nh(f([{dummy:!0,children:e||[]}],u,Hh(e||[]))[0])}(d||t,P?k(P,T):S,w,C,T,h),O=void 0!==o?o:C.defaultTransParent;return O?r.createElement(O,g,R):R}const Wh=(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"),Yh=(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 Gh(e){return(0,Ze.Z)("MuiRating",e)}const qh=(0,Le.Z)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]),Kh=["value"],Qh=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function Jh(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 Xh=(0,Ie.ZP)("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qh.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${(0,Ae.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",[`&.${qh.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`&.${qh.focusVisible} .${qh.iconActive}`]:{outline:"1px solid #999"},[`& .${qh.visuallyHidden}`]:Kn},"small"===t.size&&{fontSize:e.typography.pxToRem(18)},"large"===t.size&&{fontSize:e.typography.pxToRem(30)},t.readOnly&&{pointerEvents:"none"}))),_h=(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%"}))),$h=(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}))),eg=(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 tg(e){const t=(0,M.Z)(e,Kh);return(0,Ne.jsx)("span",(0,s.Z)({},t))}function ng(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:f,name:h,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,A=m===x,T=(0,hn.Z)(),R=(0,Ne.jsx)($h,{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)({},f,{children:R})):(0,Ne.jsxs)(r.Fragment,{children:[(0,Ne.jsxs)(_h,(0,s.Z)({ownerState:(0,s.Z)({},k,{emptyValueFocused:void 0}),htmlFor:T},f,{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:T,type:"radio",name:h,checked:A})]})}const rg=(0,Ne.jsx)(Wh,{fontSize:"inherit"}),og=(0,Ne.jsx)(Yh,{fontSize:"inherit"});function ag(e){return`${e} Star${1!==e?"s":""}`}const ig=r.forwardRef((function(e,t){const n=(0,Be.Z)({name:"MuiRating",props:e}),{className:o,defaultValue:a=null,disabled:i=!1,emptyIcon:l=og,emptyLabelText:c="Empty",getLabelText:u=ag,highlightSelectedOnly:d=!1,icon:p=rg,IconContainerComponent:m=tg,max:f=5,name:h,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,Qh),E=(0,hn.Z)(h),[P,A]=(0,mn.Z)({controlled:x,default:a,name:"Rating"}),T=Jh(P,w),R=(0,ur.Z)(),[{hover:O,focus:B},I]=r.useState({hover:-1,focus:-1});let Z=T;-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),U=(0,Mt.Z)(V,t),W=e=>{let t=""===e.target.value?null:parseFloat(e.target.value);-1!==O&&(t=O),A(t),g&&g(e,t)},Y=e=>{0===e.clientX&&0===e.clientY||(I({hover:-1,focus:-1}),A(null),g&&parseFloat(e.target.value)===T&&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,Q]=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:f,precision:w,readOnly:k,size:C}),X=(e=>{const{classes:t,size:n,readOnly:r,disabled:o,emptyValueFocused:a,focusVisible:i}=e,s={root:["root",`size${(0,Ae.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,Gh,t)})(J);return(0,Ne.jsxs)(Xh,(0,s.Z)({ref:U,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*f):(e.clientX-r)/(o*f);let i=Jh(f*a+w/2,w);i=function(e,t,n){return en?n:e}(i,w,f),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)(X.root,o),ownerState:J,role:k?"img":null,"aria-label":k?u(Z):null},S,{children:[Array.from(new Array(f)).map(((e,t)=>{const n=t+1,r={classes:X,disabled:i,emptyIcon:l,focus:B,getLabelText:u,highlightSelectedOnly:d,hover:O,icon:p,IconContainerComponent:m,name:E,onBlur:q,onChange:W,onClick:Y,onFocus:G,ratingValue:Z,ratingValueRounded:T,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)(eg,{className:(0,Se.Z)(X.decimal,o&&X.iconActive),ownerState:J,iconActive:o,children:e.map(((t,o)=>{const a=Jh(n-1+(o+1)*w,w);return(0,Ne.jsx)(ng,(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)(ng,(0,s.Z)({},r,{isActive:o,itemValue:n}),n)})),!k&&!i&&(0,Ne.jsxs)(_h,{className:(0,Se.Z)(X.label,X.labelEmptyValue),ownerState:J,children:[(0,Ne.jsx)("input",{className:X.visuallyHidden,value:"",id:`${E}-empty`,type:"radio",name:E,checked:null==T,onFocus:()=>Q(!0),onBlur:()=>Q(!1),onChange:W}),(0,Ne.jsx)("span",{className:X.visuallyHidden,children:c})]})]}))})),sg=ig;var lg=n(1653);function cg(e){return(0,Ze.Z)("MuiContainer",e)}(0,Le.Z)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const ug=["className","component","disableGutters","fixed","maxWidth"],dg=(0,Ie.ZP)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${(0,Ae.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}`}}))),pg=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,ug),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,Ae.Z)(String(o))}`,n&&"fixed",r&&"disableGutters"]};return(0,Ee.Z)(a,cg,t)})(u);return(0,Ne.jsx)(dg,(0,s.Z)({as:o,ownerState:u,className:(0,Se.Z)(d.root,r),ref:t},c))})),mg=pg;function fg(e){return(0,Ze.Z)("MuiCard",e)}(0,Le.Z)("MuiCard",["root"]);const hg=["className","raised"],gg=(0,Ie.ZP)(Me.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),bg=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,hg),i=(0,s.Z)({},n,{raised:o}),l=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"]},fg,t)})(i);return(0,Ne.jsx)(gg,(0,s.Z)({className:(0,Se.Z)(l.root,r),elevation:o?8:void 0,ref:t,ownerState:i},a))})),vg=bg;function yg(e){return(0,Ze.Z)("MuiCardHeader",e)}const wg=(0,Le.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]),kg=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],Cg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,s.Z)({[`& .${wg.title}`]:t.title,[`& .${wg.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),xg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Sg=(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}),Eg=(0,Ie.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Pg=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,kg),f=(0,s.Z)({},n,{component:i,disableTypography:l}),h=(e=>{const{classes:t}=e;return(0,Ee.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},yg,t)})(f);let g=d;null==g||g.type===st.Z||l||(g=(0,Ne.jsx)(st.Z,(0,s.Z)({variant:o?"body2":"h5",className:h.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:h.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:b}))),(0,Ne.jsxs)(Cg,(0,s.Z)({className:(0,Se.Z)(h.root,a),as:i,ref:t,ownerState:f},m,{children:[o&&(0,Ne.jsx)(xg,{className:h.avatar,ownerState:f,children:o}),(0,Ne.jsxs)(Eg,{className:h.content,ownerState:f,children:[g,b]}),r&&(0,Ne.jsx)(Sg,{className:h.action,ownerState:f,children:r})]}))})),Ag=Pg;var Tg=function(e,t){return Tg=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])},Tg(e,t)};function Rg(e,t){function n(){this.constructor=e}Tg(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Og(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 Mg(){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?Dg.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?Dg.minReconnectionDelay:r,a=e.maxReconnectionDelay,i=void 0===a?Dg.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?Dg.maxRetries:n,o=t.connectionTimeout,a=void 0===o?Dg.connectionTimeout:o,i=t.WebSocket,s=void 0===i?Lg():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 Ig(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 Zg(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 Fg=jg;function zg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ng extends r.Component{constructor(e){super(e),zg(this,"state",{messages:[],value:"",connected:!1,peer_connected:!1}),zg(this,"rws",new Fg("ws://"+window.location.host+"/ws/chat/"+this.props.orderId+"/")),zg(this,"scrollToBottom",(()=>{this.messagesEnd.scrollIntoView({behavior:"smooth"})})),zg(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(mg,{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(vg,{elevation:5,align:"left"},e.userNick==this.props.ur_nick?r.createElement(Ag,{sx:{color:"#111111"},avatar:r.createElement(Im.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.state.connected?"success":"error"},r.createElement(Sf,{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(Ag,{sx:{color:"#111111"},avatar:r.createElement(Im.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.state.peer_connected?"success":"error"},r.createElement(Sf,{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,{sx:{width:68},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:e("PGP_guide_url")}," ",e("Learn easy PGP encryption."))))}}const Hg=xe()(Ng);var Vg=n(7164),Ug=n.n(Vg),Wg=n(9972),Yg=n(9613),Gg=n(8394),qg=n(6307),Kg=n(7412),Qg=n(2704);function Jg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xg(e){var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}class _g extends r.Component{constructor(e){super(e),Jg(this,"invoice_escrow_duration",3),Jg(this,"Sound",(({soundFileName:e})=>r.createElement("audio",{autoPlay:!0,src:`/static/assets/sounds/${e}.mp3`}))),Jg(this,"togglePlay",(()=>{this.setState({playSound:!this.state.playSound},(()=>{this.state.playSound?this.audio.play():this.audio.pause()}))})),Jg(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+")":""})),Jg(this,"handleClickOpenConfirmDispute",(()=>{this.setState({openConfirmDispute:!0})})),Jg(this,"handleClickCloseConfirmDispute",(()=>{this.setState({openConfirmDispute:!1})})),Jg(this,"handleClickAgreeDisputeButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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()})),Jg(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(Qm,{id:"open-dispute-dialog-title"},e("Do you want to open a dispute?")),r.createElement(Tt,null,r.createElement(ef,{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(Ut,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmDispute,autoFocus:!0},e("Disagree")),r.createElement(pt.Z,{onClick:this.handleClickAgreeDisputeButton},e("Agree and open dispute"))))})),Jg(this,"handleClickOpenConfirmFiatReceived",(()=>{this.setState({openConfirmFiatReceived:!0})})),Jg(this,"handleClickCloseConfirmFiatReceived",(()=>{this.setState({openConfirmFiatReceived:!1})})),Jg(this,"handleClickTotallyConfirmFiatReceived",(()=>{this.handleClickConfirmButton(),this.handleClickCloseConfirmFiatReceived()})),Jg(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(Qm,{id:"open-dispute-dialog-title"},e("Confirm you received {{currencyCode}}?",{currencyCode:this.props.data.currencyCode})),r.createElement(Tt,null,r.createElement(ef,{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(Ut,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmFiatReceived,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickTotallyConfirmFiatReceived},e("Confirm"))))})),Jg(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(lg.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"})))})),Jg(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(mm.Z,null),this.props.data.is_maker?e("Your maker bond is locked"):e("Your taker bond is locked"))))})),Jg(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(Qg.Z,null),this.props.data.is_maker?e("Your maker bond was settled"):e("Your taker bond was settled"))))})),Jg(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(Kg.Z,null),this.props.data.is_maker?e("Your maker bond was unlocked"):e("Your taker bond was unlocked"))))})),Jg(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(lg.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),e("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())})),Jg(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(Of,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())})),Jg(this,"handleClickOpenTelegramDialog",(()=>{this.setState({openEnableTelegram:!0})})),Jg(this,"handleClickCloseEnableTelegramDialog",(()=>{this.setState({openEnableTelegram:!1})})),Jg(this,"handleClickEnableTelegram",(()=>{window.open("https://t.me/"+this.props.data.tg_bot_name+"?start="+this.props.data.tg_token,"_blank").focus(),this.handleClickCloseEnableTelegramDialog()})),Jg(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(Qm,{id:"open-dispute-dialog-title"},e("Enable TG Notifications")),r.createElement(Tt,null,r.createElement(ef,{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(Ut,null,r.createElement(pt.Z,{onClick:this.handleClickCloseEnableTelegramDialog}," ",e("Go back")," "),r.createElement(pt.Z,{onClick:this.handleClickEnableTelegram,autoFocus:!0}," ",e("Enable")," ")))})),Jg(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(tf.Z,{dense:"true"},r.createElement(Of,null),r.createElement(gf,null,r.createElement(st.Z,{component:"body2",variant:"body2",align:"left"},r.createElement("p",null,e("Be patient while robots check the book. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.",{invoice_escrow_duration:Xg(this.invoice_escrow_duration)})," "),r.createElement("p",null,e("If the order expires 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(qg.Z,null),e("Enable Telegram Notifications"))),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Yg.Z,null)),r.createElement(Fm,{primary:this.props.data.num_similar_orders,secondary:e("Public orders for {{currencyCode}}",{currencyCode:this.props.data.currencyCode})})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Wg.Z,null)),r.createElement(Fm,{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(Of,null))),this.showBondIsLocked())})),Jg(this,"handleInputInvoiceChanged",(e=>{this.setState({invoice:e.target.value,badInvoice:!1})})),Jg(this,"handleClickSubmitInvoiceButton",(()=>{this.setState({badInvoice:!1});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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)))})),Jg(this,"handleInputDisputeChanged",(e=>{this.setState({statement:e.target.value,badStatement:!1})})),Jg(this,"handleClickSubmitStatementButton",(()=>{this.setState({badInvoice:!1});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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)))})),Jg(this,"handleScan",(e=>{e&&this.setState({invoice:e})})),Jg(this,"handleError",(e=>{console.error(e)})),Jg(this,"handleQRbutton",(()=>{this.setState({qrscanner:!this.state.qrscanner})})),Jg(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())})),Jg(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())})),Jg(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())})),Jg(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())})),Jg(this,"handleClickConfirmButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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)))})),Jg(this,"handleRatingUserChange",(e=>{const t={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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)))})),Jg(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":tn("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)))})),Jg(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(Hg,{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())})),Jg(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,mh(e),"m ",mh(t),"s ")})),Jg(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(tf.Z,null,r.createElement(Of,null),r.createElement(Fm,{secondary:e("Next attempt in")},r.createElement(yh,{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(Ug(),{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(Gg.Z,{onClick:this.handleQRbutton})),r.createElement(pt.Z,{onClick:this.handleClickSubmitInvoiceButton,variant:"contained",color:"primary"},e("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(Uh,{i18nKey:"rate_robosats"},"What do you think of 🤖",r.createElement("b",null,"RoboSats"),"⚡?"))),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(sg,{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(Uh,{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 $g=xe()(_g);var eb=n(244),tb=n(842),nb=n(6543),rb=n(7116),ob=n(1523);function ab(e){return ab="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},ab(e)}function ib(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sb(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]:{};ib(this,e),this.init(t,n)}return lb(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||vb,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 Pb(e,t,n){var r=Eb(e,t,Object);r.obj[r.k]=n}function Ab(e,t){var n=Eb(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Tb(e,t,n){var r=Ab(e,n);return void 0!==r?r:Ab(t,n)}function Rb(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]):Rb(e[r],t[r],n):e[r]=t[r]);return e}function Ob(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Mb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Bb(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Mb[e]})):e}var Ib="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Zb=[" ",",","?","!",";"];function Lb(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 Db(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?jb(l,c,n):void 0}o=o[r[a]]}return o}}var Fb=function(e){db(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=mb(t);if(n){var o=mb(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return pb(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ib(this,o),t=r.call(this),Ib&&kb.call(cb(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 lb(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=Ab(this.data,i);return s||!a||"string"!=typeof n?s:jb(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),Pb(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=Ab(this.data,i)||{};r?Rb(s,n,o):s=Db(Db({},s),n),Pb(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?Db(Db({},{}),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}(kb),zb={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 Nb(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 Hb(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return ib(this,o),t=r.call(this),Ib&&kb.call(cb(t)),Sb(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,cb(t)),t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=wb.create("translator"),t}return lb(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=Zb.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"!==ab(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),f=m&&m.res,h=m&&m.usedKey||s,g=m&&m.exactUsedKey||s,b=Object.prototype.toString.apply(f),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 f&&"boolean"!=typeof f&&"number"!=typeof f;if(w&&f&&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(h,f,Hb(Hb({},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:h;for(var E in f)if(Object.prototype.hasOwnProperty.call(f,E)){var P="".concat(S).concat(a).concat(E);x[E]=this.translate(P,Hb(Hb({},t),{joinArrays:!1,ns:l})),x[E]===P&&(x[E]=f[E])}f=x}}else if(w&&"string"==typeof y&&"[object Array]"===b)(f=f.join(y))&&(f=this.extendTranslation(f,e,t,n));else{var A=!1,T=!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(f)&&O&&(A=!0,f=B),this.isValidLookup(f)||(T=!0,f=s);var I=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Z=I&&T?void 0:f,L=O&&B!==f&&this.options.updateMissing;if(T||A||L){if(this.logger.log(L?"updateKey":"missingKey",u,c,s,L?B:f),a){var D=this.resolve(s,Hb(Hb({},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,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(e){i.isValidLookup(t)||(a=e,!Vb["".concat(f[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(a)&&(Vb["".concat(f[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(f.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!!!")),f.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 f="_zero";if(d&&(l.push(c+u),p&&l.push(c+f)),m){var h="".concat(c).concat(i.options.contextSeparator).concat(s.context);l.push(h),d&&(l.push(h+u),p&&l.push(h+f))}}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}(kb);function Wb(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Yb=function(){function e(t){ib(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=wb.create("languageUtils")}return lb(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]=Wb(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]=Wb(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Wb(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}(),Gb=[{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}],qb={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)}},Kb=["v1","v2","v3"],Qb={zero:0,one:1,two:2,few:3,many:4,other:5};function Jb(){var e={};return Gb.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:qb[t.fc]}}))})),e}var Xb=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ib(this,e),this.languageUtils=t,this.options=n,this.logger=wb.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=Jb()}return lb(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!Kb.includes(this.options.compatibilityJSON)}}]),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 $b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ib(this,e),this.logger=wb.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return lb(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:Bb,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Ob(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Ob(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?Ob(t.nestingPrefix):t.nestingPrefixEscaped||Ob("$t("),this.nestingSuffix=t.nestingSuffix?Ob(t.nestingSuffix):t.nestingSuffixEscaped||Ob(")"),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=Tb(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,$b($b($b({},r),t),{},{interpolationkey:e})):o}var a=e.split(s.formatSeparator),i=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(Tb(t,l,i),c,n,$b($b($b({},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=xb(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=$b({},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=$b($b({},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=xb(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,$b($b({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function tv(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 nv(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};ib(this,e),this.logger=wb.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,nv(nv({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,nv({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,nv({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,nv({},n)).format(e)}},this.init(t)}return lb(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 hb(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)?hb(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,nv(nv(nv({},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 ov(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 av(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return ib(this,o),a=r.call(this),Ib&&kb.call(cb(a)),a.backend=e,a.store=t,a.services=n,a.languageUtils=n.languageUtils,a.options=i,a.logger=wb.create("backendConnector"),a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,i.backend,i),a}return lb(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=Eb(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,av(av({},a),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),o}(kb);function sv(){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"===ab(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===ab(e[2])||"object"===ab(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 lv(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 cv(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 uv(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(ib(this,o),e=r.call(this),Ib&&kb.call(cb(e)),e.options=lv(t),e.services={},e.logger=wb,e.modules={external:[]},pv(cb(e)),n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),pb(e,cb(e));setTimeout((function(){e.init(t,n)}),0)}return e}return lb(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=sv();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=uv(uv(uv({},r),this.options),lv(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=uv(uv({},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?wb.init(o(this.modules.logger),this.options):wb.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=rv);var i=new Yb(this.options);this.store=new Fb(this.options.resources,this.options);var s=this.services;s.logger=wb,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 ev(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new iv(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=Cb(),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]:dv,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=Cb();return e||(e=this.languages),t||(t=this.options.ns),n||(n=dv),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&&zb.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=Cb();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"!==ab(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=Cb();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=Cb();"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]:dv,r=uv(uv(uv({},this.options),t),{isClone:!0}),a=new o(r),i=["store","services","language"];return i.forEach((function(t){a[t]=e[t]})),a.services=uv({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new Ub(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 mv(e,t)}));var fv=mv.createInstance();fv.createInstance=mv.createInstance,fv.createInstance,fv.init,fv.loadResources,fv.reloadResources,fv.use,fv.changeLanguage,fv.getFixedT;var hv=fv.t;fv.exists,fv.setDefaultNamespace,fv.hasLoadedNamespace,fv.loadNamespaces,fv.loadLanguages;const gv=fv;function bv(){return bv=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)})),vv(this,"tick",(()=>{this.getOrderDetails()})),vv(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 ",mh(n),"m ",mh(o),"s ")):r.createElement("span",{style:{color:s}},t,"h ",mh(n),"m ",mh(o),"s ")})),vv(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:mh(e),timeSec:mh(t)})," ")})),vv(this,"handleTakeAmountChange",(e=>{""!=e.target.value&null!=e.target.value?this.setState({takeAmount:parseFloat(e.target.value)}):this.setState({takeAmount:e.target.value})})),vv(this,"amountHelperText",(()=>{const{t:e}=this.props;return this.state.takeAmountthis.state.max_amount&""!=this.state.takeAmount?e("Too high"):null})),vv(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")))})),vv(this,"countdownTakeOrderRenderer",(({seconds:e,completed:t})=>isNaN(e)||t?r.createElement(this.takeOrderButton,null):r.createElement(lt.Z,{enterTouchDelay:"0",title:hv("Wait until you can take an order")},r.createElement("div",null,r.createElement(pt.Z,{disabled:!0,variant:"contained",color:"primary"},hv("Take Order")))))),vv(this,"LinearDeterminate",(()=>{const[e,t]=r.useState(0);return r.useEffect((()=>{const e=setInterval((()=>{t((e=>hh(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(Ur,{variant:"determinate",value:e}))})),vv(this,"takeOrder",(()=>{this.setState({loading:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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)))})),vv(this,"setDelay",(e=>e>=0?this.statusToDelay[e.toString()]:99999999)),vv(this,"handleClickConfirmCancelButton",(()=>{this.setState({loading:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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()})),vv(this,"handleClickOpenConfirmCancelDialog",(()=>{this.setState({openCancel:!0})})),vv(this,"handleClickCloseConfirmCancelDialog",(()=>{this.setState({openCancel:!1})})),vv(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(Qm,{id:"cancel-dialog-title"},e("Cancel the order?")),r.createElement(Tt,null,r.createElement(ef,{id:"cancel-dialog-description"},e("If the order is cancelled now you will lose your bond."))),r.createElement(Ut,null,r.createElement(pt.Z,{onClick:this.handleClickCloseConfirmCancelDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickConfirmCancelButton},e("Confirm Cancel"))))})),vv(this,"handleClickOpenInactiveMakerDialog",(()=>{this.setState({openInactiveMaker:!0})})),vv(this,"handleClickCloseInactiveMakerDialog",(()=>{this.setState({openInactiveMaker:!1})})),vv(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(Qm,{id:"inactive-maker-dialog-title"},e("The maker is away")),r.createElement(Tt,null,r.createElement(ef,{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(Ut,null,r.createElement(pt.Z,{onClick:this.handleClickCloseInactiveMakerDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.takeOrder},e("Take Order"))))})),vv(this,"handleClickConfirmCollaborativeCancelButton",(()=>{const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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()})),vv(this,"handleClickOpenCollaborativeCancelDialog",(()=>{this.setState({openCollaborativeCancel:!0})})),vv(this,"handleClickCloseCollaborativeCancelDialog",(()=>{this.setState({openCollaborativeCancel:!1})})),vv(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(Qm,{id:"cancel-dialog-title"},e("Collaborative cancel the order?")),r.createElement(Tt,null,r.createElement(ef,{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(Ut,null,r.createElement(pt.Z,{onClick:this.handleClickCloseCollaborativeCancelDialog,autoFocus:!0},e("Go back")),r.createElement(pt.Z,{onClick:this.handleClickConfirmCollaborativeCancelButton},e("Ask for Cancel"))))})),vv(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})),vv(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})),vv(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(tf.Z,{dense:"true"},r.createElement(gf,null,r.createElement(Bm,{sx:{width:56,height:56}},r.createElement(lt.Z,{placement:"top",enterTouchDelay:"0",title:e(this.state.maker_status)},r.createElement(Im.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(this.state.maker_status)},r.createElement(Sf,{className:"flippedSmallAvatar",alt:this.state.maker_nick,src:window.location.origin+"/static/assets/avatars/"+this.state.maker_nick+".png"})))),r.createElement(Fm,{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(Of,null),r.createElement(gf,{align:"left"},r.createElement(Fm,{primary:this.state.taker_nick+(this.state.type?" "+e("(Buyer)"):" "+e("(Seller)")),secondary:e("Order taker")}),r.createElement(Bm,null,r.createElement(lt.Z,{enterTouchDelay:"0",title:e(this.state.taker_status)},r.createElement(Im.Z,{variant:"dot",overlap:"circular",badgeContent:"",color:this.statusBadgeColor(this.state.taker_status)},r.createElement(Sf,{className:"smallAvatar",alt:this.state.taker_nick,src:window.location.origin+"/static/assets/avatars/"+this.state.taker_nick+".png"})))))):"",r.createElement(Of,null,r.createElement(zf,{label:e("Order Details")})),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(ob.Z,null)),r.createElement(Fm,{primary:e(this.state.status_message),secondary:e("Order status")})),r.createElement(Of,null)):r.createElement(Of,null,r.createElement(zf,{label:e("Order Details")})),r.createElement(gf,null,r.createElement(Nf.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"}},Wp(this.state.currencyCode))),this.state.has_range&null==this.state.amount?r.createElement(Fm,{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(Fm,{primary:parseFloat(parseFloat(this.state.amount).toFixed(4))+" "+this.state.currencyCode,secondary:e("Amount")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(rb.Z,null)),r.createElement(Fm,{primary:r.createElement(Vm,{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(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(nb.Z,null)),this.state.price_now?r.createElement(Fm,{primary:e("{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%",{price:yv(this.state.price_now),currencyCode:this.state.currencyCode,premium:this.state.premium_now}),secondary:e("Price and Premium")}):this.state.is_explicit?r.createElement(Fm,{primary:yv(this.state.satoshis),secondary:e("Amount of Satoshis")}):r.createElement(Fm,{primary:parseFloat(parseFloat(this.state.premium).toFixed(2))+"%",secondary:e("Premium over market price")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(tb.Z,null)),r.createElement(Fm,{primary:this.orderId,secondary:e("Order ID")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(eb.Z,null)),r.createElement(Fm,{secondary:e("Expires in")},r.createElement(yh,{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(Of,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(nh,{severity:"warning",sx:{maxWidth:360}},r.createElement(yh,{date:new Date(this.state.penalty),renderer:this.countdownPenaltyRenderer})))):null,this.state.pending_cancel?r.createElement(r.Fragment,null,r.createElement(Of,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(nh,{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(Of,null),r.createElement(it,{item:!0,xs:12,align:"center"},r.createElement(nh,{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(yh,{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"))))))})),vv(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($g,{push:this.props.history.push,width:330,data:this.state,completeSetState:this.completeSetState}))))),vv(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,bv({label:e("Order")},this.a11yProps(0))),r.createElement(Go,bv({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($g,{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?hm[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 kv=xe()(wv);var Cv=n(2852),xv=n(4229),Sv=n(8571),Ev=n(2133),Pv=n(62),Av=n(5449),Tv=n(4855),Rv=n(9055),Ov=n(8557),Mv=n(4804),Bv=n(4210),Iv=n(8594),Zv=n(5089);function Lv(){return Lv=Object.assign||function(e){for(var t=1;t{this.setState({openStatsForNerds:!0})})),Fv(this,"handleClickCloseStatsForNerds",(()=>{this.setState({openStatsForNerds:!1})})),Fv(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(Tt,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Stats For Nerds")),r.createElement(tf.Z,{dense:!0},r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(en.Z,null)),r.createElement(Fm,{primary:this.state.lnd_version,secondary:e("LND version")})),r.createElement(Of,null),"testnet"==this.state.network?r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Mv.Z,null)),r.createElement(Fm,{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(gf,null,r.createElement(Nf.Z,null,r.createElement(Dv,null)),r.createElement(Fm,{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(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Bv.Z,null)),r.createElement(Fm,{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(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Av.Z,null)),r.createElement(Fm,{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(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Tv.Z,null)),r.createElement(Fm,{primary:zv(this.state.last_day_volume)+" Sats",secondary:e("24h contracted volume")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Tv.Z,null)),r.createElement(Fm,{primary:zv(this.state.lifetime_volume)+" BTC",secondary:e("Lifetime contracted volume")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Rv.Z,null)),r.createElement(Fm,{primary:r.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"left",flexWrap:"wrap"}},r.createElement("span",null,e("Made with")+" "),r.createElement(jv.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!")})))))})),Fv(this,"handleClickOpenCommunity",(()=>{this.setState({openCommuniy:!0})})),Fv(this,"handleClickCloseCommunity",(()=>{this.setState({openCommuniy:!1})})),Fv(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(Tt,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(tf.Z,null,r.createElement(Of,null),r.createElement(Am,{component:"a",target:"_blank",href:"https://t.me/robosats"},r.createElement(Nf.Z,null,r.createElement(qg.Z,null)),r.createElement(Fm,{primary:e("Join the RoboSats group"),secondary:e("Telegram (English / Main)")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(qg.Z,null)),r.createElement(Fm,{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(Ap,{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(Of,null),r.createElement(Am,{component:"a",target:"_blank",href:"https://github.com/Reckless-Satoshi/robosats/issues"},r.createElement(Nf.Z,null,r.createElement(Av.Z,null)),r.createElement(Fm,{primary:e("Tell us about a new feature or a bug"),secondary:e("Github Issues - The Robotic Satoshis Open Source Project")})))))})),Fv(this,"handleClickOpenProfile",(()=>{this.getInfo(),this.setState({openProfile:!0,profileShown:!0})})),Fv(this,"handleClickCloseProfile",(()=>{this.setState({openProfile:!1})})),Fv(this,"handleSubmitInvoiceClicked",(()=>{this.setState({badInvoice:!1,showRewardsSpinner:!0});const e={method:"POST",headers:{"Content-Type":"application/json","X-CSRFToken":tn("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})))})),Fv(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(Tt,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Your Profile")),r.createElement(tf.Z,null,r.createElement(Of,null),r.createElement(gf,{className:"profileNickname"},r.createElement(Fm,{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(Bm,null,r.createElement(Sf,{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(Of,null),this.state.active_order_id?r.createElement(Am,{onClick:this.handleClickCloseProfile,to:"/order/"+this.state.active_order_id,component:K},r.createElement(Nf.Z,null,r.createElement(Im.Z,{badgeContent:"",color:"primary"},r.createElement(tb.Z,{color:"primary"}))),r.createElement(Fm,{primary:e("One active order #{{orderID}}",{orderID:this.state.active_order_id}),secondary:e("Your current order")})):r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(tb.Z,null)),r.createElement(Fm,{primary:e("No active orders"),secondary:e("Your current order")})),r.createElement(gf,null,r.createElement(Nf.Z,null,r.createElement(Ov.Z,null)),r.createElement(Fm,{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(Of,null),r.createElement(it,{spacing:1,align:"center"},r.createElement(vn.Z,{labelPlacement:"start",control:r.createElement(Cv.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(gf,null,r.createElement(Nf.Z,null,r.createElement(Iv.Z,null)),r.createElement(Fm,{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(gf,null,r.createElement(Nf.Z,null,r.createElement(Zv.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(Fm,{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!🥇")))):""))))})),Fv(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(Am,{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(Bm,{sx:{width:30,height:30}},r.createElement(Im.Z,{badgeContent:this.state.active_order_id>0&!this.state.profileShown?"":null,color:"primary"},r.createElement(Sf,{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(Fm,{primary:this.props.nickname})))),r.createElement(it,{item:!0,xs:1.9},r.createElement(gf,{className:"bottomItem"},r.createElement(Nf.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Ev.Z,null))),r.createElement(Fm,{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(gf,{className:"bottomItem"},r.createElement(Nf.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Pv.Z,null))),r.createElement(Fm,{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(gf,{className:"bottomItem"},r.createElement(Nf.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Kt.Z,null))),r.createElement(Fm,{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(gf,{className:"bottomItem"},r.createElement(Nf.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(nb.Z,null))),r.createElement(Fm,{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(gf,{className:"bottomItem"},r.createElement(Nf.Z,{size:"small"},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Wg.Z,null))),r.createElement(Fm,{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(Sv.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(xv.Z,null)))))))})),Fv(this,"handleChangeLang",(e=>{const{i18n:t}=this.props;t.changeLanguage(e.target.value)})),Fv(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"))})),Fv(this,"handleClickOpenExchangeSummary",(()=>{this.getInfo(),this.setState({openExchangeSummary:!0})})),Fv(this,"handleClickCloseExchangeSummary",(()=>{this.setState({openExchangeSummary:!1})})),Fv(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(Tt,null,r.createElement(st.Z,{component:"h5",variant:"h5"},e("Exchange Summary")),r.createElement(tf.Z,{dense:!0},r.createElement(gf,null,r.createElement(Nf.Z,{size:"small"},r.createElement(Ev.Z,null)),r.createElement(Fm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_buy_orders,secondary:e("Public buy orders")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,{size:"small"},r.createElement(Pv.Z,null)),r.createElement(Fm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.num_public_sell_orders,secondary:e("Public sell orders")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,{size:"small"},r.createElement(Yg.Z,null)),r.createElement(Fm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:zv(this.state.book_liquidity)+" Sats",secondary:e("Book liquidity")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,{size:"small"},r.createElement(Kt.Z,null)),r.createElement(Fm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.active_robots_today,secondary:e("Today active robots")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,{size:"small"},r.createElement(nb.Z,null)),r.createElement(Fm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},primary:this.state.last_day_nonkyc_btc_premium+"%",secondary:e("24h non-KYC bitcoin premium")})),r.createElement(Of,null),r.createElement(gf,null,r.createElement(Nf.Z,{size:"small"},r.createElement(Wg.Z,null)),r.createElement(it,{container:!0,xs:12},r.createElement(it,{item:!0,xs:6},r.createElement(Fm,{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(Fm,{primaryTypographyProps:{fontSize:"14px"},secondaryTypographyProps:{fontSize:"12px"},secondary:e("Taker fee")},(100*this.state.taker_fee).toFixed(3),"%")))))))})),Fv(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(Im.Z,{badgeContent:this.state.active_order_id>0&!this.state.profileShown?"":null,color:"primary"},r.createElement(Sf,{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(Im.Z,{badgeContent:this.state.num_public_buy_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("Number of public SELL orders")},r.createElement(dt.Z,{onClick:this.handleClickOpenExchangeSummary},r.createElement(Im.Z,{badgeContent:this.state.num_public_sell_orders,color:"action"},r.createElement(Pv.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(Im.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(Im.Z,{badgeContent:this.state.last_day_nonkyc_btc_premium+"%",color:"action"},r.createElement(nb.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(Sv.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(xv.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:wm}),r.createElement(N,{path:"/book",render:e=>r.createElement(Ym,Vv({},e,{type:this.state.bookType,currencyCode:this.state.bookCurrencyCode,currency:this.state.bookCurrency,setAppState:this.setAppState}))}),r.createElement(N,{path:"/order/:orderId",component:kv}))),r.createElement("div",{className:"bottomBar"},r.createElement(Hv,Vv({redirectTo:this.redirectTo},this.state,{setAppState:this.setAppState}))))}}var Wv=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)(Wv.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),Qv=n(6760);const Jv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Xv=function(e){const{children:t,theme:n}=e,o=(0,Qv.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)(Xv,{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(nh,{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(Uh,{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(nh,{severity:"warning",sx:{maxHeight:"120px"}},r.createElement(ay,null,e("You are not using RoboSats privately")),r.createElement(Uh,{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 fy=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,hy=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(!fy.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!fy.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=hy(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}},Ay={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}},Ty=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(Ay)}},{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)}Ty.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 Uy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wy(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Uy(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&&Wy(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 Browser and visit the <3>Onion site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser and visit the <3>Onion 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}}","PAYMENT METHODS - autocompletePayments.js":"Payment method strings","not specified":"Not specified","Instant SEPA":"Instant SEPA","Amazon GiftCard":"Amazon GiftCard","Google Play Gift Code":"Google Play Gift Code","Cash F2F":"Cash F2F","On-Chain BTC":"On-Chain BTC","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","Invoice expired. You did not confirm taking the order in time.":"Invoice expired. You did not confirm taking the order in time.","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.","PGP_guide_url":"https://github.com/Reckless-Satoshi/robosats/blob/main/docs/sensitive-data-PGP-guide.md/","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 unlocked":"Your maker bond was unlocked","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. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.":"Be patient while robots check the book. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.","If the order expires untaken, your bond will return to you (no action needed).":"If the order expires 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>RoboSats⚡?","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>Telegram / <3>Github)","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":"Alert that shows on top when browsing from the unsafe clearnet sites","You are not using RoboSats privately":"No usas RoboSats de forma privada","desktop_unsafe_alert":"Algunas funciones (como el chat) están deshabilitadas para protegerte y sin ellas no podrás completar un intercambio. Para proteger tu privacidad y habilitar RoboSats por completo, usa el <1>Navegador Tor y visita el <3>sitio cebolla.","phone_unsafe_alert":"No podrás completar un intercambio. Usa el <1>Navegador Tor y visita el <3>sitio cebolla.","Hide":"Ocultar","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 Robot de compraventa","Store your token safely":"Guarda tu token de forma segura","A robot avatar was found, welcome back!":"Se encontró un Robot, ¡bienvenido de nuevo!","Copied!":"¡Copiado!","Generate a new token":"Genera un nuevo token","Generate Robot":"Generar Robot","You must enter a new token first":"Primero introduce un nuevo token","Make Order":"Crear orden","Info":"Info","View Book":"Ver libro","MAKER PAGE - MakerPage.js":"This is the page where users can create new orders","Order":"Orden","Customize":"Personalizar","Buy or Sell Bitcoin?":"¿Comprar o Vender Bitcoin?","Buy":"Comprar","Sell":"Vender","Amount":"Monto","Amount of fiat to exchange for bitcoin":"Monto de fiat a cambiar por bitcoin","Invalid":"No válido","Enter your preferred fiat payment methods. Fast methods are highly recommended.":"Introduce tus métodos de pago. Se recomiendan encarecidamente métodos rápidos.","Must be shorter than 65 characters":"Debe tener menos de 65 caracteres","Swap Destination(s)":"Destino(s) del Swap","Fiat Payment Method(s)":"Método(s) de Pago en Fiat","You can add new methods":"Puedes añadir nuevos métodos","Add New":"Añadir nuevo","Choose a Pricing Method":"Elige Cómo Establecer el Precio","Relative":"Relativo","Let the price move with the market":"EL precio se moverá relativo al mercado","Premium over Market (%)":"Prima sobre el mercado (%)","Explicit":"Fijo","Set a fix amount of satoshis":"Establece un monto fijo de Sats","Satoshis":"Satoshis","Let the taker chose an amount within the range":"Permite que el tomador elija un monto dentro del rango.","Enable Amount Range":"Activar Monto con Rango","From":"Desde","to":"a ","Public Duration (HH:mm)":"Duración pública (HH:mm)","Set the skin-in-the-game, increase for higher safety assurance":"Establece la implicación requerida (aumentar para mayor seguridad)","Fidelity Bond Size":"Tamaño de la fianza","Allow bondless takers":"Permitir tomadores sin fianza","COMING SOON - High risk! Limited to {{limitSats}}K Sats":"PRÓXIMAMENTE - ¡Alto riesgo! Limitado a {{limitSats}}K Sats","You must fill the order correctly":"Debes rellenar la orden correctamente","Create Order":"Crear orden","Back":"Volver","Create a BTC buy order for ":"Crear orden de compra de bitcoin por ","Create a BTC sell order for ":"Crear orden de venta de bitcoin por "," of {{satoshis}} Satoshis":" de {{satoshis}} Sats"," at market price":" a precio de mercado"," at a {{premium}}% premium":" con una prima del {{premium}}%"," at a {{discount}}% discount":" con descuento del {{discount}}%","Must be less than {{max}}%":"Debe ser menos del {{max}}%","Must be more than {{min}}%":"Debe ser más del {{min}}%","Must be less than {{maxSats}":"Debe ser menos de {{maxSats}}","Must be more than {{minSats}}":"Debe ser más de {{minSats}}","PAYMENT METHODS - autocompletePayments.js":"Payment method strings","not specified":"Sin especificar","Instant SEPA":"SEPA Instantánea","Amazon GiftCard":"Amazon Tarjeta Regalo","Google Play Gift Code":"Google Play Tarjeta Regalo","Cash F2F":"Efectivo en persona","On-Chain BTC":"On-Chain BTC","BOOK PAGE - BookPage.js":"The Book Order page","Seller":"Vendedor","Buyer":"Comprador","I want to":"Quiero","Select Order Type":"Selecciona tipo de orden","ANY_type":"TODO","ANY_currency":"TODO","BUY":"COMPRAR","SELL":"VENDER","and receive":"y recibir","and pay with":"y pagar con","and use":"y usar","Select Payment Currency":"Selecciona moneda de pago","Robot":"Robot","Is":"Es","Currency":"Moneda","Payment Method":"Método de pago","Pay":"Pagar","Price":"Precio","Premium":"Prima","You are SELLING BTC for {{currencyCode}}":"Estás VENDIENDO bitcoin por {{currencyCode}}","You are BUYING BTC for {{currencyCode}}":"Estás COMPRANDO bitcoin por {{currencyCode}}","You are looking at all":"Estás viendo todo","No orders found to sell BTC for {{currencyCode}}":"No hay órdenes para vender bitcoin por {{currencyCode}}","No orders found to buy BTC for {{currencyCode}}":"No hay órdenes para comprar bitcoin por {{currencyCode}}","Be the first one to create an order":"Sé el primero en crear una orden","BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs","Stats For Nerds":"Estadísticas para nerds","LND version":"Versión LND","Currently running commit hash":"Hash de la versión actual","24h contracted volume":"Volumen contratado en 24h","Lifetime contracted volume":"Volumen contratado total","Made with":"Hecho con","and":"y","... somewhere on Earth!":"... en algún lugar de la tierra!","Community":"Comunidad","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!":"Sólo se ofrece soporte a través de canales públicos. Únete a nuestra comunidad de Telegram si tienes preguntas o quieres pasar el rato con otros Robots geniales. Por favor, utiliza nuestro GitHub para notificar un error o proponer nuevas funcionalidades.","Join the RoboSats group":"Únete al grupo de RoboSats","Telegram (English / Main)":"Telegram (Inglés / Principal)","RoboSats Telegram Communities":"Comunidades de RoboSats","Join RoboSats Spanish speaking community!":"¡Únete a la comunidad de RoboSats en español!","Join RoboSats Russian speaking community!":"¡Únete a la comunidad de RoboSats en ruso!","Join RoboSats Chinese speaking community!":"¡Únete a la comunidad de RoboSats en chino!","Join RoboSats English speaking community!":"¡Únete a la comunidad de RoboSats en inglés!","Tell us about a new feature or a bug":"Propón funcionalidades o notifica errores","Github Issues - The Robotic Satoshis Open Source Project":"Issues de GitHub - The Robotic Satoshis Open Source Project","Your Profile":"Tu perfil","Your robot":"Tu Robot","One active order #{{orderID}}":"Ir a orden activa #{{orderID}}","Your current order":"Tu orden actual","No active orders":"No hay órdenes activas","Your token (will not remain here)":"Tu token (no permanecerá aquí)","Back it up!":"¡Guárdalo!","Cannot remember":"Se olvidó","Rewards and compensations":"Recompensas y compensaciones","Share to earn 100 Sats per trade":"Comparte para ganar 100 Sats por intercambio","Your referral link":"Tu enlace de referidos","Your earned rewards":"Tus recompensas ganadas","Claim":"Retirar","Invoice for {{amountSats}} Sats":"Factura por {{amountSats}} Sats","Submit":"Enviar","There it goes, thank you!🥇":"Ahí va, ¡gracias!🥇","You have an active order":"Tienes una orden activa","You can claim satoshis!":"¡Puedes retirar Sats!","Public Buy Orders":"Órdenes de compra","Public Sell Orders":"Órdenes de venta","Today Active Robots":"Robots activos hoy","24h Avg Premium":"Prima media en 24h","Trade Fee":"Comisión","Show community and support links":"Mostrar enlaces de comunidad y soporte","Show stats for nerds":"Mostrar estadísticas para nerds","Exchange Summary":"Resumen de intercambio","Public buy orders":"Órdenes de compra públicas","Public sell orders":"Órdenes de venta públicas","Book liquidity":"Liquidez en el libro","Today active robots":"Robots activos hoy","24h non-KYC bitcoin premium":"Prima de bitcoin sin KYC en 24h","Maker fee":"Comisión del creador","Taker fee":"Comisión del tomador","Number of public BUY orders":"Nº de órdenes públicas de COMPRA","Number of public SELL orders":"Nº de órdenes públicas de VENTA","ORDER PAGE - OrderPage.js":"Order details page","Order Box":"Orden","Contract":"Contrato","Active":"Activo","Seen recently":"Visto recientemente","Inactive":"Inactivo","(Seller)":"(Vendedor)","(Buyer)":"(Comprador)","Order maker":"Creador","Order taker":"Tomador","Order Details":"Detalles","Order status":"Estado de la orden","Waiting for maker bond":"Esperando la fianza del creador","Public":"Pública","Waiting for taker bond":"Esperando la fianza del tomador","Cancelled":"Cancelada","Expired":"Expirada","Waiting for trade collateral and buyer invoice":"Esperando el colateral y la factura del comprador","Waiting only for seller trade collateral":"Esperando el colateral del vendedor","Waiting only for buyer invoice":"Esperando la factura del comprador","Sending fiat - In chatroom":"Enviando el fiat - En el chat","Fiat sent - In chatroom":"Fiat enviado - En el chat","In dispute":"En disputa","Collaboratively cancelled":"Cancelada colaborativamente","Sending satoshis to buyer":"Enviando Sats al comprador","Sucessful trade":"Intercambio exitoso","Failed lightning network routing":"Enrutamiento fallido en la red Lightning","Wait for dispute resolution":"Espera a la resolución de la disputa","Maker lost dispute":"El creador perdió la disputa","Taker lost dispute":"El tomador perdió la disputa","Amount range":"Rango del monto","Swap destination":"Destino del intercambio","Accepted payment methods":"Métodos de pago aceptados","Others":"Otros","{{price}} {{currencyCode}}/BTC - Premium: {{premium}}%":"{{price}} {{currencyCode}}/bitcoin - Prima: {{premium}}%","Price and Premium":"Precio y prima","Amount of Satoshis":"Cantidad de Sats","Premium over market price":"Prima sobre el mercado","Order ID":"ID de la orden","Expires in":"Expira en","{{nickname}} is asking for a collaborative cancel":"{{nickname}} solicita cancelar colaborativamente","You asked for a collaborative cancellation":"Solicitaste cancelar colaborativamente","Invoice expired. You did not confirm publishing the order in time. Make a new order.":"Factura caducada: no confirmaste la publicación de la orden a tiempo. Puedes crear una nueva orden.","This order has been cancelled by the maker":"El creador ha cancelado esta orden","Invoice expired. You did not confirm taking the order in time.":"La factura retenida ha expirado. Al no bloquearla a tiempo, no has confirmado tomar la orden.","Penalty lifted, good to go!":"Sanción revocada, ¡vamos!","You cannot take an order yet! Wait {{timeMin}}m {{timeSec}}s":"¡No puedes tomar una orden aún! Espera {{timeMin}}m {{timeSec}}s","Too low":"Muy poco","Too high":"Demasiado","Enter amount of fiat to exchange for bitcoin":"Introduce el monto de fiat a cambiar por bitcoin","Amount {{currencyCode}}":"Monto {{currencyCode}}","You must specify an amount first":"Primero debes especificar el monto","Take Order":"Tomar orden","Wait until you can take an order":"Espera hasta poder tomar una orden","Cancel the order?":"¿Cancelar la orden?","If the order is cancelled now you will lose your bond.":"Si cancelas la orden ahora perderás tu fianza.","Confirm Cancel":"Confirmar cancelación","The maker is away":"El creador está ausente","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.":"Tomando esta orden corres el riesgo de perder el tiempo. Si el creador no procede a tiempo, se te compensará en Sats con el 50% de la fianza del creador.","Collaborative cancel the order?":"¿Cancelar la orden colaborativamente?","The trade escrow has been posted. The order can be cancelled only if both, maker and taker, agree to cancel.":"Dado que el colateral está bloqueado, la orden solo puede cancelarse si tanto el creador como el tomador lo acuerdan.","Ask for Cancel":"Solicitar cancelación","Cancel":"Cancelar","Collaborative Cancel":"Cancelación colaborativa","Invalid Order Id":"ID de orden no válida","You must have a robot avatar to see the order details":"Debes tener un Robot para ver los detalles de la orden","This order has been cancelled collaborativelly":"Esta orden se ha cancelado colaborativamente","You are not allowed to see this order":"No tienes permiso para ver esta orden","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":"Los Satoshis Robóticos del almacén no te entendieron. Por favor rellena un Bug Issue en Github https://github.com/reckless-satoshi/robosats/issues","CHAT BOX - Chat.js":"Ventana del chat","You":"Tú","Peer":"Él","connected":"conectado","disconnected":"desconectado","Type a message":"Escribe un mensaje","Connecting...":"Conectando...","Send":"Enviar","The chat has no memory: if you leave, messages are lost.":"Chat sin memoria: si lo cierras, los mensajes se pierden.","Learn easy PGP encryption.":"Aprende encriptación PGP.","PGP_guide_url":"https://github.com/Reckless-Satoshi/robosats/blob/main/docs/sensitive-data-PGP-guide_es.md/","CONTRACT BOX - TradeBox.js":"The Contract Box that guides users trough the whole trade pipeline","Contract Box":"Contrato","Robots show commitment to their peers":"Los Robots deben mostrar su compromiso","Lock {{amountSats}} Sats to PUBLISH order":"Bloquea {{amountSats}} Sats para PUBLICAR","Lock {{amountSats}} Sats to TAKE order":"Bloquea {{amountSats}} Sats para TOMAR","Lock {{amountSats}} Sats as collateral":"Bloquea {{amountSats}} Sats como colateral","Copy to clipboard":"Copiar al portapapeles","This is a hold invoice, it will freeze in your wallet. It will be charged only if you cancel or lose a dispute.":"Esto es una factura retenida, los Sats se bloquean en tu cartera. Solo se cobrará si cancelas o pierdes una disputa.","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}}.":"Esto es una factura retenida, los Sats se bloquean en tu cartera. Será liberada al comprador al confirmar que has recibido {{currencyCode}}.","Your maker bond is locked":"Tu fianza de creador está bloqueada","Your taker bond is locked":"Tu fianza de tomador está bloqueada","Your maker bond was settled":"Tu fianza se ha cobrado","Your taker bond was settled":"Tu fianza se ha cobrado","Your maker bond was unlocked":"Tu fianza se ha desbloqueado","Your taker bond was unlocked":"Tu fianza se ha desbloqueado","Your order is public":"Tu orden es pública","Be patient while robots check the book. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.":"Se paciente hasta que un robot tome tu orden. Esta ventana sonará 🔊 una vez que algún Robot tome tu orden. Entonces tendrás {{invoice_escrow_duration}} horas para responder, si no respondes arriesgas perder tu fianza.","If the order expires untaken, your bond will return to you (no action needed).":"Si tu oferta expira sin ser tomada, tu fianza será desbloqueada en tu cartera automáticamente.","Enable Telegram Notifications":"Notificar en Telegram","Enable TG Notifications":"Activar Notificaciones TG","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.":"Serás llevado a un chat con el bot de Telegram de RoboSats. Simplemente pulsa Empezar. Ten en cuenta que si activas las notificaciones de Telegram reducirás tu anonimato.","Go back":"Volver","Enable":"Activar","Telegram enabled":"Telegram activado","Public orders for {{currencyCode}}":"Órdenes públicas para {{currencyCode}}","Premium rank":"Rango de prima","Among public {{currencyCode}} orders (higher is cheaper)":"Entre las órdenes públicas de {{currencyCode}} (más alto, más barato)","A taker has been found!":"¡Un tomador ha sido encontrado!","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.":"Por favor, espera a que el tomador bloquee su fianza. Si no lo hace a tiempo, la orden será pública de nuevo.","Submit an invoice for {{amountSats}} Sats":"Envía una factura por {{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.":"¡El tomador está comprometido! Antes de dejarte enviar {{amountFiat}} {{currencyCode}}, queremos asegurarnos de que puedes recibir en Lightning. Por favor proporciona una factura válida por {{amountSats}} Sats.","Payout Lightning Invoice":"Factura Lightning","Your invoice looks good!":"¡Tu factura es buena!","We are waiting for the seller lock the trade amount.":"Esperando a que el vendedor bloquee el colateral.","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).":"Espera un momento. Si el vendedor no deposita, recuperarás tu fianza automáticamente. Además, recibirás una compensación (comprueba las recompensas en tu perfil).","The trade collateral is locked!":"¡El colateral está bloqueado!","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.":"Estamos esperando a que el comprador envíe una factura Lightning. Cuando lo haga, podrás comunicarle directamente los detalles del pago en fiat.","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).":"Espera un momento. Si el comprador no coopera, se te devolverá el colateral y tu fianza automáticamente. Además, recibiras una compensación (comprueba las recompensas en tu perfil).","Confirm {{currencyCode}} sent":"Confirmar {{currencyCode}} enviado","Confirm {{currencyCode}} received":"Confirmar {{currencyCode}} recibido","Open Dispute":"Abrir Disputa","The order has expired":"La orden ha expirado","Chat with the buyer":"Habla con el comprador","Chat with the seller":"Habla con el vendedor","Say hi! Be helpful and concise. Let them know how to send you {{currencyCode}}.":"¡Di hola! Sé claro y conciso. Escríbele como puede enviarte {{currencyCode}}.","The buyer has sent the fiat. Click \'Confirm Received\' once you receive it.":"El comprador a enviado el fiat. Presiona \'Confirmar recibido\' cuando lo hayas recibido.","Say hi! Ask for payment details and click \'Confirm Sent\' as soon as the payment is sent.":"¡Di hola! Pide los detalles de pago y pulsa \'Confirmar enviado\' en cuanto pagues.","Wait for the seller to confirm he has received the payment.":"Espera a que el vendedor confirme que ha recibido el pago.","Confirm you received {{currencyCode}}?":"¿Confirmas que has recibido {{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.":"Confirmando que has recibido el fiat finalizará el intercambio. Los Sats del colateral se enviarán al comparador. Confirma sólo después de asegurar que te ha llegado {{currencyCode}}. Además, si lo has recibido {{currencyCode}} y no confirmas la recepción, te arriesgas a perder tu fianza.","Confirm":"Confirmar","🎉Trade finished!🥳":"🎉¡Intercambio finalizado!🥳","rate_robosats":"¿Qué opinas de 🤖<1>RoboSats⚡?","Thank you! RoboSats loves you too ❤️":"¡Muchas gracias! RoboSats también te ❤️","RoboSats gets better with more liquidity and users. Tell a bitcoiner friend about Robosats!":"RoboSats mejora con más liquidez y usuarios. ¡Cuéntale a un amigo bitcoiner sobre RoboSats!","Thank you for using Robosats!":"¡Gracias por usar RoboSats!","let_us_know_hot_to_improve":"Dinos cómo podría mejorar la plataforma (<1>Telegram / <3>Github)","Start Again":"Empezar de nuevo","Attempting Lightning Payment":"Intentando el pago Lightning","RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats está intentando pagar tu factura de Lightning. Recuerda que los nodos Lightning deben estar en línea para recibir pagos.","Retrying!":"¡Reintentando!","Lightning Routing Failed":"Fallo en el enrutamiento de Lightning","Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Tu factura ha expirado o se han hecho más de 3 intentos de pago. La cartera Muun no está recomendada. ","Check the list of compatible wallets":"Mira la lista de carteras compatibles","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 intentará pagar tu factura 3 veces cada 5 minutos. Si sigue fallando, podrás presentar una nueva factura. Comprueba si tienes suficiente liquidez entrante. Recuerda que los nodos de Lightning tienen que estar en línea para poder recibir pagos.","Next attempt in":"Próximo intento en","Do you want to open a dispute?":"¿Quieres abrir una disputa?","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.":"El equipo de RoboSats examinará las declaraciones y evidencias presentadas. Como el equipo no puede leer el chat, necesitas escribir una declaració completa y exhaustiva. Es mejor dar un método de contacto de usar y tirar con tu declaración. Los Sats del colateral serán enviados al ganador de la disputa, mientras que el perdedor perderá la fianza.","Disagree":"Volver","Agree and open dispute":"Abrir disputa","A dispute has been opened":"Una disputa ha sido abierta","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.":"Por favor, presenta tu declaración. Se claro y conciso sobre que pasó y entrega la evidencia necesaria. DEBES dar un metodo de contacto para comunicarte con el equipo: método de contacto de usar y tirar, XMPP o usuario de Telegram. Las disputas son resueltas con la discreción de los Robots reales (también conocidos como humanos), así que ayuda en lo posible para asegurar un resultado justo. 5000 caracteres máx.","Submit dispute statement":"Presentar declaración","We have received your statement":"Hemos recibido tu declaración","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.":"Estamos esperando la declaración de tu compañero. Si dudas sobre el estado de la disputa o quieres añadir más información, contacta en 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).":"Por favor, guarda la información necesaria para identificar tu orden y tus pagos: ID de orden; claves del pago de la fianza o el colateral (comprueba tu cartera Lightning); cantidad exacta de Sats; y nombre del Robot. Tendrás que identificarte como el usuario involucrado en este intercambio por email (u otro método de contacto).","We have the statements":"Tenemos la declaración","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.":"Ambas declaraciones se han recibido, espera a que el equipo resuelva la disputa. Si dudas sobre el estado de la disputa o quieres añadir información, contacta con robosats@protonmail.com. Si no diste un método de contacto, o dudas de si lo escribiste bien, escríbenos inmediatamente.","You have won the dispute":"Has ganado la disputa","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).":"Puedes retirar la cantidad de la resolución de la disputa (fianza y colateral) desde las recompensas de tu perfil. Si hay algo que el equipo pueda hacer, no dudes en contactar con robosats@protonmail.com (o a través del método de contacto de usar y tirar que especificaste).","You have lost the dispute":"Has perdido la disputa","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.":"Desafortunadamente has perdido la disputa. Si piensas que es un error también puedes pedir reabrir el caso por email a robosats@protonmail.com. De todas formas, las probabilidades de ser investigado de nuevo son bajas.","INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use","Close":"Cerrar","What is RoboSats?":"¿Qué es RoboSats?","It is a BTC/FIAT peer-to-peer exchange over lightning.":"Es un exchange P2P que facilita intercambios bitcoin/fiat sobre Lightning.","RoboSats is an open source project ":"RoboSats es un proyecto de código abierto ","It simplifies matchmaking and minimizes the need of trust. RoboSats focuses in privacy and speed.":"Simplifica el emparejamiento y minimiza la necesidad de confianza. RoboSats se centra en la privacidad y la velocidad.","(GitHub).":"(GitHub).","How does it work?":"¿Cómo funciona?","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 quiere vender bitcoin. Ella publica una orden de venta. BafflingBob02 quiere comprar bitcoin y escoge la orden de Alicia. Ambos tienen que bloquear una pequeña fianza en Lightning para probar que son verdaderos Robots. Después, Alicia envía el colateral también usando una factura de Lightning. RoboSats bloquea la factura hasta que Alicia confirma haber recibido el fiat, después el bitcoin se libera y envía a Bob. ¡Disfruta tu bitcoin, 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.":"En ningún momento AnonymousAlice01 ni BafflingBob02 tienen que confiar los fondos de bitcoin a la otra parte. En caso de conflicto, el personal de RoboSats ayudará a resolver la disputa.","You can find a step-by-step description of the trade pipeline in ":"Puedes encontrar una descripción paso a paso de los intercambios en ","How it works":"Cómo funciona","You can also check the full guide in ":"También puedes revisar la guía entera en ","How to use":"Cómo utilizar","What payment methods are accepted?":"¿Qué métodos de pago son aceptados?","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.":"Todos siempre que sean rápidos. Puedes escribir abajo tu método de pago preferido(s). Tendrás que encontrar un compañero que acepte ese método. El paso para intercambiar el fiat tiene un tiempo de expiración de 24 horas antes de que se abra una disputa automáticamente. Te recomendamos métodos instantáneos de envío de fiat.","Are there trade limits?":"¿Hay límites de intercambios?","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!).":"Para minimizar fallos en el enrutamiento Lightning, el máximo por intercambio es de {{maxAmount}} Sats. No hay límite de intercambios en el tiempo. Aunque un Robot solo puede intervenir en una orden a la vez, puedes usar varios Robots en diferentes navegadores (¡recuerda guardar los tokens de tus Robots!).","Is RoboSats private?":"¿RoboSats es privado?","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 no custodia tus fondos y no recolecta o custodia ningún dato personal, pues no le importa quien eres. RoboSats nunca te preguntará por tu nombre, país o número de documento. Para mejorar tu privacidad, usa el Navegador Tor y visita el sitio cebolla.","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.":"Tu compañero de intercambio es el único que puede potencialmente adivinar algo sobre ti. Mantén tu conversación corta y concisa. Evita dar datos que no sean estrictamente necesarios para el pago del fiat.","What are the risks?":"¿Cuáles son los riesgos?","This is an experimental application, things could go wrong. Trade small amounts!":"Esta es una aplicación experimental, algo puede ir mal. ¡Intercambia en pequeñas cantidades!","The seller faces the same charge-back risk as with any other peer-to-peer service. Paypal or credit cards are not recommended.":"El vendedor tiene los mismos riesgos de devolución como con cualquier servicio P2P. PayPal o tarjetas de crédito no están recomendadas.","What is the trust model?":"¿Cuál es el modelo de confianza?","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.":"El comprador y el vendedor nunca deben de confiar el uno en el otro. Una mínima confianza en RoboSats es necesaria, pues es el enlace entre la fianza del vendedor y el pago del comprador, que no es atómico (todavía). Además, las disputas se resuelven por el personal de RoboSats.","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":"Con total claridad, los requerimentos de confianza son minimizados. De todas formas, todavía hay una forma en que RoboSats podría huir con tus Sats: no enviándoselos al comprador. Podría argumentarse que ese movimiento dañaría la reputación de RoboSats por un pequeño importe. De todas formas, deberías dudar y solo intercambiar pequeños montos cada vez. Para montos grandes usa un exchange de primera capa como Bisq","You can build more trust on RoboSats by inspecting the source code.":"Puedes aumentar la confianza en RoboSats inspeccionando el código fuente.","Project source code":"Código fuente del proyecto","What happens if RoboSats suddenly disappears?":"¿Qué pasaría si RoboSats desapareciera?","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.":"Tus Sats te serán devueltos. Cualquier factura no asentada será automaticamente devuelta incluso aunque RoboSats desaparezca. Esto es cierto tanto para las fianzas como para los colaterales. De todas formas, entre que el vendedor confirma haber recibido el fiat y el comprador recibe los Sats, hay un tiempo de aprox. 1 segundo en que los fondos podrían perderse si RoboSats desapareciera. Asegurate de tener suficiente liquidez entrante para evitar fallos de enrutamiento. Si tienes algún problema, busca en los canales públicos de RoboSats.","In many countries using RoboSats is no different than using Ebay or Craiglist. Your regulation may vary. It is your responsibility to comply.":"En muchos países usar RoboSats no es diferente a usar Ebay o WallaPop. Tu regulación puede variar, es tu responsabilidad su cumplimiento.","Is RoboSats legal in my country?":"¿Es RoboSats legal en mi país?","Disclaimer":"Aviso","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 ":"Esta aplicación de Lightning está en continuo desarrollo y se entrega tal cual: intercambia con la máxima precaución. No hay soporte privado. El soporte se ofrece solo en canales públicos.","(Telegram)":"(Telegram)",". RoboSats will never contact you. RoboSats will definitely never ask for your robot token.":". RoboSats nunca te contactará. RoboSats jamás te preguntará por el token de tu Robot."}'),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 Browser and visit the <3>Onion site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser and visit the <3>Onion 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}}","PAYMENT METHODS - autocompletePayments.js":"Payment method strings","not specified":"Not specified","Instant SEPA":"Instant SEPA","Amazon GiftCard":"Amazon GiftCard","Google Play Gift Code":"Google Play Gift Code","Cash F2F":"Cash F2F","On-Chain BTC":"On-Chain BTC","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","Invoice expired. You did not confirm taking the order in time.":"Invoice expired. You did not confirm taking the order in time.","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.","PGP_guide_url":"https://github.com/Reckless-Satoshi/robosats/blob/main/docs/sensitive-data-PGP-guide.md/","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 unlocked":"Your maker bond was unlocked","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. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.":"Be patient while robots check the book. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.","If the order expires untaken, your bond will return to you (no action needed).":"If the order expires 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>RoboSats⚡?","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>Telegram / <3>Github)","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 - 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 Browser and visit the <3>Onion site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser and visit the <3>Onion 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}}","PAYMENT METHODS - autocompletePayments.js":"Payment method strings","not specified":"Not specified","Instant SEPA":"Instant SEPA","Amazon GiftCard":"Amazon GiftCard","Google Play Gift Code":"Google Play Gift Code","Cash F2F":"Cash F2F","On-Chain BTC":"On-Chain BTC","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","Invoice expired. You did not confirm taking the order in time.":"Invoice expired. You did not confirm taking the order in time.","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.","PGP_guide_url":"https://github.com/Reckless-Satoshi/robosats/blob/main/docs/sensitive-data-PGP-guide.md/","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 unlocked":"Your maker bond was unlocked","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. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.":"Be patient while robots check the book. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.","If the order expires untaken, your bond will return to you (no action needed).":"If the order expires 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>RoboSats⚡?","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>Telegram / <3>Github)","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 Browser and visit the <3>Onion site.","phone_unsafe_alert":"You will not be able to complete a trade. Use <1>Tor Browser and visit the <3>Onion 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}}","PAYMENT METHODS - autocompletePayments.js":"Payment method strings","not specified":"Not specified","Instant SEPA":"Instant SEPA","Amazon GiftCard":"Amazon GiftCard","Google Play Gift Code":"Google Play Gift Code","Cash F2F":"Cash F2F","On-Chain BTC":"On-Chain BTC","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","Invoice expired. You did not confirm taking the order in time.":"Invoice expired. You did not confirm taking the order in time.","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.","PGP_guide_url":"https://github.com/Reckless-Satoshi/robosats/blob/main/docs/sensitive-data-PGP-guide.md/","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 unlocked":"Your maker bond was unlocked","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. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.":"Be patient while robots check the book. This box will ring 🔊 once a robot takes your order, then you will have {{invoice_escrow_duration}} hours to reply. If you do not reply, you risk losing your bond.","If the order expires untaken, your bond will return to you (no action needed).":"If the order expires 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>RoboSats⚡?","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>Telegram / <3>Github)","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."}');gv.use(qy).use(Ty).use(ue).init({resources:{en:{translations:Ky},es:{translations:Qy},ru:{translations:Xy},de:{translations:Jy},zh:{translations:_y}},fallbackLng:"en",debug:!1,ns:["translations"],defaultNS:"translations",keySeparator:!1,interpolation:{escapeValue:!1,formatSeparator:","},react:{wait:!0,useSuspense:!1}});const $y=gv;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(Uv,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 f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function h(e){var t=new FileReader,n=f(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(h)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=f(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,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=m(n);o&&o!==f&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),h=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,f=n?Symbol.for("react.suspense_list"):60120,h=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 h: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=h,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)===h},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===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||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))}}])&&h(t.prototype,n),o&&h(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?f.get(h):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;n