New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

amplitude-js

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amplitude-js - npm Package Compare versions

Comparing version 5.1.0 to 5.2.0

2

amplitude.nocompat.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).amplitude=t()}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}var f="$default_instance",p=2,n=4096,a=1e3,h="$identify",g="$groupidentify",v="amplitude_lastEventId",m="amplitude_lastEventTime",y="amplitude_lastIdentifyId",_="amplitude_lastSequenceNumber",w="amplitude_sessionId",b="amplitude_deviceId",I="amplitude_optOut",S="amplitude_userId",i="amplitude_cookie_test",o="revenue_amount",s="$productId",u="$quantity",d="$price",c="$revenueType",E="amp_device_id",O="referrer",x="utm_source",N="utm_medium",k="utm_campaign",T="utm_term",A="utm_content",R=function(e){for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):(127<i&&i<2048?t+=String.fromCharCode(i>>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t},P=function(e){for(var t="",n=0,i=0,r=0,o=0;n<e.length;)(i=e.charCodeAt(n))<128?(t+=String.fromCharCode(i),n++):191<i&&i<224?(r=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&r),n+=2):(r=e.charCodeAt(n+1),o=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&r)<<6|63&o),n+=3);return t},j={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if(window.btoa&&window.atob)return window.btoa(unescape(encodeURIComponent(e)))}catch(e){}return j._encode(e)},_encode:function(e){var t,n,i,r,o,s,a,u="",d=0;for(e=R(e);d<e.length;)r=(t=e.charCodeAt(d++))>>2,o=(3&t)<<4|(n=e.charCodeAt(d++))>>4,s=(15&n)<<2|(i=e.charCodeAt(d++))>>6,a=63&i,isNaN(n)?s=a=64:isNaN(i)&&(a=64),u=u+j._keyStr.charAt(r)+j._keyStr.charAt(o)+j._keyStr.charAt(s)+j._keyStr.charAt(a);return u},decode:function(e){try{if(window.btoa&&window.atob)return decodeURIComponent(escape(window.atob(e)))}catch(e){}return j._decode(e)},_decode:function(e){var t,n,i,r,o,s,a="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)t=j._keyStr.indexOf(e.charAt(u++))<<2|(r=j._keyStr.indexOf(e.charAt(u++)))>>4,n=(15&r)<<4|(o=j._keyStr.indexOf(e.charAt(u++)))>>2,i=(3&o)<<6|(s=j._keyStr.indexOf(e.charAt(u++))),a+=String.fromCharCode(t),64!==o&&(a+=String.fromCharCode(n)),64!==s&&(a+=String.fromCharCode(i));return a=P(a)}},q=Object.prototype.toString;function C(e){switch(q.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!=e?"nan":e&&1===e.nodeType?"element":"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)?"buffer":t(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e))}var U={DISABLE:0,ERROR:1,WARN:2,INFO:3},D=U.WARN,M={error:function(e){D>=U.ERROR&&z(e)},warn:function(e){D>=U.WARN&&z(e)},info:function(e){D>=U.INFO&&z(e)}},z=function(e){try{console.log("[Amplitude] "+e)}catch(e){}},F=function(e){return"string"===C(e)&&e.length>n?e.substring(0,n):e},B=function(e){var t=C(e);if("object"!==t)return M.error("Error: invalid properties format. Expecting Javascript object, received "+t+", ignoring"),{};if(Object.keys(e).length>a)return M.error("Error: too many properties (more than 1000), ignoring"),{};var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=i,o=C(r);"string"!==o&&(r=String(r),M.warn("WARNING: Non-string property key, received type "+o+', coercing to string "'+r+'"'));var s=G(r,e[i]);null!==s&&(n[r]=s)}return n},L=["null","nan","undefined","function","arguments","regexp","element"],G=function e(t,n){var i=C(n);if(-1!==L.indexOf(i))M.warn('WARNING: Property key "'+t+'" with invalid value type '+i+", ignoring"),n=null;else if("error"===i)n=String(n),M.warn('WARNING: Property key "'+t+'" with value type error, coercing to '+n);else if("array"===i){for(var r=[],o=0;o<n.length;o++){var s=n[o],a=C(s);"array"!==a&&"object"!==a?r.push(e(t,s)):M.warn("WARNING: Cannot have "+a+" nested in an array property value, skipping")}n=r}else"object"===i&&(n=B(n));return n},K=function(e,t){var n=C(t);if("string"===n)return t;if("date"===n||"number"===n||"boolean"===n)return t=String(t),M.warn("WARNING: Non-string groupName, received type "+n+', coercing to string "'+t+'"'),t;if("array"===n){for(var i=[],r=0;r<t.length;r++){var o=t[r],s=C(o);"array"!==s&&"object"!==s?"string"===s?i.push(o):"date"!==s&&"number"!==s&&"boolean"!==s||(o=String(o),M.warn("WARNING: Non-string groupName, received type "+s+', coercing to string "'+o+'"'),i.push(o)):M.warn("WARNING: Skipping nested "+s+" in array groupName")}return i}M.warn("WARNING: Non-string groupName, received type "+n+". Please use strings or array of strings for groupName")},V=function(e){U.hasOwnProperty(e)&&(D=U[e])},W=M,$=function(e){return!e||0===e.length},J=function(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?void 0:decodeURIComponent(n[1].replace(/\+/g," "))},H=function e(t){if("array"===C(t))for(var n=0;n<t.length;n++)t[n]=e(t[n]);else if("object"===C(t))for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i]));else t=F(t);return t},Q=function(e){var t=C(e);if("object"!==t)return M.error("Error: invalid groups format. Expecting Javascript object, received "+t+", ignoring"),{};var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=i,o=C(r);"string"!==o&&(r=String(r),M.warn("WARNING: Non-string groupType, received type "+o+', coercing to string "'+r+'"'));var s=K(r,e[i]);null!==s&&(n[r]=s)}return n},X=function(e,t,n){return C(e)===n||(M.error("Invalid "+t+" input type. Expected "+n+" but received "+C(e)),!1)},Z=B,Y=function(e,t,n){var i=null!==t?n.expirationDays:-1;if(i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3),i=r}var o=e+"="+t;i&&(o+="; expires="+i.toUTCString()),o+="; path=/",n.domain&&(o+="; domain="+n.domain),n.secure&&(o+="; Secure"),document.cookie=o},ee=function(e){try{for(var t=document.cookie.split(";"),n=null,i=0;i<t.length;i++){for(var r=t[i];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(e)){n=r.substring(e.length,r.length);break}}return n}catch(e){return null}},te={expirationDays:void 0,domain:void 0},ne=function(e){var t,n,i=(t=e,(n=document.createElement("a")).href=t,n.hostname||location.hostname).split("."),r=i[i.length-1],o=[];if(4===i.length&&r===parseInt(r,10))return o;if(i.length<=1)return o;for(var s=i.length-2;0<=s;--s)o.push(i.slice(s).join("."));for(var a=0;a<o.length;++a){var u="__tld_test__",d=o[a],p={domain:"."+d};if(Y(u,1,p),ee(u))return Y(u,null,p),d}return""},ie=function(e){var t="";return te.domain&&(t="."===te.domain.charAt(0)?te.domain.substring(1):te.domain),e+t},re=function(e){var t=ie(e)+"=",n=ee(t);try{if(n)return JSON.parse(j.decode(n))}catch(e){return null}return null},oe=function(e,t){try{return Y(ie(e),j.encode(JSON.stringify(t)),te),!0}catch(e){return!1}},se=function(e){try{return Y(ie(e),null,te),!0}catch(e){return!1}},ae={reset:function(){te={expirationDays:void 0,domain:void 0}},options:function(e){if(0===arguments.length)return te;e=e||{},te.expirationDays=e.expirationDays,te.secure=e.secure;var t=$(e.domain)?"."+ne(window.location.href):e.domain,n=Math.random();te.domain=t,oe("amplitude_test",n);var i=re("amplitude_test");return i&&i===n||(t=null),se("amplitude_test"),te.domain=t,te},get:re,set:oe,remove:se},ue=window.localStorage,de=function(){this.storage=null};de.prototype._cookiesEnabled=function(){var e,t=String(new Date);try{return ae.set(i,t),e=ae.get(i)===t,ae.remove(i),e}catch(e){}return!1},de.prototype.getStorage=function(){if(null!==this.storage)return this.storage;if(this._cookiesEnabled())this.storage=ae;else{var n="amp_cookiestore_";this.storage={_options:{expirationDays:void 0,domain:void 0,secure:!1},reset:function(){this._options={expirationDays:void 0,domain:void 0,secure:!1}},options:function(e){return 0===arguments.length?this._options:(e=e||{},this._options.expirationDays=e.expirationDays||this._options.expirationDays,this._options.domain=e.domain||this._options.domain||window.location.hostname,this._options.secure=e.secure||!1)},get:function(e){try{return JSON.parse(ue.getItem(n+e))}catch(e){}return null},set:function(e,t){try{return ue.setItem(n+e,JSON.stringify(t)),!0}catch(e){}return!1},remove:function(e){try{ue.removeItem(n+e)}catch(e){return!1}}}}return this.storage};var pe="$clearAll",ce=function(){this.userPropertiesOperations={},this.properties=[]};ce.prototype.add=function(e,t){return"number"===C(t)||"string"===C(t)?this._addOperation("$add",e,t):W.error("Unsupported type for value: "+C(t)+", expecting number or string"),this},ce.prototype.append=function(e,t){return this._addOperation("$append",e,t),this},ce.prototype.clearAll=function(){return 0<Object.keys(this.userPropertiesOperations).length?this.userPropertiesOperations.hasOwnProperty(pe)||W.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"):this.userPropertiesOperations[pe]="-",this},ce.prototype.prepend=function(e,t){return this._addOperation("$prepend",e,t),this},ce.prototype.set=function(e,t){return this._addOperation("$set",e,t),this},ce.prototype.setOnce=function(e,t){return this._addOperation("$setOnce",e,t),this},ce.prototype.unset=function(e){return this._addOperation("$unset",e,"-"),this},ce.prototype._addOperation=function(e,t,n){this.userPropertiesOperations.hasOwnProperty(pe)?W.error("This identify already contains a $clearAll operation, skipping operation "+e):-1===this.properties.indexOf(t)?(this.userPropertiesOperations.hasOwnProperty(e)||(this.userPropertiesOperations[e]={}),this.userPropertiesOperations[e][t]=n,this.properties.push(t)):W.error('User property "'+t+'" already used in this identify, skipping operation '+e)};var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function le(e,t){return e(t={exports:{}},t.exports),t.exports}function fe(e){return e&&e.default||e}var he=le(function(s){!function(e){function c(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,i,r,o){return c((s=c(c(t,e),c(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function l(e,t,n,i,r,o,s){return a(t&n|~t&i,e,t,r,o,s)}function f(e,t,n,i,r,o,s){return a(t&i|n&~i,e,t,r,o,s)}function h(e,t,n,i,r,o,s){return a(t^n^i,e,t,r,o,s)}function g(e,t,n,i,r,o,s){return a(n^(t|~i),e,t,r,o,s)}function u(e,t){var n,i,r,o,s;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var a=1732584193,u=-271733879,d=-1732584194,p=271733878;for(n=0;n<e.length;n+=16)u=g(u=g(u=g(u=g(u=h(u=h(u=h(u=h(u=f(u=f(u=f(u=f(u=l(u=l(u=l(u=l(r=u,d=l(o=d,p=l(s=p,a=l(i=a,u,d,p,e[n],7,-680876936),u,d,e[n+1],12,-389564586),a,u,e[n+2],17,606105819),p,a,e[n+3],22,-1044525330),d=l(d,p=l(p,a=l(a,u,d,p,e[n+4],7,-176418897),u,d,e[n+5],12,1200080426),a,u,e[n+6],17,-1473231341),p,a,e[n+7],22,-45705983),d=l(d,p=l(p,a=l(a,u,d,p,e[n+8],7,1770035416),u,d,e[n+9],12,-1958414417),a,u,e[n+10],17,-42063),p,a,e[n+11],22,-1990404162),d=l(d,p=l(p,a=l(a,u,d,p,e[n+12],7,1804603682),u,d,e[n+13],12,-40341101),a,u,e[n+14],17,-1502002290),p,a,e[n+15],22,1236535329),d=f(d,p=f(p,a=f(a,u,d,p,e[n+1],5,-165796510),u,d,e[n+6],9,-1069501632),a,u,e[n+11],14,643717713),p,a,e[n],20,-373897302),d=f(d,p=f(p,a=f(a,u,d,p,e[n+5],5,-701558691),u,d,e[n+10],9,38016083),a,u,e[n+15],14,-660478335),p,a,e[n+4],20,-405537848),d=f(d,p=f(p,a=f(a,u,d,p,e[n+9],5,568446438),u,d,e[n+14],9,-1019803690),a,u,e[n+3],14,-187363961),p,a,e[n+8],20,1163531501),d=f(d,p=f(p,a=f(a,u,d,p,e[n+13],5,-1444681467),u,d,e[n+2],9,-51403784),a,u,e[n+7],14,1735328473),p,a,e[n+12],20,-1926607734),d=h(d,p=h(p,a=h(a,u,d,p,e[n+5],4,-378558),u,d,e[n+8],11,-2022574463),a,u,e[n+11],16,1839030562),p,a,e[n+14],23,-35309556),d=h(d,p=h(p,a=h(a,u,d,p,e[n+1],4,-1530992060),u,d,e[n+4],11,1272893353),a,u,e[n+7],16,-155497632),p,a,e[n+10],23,-1094730640),d=h(d,p=h(p,a=h(a,u,d,p,e[n+13],4,681279174),u,d,e[n],11,-358537222),a,u,e[n+3],16,-722521979),p,a,e[n+6],23,76029189),d=h(d,p=h(p,a=h(a,u,d,p,e[n+9],4,-640364487),u,d,e[n+12],11,-421815835),a,u,e[n+15],16,530742520),p,a,e[n+2],23,-995338651),d=g(d,p=g(p,a=g(a,u,d,p,e[n],6,-198630844),u,d,e[n+7],10,1126891415),a,u,e[n+14],15,-1416354905),p,a,e[n+5],21,-57434055),d=g(d,p=g(p,a=g(a,u,d,p,e[n+12],6,1700485571),u,d,e[n+3],10,-1894986606),a,u,e[n+10],15,-1051523),p,a,e[n+1],21,-2054922799),d=g(d,p=g(p,a=g(a,u,d,p,e[n+8],6,1873313359),u,d,e[n+15],10,-30611744),a,u,e[n+6],15,-1560198380),p,a,e[n+13],21,1309151649),d=g(d,p=g(p,a=g(a,u,d,p,e[n+4],6,-145523070),u,d,e[n+11],10,-1120210379),a,u,e[n+2],15,718787259),p,a,e[n+9],21,-343485551),a=c(a,i),u=c(u,r),d=c(d,o),p=c(p,s);return[a,u,d,p]}function d(e){var t,n="",i=32*e.length;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function i(e){var t,n,i="0123456789abcdef",r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+=i.charAt(t>>>4&15)+i.charAt(15&t);return r}function n(e){return unescape(encodeURIComponent(e))}function r(e){return d(u(p(t=n(e)),8*t.length));var t}function o(e,t){return function(e,t){var n,i,r=p(e),o=[],s=[];for(o[15]=s[15]=void 0,16<r.length&&(r=u(r,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^r[n],s[n]=1549556828^r[n];return i=u(o.concat(p(t)),512+8*t.length),d(u(s.concat(i),640))}(n(e),n(t))}function t(e,t,n){return t?n?o(t,e):i(o(t,e)):n?r(e):i(r(e))}s.exports?s.exports=t:e.md5=t}(e)});module.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})};var ge=Object.freeze({}),ve=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;module.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))me.call(n,s)&&(r[s]=n[s]);if(ve){i=ve(n);for(var a=0;a<i.length;a++)ye.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r};var _e=Object.freeze({}),we="%[a-f0-9]{2}",be=new RegExp(we,"gi"),Ie=new RegExp("("+we+")+","gi");function Se(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],Se(n),Se(i))}function Ee(t){try{return decodeURIComponent(t)}catch(e){for(var n=t.match(be),i=1;i<n.length;i++)n=(t=Se(n,i).join("")).match(be);return t}}module.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=Ie.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=Ee(n[0]);i!==n[0]&&(t[n[0]]=i)}n=Ie.exec(e)}t["%C2"]="�";for(var r=Object.keys(t),o=0;o<r.length;o++){var s=r[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}(t)}};var Oe=Object.freeze({}),xe=fe(ge),Ne=fe(_e);fe(Oe);function ke(e,t){return t.encode?t.strict?xe(e):encodeURIComponent(e):e}var Te=function(i,r){!1===(r=Ne({encode:!0,strict:!0,arrayFormat:"none"},r)).sort&&(r.sort=function(){});var o=function(i){switch(i.arrayFormat){case"index":return function(e,t,n){return null===t?[ke(e,i),"[",n,"]"].join(""):[ke(e,i),"[",ke(n,i),"]=",ke(t,i)].join("")};case"bracket":return function(e,t){return null===t?ke(e,i):[ke(e,i),"[]=",ke(t,i)].join("")};default:return function(e,t){return null===t?ke(e,i):[ke(e,i),"=",ke(t,i)].join("")}}}(r);return i?Object.keys(i).sort(r.sort).map(function(t){var e=i[t];if(void 0===e)return"";if(null===e)return ke(t,r);if(Array.isArray(e)){var n=[];return e.slice().forEach(function(e){void 0!==e&&n.push(o(t,e,n.length))}),n.join("&")}return ke(t,r)+"="+ke(e,r)}).filter(function(e){return 0<e.length}).join("&"):""},Ae=function(e,t){this.url=e,this.data=t||{}};Ae.prototype.send=function(e){if(!!window.XDomainRequest){var t=new window.XDomainRequest;t.open("POST",this.url,!0),t.onload=function(){e(200,t.responseText)},t.onerror=function(){"Request Entity Too Large"===t.responseText?e(413,t.responseText):e(500,t.responseText)},t.ontimeout=function(){},t.onprogress=function(){},t.send(Te(this.data))}else{var n=new XMLHttpRequest;n.open("POST",this.url,!0),n.onreadystatechange=function(){4===n.readyState&&e(n.status,n.responseText)},n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.send(Te(this.data))}};var Re=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};Re.prototype.setProductId=function(e){return"string"!==C(e)?W.error("Unsupported type for productId: "+C(e)+", expecting string"):$(e)?W.error("Invalid empty productId"):this._productId=e,this},Re.prototype.setQuantity=function(e){return"number"!==C(e)?W.error("Unsupported type for quantity: "+C(e)+", expecting number"):this._quantity=parseInt(e),this},Re.prototype.setPrice=function(e){return"number"!==C(e)?W.error("Unsupported type for price: "+C(e)+", expecting number"):this._price=e,this},Re.prototype.setRevenueType=function(e){return"string"!==C(e)?W.error("Unsupported type for revenueType: "+C(e)+", expecting string"):this._revenueType=e,this},Re.prototype.setEventProperties=function(e){return"object"!==C(e)?W.error("Unsupported type for eventProperties: "+C(e)+", expecting object"):this._properties=Z(e),this},Re.prototype._isValidRevenue=function(){return"number"===C(this._price)||(W.error("Invalid revenue, need to set price field"),!1)},Re.prototype._toJSONObject=function(){var e="object"===C(this._properties)?this._properties:{};return null!==this._productId&&(e[s]=this._productId),null!==this._quantity&&(e[u]=this._quantity),null!==this._price&&(e[d]=this._price),null!==this._revenueType&&(e[c]=this._revenueType),e};var Pe=le(function(b,I){!function(r,c){var l="function",e="model",t="name",n="type",i="vendor",o="version",s="architecture",a="console",u="mobile",d="tablet",p="smarttv",f="wearable",h={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:c},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},g={rgx:function(e,t){for(var n,i,r,o,s,a,u=0;u<t.length&&!s;){var d=t[u],p=t[u+1];for(n=i=0;n<d.length&&!s;)if(s=d[n++].exec(e))for(r=0;r<p.length;r++)a=s[++i],"object"==typeof(o=p[r])&&0<o.length?2==o.length?typeof o[1]==l?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?typeof o[1]!==l||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):c:this[o[0]]=a?o[1].call(this,a,o[2]):c:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):c):this[o]=a||c;u+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&0<t[n].length){for(var i=0;i<t[n].length;i++)if(h.has(t[n][i],e))return"?"===n?c:n}else if(h.has(t[n],e))return"?"===n?c:n;return e}},v={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},name:{"Opera Mobile":"Opera Mobi","IE Mobile":"IEMobile"}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},name:{"Windows Phone":"Windows Phone OS"}}}},m={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[t,o],[/(opios)[\/\s]+([\w\.]+)/i],[[t,"Opera Mini"],o],[/\s(opr)\/([\w\.]+)/i],[[t,"Opera"],o],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[t,o],[/(konqueror)\/([\w\.]+)/i],[[t,"Konqueror"],o],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[t,"IE"],o],[/(edge|edgios|edga)\/((\d+)?[\w\.]+)/i],[[t,"Edge"],o],[/(yabrowser)\/([\w\.]+)/i],[[t,"Yandex"],o],[/(puffin)\/([\w\.]+)/i],[[t,"Puffin"],o],[/(focus)\/([\w\.]+)/i],[[t,"Firefox Focus"],o],[/(opt)\/([\w\.]+)/i],[[t,"Opera Touch"],o],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[t,"UCBrowser"],o],[/(comodo_dragon)\/([\w\.]+)/i],[[t,/_/g," "],o],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[t,"Chrome Mobile"],o],[/(micromessenger)\/([\w\.]+)/i],[[t,"WeChat"],o],[/(brave)\/([\w\.]+)/i],[[t,"Brave"],o],[/(qqbrowserlite)\/([\w\.]+)/i],[t,o],[/(QQ)\/([\d\.]+)/i],[t,o],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[t,o],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[t,o],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[t,o],[/(MetaSr)[\/\s]?([\w\.]+)/i],[t],[/(LBBROWSER)/i],[t],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[o,[t,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[o,[t,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[t,o],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[o,[t,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[t,/(.+)/,"$1 WebView"],o],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[t,/(.+(?:g|us))(.+)/,"$1 $2"],o],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[o,[t,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[t,o],[/(dolfin)\/([\w\.]+)/i],[[t,"Dolphin"],o],[/(coast)\/([\w\.]+)/i],[[t,"Opera Coast"],o],[/fxios\/([\w\.-]+)/i],[o,[t,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[o,[t,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[o,t],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[t,"GSA"],o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[t,[o,g.str,v.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[t,o],[/(navigator|netscape)\/([\w\.-]+)/i],[[t,"Netscape"],o],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[t,o]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[s,"amd64"]],[/(ia32(?=;))/i],[[s,h.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[s,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[s,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[s,/ower/,"",h.lowerize]],[/(sun4\w)[;\)]/i],[[s,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[s,h.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[e,i,[n,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[e,[i,"Apple"],[n,d]],[/(apple\s{0,1}tv)/i],[[e,"Apple TV"],[i,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[i,e,[n,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[e,[i,"Amazon"],[n,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[e,g.str,v.device.amazon.model],[i,"Amazon"],[n,u]],[/android.+aft([bms])\sbuild/i],[e,[i,"Amazon"],[n,p]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[e,i,[n,u]],[/\((ip[honed|\s\w*]+);/i],[e,[i,"Apple"],[n,u]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[i,e,[n,u]],[/\(bb10;\s(\w+)/i],[e,[i,"BlackBerry"],[n,u]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[e,[i,"Asus"],[n,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[i,"Sony"],[e,"Xperia Tablet"],[n,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[e,[i,"Sony"],[n,u]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[i,e,[n,a]],[/android.+;\s(shield)\sbuild/i],[e,[i,"Nvidia"],[n,a]],[/(playstation\s[34portablevi]+)/i],[e,[i,"Sony"],[n,a]],[/(sprint\s(\w+))/i],[[i,g.str,v.device.sprint.vendor],[e,g.str,v.device.sprint.model],[n,u]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[i,e,[n,d]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[i,[e,/_/g," "],[n,u]],[/(nexus\s9)/i],[e,[i,"HTC"],[n,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[e,[i,"Huawei"],[n,u]],[/(microsoft);\s(lumia[\s\w]+)/i],[i,e,[n,u]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[e,[i,"Microsoft"],[n,a]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[i,"Microsoft"],[n,u]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[e,[i,"Motorola"],[n,u]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[e,[i,"Motorola"],[n,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[i,h.trim],[e,h.trim],[n,p]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[i,"Samsung"],[n,p]],[/\(dtv[\);].+(aquos)/i],[e,[i,"Sharp"],[n,p]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[i,"Samsung"],e,[n,d]],[/smart-tv.+(samsung)/i],[i,[n,p],e],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[i,"Samsung"],e,[n,u]],[/sie-(\w*)/i],[e,[i,"Siemens"],[n,u]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[i,"Nokia"],e,[n,u]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[e,[i,"Acer"],[n,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[e,[i,"LG"],[n,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[i,"LG"],e,[n,d]],[/(lg) netcast\.tv/i],[i,e,[n,p]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[e,[i,"LG"],[n,u]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[e,[i,"Lenovo"],[n,d]],[/linux;.+((jolla));/i],[i,e,[n,u]],[/((pebble))app\/[\d\.]+\s/i],[i,e,[n,f]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[i,e,[n,u]],[/crkey/i],[[e,"Chromecast"],[i,"Google"]],[/android.+;\s(glass)\s\d/i],[e,[i,"Google"],[n,f]],[/android.+;\s(pixel c)[\s)]/i],[e,[i,"Google"],[n,d]],[/android.+;\s(pixel( [23])?( xl)?)\s/i],[e,[i,"Google"],[n,u]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[e,/_/g," "],[i,"Xiaomi"],[n,u]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[e,/_/g," "],[i,"Xiaomi"],[n,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[e,[i,"Meizu"],[n,d]],[/(mz)-([\w-]{2,})/i],[[i,"Meizu"],e,[n,u]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[e,[i,"OnePlus"],[n,u]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[e,[i,"RCA"],[n,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[e,[i,"Dell"],[n,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[e,[i,"Verizon"],[n,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[i,"Barnes & Noble"],e,[n,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[e,[i,"NuVision"],[n,d]],[/android.+;\s(k88)\sbuild/i],[e,[i,"ZTE"],[n,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[e,[i,"Swiss"],[n,u]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[e,[i,"Swiss"],[n,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[e,[i,"Zeki"],[n,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[i,"Dragon Touch"],e,[n,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[e,[i,"Insignia"],[n,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[e,[i,"NextBook"],[n,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[i,"Voice"],e,[n,u]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[i,"LvTel"],e,[n,u]],[/android.+;\s(PH-1)\s/i],[e,[i,"Essential"],[n,u]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[e,[i,"Envizen"],[n,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[i,e,[n,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[e,[i,"MachSpeed"],[n,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[i,e,[n,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[e,[i,"Rotor"],[n,d]],[/android.+(KS(.+))\s+build/i],[e,[i,"Amazon"],[n,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[i,e,[n,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[n,h.lowerize],i,e],[/[\s\/\(](smart-?tv)[;\)]/i],[[n,p]],[/(android[\w\.\s\-]{0,9});.+build/i],[e,[i,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[o,[t,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)/i],[[t,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[t,o],[/rv\:([\w\.]{1,9}).+(gecko)/i],[o,t]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[t,o],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[t,g.str,v.os.windows.name],[o,g.str,v.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[t,"Windows"],[o,g.str,v.os.windows.version]],[/\((bb)(10);/i],[[t,"BlackBerry"],o],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[t,o],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[t,"Symbian"],o],[/\((series40);/i],[t],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[t,"Firefox OS"],o],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[t,"Linux"],o],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[t,"Chromium OS"],o],[/(sunos)\s?([\w\.\d]*)/i],[[t,"Solaris"],o],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[t,"Linux"],o],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[t,"iPhone"],[o,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[t,"iPad"],[o,/_/g,"."]],[/(haiku)\s(\w+)/i],[t,o],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[o,/_/g,"."],[t,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[t,"Mac"],[o,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[t,o]]},y=function(e,t){if("object"==typeof e&&(t=e,e=c),!(this instanceof y))return new y(e,t).getResult();var n=e||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),i=t?h.extend(m,t):m;return this.getBrowser=function(){var e={name:c,version:c};return g.rgx.call(e,n,i.browser),e.major=h.major(e.version),e},this.getCPU=function(){var e={architecture:c};return g.rgx.call(e,n,i.cpu),e},this.getDevice=function(){var e={vendor:c,model:c,type:c};return g.rgx.call(e,n,i.device),e},this.getEngine=function(){var e={name:c,version:c};return g.rgx.call(e,n,i.engine),e},this.getOS=function(){var e={name:c,version:c};return g.rgx.call(e,n,i.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};y.VERSION="0.7.19",y.BROWSER={NAME:t,MAJOR:"major",VERSION:o},y.CPU={ARCHITECTURE:s},y.DEVICE={MODEL:e,VENDOR:i,TYPE:n,CONSOLE:a,MOBILE:u,SMARTTV:p,TABLET:d,WEARABLE:f,EMBEDDED:"embedded"},y.ENGINE={NAME:t,VERSION:o},y.OS={NAME:t,VERSION:o},b.exports&&(I=b.exports=y),I.UAParser=y;var _=r&&(r.jQuery||r.Zepto);if(void 0!==_&&!_.ua){var w=new y;_.ua=w.getResult(),_.ua.get=function(){return w.getUA()},_.ua.set=function(e){w.setUA(e);var t=w.getResult();for(var n in t)_.ua[n]=t[n]}}}("object"==typeof window?window:e)}),je=(Pe.UAParser,function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}),qe="5.1.0",Ce={apiEndpoint:"api.amplitude.com",batchEvents:!1,cookieExpiration:3650,cookieName:"amplitude_id",deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:3e4,eventUploadThreshold:30,forceHttps:!0,includeGclid:!1,includeReferrer:!1,includeUtm:!1,language:{language:navigator&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||void 0}.language,logLevel:"WARN",optOut:!1,platform:"Web",savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:18e5,trackingOptions:{city:!0,country:!0,device_model:!0,dma:!0,ip_address:!0,language:!0,os_name:!0,os_version:!0,platform:!0,region:!0,version_name:!0},unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100},Ue=function(e){this._instanceName=$(e)?f:e.toLowerCase(),this._legacyStorageSuffix=this._instanceName===f?"":"_"+this._instanceName,this._unsentEvents=[],this._unsentIdentifys=[],this._ua=new Pe(navigator.userAgent).getResult(),this.options=l({},Ce,{trackingOptions:l({},Ce.trackingOptions)}),this.cookieStorage=(new de).getStorage(),this._q=[],this._sending=!1,this._updateScheduled=!1,this._onInit=[],this._eventId=0,this._identifyId=0,this._lastEventTime=null,this._newSession=!1,this._sequenceNumber=0,this._sessionId=null,this._isInitialized=!1,this._userAgent=navigator&&navigator.userAgent||null};Ue.prototype.Identify=ce,Ue.prototype.Revenue=Re,Ue.prototype.init=function(e,t,n,i){if("string"!==C(e)||$(e))W.error("Invalid apiKey. Please re-initialize with a valid apiKey");else{try{this.options.apiKey=e,this._storageSuffix="_"+e+this._legacyStorageSuffix,De(this.options,n),"string"===C(this.options.logLevel)&&V(this.options.logLevel);var r=Ve(this);if(this._apiPropertiesTrackingOptions=0<Object.keys(r).length?{tracking_options:r}:{},this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie}),this.options.domain=this.cookieStorage.options().domain,this._instanceName===f&&Me(this),ze(this),this.options.deviceId="object"===C(n)&&"string"===C(n.deviceId)&&!$(n.deviceId)&&n.deviceId||this.options.deviceIdFromUrlParam&&this._getDeviceIdFromUrlParam(this._getUrlParams())||this.options.deviceId||je()+"R",this.options.userId="string"===C(t)&&!$(t)&&t||"number"===C(t)&&t.toString()||this.options.userId||null,this.options.saveEvents){this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey);for(var o=0;o<this._unsentEvents.length;o++){var s=this._unsentEvents[o].event_properties,a=this._unsentEvents[o].groups;this._unsentEvents[o].event_properties=Z(s),this._unsentEvents[o].groups=Q(a)}for(var u=0;u<this._unsentIdentifys.length;u++){var d=this._unsentIdentifys[u].user_properties,p=this._unsentIdentifys[u].groups;this._unsentIdentifys[u].user_properties=Z(d),this._unsentIdentifys[u].groups=Q(p)}}var c=(new Date).getTime();(!this._sessionId||!this._lastEventTime||c-this._lastEventTime>this.options.sessionTimeout)&&(this.options.unsetParamsReferrerOnNewSession&&this._unsetUTMParams(),this._newSession=!0,this._sessionId=c,this.options.saveParamsReferrerOncePerSession&&this._trackParamsAndReferrer()),this.options.saveParamsReferrerOncePerSession||this._trackParamsAndReferrer(),this._lastEventTime=c,Be(this),this._sendEventsIfReady()}catch(e){W.error(e)}finally{"function"===C(i)&&i(this)}for(var l=0;l<this._onInit.length;l++)this._onInit[l]();this._onInit=[],this._isInitialized=!0}},Ue.prototype._trackParamsAndReferrer=function(){this.options.includeUtm&&this._initUtmData(),this.options.includeReferrer&&this._saveReferrer(this._getReferrer()),this.options.includeGclid&&this._saveGclid(this._getUrlParams())};var De=function i(r,o){if("object"===C(o)){var e=function(e){if(r.hasOwnProperty(e)){var t=o[e],n=C(r[e]);X(t,e+" option",n)&&("boolean"===n?r[e]=!!t:"string"===n&&!$(t)||"number"===n&&0<t?r[e]=t:"object"===n&&i(r[e],t))}};for(var t in o)o.hasOwnProperty(t)&&e(t)}};Ue.prototype.runQueuedFunctions=function(){for(var e=0;e<this._q.length;e++){var t=this[this._q[e][0]];"function"===C(t)&&t.apply(this,this._q[e].slice(1))}this._q=[]},Ue.prototype._apiKeySet=function(e){return!$(this.options.apiKey)||(W.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+e),!1)},Ue.prototype._loadSavedUnsentEvents=function(e){var t=this._getFromStorage(ue,e),n=this._parseSavedUnsentEventsString(t,e),i=this._getFromStorageLegacy(ue,e),r=this._parseSavedUnsentEventsString(i,e).concat(n);return this._removeFromLegacyStorage(ue,e),this._setInStorage(ue,e,JSON.stringify(r)),r},Ue.prototype._removeFromLegacyStorage=function(e,t){e.removeItem(t+this._legacyStorageSuffix)},Ue.prototype._parseSavedUnsentEventsString=function(e,t){if($(e))return[];if("string"===C(e))try{var n=JSON.parse(e);if("array"===C(n))return n}catch(e){}return W.error("Unable to load "+t+" events. Restart with a new empty queue."),[]},Ue.prototype.isNewSession=function(){return this._newSession},Ue.prototype.onInit=function(e){this._isInitialized?e():this._onInit.push(e)},Ue.prototype.getSessionId=function(){return this._sessionId},Ue.prototype.nextEventId=function(){return this._eventId++,this._eventId},Ue.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},Ue.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},Ue.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},Ue.prototype._sendEventsIfReady=function(e){return 0!==this._unsentCount()&&(this.options.batchEvents?this._unsentCount()>=this.options.eventUploadThreshold?(this.sendEvents(e),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout(function(){this._updateScheduled=!1,this.sendEvents()}.bind(this),this.options.eventUploadPeriodMillis)),!1):(this.sendEvents(e),!0))},Ue.prototype._getFromStorage=function(e,t){return e.getItem(t+this._storageSuffix)},Ue.prototype._getFromStorageLegacy=function(e,t){return e.getItem(t+this._legacyStorageSuffix)},Ue.prototype._setInStorage=function(e,t,n){e.setItem(t+this._storageSuffix,n)};var Me=function(e){var t=e.cookieStorage.get(e.options.cookieName+e._storageSuffix);if("object"!==C(t)&&!("object"===C(t=e.cookieStorage.get(e.options.cookieName+e._legacyStorageSuffix))&&t.deviceId&&t.sessionId&&t.lastEventTime)){var n=function(e){var t=ue.getItem(e);return ue.removeItem(e),t},i="string"===C(e.options.apiKey)&&"_"+e.options.apiKey.slice(0,6)||"",r=n(b+i),o=n(S+i),s=n(I+i);null!=s&&(s="true"===String(s));var a=parseInt(n(w)),u=parseInt(n(m)),d=parseInt(n(v)),p=parseInt(n(y)),c=parseInt(n(_)),l=function(e){return"object"===C(t)&&t[e]};e.options.deviceId=l("deviceId")||r,e.options.userId=l("userId")||o,e._sessionId=l("sessionId")||a||e._sessionId,e._lastEventTime=l("lastEventTime")||u||e._lastEventTime,e._eventId=l("eventId")||d||e._eventId,e._identifyId=l("identifyId")||p||e._identifyId,e._sequenceNumber=l("sequenceNumber")||c||e._sequenceNumber,e.options.optOut=s||!1,t&&void 0!==t.optOut&&null!==t.optOut&&(e.options.optOut="true"===String(t.optOut)),Be(e)}},ze=function(e){var t=e.cookieStorage.get(e.options.cookieName+e._storageSuffix);if("object"===C(t))Fe(e,t);else{var n=e.cookieStorage.get(e.options.cookieName+e._legacyStorageSuffix);"object"===C(n)&&(e.cookieStorage.remove(e.options.cookieName+e._legacyStorageSuffix),Fe(e,n))}},Fe=function(e,t){t.deviceId&&(e.options.deviceId=t.deviceId),t.userId&&(e.options.userId=t.userId),null!==t.optOut&&void 0!==t.optOut&&(e.options.optOut=t.optOut),t.sessionId&&(e._sessionId=parseInt(t.sessionId)),t.lastEventTime&&(e._lastEventTime=parseInt(t.lastEventTime)),t.eventId&&(e._eventId=parseInt(t.eventId)),t.identifyId&&(e._identifyId=parseInt(t.identifyId)),t.sequenceNumber&&(e._sequenceNumber=parseInt(t.sequenceNumber))},Be=function(e){e.cookieStorage.set(e.options.cookieName+e._storageSuffix,{deviceId:e.options.deviceId,userId:e.options.userId,optOut:e.options.optOut,sessionId:e._sessionId,lastEventTime:e._lastEventTime,eventId:e._eventId,identifyId:e._identifyId,sequenceNumber:e._sequenceNumber})};Ue.prototype._initUtmData=function(e,t){e=e||this._getUrlParams(),t=t||this.cookieStorage.get("__utmz");var n,i,r,o,s,a,u,d,p,c,l,f=(i=e,r=(n=t)?"?"+n.split(".").slice(-1)[0].replace(/\|/g,"&"):"",s=(o=function(e,t,n,i){return J(e,t)||J(n,i)})(x,i,"utmcsr",r),a=o(N,i,"utmcmd",r),u=o(k,i,"utmccn",r),d=o(T,i,"utmctr",r),p=o(A,i,"utmcct",r),c={},(l=function(e,t){$(t)||(c[e]=t)})(x,s),l(N,a),l(k,u),l(T,d),l(A,p),c);Le(this,f)},Ue.prototype._unsetUTMParams=function(){var e=new ce;e.unset(O),e.unset(x),e.unset(N),e.unset(k),e.unset(T),e.unset(A),this.identify(e)};var Le=function(e,t){if("object"===C(t)&&0!==Object.keys(t).length){var n=new ce;for(var i in t)t.hasOwnProperty(i)&&(n.setOnce("initial_"+i,t[i]),n.set(i,t[i]));e.identify(n)}};Ue.prototype._getReferrer=function(){return document.referrer},Ue.prototype._getUrlParams=function(){return location.search},Ue.prototype._saveGclid=function(e){var t=J("gclid",e);$(t)||Le(this,{gclid:t})},Ue.prototype._getDeviceIdFromUrlParam=function(e){return J(E,e)},Ue.prototype._getReferringDomain=function(e){if($(e))return null;var t=e.split("/");return 3<=t.length?t[2]:null},Ue.prototype._saveReferrer=function(e){if(!$(e)){var t={referrer:e,referring_domain:this._getReferringDomain(e)};Le(this,t)}},Ue.prototype.saveEvents=function(){try{this._setInStorage(ue,this.options.unsentKey,JSON.stringify(this._unsentEvents))}catch(e){}try{this._setInStorage(ue,this.options.unsentIdentifyKey,JSON.stringify(this._unsentIdentifys))}catch(e){}},Ue.prototype.setDomain=function(e){if(X(e,"domain","string"))try{this.cookieStorage.options({domain:e}),this.options.domain=this.cookieStorage.options().domain,ze(this),Be(this)}catch(e){W.error(e)}},Ue.prototype.setUserId=function(e){try{this.options.userId=null!=e&&""+e||null,Be(this)}catch(e){W.error(e)}},Ue.prototype.setGroup=function(e,t){if(this._apiKeySet("setGroup()")&&X(e,"groupType","string")&&!$(e)){var n={};n[e]=t;var i=(new ce).set(e,t);this._logEvent(h,null,null,i.userPropertiesOperations,n,null,null,null)}},Ue.prototype.setOptOut=function(e){if(X(e,"enable","boolean"))try{this.options.optOut=e,Be(this)}catch(e){W.error(e)}},Ue.prototype.setSessionId=function(e){if(X(e,"sessionId","number"))try{this._sessionId=e,Be(this)}catch(e){W.error(e)}},Ue.prototype.resetSessionId=function(){this.setSessionId((new Date).getTime())},Ue.prototype.regenerateDeviceId=function(){this.setDeviceId(je()+"R")},Ue.prototype.setDeviceId=function(e){if(X(e,"deviceId","string"))try{$(e)||(this.options.deviceId=""+e,Be(this))}catch(e){W.error(e)}},Ue.prototype.setUserProperties=function(e){if(this._apiKeySet("setUserProperties()")&&X(e,"userProperties","object")){var t=H(Z(e));if(0!==Object.keys(t).length){var n=new ce;for(var i in t)t.hasOwnProperty(i)&&n.set(i,t[i]);this.identify(n)}}},Ue.prototype.clearUserProperties=function(){if(this._apiKeySet("clearUserProperties()")){var e=new ce;e.clearAll(),this.identify(e)}};var Ge=function(e,t){for(var n=0;n<t._q.length;n++){var i=e[t._q[n][0]];"function"===C(i)&&i.apply(e,t._q[n].slice(1))}return e};Ue.prototype.identify=function(e,t){if(this._apiKeySet("identify()"))if("object"===C(e)&&e.hasOwnProperty("_q")&&(e=Ge(new ce,e)),e instanceof ce){if(0<Object.keys(e.userPropertiesOperations).length)return this._logEvent(h,null,null,e.userPropertiesOperations,null,null,null,t);"function"===C(t)&&t(0,"No request sent",{reason:"No user property operations"})}else W.error("Invalid identify input type. Expected Identify object but saw "+C(e)),"function"===C(t)&&t(0,"No request sent",{reason:"Invalid identify input type"});else"function"===C(t)&&t(0,"No request sent",{reason:"API key is not set"})},Ue.prototype.groupIdentify=function(e,t,n,i){if(this._apiKeySet("groupIdentify()"))if(X(e,"group_type","string")&&!$(e))if(null!=t)if("object"===C(n)&&n.hasOwnProperty("_q")&&(n=Ge(new ce,n)),n instanceof ce){if(0<Object.keys(n.userPropertiesOperations).length)return this._logEvent(g,null,null,null,r({},e,t),n.userPropertiesOperations,null,i);"function"===C(i)&&i(0,"No request sent",{reason:"No group property operations"})}else W.error("Invalid identify input type. Expected Identify object but saw "+C(n)),"function"===C(i)&&i(0,"No request sent",{reason:"Invalid identify input type"});else"function"===C(i)&&i(0,"No request sent",{reason:"Invalid group name"});else"function"===C(i)&&i(0,"No request sent",{reason:"Invalid group type"});else"function"===C(i)&&i(0,"No request sent",{reason:"API key is not set"})},Ue.prototype.setVersionName=function(e){X(e,"versionName","string")&&(this.options.versionName=e)},Ue.prototype._logEvent=function(e,t,n,i,r,o,s,a){if(ze(this),e)if(this.options.optOut)"function"===C(a)&&a(0,"No request sent",{reason:"optOut is set to true"});else try{var u;u=e===h||e===g?this.nextIdentifyId():this.nextEventId();var d=this.nextSequenceNumber(),p="number"===C(s)?s:(new Date).getTime();(!this._sessionId||!this._lastEventTime||p-this._lastEventTime>this.options.sessionTimeout)&&(this._sessionId=p),this._lastEventTime=p,Be(this),i=i||{},n=l({},n||{},l({},this._apiPropertiesTrackingOptions)),t=t||{},r=r||{},o=o||{};var c={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:p,event_id:u,session_id:this._sessionId||-1,event_type:e,version_name:Ke(this,"version_name")&&this.options.versionName||null,platform:Ke(this,"platform")?this.options.platform:null,os_name:Ke(this,"os_name")&&this._ua.browser.name||null,os_version:Ke(this,"os_version")&&this._ua.browser.major||null,device_model:Ke(this,"device_model")&&this._ua.os.name||null,language:Ke(this,"language")?this.options.language:null,api_properties:n,event_properties:H(Z(t)),user_properties:H(Z(i)),uuid:je(),library:{name:"amplitude-js",version:qe},sequence_number:d,groups:H(Q(r)),group_properties:H(Z(o)),user_agent:this._userAgent};return e===h||e===g?(this._unsentIdentifys.push(c),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push(c),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(a)||"function"!==C(a)||a(0,"No request sent",{reason:"No events to send or upload queued"}),u}catch(e){W.error(e)}else"function"===C(a)&&a(0,"No request sent",{reason:"Missing eventType"})};var Ke=function(e,t){return!!e.options.trackingOptions[t]},Ve=function(e){for(var t=["city","country","dma","ip_address","region"],n={},i=0;i<t.length;i++){var r=t[i];Ke(e,r)||(n[r]=!1)}return n};Ue.prototype._limitEventsQueued=function(e){e.length>this.options.savedMaxCount&&e.splice(0,e.length-this.options.savedMaxCount)},Ue.prototype.logEvent=function(e,t,n){return this.logEventWithTimestamp(e,t,null,n)},Ue.prototype.logEventWithTimestamp=function(e,t,n,i){return this._apiKeySet("logEvent()")?X(e,"eventType","string")?$(e)?("function"===C(i)&&i(0,"No request sent",{reason:"Missing eventType"}),-1):this._logEvent(e,t,null,null,null,null,n,i):("function"===C(i)&&i(0,"No request sent",{reason:"Invalid type for eventType"}),-1):("function"===C(i)&&i(0,"No request sent",{reason:"API key not set"}),-1)},Ue.prototype.logEventWithGroups=function(e,t,n,i){return this._apiKeySet("logEventWithGroups()")?X(e,"eventType","string")?this._logEvent(e,t,null,null,n,null,null,i):("function"===C(i)&&i(0,"No request sent",{reason:"Invalid type for eventType"}),-1):("function"===C(i)&&i(0,"No request sent",{reason:"API key not set"}),-1)},Ue.prototype.logRevenueV2=function(e){if(this._apiKeySet("logRevenueV2()"))if("object"===C(e)&&e.hasOwnProperty("_q")&&(e=Ge(new Re,e)),e instanceof Re){if(e&&e._isValidRevenue())return this.logEvent(o,e._toJSONObject())}else W.error("Invalid revenue input type. Expected Revenue object but saw "+C(e))},Ue.prototype.removeEvents=function(e,t){We(this,"_unsentEvents",e),We(this,"_unsentIdentifys",t)};var We=function(e,t,n){if(!(n<0)){for(var i=[],r=0;r<e[t].length;r++)e[t][r].event_id>n&&i.push(e[t][r]);e[t]=i}};Ue.prototype.sendEvents=function(n){if(this._apiKeySet("sendEvents()"))if(this.options.optOut)"function"===C(n)&&n(0,"No request sent",{reason:"optOut is set to true"});else if(0!==this._unsentCount())if(this._sending)"function"===C(n)&&n(0,"No request sent",{reason:"Request already in progress"});else{this._sending=!0;var e=(this.options.forceHttps?"https":"https:"===window.location.protocol?"https":"http")+"://"+this.options.apiEndpoint,i=Math.min(this._unsentCount(),this.options.uploadBatchSize),t=this._mergeEventsAndIdentifys(i),r=t.maxEventId,o=t.maxIdentifyId,s=JSON.stringify(t.eventsToSend),a=(new Date).getTime(),u={client:this.options.apiKey,e:s,v:p,upload_time:a,checksum:he(p+this.options.apiKey+s+a)},d=this;new Ae(e,u).send(function(e,t){d._sending=!1;try{200===e&&"success"===t?(d.removeEvents(r,o),d.options.saveEvents&&d.saveEvents(),d._sendEventsIfReady(n)||"function"!==C(n)||n(e,t)):413===e?(1===d.options.uploadBatchSize&&d.removeEvents(r,o),d.options.uploadBatchSize=Math.ceil(i/2),d.sendEvents(n)):"function"===C(n)&&n(e,t)}catch(e){}})}else"function"===C(n)&&n(0,"No request sent",{reason:"No events to send"});else"function"===C(n)&&n(0,"No request sent",{reason:"API key not set"})},Ue.prototype._mergeEventsAndIdentifys=function(e){for(var t=[],n=0,i=-1,r=0,o=-1;t.length<e;){var s,a=r>=this._unsentIdentifys.length,u=n>=this._unsentEvents.length;if(u&&a){W.error("Merging Events and Identifys, less events and identifys than expected");break}a?i=(s=this._unsentEvents[n++]).event_id:u?o=(s=this._unsentIdentifys[r++]).event_id:!("sequence_number"in this._unsentEvents[n])||this._unsentEvents[n].sequence_number<this._unsentIdentifys[r].sequence_number?i=(s=this._unsentEvents[n++]).event_id:o=(s=this._unsentIdentifys[r++]).event_id,t.push(s)}return{eventsToSend:t,maxEventId:i,maxIdentifyId:o}},Ue.prototype.__VERSION__=qe;var $e=function(){this.options=l({},Ce),this._q=[],this._instances={}};$e.prototype.Identify=ce,$e.prototype.Revenue=Re,$e.prototype.getInstance=function(e){e=$(e)?f:e.toLowerCase();var t=this._instances[e];return void 0===t&&(t=new Ue(e),this._instances[e]=t),t},$e.prototype.__VERSION__=qe;var Je=window.amplitude||{},He=new $e;for(var Qe in He._q=Je._q||[],Je._iq)Je._iq.hasOwnProperty(Qe)&&(He.getInstance(Qe)._q=Je._iq[Qe]._q||[]);return He.runQueuedFunctions(),He});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).amplitude=t()}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}var f="$default_instance",p=2,n=4096,a=1e3,h="$identify",g="$groupidentify",v="amplitude_lastEventId",m="amplitude_lastEventTime",y="amplitude_lastIdentifyId",_="amplitude_lastSequenceNumber",w="amplitude_sessionId",b="amplitude_deviceId",I="amplitude_optOut",S="amplitude_userId",i="amplitude_cookie_test",o="revenue_amount",s="$productId",u="$quantity",d="$price",c="$revenueType",E="amp_device_id",O="referrer",x="utm_source",N="utm_medium",k="utm_campaign",T="utm_term",A="utm_content",R=function(e){for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):(127<i&&i<2048?t+=String.fromCharCode(i>>6|192):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128)),t+=String.fromCharCode(63&i|128))}return t},P=function(e){for(var t="",n=0,i=0,r=0,o=0;n<e.length;)(i=e.charCodeAt(n))<128?(t+=String.fromCharCode(i),n++):191<i&&i<224?(r=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&r),n+=2):(r=e.charCodeAt(n+1),o=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&r)<<6|63&o),n+=3);return t},j={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if(window.btoa&&window.atob)return window.btoa(unescape(encodeURIComponent(e)))}catch(e){}return j._encode(e)},_encode:function(e){var t,n,i,r,o,s,a,u="",d=0;for(e=R(e);d<e.length;)r=(t=e.charCodeAt(d++))>>2,o=(3&t)<<4|(n=e.charCodeAt(d++))>>4,s=(15&n)<<2|(i=e.charCodeAt(d++))>>6,a=63&i,isNaN(n)?s=a=64:isNaN(i)&&(a=64),u=u+j._keyStr.charAt(r)+j._keyStr.charAt(o)+j._keyStr.charAt(s)+j._keyStr.charAt(a);return u},decode:function(e){try{if(window.btoa&&window.atob)return decodeURIComponent(escape(window.atob(e)))}catch(e){}return j._decode(e)},_decode:function(e){var t,n,i,r,o,s,a="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)t=j._keyStr.indexOf(e.charAt(u++))<<2|(r=j._keyStr.indexOf(e.charAt(u++)))>>4,n=(15&r)<<4|(o=j._keyStr.indexOf(e.charAt(u++)))>>2,i=(3&o)<<6|(s=j._keyStr.indexOf(e.charAt(u++))),a+=String.fromCharCode(t),64!==o&&(a+=String.fromCharCode(n)),64!==s&&(a+=String.fromCharCode(i));return a=P(a)}},q=Object.prototype.toString;function C(e){switch(q.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!=e?"nan":e&&1===e.nodeType?"element":"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)?"buffer":t(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e))}var U={DISABLE:0,ERROR:1,WARN:2,INFO:3},D=U.WARN,M={error:function(e){D>=U.ERROR&&z(e)},warn:function(e){D>=U.WARN&&z(e)},info:function(e){D>=U.INFO&&z(e)}},z=function(e){try{console.log("[Amplitude] "+e)}catch(e){}},F=function(e){return"string"===C(e)&&e.length>n?e.substring(0,n):e},B=function(e){var t=C(e);if("object"!==t)return M.error("Error: invalid properties format. Expecting Javascript object, received "+t+", ignoring"),{};if(Object.keys(e).length>a)return M.error("Error: too many properties (more than 1000), ignoring"),{};var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=i,o=C(r);"string"!==o&&(r=String(r),M.warn("WARNING: Non-string property key, received type "+o+', coercing to string "'+r+'"'));var s=G(r,e[i]);null!==s&&(n[r]=s)}return n},L=["nan","undefined","function","arguments","regexp","element"],G=function e(t,n){var i=C(n);if(-1!==L.indexOf(i))M.warn('WARNING: Property key "'+t+'" with invalid value type '+i+", ignoring"),n=null;else if("error"===i)n=String(n),M.warn('WARNING: Property key "'+t+'" with value type error, coercing to '+n);else if("array"===i){for(var r=[],o=0;o<n.length;o++){var s=n[o],a=C(s);"array"!==a?"object"===a?r.push(B(s)):r.push(e(t,s)):M.warn("WARNING: Cannot have "+a+" nested in an array property value, skipping")}n=r}else"object"===i&&(n=B(n));return n},K=function(e,t){var n=C(t);if("string"===n)return t;if("date"===n||"number"===n||"boolean"===n)return t=String(t),M.warn("WARNING: Non-string groupName, received type "+n+', coercing to string "'+t+'"'),t;if("array"===n){for(var i=[],r=0;r<t.length;r++){var o=t[r],s=C(o);"array"!==s&&"object"!==s?"string"===s?i.push(o):"date"!==s&&"number"!==s&&"boolean"!==s||(o=String(o),M.warn("WARNING: Non-string groupName, received type "+s+', coercing to string "'+o+'"'),i.push(o)):M.warn("WARNING: Skipping nested "+s+" in array groupName")}return i}M.warn("WARNING: Non-string groupName, received type "+n+". Please use strings or array of strings for groupName")},V=function(e){U.hasOwnProperty(e)&&(D=U[e])},W=M,$=function(e){return!e||0===e.length},J=function(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?void 0:decodeURIComponent(n[1].replace(/\+/g," "))},H=function e(t){if("array"===C(t))for(var n=0;n<t.length;n++)t[n]=e(t[n]);else if("object"===C(t))for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i]));else t=F(t);return t},Q=function(e){var t=C(e);if("object"!==t)return M.error("Error: invalid groups format. Expecting Javascript object, received "+t+", ignoring"),{};var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=i,o=C(r);"string"!==o&&(r=String(r),M.warn("WARNING: Non-string groupType, received type "+o+', coercing to string "'+r+'"'));var s=K(r,e[i]);null!==s&&(n[r]=s)}return n},X=function(e,t,n){return C(e)===n||(M.error("Invalid "+t+" input type. Expected "+n+" but received "+C(e)),!1)},Z=B,Y=function(e,t,n){var i=null!==t?n.expirationDays:-1;if(i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3),i=r}var o=e+"="+t;i&&(o+="; expires="+i.toUTCString()),o+="; path=/",n.domain&&(o+="; domain="+n.domain),n.secure&&(o+="; Secure"),document.cookie=o},ee=function(e){try{for(var t=document.cookie.split(";"),n=null,i=0;i<t.length;i++){for(var r=t[i];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(e)){n=r.substring(e.length,r.length);break}}return n}catch(e){return null}},te={expirationDays:void 0,domain:void 0},ne=function(e){var t,n,i=(t=e,(n=document.createElement("a")).href=t,n.hostname||location.hostname).split("."),r=i[i.length-1],o=[];if(4===i.length&&r===parseInt(r,10))return o;if(i.length<=1)return o;for(var s=i.length-2;0<=s;--s)o.push(i.slice(s).join("."));for(var a=0;a<o.length;++a){var u="__tld_test__",d=o[a],p={domain:"."+d};if(Y(u,1,p),ee(u))return Y(u,null,p),d}return""},ie=function(e){var t="";return te.domain&&(t="."===te.domain.charAt(0)?te.domain.substring(1):te.domain),e+t},re=function(e){var t=ie(e)+"=",n=ee(t);try{if(n)return JSON.parse(j.decode(n))}catch(e){return null}return null},oe=function(e,t){try{return Y(ie(e),j.encode(JSON.stringify(t)),te),!0}catch(e){return!1}},se=function(e){try{return Y(ie(e),null,te),!0}catch(e){return!1}},ae={reset:function(){te={expirationDays:void 0,domain:void 0}},options:function(e){if(0===arguments.length)return te;e=e||{},te.expirationDays=e.expirationDays,te.secure=e.secure;var t=$(e.domain)?"."+ne(window.location.href):e.domain,n=Math.random();te.domain=t,oe("amplitude_test",n);var i=re("amplitude_test");return i&&i===n||(t=null),se("amplitude_test"),te.domain=t,te},get:re,set:oe,remove:se},ue=window.localStorage,de=function(){this.storage=null};de.prototype._cookiesEnabled=function(){var e,t=String(new Date);try{return ae.set(i,t),e=ae.get(i)===t,ae.remove(i),e}catch(e){}return!1},de.prototype.getStorage=function(){if(null!==this.storage)return this.storage;if(this._cookiesEnabled())this.storage=ae;else{var n="amp_cookiestore_";this.storage={_options:{expirationDays:void 0,domain:void 0,secure:!1},reset:function(){this._options={expirationDays:void 0,domain:void 0,secure:!1}},options:function(e){return 0===arguments.length?this._options:(e=e||{},this._options.expirationDays=e.expirationDays||this._options.expirationDays,this._options.domain=e.domain||this._options.domain||window.location.hostname,this._options.secure=e.secure||!1)},get:function(e){try{return JSON.parse(ue.getItem(n+e))}catch(e){}return null},set:function(e,t){try{return ue.setItem(n+e,JSON.stringify(t)),!0}catch(e){}return!1},remove:function(e){try{ue.removeItem(n+e)}catch(e){return!1}}}}return this.storage};var pe="$clearAll",ce=function(){this.userPropertiesOperations={},this.properties=[]};ce.prototype.add=function(e,t){return"number"===C(t)||"string"===C(t)?this._addOperation("$add",e,t):W.error("Unsupported type for value: "+C(t)+", expecting number or string"),this},ce.prototype.append=function(e,t){return this._addOperation("$append",e,t),this},ce.prototype.clearAll=function(){return 0<Object.keys(this.userPropertiesOperations).length?this.userPropertiesOperations.hasOwnProperty(pe)||W.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"):this.userPropertiesOperations[pe]="-",this},ce.prototype.prepend=function(e,t){return this._addOperation("$prepend",e,t),this},ce.prototype.set=function(e,t){return this._addOperation("$set",e,t),this},ce.prototype.setOnce=function(e,t){return this._addOperation("$setOnce",e,t),this},ce.prototype.unset=function(e){return this._addOperation("$unset",e,"-"),this},ce.prototype._addOperation=function(e,t,n){this.userPropertiesOperations.hasOwnProperty(pe)?W.error("This identify already contains a $clearAll operation, skipping operation "+e):-1===this.properties.indexOf(t)?(this.userPropertiesOperations.hasOwnProperty(e)||(this.userPropertiesOperations[e]={}),this.userPropertiesOperations[e][t]=n,this.properties.push(t)):W.error('User property "'+t+'" already used in this identify, skipping operation '+e)};var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function le(e,t){return e(t={exports:{}},t.exports),t.exports}function fe(e){return e&&e.default||e}var he=le(function(s){!function(e){function c(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,i,r,o){return c((s=c(c(t,e),c(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function l(e,t,n,i,r,o,s){return a(t&n|~t&i,e,t,r,o,s)}function f(e,t,n,i,r,o,s){return a(t&i|n&~i,e,t,r,o,s)}function h(e,t,n,i,r,o,s){return a(t^n^i,e,t,r,o,s)}function g(e,t,n,i,r,o,s){return a(n^(t|~i),e,t,r,o,s)}function u(e,t){var n,i,r,o,s;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var a=1732584193,u=-271733879,d=-1732584194,p=271733878;for(n=0;n<e.length;n+=16)u=g(u=g(u=g(u=g(u=h(u=h(u=h(u=h(u=f(u=f(u=f(u=f(u=l(u=l(u=l(u=l(r=u,d=l(o=d,p=l(s=p,a=l(i=a,u,d,p,e[n],7,-680876936),u,d,e[n+1],12,-389564586),a,u,e[n+2],17,606105819),p,a,e[n+3],22,-1044525330),d=l(d,p=l(p,a=l(a,u,d,p,e[n+4],7,-176418897),u,d,e[n+5],12,1200080426),a,u,e[n+6],17,-1473231341),p,a,e[n+7],22,-45705983),d=l(d,p=l(p,a=l(a,u,d,p,e[n+8],7,1770035416),u,d,e[n+9],12,-1958414417),a,u,e[n+10],17,-42063),p,a,e[n+11],22,-1990404162),d=l(d,p=l(p,a=l(a,u,d,p,e[n+12],7,1804603682),u,d,e[n+13],12,-40341101),a,u,e[n+14],17,-1502002290),p,a,e[n+15],22,1236535329),d=f(d,p=f(p,a=f(a,u,d,p,e[n+1],5,-165796510),u,d,e[n+6],9,-1069501632),a,u,e[n+11],14,643717713),p,a,e[n],20,-373897302),d=f(d,p=f(p,a=f(a,u,d,p,e[n+5],5,-701558691),u,d,e[n+10],9,38016083),a,u,e[n+15],14,-660478335),p,a,e[n+4],20,-405537848),d=f(d,p=f(p,a=f(a,u,d,p,e[n+9],5,568446438),u,d,e[n+14],9,-1019803690),a,u,e[n+3],14,-187363961),p,a,e[n+8],20,1163531501),d=f(d,p=f(p,a=f(a,u,d,p,e[n+13],5,-1444681467),u,d,e[n+2],9,-51403784),a,u,e[n+7],14,1735328473),p,a,e[n+12],20,-1926607734),d=h(d,p=h(p,a=h(a,u,d,p,e[n+5],4,-378558),u,d,e[n+8],11,-2022574463),a,u,e[n+11],16,1839030562),p,a,e[n+14],23,-35309556),d=h(d,p=h(p,a=h(a,u,d,p,e[n+1],4,-1530992060),u,d,e[n+4],11,1272893353),a,u,e[n+7],16,-155497632),p,a,e[n+10],23,-1094730640),d=h(d,p=h(p,a=h(a,u,d,p,e[n+13],4,681279174),u,d,e[n],11,-358537222),a,u,e[n+3],16,-722521979),p,a,e[n+6],23,76029189),d=h(d,p=h(p,a=h(a,u,d,p,e[n+9],4,-640364487),u,d,e[n+12],11,-421815835),a,u,e[n+15],16,530742520),p,a,e[n+2],23,-995338651),d=g(d,p=g(p,a=g(a,u,d,p,e[n],6,-198630844),u,d,e[n+7],10,1126891415),a,u,e[n+14],15,-1416354905),p,a,e[n+5],21,-57434055),d=g(d,p=g(p,a=g(a,u,d,p,e[n+12],6,1700485571),u,d,e[n+3],10,-1894986606),a,u,e[n+10],15,-1051523),p,a,e[n+1],21,-2054922799),d=g(d,p=g(p,a=g(a,u,d,p,e[n+8],6,1873313359),u,d,e[n+15],10,-30611744),a,u,e[n+6],15,-1560198380),p,a,e[n+13],21,1309151649),d=g(d,p=g(p,a=g(a,u,d,p,e[n+4],6,-145523070),u,d,e[n+11],10,-1120210379),a,u,e[n+2],15,718787259),p,a,e[n+9],21,-343485551),a=c(a,i),u=c(u,r),d=c(d,o),p=c(p,s);return[a,u,d,p]}function d(e){var t,n="",i=32*e.length;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function i(e){var t,n,i="0123456789abcdef",r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+=i.charAt(t>>>4&15)+i.charAt(15&t);return r}function n(e){return unescape(encodeURIComponent(e))}function r(e){return d(u(p(t=n(e)),8*t.length));var t}function o(e,t){return function(e,t){var n,i,r=p(e),o=[],s=[];for(o[15]=s[15]=void 0,16<r.length&&(r=u(r,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^r[n],s[n]=1549556828^r[n];return i=u(o.concat(p(t)),512+8*t.length),d(u(s.concat(i),640))}(n(e),n(t))}function t(e,t,n){return t?n?o(t,e):i(o(t,e)):n?r(e):i(r(e))}s.exports?s.exports=t:e.md5=t}(e)});module.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})};var ge=Object.freeze({}),ve=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;module.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,i,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))me.call(n,s)&&(r[s]=n[s]);if(ve){i=ve(n);for(var a=0;a<i.length;a++)ye.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r};var _e=Object.freeze({}),we="%[a-f0-9]{2}",be=new RegExp(we,"gi"),Ie=new RegExp("("+we+")+","gi");function Se(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],Se(n),Se(i))}function Ee(t){try{return decodeURIComponent(t)}catch(e){for(var n=t.match(be),i=1;i<n.length;i++)n=(t=Se(n,i).join("")).match(be);return t}}module.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=Ie.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var i=Ee(n[0]);i!==n[0]&&(t[n[0]]=i)}n=Ie.exec(e)}t["%C2"]="�";for(var r=Object.keys(t),o=0;o<r.length;o++){var s=r[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}(t)}};var Oe=Object.freeze({}),xe=fe(ge),Ne=fe(_e);fe(Oe);function ke(e,t){return t.encode?t.strict?xe(e):encodeURIComponent(e):e}var Te=function(i,r){!1===(r=Ne({encode:!0,strict:!0,arrayFormat:"none"},r)).sort&&(r.sort=function(){});var o=function(i){switch(i.arrayFormat){case"index":return function(e,t,n){return null===t?[ke(e,i),"[",n,"]"].join(""):[ke(e,i),"[",ke(n,i),"]=",ke(t,i)].join("")};case"bracket":return function(e,t){return null===t?ke(e,i):[ke(e,i),"[]=",ke(t,i)].join("")};default:return function(e,t){return null===t?ke(e,i):[ke(e,i),"=",ke(t,i)].join("")}}}(r);return i?Object.keys(i).sort(r.sort).map(function(t){var e=i[t];if(void 0===e)return"";if(null===e)return ke(t,r);if(Array.isArray(e)){var n=[];return e.slice().forEach(function(e){void 0!==e&&n.push(o(t,e,n.length))}),n.join("&")}return ke(t,r)+"="+ke(e,r)}).filter(function(e){return 0<e.length}).join("&"):""},Ae=function(e,t){this.url=e,this.data=t||{}};Ae.prototype.send=function(e){if(!!window.XDomainRequest){var t=new window.XDomainRequest;t.open("POST",this.url,!0),t.onload=function(){e(200,t.responseText)},t.onerror=function(){"Request Entity Too Large"===t.responseText?e(413,t.responseText):e(500,t.responseText)},t.ontimeout=function(){},t.onprogress=function(){},t.send(Te(this.data))}else{var n=new XMLHttpRequest;n.open("POST",this.url,!0),n.onreadystatechange=function(){4===n.readyState&&e(n.status,n.responseText)},n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.send(Te(this.data))}};var Re=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};Re.prototype.setProductId=function(e){return"string"!==C(e)?W.error("Unsupported type for productId: "+C(e)+", expecting string"):$(e)?W.error("Invalid empty productId"):this._productId=e,this},Re.prototype.setQuantity=function(e){return"number"!==C(e)?W.error("Unsupported type for quantity: "+C(e)+", expecting number"):this._quantity=parseInt(e),this},Re.prototype.setPrice=function(e){return"number"!==C(e)?W.error("Unsupported type for price: "+C(e)+", expecting number"):this._price=e,this},Re.prototype.setRevenueType=function(e){return"string"!==C(e)?W.error("Unsupported type for revenueType: "+C(e)+", expecting string"):this._revenueType=e,this},Re.prototype.setEventProperties=function(e){return"object"!==C(e)?W.error("Unsupported type for eventProperties: "+C(e)+", expecting object"):this._properties=Z(e),this},Re.prototype._isValidRevenue=function(){return"number"===C(this._price)||(W.error("Invalid revenue, need to set price field"),!1)},Re.prototype._toJSONObject=function(){var e="object"===C(this._properties)?this._properties:{};return null!==this._productId&&(e[s]=this._productId),null!==this._quantity&&(e[u]=this._quantity),null!==this._price&&(e[d]=this._price),null!==this._revenueType&&(e[c]=this._revenueType),e};var Pe=le(function(b,I){!function(r,c){var l="function",e="model",t="name",n="type",i="vendor",o="version",s="architecture",a="console",u="mobile",d="tablet",p="smarttv",f="wearable",h={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:c},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},g={rgx:function(e,t){for(var n,i,r,o,s,a,u=0;u<t.length&&!s;){var d=t[u],p=t[u+1];for(n=i=0;n<d.length&&!s;)if(s=d[n++].exec(e))for(r=0;r<p.length;r++)a=s[++i],"object"==typeof(o=p[r])&&0<o.length?2==o.length?typeof o[1]==l?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?typeof o[1]!==l||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):c:this[o[0]]=a?o[1].call(this,a,o[2]):c:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):c):this[o]=a||c;u+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&0<t[n].length){for(var i=0;i<t[n].length;i++)if(h.has(t[n][i],e))return"?"===n?c:n}else if(h.has(t[n],e))return"?"===n?c:n;return e}},v={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},name:{"Opera Mobile":"Opera Mobi","IE Mobile":"IEMobile"}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},name:{"Windows Phone":"Windows Phone OS"}}}},m={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[t,o],[/(opios)[\/\s]+([\w\.]+)/i],[[t,"Opera Mini"],o],[/\s(opr)\/([\w\.]+)/i],[[t,"Opera"],o],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[t,o],[/(konqueror)\/([\w\.]+)/i],[[t,"Konqueror"],o],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[t,"IE"],o],[/(edge|edgios|edga)\/((\d+)?[\w\.]+)/i],[[t,"Edge"],o],[/(yabrowser)\/([\w\.]+)/i],[[t,"Yandex"],o],[/(puffin)\/([\w\.]+)/i],[[t,"Puffin"],o],[/(focus)\/([\w\.]+)/i],[[t,"Firefox Focus"],o],[/(opt)\/([\w\.]+)/i],[[t,"Opera Touch"],o],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[t,"UCBrowser"],o],[/(comodo_dragon)\/([\w\.]+)/i],[[t,/_/g," "],o],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[t,"Chrome Mobile"],o],[/(micromessenger)\/([\w\.]+)/i],[[t,"WeChat"],o],[/(brave)\/([\w\.]+)/i],[[t,"Brave"],o],[/(qqbrowserlite)\/([\w\.]+)/i],[t,o],[/(QQ)\/([\d\.]+)/i],[t,o],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[t,o],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[t,o],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[t,o],[/(MetaSr)[\/\s]?([\w\.]+)/i],[t],[/(LBBROWSER)/i],[t],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[o,[t,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[o,[t,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[t,o],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[o,[t,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[t,/(.+)/,"$1 WebView"],o],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[t,/(.+(?:g|us))(.+)/,"$1 $2"],o],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[o,[t,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[t,o],[/(dolfin)\/([\w\.]+)/i],[[t,"Dolphin"],o],[/(coast)\/([\w\.]+)/i],[[t,"Opera Coast"],o],[/fxios\/([\w\.-]+)/i],[o,[t,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[o,[t,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[o,t],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[t,"GSA"],o],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[t,[o,g.str,v.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[t,o],[/(navigator|netscape)\/([\w\.-]+)/i],[[t,"Netscape"],o],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[t,o]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[s,"amd64"]],[/(ia32(?=;))/i],[[s,h.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[s,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[s,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[s,/ower/,"",h.lowerize]],[/(sun4\w)[;\)]/i],[[s,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[s,h.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[e,i,[n,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[e,[i,"Apple"],[n,d]],[/(apple\s{0,1}tv)/i],[[e,"Apple TV"],[i,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[i,e,[n,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[e,[i,"Amazon"],[n,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[e,g.str,v.device.amazon.model],[i,"Amazon"],[n,u]],[/android.+aft([bms])\sbuild/i],[e,[i,"Amazon"],[n,p]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[e,i,[n,u]],[/\((ip[honed|\s\w*]+);/i],[e,[i,"Apple"],[n,u]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[i,e,[n,u]],[/\(bb10;\s(\w+)/i],[e,[i,"BlackBerry"],[n,u]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[e,[i,"Asus"],[n,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[i,"Sony"],[e,"Xperia Tablet"],[n,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[e,[i,"Sony"],[n,u]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[i,e,[n,a]],[/android.+;\s(shield)\sbuild/i],[e,[i,"Nvidia"],[n,a]],[/(playstation\s[34portablevi]+)/i],[e,[i,"Sony"],[n,a]],[/(sprint\s(\w+))/i],[[i,g.str,v.device.sprint.vendor],[e,g.str,v.device.sprint.model],[n,u]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[i,e,[n,d]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[i,[e,/_/g," "],[n,u]],[/(nexus\s9)/i],[e,[i,"HTC"],[n,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[e,[i,"Huawei"],[n,u]],[/(microsoft);\s(lumia[\s\w]+)/i],[i,e,[n,u]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[e,[i,"Microsoft"],[n,a]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[i,"Microsoft"],[n,u]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[e,[i,"Motorola"],[n,u]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[e,[i,"Motorola"],[n,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[i,h.trim],[e,h.trim],[n,p]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[i,"Samsung"],[n,p]],[/\(dtv[\);].+(aquos)/i],[e,[i,"Sharp"],[n,p]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[i,"Samsung"],e,[n,d]],[/smart-tv.+(samsung)/i],[i,[n,p],e],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[i,"Samsung"],e,[n,u]],[/sie-(\w*)/i],[e,[i,"Siemens"],[n,u]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[i,"Nokia"],e,[n,u]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[e,[i,"Acer"],[n,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[e,[i,"LG"],[n,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[i,"LG"],e,[n,d]],[/(lg) netcast\.tv/i],[i,e,[n,p]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[e,[i,"LG"],[n,u]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[e,[i,"Lenovo"],[n,d]],[/linux;.+((jolla));/i],[i,e,[n,u]],[/((pebble))app\/[\d\.]+\s/i],[i,e,[n,f]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[i,e,[n,u]],[/crkey/i],[[e,"Chromecast"],[i,"Google"]],[/android.+;\s(glass)\s\d/i],[e,[i,"Google"],[n,f]],[/android.+;\s(pixel c)[\s)]/i],[e,[i,"Google"],[n,d]],[/android.+;\s(pixel( [23])?( xl)?)\s/i],[e,[i,"Google"],[n,u]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[e,/_/g," "],[i,"Xiaomi"],[n,u]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[e,/_/g," "],[i,"Xiaomi"],[n,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[e,[i,"Meizu"],[n,d]],[/(mz)-([\w-]{2,})/i],[[i,"Meizu"],e,[n,u]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[e,[i,"OnePlus"],[n,u]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[e,[i,"RCA"],[n,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[e,[i,"Dell"],[n,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[e,[i,"Verizon"],[n,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[i,"Barnes & Noble"],e,[n,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[e,[i,"NuVision"],[n,d]],[/android.+;\s(k88)\sbuild/i],[e,[i,"ZTE"],[n,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[e,[i,"Swiss"],[n,u]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[e,[i,"Swiss"],[n,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[e,[i,"Zeki"],[n,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[i,"Dragon Touch"],e,[n,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[e,[i,"Insignia"],[n,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[e,[i,"NextBook"],[n,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[i,"Voice"],e,[n,u]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[i,"LvTel"],e,[n,u]],[/android.+;\s(PH-1)\s/i],[e,[i,"Essential"],[n,u]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[e,[i,"Envizen"],[n,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[i,e,[n,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[e,[i,"MachSpeed"],[n,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[i,e,[n,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[e,[i,"Rotor"],[n,d]],[/android.+(KS(.+))\s+build/i],[e,[i,"Amazon"],[n,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[i,e,[n,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[n,h.lowerize],i,e],[/[\s\/\(](smart-?tv)[;\)]/i],[[n,p]],[/(android[\w\.\s\-]{0,9});.+build/i],[e,[i,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[o,[t,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)/i],[[t,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[t,o],[/rv\:([\w\.]{1,9}).+(gecko)/i],[o,t]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[t,o],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[t,g.str,v.os.windows.name],[o,g.str,v.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[t,"Windows"],[o,g.str,v.os.windows.version]],[/\((bb)(10);/i],[[t,"BlackBerry"],o],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[t,o],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[t,"Symbian"],o],[/\((series40);/i],[t],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[t,"Firefox OS"],o],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[t,"Linux"],o],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[t,"Chromium OS"],o],[/(sunos)\s?([\w\.\d]*)/i],[[t,"Solaris"],o],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[t,"Linux"],o],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[t,"iPhone"],[o,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[t,"iPad"],[o,/_/g,"."]],[/(haiku)\s(\w+)/i],[t,o],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[o,/_/g,"."],[t,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[t,"Mac"],[o,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[t,o]]},y=function(e,t){if("object"==typeof e&&(t=e,e=c),!(this instanceof y))return new y(e,t).getResult();var n=e||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),i=t?h.extend(m,t):m;return this.getBrowser=function(){var e={name:c,version:c};return g.rgx.call(e,n,i.browser),e.major=h.major(e.version),e},this.getCPU=function(){var e={architecture:c};return g.rgx.call(e,n,i.cpu),e},this.getDevice=function(){var e={vendor:c,model:c,type:c};return g.rgx.call(e,n,i.device),e},this.getEngine=function(){var e={name:c,version:c};return g.rgx.call(e,n,i.engine),e},this.getOS=function(){var e={name:c,version:c};return g.rgx.call(e,n,i.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};y.VERSION="0.7.19",y.BROWSER={NAME:t,MAJOR:"major",VERSION:o},y.CPU={ARCHITECTURE:s},y.DEVICE={MODEL:e,VENDOR:i,TYPE:n,CONSOLE:a,MOBILE:u,SMARTTV:p,TABLET:d,WEARABLE:f,EMBEDDED:"embedded"},y.ENGINE={NAME:t,VERSION:o},y.OS={NAME:t,VERSION:o},b.exports&&(I=b.exports=y),I.UAParser=y;var _=r&&(r.jQuery||r.Zepto);if(void 0!==_&&!_.ua){var w=new y;_.ua=w.getResult(),_.ua.get=function(){return w.getUA()},_.ua.set=function(e){w.setUA(e);var t=w.getResult();for(var n in t)_.ua[n]=t[n]}}}("object"==typeof window?window:e)}),je=(Pe.UAParser,function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}),qe="5.2.0",Ce={apiEndpoint:"api.amplitude.com",batchEvents:!1,cookieExpiration:3650,cookieName:"amplitude_id",deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:3e4,eventUploadThreshold:30,forceHttps:!0,includeGclid:!1,includeReferrer:!1,includeUtm:!1,language:{language:navigator&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||void 0}.language,logLevel:"WARN",optOut:!1,platform:"Web",savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:18e5,trackingOptions:{city:!0,country:!0,device_model:!0,dma:!0,ip_address:!0,language:!0,os_name:!0,os_version:!0,platform:!0,region:!0,version_name:!0},unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100},Ue=function(e){this._instanceName=$(e)?f:e.toLowerCase(),this._legacyStorageSuffix=this._instanceName===f?"":"_"+this._instanceName,this._unsentEvents=[],this._unsentIdentifys=[],this._ua=new Pe(navigator.userAgent).getResult(),this.options=l({},Ce,{trackingOptions:l({},Ce.trackingOptions)}),this.cookieStorage=(new de).getStorage(),this._q=[],this._sending=!1,this._updateScheduled=!1,this._onInit=[],this._eventId=0,this._identifyId=0,this._lastEventTime=null,this._newSession=!1,this._sequenceNumber=0,this._sessionId=null,this._isInitialized=!1,this._userAgent=navigator&&navigator.userAgent||null};Ue.prototype.Identify=ce,Ue.prototype.Revenue=Re,Ue.prototype.init=function(e,t,n,i){if("string"!==C(e)||$(e))W.error("Invalid apiKey. Please re-initialize with a valid apiKey");else{try{this.options.apiKey=e,this._storageSuffix="_"+e+this._legacyStorageSuffix,De(this.options,n),"string"===C(this.options.logLevel)&&V(this.options.logLevel);var r=Ve(this);if(this._apiPropertiesTrackingOptions=0<Object.keys(r).length?{tracking_options:r}:{},this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie}),this.options.domain=this.cookieStorage.options().domain,this._instanceName===f&&Me(this),ze(this),this.options.deviceId="object"===C(n)&&"string"===C(n.deviceId)&&!$(n.deviceId)&&n.deviceId||this.options.deviceIdFromUrlParam&&this._getDeviceIdFromUrlParam(this._getUrlParams())||this.options.deviceId||je()+"R",this.options.userId="string"===C(t)&&!$(t)&&t||"number"===C(t)&&t.toString()||this.options.userId||null,this.options.saveEvents){this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey);for(var o=0;o<this._unsentEvents.length;o++){var s=this._unsentEvents[o].event_properties,a=this._unsentEvents[o].groups;this._unsentEvents[o].event_properties=Z(s),this._unsentEvents[o].groups=Q(a)}for(var u=0;u<this._unsentIdentifys.length;u++){var d=this._unsentIdentifys[u].user_properties,p=this._unsentIdentifys[u].groups;this._unsentIdentifys[u].user_properties=Z(d),this._unsentIdentifys[u].groups=Q(p)}}var c=(new Date).getTime();(!this._sessionId||!this._lastEventTime||c-this._lastEventTime>this.options.sessionTimeout)&&(this.options.unsetParamsReferrerOnNewSession&&this._unsetUTMParams(),this._newSession=!0,this._sessionId=c,this.options.saveParamsReferrerOncePerSession&&this._trackParamsAndReferrer()),this.options.saveParamsReferrerOncePerSession||this._trackParamsAndReferrer(),this._lastEventTime=c,Be(this),this._sendEventsIfReady()}catch(e){W.error(e)}finally{"function"===C(i)&&i(this)}for(var l=0;l<this._onInit.length;l++)this._onInit[l]();this._onInit=[],this._isInitialized=!0}},Ue.prototype._trackParamsAndReferrer=function(){this.options.includeUtm&&this._initUtmData(),this.options.includeReferrer&&this._saveReferrer(this._getReferrer()),this.options.includeGclid&&this._saveGclid(this._getUrlParams())};var De=function i(r,o){if("object"===C(o)){var e=function(e){if(r.hasOwnProperty(e)){var t=o[e],n=C(r[e]);X(t,e+" option",n)&&("boolean"===n?r[e]=!!t:"string"===n&&!$(t)||"number"===n&&0<t?r[e]=t:"object"===n&&i(r[e],t))}};for(var t in o)o.hasOwnProperty(t)&&e(t)}};Ue.prototype.runQueuedFunctions=function(){for(var e=0;e<this._q.length;e++){var t=this[this._q[e][0]];"function"===C(t)&&t.apply(this,this._q[e].slice(1))}this._q=[]},Ue.prototype._apiKeySet=function(e){return!$(this.options.apiKey)||(W.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+e),!1)},Ue.prototype._loadSavedUnsentEvents=function(e){var t=this._getFromStorage(ue,e),n=this._parseSavedUnsentEventsString(t,e),i=this._getFromStorageLegacy(ue,e),r=this._parseSavedUnsentEventsString(i,e).concat(n);return this._removeFromLegacyStorage(ue,e),this._setInStorage(ue,e,JSON.stringify(r)),r},Ue.prototype._removeFromLegacyStorage=function(e,t){e.removeItem(t+this._legacyStorageSuffix)},Ue.prototype._parseSavedUnsentEventsString=function(e,t){if($(e))return[];if("string"===C(e))try{var n=JSON.parse(e);if("array"===C(n))return n}catch(e){}return W.error("Unable to load "+t+" events. Restart with a new empty queue."),[]},Ue.prototype.isNewSession=function(){return this._newSession},Ue.prototype.onInit=function(e){this._isInitialized?e():this._onInit.push(e)},Ue.prototype.getSessionId=function(){return this._sessionId},Ue.prototype.nextEventId=function(){return this._eventId++,this._eventId},Ue.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},Ue.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},Ue.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},Ue.prototype._sendEventsIfReady=function(e){return 0!==this._unsentCount()&&(this.options.batchEvents?this._unsentCount()>=this.options.eventUploadThreshold?(this.sendEvents(e),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout(function(){this._updateScheduled=!1,this.sendEvents()}.bind(this),this.options.eventUploadPeriodMillis)),!1):(this.sendEvents(e),!0))},Ue.prototype._getFromStorage=function(e,t){return e.getItem(t+this._storageSuffix)},Ue.prototype._getFromStorageLegacy=function(e,t){return e.getItem(t+this._legacyStorageSuffix)},Ue.prototype._setInStorage=function(e,t,n){e.setItem(t+this._storageSuffix,n)};var Me=function(e){var t=e.cookieStorage.get(e.options.cookieName+e._storageSuffix);if("object"!==C(t)&&!("object"===C(t=e.cookieStorage.get(e.options.cookieName+e._legacyStorageSuffix))&&t.deviceId&&t.sessionId&&t.lastEventTime)){var n=function(e){var t=ue.getItem(e);return ue.removeItem(e),t},i="string"===C(e.options.apiKey)&&"_"+e.options.apiKey.slice(0,6)||"",r=n(b+i),o=n(S+i),s=n(I+i);null!=s&&(s="true"===String(s));var a=parseInt(n(w)),u=parseInt(n(m)),d=parseInt(n(v)),p=parseInt(n(y)),c=parseInt(n(_)),l=function(e){return"object"===C(t)&&t[e]};e.options.deviceId=l("deviceId")||r,e.options.userId=l("userId")||o,e._sessionId=l("sessionId")||a||e._sessionId,e._lastEventTime=l("lastEventTime")||u||e._lastEventTime,e._eventId=l("eventId")||d||e._eventId,e._identifyId=l("identifyId")||p||e._identifyId,e._sequenceNumber=l("sequenceNumber")||c||e._sequenceNumber,e.options.optOut=s||!1,t&&void 0!==t.optOut&&null!==t.optOut&&(e.options.optOut="true"===String(t.optOut)),Be(e)}},ze=function(e){var t=e.cookieStorage.get(e.options.cookieName+e._storageSuffix);if("object"===C(t))Fe(e,t);else{var n=e.cookieStorage.get(e.options.cookieName+e._legacyStorageSuffix);"object"===C(n)&&(e.cookieStorage.remove(e.options.cookieName+e._legacyStorageSuffix),Fe(e,n))}},Fe=function(e,t){t.deviceId&&(e.options.deviceId=t.deviceId),t.userId&&(e.options.userId=t.userId),null!==t.optOut&&void 0!==t.optOut&&(e.options.optOut=t.optOut),t.sessionId&&(e._sessionId=parseInt(t.sessionId)),t.lastEventTime&&(e._lastEventTime=parseInt(t.lastEventTime)),t.eventId&&(e._eventId=parseInt(t.eventId)),t.identifyId&&(e._identifyId=parseInt(t.identifyId)),t.sequenceNumber&&(e._sequenceNumber=parseInt(t.sequenceNumber))},Be=function(e){e.cookieStorage.set(e.options.cookieName+e._storageSuffix,{deviceId:e.options.deviceId,userId:e.options.userId,optOut:e.options.optOut,sessionId:e._sessionId,lastEventTime:e._lastEventTime,eventId:e._eventId,identifyId:e._identifyId,sequenceNumber:e._sequenceNumber})};Ue.prototype._initUtmData=function(e,t){e=e||this._getUrlParams(),t=t||this.cookieStorage.get("__utmz");var n,i,r,o,s,a,u,d,p,c,l,f=(i=e,r=(n=t)?"?"+n.split(".").slice(-1)[0].replace(/\|/g,"&"):"",s=(o=function(e,t,n,i){return J(e,t)||J(n,i)})(x,i,"utmcsr",r),a=o(N,i,"utmcmd",r),u=o(k,i,"utmccn",r),d=o(T,i,"utmctr",r),p=o(A,i,"utmcct",r),c={},(l=function(e,t){$(t)||(c[e]=t)})(x,s),l(N,a),l(k,u),l(T,d),l(A,p),c);Le(this,f)},Ue.prototype._unsetUTMParams=function(){var e=new ce;e.unset(O),e.unset(x),e.unset(N),e.unset(k),e.unset(T),e.unset(A),this.identify(e)};var Le=function(e,t){if("object"===C(t)&&0!==Object.keys(t).length){var n=new ce;for(var i in t)t.hasOwnProperty(i)&&(n.setOnce("initial_"+i,t[i]),n.set(i,t[i]));e.identify(n)}};Ue.prototype._getReferrer=function(){return document.referrer},Ue.prototype._getUrlParams=function(){return location.search},Ue.prototype._saveGclid=function(e){var t=J("gclid",e);$(t)||Le(this,{gclid:t})},Ue.prototype._getDeviceIdFromUrlParam=function(e){return J(E,e)},Ue.prototype._getReferringDomain=function(e){if($(e))return null;var t=e.split("/");return 3<=t.length?t[2]:null},Ue.prototype._saveReferrer=function(e){if(!$(e)){var t={referrer:e,referring_domain:this._getReferringDomain(e)};Le(this,t)}},Ue.prototype.saveEvents=function(){try{this._setInStorage(ue,this.options.unsentKey,JSON.stringify(this._unsentEvents))}catch(e){}try{this._setInStorage(ue,this.options.unsentIdentifyKey,JSON.stringify(this._unsentIdentifys))}catch(e){}},Ue.prototype.setDomain=function(e){if(X(e,"domain","string"))try{this.cookieStorage.options({domain:e}),this.options.domain=this.cookieStorage.options().domain,ze(this),Be(this)}catch(e){W.error(e)}},Ue.prototype.setUserId=function(e){try{this.options.userId=null!=e&&""+e||null,Be(this)}catch(e){W.error(e)}},Ue.prototype.setGroup=function(e,t){if(this._apiKeySet("setGroup()")&&X(e,"groupType","string")&&!$(e)){var n={};n[e]=t;var i=(new ce).set(e,t);this._logEvent(h,null,null,i.userPropertiesOperations,n,null,null,null)}},Ue.prototype.setOptOut=function(e){if(X(e,"enable","boolean"))try{this.options.optOut=e,Be(this)}catch(e){W.error(e)}},Ue.prototype.setSessionId=function(e){if(X(e,"sessionId","number"))try{this._sessionId=e,Be(this)}catch(e){W.error(e)}},Ue.prototype.resetSessionId=function(){this.setSessionId((new Date).getTime())},Ue.prototype.regenerateDeviceId=function(){this.setDeviceId(je()+"R")},Ue.prototype.setDeviceId=function(e){if(X(e,"deviceId","string"))try{$(e)||(this.options.deviceId=""+e,Be(this))}catch(e){W.error(e)}},Ue.prototype.setUserProperties=function(e){if(this._apiKeySet("setUserProperties()")&&X(e,"userProperties","object")){var t=H(Z(e));if(0!==Object.keys(t).length){var n=new ce;for(var i in t)t.hasOwnProperty(i)&&n.set(i,t[i]);this.identify(n)}}},Ue.prototype.clearUserProperties=function(){if(this._apiKeySet("clearUserProperties()")){var e=new ce;e.clearAll(),this.identify(e)}};var Ge=function(e,t){for(var n=0;n<t._q.length;n++){var i=e[t._q[n][0]];"function"===C(i)&&i.apply(e,t._q[n].slice(1))}return e};Ue.prototype.identify=function(e,t){if(this._apiKeySet("identify()"))if("object"===C(e)&&e.hasOwnProperty("_q")&&(e=Ge(new ce,e)),e instanceof ce){if(0<Object.keys(e.userPropertiesOperations).length)return this._logEvent(h,null,null,e.userPropertiesOperations,null,null,null,t);"function"===C(t)&&t(0,"No request sent",{reason:"No user property operations"})}else W.error("Invalid identify input type. Expected Identify object but saw "+C(e)),"function"===C(t)&&t(0,"No request sent",{reason:"Invalid identify input type"});else"function"===C(t)&&t(0,"No request sent",{reason:"API key is not set"})},Ue.prototype.groupIdentify=function(e,t,n,i){if(this._apiKeySet("groupIdentify()"))if(X(e,"group_type","string")&&!$(e))if(null!=t)if("object"===C(n)&&n.hasOwnProperty("_q")&&(n=Ge(new ce,n)),n instanceof ce){if(0<Object.keys(n.userPropertiesOperations).length)return this._logEvent(g,null,null,null,r({},e,t),n.userPropertiesOperations,null,i);"function"===C(i)&&i(0,"No request sent",{reason:"No group property operations"})}else W.error("Invalid identify input type. Expected Identify object but saw "+C(n)),"function"===C(i)&&i(0,"No request sent",{reason:"Invalid identify input type"});else"function"===C(i)&&i(0,"No request sent",{reason:"Invalid group name"});else"function"===C(i)&&i(0,"No request sent",{reason:"Invalid group type"});else"function"===C(i)&&i(0,"No request sent",{reason:"API key is not set"})},Ue.prototype.setVersionName=function(e){X(e,"versionName","string")&&(this.options.versionName=e)},Ue.prototype._logEvent=function(e,t,n,i,r,o,s,a){if(ze(this),e)if(this.options.optOut)"function"===C(a)&&a(0,"No request sent",{reason:"optOut is set to true"});else try{var u;u=e===h||e===g?this.nextIdentifyId():this.nextEventId();var d=this.nextSequenceNumber(),p="number"===C(s)?s:(new Date).getTime();(!this._sessionId||!this._lastEventTime||p-this._lastEventTime>this.options.sessionTimeout)&&(this._sessionId=p),this._lastEventTime=p,Be(this),i=i||{},n=l({},n||{},l({},this._apiPropertiesTrackingOptions)),t=t||{},r=r||{},o=o||{};var c={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:p,event_id:u,session_id:this._sessionId||-1,event_type:e,version_name:Ke(this,"version_name")&&this.options.versionName||null,platform:Ke(this,"platform")?this.options.platform:null,os_name:Ke(this,"os_name")&&this._ua.browser.name||null,os_version:Ke(this,"os_version")&&this._ua.browser.major||null,device_model:Ke(this,"device_model")&&this._ua.os.name||null,language:Ke(this,"language")?this.options.language:null,api_properties:n,event_properties:H(Z(t)),user_properties:H(Z(i)),uuid:je(),library:{name:"amplitude-js",version:qe},sequence_number:d,groups:H(Q(r)),group_properties:H(Z(o)),user_agent:this._userAgent};return e===h||e===g?(this._unsentIdentifys.push(c),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push(c),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(a)||"function"!==C(a)||a(0,"No request sent",{reason:"No events to send or upload queued"}),u}catch(e){W.error(e)}else"function"===C(a)&&a(0,"No request sent",{reason:"Missing eventType"})};var Ke=function(e,t){return!!e.options.trackingOptions[t]},Ve=function(e){for(var t=["city","country","dma","ip_address","region"],n={},i=0;i<t.length;i++){var r=t[i];Ke(e,r)||(n[r]=!1)}return n};Ue.prototype._limitEventsQueued=function(e){e.length>this.options.savedMaxCount&&e.splice(0,e.length-this.options.savedMaxCount)},Ue.prototype.logEvent=function(e,t,n){return this.logEventWithTimestamp(e,t,null,n)},Ue.prototype.logEventWithTimestamp=function(e,t,n,i){return this._apiKeySet("logEvent()")?X(e,"eventType","string")?$(e)?("function"===C(i)&&i(0,"No request sent",{reason:"Missing eventType"}),-1):this._logEvent(e,t,null,null,null,null,n,i):("function"===C(i)&&i(0,"No request sent",{reason:"Invalid type for eventType"}),-1):("function"===C(i)&&i(0,"No request sent",{reason:"API key not set"}),-1)},Ue.prototype.logEventWithGroups=function(e,t,n,i){return this._apiKeySet("logEventWithGroups()")?X(e,"eventType","string")?this._logEvent(e,t,null,null,n,null,null,i):("function"===C(i)&&i(0,"No request sent",{reason:"Invalid type for eventType"}),-1):("function"===C(i)&&i(0,"No request sent",{reason:"API key not set"}),-1)},Ue.prototype.logRevenueV2=function(e){if(this._apiKeySet("logRevenueV2()"))if("object"===C(e)&&e.hasOwnProperty("_q")&&(e=Ge(new Re,e)),e instanceof Re){if(e&&e._isValidRevenue())return this.logEvent(o,e._toJSONObject())}else W.error("Invalid revenue input type. Expected Revenue object but saw "+C(e))},Ue.prototype.removeEvents=function(e,t){We(this,"_unsentEvents",e),We(this,"_unsentIdentifys",t)};var We=function(e,t,n){if(!(n<0)){for(var i=[],r=0;r<e[t].length;r++)e[t][r].event_id>n&&i.push(e[t][r]);e[t]=i}};Ue.prototype.sendEvents=function(n){if(this._apiKeySet("sendEvents()"))if(this.options.optOut)"function"===C(n)&&n(0,"No request sent",{reason:"optOut is set to true"});else if(0!==this._unsentCount())if(this._sending)"function"===C(n)&&n(0,"No request sent",{reason:"Request already in progress"});else{this._sending=!0;var e=(this.options.forceHttps?"https":"https:"===window.location.protocol?"https":"http")+"://"+this.options.apiEndpoint,i=Math.min(this._unsentCount(),this.options.uploadBatchSize),t=this._mergeEventsAndIdentifys(i),r=t.maxEventId,o=t.maxIdentifyId,s=JSON.stringify(t.eventsToSend),a=(new Date).getTime(),u={client:this.options.apiKey,e:s,v:p,upload_time:a,checksum:he(p+this.options.apiKey+s+a)},d=this;new Ae(e,u).send(function(e,t){d._sending=!1;try{200===e&&"success"===t?(d.removeEvents(r,o),d.options.saveEvents&&d.saveEvents(),d._sendEventsIfReady(n)||"function"!==C(n)||n(e,t)):413===e?(1===d.options.uploadBatchSize&&d.removeEvents(r,o),d.options.uploadBatchSize=Math.ceil(i/2),d.sendEvents(n)):"function"===C(n)&&n(e,t)}catch(e){}})}else"function"===C(n)&&n(0,"No request sent",{reason:"No events to send"});else"function"===C(n)&&n(0,"No request sent",{reason:"API key not set"})},Ue.prototype._mergeEventsAndIdentifys=function(e){for(var t=[],n=0,i=-1,r=0,o=-1;t.length<e;){var s,a=r>=this._unsentIdentifys.length,u=n>=this._unsentEvents.length;if(u&&a){W.error("Merging Events and Identifys, less events and identifys than expected");break}a?i=(s=this._unsentEvents[n++]).event_id:u?o=(s=this._unsentIdentifys[r++]).event_id:!("sequence_number"in this._unsentEvents[n])||this._unsentEvents[n].sequence_number<this._unsentIdentifys[r].sequence_number?i=(s=this._unsentEvents[n++]).event_id:o=(s=this._unsentIdentifys[r++]).event_id,t.push(s)}return{eventsToSend:t,maxEventId:i,maxIdentifyId:o}},Ue.prototype.__VERSION__=qe;var $e=function(){this.options=l({},Ce),this._q=[],this._instances={}};$e.prototype.Identify=ce,$e.prototype.Revenue=Re,$e.prototype.getInstance=function(e){e=$(e)?f:e.toLowerCase();var t=this._instances[e];return void 0===t&&(t=new Ue(e),this._instances[e]=t),t},$e.prototype.__VERSION__=qe;var Je=window.amplitude||{},He=new $e;for(var Qe in He._q=Je._q||[],Je._iq)Je._iq.hasOwnProperty(Qe)&&(He.getInstance(Qe)._q=Je._iq[Qe]._q||[]);return He.runQueuedFunctions(),He});

@@ -1,2 +0,2 @@

### 5.1.0 (March 28, 2019)
### 5.2.0 (March 28, 2019)

@@ -3,0 +3,0 @@ * Stop warning when null property values are instrumented

{
"name": "amplitude-js",
"author": "Amplitude <support@amplitude.com>",
"version": "5.1.0",
"version": "5.2.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "description": "Javascript library for Amplitude Analytics",

@@ -14,3 +14,3 @@ Amplitude-JavaScript

[5.1.0 - Released on March 28, 2019](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)
[5.2.0 - Released on March 28, 2019](https://github.com/amplitude/Amplitude-JavaScript/releases/latest)

@@ -17,0 +17,0 @@

@@ -136,3 +136,3 @@ import constants from './constants';

var invalidValueTypes = [
'null', 'nan', 'undefined', 'function', 'arguments', 'regexp', 'element'
'nan', 'undefined', 'function', 'arguments', 'regexp', 'element'
];

@@ -154,7 +154,10 @@

var elemType = type(element);
if (elemType === 'array' || elemType === 'object') {
if (elemType === 'array') {
log.warn('WARNING: Cannot have ' + elemType + ' nested in an array property value, skipping');
continue;
} else if (elemType === 'object') {
arrayCopy.push(validateProperties(element));
} else {
arrayCopy.push(validatePropertyValue(key, element));
}
arrayCopy.push(validatePropertyValue(key, element));
}

@@ -161,0 +164,0 @@ value = arrayCopy;

@@ -1,1 +0,1 @@

export default '5.1.0';
export default '5.2.0';

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc