Files
Maison/AliExpress/Commandes_fichiers/main.e258cfd2.js
2026-02-10 12:12:11 +01:00

1 line
68 KiB
JavaScript

!function(e){var i={};function r(t){var n;return(i[t]||(n=i[t]={i:t,l:!1,exports:{}},e[t].call(n.exports,n,n.exports,r),n.l=!0,n)).exports}r.m=e,r.c=i,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"u",{value:!0})},r.t=function(n,t){if(1&t&&(n=r(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.u)return n;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)r.d(e,i,function(t){return n[t]}.bind(null,i));return e},r.n=function(t){var n=t&&t.u?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=11)}([function(t,T,K){"use strict";!function(t){var O=K(16),o=K(17),a=K(18);function e(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,n){if(e()<n)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n)).__proto__=h.prototype:(t=null===t?new h(n):t).length=n,t}function h(t,n,e){if(!(h.TYPED_ARRAY_SUPPORT||this instanceof h))return new h(t,n,e);if("number"!=typeof t)return i(this,t,n,e);if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return s(this,t)}function i(t,n,e,i){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer){var r=t,o=n,s=e;if(o.byteLength,s<0||o.byteLength<s)throw new RangeError("'offset' is out of bounds");if(o.byteLength<s+(i||0))throw new RangeError("'length' is out of bounds");return o=void 0===s&&void 0===i?new Uint8Array(o):void 0===i?new Uint8Array(o,s):new Uint8Array(o,s,i),h.TYPED_ARRAY_SUPPORT?(r=o).__proto__=h.prototype:r=f(r,o),r}if("string"!=typeof n){s=t,i=n;if(h.isBuffer(i))return o=0|c(i.length),0!==(s=u(s,o)).length&&i.copy(s,0,0,o),s;if(i){if("undefined"!=typeof ArrayBuffer&&i.buffer instanceof ArrayBuffer||"length"in i)return"number"!=typeof i.length||function(t){return t!=t}(i.length)?u(s,0):f(s,i);if("Buffer"===i.type&&a(i.data))return f(s,i.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}r=t,i=n,t=e;if(h.isEncoding(t="string"==typeof t&&""!==t?t:"utf8"))return n=0|d(i,t),r=(i=(r=u(r,n)).write(i,t))!==n?r.slice(0,i):r;throw new TypeError('"encoding" must be a valid string encoding')}function r(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function s(t,n){if(r(n),t=u(t,n<0?0:0|c(n)),!h.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;++e)t[e]=0;return t}function f(t,n){var e=n.length<0?0:0|c(n.length);t=u(t,e);for(var i=0;i<e;i+=1)t[i]=255&n[i];return t}function c(t){if(t>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");return 0|t}function d(t,n){if(h.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var e=(t="string"!=typeof t?""+t:t).length;if(0===e)return 0;for(var i=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return j(t).length;default:if(i)return N(t).length;n=(""+n).toLowerCase(),i=!0}}function n(t,n,e){var i,r=!1;if((n=void 0===n||n<0?0:n)>this.length)return"";if((e=void 0===e||e>this.length?this.length:e)<=0)return"";if((e>>>=0)<=(n>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var o=this,s=n,a=e,u=o.length;(!a||a<0||u<a)&&(a=u);for(var f="",c=s=!s||s<0?0:s;c<a;++c)f+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(o[c]);return f;case"utf8":case"utf-8":return S(this,n,e);case"ascii":var h=this,u=n,d=e,l="";d=Math.min(h.length,d);for(var v=u;v<d;++v)l+=String.fromCharCode(127&h[v]);return l;case"latin1":case"binary":var w=this,s=n,p=e,m="";p=Math.min(w.length,p);for(var g=s;g<p;++g)m+=String.fromCharCode(w[g]);return m;case"base64":return y=this,i=e,0===(b=n)&&i===y.length?O.fromByteArray(y):O.fromByteArray(y.slice(b,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var y=n,b=e,_=this.slice(y,b),E="",A=0;A<_.length;A+=2)E+=String.fromCharCode(_[A]+256*_[A+1]);return E;default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function l(t,n,e){var i=t[n];t[n]=t[e],t[e]=i}function v(t,n,e,i,r){if(0===t.length)return-1;if("string"==typeof e?(i=e,e=0):2147483647<e?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,(e=(e=isNaN(e)?r?0:t.length-1:e)<0?t.length+e:e)>=t.length){if(r)return-1;e=t.length-1}else if(e<0){if(!r)return-1;e=0}if("string"==typeof n&&(n=h.from(n,i)),h.isBuffer(n))return 0===n.length?-1:w(t,n,e,i,r);if("number"==typeof n)return n&=255,h.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(r?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,n,e):w(t,[n],e,i,r);throw new TypeError("val must be string, number or Buffer")}function w(t,n,e,i,r){var o=1,s=t.length,a=n.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||n.length<2)return-1;s/=o=2,a/=2,e/=2}function u(t,n){return 1===o?t[n]:t.readUInt16BE(n*o)}if(r)for(var f=-1,c=e;c<s;c++)if(u(t,c)===u(n,-1===f?0:c-f)){if(c-(f=-1===f?c:f)+1===a)return f*o}else-1!==f&&(c-=c-f),f=-1;else for(c=e=s<e+a?s-a:e;0<=c;c--){for(var h=!0,d=0;d<a;d++)if(u(t,c+d)!==u(n,d)){h=!1;break}if(h)return c}return-1}function p(t,n,e,i){return P(function(t){for(var n=[],e=0;e<t.length;++e)n.push(255&t.charCodeAt(e));return n}(n),t,e,i)}function m(t,n,e,i){return P(function(t,n){for(var e,i,r=[],o=0;o<t.length&&!((n-=2)<0);++o)e=t.charCodeAt(o),i=e>>8,r.push(e%256),r.push(i);return r}(n,t.length-e),t,e,i)}function S(t,n,e){e=Math.min(t.length,e);for(var i=[],r=n;r<e;){var o,s,a,u,f=t[r],c=null,h=239<f?4:223<f?3:191<f?2:1;if(r+h<=e)switch(h){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[r+1]))&&127<(u=(31&f)<<6|63&o)&&(c=u);break;case 3:o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&2047<(u=(15&f)<<12|(63&o)<<6|63&s)&&(u<55296||57343<u)&&(c=u);break;case 4:o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)&&u<1114112&&(c=u)}null===c?(c=65533,h=1):65535<c&&(i.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}var d=i,l=d.length;if(l<=g)return String.fromCharCode.apply(String,d);for(var v="",w=0;w<l;)v+=String.fromCharCode.apply(String,d.slice(w,w+=g));return v}T.Buffer=h,T.SlowBuffer=function(t){+t!=t&&(t=0);return h.alloc(+t)},T.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),T.kMaxLength=e(),h.poolSize=8192,h.h=function(t){return t.__proto__=h.prototype,t},h.from=function(t,n,e){return i(null,t,n,e)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!=typeof Symbol)&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}),h.alloc=function(t,n,e){return i=null,n=n,e=e,r(t=t),!(t<=0)&&void 0!==n?"string"==typeof e?u(i,t).fill(n,e):u(i,t).fill(n):u(i,t);var i},h.allocUnsafe=function(t){return s(null,t)},h.allocUnsafeSlow=function(t){return s(null,t)},h.isBuffer=function(t){return!(null==t||!t.v)},h.compare=function(t,n){if(!h.isBuffer(t)||!h.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var e=t.length,i=n.length,r=0,o=Math.min(e,i);r<o;++r)if(t[r]!==n[r]){e=t[r],i=n[r];break}return e<i?-1:i<e?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,n){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);if(void 0===n)for(r=n=0;r<t.length;++r)n+=t[r].length;for(var e=h.allocUnsafe(n),i=0,r=0;r<t.length;++r){var o=t[r];if(!h.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(e,i),i+=o.length}return e},h.byteLength=d,h.prototype.v=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)l(this,n,n+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)l(this,n,n+3),l(this,n+1,n+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)l(this,n,n+7),l(this,n+1,n+6),l(this,n+2,n+5),l(this,n+3,n+4);return this},h.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?S(this,0,t):n.apply(this,arguments)},h.prototype.equals=function(t){if(h.isBuffer(t))return this===t||0===h.compare(this,t);throw new TypeError("Argument must be a Buffer")},h.prototype.inspect=function(){var t="",n=T.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n)&&(t+=" ... "),"<Buffer "+t+">"},h.prototype.compare=function(t,n,e,i,r){if(!h.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),(n=void 0===n?0:n)<0||e>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(r<=i&&e<=n)return 0;if(r<=i)return-1;if(e<=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(e>>>=0)-(n>>>=0),a=Math.min(o,s),u=this.slice(i,r),f=t.slice(n,e),c=0;c<a;++c)if(u[c]!==f[c]){o=u[c],s=f[c];break}return o<s?-1:s<o?1:0},h.prototype.includes=function(t,n,e){return-1!==this.indexOf(t,n,e)},h.prototype.indexOf=function(t,n,e){return v(this,t,n,e,!0)},h.prototype.lastIndexOf=function(t,n,e){return v(this,t,n,e,!1)},h.prototype.write=function(t,n,e,i){if(void 0===n)i="utf8",e=this.length,n=0;else if(void 0===e&&"string"==typeof n)i=n,e=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(e)?(e|=0,void 0===i&&(i="utf8")):(i=e,e=void 0)}var r=this.length-n;if((void 0===e||r<e)&&(e=r),0<t.length&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var o,s,a,u=!1;;)switch(i){case"hex":var f=this,c=t,h=n,d=e,l=(h=Number(h)||0,f.length-h);if((!d||l<(d=Number(d)))&&(d=l),(l=c.length)%2!=0)throw new TypeError("Invalid hex string");l/2<d&&(d=l/2);for(var v=0;v<d;++v){var w=parseInt(c.substr(2*v,2),16);if(isNaN(w))return v;f[h+v]=w}return v;case"utf8":case"utf-8":return l=n,a=e,P(N(t,(s=this).length-l),s,l,a);case"ascii":return p(this,t,n,e);case"latin1":case"binary":return p(this,t,n,e);case"base64":return s=this,a=n,o=e,P(j(t),s,a,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,t,n,e);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var g=4096;function y(t,n,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(e<t+n)throw new RangeError("Trying to access beyond buffer length")}function b(t,n,e,i,r,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r<n||n<o)throw new RangeError('"value" argument is out of bounds');if(e+i>t.length)throw new RangeError("Index out of range")}function _(t,n,e,i){n<0&&(n=65535+n+1);for(var r=0,o=Math.min(t.length-e,2);r<o;++r)t[e+r]=(n&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function E(t,n,e,i){n<0&&(n=4294967295+n+1);for(var r=0,o=Math.min(t.length-e,4);r<o;++r)t[e+r]=n>>>8*(i?r:3-r)&255}function A(t,n,e,i){if(e+i>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function R(t,n,e,i,r){return r||A(t,0,e,4),o.write(t,n,e,i,23,4),e+4}function C(t,n,e,i,r){return r||A(t,0,e,8),o.write(t,n,e,i,52,8),e+8}h.prototype.slice=function(t,n){var e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):e<t&&(t=e),(n=void 0===n?e:~~n)<0?(n+=e)<0&&(n=0):e<n&&(n=e),n<t&&(n=t),h.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,n)).__proto__=h.prototype;else for(var i=n-t,r=new h(i,void 0),o=0;o<i;++o)r[o]=this[o+t];return r},h.prototype.readUIntLE=function(t,n,e){t|=0,n|=0,e||y(t,n,this.length);for(var i=this[t],r=1,o=0;++o<n&&(r*=256);)i+=this[t+o]*r;return i},h.prototype.readUIntBE=function(t,n,e){t|=0,n|=0,e||y(t,n,this.length);for(var i=this[t+--n],r=1;0<n&&(r*=256);)i+=this[t+--n]*r;return i},h.prototype.readUInt8=function(t,n){return n||y(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,n){return n||y(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,n){return n||y(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,n){return n||y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,n){return n||y(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,n,e){t|=0,n|=0,e||y(t,n,this.length);for(var i=this[t],r=1,o=0;++o<n&&(r*=256);)i+=this[t+o]*r;return(r*=128)<=i&&(i-=Math.pow(2,8*n)),i},h.prototype.readIntBE=function(t,n,e){t|=0,n|=0,e||y(t,n,this.length);for(var i=n,r=1,o=this[t+--i];0<i&&(r*=256);)o+=this[t+--i]*r;return(r*=128)<=o&&(o-=Math.pow(2,8*n)),o},h.prototype.readInt8=function(t,n){return n||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,n){n||y(t,2,this.length);n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(t,n){n||y(t,2,this.length);n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt32LE=function(t,n){return n||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,n){return n||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,n){return n||y(t,4,this.length),o.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,n){return n||y(t,4,this.length),o.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,n){return n||y(t,8,this.length),o.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,n){return n||y(t,8,this.length),o.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,n,e,i){t=+t,n|=0,e|=0,i||b(this,t,n,e,Math.pow(2,8*e)-1,0);var r=1,o=0;for(this[n]=255&t;++o<e&&(r*=256);)this[n+o]=t/r&255;return n+e},h.prototype.writeUIntBE=function(t,n,e,i){t=+t,n|=0,e|=0,i||b(this,t,n,e,Math.pow(2,8*e)-1,0);var r=e-1,o=1;for(this[n+r]=255&t;0<=--r&&(o*=256);)this[n+r]=t/o&255;return n+e},h.prototype.writeUInt8=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,1,255,0),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},h.prototype.writeUInt16LE=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):_(this,t,n,!0),n+2},h.prototype.writeUInt16BE=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):_(this,t,n,!1),n+2},h.prototype.writeUInt32LE=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):E(this,t,n,!0),n+4},h.prototype.writeUInt32BE=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):E(this,t,n,!1),n+4},h.prototype.writeIntLE=function(t,n,e,i){t=+t,n|=0,i||b(this,t,n,e,(i=Math.pow(2,8*e-1))-1,-i);var r=0,o=1,s=0;for(this[n]=255&t;++r<e&&(o*=256);)t<0&&0===s&&0!==this[n+r-1]&&(s=1),this[n+r]=(t/o>>0)-s&255;return n+e},h.prototype.writeIntBE=function(t,n,e,i){t=+t,n|=0,i||b(this,t,n,e,(i=Math.pow(2,8*e-1))-1,-i);var r=e-1,o=1,s=0;for(this[n+r]=255&t;0<=--r&&(o*=256);)t<0&&0===s&&0!==this[n+r+1]&&(s=1),this[n+r]=(t/o>>0)-s&255;return n+e},h.prototype.writeInt8=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,1,127,-128),h.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&(t=t<0?255+t+1:t),n+1},h.prototype.writeInt16LE=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):_(this,t,n,!0),n+2},h.prototype.writeInt16BE=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):_(this,t,n,!1),n+2},h.prototype.writeInt32LE=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):E(this,t,n,!0),n+4},h.prototype.writeInt32BE=function(t,n,e){return t=+t,n|=0,e||b(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),h.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):E(this,t,n,!1),n+4},h.prototype.writeFloatLE=function(t,n,e){return R(this,t,n,!0,e)},h.prototype.writeFloatBE=function(t,n,e){return R(this,t,n,!1,e)},h.prototype.writeDoubleLE=function(t,n,e){return C(this,t,n,!0,e)},h.prototype.writeDoubleBE=function(t,n,e){return C(this,t,n,!1,e)},h.prototype.copy=function(t,n,e,i){if(e=e||0,i||0===i||(i=this.length),n>=t.length&&(n=t.length),(i=0<i&&i<e?e:i)===e)return 0;if(0===t.length||0===this.length)return 0;if((n=n||0)<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length);var r,o=(i=t.length-n<i-e?t.length-n+e:i)-e;if(this===t&&e<n&&n<i)for(r=o-1;0<=r;--r)t[r+n]=this[r+e];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+n]=this[r+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),n);return o},h.prototype.fill=function(t,n,e,i){if("string"==typeof t){var r;if("string"==typeof n?(i=n,n=0,e=this.length):"string"==typeof e&&(i=e,e=this.length),1===t.length&&(r=t.charCodeAt(0))<256&&(t=r),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!h.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(!(e<=n))if(n>>>=0,e=void 0===e?this.length:e>>>0,"number"==typeof(t=t||0))for(a=n;a<e;++a)this[a]=t;else for(var o=h.isBuffer(t)?t:N(new h(t,i).toString()),s=o.length,a=0;a<e-n;++a)this[a+n]=o[a%s];return this};var I=/[^+\/0-9A-Za-z-_]/g;function N(t,n){n=n||1/0;for(var e,i=t.length,r=null,o=[],s=0;s<i;++s){if(55295<(e=t.charCodeAt(s))&&e<57344){if(!r){if(56319<e){-1<(n-=3)&&o.push(239,191,189);continue}if(s+1===i){-1<(n-=3)&&o.push(239,191,189);continue}r=e;continue}if(e<56320){-1<(n-=3)&&o.push(239,191,189),r=e;continue}e=65536+(r-55296<<10|e-56320)}else r&&-1<(n-=3)&&o.push(239,191,189);if(r=null,e<128){if(--n<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function j(t){return O.toByteArray(function(t){var n;if((t=((n=t).trim?n.trim():n.replace(/^\s+|\s+$/g,"")).replace(I,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function P(t,n,e,i){for(var r=0;r<i&&!(r+e>=n.length||r>=t.length);++r)n[r+e]=t[r];return r}}.call(this,K(15))},function(t,n){"function"==typeof Object.create?t.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,n){var e;n&&(t.super_=n,(e=function(){}).prototype=n.prototype,t.prototype=new e,t.prototype.constructor=t)}},function(n,t,e){!function(u){function t(t,n){this.g=new u(t),this._=n,this.A=t,this.O=0,this.S=0}t.prototype.update=function(t,n){"string"==typeof t&&(t=new u(t,n=n||"utf8"));for(var e=this.O+=t.length,i=this.S||0,r=0,o=this.g;i<e;){for(var s=Math.min(t.length,r+this.A-i%this.A)-r,a=0;a<s;a++)o[i%this.A+a]=t[a+r];r+=s,(i+=s)%this.A==0&&this.R(o)}return this.S=i,this},t.prototype.digest=function(t){var n=8*this.O,n=(this.g[this.O%this.A]=128,this.g.fill(0,this.O%this.A+1),n%(8*this.A)>=8*this._&&(this.R(this.g),this.g.fill(0)),this.g.writeInt32BE(n,this.A-4),this.R(this.g)||this.C());return t?n.toString(t):n},t.prototype.R=function(){throw new Error("_update must be implemented by subclass")},n.exports=t}.call(this,e(0).Buffer)},function(t,n){var e,i,r={};r.LIST={DERIVED_EPIK:{chance:100,uri:"pin-derived-epik"},SCRAPE_LISTENERS:{chance:100,uri:"pin-scrape-listeners"},SEND_LOGS:{chance:100,uri:"pin-log-errors"},CHECK_CSP:{chance:5,uri:"pin-check-csp"},DEDUPE_AEM_ELIGIBLE_ARRAY:{chance:100,uri:"pin-dedupe-aem-eligible-array"},CHECK_AUTO_UPGRADED:{chance:100,uri:"pin-check-auto-upgraded"},CHECK_DOCUMENT_COOKIE:{chance:0,uri:"pin-check-document-cookie"},SEND_TO_STAGING:{chance:0,uri:"pin-send-to-staging"},CHROME_TRIAL_EPIK_LOCALSTORAGE:{chance:100,uri:"pin-trial-epik-localstorage"},NO_CODE_CAPI_ENABLED:{chance:100,uri:"nocodecapi-enabled"},IAB_IOS_REFERRER_ENABLED:{chance:100,uri:"iab-ios-referrer-enabled"}};for([e,i]of Object.entries(r.LIST))"true"===new URLSearchParams(window.location.search).get(i.uri)&&(r.LIST[e].chance=100);r.isInRampPercentage=function(t){return 100*Math.random()<(t||0)},t.exports=r},function(t,n,e){let i=e(3);var r={},o="unknown";function s(t){t.version=o,100*Math.random()<(i.LIST.SEND_LOGS.chance||0)&&r.I(t)}r.setVersion=function(t){o=t},r.I=function(t){var n=new window.XMLHttpRequest;n.withCredentials=!1,n.onerror=function(){console.info("Error message failed to send")},n.open("POST","https://ct.pinterest.com/stats/",!1),n.setRequestHeader("Content-Type","application/json"),n.send(JSON.stringify(t))},r.error=function(t,n){var e={messageType:"ERROR",message:t,log:"[".concat(2<arguments.length&&void 0!==arguments[2]?arguments[2]:"Empty","]")};n.hasOwnProperty("stack")?e.log+="[".concat(n.stack,"]"):e.log+="[".concat(n.message,"]"),s(e)},r.info=function(t,n){s({messageType:"INFO",message:t,log:"[".concat(2<arguments.length&&void 0!==arguments[2]?arguments[2]:"Empty","][").concat(n,"]")})},t.exports=r},function(t,n,e){var r={};const i=/^[a-f0-9]{64}$/i,o=/^[a-f0-9]{40}$/i,s=/^[a-f0-9]{32}$/i,a=/main\.([a-f0-9]{8})\.js/,u=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.\w{2,})+(\/\S*)?$/;r.getParameterFromURI=function(t){return new URLSearchParams(window.location.search).get(t)},r.getParameterFromUrl=function(t,n){try{return t?(t instanceof URL?t:new URL(t)).searchParams.get(n):null}catch(t){return null}},r.createUriWithQueryParamaters=function(t,n){var e,i,t="".concat(t,"?"),r=[];for([e,i]of Object.entries(n))r.push("".concat(e,"=").concat(encodeURIComponent(i)));return t+r.join("&")},r.toBooleanType=function(t){return!0===t||1==t||"string"==typeof t&&"true"==t.trim().toLowerCase()},r.toBooleanTypeDefaultTrue=function(t){return!1!==t&&0!=t&&("string"!=typeof t||"false"!=t.trim().toLowerCase())},r.checkType=function(t,n,e){null!=n&&typeof n!=e&&console.error(ERROR_PREFIX+"Expected '%s' to be a %s, but found '%s'",t,e,n)},r.hashParam=function(n){if(n instanceof Array){var e=[];for(let t=0;t<n.length;t++){var i=r.N(n[t]);e.push(i)}return e}return r.N(n)},r.N=function(t){return null==t||""===(t=t.toString().trim().toLowerCase())||i.test(t)||o.test(t)||s.test(t)?t:e(13)("sha256").update(t).digest("hex")},r.getHashFromURI=function(t){return t?(t=r.j(t),r.P(t)):null},r.j=function(t){return t?t.substring(t.lastIndexOf("/")+1):null},r.P=function(t){return(t=t&&t.match(a))&&1<t.length?t[1]:null},r.T=function(t){return u.test(t)},r.isTimestampWithinThreshold=function(t,n){return null!=t&&Number(t)==t&&(new Date).getTime()-t<=n},r.isDefined=function(t){try{return null!=t&&!!t}catch(t){return!1}},t.exports=r},function(o,t,s){!function(n){var t=s(1),e=s(2),w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=new Array(64);function r(){this.init(),this.K=i,e.call(this,64,56)}t(r,e),r.prototype.init=function(){return this.k=1779033703,this.D=3144134277,this.L=1013904242,this.M=2773480762,this.U=1359893119,this.B=2600822924,this.F=528734635,this.G=1541459225,this},r.prototype.R=function(t){for(var n,e=this.K,i=0|this.k,r=0|this.D,o=0|this.L,s=0|this.M,a=0|this.U,u=0|this.B,f=0|this.F,c=0|this.G,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<64;++h)e[h]=0|(((n=e[h-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10)+e[h-7]+(((n=e[h-15])>>>7|n<<25)^(n>>>18|n<<14)^n>>>3)+e[h-16];for(var d=0;d<64;++d)var l=c+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(f^a&(u^f))+w[d]+e[d]|0,v=0|((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r|o&(i|r)),c=f,f=u,u=a,a=s+l|0,s=o,o=r,r=i,i=l+v|0;this.k=i+this.k|0,this.D=r+this.D|0,this.L=o+this.L|0,this.M=s+this.M|0,this.U=a+this.U|0,this.B=u+this.B|0,this.F=f+this.F|0,this.G=c+this.G|0},r.prototype.C=function(){var t=new n(32);return t.writeInt32BE(this.k,0),t.writeInt32BE(this.D,4),t.writeInt32BE(this.L,8),t.writeInt32BE(this.M,12),t.writeInt32BE(this.U,16),t.writeInt32BE(this.B,20),t.writeInt32BE(this.F,24),t.writeInt32BE(this.G,28),t},o.exports=r}.call(this,s(0).Buffer)},function(o,t,s){!function(n){var t=s(1),e=s(2),B=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],i=new Array(160);function r(){this.init(),this.K=i,e.call(this,128,112)}function F(t,n,e){return e^t&(n^e)}function z(t,n,e){return t&n|e&(t|n)}function G(t,n){return(t>>>28|n<<4)^(n>>>2|t<<30)^(n>>>7|t<<25)}function J(t,n){return(t>>>14|n<<18)^(t>>>18|n<<14)^(n>>>9|t<<23)}function $(t,n){return t>>>0<n>>>0?1:0}t(r,e),r.prototype.init=function(){return this.J=1779033703,this.$=3144134277,this.V=1013904242,this.H=2773480762,this.q=1359893119,this.X=2600822924,this.Y=528734635,this.Z=1541459225,this.W=4089235720,this.tt=2227873595,this.nt=4271175723,this.et=1595750129,this.it=2917565137,this.rt=725511199,this.ot=4215389547,this.st=327033209,this},r.prototype.R=function(t){for(var n=this.K,e=0|this.J,i=0|this.$,r=0|this.V,o=0|this.H,s=0|this.q,a=0|this.X,u=0|this.Y,f=0|this.Z,c=0|this.W,h=0|this.tt,d=0|this.nt,l=0|this.et,v=0|this.it,w=0|this.rt,p=0|this.ot,m=0|this.st,g=0;g<32;g+=2)n[g]=t.readInt32BE(4*g),n[g+1]=t.readInt32BE(4*g+4);for(;g<160;g+=2){var y=n[g-30],b=n[g-30+1],_=(y>>>1|b<<31)^(y>>>8|b<<24)^y>>>7,E=(b>>>1|y<<31)^(b>>>8|y<<24)^(b>>>7|y<<25),y=n[g-4],A=((b=n[g-4+1])>>>19|y<<13)^(y>>>29|b<<3)^(b>>>6|y<<26),O=n[g-14],S=n[g-14+1],D=n[g-32],R=n[g-32+1],C=E+S|0,I=_+O+$(C,E)|0;I=(I=I+((y>>>19|b<<13)^(b>>>29|y<<3)^y>>>6)+$(C=C+A|0,A)|0)+D+$(C=C+R|0,R)|0,n[g]=I,n[g+1]=C}for(var N=0;N<160;N+=2){I=n[N],C=n[N+1];var L=z(e,i,r),M=z(c,h,d),U=G(e,c),j=G(c,e),P=J(s,v),T=J(v,s),K=B[N+1],k=F(s,a,u),x=F(v,w,p),T=m+T|0,k=(P=(((f+P+$(T,m)|0)+k+$(T=T+x|0,x)|0)+B[N]+$(T=T+K|0,K)|0)+I+$(T=T+C|0,C)|0,j+M|0),x=U+L+$(k,j)|0,f=u,m=p,u=a,p=w,a=s,w=v,s=o+P+$(v=l+T|0,l)|0,o=r,l=d,r=i,d=h,i=e,h=c,e=P+x+$(c=T+k|0,T)|0}this.W=this.W+c|0,this.tt=this.tt+h|0,this.nt=this.nt+d|0,this.et=this.et+l|0,this.it=this.it+v|0,this.rt=this.rt+w|0,this.ot=this.ot+p|0,this.st=this.st+m|0,this.J=this.J+e+$(this.W,c)|0,this.$=this.$+i+$(this.tt,h)|0,this.V=this.V+r+$(this.nt,d)|0,this.H=this.H+o+$(this.et,l)|0,this.q=this.q+s+$(this.it,v)|0,this.X=this.X+a+$(this.rt,w)|0,this.Y=this.Y+u+$(this.ot,p)|0,this.Z=this.Z+f+$(this.st,m)|0},r.prototype.C=function(){var i=new n(64);function t(t,n,e){i.writeInt32BE(t,e),i.writeInt32BE(n,e+4)}return t(this.J,this.W,0),t(this.$,this.tt,8),t(this.V,this.nt,16),t(this.H,this.et,24),t(this.q,this.it,32),t(this.X,this.rt,40),t(this.Y,this.ot,48),t(this.Z,this.st,56),i},o.exports=r}.call(this,s(0).Buffer)},function(t,n,e){var r={};let o=e(3);r.LOG=e(4);r.cookiesAvailable=!0,r.FP_COOKIES={EPIK:"_epik",DERIVED_EPIK:"_derived_epik",UNAUTH:"_pin_unauth",NCCAPI_URL:"_nccapi_url"},r.writeCookie=function(t,n,e){if(o.isInRampPercentage(o.LIST.CHECK_DOCUMENT_COOKIE.chance)){if(!r.cookiesAvailable)return;try{document.cookie}catch(t){return r.LOG.info("document.cookie not available",t),void(r.cookiesAvailable=!1)}}var i=window.location.hostname.replace("www.","");try{document.cookie=t+"="+n+"; expires="+e.toUTCString()+"; path=/; domain=."+i+";"}catch(t){r.LOG.error("Failed to write cookie",t)}},r.getCookies=function(){var n={};if(o.isInRampPercentage(o.LIST.CHECK_DOCUMENT_COOKIE.chance)){if(!r.cookiesAvailable)return n;try{document.cookie}catch(t){return r.LOG.info("document.cookie not available",t),r.cookiesAvailable=!1,n}}try{for(const i of document.cookie.split("; ")){var t=i.indexOf("="),e=[i.substring(0,t),i.substring(t+1)];2==e.length&&e[0]&&e[1]&&(n[e[0]]=e[1])}}catch(t){r.LOG.error("Failed to get cookies",t)}return n},r.deleteCookie=function(t){r.writeCookie(t,"",new Date(0))},r.dropCookie=function(t,n){var e;n&&"empty"!==n&&((e=new Date).setDate(e.getDate()+365),r.writeCookie(t,n,e))},r.readCookie=function(t){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:r.getCookies())[t]},t.exports=r},function(t,n){var e,i,r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);r?(e=new Uint8Array(16),t.exports=function(){return r(e),e}):(i=new Array(16),t.exports=function(){for(var t,n=0;n<16;n++)0==(3&n)&&(t=4294967296*Math.random()),i[n]=t>>>((3&n)<<3)&255;return i})},function(t,n){for(var i=[],e=0;e<256;++e)i[e]=(e+256).toString(16).substr(1);t.exports=function(t,n){var n=n||0,e=i;return[e[t[n++]],e[t[n++]],e[t[n++]],e[t[n++]],"-",e[t[n++]],e[t[n++]],"-",e[t[n++]],e[t[n++]],"-",e[t[n++]],e[t[n++]],"-",e[t[n++]],e[t[n++]],e[t[n++]],e[t[n++]],e[t[n++]],e[t[+n]]].join("")}},function(t,n,e){e(12).activate()},function(D,L,t){function M(n,t){var e,i=Object.keys(n);return Object.getOwnPropertySymbols&&(e=Object.getOwnPropertySymbols(n),t&&(e=e.filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})),i.push.apply(i,e)),i}function U(i){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach(function(t){var n,e;n=i,e=r[t=t],t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}var c={};c.ut=t(4),window.pintrk&&(window.pintrk.mh="e258cfd2",c.ut.setVersion(window.pintrk.mh)),c.ft=t(3);let f=t(5),h=t(8),B=t(22);c.ct=f.createUriWithQueryParamaters,c.getCookies=h.getCookies,c.ht=t(23),c.dt=t(24);var F=t(25);const z=t(26)["v4"],d="sessionStorage",i="localStorage",G="dep",J=(c.lt={UNSPECIFIED:0,LISTENER_SCRAPE:1,PAGE_LOAD:2,EVENT_SHOPIFY_SCRAPE:3,TAGS_RECEIVED:4,EVENT_TAGS_ABSENT:5},{SKIP_TAG_CONFIG:"stc"}),$=365,l="Pinterest Tag Error: ",V="Pinterest Tag Warning: ";let n="https://ct.pinterest.com";var H=n+"/md/";const v=(n=c.ft.isInRampPercentage(c.ft.LIST.SEND_TO_STAGING.chance)?"https://ct-staging-us.pinterest.com":n)+"/v3/",q=n+"/user/",X="cb",w="event";var t="aem_country",Y="aem_external_id",e=["aem"],r=["aem_fn","aem_ln"],o=["aem_ph"],Z=["aem_ge"],W=["aem_db"],Q=["aem_ct","aem_st","aem_zp",t],tt=[Y];const nt="em",s="aem",et=["fn","ln","ph","ge","db","ct","st","zp","country","external_id"],it=["event_id","eid","eventID"],rt="external_id",ot="aem_external_id",st="checkout",at=["pagevisit","viewcategory","search","addtocart",st,"watchvideo","signup","lead","custom","externalmeasurement","addpaymentinfo","addtowishlist","initiatecheckout","subscribe","viewcontent"],p=h.FP_COOKIES,m={EPIK:"_epik_ls",DERIVED_EPIK:"_derived_epik_ls",UNAUTH:"_pin_unauth_ls"},ut={LOCAL_STORAGE_ONLY:"ls",COOKIE_ONLY:"fpc",COOKIE_AND_LOCAL_STORAGE:"fpc_ls"},g={NATIVE_CHECKOUT:"ssp_nsc",IAB_ANDROID:"ssp_iaba",IAB_IOS:"ssp_iabi",IAB_IOS_UA_SUFFIX:"Pinterest/iOS",IOS_APP_PREFIX:"ios-app",ANDROID_APP_PREFIX:"android-app"},ft="derived_epik",ct="Epik",a="epik_localstore",ht="epik_ls_expiry_ms",dt="pin_unauth",lt="Pin-Unauth",vt="Content-Type",u="is_eu",wt=["load","page","set","track","setConsent","md"],pt="input[type=email],input[type=username],input[type=userid],input[name=username],input[name=userid],input[autocomplete=username],input[autocomplete=userid],input[autocomplete=email]";const mt=/^https?:\/\/.*\.(pinterest|pinterdev)\.com$/i,gt=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,yt=/(.+)/,bt=/^[0-9 \-+\(\)\/]*$/;const _t=/^[0-9\- ]*$/;const y=/(.+)/;const Et=/checkouts\/(.+)\/(thank_you|post_purchase)/,At=/(spf-test-page)|(test\/ct\/.*spf-t)/,b=(c.vt=JSON&&JSON.stringify,c.wt=!0,"aemEnabled"),_="aemFnLnEnabled",Ot="aemPhEnabled";const E="aemLocEnabled";const St="ct_epik_iframe_enabled";var Rt="md_frequency";const Ct="chrome_new_user_agent_enabled";const A={fieldRegex:/e[-_.]?mail/i,valueRegex:gt,pdKey:"aem",aemEligibleKey:"em"};e={tagConfigKey:b,pdConfigKey:"debug_aem_enabled",pdKeyList:e,helperList:[A]};const It={fieldRegex:/(?=^(?!.*(credit|pass|last|^l[._-]?name|name[._-]?l|family|sur)).*$)(.*name)/i,valueRegex:yt,pdKey:"aem_fn",aemEligibleKey:"fn"},Nt={fieldRegex:/(?=^(?!.*(credit|pass|first|^f[._-]?name|name[._-]?f|full|display|your|given|fore|user)).*$)(.*last[._-]?name|.*family[._-]?name|.*sur[._-]?name|^l[._-]?name|.*name[._-]?l)/i,valueRegex:yt,pdKey:"aem_ln",aemEligibleKey:"ln"};r={tagConfigKey:_,pdConfigKey:"debug_aem_fnln_enabled",pdKeyList:r,helperList:[It,Nt]};const jt={fieldRegex:/tele|callback|cell|phone|mobile/i,valueRegex:bt,pdKey:"aem_ph",aemEligibleKey:"ph",normalizationRegex:/\D+/g};o={tagConfigKey:Ot,pdConfigKey:"debug_aem_ph_enabled",pdKeyList:o,helperList:[jt]};const Pt={fieldRegex:/city/i,valueRegex:y,pdKey:"aem_ct",aemEligibleKey:"ct"},Tt={fieldRegex:/state|province/i,valueRegex:y,pdKey:"aem_st",aemEligibleKey:"st",selectScrapingEnabled:!0},Kt={fieldRegex:/postal|post[._-]?code|zip/i,valueRegex:_t,pdKey:"aem_zp",aemEligibleKey:"zp"},kt={fieldRegex:/country/i,valueRegex:y,pdKey:t,aemEligibleKey:"country",selectScrapingEnabled:!0},O=[e,r,o,{tagConfigKey:"aemGeEnabled",pdConfigKey:"debug_aem_ge_enabled",pdKeyList:Z,helperList:[{fieldRegex:/gender/i,valueRegex:/^(?:m|male|f|female|nb|non[._-]?binary)$/i,pdKey:"aem_ge",aemEligibleKey:"ge"}]},{tagConfigKey:"aemDbEnabled",pdConfigKey:"debug_aem_db_enabled",pdKeyList:W,helperList:[{fieldRegex:/birthday|birthdate|dob/i,valueRegex:/^[0-3]?[0-9]\/[0-3]?[0-9]\/(?:[0-9]{2})?[0-9]{2}$/,pdKey:"aem_db",aemEligibleKey:"db"}]},{tagConfigKey:E,pdConfigKey:"debug_aem_loc_enabled",pdKeyList:Q,helperList:[Pt,Tt,Kt,kt]},{tagConfigKey:"aemExternalIdEnabled",pdConfigKey:"debug_aem_external_id_enabled",pdKeyList:tt,helperList:[{fieldRegex:/(user(?!_?number)|loyalty|membership|member|mileage)_?(id|number)/i,valueRegex:/(.+)/,pdKey:Y,aemEligibleKey:"external_id"}]}];let xt=!1;function Dt(t){var n;(t.origin===window.origin||mt.test(t.origin))&&(n=t.data)&&"PINTEREST_TAG_TEST"===n.type&&t.source.postMessage({type:"PINTEREST_TAG_TEST_ACK",tagId:window.pintrk.tagId,tagEmValid:window.pintrk.partnerData&&window.pintrk.partnerData.em?"24aba99b2defbb47ee981b4200313f61f3ae31541d8717bdac1e463c838939b0"!==window.pintrk.partnerData.em:void 0},t.origin)}function S(t,n,e){null!=n&&typeof n!=e&&console.info(l+"Expected '%s' to be a %s, but found '%s'",t,e,n)}function Lt(t){return"string"==typeof t?t.trim():"number"==typeof t&&t%1==0?String(t).trim():(S("Pinterest Tag ID",t,"string"),null)}function R(t,n,e,i,r){e=e||h.readCookie(n,t)||$t(i);e&&T({[r]:r===rt?f.hashParam(e):e})}function Mt(t){var n,e;window.pintrk.cookieLoaded||(window.pintrk.cookieLoaded=!0,n=h.getCookies(),C()?(e=f.getParameterFromURI("epik")||h.readCookie(p.EPIK,n),R(n,p.EPIK,e,m.EPIK,"epik"),e&&(h.dropCookie(p.EPIK,e),Jt(m.EPIK,e)),R(n,p.UNAUTH,null,m.UNAUTH,dt),e=Object.assign({},t),window.pintrk.partnerData&&(e.pd=window.pintrk.partnerData),j(e,[P,c.gt],c.lt.PAGE_LOAD),R(n,p.DERIVED_EPIK,null,m.DERIVED_EPIK,ft),t=window.location.pathname,(At.test(t)||window.pintrk.partnerData&&"shopify"===window.pintrk.partnerData.np)&&R(n,"_shopify_y",null,null,rt)):Gt())}function C(){var t=window.pintrk.partnerData||{};return c.wt&&("boolean"!=typeof t.fp_cookie||t.fp_cookie)}function Ut(){var t=window.pintrk.partnerData||{};return c.wt&&("boolean"!=typeof t.fp_localStorage||t.fp_localStorage)}function Bt(t,n,e){var i=2<arguments.length&&void 0!==e?e:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;var e;if(t)return(e=new Date(t)).setDate(e.getDate()+n),e}(new Date,$);i<new Date||t&&n&&c.ht.setItem(t,JSON.stringify({value:n,expires:i}))}function Ft(){if(!N()){var t=Object.values(m),n=c.yt(i);if(n)for(const e of t)!c.ht.getItem(e)||e in Object.values(p)||n.setItem(e,c.ht.getItem(e))}}function zt(t){var n=c.yt(i);n&&n.removeItem(t)}function I(){for(const t of Object.values(p).concat(Object.values(m)))zt(t)}function Gt(){c.bt(),K(a);var t=c.yt(d);if(t){for(const n of Object.values(g))t.removeItem(n);t.removeItem(u)}I()}function N(){var t;return null!=c._t.isEu?c._t.isEu:!(t=c.yt(d))||f.toBooleanTypeDefaultTrue(t.getItem(u))}function j(t,n,e,i){var r,o,s=2<arguments.length&&void 0!==e?e:c.lt.UNSPECIFIED,a=3<arguments.length&&void 0!==i&&i,u=t,s=(u[X]=c.Et(),u[G]="".concat(s.toString(),",").concat((r=c.lt,o=s,Object.keys(r).filter(t=>r[t]===o))[0]),a&&(u[J.SKIP_TAG_CONFIG]=!0),c.ct(q,c.At(u)));c.Ot(s,!0,n)}function P(){window.pintrk.derivedCalled&&h.readCookie(p.DERIVED_EPIK)||(window.pintrk.derivedCalled=!0,h.dropCookie(p.DERIVED_EPIK,this.getResponseHeader(ct)),Jt(m.DERIVED_EPIK,this.getResponseHeader(ct)),R(h.getCookies(),p.DERIVED_EPIK,null,m.DERIVED_EPIK,ft))}function Jt(t,n){t&&n&&"empty"!==n&&!N()&&(Ut()?Bt(t,n):I())}function $t(t){var n=c.yt(i);if(t&&!N())if(n&&Ut()){n=JSON.parse(n.getItem(t),(t,n)=>"expires"==t?new Date(n):n);if(n&&n.expires>=new Date)return n.value;zt(t)}else I();else zt(t);return null}function Vt(t,n){return t&&n?ut.COOKIE_AND_LOCAL_STORAGE:t?ut.COOKIE_ONLY:n?ut.LOCAL_STORAGE_ONLY:null}function T(t){for(var n in t){var e;(n===rt||n===ot)&&Ht(t,n)&&Ht(window.pintrk.partnerData,n)&&(t[n]=qt(t[n]),window.pintrk.partnerData[n]=qt(window.pintrk.partnerData[n]),e=new Set([...t[n],...window.pintrk.partnerData[n]]),t[n]=Array.from(e))}window.pintrk.partnerData=Object.assign({},window.pintrk.partnerData,t)}function Ht(t,n){return null!=t&&void 0!==t[n]&&null!==t[n]&&""!==t[n]}function qt(t){return Array.isArray(t)?t:[t]}function Xt(t){nt in t&&(t[nt]=f.hashParam(t[nt])),s in t&&(t[s]=f.hashParam(t[s]))}function Yt(t,n){return!(!t||"string"!=typeof t||!n.test(t))}function Zt(t){if(t&&"object"==typeof t){Xt(t),r=t,et.forEach(function(t){t in r&&(r[t]=f.hashParam(r[t]));t=s+"_"+t;t in r&&(r[t]=f.hashParam(r[t]))});var n=t[St],e=(void 0!==n&&(Wt(n),delete t[St]),t);for(const o of O){var i=e[o.pdConfigKey];void 0!==i&&(tn(o.tagConfigKey,i,o.pdKeyList),K(o.pdConfigKey),delete e[o.pdConfigKey])}var n=t[Rt],n=(void 0!==n&&(S(Rt,n,"number"),c._t.mdFrequency=n,delete t[Rt]),t[Ct]);void 0!==n&&(n=f.toBooleanType(n),c._t.chromeNewUserAgentEnabled=n,delete t[Ct]),T(t)}var r}function Wt(t){t=f.toBooleanType(t);(c._t.ctEpikIframeEnabled=t)?(window.addEventListener("message",c.St),"complete"===document.readyState?Qt():window.addEventListener("load",Qt)):(K(a),K(ht))}function Qt(){c.ft.isInRampPercentage(c.ft.LIST.CHROME_TRIAL_EPIK_LOCALSTORAGE.chance)&&window.chrome&&(t=document.getElementsByTagName("script")[0],(n=document.createElement("script")).async=!1,n.src="https://ct.pinterest.com/static/ct/token_create.js",t.parentNode.insertBefore(n,t));var t,n=document.createElement("iframe");n.id=a,n.src="https://ct.pinterest.com/ct.html",n.width=1,n.height=1,n.style.display="none",document.body.appendChild(n)}function tn(t,n,e){n=f.toBooleanType(n);if(!n)for(const i of e)K(i);n&&!c._t.tagConfigsAtLeastOneEnabled&&(c._t.tagConfigsAtLeastOneEnabled=!0),c._t[t]=n}function K(t){window.pintrk&&window.pintrk.partnerData&&void 0!==window.pintrk.partnerData[t]&&delete window.pintrk.partnerData[t]}function nn(t){var n=O;for(const e of document.getElementsByTagName(t))for(const i of n)for(const r of i.helperList)"input"===t?Yt(e.name,r.fieldRegex)&&k(e.value,r,i.tagConfigKey):"select"===t&&r.selectScrapingEnabled&&Yt(e.name,r.fieldRegex)&&k(e.value,r,i.tagConfigKey)}function k(t,n,e){t&&"string"==typeof t&&n.valueRegex.test(t.trim().toLowerCase())&&(n.normalizationRegex&&(t=t.replace(n.normalizationRegex,"")),t=f.hashParam(t.trim().toLowerCase()),c._t[e]&&((pdKeyObject={})[n.pdKey]=t,T(pdKeyObject)),(e=window.pintrk.partnerData&&window.pintrk.partnerData.aem_eligible_list?window.pintrk.partnerData.aem_eligible_list:[]).push(n.aemEligibleKey),T({aem_eligible_list:c.ft.isInRampPercentage(c.ft.LIST.DEDUPE_AEM_ELIGIBLE_ARRAY.chance)?function(t){var n=[];if(t)for(var e=0;e<t.length;e++){var i=t[e];-1===n.indexOf(i)&&n.push(i)}return n}(e):e.filter(function(t,n,e){return e.indexOf(t)===n})}))}function en(t){for(const e of O){var n=e.tagConfigKey;void 0===c._t[n]&&tn(n,t[n],e.pdKeyList)}}function rn(){for(const t of document.querySelectorAll(pt))k(t.value,A,b);nn("input"),nn("select")}function x(t,n,e,i,r){t&&t[e]&&((pdKeyObject={})[i.pdKey]=f.hashParam(n.trim().toLowerCase()),T(pdKeyObject)),-1===r.indexOf(i.aemEligibleKey)&&r.push(i.aemEligibleKey)}c._t={aemEnabled:void 0,aemFnLnEnabled:void 0,aemPhEnabled:void 0,aemGeEnabled:void 0,aemDbEnabled:void 0,aemLocEnabled:void 0,aemExternalIdEnabled:void 0,ctEpikIframeEnabled:void 0,chromeNewUserAgentEnabled:void 0,isEu:void 0,tagConfigsReceived:!1,tagConfigsAtLeastOneEnabled:!1,epikDataSource:void 0,derivedEpikDataSource:void 0,unauthIdDataSource:void 0,mdFrequency:void 0},c.bt=function(){for(const t of Object.values(p))h.deleteCookie(t)},c.Rt=function(){var t=this.getResponseHeader(vt);if(t&&t.includes("application/json")){var n;try{n=JSON.parse(this.responseText).xff,window.pintrk.piaa=n}catch(t){c.ut.error("piaaEndpointRequestCallBack json error",t)}}},c.Ot=function(t,n,e){var i;c.wt&&((i=new window.XMLHttpRequest).open("GET",t,!0),i.withCredentials=n,i.callbacks=e,i.arguments=Array.prototype.slice.call(arguments,2),i.onload=function(){for(var t of this.callbacks)t.apply(this,this.arguments)},i.onerror=function(){console.info(this.statusText)},i.send(null))},c.gt=function(){h.dropCookie(p.UNAUTH,this.getResponseHeader(lt)),Jt(m.UNAUTH,this.getResponseHeader(lt)),R(h.getCookies(),p.UNAUTH,this.getResponseHeader(lt),m.UNAUTH,dt);var n=this.getResponseHeader(vt);if(n&&n.includes("application/json")){let t={};try{t=JSON.parse(this.responseText)}catch(t){c.ut.error("userEndpointRequestCallback json error "+this.responseText,t)}en(t);var e,n=(void 0!==c._t.mdFrequency?c._t:t).mdFrequency,n=(n&&Math.random()<n&&c.md(),void 0===c._t.ctEpikIframeEnabled&&Wt(t.ctEpikIframeEnabled),void 0===c._t.chromeNewUserAgentEnabled&&(c._t.chromeNewUserAgentEnabled=f.toBooleanType(t.chromeNewUserAgentEnabled)),void 0===c._t.isEu&&(n=f.toBooleanTypeDefaultTrue(t.isEu),c._t.isEu=n,"boolean"==typeof c._t.isEu&&c._t.isEu&&I(),e=c.yt(d))&&C()&&e.setItem(u,n),(N()?I:Ft)(),e=t.piaaEndPoint,window.pintrk.piaa&&6<window.pintrk.piaa.length||e&&10<e.length&&c.Ot(e,!1,[c.Rt]),t);try{c.dt.isEnabled()&&c.dt.setConfigs(n,C())}catch(t){c.ut.error("NoCodeCAPI error setting config",t)}if(c._t.tagConfigsReceived=!0,c.ft.isInRampPercentage(c.ft.LIST.SCRAPE_LISTENERS.chance)&&!window.pintrk.setupEmailListeners){window.pintrk.setupEmailListeners=!0;for(const i of document.querySelectorAll(pt))i.addEventListener("change",t=>{k(t.target.value,A,b),C()&&window.pintrk.partnerData&&window.pintrk.partnerData.aem&&!h.readCookie(p.DERIVED_EPIK)&&j({pd:{aem:window.pintrk.partnerData.aem}},[P],c.lt.LISTENER_SCRAPE)})}}},c.St=function(n){if("https://ct.pinterest.com"==n.origin&&"_epik_localstore"===n.data.key){if(n.data.value){let t={};try{t=JSON.parse(n.data.value)}catch(t){c.ut.error("setupEpikLocalStorage json error",t)}var e,n=t.expiry||0,i=t.value;n>(new Date).getTime()&&i&&((e={})[a]=i,e[ht]=n+"",T(e))}null!=(i=document.getElementById(a))&&null!=i.parentNode&&i.parentNode.removeChild(i)}},c.Ct=function(){try{if(navigator&&navigator.userAgentData&&navigator.userAgentData.getHighEntropyValues){var t=navigator.userAgentData.getHighEntropyValues(["architecture","bitness","brands","mobile","model","platform","platformVersion","uaFullVersion"]);if(t)return Promise.resolve(t)}}catch(t){c.ut.error("getChromeUserAgentJsonMap error",t)}return Promise.resolve(!1)},c.yt=function(t){try{return window[t]||null}catch(t){return null}},c.activate=function(){if(window.pintrk&&window.pintrk.queue){window.pintrk.version||(window.pintrk.version="3.0");var n=window.pintrk.queue;if(n.push===Array.prototype.push){function e(t){let n=(t=function(n){if("0"in n&&!(n instanceof Array)){var e=[];let t=0;for(;t.toString()in n;)e.push(n[t.toString()]),t++;n=e}return n}(t)).shift();if("string"!=typeof n)S("pintrk command",n,"string");else if(n=n.trim().toLowerCase(),c[n])try{c[n](t)}catch(t){c.ut.error("Command "+n,t)}else console.info(l+"'%s' is not a supported pintrk command. Expected one of [%s]",n,wt.toString())}var i=n.length;for(let t=0;t<i;t++)e(n.shift());n.push=e,window!==window.parent&&window.addEventListener("message",Dt)}}},c.load=function(t){var[t,n]=t,t=((t=Lt(t))&&(window.pintrk.tagId&&console.info(l+"'load' command was called multiple times. Previously for tag id '%s', now for tag id '%s'.",window.pintrk.tagId,t),window.pintrk.tagId=t),Zt(n),!N()&&C()&&Ut()&&!function(t){var n=0<arguments.length&&void 0!==t?t:h.getCookies();for(const o of Object.keys(p)){var e=p[o],i=!!n[e],r=!!$t(m[o]);switch(e){case p.EPIK:c._t.epikDataSource=Vt(i,r);break;case p.DERIVED_EPIK:c._t.derivedEpikDataSource=Vt(i,r);break;case p.UNAUTH:c._t.unauthIdDataSource=Vt(i,r)}}}(h.getCookies()),c.yt(d));t&&C()&&("1"===f.getParameterFromURI(g.NATIVE_CHECKOUT)&&t.setItem(g.NATIVE_CHECKOUT,c.Et()),n=parseInt(f.getParameterFromURI(g.IAB_IOS)),f.isTimestampWithinThreshold(n,3e5)?t.setItem(g.IAB_IOS,n):c.ft.isInRampPercentage(c.ft.LIST.IAB_IOS_REFERRER_ENABLED.chance)&&B.isInAppBrowserIos()&&t.setItem(g.IAB_IOS,c.Et()),document.referrer)&&document.referrer.startsWith(g.ANDROID_APP_PREFIX)&&document.referrer.includes("com.pinterest")&&t.setItem(g.IAB_ANDROID,c.Et())},c.setconsent=function(t){var[t]=t;c.wt=f.toBooleanType(t),!1===c.wt&&Gt()},c.set=function(t){var[t]=t;Zt(t)},c.page=function(t){var[t]=t,n={},e=window.pintrk.tagId;e?(n.tid=e,t&&("object"==typeof t?(Xt(t),n.ov=t):console.warn(V+"Unexpected value passed to page command. Please consult the Pinterest Tag Guide for correct notation.")),Mt(n),window.pintrk.partnerData&&(n.pd=window.pintrk.partnerData),n[w]="init",c.It(n)):console.info(l+"'page' command was called without first calling the 'load' command. Forthcoming Pinterest tag events may fail.")},c.track=function(t){let[n,e,i,r,o]=t;var s,a,t={};if(c.dt.isEnabled()&&c.dt.isNoCodeCAPIIntegrated()){var u=e=e||{};try{c.dt.isEnabled()&&(it.some(t=>u[t])||(u.event_id="PIN-"+z()),xt=!1)}catch(t){c.ut.error("NoCodeCAPI error generating eventid",t),xt=!0}}return n&&"string"==typeof n?(n=n.trim(),-1===at.indexOf(n.toLowerCase())&&console.warn(V+"'%s' is not a standard event name. You may use it to build audiences, but conversion reporting will not be available. Standard event names are: [%s]",n,at.toString()),t[w]=n):S("eventName",n,"string"),e&&"object"==typeof e?(void 0===e.value||isNaN(e.value)||(e.value=Number(e.value)),S("value",e.value,"number"),s="order_quantity",null==(a=e.order_quantity)||Number(a)==a&&a%1==0||console.info(l+"Expected '%s' to be an integer, but found '%s'",s,a),void 0!==e.external_id&&(T({external_id:f.hashParam(e.external_id)}),delete e.external_id),s=function(t){var n,e,i={};for([n,e]of Object.entries(t)){var r=/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Za-z]{2}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum)\b/;i[n]="string"==typeof e&&r.test(e)?f.hashParam(e):e}return i}(e),t.ed=s):S("eventData",e,"object"),"function"!=typeof i&&(S("callback",i,"function"),i=null),(r=(r=Lt(r))||window.pintrk.tagId)?(t.tid=String(r).trim(),o&&"object"==typeof o&&(Xt(o),t.ov=o),Mt(t),a=window.location.pathname,At.test(a)||window.pintrk.partnerData&&"shopify"===window.pintrk.partnerData.np&&Et.test(a)?j(t,[P,c.Nt(t,i)],c.lt.EVENT_SHOPIFY_SCRAPE):c._t.tagConfigsReceived?(c._t.tagConfigsAtLeastOneEnabled&&rn(),window.pintrk.partnerData&&(t.pd=window.pintrk.partnerData),!c.ft.isInRampPercentage(c.ft.LIST.DERIVED_EPIK.chance)||h.readCookie(p.DERIVED_EPIK)||$t(m.DERIVED_EPIK)||j(t,[P],c.lt.TAGS_RECEIVED,!0),c.It(t,i)):j(t,[P,c.jt(t,i)],c.lt.EVENT_TAGS_ABSENT)):(console.info(l+"'load' command was not called before 'track'. Did you install the base code?"),i&&i(!1,"The Pinterest Tag ID is missing.")),0},c.jt=function(t,n){return function(){try{return en(tagConfig=JSON.parse(this.responseText)),c._t.tagConfigsAtLeastOneEnabled&&rn(),window.pintrk.partnerData&&(t.pd=window.pintrk.partnerData),c.It(t,n),0}catch(t){c.ut.error("getTagConfigCallback json error",t)}}},c.Nt=function(r,o){return function(){try{var t,n,e,i;return(tagConfig=JSON.parse(this.responseText))&&(c._t.tagConfigsAtLeastOneEnabled=function(t){var n;for(n of O)if(f.toBooleanType(t[n.tagConfigKey]))return!0;return!1}(tagConfig)),c._t.tagConfigsAtLeastOneEnabled&&(t=tagConfig,n=document.getElementsByTagName("bdo"),e=window.pintrk.partnerData&&window.pintrk.partnerData.aem_eligible_list?window.pintrk.partnerData.aem_eligible_list:[],n&&n[0]&&(n=n[0].textContent)&&"string"==typeof n&&gt.test(n.trim().toLowerCase())&&x(t,n,b,A,e),(n=document.getElementsByTagName("address"))&&n[0]&&(n=n[0].innerHTML)&&"string"==typeof n&&(n=n.split("<br>"))&&(n[0]&&yt.test(n[0].trim().toLowerCase())&&((i=n[0].split(" "))&&1===i.length?x(t,i[0],_,Nt,e):i&&2===i.length&&(x(t,i[0],_,It,e),x(t,i[1],_,Nt,e))),3<=n.length&&n[2]&&(i=n[2].split(" "))&&(i[0]&&y.test(i[0].trim().toLowerCase())&&x(t,i[0],E,Pt,e),i[1]&&y.test(i[1].trim().toLowerCase())&&x(t,i[1],E,Tt,e),i[2])&&_t.test(i[2].trim().toLowerCase())&&x(t,i[2],E,Kt,e),4<=n.length&&n[3]&&y.test(n[3].trim().toLowerCase())&&x(t,n[3],E,kt,e),5<=n.length)&&n[4]&&bt.test(n[4].trim().toLowerCase())&&x(t,n[4],Ot,jt,e),T({aem_eligible_list:e})),window.pintrk.partnerData&&(r.pd=window.pintrk.partnerData),c.It(r,o),0}catch(t){c.ut.error("scrapeShopifyAemCallback json error",t)}}},c.md=async function(t){try{var n,e=window.performance.now(),i=F.getMetadata(),r=1e3*(window.performance.now()-e),o=(i.aux={micro_s:Math.round(r)},i.tid=window.pintrk.tagId,await fetch(H,{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify(i)}));o.ok?(n=t&&t[0])&&"function"==typeof n&&n():console.error("Error in md: Fetch request failed",o.status)}catch(t){console.error("Error in md",t)}},c.It=function(u,f){if(c.wt){let a=c.Pt();return c.Ct().catch(function(t){c.ut.error("_pingServer json error",t)}).then(function(t){var n=a,t=(t&&Object.assign(n,a,t),!!window.chrome&&!!document.featurePolicy&&!!document.featurePolicy.allowedFeatures()&&document.featurePolicy.allowedFeatures().includes("attribution-reporting")),n=(n.ecm_enabled=t,u.ad=n,u[X]=c.Et(),window.pintrk.piaa&&6<window.pintrk.piaa.length&&(u.piaa=window.pintrk.piaa),c.At(u)),e=((N()?I:Ft)(),c.ct(v,n)),i={eventSourceEligible:!1,triggerEligible:!0};if(e.length<2048){new URLSearchParams;e=c.At(u),e=c.ct(v,e);try{fetch(e,U({method:"GET",credentials:"include"},t&&window.isSecureContext?{attributionReporting:i}:{})).then(t=>t.text()).then(t=>{f&&f(!0)})}catch(t){c.ut.error("Fetch API call error",t)}}else{var r,o,s=new URLSearchParams,e=c.At(u);for([r,o]of Object.entries(e))s.append(r,o);try{fetch(v,U({method:"POST",body:s,credentials:"include"},t&&window.isSecureContext?{attributionReporting:i}:{})).then(t=>t.text()).then(t=>{f&&f(!0)})}catch(t){c.ut.error("Fetch API call error",t)}}e=u;try{c.dt.isEnabled()&&!xt&&c.dt.sendNoCodeCAPIEvent(e,()=>{})}catch(t){c.ut.error("NoCodeCAPI call error",t)}t=c.yt(d);t&&C()&&n[w]===st&&t.removeItem(g.NATIVE_CHECKOUT)})}f&&f(!1,"No consent")},c.Et=function(){return(new Date).getTime()},c.At=function(t){var n,e,i={};for([n,e]of Object.entries(t))"object"==typeof e?c.vt&&(i[n]=JSON.stringify(e)):i[n]=e;return i},c.Pt=function(){let t=null,n=null;screen&&(t=screen.height,n=screen.width);var e={loc:location.href,ref:document.referrer,if:window.top!==window,sh:t,sw:n};if(window.pintrk.mh){e.mh=window.pintrk.mh;var i=e;if(c.ft.isInRampPercentage(c.ft.LIST.CHECK_AUTO_UPGRADED.chance))try{var r,o=document.currentScript;o?(r=f.getHashFromURI(o.src))&&r!==window.pintrk.mh&&(window.pintrk.cs=r,i.cs=r):window.pintrk.cs&&(i.cs=window.pintrk.cs)}catch(t){c.ut.error("Add script source to automaticData",t)}}var i=c.yt(d),s=(i&&C()&&(i.getItem(g.NATIVE_CHECKOUT)&&(e[g.NATIVE_CHECKOUT]=i.getItem(g.NATIVE_CHECKOUT)),i.getItem(g.IAB_IOS)&&(e[g.IAB_IOS]=i.getItem(g.IAB_IOS)),i.getItem(g.IAB_ANDROID))&&(e[g.IAB_ANDROID]=i.getItem(g.IAB_ANDROID)),N());return null!=s&&(e[u]=s),e.epikDataSource=c._t.epikDataSource,e.derivedEpikDataSource=c._t.derivedEpikDataSource,e.unauthIdDataSource=c._t.unauthIdDataSource,e},c.Tt=function(t,n){function e(){t.detachEvent?t.detachEvent("onload",e):t.onload=null,n()}t.attachEvent?t.attachEvent("onload",e):t.onload=e},D.exports=c},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(n)return new n;throw new Error(t+" is not supported (we accept pull requests)")}).sha=n(14),e.sha1=n(19),e.sha224=n(20),e.sha256=n(6),e.sha384=n(21),e.sha512=n(7)},function(o,t,s){!function(n){var t=s(1),e=s(2),v=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function r(){this.init(),this.K=i,e.call(this,64,56)}t(r,e),r.prototype.init=function(){return this.k=1732584193,this.D=4023233417,this.L=2562383102,this.M=271733878,this.U=3285377520,this},r.prototype.R=function(t){for(var n=this.K,e=0|this.k,i=0|this.D,r=0|this.L,o=0|this.M,s=0|this.U,a=0;a<16;++a)n[a]=t.readInt32BE(4*a);for(;a<80;++a)n[a]=n[a-3]^n[a-8]^n[a-14]^n[a-16];for(var u,f,c,h=0;h<80;++h)var d=~~(h/20),l=0|(e<<5|e>>>27)+(u=i,f=r,c=o,0===(l=d)?u&f|~u&c:2===l?u&f|u&c|f&c:u^f^c)+s+n[h]+v[d],s=o,o=r,r=i<<30|i>>>2,i=e,e=l;this.k=e+this.k|0,this.D=i+this.D|0,this.L=r+this.L|0,this.M=o+this.M|0,this.U=s+this.U|0},r.prototype.C=function(){var t=new n(20);return t.writeInt32BE(0|this.k,0),t.writeInt32BE(0|this.D,4),t.writeInt32BE(0|this.L,8),t.writeInt32BE(0|this.M,12),t.writeInt32BE(0|this.U,16),t},o.exports=r}.call(this,s(0).Buffer)},function(t,n){var e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";n.byteLength=function(t){var t=c(t),n=t[0],t=t[1];return 3*(n+t)/4-t},n.toByteArray=function(t){var n,e,i=c(t),r=i[0],i=i[1],o=new f(function(t,n){return 3*(t+n)/4-n}(r,i)),s=0,a=0<i?r-4:r;for(e=0;e<a;e+=4)n=u[t.charCodeAt(e)]<<18|u[t.charCodeAt(e+1)]<<12|u[t.charCodeAt(e+2)]<<6|u[t.charCodeAt(e+3)],o[s++]=n>>16&255,o[s++]=n>>8&255,o[s++]=255&n;2===i&&(n=u[t.charCodeAt(e)]<<2|u[t.charCodeAt(e+1)]>>4,o[s++]=255&n);1===i&&(n=u[t.charCodeAt(e)]<<10|u[t.charCodeAt(e+1)]<<4|u[t.charCodeAt(e+2)]>>2,o[s++]=n>>8&255,o[s++]=255&n);return o},n.fromByteArray=function(t){for(var n,e=t.length,i=e%3,r=[],o=0,s=e-i;o<s;o+=16383)r.push(function(t,n,e){for(var i,r=[],o=n;o<e;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(function(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}(i));return r.join("")}(t,o,s<o+16383?s:o+16383));1==i?(n=t[e-1],r.push(a[n>>2]+a[n<<4&63]+"==")):2==i&&(n=(t[e-2]<<8)+t[e-1],r.push(a[n>>10]+a[n>>4&63]+a[n<<2&63]+"="));return r.join("")};for(var a=[],u=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,o=i.length;r<o;++r)a[r]=i[r],u[i.charCodeAt(r)]=r;function c(t){var n=t.length;if(0<n%4)throw new Error("Invalid string. Length must be a multiple of 4");t=t.indexOf("="),n=(t=-1===t?n:t)===n?0:4-t%4;return[t,n]}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},function(t,n){n.read=function(t,n,e,i,r){var o,s,a=8*r-i-1,u=(1<<a)-1,f=u>>1,c=-7,h=e?r-1:0,d=e?-1:1,r=t[n+h];for(h+=d,o=r&(1<<-c)-1,r>>=-c,c+=a;0<c;o=256*o+t[n+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;0<c;s=256*s+t[n+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(r?-1:1);s+=Math.pow(2,i),o-=f}return(r?-1:1)*s*Math.pow(2,o-i)},n.write=function(t,n,e,i,r,o){var s,a,u=8*o-r-1,f=(1<<u)-1,c=f>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,l=i?1:-1,o=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,s=f):(s=Math.floor(Math.log(n)/Math.LN2),n*(i=Math.pow(2,-s))<1&&(s--,i*=2),2<=(n+=1<=s+c?h/i:h*Math.pow(2,1-c))*i&&(s++,i/=2),f<=s+c?(a=0,s=f):1<=s+c?(a=(n*i-1)*Math.pow(2,r),s+=c):(a=n*Math.pow(2,c-1)*Math.pow(2,r),s=0));8<=r;t[e+d]=255&a,d+=l,a/=256,r-=8);for(s=s<<r|a,u+=r;0<u;t[e+d]=255&s,d+=l,s/=256,u-=8);t[e+d-l]|=128*o}},function(t,n){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(o,t,s){!function(n){var t=s(1),e=s(2),w=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function r(){this.init(),this.K=i,e.call(this,64,56)}t(r,e),r.prototype.init=function(){return this.k=1732584193,this.D=4023233417,this.L=2562383102,this.M=271733878,this.U=3285377520,this},r.prototype.R=function(t){for(var n,e=this.K,i=0|this.k,r=0|this.D,o=0|this.L,s=0|this.M,a=0|this.U,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=(n=e[u-3]^e[u-8]^e[u-14]^e[u-16])<<1|n>>>31;for(var f,c,h,d=0;d<80;++d)var l=~~(d/20),v=0|(i<<5|i>>>27)+(f=r,c=o,h=s,0===(v=l)?f&c|~f&h:2===v?f&c|f&h|c&h:f^c^h)+a+e[d]+w[l],a=s,s=o,o=r<<30|r>>>2,r=i,i=v;this.k=i+this.k|0,this.D=r+this.D|0,this.L=o+this.L|0,this.M=s+this.M|0,this.U=a+this.U|0},r.prototype.C=function(){var t=new n(20);return t.writeInt32BE(0|this.k,0),t.writeInt32BE(0|this.D,4),t.writeInt32BE(0|this.L,8),t.writeInt32BE(0|this.M,12),t.writeInt32BE(0|this.U,16),t},o.exports=r}.call(this,s(0).Buffer)},function(s,t,a){!function(n){var t=a(1),e=a(6),i=a(2),r=new Array(64);function o(){this.init(),this.K=r,i.call(this,64,56)}t(o,e),o.prototype.init=function(){return this.k=3238371032,this.D=914150663,this.L=812702999,this.M=4144912697,this.U=4290775857,this.B=1750603025,this.F=1694076839,this.G=3204075428,this},o.prototype.C=function(){var t=new n(28);return t.writeInt32BE(this.k,0),t.writeInt32BE(this.D,4),t.writeInt32BE(this.L,8),t.writeInt32BE(this.M,12),t.writeInt32BE(this.U,16),t.writeInt32BE(this.B,20),t.writeInt32BE(this.F,24),t},s.exports=o}.call(this,a(0).Buffer)},function(s,t,a){!function(n){var t=a(1),e=a(7),i=a(2),r=new Array(160);function o(){this.init(),this.K=r,i.call(this,128,112)}t(o,e),o.prototype.init=function(){return this.J=3418070365,this.$=1654270250,this.V=2438529370,this.H=355462360,this.q=1731405415,this.X=2394180231,this.Y=3675008525,this.Z=1203062813,this.W=3238371032,this.tt=914150663,this.nt=812702999,this.et=4144912697,this.it=4290775857,this.rt=1750603025,this.ot=1694076839,this.st=3204075428,this},o.prototype.C=function(){var i=new n(48);function t(t,n,e){i.writeInt32BE(t,e),i.writeInt32BE(n,e+4)}return t(this.J,this.W,0),t(this.$,this.tt,8),t(this.V,this.nt,16),t(this.H,this.et,24),t(this.q,this.it,32),t(this.X,this.rt,40),i},s.exports=o}.call(this,a(0).Buffer)},function(t,n,e){var i={};let r=e(5);const o={IAB_IOS_UA_MARKERS:["pinterest/ios","pin/ios"],IOS_APP_PREFIX:"ios-app"};i.isInAppBrowserIos=function(){try{if(document.referrer&&document.referrer.startsWith(o.IOS_APP_PREFIX)&&new RegExp("".concat(o.IOS_APP_PREFIX,":\\/\\/\\d+")).test(document.referrer))return!0;let n="";return"undefined"!=typeof navigator&&r.isDefined(navigator.userAgent)?n=navigator.userAgent:"undefined"!=typeof window&&r.isDefined(window.navigator.userAgent)&&(n=window.navigator.userAgent),n=String(n).toLowerCase(),o.IAB_IOS_UA_MARKERS.some(t=>n.includes(t))}catch(t){return!1}},t.exports=i},function(t,n){var e={data:{},setItem:function(t,n){e.data[t]=n||""},getItem:function(t){return void 0===e.data[t]?null:e.data[t]},removeItem:function(t){delete e.data[t]},length:function(){return Object.keys(e.data).length}};t.exports=e},function(t,n,e){var h={};let d=e(4),i=e(3),r=e(5);const o=e(8),l=["eventID","event_id","eid"],s="noCodeCapiDomains",v=["em","external_id","fn","ln","ph","ge","db","ct","st","zp","country"];h._t={enabled:void 0,endpoint:void 0,partner_name:void 0,cookieOptIn:!1},h.isNoCodeCAPIIntegrated=function(){var t=o.readCookie(o.FP_COOKIES.NCCAPI_URL);return r.T(h._t.endpoint)||r.T(t)},h.isEnabled=function(){return null!=h._t.enabled&&"boolean"==typeof h._t.enabled||(h._t.enabled=i.isInRampPercentage(i.LIST.NO_CODE_CAPI_ENABLED.chance)),h._t.enabled},h.setConfigs=function(t){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];h.isEnabled()&&(h._t.cookieOptIn=n,t&&t[s]?(Array.isArray(t[s])?this.setEndpoint(t[s][0]):this.setEndpoint(t[s]),h._t.partner_name="ss-nocodecapi".concat("-").concat(t.partner_name||"aws")):o.deleteCookie(o.FP_COOKIES.NCCAPI_URL))},h.setEndpoint=function(t){h._t.endpoint=t,h._t.cookieOptIn?o.dropCookie(o.FP_COOKIES.NCCAPI_URL,t):o.deleteCookie(o.FP_COOKIES.NCCAPI_URL)},h.sendNoCodeCAPIEvent=function(t,e){if(h.isEnabled()){if(!r.T(h._t.endpoint)){var n=o.readCookie(o.FP_COOKIES.NCCAPI_URL);if(!n||!r.T(n))return;h.setEndpoint(n)}try{var i=this.setupPayload(t.tid,t.event,t.ed,t.pd,t.ad);i?fetch(h._t.endpoint,{method:"POST",body:JSON.stringify(i),credentials:"include"}).then(n=>{n.ok?e(n):n&&(n.headers.get("content-type"),1)&&n.json().then(t=>{d.error("[NoCodeCAPI] API response error - "+n.status,t,"NoCodeCAPI")})}).catch(t=>{d.error("[NoCodeCAPI] API Call could not be completed",t)}):d.info("[NoCodeCAPI] Invalid Payload ")}catch(t){d.error("[NoCodeCAPI] Error sending NoCodeCAPI call",t)}}},h.setupPayload=function(t,n,e,i,r){var o;if(h.isEnabled()&&t&&n&&"string"==typeof t&&"string"==typeof n&&(o=e)&&l.some(t=>o[t]))try{var s=[],a={},u=function(e){if(e&&0!==Object.keys(e).length){let n={};return v.forEach(t=>{e[t]&&("string"==typeof e[t]?n[t]=[e[t]]:n[t]=e[t]),e.epik&&(n.click_id=e.epik)}),n}}(i),f=function(t){if(t&&0!==Object.keys(t).length){var n={};t.value&&(n.value=String(t.value)),t.order_id&&(n.order_id=String(t.order_id)),t.currency&&(n.currency=String(t.currency)),t.search_query&&(n.search_string=String(t.search_query)),t.order_quantity&&isNaN(Number(t.order_quantity))&&(n.num_items=Number(t.order_quantity));let e=[];return t.line_items&&(t.line_items.forEach(t=>{var n={};t.product_id&&(n.id=t.product_id),t.product_quantity&&(n.quantity=Number(t.product_quantity)),t.product_price&&(n.item_price=String(t.product_price)),t.product_brand&&(n.item_brand=t.product_brand),t.product_name&&(n.item_name=t.product_name),t.product_category&&(n.item_category=t.product_category),e.push(n)}),e)&&e.length&&(n.contents=e),n}}(e),c=(a.event_name=n,a.action_source="web",a.event_time=Math.floor(Date.now()/1e3),a.event_id=e[l.find(t=>e&&void 0!==e[t])],a.event_source_url=r&&r.loc?r.loc:r.ref,a.partner_name=h._t.partner_name,Object.assign(a,{user_data:u},{custom_data:f}),s.push(a),{tid:t,data:s});return c}catch(t){d.error("[NoCodeCAPI] Failed to generate payload",t)}},t.exports=h},function(t,n){var e={},i=["person"];function r(t,n,e){void 0!==e&&(t[n]=e)}function c(t,n){var e;return(n?((e=t.cloneNode(!1)).innerHTML=n,e):t).outerHTML}e.getMetadata=function(){var n={};try{r(n,"urls",this.Kt()),r(n,"meta",this.kt()),r(n,"sdo",this.xt())}catch(t){n.e={name:t.name,msg:t.message}}return n},e.Kt=function(){for(var t={loc:window.location.href},n=document.querySelector('head link[rel="canonical"]'),e=(n&&n.getAttribute("href")&&(t.canonical=n.getAttribute("href")),document.querySelectorAll("head link[rel='alternate'][hreflang]")),i={},r=0;r<e.length;r++){var o=e[r],s=o.getAttribute("hreflang"),o=o.getAttribute("href");o&&s&&(i[s]=o)}return 0<Object.keys(i).length&&(t.hreflang=i),t},e.kt=function(){for(var t={},n=document.querySelectorAll("meta[property]"),e="",i=0;i<n.length;i++){var r=n[i],o=r.getAttribute("property");"string"==typeof o&&o.startsWith("og:")&&(e+=r.outerHTML)}return e&&(t.og=e),0<Object.keys(t).length?t:void 0},e.xt=function(){var t={};return r(t,"jsonld",this.Dt()),r(t,"md",this.Lt()),0<Object.keys(t).length?t:void 0},e.Dt=function(){for(var t=document.querySelectorAll('script[type="application/ld+json"]'),n=[],e=0;e<t.length;e++){var i=t[e];if(this.Mt(i.innerHTML))try{var r=JSON.parse(i.innerHTML),r=this.Ut(r);n.push(c(i,JSON.stringify(r)))}catch(t){n.push(i.outerHTML)}}return 0<n.length?n:void 0},e.Lt=function(){for(var t=document.querySelectorAll("[itemscope]"),n=[],e=new Set,i=0;i<t.length;i++){var r=t[i];if(!e.has(r)){e.add(r);var o=r.getAttribute("itemtype");if(this.Mt(o))if(this.Bt(o))n.push('<meta itemscope="" itemtype="'+o+'" content="ph">');else{var s=r.querySelectorAll("[itemprop]"),a=[];a.push({element:r,htmlContent:""});for(var u=0;u<s.length;u++){for(var f=s[u];0<a.length&&!a[a.length-1].element.contains(f);)this.Ft(a);f.hasAttribute("itemscope")?(e.add(f),a.push({element:f,htmlContent:""})):a[a.length-1].htmlContent+=f.outerHTML}for(;1<a.length;)this.Ft(a);1==a.length&&n.push(c((o=a[0]).element,o.htmlContent))}}}return 0<n.length?n:void 0},e.Mt=function(t){return!(!t||"string"!=typeof t||!t.toLowerCase().includes("schema.org"))},e.Ut=function(t){if(this.Bt(t["@type"]))return{"@type":t["@type"],ph:!0};for(var n=Object.keys(t),e=0;e<n.length;e++){var i=n[e];t[i]&&"object"==typeof t[i]&&(t[i]=this.Ut(t[i]))}return t},e.Bt=function(t){if(t&&"string"==typeof t){t=t.trim().toLowerCase();for(var n=0;n<i.length;n++)if(t.includes(i[n]))return!0}return!1},e.Ft=function(t){var n,e,i;1<t.length&&(e=(n=t.pop()).element.getAttribute("itemtype"),i="",i=this.Bt(e)?'<meta itemscope="" itemtype="'+e+'" content="ph">':c(n.element,n.htmlContent),t[t.length-1].htmlContent+=i)},t.exports=e},function(t,n,e){var i=e(27),e=e(28),r=e;r.v1=i,r.v4=e,t.exports=r},function(t,n,e){var c,h,d=e(9),l=e(10),v=0,w=0;t.exports=function(t,n,e){var i=n&&e||0,r=n||[],o=(t=t||{}).node||c,e=void 0!==t.clockseq?t.clockseq:h,s=(null!=o&&null!=e||(s=d(),null==o&&(o=c=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==e&&(e=h=16383&(s[6]<<8|s[7]))),void 0!==t.msecs?t.msecs:(new Date).getTime()),a=void 0!==t.nsecs?t.nsecs:w+1,u=s-v+(a-w)/1e4;if(u<0&&void 0===t.clockseq&&(e=e+1&16383),1e4<=(a=(u<0||v<s)&&void 0===t.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=s,h=e,u=(1e4*(268435455&(s+=122192928e5))+(w=a))%4294967296,r[i++]=u>>>24&255,r[i++]=u>>>16&255,r[i++]=u>>>8&255,r[i++]=255&u,t=s/4294967296*1e4&268435455,r[i++]=t>>>8&255,r[i++]=255&t,r[i++]=t>>>24&15|16,r[i++]=t>>>16&255,r[i++]=e>>>8|128,r[i++]=255&e;for(var f=0;f<6;++f)r[i+f]=o[f];return n||l(r)}},function(t,n,e){var s=e(9),a=e(10);t.exports=function(t,n,e){var i=n&&e||0,r=("string"==typeof t&&(n="binary"===t?new Array(16):null,t=null),(t=t||{}).random||(t.rng||s)());if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n)for(var o=0;o<16;++o)n[i+o]=r[o];return n||a(r)}}]);