!function(t){"use strict";function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,c,"next",t)}function c(t){i(a,r,o,s,c,"throw",t)}s(void 0)}))}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n0&&I[0]<4?1:+(I[0]+I[1])),!R&&et&&(!(I=et.match(/Edge\/(\d+)/))||I[1]>=74)&&(I=et.match(/Chrome\/(\d+)/))&&(R=+I[1]);var at=R,st=at,ct=L,ut=w.String,lt=!!Object.getOwnPropertySymbols&&!ct((function(){var t=Symbol();return!ut(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&st&&st<41})),ft=lt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ht=w,dt=P.exports,pt=V,gt=J,vt=lt,yt=ft,mt=ht.Symbol,bt=dt("wks"),wt=yt?mt.for||mt:mt&&mt.withoutSetter||gt,Pt=function(t){return pt(bt,t)||(bt[t]=vt&&pt(mt,t)?mt[t]:wt("Symbol."+t)),bt[t]},St={};St[Pt("toStringTag")]="z";var xt="[object z]"===String(St),Et="object"==typeof document&&document.all,Ct={all:Et,IS_HTMLDDA:void 0===Et&&void 0!==Et},Ot=Ct.all,kt=Ct.IS_HTMLDDA?function(t){return"function"==typeof t||t===Ot}:function(t){return"function"==typeof t},At={},It=!L((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Rt=kt,Lt=Ct.all,jt=Ct.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Rt(t)||t===Lt}:function(t){return"object"==typeof t?null!==t:Rt(t)},Ut=jt,_t=w.document,Tt=Ut(_t)&&Ut(_t.createElement),Mt=function(t){return Tt?_t.createElement(t):{}},Nt=Mt,Dt=!It&&!L((function(){return 7!=Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),Ft=It&&L((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Bt=jt,Ht=String,Gt=TypeError,Wt=function(t){if(Bt(t))return t;throw Gt(Ht(t)+" is not an object")},zt=j,$t=Function.prototype.call,qt=zt?$t.bind($t):function(){return $t.apply($t,arguments)},Vt=w,Kt=kt,Yt=function(t,e){return arguments.length<2?(n=Vt[t],Kt(n)?n:void 0):Vt[t]&&Vt[t][e];var n},Xt=N({}.isPrototypeOf),Qt=Yt,Jt=kt,Zt=Xt,te=Object,ee=ft?function(t){return"symbol"==typeof t}:function(t){var e=Qt("Symbol");return Jt(e)&&Zt(e.prototype,te(t))},ne=String,re=function(t){try{return ne(t)}catch(e){return"Object"}},oe=kt,ie=re,ae=TypeError,se=function(t){if(oe(t))return t;throw ae(ie(t)+" is not a function")},ce=se,ue=D,le=function(t,e){var n=t[e];return ue(n)?void 0:ce(n)},fe=qt,he=kt,de=jt,pe=TypeError,ge=qt,ve=jt,ye=ee,me=le,be=function(t,e){var n,r;if("string"===e&&he(n=t.toString)&&!de(r=fe(n,t)))return r;if(he(n=t.valueOf)&&!de(r=fe(n,t)))return r;if("string"!==e&&he(n=t.toString)&&!de(r=fe(n,t)))return r;throw pe("Can't convert object to primitive value")},we=TypeError,Pe=Pt("toPrimitive"),Se=function(t,e){if(!ve(t)||ye(t))return t;var n,r=me(t,Pe);if(r){if(void 0===e&&(e="default"),n=ge(r,t,e),!ve(n)||ye(n))return n;throw we("Can't convert object to primitive value")}return void 0===e&&(e="number"),be(t,e)},xe=ee,Ee=function(t){var e=Se(t,"string");return xe(e)?e:e+""},Ce=It,Oe=Dt,ke=Ft,Ae=Wt,Ie=Ee,Re=TypeError,Le=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Ue="enumerable",_e="configurable",Te="writable";At.f=Ce?ke?function(t,e,n){if(Ae(t),e=Ie(e),Ae(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Te in n&&!n[Te]){var r=je(t,e);r&&r[Te]&&(t[e]=n.value,n={configurable:_e in n?n[_e]:r[_e],enumerable:Ue in n?n[Ue]:r[Ue],writable:!1})}return Le(t,e,n)}:Le:function(t,e,n){if(Ae(t),e=Ie(e),Ae(n),Oe)try{return Le(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Re("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Me={exports:{}},Ne=It,De=V,Fe=Function.prototype,Be=Ne&&Object.getOwnPropertyDescriptor,He=De(Fe,"name"),Ge={EXISTS:He,PROPER:He&&"something"===function(){}.name,CONFIGURABLE:He&&(!Ne||Ne&&Be(Fe,"name").configurable)},We=kt,ze=k,$e=N(Function.toString);We(ze.inspectSource)||(ze.inspectSource=function(t){return $e(t)});var qe,Ve,Ke,Ye=ze.inspectSource,Xe=kt,Qe=w.WeakMap,Je=Xe(Qe)&&/native code/.test(String(Qe)),Ze=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},tn=At,en=Ze,nn=It?function(t,e,n){return tn.f(t,e,en(1,n))}:function(t,e,n){return t[e]=n,t},rn=P.exports,on=J,an=rn("keys"),sn=function(t){return an[t]||(an[t]=on(t))},cn={},un=Je,ln=w,fn=jt,hn=nn,dn=V,pn=k,gn=sn,vn=cn,yn="Object already initialized",mn=ln.TypeError,bn=ln.WeakMap;if(un||pn.state){var wn=pn.state||(pn.state=new bn);wn.get=wn.get,wn.has=wn.has,wn.set=wn.set,qe=function(t,e){if(wn.has(t))throw mn(yn);return e.facade=t,wn.set(t,e),e},Ve=function(t){return wn.get(t)||{}},Ke=function(t){return wn.has(t)}}else{var Pn=gn("state");vn[Pn]=!0,qe=function(t,e){if(dn(t,Pn))throw mn(yn);return e.facade=t,hn(t,Pn,e),e},Ve=function(t){return dn(t,Pn)?t[Pn]:{}},Ke=function(t){return dn(t,Pn)}}var Sn={set:qe,get:Ve,has:Ke,enforce:function(t){return Ke(t)?Ve(t):qe(t,{})},getterFor:function(t){return function(e){var n;if(!fn(e)||(n=Ve(e)).type!==t)throw mn("Incompatible receiver, "+t+" required");return n}}},xn=N,En=L,Cn=kt,On=V,kn=It,An=Ge.CONFIGURABLE,In=Ye,Rn=Sn.enforce,Ln=Sn.get,jn=String,Un=Object.defineProperty,_n=xn("".slice),Tn=xn("".replace),Mn=xn([].join),Nn=kn&&!En((function(){return 8!==Un((function(){}),"length",{value:8}).length})),Dn=String(String).split("String"),Fn=Me.exports=function(t,e,n){"Symbol("===_n(jn(e),0,7)&&(e="["+Tn(jn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!On(t,"name")||An&&t.name!==e)&&(kn?Un(t,"name",{value:e,configurable:!0}):t.name=e),Nn&&n&&On(n,"arity")&&t.length!==n.arity&&Un(t,"length",{value:n.arity});try{n&&On(n,"constructor")&&n.constructor?kn&&Un(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=Rn(t);return On(r,"source")||(r.source=Mn(Dn,"string"==typeof e?e:"")),t};Function.prototype.toString=Fn((function(){return Cn(this)&&Ln(this).source||In(this)}),"toString");var Bn=kt,Hn=At,Gn=Me.exports,Wn=E,zn=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Bn(n)&&Gn(n,i,r),r.global)o?t[e]=n:Wn(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(a){}o?t[e]=n:Hn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},$n=N,qn=$n({}.toString),Vn=$n("".slice),Kn=function(t){return Vn(qn(t),8,-1)},Yn=xt,Xn=kt,Qn=Kn,Jn=Pt("toStringTag"),Zn=Object,tr="Arguments"==Qn(function(){return arguments}()),er=Yn?Qn:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Zn(t),Jn))?n:tr?Qn(e):"Object"==(r=Qn(e))&&Xn(e.callee)?"Arguments":r},nr=er,rr=xt?{}.toString:function(){return"[object "+nr(this)+"]"};xt||zn(Object.prototype,"toString",rr,{unsafe:!0});var or={},ir={},ar={}.propertyIsEnumerable,sr=Object.getOwnPropertyDescriptor,cr=sr&&!ar.call({1:2},1);ir.f=cr?function(t){var e=sr(this,t);return!!e&&e.enumerable}:ar;var ur=L,lr=Kn,fr=Object,hr=N("".split),dr=ur((function(){return!fr("z").propertyIsEnumerable(0)}))?function(t){return"String"==lr(t)?hr(t,""):fr(t)}:fr,pr=dr,gr=H,vr=function(t){return pr(gr(t))},yr=It,mr=qt,br=ir,wr=Ze,Pr=vr,Sr=Ee,xr=V,Er=Dt,Cr=Object.getOwnPropertyDescriptor;or.f=yr?Cr:function(t,e){if(t=Pr(t),e=Sr(e),Er)try{return Cr(t,e)}catch(n){}if(xr(t,e))return wr(!mr(br.f,t,e),t[e])};var Or={},kr=Math.ceil,Ar=Math.floor,Ir=Math.trunc||function(t){var e=+t;return(e>0?Ar:kr)(e)},Rr=function(t){var e=+t;return e!=e||0===e?0:Ir(e)},Lr=Rr,jr=Math.max,Ur=Math.min,_r=function(t,e){var n=Lr(t);return n<0?jr(n+e,0):Ur(n,e)},Tr=Rr,Mr=Math.min,Nr=function(t){return t>0?Mr(Tr(t),9007199254740991):0},Dr=Nr,Fr=function(t){return Dr(t.length)},Br=vr,Hr=_r,Gr=Fr,Wr=function(t){return function(e,n,r){var o,i=Br(e),a=Gr(i),s=Hr(r,a);if(t&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===n)return t||s||0;return!t&&-1}},zr={includes:Wr(!0),indexOf:Wr(!1)},$r=V,qr=vr,Vr=zr.indexOf,Kr=cn,Yr=N([].push),Xr=function(t,e){var n,r=qr(t),o=0,i=[];for(n in r)!$r(Kr,n)&&$r(r,n)&&Yr(i,n);for(;e.length>o;)$r(r,n=e[o++])&&(~Vr(i,n)||Yr(i,n));return i},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jr=Xr,Zr=Qr.concat("length","prototype");Or.f=Object.getOwnPropertyNames||function(t){return Jr(t,Zr)};var to={};to.f=Object.getOwnPropertySymbols;var eo=Yt,no=Or,ro=to,oo=Wt,io=N([].concat),ao=eo("Reflect","ownKeys")||function(t){var e=no.f(oo(t)),n=ro.f;return n?io(e,n(t)):e},so=V,co=ao,uo=or,lo=At,fo=function(t,e,n){for(var r=co(e),o=lo.f,i=uo.f,a=0;ai;i++)if((s=y(t[i]))&&Mc(Gc,s))return s;return new Hc(!1)}r=Nc(t,o)}for(c=h?t.next:r.next;!(u=Lc(c,r)).done;){try{s=y(u.value)}catch(Pk){Fc(r,"throw",Pk)}if("object"==typeof s&&s&&Mc(Gc,s))return s}return new Hc(!1)},zc=Pt("iterator"),$c=!1;try{var qc=0,Vc={next:function(){return{done:!!qc++}},return:function(){$c=!0}};Vc[zc]=function(){return this},Array.from(Vc,(function(){throw 2}))}catch(Pk){}var Kc=$a,Yc=function(t,e){if(!e&&!$c)return!1;var n=!1;try{var r={};r[zc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(Pk){}return n},Xc=ss.CONSTRUCTOR||!Yc((function(t){Kc.all(t).then(void 0,(function(){}))})),Qc=qt,Jc=se,Zc=cs,tu=za,eu=Wc;Io({target:"Promise",stat:!0,forced:Xc},{all:function(t){var e=this,n=Zc.f(e),r=n.resolve,o=n.reject,i=tu((function(){var n=Jc(e.resolve),i=[],a=0,s=1;eu(t,(function(t){var c=a++,u=!1;s++,Qc(n,e,t).then((function(t){u||(u=!0,i[c]=t,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise}});var nu=Io,ru=ss.CONSTRUCTOR,ou=$a,iu=Yt,au=kt,su=zn,cu=ou&&ou.prototype;if(nu({target:"Promise",proto:!0,forced:ru,real:!0},{catch:function(t){return this.then(void 0,t)}}),au(ou)){var uu=iu("Promise").prototype.catch;cu.catch!==uu&&su(cu,"catch",uu,{unsafe:!0})}var lu=qt,fu=se,hu=cs,du=za,pu=Wc;Io({target:"Promise",stat:!0,forced:Xc},{race:function(t){var e=this,n=hu.f(e),r=n.reject,o=du((function(){var o=fu(e.resolve);pu(t,(function(t){lu(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var gu=qt,vu=cs;Io({target:"Promise",stat:!0,forced:ss.CONSTRUCTOR},{reject:function(t){var e=vu.f(this);return gu(e.reject,void 0,t),e.promise}});var yu=Wt,mu=jt,bu=cs,wu=Io,Pu=ss.CONSTRUCTOR,Su=function(t,e){if(yu(t),mu(e)&&e.constructor===t)return e;var n=bu.f(t);return(0,n.resolve)(e),n.promise};Yt("Promise"),wu({target:"Promise",stat:!0,forced:Pu},{resolve:function(t){return Su(this,t)}});var xu=er,Eu=String,Cu=function(t){if("Symbol"===xu(t))throw TypeError("Cannot convert a Symbol value to a string");return Eu(t)},Ou=Wt,ku=function(){var t=Ou(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Au=L,Iu=w.RegExp,Ru=Au((function(){var t=Iu("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Lu=Ru||Au((function(){return!Iu("a","y").sticky})),ju=Ru||Au((function(){var t=Iu("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),Uu={BROKEN_CARET:ju,MISSED_STICKY:Lu,UNSUPPORTED_Y:Ru},_u={},Tu=Xr,Mu=Qr,Nu=Object.keys||function(t){return Tu(t,Mu)},Du=It,Fu=Ft,Bu=At,Hu=Wt,Gu=vr,Wu=Nu;_u.f=Du&&!Fu?Object.defineProperties:function(t,e){Hu(t);for(var n,r=Gu(e),o=Wu(e),i=o.length,a=0;i>a;)Bu.f(t,n=o[a++],r[n]);return t};var zu,$u=Wt,qu=_u,Vu=Qr,Ku=cn,Yu=Fi,Xu=Mt,Qu="prototype",Ju="script",Zu=sn("IE_PROTO"),tl=function(){},el=function(t){return"<"+Ju+">"+t+""},nl=function(t){t.write(el("")),t.close();var e=t.parentWindow.Object;return t=null,e},rl=function(){try{zu=new ActiveXObject("htmlfile")}catch(Pk){}var t,e,n;rl="undefined"!=typeof document?document.domain&&zu?nl(zu):(e=Xu("iframe"),n="java"+Ju+":",e.style.display="none",Yu.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(el("document.F=Object")),t.close(),t.F):nl(zu);for(var r=Vu.length;r--;)delete rl[Qu][Vu[r]];return rl()};Ku[Zu]=!0;var ol=Object.create||function(t,e){var n;return null!==t?(tl[Qu]=$u(t),n=new tl,tl[Qu]=null,n[Zu]=t):n=rl(),void 0===e?n:qu.f(n,e)},il=L,al=w.RegExp,sl=il((function(){var t=al(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),cl=L,ul=w.RegExp,ll=cl((function(){var t=ul("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")})),fl=qt,hl=N,dl=Cu,pl=ku,gl=Uu,vl=P.exports,yl=ol,ml=Sn.get,bl=sl,wl=ll,Pl=vl("native-string-replace",String.prototype.replace),Sl=RegExp.prototype.exec,xl=Sl,El=hl("".charAt),Cl=hl("".indexOf),Ol=hl("".replace),kl=hl("".slice),Al=function(){var t=/a/,e=/b*/g;return fl(Sl,t,"a"),fl(Sl,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Il=gl.BROKEN_CARET,Rl=void 0!==/()??/.exec("")[1];(Al||Rl||Il||bl||wl)&&(xl=function(t){var e,n,r,o,i,a,s,c=this,u=ml(c),l=dl(t),f=u.raw;if(f)return f.lastIndex=c.lastIndex,e=fl(xl,f,l),c.lastIndex=f.lastIndex,e;var h=u.groups,d=Il&&c.sticky,p=fl(pl,c),g=c.source,v=0,y=l;if(d&&(p=Ol(p,"y",""),-1===Cl(p,"g")&&(p+="g"),y=kl(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==El(l,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",p)),Rl&&(n=new RegExp("^"+g+"$(?!\\s)",p)),Al&&(r=c.lastIndex),o=fl(Sl,d?n:c,y),d?o?(o.input=kl(o.input,v),o[0]=kl(o[0],v),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Al&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),Rl&&o&&o.length>1&&fl(Pl,o[0],n,(function(){for(i=1;i=s?t?"":void 0:(r=ql(i,a))<55296||r>56319||a+1===s||(o=ql(i,a+1))<56320||o>57343?t?$l(i,a):r:t?Vl(i,a,a+2):o-56320+(r-55296<<10)+65536}},Yl={codeAt:Kl(!1),charAt:Kl(!0)},Xl=Yl.charAt,Ql=function(t,e,n){return e+(n?Xl(t,e).length:1)},Jl=N,Zl=z,tf=Math.floor,ef=Jl("".charAt),nf=Jl("".replace),rf=Jl("".slice),of=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,af=/\$([$&'`]|\d{1,2})/g,sf=qt,cf=Wt,uf=kt,lf=Kn,ff=Ll,hf=TypeError,df=function(t,e){var n=t.exec;if(uf(n)){var r=sf(n,t,e);return null!==r&&cf(r),r}if("RegExp"===lf(t))return sf(ff,t,e);throw hf("RegExp#exec called on incompatible receiver")},pf=Li,gf=qt,vf=N,yf=Bl,mf=L,bf=Wt,wf=kt,Pf=D,Sf=Rr,xf=Nr,Ef=Cu,Cf=H,Of=Ql,kf=le,Af=function(t,e,n,r,o,i){var a=n+t.length,s=r.length,c=af;return void 0!==o&&(o=Zl(o),c=of),nf(i,c,(function(i,c){var u;switch(ef(c,0)){case"$":return"$";case"&":return t;case"`":return rf(e,0,n);case"'":return rf(e,a);case"<":u=o[rf(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>s){var f=tf(l/10);return 0===f?i:f<=s?void 0===r[f-1]?ef(c,1):r[f-1]+ef(c,1):i}u=r[l-1]}return void 0===u?"":u}))},If=df,Rf=Pt("replace"),Lf=Math.max,jf=Math.min,Uf=vf([].concat),_f=vf([].push),Tf=vf("".indexOf),Mf=vf("".slice),Nf="$0"==="a".replace(/./,"$0"),Df=!!/./[Rf]&&""===/./[Rf]("a","$0"),Ff=!mf((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}));yf("replace",(function(t,e,n){var r=Df?"$":"$0";return[function(t,n){var r=Cf(this),o=Pf(t)?void 0:kf(t,Rf);return o?gf(o,t,r,n):gf(e,Ef(r),t,n)},function(t,o){var i=bf(this),a=Ef(t);if("string"==typeof o&&-1===Tf(o,r)&&-1===Tf(o,"$<")){var s=n(e,i,a,o);if(s.done)return s.value}var c=wf(o);c||(o=Ef(o));var u=i.global;if(u){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var h=If(i,a);if(null===h)break;if(_f(f,h),!u)break;""===Ef(h[0])&&(i.lastIndex=Of(a,xf(i.lastIndex),l))}for(var d,p="",g=0,v=0;v=g&&(p+=Mf(a,g,m)+x,g=m+y.length)}return p+Mf(a,g)}]}),!Ff||!Nf||Df);var Bf=qt,Hf=V,Gf=Xt,Wf=ku,zf=RegExp.prototype,$f=function(t){var e=t.flags;return void 0!==e||"flags"in zf||Hf(t,"flags")||!Gf(zf,t)?e:Bf(Wf,t)},qf=Ge.PROPER,Vf=zn,Kf=Wt,Yf=Cu,Xf=L,Qf=$f,Jf="toString",Zf=RegExp.prototype[Jf],th=Xf((function(){return"/a/b"!=Zf.call({source:"a",flags:"b"})})),eh=qf&&Zf.name!=Jf;(th||eh)&&Vf(RegExp.prototype,Jf,(function(){var t=Kf(this);return"/"+Yf(t.source)+"/"+Yf(Qf(t))}),{unsafe:!0});var nh=Pt,rh=ol,oh=At.f,ih=nh("unscopables"),ah=Array.prototype;null==ah[ih]&&oh(ah,ih,{configurable:!0,value:rh(null)});var sh=function(t){ah[ih][t]=!0},ch=zr.includes,uh=sh;Io({target:"Array",proto:!0,forced:L((function(){return!Array(1).includes()}))},{includes:function(t){return ch(this,t,arguments.length>1?arguments[1]:void 0)}}),uh("includes");var lh=jt,fh=Kn,hh=Pt("match"),dh=function(t){var e;return lh(t)&&(void 0!==(e=t[hh])?!!e:"RegExp"==fh(t))},ph=dh,gh=TypeError,vh=function(t){if(ph(t))throw gh("The method doesn't accept regular expressions");return t},yh=Pt("match"),mh=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[yh]=!1,"/./"[t](e)}catch(r){}}return!1},bh=Io,wh=vh,Ph=H,Sh=Cu,xh=mh,Eh=N("".indexOf);bh({target:"String",proto:!0,forced:!xh("includes")},{includes:function(t){return!!~Eh(Sh(Ph(this)),Sh(wh(t)),arguments.length>1?arguments[1]:void 0)}});var Ch=qt,Oh=Wt,kh=D,Ah=Nr,Ih=Cu,Rh=H,Lh=le,jh=Ql,Uh=df;Bl("match",(function(t,e,n){return[function(e){var n=Rh(this),r=kh(e)?void 0:Lh(e,t);return r?Ch(r,e,n):new RegExp(e)[t](Ih(n))},function(t){var r=Oh(this),o=Ih(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return Uh(r,o);var a=r.unicode;r.lastIndex=0;for(var s,c=[],u=0;null!==(s=Uh(r,o));){var l=Ih(s[0]);c[u]=l,""===l&&(r.lastIndex=jh(o,Ah(r.lastIndex),a)),u++}return 0===u?null:c}]}));var _h=function(){function t(){s(this,t)}return u(t,null,[{key:"currentModel",value:function(){return this.getModel()}},{key:"getModel",value:function(){var t=void 0;if(null==this.iosVer&&(this.iosVer=parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||!1),this.iosVer>=12.2)return Th.IPhone_NotDetected;var e=window.devicePixelRatio;if(void 0===this.canvasEl&&(this.canvasEl=document.createElement("canvas")),this.canvasEl){var n=this.canvasEl.getContext("webgl")||this.canvasEl.getContext("experimental-webgl");if(n){var r=n.getExtension("WEBGL_debug_renderer_info");r&&(t=n.getParameter(r.UNMASKED_RENDERER_WEBGL))}}if(896!==window.screen.height||414!==window.screen.width||3!==window.devicePixelRatio&&2!==window.devicePixelRatio)if(812===window.screen.height&&375===window.screen.width)switch(t){default:case"Apple A11 GPU":return Th.IPhone_X;case"Apple A12 GPU":return Th.IPhone_XS}else if(736===window.screen.height&&414===window.screen.width&&3===window.devicePixelRatio)switch(t){default:case"Apple A8 GPU":return Th.IPhone_6_PLUS;case"Apple A9 GPU":return Th.IPhone_6S_PLUS;case"Apple A10 GPU":return Th.IPhone_7_PLUS;case"Apple A11 GPU":return Th.IPhone_8_PLUS}else if(667===window.screen.height&&375===window.screen.width&&3===window.devicePixelRatio)switch(t){default:case"Apple A8 GPU":return Th.IPhone_6_PLUS;case"Apple A9 GPU":return Th.IPhone_6S_PLUS;case"Apple A10 GPU":return Th.IPhone_7_PLUS;case"Apple A11 GPU":return Th.IPhone_8_PLUS}else if(667===window.screen.height&&375===window.screen.width&&2===window.devicePixelRatio)switch(t){default:case"Apple A8 GPU":return Th.IPhone_6;case"Apple A9 GPU":return Th.IPhone_6S;case"Apple A10 GPU":return Th.IPhone_7;case"Apple A11 GPU":return Th.IPhone_8}else if(window.screen.height/window.screen.width==1.775&&2==window.devicePixelRatio)switch(t){default:case"PowerVR SGX 543":return Th.IPhone_5;case"Apple A7 GPU":return Th.IPhone_5S;case"Apple A8 GPU":return Th.IPhone_6;case"Apple A9 GPU":return Th.IPhone_SE;case"Apple A10 GPU":return Th.IPhone_7;case"Apple A11 GPU":return Th.IPhone_8}else if(window.screen.height/window.screen.width==1.5&&2==window.devicePixelRatio)switch(t){default:case"PowerVR SGX 535":return Th.IPhone_4;case"PowerVR SGX 543":return Th.IPhone_4S}else{if(window.screen.height/window.screen.width!=1.5||1!=window.devicePixelRatio)return t&&t.match("Apple")&&this.iosVer?Th.IPhone:Th.Not_IPhone;switch(t){default:case"S5L8900":return Th.IPhone;case"ALP0298C05":return Th.IPhone_3GS}}else switch(e){default:case 2:return Th.IPhone_XR;case 3:return Th.IPhone_XS_Max}}}]),t}();l(_h,"iosVer",null);var Th=function(t){return t[t.Not_IPhone=0]="Not_IPhone",t[t.IPhone=1]="IPhone",t[t.IPhone_3G=3]="IPhone_3G",t[t.IPhone_3GS=3.1]="IPhone_3GS",t[t.IPhone_4=4]="IPhone_4",t[t.IPhone_4S=4.1]="IPhone_4S",t[t.IPhone_5=5]="IPhone_5",t[t.IPhone_5C=5.1]="IPhone_5C",t[t.IPhone_5S=5.2]="IPhone_5S",t[t.IPhone_SE=6]="IPhone_SE",t[t.IPhone_6=6.1]="IPhone_6",t[t.IPhone_6_PLUS=6.2]="IPhone_6_PLUS",t[t.IPhone_6S=6.3]="IPhone_6S",t[t.IPhone_6S_PLUS=6.4]="IPhone_6S_PLUS",t[t.IPhone_7=7]="IPhone_7",t[t.IPhone_7_PLUS=7.1]="IPhone_7_PLUS",t[t.IPhone_8=8]="IPhone_8",t[t.IPhone_8_PLUS=8.1]="IPhone_8_PLUS",t[t.IPhone_X=10]="IPhone_X",t[t.IPhone_XR=10.1]="IPhone_XR",t[t.IPhone_XS=10.2]="IPhone_XS",t[t.IPhone_XS_Max=10.3]="IPhone_XS_Max",t[t.IPhone_NotDetected=1e6]="IPhone_NotDetected",t}({}),Mh=function(){function t(){s(this,t),this.iPhoneVersion=_h.currentModel()}return u(t,[{key:"isAndroid",get:function(){return!!navigator.userAgent.match(/Android/g)}},{key:"isIOs",get:function(){return!!navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}},{key:"isIphone",get:function(){return this.iPhoneVersion!=Th.Not_IPhone}},{key:"isIpad",get:function(){return!!navigator.userAgent.match(/iPad/i)}},{key:"isAndroidTablet",get:function(){return!!navigator.userAgent.match(/Tablet/i)||this.isAndroid&&screen.width>=720}},{key:"isTablet",get:function(){return this.isIpad||this.isAndroidTablet}},{key:"isMobile",get:function(){return!!navigator.userAgent.match(/Mobile|Phone/i)}},{key:"isMobileSbpSpecific",get:function(){return this.isMobile||this.isIphone||this.isAndroid||null!=o(window.orientation)&&!this.isTablet&&document.documentElement.clientWidth<481}}]),t}(),Nh="\t\n\v\f\r                 \u2028\u2029\ufeff",Dh=H,Fh=Cu,Bh=Nh,Hh=N("".replace),Gh=RegExp("^["+Bh+"]+"),Wh=RegExp("(^|[^"+Bh+"])["+Bh+"]+$"),zh=function(t){return function(e){var n=Fh(Dh(e));return 1&t&&(n=Hh(n,Gh,"")),2&t&&(n=Hh(n,Wh,"$1")),n}},$h={start:zh(1),end:zh(2),trim:zh(3)},qh=Ge.PROPER,Vh=L,Kh=Nh,Yh=$h.trim;Io({target:"String",proto:!0,forced:function(t){return Vh((function(){return!!Kh[t]()||"​…᠎"!=="​…᠎"[t]()||qh&&Kh[t].name!==t}))}("trim")},{trim:function(){return Yh(this)}});var Xh=kt,Qh=jt,Jh=Fo,Zh=At.f,td=It,ed=w,nd=N,rd=Po,od=function(t,e,n){var r,o;return Jh&&Xh(r=e.constructor)&&r!==n&&Qh(o=r.prototype)&&o!==n.prototype&&Jh(t,o),t},id=nn,ad=Or.f,sd=Xt,cd=dh,ud=Cu,ld=$f,fd=Uu,hd=function(t,e,n){n in t||Zh(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},dd=zn,pd=L,gd=V,vd=Sn.enforce,yd=Qo,md=sl,bd=ll,wd=Pt("match"),Pd=ed.RegExp,Sd=Pd.prototype,xd=ed.SyntaxError,Ed=nd(Sd.exec),Cd=nd("".charAt),Od=nd("".replace),kd=nd("".indexOf),Ad=nd("".slice),Id=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Rd=/a/g,Ld=/a/g,jd=new Pd(Rd)!==Rd,Ud=fd.MISSED_STICKY,_d=fd.UNSUPPORTED_Y,Td=td&&(!jd||Ud||md||bd||pd((function(){return Ld[wd]=!1,Pd(Rd)!=Rd||Pd(Ld)==Ld||"/a/i"!=Pd(Rd,"i")})));if(rd("RegExp",Td)){for(var Md=function(t,e){var n,r,o,i,a,s,c=sd(Sd,this),u=cd(t),l=void 0===e,f=[],h=t;if(!c&&u&&l&&t.constructor===Md)return t;if((u||sd(Sd,t))&&(t=t.source,l&&(e=ld(h))),t=void 0===t?"":ud(t),e=void 0===e?"":ud(e),h=t,md&&"dotAll"in Rd&&(r=!!e&&kd(e,"s")>-1)&&(e=Od(e,/s/g,"")),n=e,Ud&&"sticky"in Rd&&(o=!!e&&kd(e,"y")>-1)&&_d&&(e=Od(e,/y/g,"")),bd&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a={},s=!1,c=!1,u=0,l="";r<=n;r++){if("\\"===(e=Cd(t,r)))e+=Cd(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:Ed(Id,Ad(t,r+1))&&(r+=2,c=!0),o+=e,u++;continue;case">"===e&&c:if(""===l||gd(a,l))throw new xd("Invalid capture group name");a[l]=!0,i[i.length]=[l,u],c=!1,l="";continue}c?l+=e:o+=e}return[o,i]}(t),t=i[0],f=i[1]),a=od(Pd(t,e),c?this:Sd,Md),(r||o||f.length)&&(s=vd(a),r&&(s.dotAll=!0,s.raw=Md(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(e=Cd(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+Cd(t,++r);return o}(t),n)),o&&(s.sticky=!0),f.length&&(s.groups=f)),t!==h)try{id(a,"source",""===h?"(?:)":h)}catch(Pk){}return a},Nd=ad(Pd),Dd=0;Nd.length>Dd;)hd(Md,Pd,Nd[Dd++]);Sd.constructor=Md,Md.prototype=Sd,dd(ed,"RegExp",Md,{constructor:!0})}yd("RegExp");var Fd=It,Bd=Uu.MISSED_STICKY,Hd=Kn,Gd=qo,Wd=Sn.get,zd=RegExp.prototype,$d=TypeError;Fd&&Bd&&Gd(zd,"sticky",{configurable:!0,get:function(){if(this!==zd){if("RegExp"===Hd(this))return!!Wd(this).sticky;throw $d("Incompatible receiver, RegExp required")}}});var qd=N(1..valueOf),Vd=Rr,Kd=Cu,Yd=H,Xd=RangeError,Qd=Io,Jd=N,Zd=Rr,tp=qd,ep=function(t){var e=Kd(Yd(this)),n="",r=Vd(t);if(r<0||r==1/0)throw Xd("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n},np=L,rp=RangeError,op=String,ip=Math.floor,ap=Jd(ep),sp=Jd("".slice),cp=Jd(1..toFixed),up=function(t,e,n){return 0===e?n:e%2==1?up(t,e-1,n*t):up(t*t,e/2,n)},lp=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=ip(o/1e7)},fp=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=ip(r/e),r=r%e*1e7},hp=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=op(t[e]);n=""===n?r:n+ap("0",7-r.length)+r}return n};Qd({target:"Number",proto:!0,forced:np((function(){return"0.000"!==cp(8e-5,3)||"1"!==cp(.9,0)||"1.25"!==cp(1.255,2)||"1000000000000000128"!==cp(0xde0b6b3a7640080,0)}))||!np((function(){cp({})}))},{toFixed:function(t){var e,n,r,o,i=tp(this),a=Zd(t),s=[0,0,0,0,0,0],c="",u="0";if(a<0||a>20)throw rp("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return op(i);if(i<0&&(c="-",i=-i),i>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(i*up(2,69,1))-69)<0?i*up(2,-e,1):i/up(2,e,1),n*=4503599627370496,(e=52-e)>0){for(lp(s,0,n),r=a;r>=7;)lp(s,1e7,0),r-=7;for(lp(s,up(10,r,1),0),r=e-1;r>=23;)fp(s,1<<23),r-=23;fp(s,1<0?c+((o=u.length)<=a?"0."+ap("0",a-o)+u:sp(u,0,o-a)+"."+sp(u,o-a)):c+u}});var dp,pp,gp,vp=!L((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),yp=V,mp=kt,bp=z,wp=vp,Pp=sn("IE_PROTO"),Sp=Object,xp=Sp.prototype,Ep=wp?Sp.getPrototypeOf:function(t){var e=bp(t);if(yp(e,Pp))return e[Pp];var n=e.constructor;return mp(n)&&e instanceof n?n.prototype:e instanceof Sp?xp:null},Cp=L,Op=kt,kp=jt,Ap=Ep,Ip=zn,Rp=Pt("iterator"),Lp=!1;[].keys&&("next"in(gp=[].keys())?(pp=Ap(Ap(gp)))!==Object.prototype&&(dp=pp):Lp=!0);var jp=!kp(dp)||Cp((function(){var t={};return dp[Rp].call(t)!==t}));jp&&(dp={}),Op(dp[Rp])||Ip(dp,Rp,(function(){return this}));var Up={IteratorPrototype:dp,BUGGY_SAFARI_ITERATORS:Lp},_p=Up.IteratorPrototype,Tp=ol,Mp=Ze,Np=Wo,Dp=cc,Fp=function(){return this},Bp=function(t,e,n,r){var o=e+" Iterator";return t.prototype=Tp(_p,{next:Mp(+!r,n)}),Np(t,o,!1),Dp[o]=Fp,t},Hp=Io,Gp=qt,Wp=kt,zp=Bp,$p=Ep,qp=Fo,Vp=Wo,Kp=nn,Yp=zn,Xp=cc,Qp=Ge.PROPER,Jp=Ge.CONFIGURABLE,Zp=Up.IteratorPrototype,tg=Up.BUGGY_SAFARI_ITERATORS,eg=Pt("iterator"),ng="keys",rg="values",og="entries",ig=function(){return this},ag=function(t,e,n,r,o,i,a){zp(n,e,r);var s,c,u,l=function(t){if(t===o&&g)return g;if(!tg&&t in d)return d[t];switch(t){case ng:case rg:case og:return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",h=!1,d=t.prototype,p=d[eg]||d["@@iterator"]||o&&d[o],g=!tg&&p||l(o),v="Array"==e&&d.entries||p;if(v&&(s=$p(v.call(new t)))!==Object.prototype&&s.next&&($p(s)!==Zp&&(qp?qp(s,Zp):Wp(s[eg])||Yp(s,eg,ig)),Vp(s,f,!0)),Qp&&o==rg&&p&&p.name!==rg&&(Jp?Kp(d,"name",rg):(h=!0,g=function(){return Gp(p,this)})),o)if(c={values:l(rg),keys:i?g:l(ng),entries:l(og)},a)for(u in c)(tg||h||!(u in d))&&Yp(d,u,c[u]);else Hp({target:e,proto:!0,forced:tg||h},c);return d[eg]!==g&&Yp(d,eg,g,{name:o}),Xp[e]=g,c},sg=function(t,e){return{value:t,done:e}},cg=vr,ug=sh,lg=cc,fg=Sn,hg=At.f,dg=ag,pg=sg,gg=It,vg="Array Iterator",yg=fg.set,mg=fg.getterFor(vg),bg=dg(Array,"Array",(function(t,e){yg(this,{type:vg,target:cg(t),index:0,kind:e})}),(function(){var t=mg(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,pg(void 0,!0)):pg("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),wg=lg.Arguments=lg.Array;if(ug("keys"),ug("values"),ug("entries"),gg&&"values"!==wg.name)try{hg(wg,"name",{value:"values"})}catch(Pk){}var Pg=Yl.charAt,Sg=Cu,xg=Sn,Eg=ag,Cg=sg,Og="String Iterator",kg=xg.set,Ag=xg.getterFor(Og);Eg(String,"String",(function(t){kg(this,{type:Og,string:Sg(t),index:0})}),(function(){var t,e=Ag(this),n=e.string,r=e.index;return r>=n.length?Cg(void 0,!0):(t=Pg(n,r),e.index+=t.length,Cg(t,!1))}));var Ig={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Rg=Mt("span").classList,Lg=Rg&&Rg.constructor&&Rg.constructor.prototype,jg=Lg===Object.prototype?void 0:Lg,Ug=w,_g=Ig,Tg=jg,Mg=bg,Ng=nn,Dg=Pt,Fg=Dg("iterator"),Bg=Dg("toStringTag"),Hg=Mg.values,Gg=function(t,e){if(t){if(t[Fg]!==Hg)try{Ng(t,Fg,Hg)}catch(Pk){t[Fg]=Hg}if(t[Bg]||Ng(t,Bg,e),_g[e])for(var n in Mg)if(t[n]!==Mg[n])try{Ng(t,n,Mg[n])}catch(Pk){t[n]=Mg[n]}}};for(var Wg in _g)Gg(Ug[Wg]&&Ug[Wg].prototype,Wg);Gg(Tg,"DOMTokenList");var zg=L,$g=It,qg=Pt("iterator"),Vg=!zg((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),!e.size&&!$g||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[qg]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),Kg=zn,Yg=Ee,Xg=At,Qg=Ze,Jg=function(t,e,n){var r=Yg(e);r in t?Xg.f(t,r,Qg(0,n)):t[r]=n},Zg=_r,tv=Fr,ev=Jg,nv=Array,rv=Math.max,ov=function(t,e,n){for(var r=tv(t),o=Zg(e,r),i=Zg(void 0===n?r:n,r),a=nv(rv(i-o,0)),s=0;o0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},uv=function(t,e,n,r){for(var o=e.length,i=n.length,a=0,s=0;a0?arguments[0]:void 0));pv||(this.length=t.entries.length)},by=my.prototype;if(mv(by,{append:function(t,e){_v(arguments.length,2);var n=Bv(this);ey(n.entries,{key:Iv(t),value:Iv(e)}),pv||this.length++,n.updateURL()},delete:function(t){_v(arguments.length,1);for(var e=Bv(this),n=e.entries,r=Iv(t),o=0;oe.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=Bv(this).entries,r=Cv(t,arguments.length>1?arguments[1]:void 0),o=0;o1?Sy(arguments[1]):{})}}),xv($v)){var xy=function(t){return Sv(this,Vv),new $v(t,arguments.length>1?Sy(arguments[1]):{})};Vv.constructor=xy,xy.prototype=Vv,lv({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xy})}}var Ey={URLSearchParams:my,getState:Bv},Cy=It,Oy=Ge.EXISTS,ky=N,Ay=qo,Iy=Function.prototype,Ry=ky(Iy.toString),Ly=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jy=ky(Ly.exec);Cy&&!Oy&&Ay(Iy,"name",{configurable:!0,get:function(){try{return jy(Ly,Ry(this))[1]}catch(Pk){return""}}});var Uy=Kn,_y=Array.isArray||function(t){return"Array"==Uy(t)},Ty=L,My=at,Ny=Pt("species"),Dy=function(t){return My>=51||!Ty((function(){var e=[];return(e.constructor={})[Ny]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Fy=Io,By=_y,Hy=mi,Gy=jt,Wy=_r,zy=Fr,$y=vr,qy=Jg,Vy=Pt,Ky=Bi,Yy=Dy("slice"),Xy=Vy("species"),Qy=Array,Jy=Math.max;Fy({target:"Array",proto:!0,forced:!Yy},{slice:function(t,e){var n,r,o,i=$y(this),a=zy(i),s=Wy(t,a),c=Wy(void 0===e?a:e,a);if(By(i)&&(n=i.constructor,(Hy(n)&&(n===Qy||By(n.prototype))||Gy(n)&&null===(n=n[Xy]))&&(n=void 0),n===Qy||void 0===n))return Ky(i,s,c);for(r=new(void 0===n?Qy:n)(Jy(c-s,0)),o=0;s9007199254740991)throw Zy("Maximum allowed index exceeded");return t},em=_y,nm=mi,rm=jt,om=Pt("species"),im=Array,am=function(t){var e;return em(t)&&(e=t.constructor,(nm(e)&&(e===im||em(e.prototype))||rm(e)&&null===(e=e[om]))&&(e=void 0)),void 0===e?im:e},sm=function(t,e){return new(am(t))(0===e?0:e)},cm=Io,um=L,lm=_y,fm=jt,hm=z,dm=Fr,pm=tm,gm=Jg,vm=sm,ym=Dy,mm=at,bm=Pt("isConcatSpreadable"),wm=mm>=51||!um((function(){var t=[];return t[bm]=!1,t.concat()[0]!==t})),Pm=function(t){if(!fm(t))return!1;var e=t[bm];return void 0!==e?!!e:lm(t)};cm({target:"Array",proto:!0,arity:1,forced:!wm||!ym("concat")},{concat:function(t){var e,n,r,o,i,a=hm(this),s=vm(a,0),c=0;for(e=-1,r=arguments.length;em;m++)if((s||m in g)&&(d=v(h=g[m],m,p),t))if(e)w[m]=d;else if(d)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:_m(w,h)}else switch(t){case 4:return!1;case 7:_m(w,h)}return i?-1:r||o?o:w}},Mm={forEach:Tm(0),map:Tm(1),filter:Tm(2),some:Tm(3),every:Tm(4),find:Tm(5),findIndex:Tm(6),filterReject:Tm(7)},Nm=Mm.map;Io({target:"Array",proto:!0,forced:!Dy("map")},{map:function(t){return Nm(this,t,arguments.length>1?arguments[1]:void 0)}});var Dm=It,Fm=N,Bm=Nu,Hm=vr,Gm=Fm(ir.f),Wm=Fm([].push),zm=function(t){return function(e){for(var n,r=Hm(e),o=Bm(r),i=o.length,a=0,s=[];i>a;)n=o[a++],Dm&&!Gm(r,n)||Wm(s,t?[n,r[n]]:r[n]);return s}},$m={entries:zm(!0),values:zm(!1)},qm=$m.entries;Io({target:"Object",stat:!0},{entries:function(t){return qm(t)}});var Vm=$m.values;Io({target:"Object",stat:!0},{values:function(t){return Vm(t)}});var Km=Io,Ym=Mm.find,Xm=sh,Qm="find",Jm=!0;Qm in[]&&Array(1)[Qm]((function(){Jm=!1})),Km({target:"Array",proto:!0,forced:Jm},{find:function(t){return Ym(this,t,arguments.length>1?arguments[1]:void 0)}}),Xm(Qm);var Zm=z,tb=Nu;let eb,nb;function rb(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function ob(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}Io({target:"Object",stat:!0,forced:L((function(){tb(1)}))},{keys:function(t){return tb(Zm(t))}}),function(t){t.Unknown="Unknown",t.Cryptogram="Cryptogram",t.Token="Token",t.Widget="Widget",t.Orders="Orders",t.Custom="Custom",t.Subscriptions="Subscriptions",t.MobileSdk="MobileSdk",t.QrLink="QrLink",t.QrImage="QrImage",t.WebSdk="WebSdk"}(eb||(eb={})),function(t){t.SbpLink="SbpLink",t.SbpQr="SbpQr",t.TinkoffPayLink="TinkoffPayLink",t.TinkoffPayQr="TinkoffPayQr",t.Installment="Installment"}(nb||(nb={}));const ib={number:rb,bool:function(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)},bytes:ob,hash:function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");rb(t.outputLen),rb(t.blockLen)},exists:function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},output:function(t,e){ob(t);const n=e.outputLen;if(t.lengthr-i&&(this.process(n,0),i=0);for(let l=i;l>o&i),s=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,a,r),t.setUint32(e+u,s,r)}(n,r-8,BigInt(8*this.length),o),this.process(n,0);const a=sb(t),s=this.outputLen;if(s%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=s/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l>db&hb)}:{h:0|Number(t>>db&hb),l:0|Number(t&hb)}}const gb={fromBig:pb,split:function(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let o=0;o>>0)<>>0)},shrSH:function(t,e,n){return t>>>n},shrSL:function(t,e,n){return t<<32-n|e>>>n},rotrSH:function(t,e,n){return t>>>n|e<<32-n},rotrSL:function(t,e,n){return t<<32-n|e>>>n},rotrBH:function(t,e,n){return t<<64-n|e>>>n-32},rotrBL:function(t,e,n){return t>>>n-32|e<<64-n},rotr32H:function(t,e){return e},rotr32L:function(t,e){return t},rotlSH:function(t,e,n){return t<>>32-n},rotlSL:function(t,e,n){return e<>>32-n},rotlBH:function(t,e,n){return e<>>64-n},rotlBL:function(t,e,n){return t<>>64-n},add:function(t,e,n,r){const o=(e>>>0)+(r>>>0);return{h:t+n+(o/2**32|0)|0,l:0|o}},add3L:function(t,e,n){return(t>>>0)+(e>>>0)+(n>>>0)},add3H:function(t,e,n,r){return e+n+r+(t/2**32|0)|0},add4L:function(t,e,n,r){return(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)},add4H:function(t,e,n,r,o){return e+n+r+o+(t/2**32|0)|0},add5H:function(t,e,n,r,o,i){return e+n+r+o+i+(t/2**32|0)|0},add5L:function(t,e,n,r,o){return(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(o>>>0)}},[vb,yb]=gb.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((function(t){return BigInt(t)}))),mb=new Uint32Array(80),bb=new Uint32Array(80);class wb extends fb{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:n,Bl:r,Ch:o,Cl:i,Dh:a,Dl:s,Eh:c,El:u,Fh:l,Fl:f,Gh:h,Gl:d,Hh:p,Hl:g}=this;return[t,e,n,r,o,i,a,s,c,u,l,f,h,d,p,g]}set(t,e,n,r,o,i,a,s,c,u,l,f,h,d,p,g){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|o,this.Cl=0|i,this.Dh=0|a,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|f,this.Gh=0|h,this.Gl=0|d,this.Hh=0|p,this.Hl=0|g}process(t,e){for(let m=0;m<16;m++,e+=4)mb[m]=t.getUint32(e),bb[m]=t.getUint32(e+=4);for(let m=16;m<80;m++){const t=0|mb[m-15],e=0|bb[m-15],n=gb.rotrSH(t,e,1)^gb.rotrSH(t,e,8)^gb.shrSH(t,e,7),r=gb.rotrSL(t,e,1)^gb.rotrSL(t,e,8)^gb.shrSL(t,e,7),o=0|mb[m-2],i=0|bb[m-2],a=gb.rotrSH(o,i,19)^gb.rotrBH(o,i,61)^gb.shrSH(o,i,6),s=gb.rotrSL(o,i,19)^gb.rotrBL(o,i,61)^gb.shrSL(o,i,6),c=gb.add4L(r,s,bb[m-7],bb[m-16]),u=gb.add4H(c,n,a,mb[m-7],mb[m-16]);mb[m]=0|u,bb[m]=0|c}let{Ah:n,Al:r,Bh:o,Bl:i,Ch:a,Cl:s,Dh:c,Dl:u,Eh:l,El:f,Fh:h,Fl:d,Gh:p,Gl:g,Hh:v,Hl:y}=this;for(let m=0;m<80;m++){const t=gb.rotrSH(l,f,14)^gb.rotrSH(l,f,18)^gb.rotrBH(l,f,41),e=gb.rotrSL(l,f,14)^gb.rotrSL(l,f,18)^gb.rotrBL(l,f,41),b=l&h^~l&p,w=f&d^~f&g,P=gb.add5L(y,e,w,yb[m],bb[m]),S=gb.add5H(P,v,t,b,vb[m],mb[m]),x=0|P,E=gb.rotrSH(n,r,28)^gb.rotrBH(n,r,34)^gb.rotrBH(n,r,39),C=gb.rotrSL(n,r,28)^gb.rotrBL(n,r,34)^gb.rotrBL(n,r,39),O=n&o^n&a^o&a,k=r&i^r&s^i&s;v=0|p,y=0|g,p=0|h,g=0|d,h=0|l,d=0|f,({h:l,l:f}=gb.add(0|c,0|u,0|S,0|x)),c=0|a,u=0|s,a=0|o,s=0|i,o=0|n,i=0|r;const A=gb.add3L(x,C,k);n=gb.add3H(A,S,E,O),r=0|A}({h:n,l:r}=gb.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:i}=gb.add(0|this.Bh,0|this.Bl,0|o,0|i)),({h:a,l:s}=gb.add(0|this.Ch,0|this.Cl,0|a,0|s)),({h:c,l:u}=gb.add(0|this.Dh,0|this.Dl,0|c,0|u)),({h:l,l:f}=gb.add(0|this.Eh,0|this.El,0|l,0|f)),({h:h,l:d}=gb.add(0|this.Fh,0|this.Fl,0|h,0|d)),({h:p,l:g}=gb.add(0|this.Gh,0|this.Gl,0|p,0|g)),({h:v,l:y}=gb.add(0|this.Hh,0|this.Hl,0|v,0|y)),this.set(n,r,o,i,a,s,c,u,l,f,h,d,p,g,v,y)}roundClean(){mb.fill(0),bb.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Pb extends wb{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class Sb extends wb{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class xb extends wb{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}let Eb,Cb,Ob,kb,Ab,Ib,Rb;lb((function(){return new wb})),lb((function(){return new Pb})),lb((function(){return new Sb})),lb((function(){return new xb})),function(t){t[t.ApplePay=0]="ApplePay",t[t.GooglePay=1]="GooglePay",t[t.MasterPass=2]="MasterPass",t[t.YandexPay=3]="YandexPay",t[t.TinkoffInstallmentPay=4]="TinkoffInstallmentPay",t[t.SbpPay=5]="SbpPay",t[t.TinkoffPay=6]="TinkoffPay",t[t.MirPay=7]="MirPay"}(Eb||(Eb={})),function(t){t[t.Visa=0]="Visa",t[t.MasterCard=1]="MasterCard",t[t.Maestro=2]="Maestro",t[t.AmericanExpress=3]="AmericanExpress",t[t.DinersClub=4]="DinersClub",t[t.Discover=5]="Discover",t[t.CarteBlanche=6]="CarteBlanche",t[t.EnRoute=7]="EnRoute",t[t.JCB=8]="JCB",t[t.PRO100=9]="PRO100",t[t.MIR=10]="MIR",t[t.Belcard=11]="Belcard",t[t.Troy=12]="Troy",t[t.UnionPay=13]="UnionPay",t[t.Elcard=14]="Elcard",t[t.Humo=15]="Humo",t[t.Uzcard=16]="Uzcard",t[t.Carnet=17]="Carnet",t[t.Unknown=100]="Unknown"}(Cb||(Cb={})),function(t){t[t.Classic=0]="Classic",t[t.New=1]="New",t[t.Optional=2]="Optional",t[t.Forced=3]="Forced"}(Ob||(Ob={})),function(t){t.MobileApp="MobileApp",t.DesktopWeb="DesktopWeb",t.MobileWeb="MobileWeb"}(kb||(kb={})),function(t){t.Charge="charge",t.Auth="auth"}(Ab||(Ab={})),function(t){t[t.Created=0]="Created",t[t.AwaitingAuthentication=1]="AwaitingAuthentication",t[t.Authorized=2]="Authorized",t[t.Completed=3]="Completed",t[t.Cancelled=4]="Cancelled",t[t.Declined=5]="Declined",t[t.Pending=6]="Pending"}(Ib||(Ib={})),function(t){t.Awaiting="Awaiting",t.Completed="Completed"}(Rb||(Rb={}));var Lb=function(){function t(){s(this,t)}var e;return u(t,null,[{key:"isNullOrUndefined",value:function(t){return null==t}},{key:"removeClass",value:function(t,e){for(var n=t.className;-1!=n.indexOf(e);)n=(n=n.replace(e,"")).trim();t.className=n}},{key:"hideHtmlElement",value:function(t){t.style.opacity="0",t.style.display="none"}},{key:"showHtmlElement",value:function(t){t.style.display="",t.style.opacity="1",t.style.zIndex="999999"}},{key:"addClass",value:function(t,e){t.className+=" "+e}},{key:"loadScript",value:(e=a(r().mark((function t(e){var n,o=this,i=arguments;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:document.body,t.abrupt("return",new Promise(function(t,r){var i=this;d(this,o);var a=document.createElement("script");a.type="text/javascript",a.src=e,a.addEventListener("load",function(){return d(this,i),t()}.bind(this),!1),a.addEventListener("error",function(){return d(this,i),r()}.bind(this),!1),n.appendChild(a)}.bind(this)));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE "),n=t.indexOf("Trident/");return e>0||n>0}},{key:"getQueryParameterByName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href;t=t.replace(/[[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n&&n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):null}},{key:"getHostnameFromUrl",value:function(t){var e=t.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i);return e&&e[1]}}]),t}();var jb=function(t){return t.Auth="auth",t.Charge="charge",t}({}),Ub={},_b=Kn,Tb=vr,Mb=Or.f,Nb=ov,Db="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ub.f=function(t){return Db&&"Window"==_b(t)?function(t){try{return Mb(t)}catch(Pk){return Nb(Db)}}(t):Mb(Tb(t))};var Fb={},Bb=Pt;Fb.f=Bb;var Hb=w,Gb=V,Wb=Fb,zb=At.f,$b=qt,qb=Yt,Vb=Pt,Kb=zn,Yb=Io,Xb=w,Qb=qt,Jb=N,Zb=It,tw=lt,ew=L,nw=V,rw=Xt,ow=Wt,iw=vr,aw=Ee,sw=Cu,cw=Ze,uw=ol,lw=Nu,fw=Or,hw=Ub,dw=to,pw=or,gw=At,vw=_u,yw=ir,mw=zn,bw=qo,ww=P.exports,Pw=cn,Sw=J,xw=Pt,Ew=Fb,Cw=function(t){var e=Hb.Symbol||(Hb.Symbol={});Gb(e,t)||zb(e,t,{value:Wb.f(t)})},Ow=function(){var t=qb("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=Vb("toPrimitive");e&&!e[r]&&Kb(e,r,(function(t){return $b(n,this)}),{arity:1})},kw=Wo,Aw=Sn,Iw=Mm.forEach,Rw=sn("hidden"),Lw="Symbol",jw="prototype",Uw=Aw.set,_w=Aw.getterFor(Lw),Tw=Object[jw],Mw=Xb.Symbol,Nw=Mw&&Mw[jw],Dw=Xb.TypeError,Fw=Xb.QObject,Bw=pw.f,Hw=gw.f,Gw=hw.f,Ww=yw.f,zw=Jb([].push),$w=ww("symbols"),qw=ww("op-symbols"),Vw=ww("wks"),Kw=!Fw||!Fw[jw]||!Fw[jw].findChild,Yw=Zb&&ew((function(){return 7!=uw(Hw({},"a",{get:function(){return Hw(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Bw(Tw,e);r&&delete Tw[e],Hw(t,e,n),r&&t!==Tw&&Hw(Tw,e,r)}:Hw,Xw=function(t,e){var n=$w[t]=uw(Nw);return Uw(n,{type:Lw,tag:t,description:e}),Zb||(n.description=e),n},Qw=function(t,e,n){t===Tw&&Qw(qw,e,n),ow(t);var r=aw(e);return ow(n),nw($w,r)?(n.enumerable?(nw(t,Rw)&&t[Rw][r]&&(t[Rw][r]=!1),n=uw(n,{enumerable:cw(0,!1)})):(nw(t,Rw)||Hw(t,Rw,cw(1,{})),t[Rw][r]=!0),Yw(t,r,n)):Hw(t,r,n)},Jw=function(t,e){ow(t);var n=iw(e),r=lw(n).concat(nP(n));return Iw(r,(function(e){Zb&&!Qb(Zw,n,e)||Qw(t,e,n[e])})),t},Zw=function(t){var e=aw(t),n=Qb(Ww,this,e);return!(this===Tw&&nw($w,e)&&!nw(qw,e))&&(!(n||!nw(this,e)||!nw($w,e)||nw(this,Rw)&&this[Rw][e])||n)},tP=function(t,e){var n=iw(t),r=aw(e);if(n!==Tw||!nw($w,r)||nw(qw,r)){var o=Bw(n,r);return!o||!nw($w,r)||nw(n,Rw)&&n[Rw][r]||(o.enumerable=!0),o}},eP=function(t){var e=Gw(iw(t)),n=[];return Iw(e,(function(t){nw($w,t)||nw(Pw,t)||zw(n,t)})),n},nP=function(t){var e=t===Tw,n=Gw(e?qw:iw(t)),r=[];return Iw(n,(function(t){!nw($w,t)||e&&!nw(Tw,t)||zw(r,$w[t])})),r};tw||(Mw=function(){if(rw(Nw,this))throw Dw("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?sw(arguments[0]):void 0,e=Sw(t),n=function(t){this===Tw&&Qb(n,qw,t),nw(this,Rw)&&nw(this[Rw],e)&&(this[Rw][e]=!1),Yw(this,e,cw(1,t))};return Zb&&Kw&&Yw(Tw,e,{configurable:!0,set:n}),Xw(e,t)},mw(Nw=Mw[jw],"toString",(function(){return _w(this).tag})),mw(Mw,"withoutSetter",(function(t){return Xw(Sw(t),t)})),yw.f=Zw,gw.f=Qw,vw.f=Jw,pw.f=tP,fw.f=hw.f=eP,dw.f=nP,Ew.f=function(t){return Xw(xw(t),t)},Zb&&(bw(Nw,"description",{configurable:!0,get:function(){return _w(this).description}}),mw(Tw,"propertyIsEnumerable",Zw,{unsafe:!0}))),Yb({global:!0,constructor:!0,wrap:!0,forced:!tw,sham:!tw},{Symbol:Mw}),Iw(lw(Vw),(function(t){Cw(t)})),Yb({target:Lw,stat:!0,forced:!tw},{useSetter:function(){Kw=!0},useSimple:function(){Kw=!1}}),Yb({target:"Object",stat:!0,forced:!tw,sham:!Zb},{create:function(t,e){return void 0===e?uw(t):Jw(uw(t),e)},defineProperty:Qw,defineProperties:Jw,getOwnPropertyDescriptor:tP}),Yb({target:"Object",stat:!0,forced:!tw},{getOwnPropertyNames:eP}),Ow(),kw(Mw,Lw),Pw[Rw]=!0;var rP=lt&&!!Symbol.for&&!!Symbol.keyFor,oP=Io,iP=Yt,aP=V,sP=Cu,cP=P.exports,uP=rP,lP=cP("string-to-symbol-registry"),fP=cP("symbol-to-string-registry");oP({target:"Symbol",stat:!0,forced:!uP},{for:function(t){var e=sP(t);if(aP(lP,e))return lP[e];var n=iP("Symbol")(e);return lP[e]=n,fP[n]=e,n}});var hP=Io,dP=V,pP=ee,gP=re,vP=rP,yP=(0,P.exports)("symbol-to-string-registry");hP({target:"Symbol",stat:!0,forced:!vP},{keyFor:function(t){if(!pP(t))throw TypeError(gP(t)+" is not a symbol");if(dP(yP,t))return yP[t]}});var mP=_y,bP=kt,wP=Kn,PP=Cu,SP=N([].push),xP=Io,EP=Yt,CP=Li,OP=qt,kP=N,AP=L,IP=kt,RP=ee,LP=Bi,jP=function(t){if(bP(t))return t;if(mP(t)){for(var e=t.length,n=[],r=0;r1?arguments[1]:void 0)},yS=w,mS=Ig,bS=jg,wS=vS,PS=nn,SS=function(t){if(t&&t.forEach!==wS)try{PS(t,"forEach",wS)}catch(Pk){t.forEach=wS}};for(var xS in mS)mS[xS]&&SS(yS[xS]&&yS[xS].prototype);SS(bS);var ES=function(t){return t[t.NToOne=0]="NToOne",t[t.OneToN=1]="OneToN",t}({}),CS=function(){function t(e,n,r){var o,i,a=this;if(s(this,t),this.auth=n==jb.Auth,this.publicId=e.publicId,this.description=e.description,this.amount=e.amount,this.currency=null===(o=e.currency)||void 0===o?void 0:o.toUpperCase(),e.invoiceId&&(this.invoiceId=String(e.invoiceId)),this.accountId=e.accountId,this.localOrder=e.localOrder,this.cryptogramMode=null!==(i=e.cryptogramMode)&&void 0!==i?i:r,this.email=e.email,this.requireEmail=e.requireEmail,this.skin=e.skin,this.retryPayment=e.retryPayment,this.payer=e.payer,this.payerServiceFee=e.payerServiceFee,this.escrow=e.escrow,this.autoClose=e.autoClose,this.configuration=e.configuration,this.escrow&&!this.escrow.escrowType&&(this.escrow.escrowType=ES.NToOne),null!=e.data)try{this.data=JSON.parse(JSON.stringify(e.data))}catch(c){this.data=e.data}Object.keys(this).forEach(function(t){return d(this,a),null==this[t]&&delete this[t]}.bind(this)),t.warnExtraFields(this,e),t.validateOptions(this)}return u(t,null,[{key:"warnExtraFields",value:function(t,e){var n=this;Object.keys(e).forEach(function(e){d(this,n),Object.prototype.hasOwnProperty.call(t,e)||console.warn("Unsupported 'PaymentOptions' field: '".concat(e,"'"))}.bind(this))}},{key:"validateOptions",value:function(t){if(Object.prototype.hasOwnProperty.call(t,"autoClose")){if("number"!=typeof t.autoClose)return delete t.autoClose,void console.warn("Argument 'autoClose' must be a number");t.autoClose<3&&(console.warn("Option 'autoClose' should be equal or greater than 3, but received ".concat(t.autoClose,". Rewritten to 3.")),t.autoClose=3),t.autoClose>10&&(console.warn("Option autoClose' should be equal or lower than 10, but received ".concat(t.autoClose,". Rewritten to 10.")),t.autoClose=10)}}}]),t}(),OS={indexPage:"/app",notSupportedUrl:"/app/not_supported.html",resultPage:"/app/result.html"},kS=(parseInt("13"),"-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw59jzX1cN1vmxDQe/0Xh4QQqWEGrrv+/HoPO+NR8V6SrRSFT2S10QKc+esqAb0cxs/Q7Az+7CdKsrSf3tpjAmBw2Ll8qNdE02RrUPkexBCVCQP4ZhkmjqN4riWd7cOj9cV3wGhDVQjofN2BlDMFn9Ksluu8P6jD2mdSosUwj5FKT30qmjBFN+TzHxS52k0ZGG57OvQEOZmGfUszo5cXaeP9nYRddq8AtQxXPwMFO2ftnuVZwz+GYsIb2yvL2mRViYEESgJRdKklUMnxklQo6NPV+ndZXwd+rRXBHdyt4B/McyFWV+JViwh10rMIHf/G3EbA03r6gR+/P4Q9Str18OQIDAQAB-----END PUBLIC KEY-----".replace(/\\r\\n/g,"\r\n"),function(){function t(){s(this,t)}return u(t,null,[{key:"enableLogs",value:function(){this.enableLogging=!0}},{key:"LogInfo",value:function(t,e,n){this.enableLogging&&(n?console.log("".concat(t.toUpperCase()),e):console.info("%c".concat(t.toUpperCase()),"background: #222; color: #bada55",e))}},{key:"LogError",value:function(t,e){this.enableLogging&&console.info("%c".concat(t.toUpperCase()),"background: #222; color: #e91e63",e)}}]),t}());l(kS,"enableLogging",!!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href;t=t.replace(/[[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n&&n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):null}("debug"));var AS,IS=It,RS=N,LS=qt,jS=L,US=Nu,_S=to,TS=ir,MS=z,NS=dr,DS=Object.assign,FS=Object.defineProperty,BS=RS([].concat),HS=!DS||jS((function(){if(IS&&1!==DS({b:1},DS(FS({},"a",{enumerable:!0,get:function(){FS(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=DS({},t)[n]||US(DS({},e)).join("")!=r}))?function(t,e){for(var n=MS(t),r=arguments.length,o=1,i=_S.f,a=TS.f;r>o;)for(var s,c=NS(arguments[o++]),u=i?BS(US(c),i(c)):US(c),l=u.length,f=0;l>f;)s=u[f++],IS&&!LS(a,c,s)||(n[s]=c[s]);return n}:DS,GS=Wt,WS=Ic,zS=Di,$S=qt,qS=z,VS=function(t,e,n,r){try{return r?e(GS(n)[0],n[1]):e(n)}catch(Pk){WS(t,"throw",Pk)}},KS=hc,YS=mi,XS=Fr,QS=Jg,JS=Cc,ZS=mc,tx=Array,ex=N,nx=2147483647,rx=/[^\0-\u007E]/,ox=/[.\u3002\uFF0E\uFF61]/g,ix="Overflow: input needs wider integers to process",ax=RangeError,sx=ex(ox.exec),cx=Math.floor,ux=String.fromCharCode,lx=ex("".charCodeAt),fx=ex([].join),hx=ex([].push),dx=ex("".replace),px=ex("".split),gx=ex("".toLowerCase),vx=function(t){return t+22+75*(t<26)},yx=function(t,e,n){var r=0;for(t=n?cx(t/700):t>>1,t+=cx(t/e);t>455;)t=cx(t/35),r+=36;return cx(r+36*t/(t+38))},mx=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n=55296&&o<=56319&&n=i&&rcx((nx-a)/f))throw ax(ix);for(a+=(l-i)*f,i=l,n=0;nnx)throw ax(ix);if(r==i){for(var h=a,d=36;;){var p=d<=s?1:d>=s+26?26:d-s;if(h1?arguments[1]:void 0,i=void 0!==o;i&&(o=zS(o,r>2?arguments[2]:void 0));var a,s,c,u,l,f,h=ZS(e),d=0;if(!h||this===tx&&KS(h))for(a=XS(e),s=n?new this(a):tx(a);a>d;d++)f=i?o(e[d],d):e[d],QS(s,d,f);else for(l=(u=JS(e,h)).next,s=n?new this:[];!(c=$S(l,u)).done;d++)f=i?VS(u,o,[c.value,d],!0):c.value,QS(s,d,f);return s.length=d,s},Lx=ov,jx=Yl.codeAt,Ux=function(t){var e,n,r=[],o=px(dx(gx(t),ox,"."),".");for(e=0;e?@[\\\]^|]/,yE=/[\0\t\n\r #/:<>?@[\\\]^|]/,mE=/^[\u0000-\u0020]+/,bE=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,wE=/[\t\n\r]/g,PE=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)iE(e,t%256),t=qx(t/256);return Xx(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(e=r,n=o),e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=Qx(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},SE={},xE=Ix({},SE,{" ":1,'"':1,"<":1,">":1,"`":1}),EE=Ix({},xE,{"#":1,"?":1,"{":1,"}":1}),CE=Ix({},EE,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),OE=function(t,e){var n=jx(t,0);return n>32&&n<127&&!Ax(e,t)?t:encodeURIComponent(t)},kE={ftp:21,file:null,http:80,https:443,ws:80,wss:443},AE=function(t,e){var n;return 2==t.length&&Yx(uE,Kx(t,0))&&(":"==(n=Kx(t,1))||!e&&"|"==n)},IE=function(t){var e;return t.length>1&&AE(rE(t,0,2))&&(2==t.length||"/"===(e=Kx(t,2))||"\\"===e||"?"===e||"#"===e)},RE=function(t){return"."===t||"%2e"===oE(t)},LE={},jE={},UE={},_E={},TE={},ME={},NE={},DE={},FE={},BE={},HE={},GE={},WE={},zE={},$E={},qE={},VE={},KE={},YE={},XE={},QE={},JE=function(t,e,n){var r,o,i,a=_x(t);if(e){if(o=this.parse(a))throw zx(o);this.searchParams=null}else{if(void 0!==n&&(r=new JE(n,!0)),o=this.parse(a,null,r))throw zx(o);(i=Gx(new Hx)).bindURL(this),this.searchParams=i}};JE.prototype={type:"URL",parse:function(t,e,n){var r,o,i,a,s,c=this,u=e||LE,l=0,f="",h=!1,d=!1,p=!1;for(t=_x(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=tE(t,mE,""),t=tE(t,bE,"$1")),t=tE(t,wE,""),r=Rx(t);l<=r.length;){switch(o=r[l],u){case LE:if(!o||!Yx(uE,o)){if(e)return aE;u=UE;continue}f+=oE(o),u=jE;break;case jE:if(o&&(Yx(lE,o)||"+"==o||"-"==o||"."==o))f+=oE(o);else{if(":"!=o){if(e)return aE;f="",u=UE,l=0;continue}if(e&&(c.isSpecial()!=Ax(kE,f)||"file"==f&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=f,e)return void(c.isSpecial()&&kE[c.scheme]==c.port&&(c.port=null));f="","file"==c.scheme?u=zE:c.isSpecial()&&n&&n.scheme==c.scheme?u=_E:c.isSpecial()?u=DE:"/"==r[l+1]?(u=TE,l++):(c.cannotBeABaseURL=!0,Zx(c.path,""),u=YE)}break;case UE:if(!n||n.cannotBeABaseURL&&"#"!=o)return aE;if(n.cannotBeABaseURL&&"#"==o){c.scheme=n.scheme,c.path=Lx(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=QE;break}u="file"==n.scheme?zE:ME;continue;case _E:if("/"!=o||"/"!=r[l+1]){u=ME;continue}u=FE,l++;break;case TE:if("/"==o){u=BE;break}u=KE;continue;case ME:if(c.scheme=n.scheme,o==AS)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Lx(n.path),c.query=n.query;else if("/"==o||"\\"==o&&c.isSpecial())u=NE;else if("?"==o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Lx(n.path),c.query="",u=XE;else{if("#"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Lx(n.path),c.path.length--,u=KE;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=Lx(n.path),c.query=n.query,c.fragment="",u=QE}break;case NE:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=KE;continue}u=BE}else u=FE;break;case DE:if(u=FE,"/"!=o||"/"!=Kx(f,l+1))continue;l++;break;case FE:if("/"!=o&&"\\"!=o){u=BE;continue}break;case BE:if("@"==o){h&&(f="%40"+f),h=!0,i=Rx(f);for(var g=0;g65535)return cE;c.port=c.isSpecial()&&m===kE[c.scheme]?null:m,f=""}if(e)return;u=VE;continue}return cE}f+=o;break;case zE:if(c.scheme="file","/"==o||"\\"==o)u=$E;else{if(!n||"file"!=n.scheme){u=KE;continue}if(o==AS)c.host=n.host,c.path=Lx(n.path),c.query=n.query;else if("?"==o)c.host=n.host,c.path=Lx(n.path),c.query="",u=XE;else{if("#"!=o){IE(Xx(Lx(r,l),""))||(c.host=n.host,c.path=Lx(n.path),c.shortenPath()),u=KE;continue}c.host=n.host,c.path=Lx(n.path),c.query=n.query,c.fragment="",u=QE}}break;case $E:if("/"==o||"\\"==o){u=qE;break}n&&"file"==n.scheme&&!IE(Xx(Lx(r,l),""))&&(AE(n.path[0],!0)?Zx(c.path,n.path[0]):c.host=n.host),u=KE;continue;case qE:if(o==AS||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&AE(f))u=KE;else if(""==f){if(c.host="",e)return;u=VE}else{if(a=c.parseHost(f))return a;if("localhost"==c.host&&(c.host=""),e)return;f="",u=VE}continue}f+=o;break;case VE:if(c.isSpecial()){if(u=KE,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=AS&&(u=KE,"/"!=o))continue}else c.fragment="",u=QE;else c.query="",u=XE;break;case KE:if(o==AS||"/"==o||"\\"==o&&c.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(s=oE(s=f))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||Zx(c.path,"")):RE(f)?"/"==o||"\\"==o&&c.isSpecial()||Zx(c.path,""):("file"==c.scheme&&!c.path.length&&AE(f)&&(c.host&&(c.host=""),f=Kx(f,0)+":"),Zx(c.path,f)),f="","file"==c.scheme&&(o==AS||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)eE(c.path);"?"==o?(c.query="",u=XE):"#"==o&&(c.fragment="",u=QE)}else f+=OE(o,EE);break;case YE:"?"==o?(c.query="",u=XE):"#"==o?(c.fragment="",u=QE):o!=AS&&(c.path[0]+=OE(o,SE));break;case XE:e||"#"!=o?o!=AS&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":OE(o,SE)):(c.fragment="",u=QE);break;case QE:o!=AS&&(c.fragment+=OE(o,xE))}l++}},parseHost:function(t){var e,n,r;if("["==Kx(t,0)){if("]"!=Kx(t,t.length-1))return sE;if(e=function(t){var e,n,r,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return Kx(t,f)};if(":"==h()){if(":"!=Kx(t,1))return;f+=2,l=++u}for(;h();){if(8==u)return;if(":"!=h()){for(e=n=0;n<4&&Yx(gE,h());)e=16*e+$x(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,u>6)return;for(r=0;h();){if(o=null,r>0){if(!("."==h()&&r<4))return;f++}if(!Yx(fE,h()))return;for(;Yx(fE,h());){if(i=$x(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}c[u]=256*c[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[u++]=e}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c}(rE(t,1,-1)),!e)return sE;this.host=e}else if(this.isSpecial()){if(t=Ux(t),Yx(vE,t))return sE;if(e=function(t){var e,n,r,o,i,a,s,c=nE(t,".");if(c.length&&""==c[c.length-1]&&c.length--,(e=c.length)>4)return t;for(n=[],r=0;r1&&"0"==Kx(o,0)&&(i=Yx(hE,o)?16:8,o=rE(o,8==i?1:2)),""===o)a=0;else{if(!Yx(10==i?pE:8==i?dE:gE,o))return t;a=$x(o,i)}Zx(n,a)}for(r=0;r=Vx(256,5-e))return null}else if(a>255)return null;for(s=Jx(n),r=0;r1?arguments[1]:void 0,r=Fx(e,new JE(t,!1,n));wx||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},tC=ZE.prototype,eC=function(t,e){return{get:function(){return Bx(this)[t]()},set:e&&function(t){return Bx(this)[e](t)},configurable:!0,enumerable:!0}};if(wx&&(Ox(tC,"href",eC("serialize","setHref")),Ox(tC,"origin",eC("getOrigin")),Ox(tC,"protocol",eC("getProtocol","setProtocol")),Ox(tC,"username",eC("getUsername","setUsername")),Ox(tC,"password",eC("getPassword","setPassword")),Ox(tC,"host",eC("getHost","setHost")),Ox(tC,"hostname",eC("getHostname","setHostname")),Ox(tC,"port",eC("getPort","setPort")),Ox(tC,"pathname",eC("getPathname","setPathname")),Ox(tC,"search",eC("getSearch","setSearch")),Ox(tC,"searchParams",eC("getSearchParams")),Ox(tC,"hash",eC("getHash","setHash"))),Cx(tC,"toJSON",(function(){return Bx(this).serialize()}),{enumerable:!0}),Cx(tC,"toString",(function(){return Bx(this).serialize()}),{enumerable:!0}),Wx){var nC=Wx.createObjectURL,rC=Wx.revokeObjectURL;nC&&Cx(ZE,"createObjectURL",xx(nC,Wx)),rC&&Cx(ZE,"revokeObjectURL",xx(rC,Wx))}Tx(ZE,"URL"),bx({global:!0,constructor:!0,forced:!Px,sham:!wx},{URL:ZE});var oC,iC,aC,sC,cC,uC={baseUrl:"https://widget.cloudpayments.ru"},lC=(function(t){return t.Ru="ru",t.En="en",t.Az="az",t.Cs="cs",t.De="de",t.Es="es",t.It="it",t.Kk="kk",t.Lv="lv",t.Pl="pl",t.Pt="pt",t.Tr="tr",t.Uk="uk",t.Vi="vi",t.Uz="uz",t}({}).Ru,function(t){return t.Payment="payment",t.Installment="installment",t.Error="error",t.Cancel="cancel",t.Cryptogram="cryptogram",t.Sbp="sbp",t.Tinkoff="tinkoff",t}({})),fC=function(t){return t.Success="success",t.Appointment="appointment",t.Fail="fail",t.Reject="reject",t.Cancel="cancel",t.Wait="wait",t}({});!function(t){t.Call="call",t.Reply="reply",t.Syn="syn",t.SynAck="synAck",t.Ack="ack"}(oC||(oC={})),function(t){t.Fulfilled="fulfilled",t.Rejected="rejected"}(iC||(iC={})),function(t){t.ConnectionDestroyed="ConnectionDestroyed",t.ConnectionTimeout="ConnectionTimeout",t.NoIframeSrc="NoIframeSrc"}(aC||(aC={})),function(t){t.DataCloneError="DataCloneError"}(sC||(sC={})),function(t){t.Message="message"}(cC||(cC={}));var hC,dC=function(t,e){d(this,null);var n=[],r=!1;return{destroy:function(o){var i=this;r||(r=!0,e("".concat(t,": Destroying connection")),n.forEach(function(t){d(this,i),t(o)}.bind(this)))},onDestroy:function(t){r?t():n.push(t)}}}.bind(null),pC=function(t){return d(this,null),function(){if(t){for(var e,n=arguments.length,r=new Array(n),o=0;o1?arguments[1]:void 0,e.length)),r=bC(t);return xC?xC(e,r,n):EC(e,n,n+r.length)===r}});var kC={"http:":"80","https:":"443"},AC=/^(https?:)?\/\/([^/:]+)?(:(\d+))?/,IC=["file:","data:"],RC=function(t){var e=this;if(d(this,null),t&&IC.find(function(n){return d(this,e),t.startsWith(n)}.bind(this)))return"null";var n,r,o,i=document.location,a=AC.exec(t);a?(n=a[1]?a[1]:i.protocol,r=a[2],o=a[4]):(n=i.protocol,r=i.hostname,o=i.port);var s=o&&o!==kC[n]?":".concat(o):"";return"".concat(n,"//").concat(r).concat(s)}.bind(null),LC=function(t){return d(this,null),{name:t.name,message:t.message,stack:t.stack}}.bind(null),jC=function(t){var e=this;d(this,null);var n=new Error;return Object.keys(t).forEach(function(r){return d(this,e),n[r]=t[r]}.bind(this)),n}.bind(null),UC=function(t,e,n){var r=this;d(this,null);var o=t.localName,i=t.local,a=t.remote,s=t.originForSending,c=t.originForReceiving,u=!1,l=function(t){var i=this;if(d(this,r),t.source===a&&t.data.penpal===oC.Call)if("*"===c||t.origin===c){var l=t.data,f=l.methodName,h=l.args,p=l.id;n("".concat(o,": Received ").concat(f,"() call"));var g=function(t){var e=this;return d(this,i),function(r){if(d(this,e),n("".concat(o,": Sending ").concat(f,"() reply")),u)n("".concat(o,": Unable to send ").concat(f,"() reply due to destroyed connection"));else{var i={penpal:oC.Reply,id:p,resolution:t,returnValue:r};t===iC.Rejected&&r instanceof Error&&(i.returnValue=LC(r),i.returnValueIsError=!0);try{a.postMessage(i,s)}catch(l){if(l.name===sC.DataCloneError){var c={penpal:oC.Reply,id:p,resolution:iC.Rejected,returnValue:LC(l),returnValueIsError:!0};a.postMessage(c,s)}throw l}}}.bind(this)}.bind(this);new Promise(function(t){return d(this,i),t(e[f].apply(e,h))}.bind(this)).then(g(iC.Fulfilled),g(iC.Rejected))}else n("".concat(o," received message from origin ").concat(t.origin," which did not match expected origin ").concat(c))}.bind(this);return i.addEventListener(cC.Message,l),function(){d(this,r),u=!0,i.removeEventListener(cC.Message,l)}.bind(this)}.bind(null),_C=HS;Io({target:"Object",stat:!0,arity:2,forced:Object.assign!==_C},{assign:_C});var TC=0,MC=function(){return d(this,null),++TC}.bind(null),NC=Li,DC=qt,FC=N,BC=Bl,HC=Wt,GC=D,WC=dh,zC=H,$C=Oi,qC=Ql,VC=Nr,KC=Cu,YC=le,XC=ov,QC=df,JC=Ll,ZC=L,tO=Uu.UNSUPPORTED_Y,eO=4294967295,nO=Math.min,rO=[].push,oO=FC(/./.exec),iO=FC(rO),aO=FC("".slice),sO=!ZC((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));BC("split",(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r=KC(zC(this)),o=void 0===n?eO:n>>>0;if(0===o)return[];if(void 0===t)return[r];if(!WC(t))return DC(e,r,t,o);for(var i,a,s,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,f=new RegExp(t.source,u+"g");(i=DC(JC,f,r))&&!((a=f.lastIndex)>l&&(iO(c,aO(r,l,i.index)),i.length>1&&i.index=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!s&&oO(f,"")||iO(c,""):iO(c,aO(r,l)),c.length>o?XC(c,0,o):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:DC(e,this,t,n)}:e,[function(e,n){var o=zC(this),i=GC(e)?void 0:YC(e,t);return i?DC(i,e,o,n):DC(r,KC(o),e,n)},function(t,o){var i=HC(this),a=KC(t),s=n(r,i,a,o,r!==e);if(s.done)return s.value;var c=$C(i,RegExp),u=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(tO?"g":"y"),f=new c(tO?"^(?:"+i.source+")":i,l),h=void 0===o?eO:o>>>0;if(0===h)return[];if(0===a.length)return null===QC(f,a)?[a]:[];for(var d=0,p=0,g=[];p1),_O=[],TO=!1,MO=-1,NO=void 0,DO=void 0,FO=function(t){return _O.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},BO=function(t){var e=t||window.event;return!!FO(e.target)||(e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1))},HO=function(t,e){if(t){if(!_O.some((function(e){return e.targetElement===t}))){var n={targetElement:t,options:e||{}};_O=[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&n<0?BO(t):t.stopPropagation())}(e,t)},TO||(document.addEventListener("touchmove",BO,LO?{passive:!1}:void 0),TO=!0)):function(t){if(void 0===DO){var e=!!t&&!0===t.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;e&&n>0&&(DO=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===NO&&(NO=document.body.style.overflow,document.body.style.overflow="hidden")}(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},GO=function(t){t?(_O=_O.filter((function(e){return e.targetElement!==t})),UO?(t.ontouchstart=null,t.ontouchmove=null,TO&&0===_O.length&&(document.removeEventListener("touchmove",BO,LO?{passive:!1}:void 0),TO=!1)):_O.length||(void 0!==DO&&(document.body.style.paddingRight=DO,DO=void 0),void 0!==NO&&(document.body.style.overflow=NO,NO=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},WO=function(){function t(){s(this,t)}return u(t,null,[{key:"isApplePayAvailable",value:function(){if("ApplePaySession"in window)try{return ApplePaySession.canMakePayments()?Promise.resolve():Promise.reject("ApplePaySession CanMakePayments false")}catch(t){return Promise.reject(t)}return Promise.reject("ApplePaySession not in Window")}},{key:"createApplePaymentRequest",value:function(t,e,n,r,o){var i=["visa","masterCard"];kS.LogInfo("createApplePaymentRequest",{terminalUrl:t,amount:e,currency:n,requireEmail:r,label:o}),ApplePaySession.supportsVersion(11)&&i.push("mir");var a={countryCode:"RU",currencyCode:n,supportedNetworks:i,merchantCapabilities:["supports3DS"],total:{label:null!=o?o:"Pay to "+t,amount:e.toString()}};return r&&(a.requiredShippingContactFields=["email"]),a}},{key:"getApplePaySession",value:function(e,n,r,o,i){var a=t.createApplePaymentRequest(e,n,r,o,i);return new ApplePaySession(1,a)}}]),t}(),zO=It,$O=_y,qO=TypeError,VO=Object.getOwnPropertyDescriptor,KO=zO&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(Pk){return Pk instanceof TypeError}}(),YO=re,XO=TypeError,QO=Io,JO=z,ZO=_r,tk=Rr,ek=Fr,nk=KO?function(t,e){if($O(t)&&!VO(t,"length").writable)throw qO("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rk=tm,ok=sm,ik=Jg,ak=function(t,e){if(!delete t[e])throw XO("Cannot delete property "+YO(e)+" of "+YO(t))},sk=Dy("splice"),ck=Math.max,uk=Math.min;QO({target:"Array",proto:!0,forced:!sk},{splice:function(t,e){var n,r,o,i,a,s,c=JO(this),u=ek(c),l=ZO(t,u),f=arguments.length;for(0===f?n=r=0:1===f?(n=0,r=u-l):(n=f-2,r=uk(ck(tk(e),0),u-l)),rk(u+n-r),o=ok(c,r),i=0;iu-r+n;i--)ak(c,i-1)}else if(n>r)for(i=u-r;i>l;i--)s=i+n-1,(a=i+r-1)in c?c[s]=c[a]:ak(c,s);for(i=0;i0&&void 0!==arguments[0]?arguments[0]:36,e=(new Date).getTime(),n="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(n+r)%16|0,n=Math.floor(n/16)),("x"===t?r:3&r|8).toString(16)})).slice(0,t)}())}var e,n;return u(t,[{key:"getConnection",value:function(){var t=this;return new Promise(function(e,n){var r=this;if(d(this,t),Lb.isIE()){var o=function(t){if(d(this,r),t.origin==uC.baseUrl){try{"close"==JSON.parse(t.data).action&&this.hideWindow()}catch(t){return}window.removeEventListener("message",o)}}.bind(this);return window.addEventListener("message",o,!1),this.showWindow(),void n("IE")}null!=this.connection?e(this.connection):this.connectionResolvers.push(e)}.bind(this))}},{key:"showWindow",value:function(){var t,e;this.container&&(this.addViewPortMeta(),Lb.addClass(this.iframe,"with-appled"),t=document,(e=t.getElementById("payment-loading-overlay-63456123"))&&e.parentNode&&e.parentNode.removeChild(e),Lb.showHtmlElement(this.container),HO(this.container),this.alternateEmbed&&!this.appledStyle&&(this.savedScrollPosition=document.body.scrollTop,this.appledStyle=document.createElement("style"),this.appledStyle.type="text/css",this.appledStyle.innerHTML="\n html {height: 100% !important; position: static !important}\n body {margin: 0 !important; padding: 0 !important; position: static !important; height: 100vh !important}\n body * {display: none !important}\n #".concat(this.container.id," {position: static !important}\n #").concat(this.container.id,", #payments-backdrop-8978968765, iframe.with-appled {display: block !important}\n .payment-tools-container.with-appled {display: table !important}\n .payment-tools-container.with-appled div {display: table-cell !important}\n .payment-tools-container.with-appled div *:not(style) {display: block !important}\n "),document.body.appendChild(this.appledStyle),setTimeout((function(){window.scrollTo(0,0)}),200)))}},{key:"hideWindow",value:function(){if(GO(this.container),this.savedScrollPosition&&(window.scrollTo(0,this.savedScrollPosition),this.savedScrollPosition=null),this.appledStyle){try{this.appledStyle.remove()}catch(t){}this.appledStyle=null}this.removeViewPortMeta(),this.iframe&&Lb.removeClass(this.iframe,"with-appled"),Lb.hideHtmlElement(this.container);try{this.container.remove()}catch(t){}this.onFrameDestroyed&&this.onFrameDestroyed(this.completedData)}},{key:"addViewPortMeta",value:function(){var t=document.getElementsByTagName("head")[0],e=document.createElement("meta");e.id=this.viewPortId,e.name="viewport",e.content="width=device-width, height=device-height, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no",t.appendChild(e)}},{key:"removeViewPortMeta",value:function(){var t=document.getElementById(this.viewPortId);t&&document.getElementsByTagName("head")[0].removeChild(t)}},{key:"getWindow",value:function(){var t;return null===(t=this.iframe.contentWindow)||void 0===t?void 0:t.window}},{key:"setApplePayPaymentResult",value:function(t){this.applePayPaymentResult.next(t)}},{key:"processApplePayWithCryptogram",value:(n=a(r().mark((function t(e,n){var o,i,a,s=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return kS.LogInfo("processApplePayWithCryptogram"),t.next=3,this.getConnection();case 3:return i=t.sent,kS.LogInfo("frameConnection",i),t.next=7,WO.isApplePayAvailable();case 7:return a=WO.getApplePaySession(e,n.amount,n.currency,null!==(o=n.requireEmail)&&void 0!==o&&o),t.abrupt("return",new Promise(function(t,e){var r=this;d(this,s),a.oncancel=function(t){d(this,r),kS.LogInfo("applePaySession on cryprogram canceled",t,!0),e(t)}.bind(this),a.onvalidatemerchant=function(t){var e=this;d(this,r),kS.LogInfo("applePaySession on cryprogram onvalidatemerchant",t,!0);var o={ValidationUrl:t.validationURL,TerminalPublicId:n.publicId,SharedAppleMerchantIdUrl:Lb.getHostnameFromUrl(window.location.href)};kS.LogInfo("applePaySession startApplePaySession request",o),i.startApplePaySession(o).then(function(t){d(this,e),kS.LogInfo("applePaySession startApplePaySession api response",t),a.completeMerchantValidation(t.Model)}.bind(this))}.bind(this),a.onpaymentauthorized=function(e){d(this,r),kS.LogInfo("applePaySession onpaymentauthorized on cryptogram",e,!0),a.completePayment(ApplePaySession.STATUS_SUCCESS),kS.LogInfo("BEFORE COPY applePaySession token",e.payment.token,!0);var n=JSON.stringify(e.payment.token);kS.LogInfo("AFTER COPY applePaySession token",n,!0),t(n)}.bind(this),kS.LogInfo("applePaySession pre begin",null,!0),a.begin()}.bind(this)));case 9:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"processApplePaySessionAndPay",value:(e=a(r().mark((function t(e,n,o){var i,a,s,c=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return kS.LogInfo("processApplePaySessionAndPay"),t.next=3,this.getConnection();case 3:return a=t.sent,kS.LogInfo("frameConnection",a),t.next=7,WO.isApplePayAvailable();case 7:return s=WO.getApplePaySession(e,n.amount,n.currency,null!==(i=n.requireEmail)&&void 0!==i&&i,o),kS.LogInfo("applePaySession created",s),t.abrupt("return",new Promise(function(t,e){var r=this;d(this,c),s.oncancel=function(t){d(this,r),kS.LogInfo("applePaySession canceled",t),e(t)}.bind(this),s.onvalidatemerchant=function(t){var e=this;d(this,r),kS.LogInfo("applePaySession onvalidatemerchant",t);var o={ValidationUrl:t.validationURL,TerminalPublicId:n.publicId,SharedAppleMerchantIdUrl:Lb.getHostnameFromUrl(window.location.href)};kS.LogInfo("applePaySession startApplePaySession request",o),a.startApplePaySession(o).then(function(t){d(this,e),kS.LogInfo("applePaySession startApplePaySession api response",t),s.completeMerchantValidation(t.Model)}.bind(this))}.bind(this),s.onpaymentauthorized=function(e){var n=this;d(this,r),kS.LogInfo("applePaySession onpaymentauthorized",e),a.payByApplePay(e.payment).then(function(e){d(this,n),s.completePayment(e.Success?ApplePaySession.STATUS_SUCCESS:ApplePaySession.STATUS_FAILURE),t(e)}.bind(this))}.bind(this),s.begin()}.bind(this)));case 10:case"end":return t.stop()}}),t,this)}))),function(t,n,r){return e.apply(this,arguments)})}],[{key:"createContainer",value:function(t,e){var n=document.createElement("div");if(n.id="cp-scrollable-"+Math.floor(1e8*Math.random()).toString(),!t&&(n.style.cssText='z-index:99997;text-align:left;height:100%;width:100%;"position: fixed;"left:0;top:0;transition:opacity 0.15s;overflow:auto;-webkit-overflow-scrolling:touch;pointer-events:all;',e))for(var r in e)n.style.setProperty(r,e[r]);return n.style.pointerEvents="all",n}},{key:"ensureContainer",value:function(t){if(null==t)return document.body;if("string"==typeof t){var e=document.getElementById(t);return null==e?(console.warn("Specified container with id ".concat(t," not found. document.body will used instead")),document.body):e}if("object"===o(t)&&1===t.nodeType)return t;throw new Error("Argument 'container' must be an ID of element or the element itself")}}]),t}(),hk=function(t){return t.amEx="american-express",t.master="mastercard",t.mir="mir",t.maestro="maestro",t.visa="visa",t.uatp="uatp",t.discover="discover",t.diners="diners",t.dankort="dankort",t.instapayment="instapayment",t.jcb15="jcb",t.jcb="jcb",t.unionPay="unionPay",t.humo="humo",t.uzcard="uzcard",t.unknown="unknown",t}(hk||{});hk.amEx,hk.uzcard,hk.humo,hk.master,hk.dankort,hk.maestro,hk.mir,hk.visa,hk.uatp,hk.discover,hk.diners,hk.instapayment,hk.jcb15,hk.jcb,hk.unionPay;class dk{static enableLogs(){this.enableLogging=!0}static disableLogs(){this.enableLogging=!1}static LogInfo(t,e){this.enableLogging&&console.info(`%c${t.toUpperCase()}`,"background: #222; color: #bada55",e)}static LogError(t,e){this.enableLogging&&console.info(`%c${t.toUpperCase()}`,"background: #222; color: #e91e63",e)}}function pk(t){return(e=t)&&!0===e.__v_isRef?t.value:t;var e}dk.enableLogging=!!class{static isNullOrUndefined(t){return null==t}static generateUuid(t=36){let e=(new Date).getTime(),n="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(n+r)%16|0,n=Math.floor(n/16)),("x"===t?r:3&r|8).toString(16)})).slice(0,t)}static removeClass(t,e){let n=t.className;for(;-1!=n.indexOf(e);)n=n.replace(e,""),n=n.trim();t.className=n}static hideHtmlElement(t){t.style.opacity="0",t.style.display="none"}static showHtmlElement(t){t.style.display="",t.style.opacity="0",setTimeout((function(){t.style.opacity="1"}),15)}static addClass(t,e){t.className+=" "+e}static async loadScript(t){return new Promise((function(e,n){const r=document.createElement("script");r.type="text/javascript",r.src=t,r.addEventListener("load",(function(){return e()}),!1),r.addEventListener("error",(function(){return n()}),!1),document.body.appendChild(r)}))}static async loadCss(t){return new Promise((function(e,n){const r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=t,r.addEventListener("load",(function(){return e()}),!1),r.addEventListener("error",(function(){return n()}),!1),document.head.appendChild(r)}))}static getCurrencySymbol(t){switch(t){case"RUB":return"₽";case"EUR":return"€";case"USD":return"$";case"GBP":return"£";case"UAH":return"₴";case"BYR":return"Br";case"KZT":return"₸";case"AZN":return"₼";case"CHF":return"₣";case"CZK":return"Kč";case"CAD":return"C$";case"PLN":return"zł";case"SEK":return"kr";case"TRY":return"₺";case"CNY":return"¥";case"INR":return"₹";case"BRL":return"R$";case"UZS":return"So'm";case"BGN":return"лв";case"AUD":return"AU$";case"HKD":return"HK$";case"GEL":return"₾";case"AMD":return"֏";case"AED":return"Dhs";default:return t}}static isIE(){const t=window.navigator.userAgent,e=t.indexOf("MSIE "),n=t.indexOf("Trident/");return e>0||n>0}static getQueryParameterByName(t,e=window.location.href){t=t.replace(/[[\]]/g,"\\$&");const n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return n&&n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):null}static getHostnameFromUrl(t){const e=t.match(/^https?:\/\/([^/?#]+)(?:[/?#]|$)/i);return e&&e[1]}}.getQueryParameterByName("debug");function gk(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};s(this,t),l(this,"alternateEmbed",!1),l(this,"deviceDetector",new Mh),l(this,"legacyCallbackObject",{shouldInvokeOnCompleteInstantly:!1}),l(this,"callbackObject",{}),l(this,"lastCallbackResult",{type:lC.Cancel}),l(this,"frameDestroyed",!1),l(this,"onCloseWidgetResolver",null),this.options=this.setWidgetOptionsDefaults(e),e.debug&&kS.enableLogs(),this.alternateEmbed=this.deviceDetector.isIOs||this.deviceDetector.isAndroid,this.containerManager=this.createFrameConnector()}return u(t,[{key:"pay",value:function(t,e,n){var r=this;return this.legacyCallbackObject.onSuccess=null==n?void 0:n.onSuccess,this.legacyCallbackObject.onFail=null==n?void 0:n.onFail,this.legacyCallbackObject.onComplete=null==n?void 0:n.onComplete,new Promise(function(n){d(this,r),this.onCloseWidgetResolver=n,this.startPayment(t,e,!0)}.bind(this))}},{key:"charge",value:function(t,e,n,r){t.auth=!1,this.legacyCallbackObject.onSuccess=e,this.legacyCallbackObject.onFail=n,this.legacyCallbackObject.onComplete=r,this.startPayment(jb.Charge,t,!1)}},{key:"auth",value:function(t,e,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(o&&"boolean"!=typeof o)throw new Error("Argument 'auth' must be a boolean");t.auth=!0,this.legacyCallbackObject.onSuccess=e,this.legacyCallbackObject.onFail=n,this.legacyCallbackObject.onComplete=r,this.startPayment(jb.Auth,t,!1)}},{key:"close",value:function(){this.containerManager&&(this.containerManager.hideWindow(),this.containerManager=void 0)}},{key:"startPayment",value:function(t,e){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.paymentOptions)throw new Error("Payment options already set. Prevented multiply widget windows.");if(t!==jb.Auth&&t!==jb.Charge)throw new Error("Option 'type' must be 'auth' or 'charge'");try{this.validateOptions(e)}catch(Pk){if(this.onCloseWidgetResolver&&null!=Pk&&Pk.message)return this.lastCallbackResult=function(t){return{type:lC.Error,data:t}}(Pk.message),void this.invokeCallbacks()}var o=new CS(e,t,this.options.cryptogramMode);!function(t){var e=t.createElement("div");e.id="payment-loading-overlay-63456123",e.style.cssText="position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; text-align: center; background-color: transparent; z-index: 9999; display: flex; justify-content: center; align-items: center;";var n=(new DOMParser).parseFromString('\n \n \n ',"image/svg+xml").firstChild,r=t.createElement("span");r.appendChild(n),r.style.cssText="position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);";var o=t.createElement("style");o.type="text/css",o.appendChild(t.createTextNode("@-webkit-keyframes rotating /* Safari and Chrome */ {\n from {\n -webkit-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n to {\n -webkit-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n @keyframes rotating {\n from {\n -ms-transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -webkit-transform: rotate(0deg);\n -o-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n to {\n -ms-transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -webkit-transform: rotate(360deg);\n -o-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n }\n #payment-loading-overlay-63456123 #payment-loading-overlay-loader-63456123{\n -webkit-animation: rotating 2s linear infinite;\n -moz-animation: rotating 2s linear infinite;\n -ms-animation: rotating 2s linear infinite;\n -o-animation: rotating 2s linear infinite;\n animation: rotating 2s linear infinite;\n }\n ")),e.appendChild(o),e.appendChild(r),t.body.appendChild(e)}(document),this.paymentOptions=o,this.merchantPaymentOptions=e,this.legacyCallbackObject.shouldInvokeOnCompleteInstantly=r,this.frameDestroyed&&(kS.LogInfo("Payment frame destroyed. Recreating."),this.containerManager=this.createFrameConnector()),this.containerManager.getConnection().then(function(t){d(this,n),t.setOptions(this.paymentOptions,{origin:window.location.origin},this.options)}.bind(this)).catch(function(){d(this,n),console.warn("IE Detected. Payment prevented.")}.bind(this)),history.pushState({paymentOptions:e,options:this.options},"PaymentWidget",window.location.href)}},{key:"setWidgetOptionsDefaults",value:function(t){var e=n({},t);return Lb.isNullOrUndefined(e.showLoadingImage)&&(e.showLoadingImage=!0),Lb.isNullOrUndefined(e.applePaySupport)&&(e.applePaySupport=!0),Lb.isNullOrUndefined(e.googlePaySupport)&&(e.googlePaySupport=!0),Lb.isNullOrUndefined(e.tinkoffInstallmentSupport)&&(e.tinkoffInstallmentSupport=!0),Lb.isNullOrUndefined(e.tinkoffPaySupport)&&(e.tinkoffPaySupport=!0),Lb.isNullOrUndefined(e.yandexPaySupport)&&(e.yandexPaySupport=!0),Lb.isNullOrUndefined(e.sbpSupport)&&(e.sbpSupport=!0),Lb.isNullOrUndefined(e.mirPaySupport)&&(e.mirPaySupport=!0),Lb.isNullOrUndefined(e.masterPassSupport)&&(e.masterPassSupport=!0),Lb.isNullOrUndefined(e.cryptogramMode)&&(e.cryptogramMode=!1),e}},{key:"createFrameConnector",value:function(){var t=this,e=new vk(this.alternateEmbed,this.options.container,this.options.language,this.options.debug);return e.onFrameDestroyed=function(e,n){d(this,t),kS.LogInfo("Frame destroyed");try{this.invokeCallbacks(e,n)}catch(r){kS.LogInfo("Error",r)}this.paymentOptions=void 0,this.merchantPaymentOptions=void 0,this.frameDestroyed=!0}.bind(this),e.onComplete=function(e){d(this,t),this.legacyCallbackObject.onComplete&&this.legacyCallbackObject.shouldInvokeOnCompleteInstantly&&this.legacyCallbackObject.onComplete(e,this.merchantPaymentOptions)}.bind(this),e.onPaymentCompleted=function(e){d(this,t),this.lastCallbackResult=e,this.onCloseWidgetResolver&&e.type===lC.Cryptogram&&this.onCloseWidgetResolver(e),e.type!==lC.Cryptogram&&this.oncomplete&&this.oncomplete(e)}.bind(this),this.frameDestroyed=!1,e}},{key:"invokeCallbacks",value:function(t,e){var r,o,i;t?(t.success&&this.legacyCallbackObject.onSuccess&&("function"==typeof this.legacyCallbackObject.onSuccess?this.legacyCallbackObject.onSuccess(this.merchantPaymentOptions):window.location.replace(this.legacyCallbackObject.onSuccess)),!t.success&&this.legacyCallbackObject.onFail&&("function"==typeof this.legacyCallbackObject.onFail?this.legacyCallbackObject.onFail(t.message,this.merchantPaymentOptions,null===(r=t.code)||void 0===r?void 0:r.toString()):window.location.replace(this.legacyCallbackObject.onFail))):e||this.legacyCallbackObject.onFail&&("function"==typeof this.legacyCallbackObject.onFail?this.legacyCallbackObject.onFail("User has cancelled",this.merchantPaymentOptions,void 0):window.location.replace(this.legacyCallbackObject.onFail));!this.legacyCallbackObject.shouldInvokeOnCompleteInstantly&&this.legacyCallbackObject.onComplete&&this.legacyCallbackObject.onComplete({success:null!==(o=null==t?void 0:t.success)&&void 0!==o&&o,message:null==t?void 0:t.message,code:null==t?void 0:t.code},this.merchantPaymentOptions);(e&&this.legacyCallbackObject.onSuccess&&"function"==typeof this.legacyCallbackObject.onSuccess&&this.legacyCallbackObject.onSuccess(this.merchantPaymentOptions,null==e?void 0:e.cryptogram,null==e?void 0:e.email),this.onCloseWidgetResolver&&this.lastCallbackResult)?null!==(i=this.lastCallbackResult)&&void 0!==i&&i.status&&[fC.Success,fC.Appointment].includes(this.lastCallbackResult.status)&&[lC.Payment,lC.Installment].includes(this.lastCallbackResult.type)?this.onCloseWidgetResolver(this.lastCallbackResult):this.lastCallbackResult&&this.lastCallbackResult.type===lC.Error?this.onCloseWidgetResolver(n(n({},this.lastCallbackResult),{},{type:lC.Error})):this.onCloseWidgetResolver({type:lC.Cancel}):this.onclose&&this.lastCallbackResult&&this.onclose(n(n({},this.lastCallbackResult),{},{type:lC.Cancel}))}},{key:"validateOptions",value:function(t,e){if(!t.publicId)throw new Error("Option 'publicId' must be specified");if(!t.amount)throw new Error("Option 'amount' must be specified");if("number"!=typeof t.amount)throw new Error("Option 'amount' must be a number");if(!t.currency)throw new Error("Option 'currency' must be specified");if(t.email&&"string"!=typeof t.email)throw new Error("Option 'email' must be a string");if(e&&"function"!=typeof e)throw new Error("Argument 'onCompleted' must be a function");if(t.requireEmail&&"boolean"!=typeof t.requireEmail)throw new Error("Argument 'requireEmail' must be a boolean");if(!t.email&&this.options.email&&(t.email=this.options.email),t.configuration){if(t.configuration.installment&&"object"!==o(t.configuration.installment))throw new Error("Argument 'configuration.installment' must be a object");if(t.configuration.installment&&t.configuration.installment.promoCode&&"string"!=typeof t.configuration.installment.promoCode)throw new Error("Argument 'configuration.installment.promoCode' must be a string");if(t.configuration.common&&t.configuration.common.successRedirectUrl&&"string"!=typeof t.configuration.common.successRedirectUrl)throw new Error("Argument 'configuration.common.successRedirectUrl' must be a string");if(t.configuration.common&&t.configuration.common.failRedirectUrl&&"string"!=typeof t.configuration.common.failRedirectUrl)throw new Error("Argument 'configuration.common.failRedirectUrl' must be a string")}if(t.escrow){if("RUB"!=t.currency)throw new Error("Option 'escrow' is not allowed with currency other than 'RUB'");if(null==t.escrow.accumulationId&&null==t.escrow.startAccumulation)throw new Error("Option 'escrow.accumulationId' or 'escrow.startAccumulation' are required with escrow");if(t.escrow.accumulationId&&1==t.escrow.startAccumulation)throw new Error("Only 'escrow.accumulationId' or 'escrow.startAccumulation' allowed at same time");if(null!=t.escrow.accumulationId&&"string"!=typeof t.escrow.accumulationId)throw new Error("Option 'escrow.accumulationId' must be a string");if(null!=t.escrow.startAccumulation&&"boolean"!=typeof t.escrow.startAccumulation)throw new Error("Option 'escrow.accumulationId' must be a boolean")}}},{key:"onclose",get:function(){return this.callbackObject.onClose},set:function(t){if(t&&"function"!=typeof t)throw new Error("Function required");this.callbackObject.onClose=t}},{key:"oncomplete",get:function(){return this.callbackObject.onPaymentCompleted},set:function(t){if(t&&"function"!=typeof t)throw new Error("Function required");this.callbackObject.onPaymentCompleted=t}},{key:"oncryptogram",get:function(){return this.callbackObject.onCryptogramCreated},set:function(t){if(t&&"function"!=typeof t)throw new Error("Function required");this.callbackObject.onCryptogramCreated=t}}]),t}(),mk=yk,bk=yk,wk={event:{status:{success:fC.Success,fail:fC.Fail,appointment:fC.Appointment},type:{payment:lC.Payment,installment:lC.Installment,error:lC.Error,cancel:lC.Cancel}},escrow:{NToOne:ES.NToOne,OneToN:ES.OneToN}};t.CloudPayments=mk,t.Widget=bk,t.constant=wk,Object.defineProperty(t,"__esModule",{value:!0})}(this.cp=this.cp||{});