UNPKG

@astropay/payments-lib

Version:

Official AstroPay payments library for web and mobile.

62 lines (59 loc) 479 kB
(function(Ee,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(Ee=typeof globalThis<"u"?globalThis:Ee||self,v(Ee.AstroPay={}))})(this,function(Ee){"use strict";var rS=Object.defineProperty;var sS=(Ee,v,Et)=>v in Ee?rS(Ee,v,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Ee[v]=Et;var _=(Ee,v,Et)=>sS(Ee,typeof v!="symbol"?v+"":v,Et);const v={transparent:"transparent",surface_dark:"#041311",surface_light:"#FFFFFF",neutral_lightest:"#FFFFFF",neutral_light:"#F3F6F6",neutral_lighter:"#E2E9E8",neutral_base:"#B4C5C3",neutral_darker:"#7C9995",neutral_dark:"#536663",neutral_darkest:"#151E1D",primary_lightest:"#DBFFFB",primary_light:"#AAF6EC",primary_base:"#00DBBF",primary_darker:"#0FC3AC",primary_dark:"#059986",primary_darkest:"#07544A",warning_lightest:"#FFF7DB",warning_light:"#FFEBA8",warning_darker:"#DBA800",warning_darkest:"#755A00",error_lightest:"#FFDCD6",error_light:"#FFB0A3",error_lighter:"#FF8470",error_base:"#FF2C0A",error_dark:"#A31600",error_darkest:"#700F00",success_lightest:"#F0FAEB",success_light:"#D3EFC2",success_base:"#7CD049",success_darker:"#62B52F",success_dark:"#4D8E25",success_darkest:"#37651A"},Et={poppins:"Poppins"},jh=async()=>{try{const e=document.createElement("link");e.href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap",e.rel="stylesheet",document.head.appendChild(e),await document.fonts.ready}catch(e){console.error("Font loading failed:",e)}},Wh={backgroundColor:v.surface_dark,fontFamily:Et.poppins,textColor:v.neutral_light,primaryColor:v.primary_base,secondaryColor:v.primary_darkest,textPrimaryColor:v.neutral_lightest,textSecondaryColor:v.primary_lightest,width:"100%",paddingWrapper:"12px",borderRadiusWrapper:"4px",messages:{success:{textColor:v.success_base,textSize:12},error:{textColor:v.error_lighter,textSize:12}},input:{normal:{textColor:v.neutral_lightest,backgroundColor:v.neutral_darkest,hintTextColor:v.neutral_darker,placeholderTextColor:v.neutral_dark,borderColor:v.transparent,borderRadius:8,borderWidth:3},focus:{textColor:v.neutral_lightest,backgroundColor:v.neutral_darkest,hintTextColor:v.neutral_darker,placeholderTextColor:v.neutral_darker,borderColor:v.primary_base,borderRadius:8,borderWidth:3},disabled:{textColor:v.neutral_darker,backgroundColor:v.neutral_dark,hintTextColor:v.neutral_darker,placeholderTextColor:v.neutral_base,borderColor:v.neutral_dark,borderRadius:8,borderWidth:3},error:{textColor:v.neutral_lightest,backgroundColor:v.neutral_darkest,hintTextColor:v.error_base,placeholderTextColor:v.neutral_darker,borderColor:v.error_base,borderRadius:8,borderWidth:3}},button:{small:{borderRadius:4},medium:{borderRadius:8},large:{borderRadius:8},primary:{textColor:v.neutral_lightest,backgroundColor:v.primary_base,borderColor:v.transparent,borderWidth:0},secondary:{textColor:v.primary_lightest,backgroundColor:v.primary_darkest,borderColor:v.transparent,borderWidth:0},text:{textColor:v.primary_base,backgroundColor:"unset",borderColor:v.primary_base,borderWidth:1},disabled:{textColor:v.neutral_dark,backgroundColor:v.neutral_base,borderColor:v.transparent,borderWidth:0}},divider:{color:v.neutral_base,variant:"dashed",size:1},card:{padding:12,backgroundColor:v.neutral_darkest,borderWidth:0,borderStyle:"none",borderColor:v.transparent,borderRadius:16},qrCode:{padding:16,backgroundColor:v.neutral_darkest,borderWidth:1,borderStyle:"solid",borderColor:v.primary_base,borderRadius:16},badge:{default:{padding:"2px 6px",textColor:v.neutral_light,backgroundColor:v.neutral_dark,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4},highlight:{padding:"2px 6px",textColor:v.primary_light,backgroundColor:v.primary_darkest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4},error:{padding:"2px 6px",textColor:v.error_light,backgroundColor:v.error_darkest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4},success:{padding:"2px 6px",textColor:v.success_light,backgroundColor:v.success_darkest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4},warning:{padding:"2px 6px",textColor:v.warning_light,backgroundColor:v.warning_darkest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4}},timer:{padding:"4px 8px",textColor:v.error_lightest,backgroundColor:v.warning_darkest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:12},apFontFamily:Et.poppins,apPrimaryColor:v.primary_base,apButtonPrimaryBgColor:v.primary_base,apButtonPrimaryTxtColor:v.neutral_darkest,apButtonSecondaryBgColor:v.primary_darkest,apButtonSecondaryTxtColor:v.primary_base,apButtonTextTxtColor:v.primary_base,apButtonDisableBgColor:v.neutral_base,apButtonDisableTextColor:v.neutral_dark},Zc={backgroundColor:v.surface_light,fontFamily:Et.poppins,textColor:v.neutral_darkest,primaryColor:v.primary_base,secondaryColor:v.primary_lightest,textPrimaryColor:v.neutral_darkest,textSecondaryColor:v.primary_darker,width:"100%",paddingWrapper:"12px",borderRadiusWrapper:"4px",messages:{success:{textColor:v.success_darker,textSize:12},error:{textColor:v.error_dark,textSize:12}},input:{normal:{textColor:v.neutral_darkest,backgroundColor:v.neutral_lighter,hintTextColor:v.neutral_dark,placeholderTextColor:v.neutral_dark,borderColor:v.transparent,borderRadius:8,borderWidth:3},focus:{textColor:v.neutral_darkest,backgroundColor:v.neutral_lighter,hintTextColor:v.neutral_dark,placeholderTextColor:v.neutral_dark,borderColor:v.primary_darker,borderRadius:8,borderWidth:3},disabled:{textColor:v.neutral_dark,backgroundColor:v.neutral_base,hintTextColor:v.neutral_dark,placeholderTextColor:v.neutral_darker,borderColor:v.neutral_base,borderRadius:8,borderWidth:3},error:{textColor:v.neutral_darkest,backgroundColor:v.neutral_lighter,hintTextColor:v.error_dark,placeholderTextColor:v.neutral_dark,borderColor:v.error_dark,borderRadius:8,borderWidth:3}},button:{small:{borderRadius:4},medium:{borderRadius:8},large:{borderRadius:8},primary:{textColor:v.neutral_darkest,backgroundColor:v.primary_base,borderColor:v.transparent,borderWidth:0},secondary:{textColor:v.primary_darker,backgroundColor:v.primary_lightest,borderColor:v.transparent,borderWidth:0},text:{textColor:v.primary_base,backgroundColor:"unset",borderColor:v.primary_base,borderWidth:1},disabled:{textColor:v.neutral_dark,backgroundColor:v.neutral_base,borderColor:v.transparent,borderWidth:0}},divider:{color:v.neutral_base,variant:"dashed",size:1},card:{padding:12,backgroundColor:v.neutral_light,borderWidth:0,borderStyle:"none",borderColor:v.transparent,borderRadius:16},qrCode:{padding:16,backgroundColor:v.neutral_lightest,borderWidth:1,borderStyle:"solid",borderColor:v.primary_base,borderRadius:16},badge:{default:{padding:"2px 6px",textColor:v.neutral_dark,backgroundColor:v.neutral_light,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4},highlight:{padding:"2px 6px",textColor:v.primary_dark,backgroundColor:v.primary_lightest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4},error:{padding:"2px 6px",textColor:v.error_dark,backgroundColor:v.error_lightest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4},success:{padding:"2px 6px",textColor:v.success_dark,backgroundColor:v.success_lightest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4},warning:{padding:"2px 6px",textColor:v.warning_darker,backgroundColor:v.warning_lightest,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:4}},timer:{padding:"4px 8px",textColor:v.error_dark,backgroundColor:v.warning_light,borderWidth:0,borderStyle:"none",borderColor:"unset",borderRadius:12},apFontFamily:Et.poppins,apPrimaryColor:v.primary_base,apButtonPrimaryBgColor:v.primary_base,apButtonPrimaryTxtColor:v.neutral_darkest,apButtonSecondaryBgColor:v.primary_lightest,apButtonSecondaryTxtColor:v.primary_dark,apButtonTextTxtColor:v.primary_dark,apButtonDisableBgColor:v.neutral_base,apButtonDisableTextColor:v.neutral_dark},qh=["production","sandbox"],Gh=["light","dark"],Kh=["en","pt","es"],Yh=["iso","symbol"],fi=async e=>navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(e).catch(t=>{console.error("Error to copy:",t)}):new Promise((t,n)=>{const r=document.createElement("textarea");r.value=e,r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")?t():n(new Error("Failed to copy text using execCommand"))}catch(s){n(s)}finally{document.body.removeChild(r)}}),Zh=async(e,t,n)=>{if(navigator.share)try{const r={title:e,text:t,...n&&{url:n}};await navigator.share(r)}catch(r){console.error("Failed to share information:",r)}else{console.warn("Web Share API not supported");const r=`${e} ${t}${n?` ${n}`:""}`;await fi(r)}};function Hr(e,t,n){return t.includes(e)?e:n}const Jh=e=>e.toLowerCase().replace(/(?:^|[^a-zA-Z0-9]+)([a-zA-Z0-9])/g,(t,n,r)=>r===0?n.toLowerCase():n.toUpperCase()),Xh=e=>e.replace(/([a-z])([A-Z])/g,"$1_$2").replace(/[^a-zA-Z0-9]+/g,"_").toLowerCase(),Jc=e=>{const t=JSON.stringify(e);return btoa(t)},bn=Array.isArray,xt=e=>e!==null&&typeof e=="object"&&!bn(e),jr=e=>Object.entries(e).reduce((t,[n,r])=>({...t,[Jh(n)]:xt(r)?jr(r):bn(r)?r.map(s=>xt(s)?jr(s):s):r}),{}),Qh=e=>{if(bn(e))return e.map(t=>xt(t)?jr(t):t);throw new Error("Input is not an array")},Wr=e=>Object.entries(e).reduce((t,[n,r])=>({...t,[Xh(n)]:xt(r)?Wr(r):bn(r)?r.map(s=>xt(s)?Wr(s):s):r}),{}),em=e=>{if(bn(e))return e.map(t=>xt(t)?Wr(t):t);throw new Error("Input is not an array")},Xc=(e,t)=>bn(e)?t==="snake_case-to-camelCase"?Qh(e):em(e):xt(e)?t==="snake_case-to-camelCase"?jr(e):Wr(e):e,Qc=(e,t)=>{if(!t)return e;const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const s=t[r],i=e[r];xt(s)&&xt(i)?n[r]=Qc(i,s):s!==void 0&&(n[r]=s)}return n},tm={light:Zc,dark:Wh},qt=class qt{static init(t){const n=Hr(t==null?void 0:t.theme,Gh,"light");qt.currentTheme=n,qt.styles=Qc(tm[n],t==null?void 0:t.styles)}static getStyles(){return qt.styles}static getTheme(){return qt.currentTheme}};_(qt,"currentTheme","light"),_(qt,"styles",Zc);let V=qt;class te{constructor({tag:t,elementId:n,styles:r}){_(this,"element");if(this.element=document.createElement(t),n&&this.element.setAttribute("id",n),r){const s=V.getStyles(),i=r(s);this.element.className=i}}addStyleClass(t){this.element.classList.add(t)}render(t){t instanceof te?t.element.appendChild(this.element):t.appendChild(this.element)}destroy(){this.element.parentElement&&this.element.parentElement.removeChild(this.element)}}function nm(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function rm(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sm=function(){function e(n){var r=this;this._insertTag=function(s){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,i),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rm(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=nm(s);try{i.insertRule(r,i.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},e}(),xe="-ms-",qr="-moz-",K="-webkit-",el="comm",hi="rule",mi="decl",im="@import",tl="@keyframes",om="@layer",am=Math.abs,Gr=String.fromCharCode,cm=Object.assign;function lm(e,t){return ve(e,0)^45?(((t<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}function nl(e){return e.trim()}function um(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,n){return e.replace(t,n)}function gi(e,t){return e.indexOf(t)}function ve(e,t){return e.charCodeAt(t)|0}function nr(e,t,n){return e.slice(t,n)}function ft(e){return e.length}function bi(e){return e.length}function Kr(e,t){return t.push(e),e}function dm(e,t){return e.map(t).join("")}var Yr=1,yn=1,rl=0,Ne=0,pe=0,wn="";function Zr(e,t,n,r,s,i,o){return{value:e,root:t,parent:n,type:r,props:s,children:i,line:Yr,column:yn,length:o,return:""}}function rr(e,t){return cm(Zr("",null,null,"",null,null,0),e,{length:-e.length},t)}function pm(){return pe}function fm(){return pe=Ne>0?ve(wn,--Ne):0,yn--,pe===10&&(yn=1,Yr--),pe}function ze(){return pe=Ne<rl?ve(wn,Ne++):0,yn++,pe===10&&(yn=1,Yr++),pe}function ht(){return ve(wn,Ne)}function Jr(){return Ne}function sr(e,t){return nr(wn,e,t)}function ir(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sl(e){return Yr=yn=1,rl=ft(wn=e),Ne=0,[]}function il(e){return wn="",e}function Xr(e){return nl(sr(Ne-1,yi(e===91?e+2:e===40?e+1:e)))}function hm(e){for(;(pe=ht())&&pe<33;)ze();return ir(e)>2||ir(pe)>3?"":" "}function mm(e,t){for(;--t&&ze()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return sr(e,Jr()+(t<6&&ht()==32&&ze()==32))}function yi(e){for(;ze();)switch(pe){case e:return Ne;case 34:case 39:e!==34&&e!==39&&yi(pe);break;case 40:e===41&&yi(e);break;case 92:ze();break}return Ne}function gm(e,t){for(;ze()&&e+pe!==57;)if(e+pe===84&&ht()===47)break;return"/*"+sr(t,Ne-1)+"*"+Gr(e===47?e:ze())}function bm(e){for(;!ir(ht());)ze();return sr(e,Ne)}function ym(e){return il(Qr("",null,null,null,[""],e=sl(e),0,[0],e))}function Qr(e,t,n,r,s,i,o,a,c){for(var l=0,u=0,d=o,p=0,h=0,f=0,m=1,g=1,y=1,x=0,w="",C=s,P=i,R=r,b=w;g;)switch(f=x,x=ze()){case 40:if(f!=108&&ve(b,d-1)==58){gi(b+=Y(Xr(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:b+=Xr(x);break;case 9:case 10:case 13:case 32:b+=hm(f);break;case 92:b+=mm(Jr()-1,7);continue;case 47:switch(ht()){case 42:case 47:Kr(wm(gm(ze(),Jr()),t,n),c);break;default:b+="/"}break;case 123*m:a[l++]=ft(b)*y;case 125*m:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+u:y==-1&&(b=Y(b,/\f/g,"")),h>0&&ft(b)-d&&Kr(h>32?al(b+";",r,n,d-1):al(Y(b," ","")+";",r,n,d-2),c);break;case 59:b+=";";default:if(Kr(R=ol(b,t,n,l,u,s,a,w,C=[],P=[],d),i),x===123)if(u===0)Qr(b,t,R,R,C,i,d,a,P);else switch(p===99&&ve(b,3)===110?100:p){case 100:case 108:case 109:case 115:Qr(e,R,R,r&&Kr(ol(e,R,R,0,0,s,a,w,s,C=[],d),P),s,P,d,a,r?C:P);break;default:Qr(b,R,R,R,[""],P,0,a,P)}}l=u=h=0,m=y=1,w=b="",d=o;break;case 58:d=1+ft(b),h=f;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&fm()==125)continue}switch(b+=Gr(x),x*m){case 38:y=u>0?1:(b+="\f",-1);break;case 44:a[l++]=(ft(b)-1)*y,y=1;break;case 64:ht()===45&&(b+=Xr(ze())),p=ht(),u=d=ft(w=b+=bm(Jr())),x++;break;case 45:f===45&&ft(b)==2&&(m=0)}}return i}function ol(e,t,n,r,s,i,o,a,c,l,u){for(var d=s-1,p=s===0?i:[""],h=bi(p),f=0,m=0,g=0;f<r;++f)for(var y=0,x=nr(e,d+1,d=am(m=o[f])),w=e;y<h;++y)(w=nl(m>0?p[y]+" "+x:Y(x,/&\f/g,p[y])))&&(c[g++]=w);return Zr(e,t,n,s===0?hi:a,c,l,u)}function wm(e,t,n){return Zr(e,t,n,el,Gr(pm()),nr(e,2,-2),0)}function al(e,t,n,r){return Zr(e,t,n,mi,nr(e,0,r),nr(e,r+1,-1),r)}function vn(e,t){for(var n="",r=bi(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function vm(e,t,n,r){switch(e.type){case om:if(e.children.length)break;case im:case mi:return e.return=e.return||e.value;case el:return"";case tl:return e.return=e.value+"{"+vn(e.children,r)+"}";case hi:e.value=e.props.join(",")}return ft(n=vn(e.children,r))?e.return=e.value+"{"+n+"}":""}function _m(e){var t=bi(e);return function(n,r,s,i){for(var o="",a=0;a<t;a++)o+=e[a](n,r,s,i)||"";return o}}function Sm(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Em=function(t,n,r){for(var s=0,i=0;s=i,i=ht(),s===38&&i===12&&(n[r]=1),!ir(i);)ze();return sr(t,Ne)},xm=function(t,n){var r=-1,s=44;do switch(ir(s)){case 0:s===38&&ht()===12&&(n[r]=1),t[r]+=Em(Ne-1,n,r);break;case 2:t[r]+=Xr(s);break;case 4:if(s===44){t[++r]=ht()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Gr(s)}while(s=ze());return t},Im=function(t,n){return il(xm(sl(t),n))},cl=new WeakMap,Tm=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,s=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!cl.get(r))&&!s){cl.set(t,!0);for(var i=[],o=Im(n,i),a=r.props,c=0,l=0;c<o.length;c++)for(var u=0;u<a.length;u++,l++)t.props[l]=i[c]?o[c].replace(/&\f/g,a[u]):a[u]+" "+o[c]}}},Rm=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ll(e,t){switch(lm(e,t)){case 5103:return K+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return K+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return K+e+qr+e+xe+e+e;case 6828:case 4268:return K+e+xe+e+e;case 6165:return K+e+xe+"flex-"+e+e;case 5187:return K+e+Y(e,/(\w+).+(:[^]+)/,K+"box-$1$2"+xe+"flex-$1$2")+e;case 5443:return K+e+xe+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return K+e+xe+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return K+e+xe+Y(e,"shrink","negative")+e;case 5292:return K+e+xe+Y(e,"basis","preferred-size")+e;case 6060:return K+"box-"+Y(e,"-grow","")+K+e+xe+Y(e,"grow","positive")+e;case 4554:return K+Y(e,/([^-])(transform)/g,"$1"+K+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,K+"$1"),/(image-set)/,K+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,K+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,K+"box-pack:$3"+xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+K+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,K+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ft(e)-1-t>6)switch(ve(e,t+1)){case 109:if(ve(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+qr+(ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gi(e,"stretch")?ll(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ve(e,t+1)!==115)break;case 6444:switch(ve(e,ft(e)-3-(~gi(e,"!important")&&10))){case 107:return Y(e,":",":"+K)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+(ve(e,14)===45?"inline-":"")+"box$3$1"+K+"$2$3$1"+xe+"$2box$3")+e}break;case 5936:switch(ve(e,t+11)){case 114:return K+e+xe+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+xe+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+xe+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+xe+e+e}return e}var Am=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case mi:t.return=ll(t.value,t.length);break;case tl:return vn([rr(t,{value:Y(t.value,"@","@"+K)})],s);case hi:if(t.length)return dm(t.props,function(i){switch(um(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([rr(t,{props:[Y(i,/:(read-\w+)/,":"+qr+"$1")]})],s);case"::placeholder":return vn([rr(t,{props:[Y(i,/:(plac\w+)/,":"+K+"input-$1")]}),rr(t,{props:[Y(i,/:(plac\w+)/,":"+qr+"$1")]}),rr(t,{props:[Y(i,/:(plac\w+)/,xe+"input-$1")]})],s)}return""})}},km=[Am],Om=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var s=t.stylisPlugins||km,i={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var c,l=[Tm,Rm];{var u,d=[vm,Sm(function(m){u.insert(m)})],p=_m(l.concat(s,d)),h=function(g){return vn(ym(g),p)};c=function(g,y,x,w){u=x,h(g?g+"{"+y.styles+"}":y.styles),w&&(f.inserted[y.name]=!0)}}var f={key:n,sheet:new sm({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return f.sheet.hydrate(a),f};function Pm(e){for(var t=0,n,r=0,s=e.length;s>=4;++r,s-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Lm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Nm=/[A-Z]|^ms/g,Mm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ul=function(t){return t.charCodeAt(1)===45},dl=function(t){return t!=null&&typeof t!="boolean"},wi=Cm(function(e){return ul(e)?e:e.replace(Nm,"-$&").toLowerCase()}),pl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mm,function(r,s,i){return Lt={name:s,styles:i,next:Lt},s})}return Lm[t]!==1&&!ul(t)&&typeof n=="number"&&n!==0?n+"px":n};function es(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Lt={name:s.name,styles:s.styles,next:Lt},s.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Lt={name:o.name,styles:o.styles,next:Lt},o=o.next;var a=i.styles+";";return a}return Dm(e,t,n)}}var c=n;if(t==null)return c;var l=t[c];return l!==void 0?l:c}function Dm(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=es(e,t,n[s])+";";else for(var i in n){var o=n[i];if(typeof o!="object"){var a=o;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":dl(a)&&(r+=wi(i)+":"+pl(i,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)dl(o[c])&&(r+=wi(i)+":"+pl(i,o[c])+";");else{var l=es(e,t,o);switch(i){case"animation":case"animationName":{r+=wi(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var fl=/label:\s*([^\s;{]+)\s*(;|$)/g,Lt;function vi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,s="";Lt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,s+=es(n,t,i);else{var o=i;s+=o[0]}for(var a=1;a<e.length;a++)if(s+=es(n,t,e[a]),r){var c=i;s+=c[a]}fl.lastIndex=0;for(var l="",u;(u=fl.exec(s))!==null;)l+="-"+u[1];var d=Pm(s)+l;return{name:d,styles:s,next:Lt}}function hl(e,t,n){var r="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(r+=s+" ")}),r}var Fm=function(t,n,r){var s=t.key+"-"+n.name;t.registered[s]===void 0&&(t.registered[s]=n.styles)},Bm=function(t,n,r){Fm(t,n);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+s:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function ml(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function gl(e,t,n){var r=[],s=hl(e,r,n);return r.length<2?n:s+t(r)}var Um=function(t){var n=Om(t);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var d=vi(l,n.registered,void 0);return Bm(n,d),n.key+"-"+d.name},s=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var d=vi(l,n.registered),p="animation-"+d.name;return ml(n,{name:d.name,styles:"@keyframes "+p+"{"+d.styles+"}"}),p},i=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];var d=vi(l,n.registered);ml(n,d)},o=function(){for(var c=arguments.length,l=new Array(c),u=0;u<c;u++)l[u]=arguments[u];return gl(n.registered,r,$m(l))};return{css:r,cx:o,injectGlobal:i,keyframes:s,hydrate:function(c){c.forEach(function(l){n.inserted[l]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:hl.bind(null,n.registered),merge:gl.bind(null,n.registered,r)}},$m=function e(t){for(var n="",r=0;r<t.length;r++){var s=t[r];if(s!=null){var i=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))i=e(s);else{i="";for(var o in s)s[o]&&o&&(i&&(i+=" "),i+=o)}break}default:i=s}i&&(n&&(n+=" "),n+=i)}}return n},_i=Um({key:"css"}),Vm=_i.cx,or=_i.keyframes,W=_i.css;const zm=or` 100% { transform: rotate(360deg); } `,Hm=or` 0% { clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0); } 25% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0); } 50% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%); } 75% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%); } 100% { clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0); } `,jm=or` 100% { transform: rotate(1turn); } `,Wm=(e,t)=>W` width: ${e}px; height: ${e}px; border-radius: 50%; position: relative; animation: ${zm} 1s linear infinite; &::before { content: ''; box-sizing: border-box; position: absolute; inset: 0px; border-radius: 50%; border: 2.5px solid ${t}; animation: ${Hm} 2s linear infinite; } `,qm=(e,t)=>W` width: ${e}px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(farthest-side, ${t} 94%, transparent) top/8px 8px no-repeat, conic-gradient(transparent 30%, ${t}); mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0); animation: ${jm} 1s infinite linear; `;class It extends te{constructor({size:t=24,color:n="currentColor",variant:r="inline"}){super({tag:r==="inline"?"span":"div",styles:()=>r==="inline"?Wm(t,n):qm(t,n)})}}const Gm=(e,t)=>W` font-family: ${e.fontFamily}; color: ${(t==null?void 0:t.color)||e.textColor}; font-size: ${t.size}px; font-weight: ${t.weight}; text-align: ${t.align}; line-height: ${t.lineHeight}px; text-transform: ${t.uppercase?"uppercase":"none"}; `;class z extends te{constructor({text:t,variant:n="span",weight:r=500,size:s=12,lineHeight:i=18,align:o="left",color:a,uppercase:c=!1}){const l={size:s,weight:r,lineHeight:i,align:o,color:a,uppercase:c};super({tag:n,styles:u=>Gm(u,l)}),this.element.textContent=t}}const Km={astropay_logo:{svg:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="Logo"><path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M15.166 10.7383C16.0308 10.7383 16.8793 10.8059 17.7074 10.9372L19.7866 16.0843C18.3684 15.4763 16.8067 15.1396 15.166 15.1396C11.4591 15.1396 8.154 16.8578 6.00304 19.541H0.786621C3.45841 14.3156 8.8949 10.7383 15.166 10.7383Z" fill="#143534"/><path id="Vector_2" fill-rule="evenodd" clip-rule="evenodd" d="M13.3258 0.101402L17.0783 9.37359C16.4499 9.30594 15.8109 9.27089 15.1645 9.27089C14.2199 9.27089 13.2932 9.34506 12.3884 9.48851L10.9588 5.95031L9.19826 10.3068C6.78974 11.1741 4.62493 12.5515 2.83423 14.3088L8.57474 0.100586H13.3258V0.101402Z" fill="#151E1D"/></g></svg>'},alert_line:{svg:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 8C12.5523 8 13 8.44772 13 9V13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13V9C11 8.44772 11.4477 8 12 8Z" fill="currentColor"/><path d="M12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.7009 3.14771C11.2783 2.14771 12.7217 2.1477 13.299 3.1477L21.933 18.1022C22.5103 19.1022 21.7887 20.3522 20.634 20.3522H3.36601C2.21131 20.3522 1.48962 19.1022 2.06697 18.1022L10.7009 3.14771ZM12 4.8977L4.23203 18.3522H19.7679L12 4.8977Z" fill="currentColor"/></svg>'},arrow_right_line:{svg:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.0626 5.63603L20.7194 11.2929C21.1099 11.6834 21.1099 12.3166 20.7194 12.7071L15.0626 18.364C14.672 18.7545 14.0389 18.7545 13.6483 18.364C13.2578 17.9734 13.2578 17.3403 13.6483 16.9497L17.5981 13H4.35547C3.80318 13 3.35547 12.5523 3.35547 12C3.35547 11.4477 3.80318 11 4.35547 11H17.5981L13.6483 7.05025C13.2578 6.65972 13.2578 6.02656 13.6483 5.63603C14.0389 5.24551 14.672 5.24551 15.0626 5.63603Z" fill="currentColor"/></svg>'},arrow_down_line:{svg:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.0626 15.7071C12.6721 16.0976 12.0389 16.0976 11.6484 15.7071L5.99151 10.0502C5.60098 9.6597 5.60098 9.02653 5.99151 8.63601C6.38203 8.24549 7.0152 8.24549 7.40572 8.63601L12.3555 13.5858L17.3052 8.63601C17.6957 8.24549 18.3289 8.24549 18.7194 8.63601C19.11 9.02653 19.11 9.6597 18.7194 10.0502L13.0626 15.7071Z" fill="currentColor"/></svg>'},bank_card_line:{svg:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.3555 13C13.8032 13 13.3555 13.4477 13.3555 14C13.3555 14.5523 13.8032 15 14.3555 15H17.3555C17.9078 15 18.3555 14.5523 18.3555 14C18.3555 13.4477 17.9078 13 17.3555 13H14.3555Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.35547 7C2.35547 5.34315 3.69861 4 5.35547 4H19.3555C21.0123 4 22.3555 5.34315 22.3555 7V17C22.3555 18.6569 21.0123 20 19.3555 20H5.35547C3.69861 20 2.35547 18.6569 2.35547 17V7ZM5.35547 6C4.80318 6 4.35547 6.44772 4.35547 7V8H20.3555V7C20.3555 6.44772 19.9078 6 19.3555 6H5.35547ZM4.35547 17V10H20.3555V17C20.3555 17.5523 19.9078 18 19.3555 18H5.35547C4.80318 18 4.35547 17.5523 4.35547 17Z" fill="currentColor"/></svg>'},check_circle_line:{svg:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.9496 9.79545C17.3401 9.40493 17.3401 8.77176 16.9496 8.38124C16.5591 7.99071 15.9259 7.99071 15.5354 8.38124L10.5856 13.331L8.46431 11.2097C8.07379 10.8191 7.44063 10.8191 7.0501 11.2097C6.65958 11.6002 6.65958 12.2334 7.0501 12.6239L9.80782 15.3816C10.2374 15.8112 10.9339 15.8112 11.3635 15.3816L16.9496 9.79545Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12Z" fill="currentColor"/></svg>'},close_circle_line:{svg:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.46452 8.46443C8.85505 8.07391 9.48821 8.07391 9.87874 8.46443L12 10.5857L14.1213 8.46441C14.5118 8.07388 15.145 8.07388 15.5355 8.46441C15.926 8.85493 15.926 9.4881 15.5355 9.87862L13.4142 11.9999L15.5356 14.1213C15.9261 14.5118 15.9261 15.145 15.5356 15.5355C15.1451 15.926 14.5119 15.926 14.1214 15.5355L12 13.4141L9.87864 15.5355C9.48812 15.926 8.85496 15.926 8.46443 15.5355C8.07391 15.145 8.07391 14.5118 8.46443 14.1213L10.5858 11.9999L8.46452 9.87864C8.074 9.48812 8.074 8.85496 8.46452 8.46443Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4Z" fill="currentColor"/></svg>'},copy_2_line:{svg:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.3555 2C20.46 2 21.3555 2.89543 21.3555 4V16C21.3555 17.1046 20.46 18 19.3555 18H17.3555V20C17.3555 21.1046 16.46 22 15.3555 22H5.35547C4.2509 22 3.35547 21.1046 3.35547 20V8C3.35547 6.89543 4.2509 6 5.35547 6H7.35547V4C7.35547 2.89543 8.2509 2 9.35547 2H19.3555ZM9.35547 6H15.3555C16.46 6 17.3555 6.89543 17.3555 8V16H19.3555V4L9.35547 4V6ZM5.35547 8L15.3555 8V20H5.35547V8Z" fill="currentColor"/></svg>'},lock_line:{svg:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 12C11.4477 12 11 12.4477 11 13V17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17V13C13 12.4477 12.5523 12 12 12Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6 8C6 4.68629 8.68629 2 12 2C15.3137 2 18 4.68629 18 8H19C20.1046 8 21 8.89543 21 10V20C21 21.1046 20.1046 22 19 22H5C3.89543 22 3 21.1046 3 20V10C3 8.89543 3.89543 8 5 8H6ZM12 4C14.2091 4 16 5.79086 16 8H8C8 5.79086 9.79086 4 12 4ZM5 10H19V20H5V10Z" fill="currentColor"/></svg>'},notification_fill:{svg:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.9998 19C15 19.5046 14.8094 19.9906 14.4664 20.3605C14.1233 20.7305 13.653 20.9572 13.1498 20.995L12.9998 21H10.9998C10.4953 21.0002 10.0093 20.8096 9.6393 20.4665C9.26932 20.1234 9.04269 19.6532 9.00485 19.15L8.99985 19H14.9998ZM11.9998 2C13.8148 1.99997 15.5589 2.70489 16.8641 3.96607C18.1693 5.22726 18.9336 6.94609 18.9958 8.76L18.9998 9V12.764L20.8218 16.408C20.9014 16.567 20.9412 16.7429 20.9378 16.9206C20.9345 17.0984 20.8881 17.2727 20.8027 17.4286C20.7173 17.5845 20.5953 17.7174 20.4473 17.8158C20.2993 17.9143 20.1297 17.9754 19.9528 17.994L19.8378 18H4.16185C3.98401 18.0001 3.80882 17.957 3.65127 17.8745C3.49372 17.792 3.35853 17.6725 3.25727 17.5264C3.156 17.3802 3.0917 17.2116 3.06985 17.0351C3.04801 16.8586 3.06928 16.6795 3.13185 16.513L3.17785 16.408L4.99985 12.764V9C4.99985 7.14348 5.73735 5.36301 7.0501 4.05025C8.36286 2.7375 10.1433 2 11.9998 2Z" fill="currentColor"/></svg>'},payment_master:{svg:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 7.2832H9.75V16.7176H15V7.2832Z" fill="#FF5F00"/><path d="M10.0842 12C10.0833 11.0914 10.2892 10.1945 10.6862 9.37725C11.0833 8.55999 11.661 7.84377 12.3758 7.2828C11.4907 6.58708 10.4277 6.15441 9.30827 6.03427C8.18888 5.91412 7.05827 6.11134 6.04566 6.60338C5.03305 7.09542 4.17931 7.86244 3.58201 8.81675C2.98471 9.77107 2.66797 10.8742 2.66797 12C2.66797 13.1258 2.98471 14.2289 3.58201 15.1832C4.17931 16.1376 5.03305 16.9046 6.04566 17.3966C7.05827 17.8887 8.18888 18.0859 9.30827 17.9657C10.4277 17.8456 11.4907 17.4129 12.3758 16.7172C11.661 16.1562 11.0833 15.44 10.6863 14.6227C10.2892 13.8055 10.0833 12.9086 10.0842 12Z" fill="#EB001B"/><path d="M22.0825 12C22.0826 13.1258 21.7659 14.2289 21.1686 15.1832C20.5713 16.1375 19.7176 16.9046 18.705 17.3966C17.6924 17.8887 16.5618 18.0859 15.4425 17.9657C14.3231 17.8456 13.2601 17.4129 12.375 16.7172C13.0891 16.1557 13.6664 15.4393 14.0634 14.6222C14.4604 13.8051 14.6666 12.9085 14.6666 12C14.6666 11.0915 14.4604 10.1949 14.0634 9.37781C13.6664 8.56067 13.0891 7.84433 12.375 7.2828C13.2601 6.58707 14.3231 6.15441 15.4425 6.03427C16.5618 5.91412 17.6924 6.11135 18.705 6.60339C19.7176 7.09544 20.5713 7.86246 21.1686 8.81677C21.7659 9.77109 22.0826 10.8742 22.0825 12Z" fill="#F79E1B"/><path d="M21.5111 15.7173V15.5241H21.589V15.4848H21.3906V15.5241H21.4685V15.7173H21.5111ZM21.8962 15.7173V15.4844H21.8354L21.7654 15.6446L21.6955 15.4844H21.6347V15.7173H21.6776V15.5416L21.7432 15.693H21.7877L21.8533 15.5412V15.7173H21.8962Z" fill="#F79E1B"/></svg>'},payment_visa:{svg:'<svg width="35" height="12" viewBox="0 0 35 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.0517 0.694249L8.55127 11.3334H5.61509L3.40042 2.84288C3.26597 2.31991 3.14906 2.12832 2.74014 1.908C2.07252 1.54912 0.970015 1.21242 0 1.00345L0.0658851 0.694249H4.79224C5.3947 0.694249 5.93628 1.09162 6.07306 1.77903L7.2427 7.93539L10.1334 0.694072H13.0517V0.694249ZM24.5562 7.86C24.568 5.05199 20.6374 4.8973 20.6645 3.64293C20.6729 3.26118 21.0397 2.85529 21.8427 2.75169C22.2407 2.70007 23.3373 2.66069 24.581 3.22783L25.0689 0.971697C24.4006 0.731325 23.5407 0.5 22.4707 0.5C19.7252 0.5 17.7931 1.94614 17.7768 4.01688C17.7591 5.54853 19.1559 6.40322 20.2083 6.91217C21.2909 7.43336 21.6542 7.76829 21.6501 8.23449C21.6424 8.94815 20.7866 9.26321 19.9868 9.27563C18.5907 9.29691 17.7806 8.90132 17.1348 8.60382L16.6313 10.9346C17.2803 11.2296 18.4783 11.4871 19.7202 11.5C22.6383 11.5 24.5472 10.0718 24.5562 7.86ZM31.806 11.3336H34.375L32.1326 0.694249H29.7614C29.2283 0.694249 28.7785 1.00185 28.5794 1.47479L24.4113 11.3334H27.328L27.907 9.74431H31.4707L31.806 11.3334V11.3336ZM28.7067 7.56393L30.1687 3.56931L31.0102 7.56393H28.7067ZM17.0204 0.694249L14.7235 11.3334H11.946L14.2437 0.694249H17.0204Z" fill="#B4C5C3"/></svg>'},refresh_2_fill:{svg:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.4981 12.184C1.4881 10.917 2.8451 10.197 3.8771 10.778L3.9901 10.848L6.6681 12.652C8.0921 13.612 7.2061 15.798 5.5681 15.567L5.4311 15.542L5.3221 15.518C5.93702 16.7185 6.86412 17.731 8.00586 18.4491C9.1476 19.1671 10.4618 19.5642 11.8101 19.5985C13.1584 19.6327 14.4911 19.303 15.6679 18.6439C16.8446 17.9848 17.822 17.0207 18.4971 15.853C18.5955 15.6823 18.7265 15.5326 18.8827 15.4126C19.0389 15.2925 19.2172 15.2043 19.4075 15.1532C19.5978 15.102 19.7962 15.0888 19.9916 15.1144C20.187 15.1399 20.3754 15.2037 20.5461 15.302C20.7168 15.4004 20.8665 15.5314 20.9866 15.6876C21.1067 15.8438 21.1948 16.0222 21.246 16.2124C21.2971 16.4027 21.3103 16.6012 21.2848 16.7965C21.2592 16.9919 21.1955 17.1803 21.0971 17.351C18.7801 21.371 13.9781 23.503 9.2821 22.244C7.06294 21.6494 5.09998 20.3434 3.69403 18.5264C2.28808 16.7093 1.5167 14.4814 1.4981 12.184ZM2.9041 6.85404C5.2201 2.83304 10.0221 0.70204 14.7181 1.95904C16.9373 2.55373 18.9002 3.85965 20.3062 5.67669C21.7121 7.49373 22.4835 9.72165 22.5021 12.019C22.5121 13.286 21.1551 14.006 20.1231 13.426L20.0101 13.356L17.3321 11.551C15.9081 10.592 16.7941 8.40604 18.4311 8.63704L18.5691 8.66204L18.6771 8.68504C18.062 7.48471 17.1347 6.47234 15.9929 5.75447C14.8511 5.03659 13.5368 4.63973 12.1885 4.60565C10.8402 4.57158 9.50758 4.90153 8.33093 5.56081C7.15427 6.22009 6.17706 7.18431 5.5021 8.35204C5.40669 8.52821 5.27695 8.68348 5.12054 8.80868C4.96414 8.93389 4.78423 9.02649 4.59145 9.08103C4.39867 9.13556 4.19692 9.15093 3.9981 9.12621C3.79928 9.1015 3.60743 9.03721 3.43387 8.93713C3.26031 8.83706 3.10855 8.70323 2.98756 8.54354C2.86656 8.38385 2.77879 8.20154 2.72941 8.00738C2.68003 7.81321 2.67005 7.61112 2.70005 7.41303C2.73005 7.21494 2.79944 7.02487 2.9041 6.85404Z" fill="currentColor"/></svg>'},system_pix:{svg:'<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.0143 15.4459C15.5042 15.4459 15.0245 15.2473 14.6638 14.8867L12.7139 12.9368C12.577 12.7995 12.3384 12.7999 12.2015 12.9368L10.2445 14.8939C9.8838 15.2544 9.40408 15.453 8.89404 15.453H8.50977L10.9794 17.9226C11.7507 18.6938 13.0012 18.6938 13.7725 17.9226L16.2491 15.4459H16.0143Z" fill="currentColor"/><path d="M8.89393 8.548C9.40397 8.548 9.88369 8.7466 10.2444 9.10711L12.2014 11.0645C12.3424 11.2055 12.5725 11.206 12.7138 11.0643L14.6637 9.11424C15.0244 8.75373 15.5041 8.55514 16.0141 8.55514H16.249L13.7724 6.07848C13.001 5.30717 11.7505 5.30717 10.9793 6.07848L8.50977 8.54801L8.89393 8.548Z" fill="currentColor"/><path d="M18.297 10.6042L16.8003 9.10752C16.7674 9.12072 16.7317 9.12896 16.694 9.12896H16.0135C15.6617 9.12896 15.3174 9.27165 15.0688 9.52042L13.1189 11.4703C12.9364 11.6528 12.6967 11.7441 12.4571 11.7441C12.2174 11.7441 11.9778 11.6528 11.7953 11.4705L9.83812 9.5133C9.58952 9.26447 9.24514 9.12183 8.89333 9.12183H8.05661C8.02092 9.12183 7.98757 9.11342 7.95608 9.10156L6.45348 10.6042C5.68217 11.3755 5.68217 12.6259 6.45348 13.3972L7.95602 14.8998C7.98757 14.8879 8.02092 14.8795 8.05661 14.8795H8.89333C9.24514 14.8795 9.58952 14.7369 9.83812 14.4881L11.7952 12.5311C12.1489 12.1776 12.7655 12.1775 13.1189 12.5312L15.0688 14.481C15.3174 14.7297 15.6617 14.8724 16.0135 14.8724H16.694C16.7317 14.8724 16.7674 14.8807 16.8003 14.8939L18.297 13.3972C19.0682 12.6259 19.0682 11.3755 18.297 10.6042" fill="currentColor"/></svg>'}},Ym={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},bl={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},ae={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Ae={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Nt={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class I{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const s=I.getVersionPrecision(t),i=I.getVersionPrecision(n);let o=Math.max(s,i),a=0;const c=I.map([t,n],l=>{const u=o-I.getVersionPrecision(l),d=l+new Array(u+1).join(".0");return I.map(d.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(a=o-Math.min(s,i)),o-=1;o>=a;){if(c[0][o]>c[1][o])return 1;if(c[0][o]===c[1][o]){if(o===a)return 0;o-=1}else if(c[0][o]<c[1][o])return-1}}static map(t,n){const r=[];let s;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(s=0;s<t.length;s+=1)r.push(n(t[s]));return r}static find(t,n){let r,s;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,s=t.length;r<s;r+=1){const i=t[r];if(n(i,r))return i}}static assign(t,...n){const r=t;let s,i;if(Object.assign)return Object.assign(t,...n);for(s=0,i=n.length;s<i;s+=1){const o=n[s];typeof o=="object"&&o!==null&&Object.keys(o).forEach(c=>{r[c]=o[c]})}return t}static getBrowserAlias(t){return Ym[t]}static getBrowserTypeByAlias(t){return bl[t]||""}}const ee=/version\/(\d+(\.?_?\d+)+)/i,Zm=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=I.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=I.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=I.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=I.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=I.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=I.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=I.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=I.getFirstMatch(ee,e)||I.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=I.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=I.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||I.getFirstMatch(ee,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=I.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=I.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=I.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=I.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=I.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=I.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=I.getFirstMatch(/silk\/(\d+(\