!function(){"use strict";!function(){var l=window,u=l.document,i=l.Array,e=l.Object,a=l.String,s=l.Number,n=l.Date,c=l.Math,r=l.setTimeout,t=l.setInterval,o=l.clearTimeout,f=l.parseInt,d=l.encodeURIComponent,h=l.btoa,p=l.unescape,m=l.TypeError,v=l.navigator,g=l.location,y=l.XMLHttpRequest,b=function(n){return function(e,t){return arguments.length<2?function(t){return n.call(null,t,e)}:n.call(null,e,t)}},k=function(r){return function(e,n,t){return arguments.length<3?function(t){return r.call(null,t,e,n)}:r.call(null,e,n,t)}};function _(){for(var t=arguments.length,e=new i(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=arguments;return e.every(function(t,e){return t(n[e])||function(){console.error.apply(console,arguments)}("wrong "+e+"th argtype",n[e])})?t.apply(null,n):n[0]}}}var S=b(function(t,e){return typeof t===e}),w=S("boolean"),D=S("number"),R=S("string"),M=S("function"),N=S("object"),x=i.isArray,L=function(t){return K(t)&&1===t.nodeType},K=function(t){return null!==t&&N(t)},P=function(t){return!B(e.keys(t))},A=b(function(t,e){return t&&t[e]}),B=A("length"),T=A("prototype"),C=b(function(t,e){return t instanceof e}),z=n.now,E=c.random,F=c.floor;function O(t,e){return{error:(n=t,r=e,i={description:a(n)},r&&(i.field=r),i)};var n,r,i}function $(t){throw new Error(t)}var G=function(t){return/data:image\/[^;]+;base64/.test(t)};function H(n){if(!K(n))return"";var t=e.keys(n),r=i(B(t));return t.forEach(function(t,e){return r[e]=d(t)+"="+d(n[t])}),r.join("&")}function I(t,e){return K(e)&&(e=H(e)),e&&(t+=0<t.indexOf("?")?"&":"?",t+=e),t}var U,Z,Y,q,W,j,J,V,X,Q,tt,et,nt,rt,it,ot,at,st,ct,ut,lt=T(i),ft=lt.slice,dt=b(function(t,e){return t&&lt.forEach.call(t,e),t}),ht=(U="indexOf",b(function(t,e){return lt[U].call(t,e)})),pt=b(function(t,e){return 0<=ht(t,e)}),mt=b(function(t,e){return ft.call(t,e)}),vt=k(function(t,e,n){return lt.reduce.call(t,e,n)}),gt=function(t){return t},yt=(T(Function),Y=function(t,e){return t.bind(e)},Z=function(t){if(M(t))return Y.apply(null,arguments);throw new m("not a function")},b(function(t,e){var n=arguments;return R(t)&&((n=mt(n,0))[0]=e[t]),Z.apply(null,n)})),bt=T(a).slice,kt=function(t){return" "+t+" "},_t=b(function(t,e){return-1!==t.indexOf(e)}),St=k(function(t,e,n){return bt.call(t,e,n)}),wt=b(function(t,e){return bt.call(t,e)}),Dt=function(t){return e.keys(t||{})},Rt=b(function(t,e){return e in t}),Mt=b(function(t,e){return t&&t.hasOwnProperty(e)}),Nt=k(function(t,e,n){return t[e]=n,t}),xt=k(function(t,e,n){return n&&(t[e]=n),t}),Lt=b(function(t,e){return delete t[e],t}),Kt=b(function(e,n){return dt(Dt(e),function(t){return n(e[t],t,e)}),e}),Pt=JSON.stringify,At=function(t){try{return JSON.parse(t)}catch(t){}},Bt=b(function(n,t){return Kt(t,function(t,e){return n[e]=t}),n}),Tt=function(t,r){void 0===r&&(r="");var i={};return Kt(t,function(t,e){var n=r?r+"."+e:e;K(t)?Bt(i,Tt(t,n)):i[n]=t}),i},Ct=l.Element,zt=function(t){return u.createElement(t||"div")},Et=function(t){return t.parentNode},Ft=_(L),Ot=_(L,L),$t=_(L,R),Gt=_(L,R,function(){return!0}),Ht=_(L,K),It=(q=Ot(function(t,e){return Et(e).replaceChild(t,e),t}),b(q),W=Ot(function(t,e){return e.appendChild(t)}),b(W)),Ut=(j=Ot(function(t,e){var n;return n=e,It(t)(n),t}),b(j)),Zt=(J=Ot(function(t,e){var n,r=e.firstElementChild;return r?e.insertBefore(t,r):(n=t,It(e)(n)),t}),b(J)),Yt=(V=Ot(function(t,e){var n;return n=e,Zt(t)(n),t}),b(V),Ft(function(t){var e=Et(t);return e&&e.removeChild(t),t})),qt=(Ft(A("selectionStart")),Ft(A("selectionEnd")),Q=function(t,e){return t.selectionStart=t.selectionEnd=e,t},X=_(L,D)(Q),b(X),Ft(function(t){return t.submit(),t})),Wt=(tt=$t(function(t,e){return _t(kt(t.className),kt(e))}),b(tt)),jt=(et=$t(function(t,e){return t.className?Wt(t,e)||(t.className+=" "+e):t.className=e,t}),b(et),nt=$t(function(t,e){return e=(" "+t.className+" ").replace(" "+e+" "," ").replace(/^ | $/g,""),t.className!==e&&(t.className=e),t}),b(nt),rt=$t(function(t,e){return t.getAttribute(e)}),b(rt),k(Gt(function(t,e,n){return t.setAttribute(e,n),t}))),Jt=k(Gt(function(t,e,n){return t.style[e]=n,t})),Vt=(it=Ht(function(r,t){var e;return e=t,Kt(function(t,e){var n;return n=r,jt(e,t)(n)})(e),r}),b(it)),Xt=(ot=Ht(function(r,t){var e;return e=t,Kt(function(t,e){var n;return n=r,Jt(e,t)(n)})(e),r}),b(ot)),Qt=(at=$t(function(t,e){return t.innerHTML=e,t}),b(at)),te=(st=$t(function(t,e){var n;return n=t,Jt("display",e)(n)}),b(st)),ee=(te("none"),te("block"),te("inline-block"),A("offsetWidth")),ne=A("offsetHeight"),re=(Ft(function(t){return t.getBoundingClientRect()}),Ft(function(t){return t.firstChild}),T(Ct)),ie=re.matches||re.matchesSelector||re.webkitMatchesSelector||re.mozMatchesSelector||re.msMatchesSelector||re.oMatchesSelector,oe=(ct=$t(function(t,e){return ie.call(t,e)}),b(ct)),ae=function(e,r,i,o){return C(e,Ct)?console.error("use el |> _El.on(e, cb)"):function(n){var t=r;return R(i)?t=function(t){for(var e=t.target;!oe(e,i)&&e!==n;)e=Et(e);e!==n&&(t.delegateTarget=e,r(t))}:o=i,o=!!o,n.addEventListener(e,t,o),function(){return n.removeEventListener(e,t,o)}}},se=u.documentElement,ce=u.body,ue=l.innerHeight,le=l.pageYOffset,fe=l.scrollBy,de=l.scrollTo,he=l.requestAnimationFrame,pe=yt("querySelector",u),me=yt("querySelectorAll",u),ve=(yt("getElementById",u),yt("getComputedStyle",l),function(t){return R(t)?pe(t):t});function ge(t,e,n,r){if(n&&"get"===n.toLowerCase())t=I(t,e),r?l.open(t,r):l.location=t;else{var i,o,a,s,c,u={action:t,method:n};r&&(u.target=r),c=zt("form"),s=Vt(u)(c),a=Qt(ye(e))(s),o=It(se)(a),i=qt(o),Yt(i)}}function ye(t,n){if(K(t)){var r="";return Kt(t,function(t,e){n&&(e=n+"["+e+"]"),r+=ye(t,e)}),r}return'<input type="hidden" name="'+n+'" value="'+t+'">'}function be(t){!function(s){if(!l.requestAnimationFrame)return fe(0,s);ut&&o(ut),ut=r(function(){var r=le,i=c.min(r+s,ne(ce)-ue);s=i-r;var o=0,a=l.performance.now();he(function t(e){if(1<=(o+=(e-a)/300))return de(0,i);var n=c.sin(we*o/2);de(0,r+c.round(s*n)),a=e,he(t)})},100)}(t-le)}var ke,_e,Se,we=c.PI,De=y,Re=O("Network error"),Me=0;function Ne(t){if(!C(this,Ne))return new Ne(t);this.options=function(t){R(t)&&(t={url:t});var e=t,n=e.method,r=e.headers,i=e.callback,o=e.data;return r||(t.headers={}),n||(t.method="get"),i||(t.callback=gt),K(o)&&(o=H(o)),t.data=o,t}(t),this.defer()}((_e={setReq:function(t,e){return this.abort(),this.type=t,this.req=e,this},till:function(e){var n=this;return this.setReq("timeout",r(function(){n.call(function(t){e(t)?n.till(e):n.options.callback(t)})},3e3))},abort:function(){var t=this.req,e=this.type;t&&("ajax"===e?this.req.abort():"jsonp"===e?l.Razorpay[this.req]=gt:o(this.req),this.req=null)},defer:function(){var t=this;this.req=r(function(){return t.call()})},call:function(e){var t,n;void 0===e&&(e=this.options.callback);var r=this.options,i=r.url,o=r.method,a=r.data,s=r.headers,c=new De;this.setReq("ajax",c),c.open(o,i,!0),c.onreadystatechange=function(){if(4===c.readyState&&c.status){var t=At(c.responseText);t||((t=O("Parsing error")).xhr={status:c.status,text:c.responseText}),e(t)}},c.onerror=function(){var t=Re;t.xhr={status:0},e(t)},n=s,t=xt("X-Razorpay-SessionId",ke)(n),Kt(function(t,e){return c.setRequestHeader(e,t)})(t),c.send(a)}}).constructor=Ne).prototype=_e,Ne.post=function(t){return t.method="post",t.headers||(t.headers={}),t.headers["Content-type"]||(t.headers["Content-type"]="application/x-www-form-urlencoded"),Ne(t)},Ne.setSessionId=function(t){ke=t},Ne.jsonp=function(a){a.data||(a.data={});var s="jsonp"+Me++;a.data.callback="Razorpay."+s;var t=new Ne(a);return a=t.options,t.call=function(e){var t,n;void 0===e&&(e=a.callback);var r=!1,i=function(){r||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(r=!0,this.onload=this.onreadystatechange=null,Yt(this))},o=l.Razorpay[s]=function(t){Lt(t,"http_status_code"),e(t),Lt(l.Razorpay,s)};this.setReq("jsonp",o),n=zt("script"),t=Bt({src:I(a.url,a.data),async:!0,onerror:function(t){return a.callback(Re)},onload:i,onreadystatechange:i})(n),It(se)(t)},t};var xe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Le=(Se=xe,vt(function(t,e,n){return Nt(t,e,n)},{})(Se));function Ke(t){for(var e="";t;)e=xe[t%62]+e,t=F(t/62);return e}function Pe(){var t,n,r=Ke(a(z()-13885344e5)+wt("000000"+F(1e6*E()),-6))+Ke(F(238328*E()))+"0",i=0;return t=r,dt(function(t,e){n=Le[r[r.length-1-e]],(r.length-e)%2&&(n*=2),62<=n&&(n=n%62+1),i+=n})(t),(n=i%62)&&(n=xe[62-n]),St(r,0,13)+n}var Ae=Pe(),Be={library:"checkoutjs",platform:"browser",referer:g.href};function Te(t){var e,n={checkout_id:t?t.id:Ae};return e=["integration","referer","library","platform","platform_version","os","os_version","device"],dt(function(t){var e;return e=n,xt(t,Be[t])(e)})(e),n}var Ce,ze=[],Ee=function(t){return ze.push(t)},Fe=function(t){Ce=t},Oe=function(){var t,e,n,r,i;if(ze.length){var o=Rt(v,"sendBeacon"),a={url:"https://lumberjack.razorpay.com/v1/track",data:{key:"ZmY5N2M0YzVkN2JiYzkyMWM1ZmVmYWJk",data:(i={context:Ce,addons:[{name:"ua_parser",input_key:"user_agent",output_key:"user_agent_parsed"}],events:ze.splice(0,ze.length)},r=Pt(i),n=d(r),e=p(n),t=h(e),d(t))}};try{o?v.sendBeacon(a.url,Pt(a.data)):Ne.post(a)}catch(t){}}};function $e(l,f,d,h){l.isLiveMode()&&r(function(){d instanceof Error&&(d={message:d.message,stack:d.stack});var t=Te(l);t.user_agent=null,t.mode="live";var e=l.get("order_id");e&&(t.order_id=e);var i={},n={options:i,es6:!0};d&&(n.data=d);var r,o,a,s,c,u=["key","amount","prefill","theme","image","description","name","method","display_currency","display_amount","redirect","flashcheckout"];Kt(l.get(),function(t,e){var n=e.split("."),r=n[0];-1!==u.indexOf(r)&&(1<n.length?(u.hasOwnProperty(r)||(i[r]={}),i[r][n[1]]=t):i[e]=t)}),i.image&&G(i.image)&&(i.image="base64"),r=n,(c=l._payment)&&(c.payment_id&&(r.payment_id=c.payment_id),o=c,Mt("magicPossible")(o)&&(r.magic_possible=c.magicPossible),a=c,Mt("isMagicPayment")(a)&&(r.magic_attempted=c.isMagicPayment),s=c,Mt("magicCoproto")(s)&&(r.magic_coproto=c.magicCoproto)),Ae&&(n.local_order_id=Ae),Ee({event:f,properties:n,timestamp:z()}),Fe(t),h&&Oe()})}t(function(){Oe()},1e3),$e.parseAnalyticsData=function(t){var e;K(t)&&(e=t,Kt(function(t,e){Be[t]=e})(e))},$e.makeUid=Pe,$e.common=Te,$e.props=Be,$e.id=Ae,$e.updateUid=function(t){$e.id=Ae=t},$e.flush=Oe;var Ge,He={},Ie={setR:function(t){Ge=t},track:function(t,e){var n,r=void 0===e?{}:e,i=r.type,o=r.data,a=void 0===o?{}:o,s=r.r,c=void 0===s?Ge:s,u=r.immediately,l=void 0!==u&&u,f=(n=Tt(He),Kt(n,function(t,e){M(t)&&(n[e]=t.call())}),n);(a=K(a)?At(Pt(a)):{data:a}).meta&&K(a.meta)&&(f=Bt(f,a.meta)),a.meta=f,i&&(t=i+":"+t),$e(c,t,a,l)},setMeta:function(t,e){Nt(He,t,e)},removeMeta:function(t){Lt(He,t)},getMeta:function(){return e={},Kt(He,function(n,t){t.replace(/\[([^[\]]+)\]/g,".$1");var r=t.split("."),i=e;dt(r,function(t,e){e<r.length-1?(i[t]||(i[t]={}),i=i[t]):i[t]=n})}),e;var e}};function Ue(){return this._evts={},this._defs={},this}Ue.prototype={onNew:gt,def:function(t,e){this._defs[t]=e},on:function(t,e){if(R(t)&&M(e)){var n=this._evts;n[t]||(n[t]=[]),!1!==this.onNew(t,e)&&n[t].push(e)}return this},once:function(t,e){var n=e,r=this,i=function(){n.apply(r,arguments),r.off(t,i)};return e=i,this.on(t,e)},off:function(n,t){var e=arguments.length;if(!e)return Ue.call(this);var r=this._evts;if(2===e){var i=r[n];if(!M(t)||!x(i))return;if(i.splice(ht(i,t),1),i.length)return}return r[n]?delete r[n]:(n+=".",Kt(r,function(t,e){e.indexOf(n)||delete r[e]})),this},emit:function(t,e){var n=this;return dt(this._evts[t],function(t){try{t.call(n,e)}catch(t){console.error}}),this},emitter:function(){var t=this,e=arguments;return function(){t.emit.apply(t,e)}}};var Ze=v.userAgent;function Ye(t){return t.test(Ze)}Ye(/MSIE |Trident\//);var qe=Ye(/iPhone/),We=qe||Ye(/iPad/),je=Ye(/Android/),Je=(Ye(/Safari/),Ye(/; wv\) |Gecko\) Version\/[^ ]+ Chrome|Windows Phone|Opera Mini|UCBrowser|FBAN|CriOS/)||We||Ye(/Android 4/)),Ve=(Ye(/iPhone/),Ze.match(/Chrome\/(\d+)/));Ve&&(Ve=f(Ve[1],10)),je&&(Ve||Ye(/firefox/));var Xe={key:"",account_id:"",image:"",amount:100,currency:"INR",order_id:"",invoice_id:"",subscription_id:"",payment_link_id:"",notes:null,callback_url:"",redirect:!1,description:"",customer_id:"",recurring:null,signature:"",retry:!0,target:"",subscription_card_change:null,display_currency:"",display_amount:"",recurring_token:{max_amount:0,expire_by:0}};function Qe(t,e,n,r){var i=e[n=n.toLowerCase()],o=typeof i;"string"===o&&(D(r)||w(r))?r=a(r):"number"===o?r=s(r):"boolean"===o&&(R(r)?"true"===r||"1"===r?r=!0:"false"!==r&&"0"!==r||(r=!1):D(r)&&(r=!!r)),null!==i&&o!==typeof r||(t[n]=r)}function tn(t,r){var i={};return Kt(t,function(t,n){n in en?Kt(t,function(t,e){Qe(i,r,n+"."+e,t)}):Qe(i,r,n,t)}),i}var en={};function nn(n){Kt(Xe,function(t,n){K(t)&&!P(t)&&(en[n]=!0,Kt(t,function(t,e){Xe[n+"."+e]=t}),delete Xe[n])}),(n=tn(n,Xe)).callback_url&&Je&&(n.redirect=!0),this.get=function(t){return arguments.length?t in n?n[t]:Xe[t]:n},this.set=function(t,e){n[t]=e},this.unset=function(t){delete n[t]}}var rn=["AED","ALL","AMD","ARS","AUD","AWG","BBD","BDT","BMD","BND","BOB","BSD","BWP","BZD","CAD","CHF","CNY","COP","CRC","CUP","CZK","DKK","DOP","DZD","EGP","ETB","EUR","FJD","GBP","GIP","GMD","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","JMD","KES","KGS","KHR","KYD","KZT","LAK","LBP","LKR","LRD","LSL","MAD","MDL","MKD","MMK","MNT","MOP","MUR","MVR","MWK","MXN","MYR","NAD","NGN","NIO","NOK","NPR","NZD","PEN","PGK","PHP","PKR","QAR","RUB","SAR","SCR","SEK","SGD","SLL","SOS","SSP","SVC","SZL","THB","TTD","TZS","USD","UYU","UZS","YER","ZAR"],on={AED:"د.إ",AFN:"&#x60b;",ALL:"&#x6b;",AMD:"&#1423;",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"A$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"Bds$",BDT:"&#x9f3;",BGN:"лв",BHD:"د.ب",BIF:"FBu",BMD:"BD$",BND:"B$",BOB:"Bs.",BRL:"R$",BSD:"B$",BTN:"Nu.",BWP:"P",BYR:"Br",BZD:"BZ$",CAD:"C$",CDF:"FC",CHF:"Fr",CLP:"$",CNY:"&#165;",COP:"$",CRC:"&#x20a1;",CUC:"&#x20b1;",CUP:"$",CVE:"Esc",CZK:"Kč",DJF:"Fdj",DKK:"Kr.",DOP:"RD$",DZD:"د.ج",EGP:"E&#163;",ERN:"Nfa",ETB:"Br",EUR:"&#8364;",FJD:"FJ$",FKP:"FK&#163;",GBP:"&#163;",GEL:"ლ",GHS:"&#x20b5;",GIP:"&#163;",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"GY$",HKD:"HK$",HNL:"L",HRK:"Kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"&#x20aa;",INR:"₹",IQD:"ع.د",IRR:"&#xfdfc;",ISK:"Kr",JMD:"J$",JOD:"د.ا",JPY:"&#165;",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"د.ك",KYD:"KY$",KZT:"&#x20b8;",LAK:"&#x20ad;",LBP:"L&#163;",LD:"ل.د",LKR:"Rs",LRD:"L$",LSL:"L",LTL:"Lt",LVL:"Ls",LYD:"ل.د",MAD:"د.م.",MDL:"L",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"&#x20ae;",MOP:"P",MRO:"UM",MUR:"Ɍs",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"N$",NGN:"&#x20a6;",NIO:"C$",NOK:"Kr",NPR:"NɌs",NZD:"NZ$",OMR:"ر.ع.",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"&#x20b1;",PKR:"Ɍs",PLN:"Zł",PYG:"&#x20b2;",QAR:"QAR",RON:"L",RSD:"Дин.",RUB:"руб",RWF:"RF",SAR:"ر.س",SBD:"SI$",SCR:"Ɍs",SDG:"&#163;Sd",SEK:"Kr",SFR:"Fr",SGD:"S$",SHP:"&#163;",SLL:"Le",SOS:"So. Sh.",SRD:"$",SSP:"&#163;",STD:"Db",SVC:"&#x20a1;",SYP:"S&#163;",SZL:"L",THB:"&#x0e3f;",TJS:"SM",TMT:"M",TND:"د.ت",TOP:"T$",TRY:"TL",TTD:"TT$",TWD:"NT$",TZS:"TSh",UAH:"&#x20b4;",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"&#x20ab;",VUV:"VT",WST:"T",XAF:"CFA",XCD:"EC$",XOF:"CFA",XPF:"F",YER:"&#xfdfc;",ZAR:"R",ZMK:"ZK",ZWL:"Z$"},an=(vt(rn,function(t,e){return t[e]=on[e],t},{}),{api:"https://api.razorpay.com/",version:"v1/",frameApi:"/",cdn:"https://cdn.razorpay.com/"});try{Bt(an,l.Razorpay.config)}catch(t){}function sn(t){return void 0===t&&(t=""),an.api+an.version+t}var cn=["key","order_id","invoice_id","subscription_id","payment_link_id"];function un(e){if(!C(this,un))return new un(e);var n;Ue.call(this),this.id=$e.makeUid(),Ie.setR(this);try{n=function(t){t&&"object"==typeof t||$("Invalid options");var n,r,e=new nn(t);return r=(r=e).get(),Kt(hn,function(t,e){if(e in r){var n=t(r[e],r);n&&$("Invalid "+e+" ("+n+")")}}),n=e.get("notes"),Kt(n,function(t,e){R(t)?254<t.length&&(n[e]=t.slice(0,254)):D(t)||w(t)||delete n[e]}),e}(e),this.get=n.get,this.set=n.set}catch(t){var r=t.message;this.get&&this.isLiveMode()||K(e)&&!e.parent&&l.alert(r),$(r)}"rzp_live_ILgsfZCZoFIKMb"===n.get("key")&&!1!==e.flashcheckout&&n.set("flashcheckout",!0),n.get("flashcheckout")&&n.set("method.qr",!0),cn.every(function(t){return!n.get(t)})&&$("No key passed"),this.postInit()}var ln=un.prototype=new Ue;function fn(t,e){return Ne.jsonp({url:sn("preferences"),data:t,callback:e})}function dn(t){if(t){var n=t.get,r={},e=n("key");return e&&(r.key_id=e),dt(["order_id","customer_id","invoice_id","payment_link_id","subscription_id","recurring","subscription_card_change","account_id"],function(t){var e=n(t);e&&(r[t]=e)}),r}}ln.postInit=gt,ln.onNew=function(t,e){var n=this;"ready"===t&&(this.prefs?e(t,this.prefs):fn(dn(this),function(t){t.methods&&(n.prefs=t,n.methods=t.methods),e(n.prefs)}))},ln.emi_calculator=function(t,e){return un.emi.calculator(this.get("amount")/100,t,e)},un.emi={calculator:function(t,e,n){if(!n)return c.ceil(t/e);n/=1200;var r=c.pow(1+n,e);return f(t*n*r/(r-1),10)}},un.payment={getMethods:function(e){return fn({key_id:un.defaults.key},function(t){e(t.methods||t)})},getPrefs:function(e,n){return Ne({url:I(sn("preferences"),e),callback:function(t){if(t.xhr&&0===t.xhr.status)return fn(e,n);n(t)}})}},ln.isLiveMode=function(){var t=this.preferences;return!t&&/^rzp_l/.test(this.get("key"))||t&&"live"===t.mode};var hn={notes:function(t){if(K(t)&&15<B(Dt(t)))return"At most 15 notes are allowed"},amount:function(t,e){if((/[^0-9]/.test(n=t)||!(100<=(n=f(n,10))))&&!e.recurring)return"should be passed in integer paise. Minimum value is 100 paise, i.e. ₹ 1";var n},currency:function(t){if(!pt(rn,t))return"The provided currency is not currently supported"},display_currency:function(t){if(!(t in on)&&t!==un.defaults.display_currency)return"This display currency is not supported"},display_amount:function(t){if(!(t=a(t).replace(/([^0-9.])/g,""))&&t!==un.defaults.display_amount)return""}};un.configure=function(t){Kt(tn(t,Xe),function(t,e){typeof Xe[e]==typeof t&&(Xe[e]=t)})},un.defaults=Xe,l.Razorpay=un,Xe.timeout=0,Xe.name="",Xe.ecod=!1,Xe.flashcheckout=!1,Xe.remember_customer=!1,Xe.personalization=!1,Xe.method={netbanking:null,card:!0,cardless_emi:null,wallet:null,emi:!0,upi:!0,upi_intent:null,qr:!1},Xe.prefill={amount:"",wallet:"",provider:"",method:"",name:"",contact:"",email:"",vpa:"","card[number]":"","card[expiry]":"","card[cvv]":"",bank:"","bank_account[name]":"","bank_account[account_number]":"","bank_account[account_type]":"","bank_account[ifsc]":"",auth_type:""},Xe.features={cardsaving:!0},Xe.readonly={contact:!1,email:!1,name:!1},Xe.hidden={contact:!1,email:!1},Xe.modal={confirm_close:!1,ondismiss:gt,onhidden:gt,escape:!0,animation:!0,backdropclose:!1},Xe.external={wallets:[],handler:gt},Xe.theme={upi_only:!1,color:"",backdrop_color:"rgba(0,0,0,0.6)",image_padding:!0,image_frame:!0,close_button:!0,close_method_back:!1,hide_topbar:!1,branding:"",debit_card:!1};var pn,mn,vn,gn,yn=l,bn=yn.screen,kn=yn.scrollTo,_n=qe,Sn={overflow:"",metas:null,orientationchange:function(){Sn.resize.call(this),Sn.scroll.call(this)},resize:function(){var t=l.innerHeight||bn.height;Rn.container.style.position=t<450?"absolute":"fixed",this.el.style.height=c.max(t,460)+"px"},scroll:function(){if("number"==typeof l.pageYOffset)if(l.innerHeight<460){var t=460-l.innerHeight;l.pageYOffset>t+120&&be(t)}else this.isFocused||be(0)}};function wn(){return Sn.metas||(Sn.metas=me('head meta[name=viewport],head meta[name="theme-color"]')),Sn.metas}function Dn(t){try{Rn.backdrop.style.background=t}catch(t){}}function Rn(t){if(pn=u.body,mn=u.head,vn=pn.style,t)return this.getEl(t),this.openRzp(t);this.getEl(),this.time=z()}Rn.prototype={getEl:function(t){if(!this.el){var e,n={style:"opacity: 1; height: 100%; position: relative; background: none; display: block; border: 0 none transparent; margin: 0px; padding: 0px; z-index: 2;",allowtransparency:!0,frameborder:0,width:"100%",height:"100%",allowpaymentrequest:!0,src:function(t){var e=an.frame;if(!e){e=sn("checkout");var n=dn(t);n?e=I(e,n):e+="/public"}return e}(t),class:"razorpay-checkout-frame"};this.el=(e=zt("iframe"),Vt(n)(e))}return this.el},openRzp:function(t){var e,n=(e=this.el,Xt({width:"100%",height:"100%"})(e)),r=t.get("parent");r&&(r=ve(r));var i,o,a,s,c=r||Rn.container;(function(t,e){if(!gn)try{var n;(gn=u.createElement("div")).className="razorpay-loader";var r="margin:-25px 0 0 -25px;height:50px;width:50px;animation:rzp-rot 1s infinite linear;-webkit-animation:rzp-rot 1s infinite linear;border: 1px solid rgba(255, 255, 255, 0.2);border-top-color: rgba(255, 255, 255, 0.7);border-radius: 50%;";r+=e?"margin: 100px auto -150px;border: 1px solid rgba(0, 0, 0, 0.2);border-top-color: rgba(0, 0, 0, 0.7);":"position:absolute;left:50%;top:50%;",gn.setAttribute("style",r),n=gn,It(t)(n)}catch(t){}}(c,r),t!==this.rzp)&&(Et(n)!==c&&(s=c,Ut(n)(s)),this.rzp=t);r?(i=n,Jt("minHeight","530px")(i),this.embedded=!0):(a=c,o=Jt("display","block")(a),ee(o),Dn(t.get("theme.backdrop_color")),/^rzp_t/.test(t.get("key"))&&Rn.ribbon&&(Rn.ribbon.style.opacity=1),this.setMetaAndOverflow()),this.bind(),this.onload()},makeMessage:function(){var t=this.rzp,n=t.get(),e={integration:$e.props.integration,referer:g.href,options:n,id:t.id};return t.metadata&&(e.metadata=t.metadata),Kt(t.modal.options,function(t,e){n["modal."+e]=t}),this.embedded&&(delete n.parent,e.embedded=!0),function(t){var e=t.image;if(e&&R(e)){if(G(e))return;if(e.indexOf("http")){var n=g.protocol+"//"+g.hostname+(g.port?":"+g.port:""),r="";"/"!==e[0]&&"/"!==(r+=g.pathname.replace(/[^/]*$/g,""))[0]&&(r="/"+r),t.image=n+r+e}}}(n),e},close:function(){Dn(""),Rn.ribbon&&(Rn.ribbon.style.opacity=0),function(t){t&&dt(t,Yt);var e=wn();e&&dt(e,It(mn))}(this.$metas),vn.overflow=Sn.overflow,this.unbind(),_n&&kn(0,Sn.oldY),$e.flush()},bind:function(){var r=this;if(!this.listeners){this.listeners=[];var t={};_n&&(t.orientationchange=Sn.orientationchange,this.rzp.get("parent")||(t.resize=Sn.resize)),Kt(t,function(t,e){var n;r.listeners.push((n=window,ae(e,yt(t,r))(n)))})}},unbind:function(){this.listeners,dt(function(t){return t()}),this.listeners=null},setMetaAndOverflow:function(){var t,e;mn&&(dt(wn(),function(t){return Yt(t)}),this.$metas=[(t=zt("meta"),Vt({name:"viewport",content:"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"})(t)),(e=zt("meta"),Vt({name:"theme-color",content:this.rzp.get("theme.color")})(e))],dt(this.$metas,It(mn)),Sn.overflow=vn.overflow,vn.overflow="hidden",_n&&(Sn.oldY=l.pageYOffset,l.scrollTo(0,0),Sn.orientationchange.call(this)))},postMessage:function(t){t.id=this.rzp.id,t=Pt(t),this.el.contentWindow.postMessage(t,"*")},onmessage:function(t){var e=At(t.data);if(e){var n=e.event,r=this.rzp;t.origin&&"frame"===e.source&&t.source===this.el.contentWindow&&(e=e.data,this["on"+n](e),"dismiss"!==n&&"fault"!==n||Ie.track(n,{data:e,r:r,immediately:!0}))}},onload:function(){this.rzp&&this.postMessage(this.makeMessage())},onfocus:function(){this.isFocused=!0},onblur:function(){this.isFocused=!1,Sn.orientationchange.call(this)},onrender:function(){gn&&(Yt(gn),gn=null),this.rzp.emit("render")},onevent:function(t){this.rzp.emit(t.event,t.data)},onredirect:function(t){$e.flush(),function(t){if(!t.target&&l!==l.parent)return l.Razorpay.sendMessage({event:"redirect",data:t});ge(t.url,t.content,t.method,t.target)}(t)},onsubmit:function(e){$e.flush();var n=this.rzp;"wallet"===e.method&&dt(n.get("external.wallets"),function(t){if(t===e.wallet)try{n.get("external.handler").call(n,e)}catch(t){}}),n.emit("payment.submit",{method:e.method})},ondismiss:function(t){this.close();var e=this.rzp.get("modal.ondismiss");M&&r(function(){return e(t)})},onhidden:function(){$e.flush(),this.afterClose();var t=this.rzp.get("modal.onhidden");M(t)&&t()},oncomplete:function(t){this.close();var e=this.rzp,n=e.get("handler");Ie.track("checkout_success",{r:e,data:t,immediately:!0}),M(n)&&r(function(){n.call(e,t)},200)},onpaymenterror:function(t){$e.flush();try{this.rzp.emit("payment.error",t),this.rzp.emit("payment.failed",t)}catch(t){}},onfailure:function(t){this.ondismiss(),l.alert("Payment Failed.\n"+t.error.description),this.onhidden()},onfault:function(t){$e.flush(),this.rzp.close(),l.alert("Oops! Something went wrong.\n"+t),this.afterClose()},afterClose:function(){Rn.container.style.display="none"},onflush:function(t){$e.flush()}};var Mn,Nn=T(un);function xn(e){return function t(){return Mn?e.call(this):(r(yt(t,this),99),this)}}!function t(){(Mn=u.body||u.getElementsByTagName("body")[0])||r(t,99)}();var Ln,Kn=u.currentScript||(Ln=me("script"))[Ln.length-1];function Pn(t){var e,n,r,i;r=Et(Kn),n=Ut((i=zt(),Qt(ye(t))(i)))(r),e=Nt("onsubmit",gt)(n),qt(e)}var An,Bn,Tn=function(c){var t,e,n;e=Et(Kn),t=Ut((n=zt("input"),Bt({type:"submit",value:c.get("buttontext"),className:"razorpay-payment-button"})(n)))(e),Nt("onsubmit",function(t){t.preventDefault();var e,n=this.action,r=this.method,i=this.target,o=c.get();if(R(n)&&n&&!o.callback_url){var a={url:n,content:(e=this,vt(e.querySelectorAll("[name]"),function(t,e){return t[e.name]=e.value,t},{})),method:R(r)?r:"get",target:R(i)&&i};try{var s=h(Pt({request:a,options:Pt(o),back:g.href}));o.callback_url=sn("checkout/onyx")+"?data="+s}catch(t){}}return c.open(),!1})(t)};function Cn(){if(!An){var t,e,n,r;r=zt(),n=Nt("className","razorpay-container")(r),e=Nt("innerHTML","<style>@keyframes rzp-rot{to{transform: rotate(360deg);}}@-webkit-keyframes rzp-rot{to{-webkit-transform: rotate(360deg);}}</style>")(n),t=Xt({zIndex:1e9,position:"fixed",top:0,display:"none",left:0,height:"100%",width:"100%","-webkit-overflow-scrolling":"touch","-webkit-backface-visibility":"hidden","overflow-y":"visible"})(e),An=It(Mn)(t);var i=(d=Rn.container=An,m=zt(),p=Nt("className","razorpay-backdrop")(m),h=Xt({"min-height":"100%",transition:"0.3s ease-out",position:"fixed",top:0,left:0,width:"100%",height:"100%"})(p),It(d)(h)),o=(a=Rn.backdrop=i,l="rotate(45deg)",f="opacity 0.3s ease-in",u=zt("span"),c=Nt("innerHTML","Test Mode")(u),s=Xt({"text-decoration":"none",background:"#D64444",border:"1px dashed white",padding:"3px",opacity:"0","-webkit-transform":l,"-moz-transform":l,"-ms-transform":l,"-o-transform":l,transform:l,"-webkit-transition":f,"-moz-transition":f,transition:f,"font-family":"lato,ubuntu,helvetica,sans-serif",color:"white",position:"absolute",width:"200px","text-align":"center",right:"-50px",top:"50px"})(c),It(a)(s));Rn.ribbon=o}var a,s,c,u,l,f,d,h,p,m;return An}function zn(t){var e,n;return Bn?Bn.openRzp(t):(Bn=new Rn(t),e=l,ae("message",yt("onmessage",Bn))(e),n=An,Ut(Bn.el)(n)),Bn}un.open=function(t){return un(t).open()},Nn.postInit=function(){this.modal={options:{}},this.get("parent")&&this.open()};var En=Nn.onNew;Nn.onNew=function(t,e){"payment.error"===t&&$e(this,"event_paymenterror",g.href),M(En)&&En.call(this,t,e)},Nn.open=xn(function(){this.metadata||(this.metadata={}),this.metadata.openedAt=n.now();var t=this.checkoutFrame=zn(this);return $e(this,"open"),t.el.contentWindow||(t.close(),t.afterClose(),l.alert("This browser is not supported.\nPlease try payment in another browser.")),"-new.js"===Kn.src.slice(-7)&&$e(this,"oldscript",g.href),this}),Nn.close=function(){var t=this.checkoutFrame;t&&t.postMessage({event:"close"})};var Fn=xn(function(){Cn(),Bn=zn();try{!function(){var i={};Kt(Kn.attributes,function(t){var e=t.name.toLowerCase();if(/^data-/.test(e)){var n=i;e=e.replace(/^data-/,"");var r=t.value;"true"===r?r=!0:"false"===r&&(r=!1),/^notes\./.test(e)&&(i.notes||(i.notes={}),n=i.notes,e=e.replace(/^notes\./,"")),n[e]=r}});var t=i.key;if(t&&0<t.length){i.handler=Pn;var e=un(i);i.parent||Tn(e)}}()}catch(t){}});$e.props.library="checkoutjs",Xe.handler=function(t){if(C(this,un)){var e=this.get("callback_url");e&&ge(e,t,"post")}},Xe.buttontext="Pay Now",Xe.parent=null,hn.parent=function(t){if(!ve(t))return"parent provided for embedded mode doesn't exist"},Fn()}()}();