PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/tiktechtok.org/wp-content/plugins/woocommerce-payments/dist/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/tiktechtok.org/wp-content/plugins/woocommerce-payments/dist/payment-request.js |
(()=>{var e={452:function(e,t,n){var i;e.exports=(i=n(3345),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib.BlockCipher,n=e.algo,r=[],o=[],a=[],s=[],l=[],c=[],u=[],p=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var y=i^i<<1^i<<2^i<<3^i<<4;y=y>>>8^255&y^99,r[n]=y,o[y]=n;var _=e[n],f=e[_],m=e[f],v=257*e[y]^16843008*y;a[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,c[n]=v,v=16843009*m^65537*f^257*_^16843008*n,u[y]=v<<24|v>>>8,p[y]=v<<16|v>>>16,d[y]=v<<8|v>>>24,h[y]=v,n?(n=_^e[e[e[m^_]]],i^=e[e[i]]):n=i=1}}();var y=[0,1,2,4,8,16,32,64,128,27,54],_=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<i;a++)a<n?o[a]=t[a]:(c=o[a-1],a%n?n>6&&a%n==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=y[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<i;l++){if(a=i-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:u[r[c>>>24]]^p[r[c>>>16&255]]^d[r[c>>>8&255]]^h[r[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,p,d,h,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],p=e[t+2]^n[2],d=e[t+3]^n[3],h=4,y=1;y<l;y++){var _=i[c>>>24]^r[u>>>16&255]^o[p>>>8&255]^a[255&d]^n[h++],f=i[u>>>24]^r[p>>>16&255]^o[d>>>8&255]^a[255&c]^n[h++],m=i[p>>>24]^r[d>>>16&255]^o[c>>>8&255]^a[255&u]^n[h++],v=i[d>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&p]^n[h++];c=_,u=f,p=m,d=v}_=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[p>>>8&255]<<8|s[255&d])^n[h++],f=(s[u>>>24]<<24|s[p>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[h++],m=(s[p>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[h++],v=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&p])^n[h++],e[t]=_,e[t+1]=f,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(_)}(),i.AES)},5109:function(e,t,n){var i,r,o,a,s,l,c,u,p,d,h,y,_,f,m,v,g,w,P;e.exports=(i=n(3345),n(888),void(i.lib.Cipher||(r=i,o=r.lib,a=o.Base,s=o.WordArray,l=o.BufferedBlockAlgorithm,c=r.enc,c.Utf8,u=c.Base64,p=r.algo.EvpKDF,d=o.Cipher=l.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?P:g}return function(t){return{encrypt:function(n,i,r){return e(i).encrypt(t,n,i,r)},decrypt:function(n,i,r){return e(i).decrypt(t,n,i,r)}}}}()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=r.mode={},y=o.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),_=h.CBC=function(){var e=y.extend();function t(e,t,n){var i,r=this._iv;r?(i=r,this._iv=void 0):i=this._prevBlock;for(var o=0;o<n;o++)e[t+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,r=i.blockSize;t.call(this,e,n,r),i.encryptBlock(e,n),this._prevBlock=e.slice(n,n+r)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,r=i.blockSize,o=e.slice(n,n+r);i.decryptBlock(e,n),t.call(this,e,n,r),this._prevBlock=o}}),e}(),f=(r.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,r=i<<24|i<<16|i<<8|i,o=[],a=0;a<i;a+=4)o.push(r);var l=s.create(o,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:_,padding:f}),reset:function(){var e;d.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),m=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(r.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(u)},parse:function(e){var t,n=u.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=s.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},g=o.SerializableCipher=a.extend({cfg:a.extend({format:v}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i),o=r.finalize(t),a=r.cfg;return m.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(r.kdf={}).OpenSSL={execute:function(e,t,n,i){i||(i=s.random(8));var r=p.create({keySize:t+n}).compute(e,i),o=s.create(r.words.slice(t),4*n);return r.sigBytes=4*t,m.create({key:r,iv:o,salt:i})}},P=o.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:w}),encrypt:function(e,t,n,i){var r=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize);i.iv=r.iv;var o=g.encrypt.call(this,e,t,r.key,i);return o.mixIn(r),o},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=r.iv,g.decrypt.call(this,e,t,r.key,i)}}))))},3345:function(e,t,n){var i;e.exports=(i=i||function(e,t){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==n.g&&n.g.crypto&&(i=n.g.crypto),!i)try{i=n(2480)}catch(e){}var r=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,r=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<r;s+=4)t[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),u=a.enc={},p=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(n,t/2)}},d=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(n,t)}},h=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},y=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var p=0;p<l;p+=a)this._doProcessBlock(r,p);n=r.splice(0,l),i.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),_=(s.Hasher=y.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new _.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math),i)},8269:function(e,t,n){var i,r,o;e.exports=(i=n(3345),o=(r=i).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)r.push(i.charAt(a>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],r=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2|n[e.charCodeAt(a)]>>>6-a%4*2;i[r>>>2]|=s<<24-r%4*8,r++}return o.create(i,r)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},5743:function(e,t,n){e.exports=n(3345).enc.Utf8},888:function(e,t,n){var i,r,o,a,s,l,c,u;e.exports=(u=n(3345),n(2783),n(9824),o=(r=(i=u).lib).Base,a=r.WordArray,l=(s=i.algo).MD5,c=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,r=i.hasher.create(),o=a.create(),s=o.words,l=i.keySize,c=i.iterations;s.length<l;){n&&r.update(n),n=r.update(e).finalize(t),r.reset();for(var u=1;u<c;u++)n=r.finalize(n),r.reset();o.concat(n)}return o.sigBytes=4*l,o}}),i.EvpKDF=function(e,t,n){return c.create(n).compute(e,t)},u.EvpKDF)},9824:function(e,t,n){var i,r,o;e.exports=(r=(i=n(3345)).lib.Base,o=i.enc.Utf8,void(i.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),a=this._iKey=t.clone(),s=r.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},8214:function(e,t,n){var i;e.exports=(i=n(3345),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],h=e[t+2],y=e[t+3],_=e[t+4],f=e[t+5],m=e[t+6],v=e[t+7],g=e[t+8],w=e[t+9],P=e[t+10],b=e[t+11],q=e[t+12],S=e[t+13],k=e[t+14],R=e[t+15],x=o[0],B=o[1],C=o[2],E=o[3];x=c(x,B,C,E,a,7,s[0]),E=c(E,x,B,C,l,12,s[1]),C=c(C,E,x,B,h,17,s[2]),B=c(B,C,E,x,y,22,s[3]),x=c(x,B,C,E,_,7,s[4]),E=c(E,x,B,C,f,12,s[5]),C=c(C,E,x,B,m,17,s[6]),B=c(B,C,E,x,v,22,s[7]),x=c(x,B,C,E,g,7,s[8]),E=c(E,x,B,C,w,12,s[9]),C=c(C,E,x,B,P,17,s[10]),B=c(B,C,E,x,b,22,s[11]),x=c(x,B,C,E,q,7,s[12]),E=c(E,x,B,C,S,12,s[13]),C=c(C,E,x,B,k,17,s[14]),x=u(x,B=c(B,C,E,x,R,22,s[15]),C,E,l,5,s[16]),E=u(E,x,B,C,m,9,s[17]),C=u(C,E,x,B,b,14,s[18]),B=u(B,C,E,x,a,20,s[19]),x=u(x,B,C,E,f,5,s[20]),E=u(E,x,B,C,P,9,s[21]),C=u(C,E,x,B,R,14,s[22]),B=u(B,C,E,x,_,20,s[23]),x=u(x,B,C,E,w,5,s[24]),E=u(E,x,B,C,k,9,s[25]),C=u(C,E,x,B,y,14,s[26]),B=u(B,C,E,x,g,20,s[27]),x=u(x,B,C,E,S,5,s[28]),E=u(E,x,B,C,h,9,s[29]),C=u(C,E,x,B,v,14,s[30]),x=p(x,B=u(B,C,E,x,q,20,s[31]),C,E,f,4,s[32]),E=p(E,x,B,C,g,11,s[33]),C=p(C,E,x,B,b,16,s[34]),B=p(B,C,E,x,k,23,s[35]),x=p(x,B,C,E,l,4,s[36]),E=p(E,x,B,C,_,11,s[37]),C=p(C,E,x,B,v,16,s[38]),B=p(B,C,E,x,P,23,s[39]),x=p(x,B,C,E,S,4,s[40]),E=p(E,x,B,C,a,11,s[41]),C=p(C,E,x,B,y,16,s[42]),B=p(B,C,E,x,m,23,s[43]),x=p(x,B,C,E,w,4,s[44]),E=p(E,x,B,C,q,11,s[45]),C=p(C,E,x,B,R,16,s[46]),x=d(x,B=p(B,C,E,x,h,23,s[47]),C,E,a,6,s[48]),E=d(E,x,B,C,v,10,s[49]),C=d(C,E,x,B,k,15,s[50]),B=d(B,C,E,x,f,21,s[51]),x=d(x,B,C,E,q,6,s[52]),E=d(E,x,B,C,y,10,s[53]),C=d(C,E,x,B,P,15,s[54]),B=d(B,C,E,x,l,21,s[55]),x=d(x,B,C,E,g,6,s[56]),E=d(E,x,B,C,R,10,s[57]),C=d(C,E,x,B,m,15,s[58]),B=d(B,C,E,x,S,21,s[59]),x=d(x,B,C,E,_,6,s[60]),E=d(E,x,B,C,b,10,s[61]),C=d(C,E,x,B,h,15,s[62]),B=d(B,C,E,x,w,21,s[63]),o[0]=o[0]+x|0,o[1]=o[1]+B|0,o[2]=o[2]+C|0,o[3]=o[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,r,o,a){var s=e+(t&n|~t&i)+r+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,i,r,o,a){var s=e+(t&i|n&~i)+r+a;return(s<<o|s>>>32-o)+t}function p(e,t,n,i,r,o,a){var s=e+(t^n^i)+r+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,i,r,o,a){var s=e+(n^(t|~i))+r+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),i.MD5)},5957:function(e,t,n){var i;e.exports=(i=n(3345),n(5109),i.pad.Pkcs7)},2783:function(e,t,n){var i,r,o,a,s,l,c,u;e.exports=(r=(i=u=n(3345)).lib,o=r.WordArray,a=r.Hasher,s=i.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var u=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=u<<1|u>>>31}var p=(i<<5|i>>>27)+s+l[c];p+=c<20?1518500249+(r&o|~r&a):c<40?1859775393+(r^o^a):c<60?(r&o|r&a|o&a)-1894007588:(r^o^a)-899497514,s=a,a=o,o=r<<30|r>>>2,r=i,i=p}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=a._createHelper(c),i.HmacSHA1=a._createHmacHelper(c),u.SHA1)},2480:()=>{}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");i.length&&(e=i[i.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.p=window.wcpayAssets.url,(()=>{"use strict";const e=window.wp.i18n,t=window.wp.hooks,i=window.lodash,r=e=>{let t=null;if("undefined"!=typeof wcpayConfig)t=wcpayConfig;else if("undefined"!=typeof wcpay_upe_config)t=wcpay_upe_config;else{if("undefined"==typeof wc)return null;t=wc.wcSettings.getSetting("woocommerce_payments_data")}return t[e]||null},o=e=>"object"==typeof wcpayPaymentRequestParams&&wcpayPaymentRequestParams.hasOwnProperty(e)?wcpayPaymentRequestParams[e]:null,a=e=>({label:o("total_label"),amount:e}),s=e=>o("wc_ajax_url").toString().replace("%%endpoint%%","wcpay_"+e),l=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"wcpay_";return e.toString().replace("%%endpoint%%",n+t)},c=e=>{var t;if(!o("login_confirmation"))return;let n=null===(t=o("login_confirmation"))||void 0===t?void 0:t.message;var i;"payment_request_api"!==e&&(n=n.replace(/\*\*.*?\*\*/,"apple_pay"===e?"Apple Pay":"Google Pay")),n=n.replace(/\*\*/g,""),confirm(n)&&(window.location.href=null===(i=o("login_confirmation"))||void 0===i?void 0:i.redirect_url)};var u=n(5743),p=n.n(u),d=n(452),h=n.n(d),y=n(5957),_=n.n(y);const f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r("isClientEncryptionEnabled")&&e.length>3&&"pi_"!==e.slice(0,3)&&"seti_"!==e.slice(0,5)?(t=t||r("accountId"),p().stringify(h().decrypt(e,p().parse(t.slice(5)),{iv:p().parse("WC".repeat(8)),padding:_()}))):e};class m{constructor(e,t){this.options=e,this.stripe=null,this.stripePlatform=null,this.request=t,this.isWooPayRequesting=!1}createStripe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const r={locale:t};return n&&(r.stripeAccount=n),i&&(r.betas=i),new Stripe(e,r)}getStripeForUPE(e){return this.options.forceNetworkSavedCards=("paymentMethodsConfig",("undefined"!=typeof wcpay_upe_config?wcpay_upe_config:wc.wcSettings.getSetting("woocommerce_payments_data")).paymentMethodsConfig||null)[e].forceNetworkSavedCards,this.getStripe()}getStripe(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{publishableKey:t,accountId:n,forceNetworkSavedCards:i,locale:r,isStripeLinkEnabled:o}=this.options;if(i&&!e)return this.stripePlatform||(this.stripePlatform=this.createStripe(t,r)),this.stripePlatform;if(!this.stripe){let e=["card_country_event_beta_1"];o&&(e=e.concat(["link_autofill_modal_beta_1"])),this.stripe=this.createStripe(t,r,n,e)}return this.stripe}loadStripe(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((t=>{try{t(this.getStripe(e))}catch(e){t({error:e})}}))}generatePaymentMethodRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getStripe();return new class{constructor(){this.args={...e,billing_details:{address:{}}}}prepareValue(e,n){if(void 0!==n&&0!==n.length||(n=t[e]),void 0!==n&&n.length>0)return n}setBillingDetail(e,t){const n=this.prepareValue(e,t);void 0!==n&&(this.args.billing_details[e]=n)}setAddressDetail(e,t){const n=this.prepareValue(e,t);void 0!==n&&(this.args.billing_details.address[e]=n)}send(){return n.createPaymentMethod(this.args).then((e=>{if(e.error)throw e.error;return e}))}}}confirmIntent(e,t){const n=e.match(/#wcpay-confirm-(pi|si):(.+):(.+):(.+)$/);if(!n)return!0;const i="si"===n[1];let a=n[2];const s=n[3],l=n[4],c=e.indexOf("order-pay"),u=c>-1&&e.substring(c).match(/\d+/);return u&&(a=u[0]),(()=>{const{locale:e,publishableKey:t}=this.options,n=r("accountIdForIntentConfirmation");return i?this.getStripe().handleNextAction({clientSecret:f(s)}):n?this.createStripe(t,e,n).confirmCardPayment(f(s,n)):this.getStripe(!0).handleNextAction({clientSecret:f(s)})})().then((e=>{var n;const i=e.paymentIntent&&e.paymentIntent.id||e.setupIntent&&e.setupIntent.id||e.error&&e.error.payment_intent&&e.error.payment_intent.id||e.error.setup_intent&&e.error.setup_intent.id,s=null!==(n=o("ajax_url"))&&void 0!==n?n:r("ajaxUrl");return[this.request(s,{action:"update_order_status",order_id:a,_ajax_nonce:l,intent_id:i,payment_method_id:t||null}),e.error]})).then((e=>{let[t,n]=e;if(n)throw n;return t.then((e=>{const t="string"==typeof e?JSON.parse(e):e;if(t.error)throw t.error;return t.return_url}))}))}setupIntent(e){return this.request(r("ajaxUrl"),{action:"create_setup_intent","wcpay-payment-method":e,_ajax_nonce:r("createSetupIntentNonce")}).then((e=>{if(!e.success)throw e.data.error;return"succeeded"===e.data.status?e.data:this.getStripe().confirmCardSetup(f(e.data.client_secret)).then((e=>{const{setupIntent:t,error:n}=e;if(n)throw n;return t}))}))}async handlePaymentConfirmation(e,t,n){const i=this.getStripe(),r=await i.confirmPayment({elements:e,confirmParams:t});if(n&&r.error&&"lock_timeout"===r.error.code){const e=await i.retrievePaymentIntent(f(n));if(!e.error&&"succeeded"===e.paymentIntent.status)return window.location.href=t.redirect_url,e}return r}saveUPEAppearance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"false";return this.request(r("ajaxUrl"),{is_blocks_checkout:t,appearance:JSON.stringify(e),action:"save_upe_appearance",_ajax_nonce:r("saveUPEAppearanceNonce")}).then((e=>e.success)).catch((e=>{throw e.message?e:new Error(e.statusText)}))}paymentRequestCalculateShippingOptions(e){var t;return this.request(s("get_shipping_options"),{security:null===(t=o("nonce"))||void 0===t?void 0:t.shipping,is_product_page:o("is_product_page"),...e})}paymentRequestUpdateShippingDetails(e){var t;return this.request(s("update_shipping_method"),{security:null===(t=o("nonce"))||void 0===t?void 0:t.update_shipping,shipping_method:[e.id],is_product_page:o("is_product_page")})}paymentRequestGetCartDetails(){var e;return this.request(s("get_cart_details"),{security:null===(e=o("nonce"))||void 0===e?void 0:e.get_cart_details})}paymentRequestAddToCart(e){var t;return this.request(s("add_to_cart"),{security:null===(t=o("nonce"))||void 0===t?void 0:t.add_to_cart,...e})}paymentRequestGetSelectedProductData(e){var t;return this.request(s("get_selected_product_data"),{security:null===(t=o("nonce"))||void 0===t?void 0:t.get_selected_product_data,...e})}paymentRequestCreateOrder(e){var t;return this.request(s("create_order"),{_wpnonce:null===(t=o("nonce"))||void 0===t?void 0:t.checkout,...e})}initWooPay(e,t){if(!this.isWooPayRequesting){this.isWooPayRequesting=!0;const n=r("wcAjaxUrl"),i=r("initWooPayNonce");return this.request(l(n,"init_woopay"),{_wpnonce:i,email:e,user_session:t,order_id:r("order_id"),key:r("key"),billing_email:r("billing_email")}).finally((()=>{this.isWooPayRequesting=!1}))}}expressCheckoutAddToCart(e){const t=r("wcAjaxUrl"),n=r("addToCartNonce");return this.request(l(t,"add_to_cart"),{security:n,...e})}paymentRequestPayForOrder(e,t){var n;return this.request(s("pay_for_order"),{_wpnonce:null===(n=o("nonce"))||void 0===n?void 0:n.pay_for_order,order:e,...t})}}const v=async(e,t,n,i,r)=>{if("success"!==t.result)return i(r,(e=>{const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstChild?t.firstChild.textContent:""})(t.messages));try{const i=e.confirmIntent(t.redirect);r.complete("success"),n(!0===i?t.redirect:await i)}catch(e){i(r,e.message)}},g=async(e,t,n,i)=>{const r=await e.paymentRequestCreateOrder((e=>{var t,n,i,r,o,a,s,l,c,u,p,d,h,y,_,f,m,v,g,w,P,b,q,S,k,R,x,B,C,E,A,z,I,D,M,O,j,N,F,H,U,T,L,W,K,X,$,G,V;const J=null!==(t=null==e||null===(n=e.paymentMethod)||void 0===n||null===(i=n.billing_details)||void 0===i?void 0:i.name)&&void 0!==t?t:e.payerName,Q=null!==(r=null==e||null===(o=e.paymentMethod)||void 0===o||null===(a=o.billing_details)||void 0===a?void 0:a.email)&&void 0!==r?r:"",Y=null!==(s=null==e||null===(l=e.paymentMethod)||void 0===l||null===(c=l.billing_details)||void 0===c?void 0:c.phone)&&void 0!==s?s:"",Z=null!==(u=null==e||null===(p=e.paymentMethod)||void 0===p||null===(d=p.billing_details)||void 0===d?void 0:d.address)&&void 0!==u?u:{},ee=null!==(h=null==e?void 0:e.shippingAddress)&&void 0!==h?h:{},te=document.querySelector('input[name="wcpay-fraud-prevention-token"]');let ne="payment_request_api";return"applePay"===(null==e?void 0:e.walletName)?ne="apple_pay":"googlePay"===(null==e?void 0:e.walletName)&&(ne="google_pay"),{billing_first_name:null!==(y=null==J||null===(_=J.split(" "))||void 0===_||null===(f=_.slice(0,1))||void 0===f?void 0:f.join(" "))&&void 0!==y?y:"",billing_last_name:(null==J||null===(m=J.split(" "))||void 0===m||null===(v=m.slice(1))||void 0===v?void 0:v.join(" "))||"-",billing_company:null!==(g=null==Z?void 0:Z.organization)&&void 0!==g?g:"",billing_email:null!==(w=null!=Q?Q:null==e?void 0:e.payerEmail)&&void 0!==w?w:"",billing_phone:null!==(P=null!=Y?Y:null==e||null===(b=e.payerPhone)||void 0===b?void 0:b.replace("/[() -]/g",""))&&void 0!==P?P:"",billing_country:null!==(q=null==Z?void 0:Z.country)&&void 0!==q?q:"",billing_address_1:null!==(S=null==Z?void 0:Z.line1)&&void 0!==S?S:"",billing_address_2:null!==(k=null==Z?void 0:Z.line2)&&void 0!==k?k:"",billing_city:null!==(R=null==Z?void 0:Z.city)&&void 0!==R?R:"",billing_state:null!==(x=null==Z?void 0:Z.state)&&void 0!==x?x:"",billing_postcode:null!==(B=null==Z?void 0:Z.postal_code)&&void 0!==B?B:"",shipping_first_name:null!==(C=null==ee||null===(E=ee.recipient)||void 0===E||null===(A=E.split(" "))||void 0===A||null===(z=A.slice(0,1))||void 0===z?void 0:z.join(" "))&&void 0!==C?C:"",shipping_last_name:null!==(I=null==ee||null===(D=ee.recipient)||void 0===D||null===(M=D.split(" "))||void 0===M||null===(O=M.slice(1))||void 0===O?void 0:O.join(" "))&&void 0!==I?I:"",shipping_company:null!==(j=null==ee?void 0:ee.organization)&&void 0!==j?j:"",shipping_country:null!==(N=null==ee?void 0:ee.country)&&void 0!==N?N:"",shipping_address_1:null!==(F=null==ee||null===(H=ee.addressLine)||void 0===H?void 0:H[0])&&void 0!==F?F:"",shipping_address_2:null!==(U=null==ee||null===(T=ee.addressLine)||void 0===T?void 0:T[1])&&void 0!==U?U:"",shipping_city:null!==(L=null==ee?void 0:ee.city)&&void 0!==L?L:"",shipping_state:null!==(W=null==ee?void 0:ee.region)&&void 0!==W?W:"",shipping_postcode:null!==(K=null==ee?void 0:ee.postalCode)&&void 0!==K?K:"",shipping_method:[null!==(X=null==e||null===($=e.shippingOption)||void 0===$?void 0:$.id)&&void 0!==X?X:null],order_comments:"",payment_method:"woocommerce_payments",ship_to_different_address:1,terms:1,"wcpay-payment-method":null==e||null===(G=e.paymentMethod)||void 0===G?void 0:G.id,payment_request_type:ne,"wcpay-fraud-prevention-token":null!==(V=null==te?void 0:te.value)&&void 0!==V?V:""}})(i));v(e,r,t,n,i)},w=e=>async(t,n,i,r)=>{const o=await t.paymentRequestPayForOrder(e,(e=>{var t;let n="payment_request_api";return"applePay"===(null==e?void 0:e.walletName)?n="apple_pay":"googlePay"===(null==e?void 0:e.walletName)&&(n="google_pay"),{payment_method:"woocommerce_payments","wcpay-payment-method":null==e||null===(t=e.paymentMethod)||void 0===t?void 0:t.id,payment_request_type:n}})(r));v(t,o,n,i,r)},P=(window.wp.domReady,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i,a,s;const l=null!==(i=r("platformTrackerNonce"))&&void 0!==i?i:null===(a=o("nonce"))||void 0===a?void 0:a.platform_tracker,c=null!==(s=r("ajaxUrl"))&&void 0!==s?s:o("ajax_url"),u=new FormData;u.append("tracksNonce",l),u.append("action","platform_tracks"),u.append("tracksEventName",e),u.append("tracksEventProp",JSON.stringify(t)),u.append("isLegacy",JSON.stringify(n)),fetch(c,{method:"post",body:u})});jQuery((n=>{if(wcpayPaymentRequestParams.has_block&&!wcpayPaymentRequestParams.is_pay_for_order)return;const r=wcpayPaymentRequestParams.stripe.publishableKey;if(!r)return;const s=new m({publishableKey:r,accountId:wcpayPaymentRequestParams.stripe.accountId,locale:wcpayPaymentRequestParams.stripe.locale},((e,t)=>new Promise(((n,i)=>{jQuery.post(e,t).then(n).fail(i)}))));let l;const u=e=>{const t={google_pay:"gpay_button_click",apple_pay:"applepay_button_click"};if(t.hasOwnProperty(l)){const n=t[l];P(n,{source:e})}},p=(0,i.debounce)((e=>{const t={google_pay:"gpay_button_load",apple_pay:"applepay_button_load"};if(t.hasOwnProperty(l)){const n=t[l];P(n,{source:e})}}),1e3),d={paymentAborted:!1,getAttributes:function(){const e=n(".variations_form").find(".variations select"),t={};let i=0,r=0;return e.each((function(){const e=n(this).data("attribute_name")||n(this).attr("name"),o=n(this).val()||"";o.length>0&&r++,i++,t[e]=o})),{count:i,chosenCount:r,data:t}},abortPayment:(e,t)=>{e.complete("fail"),n(".woocommerce-error").remove();const i=n(".woocommerce-notices-wrapper").first();i.length&&(i.append(n('<div class="woocommerce-error" />').text(t)),n("html, body").animate({scrollTop:i.find(".woocommerce-error").offset().top},600))},completePayment:e=>{d.block(),window.location=e},block:()=>{n.blockUI({message:null,overlayCSS:{background:"#fff",opacity:.6}})},addToCart:()=>{let e=n(".single_add_to_cart_button").val();n(".single_variation_wrap").length&&(e=n(".single_variation_wrap").find('input[name="product_id"]').val());const t={product_id:e,qty:n(".quantity .qty").val(),attributes:n(".variations_form").length?d.getAttributes().data:[]},i=n("form.cart").serializeArray();return n.each(i,((e,n)=>{if(/^addon-/.test(n.name))if(/\[\]$/.test(n.name)){const e=n.name.substring(0,n.name.length-2);t[e]?t[e].push(n.value):t[e]=[n.value]}else t[n.name]=n.value})),s.paymentRequestAddToCart(t)},startPaymentRequest:e=>{const n=(e=>{var t,n,i;let{stripe:r,total:s,requestShipping:l,displayItems:c}=e,u=null===(t=o("checkout"))||void 0===t?void 0:t.country_code;"PR"===u&&(u="US");const p={total:a(s),currency:null===(n=o("checkout"))||void 0===n?void 0:n.currency_code,country:u,requestPayerName:!0,requestPayerEmail:!0,requestPayerPhone:null===(i=o("checkout"))||void 0===i?void 0:i.needs_payer_phone,requestShipping:l,displayItems:c};return r.paymentRequest(p)})(e),i=s.getStripe().elements(),r=d.createPaymentRequestButton(i,n),c=e=>{(0,t.doAction)("wcpay.payment-request.availability",e)};n.canMakePayment().then((e=>{e?(l=e.applePay?"apple_pay":e.googlePay?"google_pay":"payment_request_api",c({paymentRequestType:l}),p(wcpayPaymentRequestParams.button_context),d.attachPaymentRequestButtonEventListeners(r,n),d.showPaymentRequestButton(r)):c({paymentRequestType:null})})),n.on("cancel",(()=>{d.paymentAborted=!0})),n.on("shippingaddresschange",(e=>(async(e,t)=>{const n=await e.paymentRequestCalculateShippingOptions((i=t.shippingAddress,{first_name:null!==(r=null==i||null===(o=i.recipient)||void 0===o||null===(a=o.split(" "))||void 0===a||null===(s=a.slice(0,1))||void 0===s?void 0:s.join(" "))&&void 0!==r?r:"",last_name:null!==(l=null==i||null===(c=i.recipient)||void 0===c||null===(u=c.split(" "))||void 0===u||null===(p=u.slice(1))||void 0===p?void 0:p.join(" "))&&void 0!==l?l:"",company:"",address_1:null!==(d=null==i||null===(h=i.addressLine)||void 0===h?void 0:h[0])&&void 0!==d?d:"",address_2:null!==(y=null==i||null===(_=i.addressLine)||void 0===_?void 0:_[1])&&void 0!==y?y:"",city:null!==(f=null==i?void 0:i.city)&&void 0!==f?f:"",state:null!==(m=null==i?void 0:i.region)&&void 0!==m?m:"",country:null!==(v=null==i?void 0:i.country)&&void 0!==v?v:"",postcode:null!==(g=null==i||null===(w=i.postalCode)||void 0===w?void 0:w.replace(" ",""))&&void 0!==g?g:""}));var i,r,o,a,s,l,c,u,p,d,h,y,_,f,m,v,g,w;t.updateWith({status:n.result,shippingOptions:n.shipping_options,total:n.total,displayItems:n.displayItems})})(s,e))),n.on("shippingoptionchange",(e=>(async(e,t)=>{const n=await e.paymentRequestUpdateShippingDetails(t.shippingOption);"success"===n.result&&t.updateWith({status:"success",total:n.total,displayItems:n.displayItems}),"fail"===n.result&&t.updateWith({status:"fail"})})(s,e))),n.on("paymentmethod",(t=>{var n;(null!==(n=e.handler)&&void 0!==n?n:g)(s,d.completePayment,d.abortPayment,t)}))},getSelectedProductData:()=>{let e=n(".single_add_to_cart_button").val();n(".single_variation_wrap").length&&(e=n(".single_variation_wrap").find('input[name="product_id"]').val());const t=(n("#product-addons-total").data("price_data")||[]).reduce(((e,t)=>e+t.cost),0),i={product_id:e,qty:n(".quantity .qty").val(),attributes:n(".variations_form").length?d.getAttributes().data:[],addon_value:t};return s.paymentRequestGetSelectedProductData(i)},debounce:(e,t,n)=>{let i;return function(){const r=this,o=arguments,a=n&&!i;clearTimeout(i),i=setTimeout((()=>{i=null,n||t.apply(r,o)}),e),a&&t.apply(r,o)}},createPaymentRequestButton:(e,t)=>e.create("paymentRequestButton",{paymentRequest:t,style:{paymentRequestButton:{type:wcpayPaymentRequestParams.button.type,theme:wcpayPaymentRequestParams.button.theme,height:wcpayPaymentRequestParams.button.height+"px"}}}),attachPaymentRequestButtonEventListeners:(e,t)=>{wcpayPaymentRequestParams.is_product_page?d.attachProductPageEventListeners(e,t):d.attachCartPageEventListeners(e)},attachProductPageEventListeners:(t,i)=>{let r=[];const o=n(".single_add_to_cart_button");t.on("click",(t=>{if(u("product"),wcpayPaymentRequestParams.login_confirmation)return t.preventDefault(),void c(l);if(o.is(".disabled")){var n,i;t.preventDefault(),o.is(".wc-variation-is-unavailable")?window.alert((null===(n=window)||void 0===n||null===(i=n.wc_add_to_cart_variation_params)||void 0===i?void 0:i.i18n_unavailable_text)||(0,e.__)("Sorry, this product is unavailable. Please choose a different combination.","woocommerce-payments")):window.alert((0,e.__)("Please select your product options before proceeding.","woocommerce-payments"))}else{if(r.length>0)return t.preventDefault(),void window.alert(r);d.addToCart()}})),n(document.body).on("woocommerce_variation_has_changed",(()=>{d.blockPaymentRequestButton(),n.when(d.getSelectedProductData()).then((e=>{d.paymentAborted||wcpayPaymentRequestParams.product.needs_shipping!==e.needs_shipping?(wcpayPaymentRequestParams.product.needs_shipping=e.needs_shipping,wcpayPaymentRequestParams.product.total=e.total,wcpayPaymentRequestParams.product.displayItems=e.displayItems,d.init()):i.update({total:e.total,displayItems:e.displayItems}),d.unblockPaymentRequestButton()})).catch((()=>{d.hide()}))})),n(".quantity").on("input",".qty",(()=>{d.blockPaymentRequestButton()})),n(".quantity").on("input",".qty",d.debounce(250,(()=>{d.blockPaymentRequestButton(),r=[],n.when(d.getSelectedProductData()).then((e=>{e.error?(r=[e.error],d.unblockPaymentRequestButton()):n.when(i.update({total:e.total,displayItems:e.displayItems})).then((()=>{d.unblockPaymentRequestButton()}))}))})))},attachCartPageEventListeners:e=>{e.on("click",(e=>{wcpayPaymentRequestParams.login_confirmation&&(e.preventDefault(),c(l)),u(wcpayPaymentRequestParams.button_context)}))},getElements:()=>n(".wcpay-payment-request-wrapper,#wcpay-payment-request-button-separator"),hide:()=>{d.getElements().hide()},show:()=>{d.getElements().show()},showPaymentRequestButton:e=>{n("#wcpay-payment-request-button").length&&(d.show(),e.mount("#wcpay-payment-request-button"))},blockPaymentRequestButton:()=>{n("#wcpay-payment-request-button").data("blockUI.isBlocked")||n("#wcpay-payment-request-button").block({message:null})},unblockPaymentRequestButton:()=>{d.show(),n("#wcpay-payment-request-button").unblock()},init:()=>{if(wcpayPaymentRequestParams.is_pay_for_order){if(!window.wcpayPaymentRequestPayForOrderParams)return;const{total:{amount:e},displayItems:t,order:n}=wcpayPaymentRequestPayForOrderParams;d.startPaymentRequest({stripe:s.getStripe(),requestShipping:!1,total:e,displayItems:t,handler:w(n)})}else wcpayPaymentRequestParams.is_product_page?d.startPaymentRequest({stripe:s.getStripe(),total:wcpayPaymentRequestParams.product.total.amount,requestShipping:wcpayPaymentRequestParams.product.needs_shipping,displayItems:wcpayPaymentRequestParams.product.displayItems}):s.paymentRequestGetCartDetails().then((e=>{d.startPaymentRequest({stripe:s.getStripe(),total:e.total.amount,requestShipping:e.needs_shipping,displayItems:e.displayItems})}));d.paymentAborted=!1}};d.init(),n(document.body).on("updated_cart_totals",(()=>{d.init()})),n(document.body).on("updated_checkout",(()=>{d.init()}))}))})()})();