1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[936],{63790:function(e,t,n){var i,r=n(48764).lW;i=function(){"use strict";function e(t){return(e="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})(t)}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(n){t(e,n,i[n])})}return e}var o,s={DEFAULT_INSTANCE:"$default_instance",API_VERSION:2,MAX_STRING_LENGTH:4096,MAX_PROPERTY_KEYS:1e3,IDENTIFY_EVENT:"$identify",GROUP_IDENTIFY_EVENT:"$groupidentify",LAST_EVENT_ID:"amplitude_lastEventId",LAST_EVENT_TIME:"amplitude_lastEventTime",LAST_IDENTIFY_ID:"amplitude_lastIdentifyId",LAST_SEQUENCE_NUMBER:"amplitude_lastSequenceNumber",SESSION_ID:"amplitude_sessionId",DEVICE_ID:"amplitude_deviceId",OPT_OUT:"amplitude_optOut",USER_ID:"amplitude_userId",COOKIE_TEST:"amplitude_cookie_test",REVENUE_EVENT:"revenue_amount",REVENUE_PRODUCT_ID:"$productId",REVENUE_QUANTITY:"$quantity",REVENUE_PRICE:"$price",REVENUE_REVENUE_TYPE:"$revenueType",AMP_DEVICE_ID_PARAM:"amp_device_id",REFERRER:"referrer",UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_CAMPAIGN:"utm_campaign",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content"},a=function(e){for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):i>127&&i<2048?t+=String.fromCharCode(i>>6|192)+String.fromCharCode(63&i|128):t+=String.fromCharCode(i>>12|224)+String.fromCharCode(i>>6&63|128)+String.fromCharCode(63&i|128)}return t},u=function(e){for(var t="",n=0,i=0,r=0;n<e.length;)(i=e.charCodeAt(n))<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(t+=String.fromCharCode((31&i)<<6|63&e.charCodeAt(n+1)),n+=2):(t+=String.fromCharCode((15&i)<<12|(63&e.charCodeAt(n+1))<<6|63&e.charCodeAt(n+2)),n+=3);return t},p={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if(window.btoa&&window.atob)return window.btoa(unescape(encodeURIComponent(e)))}catch(e){}return p._encode(e)},_encode:function(e){var t,n,i,r,o,s,u,c="",d=0;for(e=a(e);d<e.length;)t=e.charCodeAt(d++),n=e.charCodeAt(d++),i=e.charCodeAt(d++),r=t>>2,o=(3&t)<<4|n>>4,s=(15&n)<<2|i>>6,u=63&i,isNaN(n)?s=u=64:isNaN(i)&&(u=64),c=c+p._keyStr.charAt(r)+p._keyStr.charAt(o)+p._keyStr.charAt(s)+p._keyStr.charAt(u);return c},decode:function(e){try{if(window.btoa&&window.atob)return decodeURIComponent(escape(window.atob(e)))}catch(e){}return p._decode(e)},_decode:function(e){var t,n,i,r,o,s,a,c="",d=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");d<e.length;)r=p._keyStr.indexOf(e.charAt(d++)),o=p._keyStr.indexOf(e.charAt(d++)),s=p._keyStr.indexOf(e.charAt(d++)),a=p._keyStr.indexOf(e.charAt(d++)),t=r<<2|o>>4,n=(15&o)<<4|s>>2,i=(3&s)<<6|a,c+=String.fromCharCode(t),64!==s&&(c+=String.fromCharCode(n)),64!==a&&(c+=String.fromCharCode(i));return u(c)}},c=Object.prototype.toString;function d(t){switch(c.call(t)){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===t?"null":void 0===t?"undefined":t!=t?"nan":t&&1===t.nodeType?"element":void 0!==r&&"function"==typeof r.isBuffer&&r.isBuffer(t)?"buffer":(t=t.valueOf?t.valueOf():Object.prototype.valueOf.apply(t),e(t))}var l={DISABLE:0,ERROR:1,WARN:2,INFO:3},h=l.WARN,f={error:function(e){h>=l.ERROR&&g(e)},warn:function(e){h>=l.WARN&&g(e)},info:function(e){h>=l.INFO&&g(e)}},g=function(e){try{console.log("[Amplitude] "+e)}catch(e){}},v=function(e){var t=d(e);if("object"!==t)return f.error("Error: invalid properties format. Expecting Javascript object, received "+t+", ignoring"),{};if(Object.keys(e).length>s.MAX_PROPERTY_KEYS)return f.error("Error: too many properties (more than 1000), ignoring"),{};var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=i,o=d(r);"string"!==o&&(r=String(r),f.warn("WARNING: Non-string property key, received type "+o+', coercing to string "'+r+'"'));var a=_(r,e[i]);null!==a&&(n[r]=a)}return n},m=["nan","function","arguments","regexp","element"],_=function e(t,n){var i=d(n);if(-1!==m.indexOf(i))f.warn('WARNING: Property key "'+t+'" with invali
1d value type '+i+", ignoring"),n=null;else if("undefined"===i)n=null;else if("error"===i)n=String(n),f.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=d(s);if("array"===a){f.warn("WARNING: Cannot have "+a+" nested in an array property value, skipping");continue}"object"===a?r.push(v(s)):r.push(e(t,s))}n=r}else"object"===i&&(n=v(n));return n},y=function(e,t){var n=d(t);if("string"===n)return t;if("date"===n||"number"===n||"boolean"===n)return t=String(t),f.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=d(o);if("array"===s||"object"===s){f.warn("WARNING: Skipping nested "+s+" in array groupName");continue}"string"===s?i.push(o):("date"===s||"number"===s||"boolean"===s)&&(o=String(o),f.warn("WARNING: Non-string groupName, received type "+s+', coercing to string "'+o+'"'),i.push(o))}return i}f.warn("WARNING: Non-string groupName, received type "+n+". Please use strings or array of strings for groupName")},w={setLogLevel:function(e){l.hasOwnProperty(e)&&(h=l[e])},log:f,isEmptyString:function(e){return!e||0===e.length},getQueryParam:function(e,t){var n=RegExp("[\\?&]"+(e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)").exec(t);return null===n?void 0:decodeURIComponent(n[1].replace(/\+/g," "))},truncate:function e(t){if("array"===d(t))for(var n,i=0;i<t.length;i++)t[i]=e(t[i]);else if("object"===d(t))for(var r in t)t.hasOwnProperty(r)&&(t[r]=e(t[r]));else t="string"===d(n=t)&&n.length>s.MAX_STRING_LENGTH?n.substring(0,s.MAX_STRING_LENGTH):n;return t},validateGroups:function(e){var t=d(e);if("object"!==t)return f.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=d(r);"string"!==o&&(r=String(r),f.warn("WARNING: Non-string groupType, received type "+o+', coercing to string "'+r+'"'));var s=y(r,e[i]);null!==s&&(n[r]=s)}return n},validateInput:function(e,t,n){return d(e)===n||(f.error("Invalid "+t+" input type. Expected "+n+" but received "+d(e)),!1)},validateProperties:v},I={set:function(e,t,n){var i=null!==t?n.expirationDays:-1;if(i){var r=new Date;r.setTime(r.getTime()+864e5*i),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},get: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}}},E={expirationDays:void 0,domain:void 0},b=function(e){var t=document.createElement("a");return t.href=e,t.hostname||location.hostname},S=function(e){var t=b(e).split("."),n=t[t.length-1],i=[];if(4===t.length&&n===parseInt(n,10)||t.length<=1)return i;for(var r=t.length-2;r>=0;--r)i.push(t.slice(r).join("."));for(var o=0;o<i.length;++o){var s="__tld_test__",a=i[o],u={domain:"."+a};if(I.set(s,1,u),I.get(s))return I.set(s,null,u),a}return""},N=function(e){var t="";return E.domain&&(t="."===E.domain.charAt(0)?E.domain.substring(1):E.domain),e+t},T=function(e){var t=N(e)+"=",n=I.get(t);try{if(n)return JSON.parse(p.decode(n))}catch(e){}return null},O=function(e,t){try{return I.set(N(e),p.encode(JSON.stringify(t)),E),!0}catch(e){return!1}},x=function(e){try{return I.set(N(e),null,E),!0}catch(e){return!1}},R={reset:function(){E={expirationDays:void 0,domain:void 0}},options:function(e){if(0==arguments.length)return E;e=e||{},E.expirationDays=e.expirationDays,E.secure=e.secure;var t=w.isEmptyString(e.domain)?"."+S(window.location.href):e.domain,n=Math.random();E.domain=t,O("amplitude_test",n);var i=T("amplitude_test");return i&&i===n||(t=null),x("amplitude_test"),E.domain=t,E},get:T,set:O,remove:x};if(function(){var e,t=new Date;try{return window.localStorage.setItem(t,t),e=window.localStorage.getItem(t)===String(t),window.localStorage.removeItem(t),e}catch(e){}return!1}())o=window.localStorage;else if(window.globalStorage)try{o=window.globalStorage[window.location.hostname]}catch(e){}else{var A=document.createElement("div"),k="localStorage";A.style.display="none",document.getElementsByTagName("head")[0].appendChild(A),A.addBehavior&&(A.addBehavior("#default#userdata"),o={length:0,setItem:function(e,t){A.load(k),!A.getAttribute(e)&&this.length++,A.setAttribute(e,t),A.save(k)},getItem:function(e){return A.load(k),A.getAttribute(e)},removeItem:function(e){A.load(k),A.getAttribute(e)&&this.length--,A.removeAttribute(e),A.save(k)},clear:function(){A.load(k);for(var e,t=0;e=A.XMLDocument.documentElement.attributes[t++];)A.removeAttribute(e.name);A.save(k),this.length=0},key:function(e){return A.load(k),A.XMLDocument.documentElement.attributes[e]}},A.load(k),o.length=A.XMLDocument.documentElement.attributes.length)}
1o||(o={length:0,setItem:function(e,t){},getItem:function(e){},removeItem:function(e){},clear:function(){},key:function(e){}});var P=o,U=function(){this.storage=null};U.prototype._cookiesEnabled=function(){var e,t=String(new Date);try{return R.set(s.COOKIE_TEST,t),e=R.get(s.COOKIE_TEST)===t,R.remove(s.COOKIE_TEST),e}catch(e){}return!1},U.prototype.getStorage=function(){if(null!==this.storage)return this.storage;if(this._cookiesEnabled())this.storage=R;else{var e="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(t){try{return JSON.parse(P.getItem(e+t))}catch(e){}return null},set:function(t,n){try{return P.setItem(e+t,JSON.stringify(n)),!0}catch(e){}return!1},remove:function(t){try{P.removeItem(e+t)}catch(e){return!1}}}}return this.storage};var C=function(e,t){var n=e?"?"+e.split(".").slice(-1)[0].replace(/\|/g,"&"):"",i=function(e,t,n,i){return w.getQueryParam(e,t)||w.getQueryParam(n,i)},r=i(s.UTM_SOURCE,t,"utmcsr",n),o=i(s.UTM_MEDIUM,t,"utmcmd",n),a=i(s.UTM_CAMPAIGN,t,"utmccn",n),u=i(s.UTM_TERM,t,"utmctr",n),p=i(s.UTM_CONTENT,t,"utmcct",n),c={},d=function(e,t){w.isEmptyString(t)||(c[e]=t)};return d(s.UTM_SOURCE,r),d(s.UTM_MEDIUM,o),d(s.UTM_CAMPAIGN,a),d(s.UTM_TERM,u),d(s.UTM_CONTENT,p),c},D="$clearAll",M=function(){this.userPropertiesOperations={},this.properties=[]};M.prototype.add=function(e,t){return"number"===d(t)||"string"===d(t)?this._addOperation("$add",e,t):w.log.error("Unsupported type for value: "+d(t)+", expecting number or string"),this},M.prototype.append=function(e,t){return this._addOperation("$append",e,t),this},M.prototype.clearAll=function(){return Object.keys(this.userPropertiesOperations).length>0?this.userPropertiesOperations.hasOwnProperty(D)||w.log.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"):this.userPropertiesOperations[D]="-",this},M.prototype.prepend=function(e,t){return this._addOperation("$prepend",e,t),this},M.prototype.set=function(e,t){return this._addOperation("$set",e,t),this},M.prototype.setOnce=function(e,t){return this._addOperation("$setOnce",e,t),this},M.prototype.unset=function(e){return this._addOperation("$unset",e,"-"),this},M.prototype._addOperation=function(e,t,n){if(this.userPropertiesOperations.hasOwnProperty(D)){w.log.error("This identify already contains a $clearAll operation, skipping operation "+e);return}if(-1!==this.properties.indexOf(t)){w.log.error('User property "'+t+'" already used in this identify, skipping operation '+e);return}this.userPropertiesOperations.hasOwnProperty(e)||(this.userPropertiesOperations[e]={}),this.userPropertiesOperations[e][t]=n,this.properties.push(t)};var q="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function j(e,t){return e(t={exports:{}},t.exports),t.exports}var V=j(function(e){!function(t){function n(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,i,r,o,s){var a;return n((a=n(n(t,e),n(r,s)))<<o|a>>>32-o,i)}function r(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function o(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function s(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}function u(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;var i,u,p,c,d,l=1732584193,h=-271733879,f=-1732584194,g=271733878;for(i=0;i<e.length;i+=16)u=l,p=h,c=f,d=g,l=r(l,h,f,g,e[i],7,-680876936),g=r(g,l,h,f,e[i+1],12,-389564586),f=r(f,g,l,h,e[i+2],17,606105819),h=r(h,f,g,l,e[i+3],22,-1044525330),l=r(l,h,f,g,e[i+4],7,-176418897),g=r(g,l,h,f,e[i+5],12,1200080426),f=r(f,g,l,h,e[i+6],17,-1473231341),h=r(h,f,g,l,e[i+7],22,-45705983),l=r(l,h,f,g,e[i+8],7,1770035416),g=r(g,l,h,f,e[i+9],12,-1958414417),f=r(f,g,l,h,e[i+10],17,-42063),h=r(h,f,g,l,e[i+11],22,-1990404162),l=r(l,h,f,g,e[i+12],7,1804603682),g=r(g,l,h,f,e[i+13],12,-40341101),f=r(f,g,l,h,e[i+14],17,-1502002290),h=r(h,f,g,l,e[i+15],22,1236535329),l=o(l,h,f,g,e[i+1],5,-165796510),g=o(g,l,h,f,e[i+6],9,-1069501632),f=o(f,g,l,h,e[i+11],14,643717713),h=o(h,f,g,l,e[i],20,-373897302),l=o(l,h,f,g,e[i+5],5,-701558691),g=o(g,l,h,f,e[i+10],9,38016083),f=o(f,g,l,h,e[i+15],14,-660478335),h=o(h,f,g,l,e[i+4],20,-405537848),l=o(l,h,f,g,e[i+9],5,568446438),g=o(g,l,h,f,e[i+14],9,-1019803690),f=o(f,g,l,h,e[i+3],14,-187363961),h=o(h,f,g,l,e[i+8],20,1163531501),l=o(l,h,f,g,e[i+13],5,-1444681467),g=o(g,l,h,f,e[i+2],9,-51403784),f=o(f,g,l,h,e[i+7],14,1735328473),h=o(h,f,g,l,e[i+12],20,-1926607734),l=s(l,h,f,g,e[i+5],4,-378558),g=s(g,l,h,f,e[i+8],11,-2022574463),f=s(f,g,l,h,e[i+11],16,1839030562),h=s(h,f,g,l,e[i+14],23,-35309556),l=s(l,h,f,g,e[i+1],4,-1530992060),g=s(g,l,h,f,e[i+4],11,1272893353),f=s(f,g,l,h,e[i+7],16,-155497632),h=s(h,f,g,l,e[i+10],23,-1094730640),l=s(l,h,f,g,e[i+13],4,681279174),g=s(g,l,h,f,e[i],11,-358537222),f=s(f,g,l,h,e[i+3],16,-722521979),h=s(h,f,g,l,e[i+6],23,76029189),l=s(l,h,f,g,e[i+9],4,-640364487),g=s(g,l,h,f,e[i+12],11,-421815835),f=s(f,g,l,h,e[i+15],16,530742520),h=s(h,f,g,l,e[i+2],23,-995338651),l=a(l,h,f,g,e[i],6,-198630844),g=a(g,l,h,f,e[i+7],10,1126891415),f=a(f,g,l,h,e[i+14],15,-1416354905),h=a(h,f,g,l,e[i+5],21,-57434055),l=a(l,h,f,g,e[i+12],
16,1700485571),g=a(g,l,h,f,e[i+3],10,-1894986606),f=a(f,g,l,h,e[i+10],15,-1051523),h=a(h,f,g,l,e[i+1],21,-2054922799),l=a(l,h,f,g,e[i+8],6,1873313359),g=a(g,l,h,f,e[i+15],10,-30611744),f=a(f,g,l,h,e[i+6],15,-1560198380),h=a(h,f,g,l,e[i+13],21,1309151649),l=a(l,h,f,g,e[i+4],6,-145523070),g=a(g,l,h,f,e[i+11],10,-1120210379),f=a(f,g,l,h,e[i+2],15,718787259),h=a(h,f,g,l,e[i+9],21,-343485551),l=n(l,u),h=n(h,p),f=n(f,c),g=n(g,d);return[l,h,f,g]}function p(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 c(e){var t,n=[];for(t=0,n[(e.length>>2)-1]=void 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 d(e){var t,n,i="0123456789abcdef",r="";for(n=0;n<e.length;n+=1)r+=i.charAt((t=e.charCodeAt(n))>>>4&15)+i.charAt(15&t);return r}function l(e){return unescape(encodeURIComponent(e))}function h(e){var t;return p(u(c(t=l(e)),8*t.length))}function f(e,t){return function(e,t){var n,i,r=c(e),o=[],s=[];for(o[15]=s[15]=void 0,r.length>16&&(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(c(t)),512+8*t.length),p(u(s.concat(i),640))}(l(e),l(t))}function g(e,t,n){return t?n?f(t,e):d(f(t,e)):n?h(e):d(h(e))}e.exports?e.exports=g:t.md5=g}(q)}),L=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,z=!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;var i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==i.join(""))return!1;var r={};if("abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},r)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,t){for(var n,i,r=function(e){if(null==e)throw 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]))G.call(n,s)&&(r[s]=n[s]);if(L){i=L(n);for(var a=0;a<i.length;a++)F.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r}:Object.assign,B="%[a-f0-9]{2}",K=RegExp(B,"gi"),W=RegExp("("+B+")+","gi");function Q(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):encodeURIComponent(e):e}var Y={stringify:function(e,t){!1===(t=z({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,i){return null===n?[Q(t,e),"[",i,"]"].join(""):[Q(t,e),"[",Q(i,e),"]=",Q(n,e)].join("")};case"bracket":return function(t,n){return null===n?Q(t,e):[Q(t,e),"[]=",Q(n,e)].join("")};default:return function(t,n){return null===n?Q(t,e):[Q(t,e),"=",Q(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map(function(i){var r=e[i];if(void 0===r)return"";if(null===r)return Q(i,t);if(Array.isArray(r)){var o=[];return r.slice().forEach(function(e){void 0!==e&&o.push(n(i,e,o.length))}),o.join("&")}return Q(i,t)+"="+Q(r,t)}).filter(function(e){return e.length>0}).join("&"):""}},$=function(e,t){this.url=e,this.data=t||{}};$.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(Y.stringify(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(Y.stringify(this.data))}};var X=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};X.prototype.setProductId=function(e){return"string"!==d(e)?w.log.error("Unsupported type for productId: "+d(e)+", expecting string"):w.isEmptyString(e)?w.log.error("Invalid empty productId"):this._productId=e,this},X.prototype.setQuantity=function(e){return"number"!==d(e)?w.log.error("Unsupported type for quantity: "+d(e)+", expecting number"):this._quantity=parseInt(e),this},X.prototype.setPrice=function(e){return"number"!==d(e)?w.log.error("Unsupported type for price: "+d(e)+", expecting number"):this._price=e,this},X.prototype.setRevenueType=function(e){return"string"!==d(e)?w.log.error("Unsupported type for revenueType: "+d(e)+", expecting string"):this._revenueType=e,this},X.prototype.setEventProperties=function(e){return"object"!==d(e)?w.log.error("Unsupported type for eventProperties: "+d(e)+", expecting object"):this._properties=w.validateProperties(e),this},X.prototype._isValidRevenue=function(){return"number"===d(this._price)||(w.log.error("Invalid revenue, need to set price field"),!1)},X.prototype._toJSONObject=function(){var e="object"===d(this._properties)?this._properties:{};return null!==this._productId&&(e[s.REVENUE_PRODUCT_ID]=this._productId),null!==this._quantity&&(e[s.REVENUE_QUANTITY]=this._quantity),null!==this._price&&(e[s.REVENUE_PRICE]=this._price),null!==this._revenueType&&(e[s.REVENUE_REVENUE_TYPE]=this._revenueType),e};var H=j(function(e,t){!function(n,i){var r="function",o="object",s="model",a="name",u="type",p="vendor",c="version",d="architecture",l="console",h="mobile",f="tablet",g="smarttv",v="wearable",m={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]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},_={rgx:function(e,t){for(var n,s,a,u,p,c,d=0;d<t.length&&!p;){var l=t[d],h=t[d+1];for(n=s=0;n<l.length&&!p;)if(p=l[n++].exec(e))for(a=0;a<h.length;a++)c=p[++s],typeof(u=h[a])===o&&u.length>0?2==u.length?typeof u[1]==r?this[u[0]]=u[1].call(this,c):this[u[0]]=u[1]:3==u.length?typeof u[1]!==r||u[1].exec&&u[1].test?this[u[0]]=c?c.replace(u[1],u[2]):void 0:this[u[0]]=c?u[1].call(this,c,u[2]):void 0:4==u.length&&(this[u[0]]=c?u[3].call(this,c.replace(u[1],u[2])):i):this[u]=c||i;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===o&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(m.has(t[n][r],e))return"?"===n?i:n}else if(m.has(t[n],e))return"?"===n?i:n;return e}},y={"Evo Shift 4G":"7373KT"},w={HTC:"APA",Sprint:"Sprint"},I={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"},E={"Windows Phone":"Windows Phone OS"},b={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[a,c],[/(opios)[\/\s]+([\w\.]+)/i],[[a,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[a,"Opera"],c],[/(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],[a,c],[/(konqueror)\/([\w\.]+)/i],[[a,"Konqueror"],c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[a,"IE"],c],[/(edge|edgios|edga)\/((\d+)?[\w\.]+)/i],[[a,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[a,"Yandex"],c],[/(puffin)\/([\w\.]+)/i],[[a,"Puffin"],c],[/(focus)\/([\w\.]+)/i],[[a,"Firefox Focus"],c],[/(opt)\/([\w\.]+)/i],[[a,"Opera Touch"],c],[/((?:[\s\/]
1)uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[a,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[a,"Chrome Mobile"],c],[/(micromessenger)\/([\w\.]+)/i],[[a,"WeChat"],c],[/(brave)\/([\w\.]+)/i],[[a,"Brave"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[a,c],[/(QQ)\/([\d\.]+)/i],[a,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[a,c],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[a,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[a,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[a],[/(LBBROWSER)/i],[a],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[a,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[a,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[a,c],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[a,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[a,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[a,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[a,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[a,c],[/(dolfin)\/([\w\.]+)/i],[[a,"Dolphin"],c],[/(coast)\/([\w\.]+)/i],[[a,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[a,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[a,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,a],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[a,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[a,[c,_.str,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[a,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[a,"Netscape"],c],[/(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\:.
1+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],[a,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,m.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[d,/ower/,"",m.lowerize]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[d,m.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[s,p,[u,f]],[/applecoremedia\/[\w\.]+ \((ipad)/],[s,[p,"Apple"],[u,f]],[/(apple\s{0,1}tv)/i],[[s,"Apple TV"],[p,"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],[p,s,[u,f]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[s,[p,"Amazon"],[u,f]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[s,_.str,{"Fire Phone":["SD","KF"]}],[p,"Amazon"],[u,h]],[/android.+aft([bms])\sbuild/i],[s,[p,"Amazon"],[u,g]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[s,p,[u,h]],[/\((ip[honed|\s\w*]+);/i],[s,[p,"Apple"],[u,h]],[/(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],[p,s,[u,h]],[/\(bb10;\s(\w+)/i],[s,[p,"BlackBerry"],[u,h]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[s,[p,"Asus"],[u,f]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[s,"Xperia Tablet"],[u,f]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[p,"Sony"],[u,h]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,s,[u,l]],[/android.+;\s(shield)\sbuild/i],[s,[p,"Nvidia"],[u,l]],[/(playstation\s[34portablevi]+)/i],[s,[p,"Sony"],[u,l]
vendor: 4,332 bytes, line 1
1],[/(sprint\s(\w+))/i],[[p,_.str,w],[s,_.str,y],[u,h]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[p,s,[u,f]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[s,/_/g," "],[u,h]],[/(nexus\s9)/i],[s,[p,"HTC"],[u,f]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[s,[p,"Huawei"],[u,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,s,[u,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[s,[p,"Microsoft"],[u,l]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[p,"Microsoft"],[u,h]],[/\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],[s,[p,"Motorola"],[u,h]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[s,[p,"Motorola"],[u,f]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,m.trim],[s,m.trim],[u,g]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[p,"Samsung"],[u,g]],[/\(dtv[\);].+(aquos)/i],[s,[p,"Sharp"],[u,g]],[/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],[[p,"Samsung"],s,[u,f]],[/smart-tv.+(samsung)/i],[p,[u,g],s],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[p,"Samsung"],s,[u,h]],[/sie-(\w*)/i],[s,[p,"Siemens"],[u,h]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],s,[u,h]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[s,[p,"Acer"],[u,f]],[/android.+([vl]k\-?\d{3})\s+build/i],[s,[p,"LG"],[u,f]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],s,[u,f]],[/(lg) netcast\.tv/i],[p,s,[u,g]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[s,[p,"LG"],[u,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[s,[p,"Lenovo"],[u,f]],[/linux;.+((jolla));/i],[p,s,[u,h]],[/((pebble))app\/[\d\.]+\s/i],[p,s,[u,v]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,s,[u,h]],[/crkey/i],[[s,"Chromecast"],[p,"Google"]],[/android.+;\s(glass)\s\d/i],[s,[p,"Google"],[u,v]],[/android.+;\s(pixel c)[\s)]/i],[s,[p,"Google"],[u,f]],[/android.+;\s(pixel( [23])?( xl)?)\s/i],[s,[p,"Google"],[u,h]],[/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],[[s,/_/g," "],[p,"Xiaomi"],[u,h]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[s,/_/g," "],[p,"Xiaomi"],[u,f]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[s,[p,"Meizu"],[u,f]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],s,[u,h]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[s,[p,"OnePlus"],[u,h]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[s,[p,"RCA"],[u,f]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[s,[p,"Dell"],[u,f]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[s,[p,"Verizon"],[u,f]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],s,[u,f]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[s,[p,"NuVision"],[u,f]],[/android.+;\s(k88)\sbuild/i],[s,[p,"ZTE"],[u,f]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[s,[p,"Swiss"],[u,h]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[s,[p,"Swiss"],[u,f]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[s,[p,"Zeki"],[u,f]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],s,[u,f]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[s,[p,"Insignia"],[u,f]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[s,[p,"NextBook"],[u,f]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],s,[u,h]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],s,[u,h]],[/android.+;\s(PH-1)\s/i],[s,[p,"Essential"],[u,h]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[s,[p,"Envizen"],[u,f]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,s,[u,f]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[s,[p,"MachSpeed"],[u,f]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,s,[u,f]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[s,[p,"Rotor"],[u,f]],[/android.+(KS(.+))\s+build/i],[s,[p,"Amazon"],[u,f]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,s,[u,f]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;
1\/]|\ssafari)/i],[[u,m.lowerize],p,s],[/[\s\/\(](smart-?tv)[;\)]/i],[[u,g]],[/(android[\w\.\s\-]{0,9});.+build/i],[s,[p,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[a,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)/i],[[a,"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],[a,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,a]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[a,c],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[a,_.str,E],[c,_.str,I]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[a,"Windows"],[c,_.str,I]],[/\((bb)(10);/i],[[a,"BlackBerry"],c],[/(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],[a,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[a,"Symbian"],c],[/\((series40);/i],[a],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[a,"Firefox OS"],c],[/(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],[[a,"Linux"],c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[a,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[a,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[a,"Linux"],c],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[a,"iPhone"],[c,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[a,"iPad"],[c,/_/g,"."]],[/(haiku)\s(\w+)/i],[a,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[a,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[a,"Mac"],[c,/_/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],[a,c]]},S=function(e,t){if("object"==typeof e&&(t=e,e=i),!(this instanceof S))return new S(e,t).getResult();var r=e||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),o=t?m.extend(b,t):b;return this.getBrowser=function(){var e={name:i,version:i};return _.rgx.call(e,r,o.browser),e.major=m.major(e.version),e},this.getCPU=function(){var e={architecture:i};return _.rgx.call(e,r,o.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return _.rgx.call(e,r,o.device),e},this.getEngine=function(){var e={name:i,version:i};return _.rgx.call(e,r,o.engine),e},this.getOS=function(){var e={name:i,version:i};return _.rgx.call(e,r,o.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 r},this.setUA=function(e){return r=e,this},this};S.VERSION="0.7.19",S.BROWSER={NAME:a,MAJOR:"major",VERSION:c},S.CPU={ARCHITECTURE:d},S.DEVICE={MODEL:s,VENDOR:p,TYPE:u,CONSOLE:l,MOBILE:h,SMARTTV:g,TABLET:f,WEARABLE:v,EMBEDDED:"embedded"},S.ENGINE={NAME:a,VERSION:c},S.OS={NAME:a,VERSION:c},e.exports&&(t=e.exports=S),t.UAParser=S;var N=n&&(n.jQuery||n.Zepto);if(void 0!==N&&!N.ua){var T=new S;N.ua=T.getResult(),N.ua.get=function(){return T.getUA()},N.ua.set=function(e){T.setUA(e);var t=T.getResult();for(var n in t)N.ua[n]=t[n]}}}("object"==typeof window?window:q)});H.UAParser;var J=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e)},Z="5.2.2",ee={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},et=function(e){this._instanceName=w.isEmptyString(e)?s.DEFAULT_INSTANCE:e.toLowerCase(),this._legacyStorageSuffix=this._instanceName===s.DEFAULT_INSTANCE?"":"_"+this._instanceName,this._unsentEvents=[],this._unsentIdentifys=[],this._ua=new H(navigator.userAgent).getResult(),this.options=i({},ee,{trackingOptions:i({},ee.trackingOptions)}),this.cookieStorage=new U().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};et.prototype.Identify=M,et.prototype.Revenue=X,et.prototype.init=function(e,t,n,i){if("string"!==d(e)||w.isEmptyString(e)){w.log.error("Invalid apiKey. Please re-initialize with a valid apiKey");return}try{this.options.apiKey=e,this._storageSuffix="_"+e+this._legacyStorageSuffix,en(this.options,n),"string"===d(this.options.logLevel)&&w.setLogLevel(this.options.logLevel);var r=ec(this);if(this._apiPropertiesTrackingOptions=Object.keys(r).length>0?{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===s.DEFAULT_INSTANCE&&ei(this),er(this),this.options.deviceId="object"===d(n)&&"string"===d(n.deviceId)&&!w.isEmptyString(n.deviceId)&&n.deviceId||this.options.deviceIdFromUrlParam&&this._getDeviceIdFromUrlParam(this._getUrlParams())||this.options.deviceId||J()+"R",this.options.userId="string"===d(t)&&!w.isEmptyString(t)&&t||"number"===d(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 a=this._unsentEvents[o].event_properties,u=this._unsentEvents[o].groups;this._unsentEvents[o].event_properties=w.validateProperties(a),this._unsentEvents[o].groups=w.validateGroups(u)}for(var p=0;p<this._unsentIdentifys.length;p++){var c=this._unsentIdentifys[p].user_properties,l=this._unsentIdentifys[p].groups;this._unsentIdentifys[p].user_properties=w.validateProperties(c),this._unsentIdentifys[p].groups=w.validateGroups(l)}}var h=new Date().getTime();(!this._sessionId||!this._lastEventTime||h-this._lastEventTime>this.options.sessionTimeout)&&(this.options.unsetParamsReferrerOnNewSession&&this._unsetUTMParams(),this._newSession=!0,this._sessionId=h,this.options.saveParamsReferrerOncePerSession&&this._trackParamsAndReferrer()),this.options.saveParamsReferrerOncePerSession||this._trackParamsAndReferrer(),this._lastEventTime=h,es(this),this._sendEventsIfReady()}catch(e){w.log.error(e)}finally{"function"===d(i)&&i(this)}for(var f=0;f<this._onInit.length;f++)this._onInit[f]();this._onInit=[],this._isInitialized=!0},et.prototype._trackParamsAndReferrer=function(){this.options.includeUtm&&this._initUtmData(),this.options.includeReferrer&&this._saveReferrer(this._getReferrer()),this.options.includeGclid&&this._saveGclid(this._getUrlParams())};var en=function e(t,n){if("object"===d(n))for(var i in n)n.hasOwnProperty(i)&&function(i){if(t.hasOwnProperty(i)){var r=n[i],o=d(t[i]);w.validateInput(r,i+" option",o)&&("boolean"===o?t[i]=!!r:"string"===o&&!w.isEmptyString(r)||"number"===o&&r>0?t[i]=r:"object"===o&&e(t[i],r))}}(i)};et.prototype.runQueuedFunctions=function(){for(var e=0;e<this._q.length;e++){var t=this[this._q[e][0]];"function"===d(t)&&t.apply(this,this._q[e].slice(1))}this._q=[]},et.prototype._apiKeySet=function(e){return!w.isEmptyString(this.options.apiKey)||(w.log.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+e),!1)},et.prototype._loadSavedUnsentEvents=function(e){var t=this._getFromStorage(P,e),n=this._parseSavedUnsentEventsString(t,e),i=this._getFromStorageLegacy(P,e),r=this._parseSavedUnsentEventsString(i,e).concat(n);return this._removeFromLegacyStorage(P,e),this._setInStorage(P,e,JSON.stringify(r)),r},et.prototype._removeFromLegacyStorage=function(e,t){e.removeItem(t+this._legacyStorageSuffix
1)},et.prototype._parseSavedUnsentEventsString=function(e,t){if(w.isEmptyString(e))return[];if("string"===d(e))try{var n=JSON.parse(e);if("array"===d(n))return n}catch(e){}return w.log.error("Unable to load "+t+" events. Restart with a new empty queue."),[]},et.prototype.isNewSession=function(){return this._newSession},et.prototype.onInit=function(e){this._isInitialized?e():this._onInit.push(e)},et.prototype.getSessionId=function(){return this._sessionId},et.prototype.nextEventId=function(){return this._eventId++,this._eventId},et.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},et.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},et.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},et.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))},et.prototype._getFromStorage=function(e,t){return e.getItem(t+this._storageSuffix
1)},et.prototype._getFromStorageLegacy=function(e,t){return e.getItem(t+this._legacyStorageSuffix)},et.prototype._setInStorage=function(e,t,n){e.setItem(t+this._storageSuffix,n)};var ei=function(e){var t=e.cookieStorage.get(e.options.cookieName+e._storageSuffix);if("object"!==d(t)&&("object"!==d(t=e.cookieStorage.get(e.options.cookieName+e._legacyStorageSuffix))||!t.deviceId||!t.sessionId||!t.lastEventTime)){var n=function(e){var t=P.getItem(e);return P.removeItem(e),t},i="string"===d(e.options.apiKey)&&"_"+e.options.apiKey.slice(0,6)||"",r=n(s.DEVICE_ID+i),o=n(s.USER_ID+i),a=n(s.OPT_OUT+i);null!=a&&(a="true"===String(a));var u=parseInt(n(s.SESSION_ID)),p=parseInt(n(s.LAST_EVENT_TIME)),c=parseInt(n(s.LAST_EVENT_ID)),l=parseInt(n(s.LAST_IDENTIFY_ID)),h=parseInt(n(s.LAST_SEQUENCE_NUMBER)),f=function(e){return"object"===d(t)&&t[e]};e.options.deviceId=f("deviceId")||r,e.options.userId=f("userId")||o,e._sessionId=f("sessionId")||u||e._sessionId,e._lastEventTime=f("lastEventTime")||p||e._lastEventTime,e._eventId=f("eventId")||c||e._eventId,e._identifyId=f("identifyId")||l||e._identifyId,e._sequenceNumber=f("sequenceNumber")||h||e._sequenceNumber,e.options.optOut=a||!1,t&&void 0!==t.optOut&&null!==t.optOut&&(e.options.optOut="true"===String(t.optOut)),es(e)}},er=function(e){var t=e.cookieStorage.get(e.options.cookieName+e._storageSuffix
1);if("object"===d(t))eo(e,t);else{var n=e.cookieStorage.get(e.options.cookieName+e._legacyStorageSuffix);"object"===d(n)&&(e.cookieStorage.remove(e.options.cookieName+e._legacyStorageSuffix),eo(e,n))}},eo=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))},es=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})};et.prototype._initUtmData=function(e,t){e=e||this._getUrlParams(),ea(this,C(t=t||this.cookieStorage.get("__utmz"),e))},et.prototype._unsetUTMParams=function(){var e=new M;e.unset(s.REFERRER),e.unset(s.UTM_SOURCE),e.unset(s.UTM_MEDIUM),e.unset(s.UTM_CAMPAIGN),e.unset(s.UTM_TERM),e.unset(s.UTM_CONTENT),this.identify(e)};var ea=function(e,t){if("object"===d(t)&&0!==Object.keys(t).length){var n=new M;for(var i in t)t.hasOwnProperty(i)&&(n.setOnce("initial_"+i,t[i]),n.set(i,t[i]));e.identify(n)}};et.prototype._getReferrer=function(){return document.referrer},et.prototype._getUrlParams=function(){return location.search},et.prototype._saveGclid=function(e){var t=w.getQueryParam("gclid",e);w.isEmptyString(t)||ea(this,{gclid:t})},et.prototype._getDeviceIdFromUrlParam=function(e){return w.getQueryParam(s.AMP_DEVICE_ID_PARAM,e)},et.prototype._getReferringDomain=function(e){if(w.isEmptyString(e))return null;var t=e.split("/");return t.length>=3?t[2]:null},et.prototype._saveReferrer=function(e){w.isEmptyString(e)||ea(this,{referrer:e,referring_domain:this._getReferringDomain(e)})},et.prototype.saveEvents=function(){try{this._setInStorage(P,this.options.unsentKey,JSON.stringify(this._unsentEvents))}catch(e){}try{this._setInStorage(P,this.options.unsentIdentifyKey,JSON.stringify(this._unsentIdentifys))}catch(e){}},et.prototype.setDomain=function(e){if(w.validateInput(e,"domain","string"))try{this.cookieStorage.options({domain:e}),this.options.domain=this.cookieStorage.options().domain,er(this),es(this)}catch(e){w.log.error(e)}},et.prototype.setUserId=function(e){try{this.options.userId=null!=e&&""+e||null,es(this)}catch(e){w.log.error(e)}},et.prototype.setGroup=function(e,t){if(!(!this._apiKeySet("setGroup()")||!w.validateInput(e,"groupType","string")||w.isEmptyString(e))){var n={};n[e]=t;var i=new M().set(e,t);this._logEvent(s.IDENTIFY_EVENT,null,null,i.userPropertiesOperations,n,null,null,null)}},et.prototype.setOptOut=function(e){if(w.validateInput(e,"enable","boolean"))try{this.options.optOut=e,es(this)}catch(e){w.log.error(e)}},et.prototype.setSessionId=function(e){if(w.validateInput(e,"sessionId","number"))try{this._sessionId=e,es(this)}catch(e){w.log.error(e)}},et.prototype.resetSessionId=function(){this.setSessionId(new Date().getTime())},et.prototype.regenerateDeviceId=function(){this.setDeviceId(J()+"R")},et.prototype.setDeviceId=function(e){if(w.validateInput(e,"deviceId","string"))try{w.isEmptyString(e)||(this.options.deviceId=""+e,es(this))}catch(e){w.log.error(e)}},et.prototype.setUserProperties=function(e){if(this._apiKeySet("setUserProperties()")&&w.validateInput(e,"userProperties","object")){var t=w.truncate(w.validateProperties(e));if(0!==Object.keys(t).length){var n=new M;for(var i in t)t.hasOwnProperty(i)&&n.set(i,t[i]);this.identify(n)}}},et.prototype.clearUserProperties=function(){if(this._apiKeySet("clearUserProperties()")){var e=new M;e.clearAll(),this.identify(e)}};var eu=function(e,t){for(var n=0;n<t._q.length;n++){var i=e[t._q[n][0]];"function"===d(i)&&i.apply(e,t._q[n].slice(1))}return e};et.prototype.identify=function(e,t){if(!this._apiKeySet("identify()")){"function"===d(t)&&t(0,"No request sent",{reason:"API key is not set"});return}if("object"===d(e)&&e.hasOwnProperty("_q")&&(e=eu(new M,e)),e instanceof M){if(Object.keys(e.userPropertiesOperations).length>0)return this._logEvent(s.IDENTIFY_EVENT,null,null,e.userPropertiesOperations,null,null,null,t);"function"===d(t)&&t(0,"No request sent",{reason:"No user property operations"})}else w.log.error("Invalid identify input type. Expected Identify object but saw "+d(e)),"function"===d(t)&&t(0,"No request sent",{reason:"Invalid identify input type"})},et.prototype.groupIdentify=function(e,n,i,r){if(!this._apiKeySet("groupIdentify()")){"function"===d(r)&&r(0,"No request sent",{reason:"API key is not set"});return}if(!w.validateInput(e,"group_type","string")||w.isEmptyString(e)){"function"===d(r)&&r(0,"No request sent",{reason:"Invalid group type"});return}if(null==n){"function"===d(r)&&r(0,"No request sent",{reason:"Invalid group name"});return}if("object"===d(i)&&i.hasOwnProperty("_q")&&(i=eu(new M,i)),i instanceof M){if(Object.keys(i.userPropertiesOperations).length>0)return this._logEvent(s.GROUP_IDENTIFY_EVENT,null,null,null,t({},e,n),i.userPropertiesOperations,null,r);"function"===d(r)&&r(0,"No request sent",{reason:"No group property operations"})}else w.log.error("Invalid identify input type. Expected Identify object but saw "+d(i)),"function"===d(r)&&r(0,"No request sent",{reason:"Invalid identify input type"})}
1,et.prototype.setVersionName=function(e){w.validateInput(e,"versionName","string")&&(this.options.versionName=e)},et.prototype._logEvent=function(e,t,n,r,o,a,u,p){if(er(this),!e){"function"===d(p)&&p(0,"No request sent",{reason:"Missing eventType"});return}if(this.options.optOut){"function"===d(p)&&p(0,"No request sent",{reason:"optOut is set to true"});return}try{c=e===s.IDENTIFY_EVENT||e===s.GROUP_IDENTIFY_EVENT?this.nextIdentifyId():this.nextEventId();var c,l=this.nextSequenceNumber(),h="number"===d(u)?u:new Date().getTime();this._sessionId&&this._lastEventTime&&!(h-this._lastEventTime>this.options.sessionTimeout)||(this._sessionId=h),this._lastEventTime=h,es(this),r=r||{};var f=i({},this._apiPropertiesTrackingOptions);n=i({},n||{},f),t=t||{},o=o||{},a=a||{};var g={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:h,event_id:c,session_id:this._sessionId||-1,event_type:e,version_name:ep(this,"version_name")&&this.options.versionName||null,platform:ep(this,"platform")?this.options.platform:null,os_name:ep(this,"os_name")&&this._ua.browser.name||null,os_version:ep(this,"os_version")&&this._ua.browser.major||null,device_model:ep(this,"device_model")&&this._ua.os.name||null,language:ep(this,"language")?this.options.language:null,api_properties:n,event_properties:w.truncate(w.validateProperties(t)),user_properties:w.truncate(w.validateProperties(r)),uuid:J(),library:{name:"amplitude-js",version:Z},sequence_number:l,groups:w.truncate(w.validateGroups(o)),group_properties:w.truncate(w.validateProperties(a)),user_agent:this._userAgent};return e===s.IDENTIFY_EVENT||e===s.GROUP_IDENTIFY_EVENT?(this._unsentIdentifys.push(g),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push(g),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(p)||"function"!==d(p)||p(0,"No request sent",{reason:"No events to send or upload queued"}),c}catch(e){w.log.error(e)}};var ep=function(e,t){return!!e.options.trackingOptions[t]},ec=function(e){for(var t=["city","country","dma","ip_address","region"],n={},i=0;i<t.length;i++){var r=t[i];ep(e,r)||(n[r]=!1)}return n};et.prototype._limitEventsQueued=function(e){e.length>this.options.savedMaxCount&&e.splice(0,e.length-this.options.savedMaxCount)},et.prototype.logEvent=function(e,t,n){return this.logEventWithTimestamp(e,t,null,n)},et.prototype.logEventWithTimestamp=function(e,t,n,i){return this._apiKeySet("logEvent()")?w.validateInput(e,"eventType","string")?w.isEmptyString(e)?("function"===d(i)&&i(0,"No request sent",{reason:"Missing eventType"}),-1):this._logEvent(e,t,null,null,null,null,n,i):("function"===d(i)&&i(0,"No request sent",{reason:"Invalid type for eventType"}),-1):("function"===d(i)&&i(0,"No request sent",{reason:"API key not set"}),-1)},et.prototype.logEventWithGroups=function(e,t,n,i){return this._apiKeySet("logEventWithGroups()")?w.validateInput(e,"eventType","string")?this._logEvent(e,t,null,null,n,null,null,i):("function"===d(i)&&i(0,"No request sent",{reason:"Invalid type for eventType"}),-1):("function"===d(i)&&i(0,"No request sent",{reason:"API key not set"}),-1)};var ed=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};et.prototype.logRevenueV2=function(e){if(this._apiKeySet("logRevenueV2()")){if("object"===d(e)&&e.hasOwnProperty("_q")&&(e=eu(new X,e)),e instanceof X){if(e&&e._isValidRevenue())return this.logEvent(s.REVENUE_EVENT,e._toJSONObject())}else w.log.error("Invalid revenue input type. Expected Revenue object but saw "+d(e))}},et.prototype.logRevenue=function(e,t,n){return this._apiKeySet("logRevenue()")&&ed(e)&&(void 0===t||ed(t))?this._logEvent(s.REVENUE_EVENT,{},{productId:n,special:"revenue_amount",quantity:t||1,price:e},null,null,null,null,null):-1},et.prototype.removeEvents=function(e,t){el(this,"_unsentEvents",e),el(this,"_unsentIdentifys",t)};var el=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}};et.prototype.sendEvents=function(e){if(!this._apiKeySet("sendEvents()")){"function"===d(e)&&e(0,"No request sent",{reason:"API key not set"});return}if(this.options.optOut){"function"===d(e)&&e(0,"No request sent",{reason:"optOut is set to true"});return}if(0===this._unsentCount()){"function"===d(e)&&e(0,"No request sent",{reason:"No events to send"});return}if(this._sending){"function"===d(e)&&e(0,"No request sent",{reason:"Request already in progress"});return}this._sending=!0;var t=(this.options.forceHttps?"https":"https:"===window.location.protocol?"https":"http")+"://"+this.options.apiEndpoint,n=Math.min(this._unsentCount(),this.options.uploadBatchSize),i=this._mergeEventsAndIdentifys(n),r=i.maxEventId,o=i.maxIdentifyId,a=JSON.stringify(i.eventsToSend),u=new Date().getTime(),p={client:this.options.apiKey,e:a,v:s.API_VERSION,upload_time:u,checksum:V(s.API_VERSION+this.options.apiKey+a+u)},c=this;new $(t,p).send(function(t,i){c._sending=!1;try{200===t&&"success"===i?(c.removeEvents(r,o),c.options.saveEvents&&c.saveEvents(),c._sendEventsIfReady(e)||"function"!==d(e)||e(t,i)):413===t?(1===c.options.uploadBatchSize&&c.removeEvents(r,o),c.options.uploadBatchSize=Math.ceil(n/2),c.sendEvents(e)):"function"===d(e)&&e(t,i)}catch(e){}})},et.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.log.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)?o=(s=this._unsentIdentifys[r++]).event_id:i=(s=this._unsentEvents[n++]).event_id,t.push(s)}return{eventsToSend:t,maxEventId:i,maxIdentifyId:o}},et.prototype.setGlobalUserProperties=function(e){this.setUserProperties(e)},et.prototype.__VERSION__=Z;var eh=function(){this.options=i({},ee),this._q=[],this._instances={}};eh.prototype.Identify=M,eh.prototype.Revenue=X,eh.prototype.getInstance=function(e){e=w.isEmptyString(e)?s.DEFAULT_INSTANCE:e.toLowerCase();var t=this._instances[e];return void 0===t&&(t=new et(e),this._instances[e]=t),t},eh.prototype.runQueuedFunctions=function(){for(var e=0;e<this._q.length;e++){var t=this[this._q[e][0]];"function"===d(t)&&t.apply(this,this._q[e].slice(1))}for(var n in this._q=[],this._instances)this._instances.hasOwnProperty(n)&&this._instances[n].runQueuedFunctions()},eh.prototype.init=function(e,t,n,i){this.getInstance().init(e,t,n,(function(e){this.options=e.options,"function"===d(i)&&i(e)}).bind(this))},eh.prototype.isNewSession=function(){return this.getInstance().isNewSession()},eh.prototype.getSessionId=function(){return this.getInstance().getSessionId()},eh.prototype.nextEventId=function(){return this.getInstance().nextEventId()},eh.prototype.nextIdentifyId=function(){return this.getInstance().nextIdentifyId()},eh.prototype.nextSequenceNumber=function(){return this.getInstance().nextSequenceNumber()},eh.prototype.saveEvents=function(){this.getInstance().saveEvents()},eh.prototype.setDomain=function(e){this.getInstance().setDomain(e)},eh.prototype.setUserId=function(e){this.getInstance().setUserId(e)},eh.prototype.setGroup=function(e,t){this.getInstance().setGroup(e,t)},eh.prototype.setOptOut=function(e){this.getInstance().setOptOut(e)},eh.prototype.regenerateDeviceId=function(){this.getInstance().regenerateDeviceId()},eh.prototype.setDeviceId=function(e){this.getInstance().setDeviceId(e)},eh.prototype.setUserProperties=function(e){this.getInstance().setUserProperties(e)},eh.prototype.clearUserProperties=function(){this.getInstance().clearUserProperties()},eh.prototype.identify=function(e,t){this.getInstance().identify(e,t)},eh.prototype.setVersionName=function(e){this.getInstance().setVersionName(e)},eh.prototype.logEvent=function(e,t,n){return this.getInstance().logEvent(e,t,n)},eh.prototype.logEventWithGroups=function(e,t,n,i){return this.getInstance().logEventWithGroups(e,t,n,i)},eh.prototype.logRevenueV2=function(e){return this.getInstance().logRevenueV2(e)},eh.prototype.logRevenue=function(e,t,n){return this.getInstance().logRevenue(e,t,n)},eh.prototype.removeEvents=function(e,t){this.getInstance().removeEvents(e,t)},eh.prototype.sendEvents=function(e){this.getInstance().sendEvents(e)},eh.prototype.setGlobalUserProperties=function(e){this.getInstance().setUserProperties(e)},eh.prototype.__VERSION__=Z;var ef=window.amplitude||{},eg=new eh;for(var ev in eg._q=ef._q||[],ef._iq)ef._iq.hasOwnProperty(ev)&&(eg.getInstance(ev)._q=ef._iq[ev]._q||[]);return eg.runQueuedFunctions(),eg},e.exports=i()}}]); 2//# sourceMappingURL=50c25a04-392a85967356c194.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.