diff --git a/taplytics.min.js b/taplytics.min.js index e461e112..134cc2ae 100644 --- a/taplytics.min.js +++ b/taplytics.min.js @@ -1,2 +1,2 @@ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=30)}([function(t,e,r){"use strict";var n=0;function i(t){return void 0!==t&&n>=t}e.LOUD=3,e.DEBUG=2,e.LOG=1,e.USER=0,e.setPriorityLevel=function(t){n=t},e.log=function(t,e,r){i(r)&&(console.log("[Taplytics]",t),e&&console.dir(e))},e.time=function(t,r,n,o){if(i(o)){if(n)t=t+", time: "+((new Date).getTime()-n.getTime())+"ms";e.log(t,r,o)}},e.error=function(t,e,r){i(r)&&(console.error("[Taplytics]",t),e&&console.dir(e))}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(4),o=r(74),s=r(0),a=r(5),u=r(27),c=r(77),l=r(8),f=r(78),p=r(79),h=r(10),d=r(26),v="_tl_csid",m="_tl_duuid",y="_tl_suuid",g="_tl_uid",_="_tl_sid",b="_tl_auid",w="_tl_config",x=function(t,e){return t&&e?"tl_sopts_"+t+"_"+e:null};e.config=null,e.hasLoadedData=!1,e.sessionExpirationMin=30,e.start=function(t){return e.updateCookieSession().setDeviceUUID(t)},e.get=function(t,r){if(t){e.tick();var o=e.getCookieSessionID(),a=x(o,t);if(a){if(!(r&&JSON&&JSON.parse))return i.get(a);var u=i.get(a);if(u&&"object"===(void 0===u?"undefined":n(u)))return u;try{return JSON.parse(u)}catch(e){return s.error("Session.get("+t+") failed to parse JSON.",e,s.DEBUG),u}}}},e.tick=function(){return e.updateCookieSession(),e},e.set=function(t,r,n){if(!t||void 0===r||0===(""+r).length)return!1;e.tick();var i=e.getCookieSessionID(),o=x(i,t),s=E(),a=r;return!!o&&(n&&JSON&&JSON.stringify&&(a=JSON.stringify(r)),O(o,a,{expires:s}),!0)},e.unset=function(t){if(!t)return!1;e.tick();var r=e.getCookieSessionID(),n=x(r,t);i.expire(n)},e.updateCookieSession=function(){var t=e.getCookieSessionID();t||(t=o.v4(),e.deleteSessionID());var r=E();return O(v,t,{expires:r}),s.log("Set cookieSessionID to: "+t,{expires:r},s.LOUD),e},e.setDeviceUUID=function(t){return(t=t||e.getDeviceUUID())||(t=o.v4()),O(m,t,{expires:new Date(2147483647e3)}),s.log("Set deviceUUID to: "+t,null,s.DEBUG),e},e.setSessionID=function(t){return O(_,t,{expires:E()}),s.log("Set sessionID to: "+t,null,s.DEBUG),e},e.deleteSessionID=function(){return i.expire(_),e},e.setAppUserID=function(t){return O(b,t,{expires:E()}),s.log("Set appUserID to: "+t,null,s.DEBUG),e},e.deleteAppUserID=function(){return i.expire(b),e},e.deleteSessionUUID=function(){i.expire(y)},e.setUserID=function(t){if(u.userBucketing&&!t){var r="TL_Anon_"+d();s.log("setting anon id",r),i.set(g,r)}else t&&i.set(g,t);return e},e.resetUserID=function(){return u.userBucketing?e.setUserID(null):i.expire(g),e},e.setCachedConfig=function(t){return function(t,e,r,n){if(h())return;i.setJSON(t,e,r,n)}(w,{expVarsNamesHistory:t?t.expVarsNamesHistory:{},expVarsNames:t?t.expVarsNames:{},expVarsIds:t?t.expVarsIds:{},dynamicVars:t?t.dynamicVars:{}},null,!0),e},e.getDeviceUUID=function(){var t=i.get(y);if(t)return t;var r=i.get(m);return t===r&&e.deleteSessionUUID(),r},e.getCookieSessionID=function(){return i.get(v)},e.getAppUserID=function(){return i.get(b)},e.getOrCreateUserID=function(){var t=e.getUserID();return t||(e.setUserID(null),e.getUserID())},e.getUserID=function(){return i.get(g)},e.getSessionID=function(){return i.get(_)},e.getCachedConfig=function(){return i.getJSON(w,!0)},e.getSessionAttributes=function(t){t=t||{};var e=l.toObject(),r=c();return t.sid=this.getSessionID(),t.ad=this.getDeviceUUID(),t.adt="browser",t.ct="browser",t.lv=a.isProduction()?"0":"1",t.sdk=a.obj().sdkVersion,t.rfr=r.referrer,t.exm=r.search.utm_medium,t.exs=r.search.utm_source,t.exc=r.search.utm_campaign,t.ext=r.search.utm_term,t.exct=r.search.utm_content,t.prms={search:r.search,location:e},navigator&&navigator.userAgent&&(t.prms.userAgent=navigator.userAgent),t},e.saveSessionConfig=function(t,r){r&&!t&&(s.log("Using cached config because of server error",null,s.DEBUG),t=e.getCachedConfig()),e.config=t,k=!0,t&&t.app_user_id&&t.session_id&&(e.hasLoadedData=!0,e.setAppUserID(t.app_user_id),e.setSessionID(t.session_id),e.tick()),t&&e.setCachedConfig(t),p.applyVisualEditsFromConfig(t),S.completePromises(!!t),(r||t&&t.app_user_id&&t.session_id)&&D.completePromises(!!t)};var D=new f({name:"sessionConfigPromises"});e.sessionConfigPromise=function(t){if(t)return e.hasLoadedData&&e.config?t(!0):void D.push(t)};var k=!1,S=new f({name:"configPromises"});function O(t,e,r){h()||(r?i.set(t,e,r):i.set(t,e))}function E(){return function(t,e,r){var n=new Date(t);switch(e.toLowerCase()){case"year":n.setFullYear(n.getFullYear()+r);break;case"quarter":n.setMonth(n.getMonth()+3*r);break;case"month":n.setMonth(n.getMonth()+r);break;case"week":n.setDate(n.getDate()+7*r);break;case"day":n.setDate(n.getDate()+r);break;case"hour":n.setTime(n.getTime()+36e5*r);break;case"minute":n.setTime(n.getTime()+6e4*r);break;case"second":n.setTime(n.getTime()+1e3*r);break;default:n=void 0}return n}(new Date,"minute",e.sessionExpirationMin)}e.configPromise=function(t){if(t)return k&&e.config?t(!0):void S.push(t)},e.resetSession=function(){e.deleteSessionID(),e.deleteAppUserID(),e.resetUserID(),e.config=null,e.hasLoadedData=!1}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=e.includes=e.values=e.isObjectLike=e.debounce=e.isString=e.isNumber=void 0;var n=l(r(39)),i=l(r(59)),o=l(r(60)),s=l(r(7)),a=l(r(64)),u=l(r(65)),c=l(r(66));function l(t){return t&&t.__esModule?t:{default:t}}e.isNumber=u.default,e.isString=a.default,e.debounce=c.default,e.isObjectLike=s.default,e.values=o.default,e.includes=i.default,e.isEqual=n.default},function(t,e,r){"use strict";var n=r(31),i=r(5),o=r(0),s=r(16),a=r(17),u=r(10),c=new s,l=!1;e.publicToken=null,e.setPublicToken=function(t){this.publicToken=t},e.get=p(function(t,r,i){if(u())return;var s=v(r),a=d(t);o.log("GET request: "+a,s,o.LOUD),n.get(a).query(s.query).timeout(e.timeout).end(f(a,i))}),e.getJSON=p(function(t,r){if(u())return;var s=function(t){return i.obj().cdnAPI+(t||"")}(t);o.log("GET JSON file request: "+s,null,o.LOUD),n.get(s).timeout(e.timeout).end(f(s,r))}),e.post=p(function(t,e,r,i){if(u())return;var s=v(e,r),a=d(t);o.log("POST request: "+a,s,o.LOUD),n.post(a).query(s.query).set("Content-Type","application/json").send(s.payload).end(f(a,i))}),e.del=p(function(t,r,i,s){if(u())return;var a=v(r,i),c=d(t);o.log("DELETE request: "+c,a,o.LOUD),n.del(c).query(a.query).set("Content-Type","application/json").timeout(e.timeout).send(a.payload).end(f(c,s))});function f(t,e){return function(r,n){r&&o.error("Error: "+t,r,o.DEBUG),e&&"function"==typeof e&&e(r,n),h()}}function p(t){return function(){c.enqueue({requestFunction:t,args:arguments}),l||h()}}function h(){if(!c.isEmpty()){l=!0;var t=c.dequeue();return o.log("Processing request",t,o.DEBUG),t&&t.requestFunction&&t.requestFunction.apply(e,t.args)}l=!1}function d(t,e){return("events"===t&&i.obj().eventsAPI?i.obj().eventsAPI:i.obj().baseAPI)+(t||"")+function(t){return t?"?"+a.stringify(t):""}(e)}function v(t,r){var n={},i={};return t&&"function"==typeof t?n=t():t&&(n=t),r&&"function"==typeof r?i=r():r&&(i=r),n.r_v="0",e.publicToken&&(n.public_token=e.publicToken),{query:n,payload:i}}e.timeout=4e3,e.setTimeout=function(t){var r=1e3*t;r>3e4?(o.error("Timeout is larger then max timeout! timeout: "+t+"s, max timeout: 30s. Using max timeout value.",null,o.USER),e.timeout=3e4):r<1e3?(o.error("Timeout is smaller then the min timeout! timeout: "+t+"s, min timeout: 1s. Using min timeout value.",null,o.USER),e.timeout=1e3):(o.log("Set timeout: "+t+"s",null,o.LOUD),e.timeout=r)}},function(t,e,r){"use strict";var n=r(0),i=r(2),o=r(5),s=r(73),a=r(12).CookieJar,u=r(12).Cookie,c=r(12).CookieAccessInfo,l=r(13).OPT_OUT_KEY;s.supported()||(n.log("Local Storage not supported",null,n.DEBUG),s=null);var f={cookieSessionID:"_tl_csid",deviceUUID:"_tl_duuid",sessionUUID:"_tl_suuid",sessionID:"_tl_sid",appUserID:"_tl_auid",userID:"_tl_uid"};e.getJSON=function(t,r){var o=e.get(t,r);if(!o||!i.isString(o))return o;try{return JSON.parse(o)}catch(t){return n.error("JSON parse cookie value",t,n.DEBUG),null}},e.getLS=function(t){if(!s)return null;var e=s.get(t);return n.log("Got local storage key: "+t+" with value: "+e,null,n.LOUD),e},e.get=function(t,r){if(e.getCookieSupport()&&!r){var n=h(),o=new c(e.getCookieDomain()),a=n.getCookie(t,o);return a&&!i.includes(i.values(f),t)&&(a.value=function(t){try{return decodeURIComponent(atob(t))}catch(e){return t}}(a.value)),a?a.value:void 0}return s?e.getLS(t):r?e.get(t):void 0},e.setJSON=function(t,r,o,s){var a=void 0;try{a=i.isString(r)?r:JSON.stringify(r)}catch(t){n.error("JSON stringify cookie value",t,n.DEBUG)}e.set(t,a,o,s)},e.set=function(t,r,o,a){if(t)if(e.getCookieSupport()&&!a){r=r||"",o=o||{};var c=h(),l=function(t,r,n){i.includes(i.values(f),t)||(o=r,r=btoa(encodeURIComponent(o)));var o;var s=new u(t+"="+r);n&&(s.expiration_date=n);return s.domain=e.getCookieDomain(),s}(t,r,o.expires).toString();document.cookie=l,c.setCookie(l),n.log("Setting cookies to:",l,n.LOUD)}else s?e.setLS(t,r,o):a&&e.set(t,r,o)},e.setLS=function(t,e,r){if(s){var i=r&&r.expires?30:null;s.set(t,e,i),n.log("Setting local storage key: "+t+" to value: "+e,null,n.LOUD)}},e.expire=function(t,r){e.getCookieSupport()&&!r?e.set(t,"-",{expires:new Date}):s?(n.log("Deleting local storage key: "+t,null,n.LOUD),s.remove(t)):r&&e.expire(t)};var p=void 0;function h(){return p||(p=new a,function(){if(p&&document.cookie&&document.cookie.length)for(var t=document.cookie.split(";"),e=0;e=3&&e[1].match(/^(com|edu|gov|net|mil|org|nom|co|ca|name|info|biz)$/i)?"."+e[2]+"."+e[1]+"."+e[0]:e&&e.length>1?"."+e[1]+"."+e[0]:null},e.hasUserOptedOutTracking=function(){var t=e.getLS(l);return null===t?null!=s&&(s.set(l,!1,null),n.log("Setting local storage key: "+l+" to value: "+!1,null,n.LOUD),!1):t},e.getCookies=function(){var t=h(),r=new c(e.getCookieDomain());return t.getCookies(r)},e.removeAllCookies=function(){var t=h(),r=new c(e.getCookieDomain());t.getCookies(r).forEach(function(t){n.log("expiring tl session cookie "+t.name,t,n.DEBUG),e.expire(t.name,!1)}),Object.keys(f).forEach(function(t){e.expire(f[t],!1)})};var d=void 0;e.getCookieSupport=function(){if(void 0!==d)return d;var t=!0;do{var e="gCStest="+Math.floor(1e8*Math.random());if(document.cookie=t?e+"; expires="+new Date("Tue, 01-Jan-2030 00:00:00").toUTCString():e,-1!==document.cookie.indexOf(e))return document.cookie=e+"; expires="+new Date("Sat, 01-Jan-2000 00:00:00 GMT").toUTCString(),d=t,t}while(!(t=!t));return d=null,null}},function(t,e,r){"use strict";e.obj=function(){var t=r(9),e={cdnAPI:"https://cdn-config.taplytics.com/js/"};return"production"===t.env?(e.baseAPI="https://api.taplytics.com/public_api/v1/",e.eventsAPI="https://ping.taplytics.com/public_api/v1/"):"dev"===t.env||"development"===t.env?e.baseAPI="https://dev.taplytics.com/public_api/v1/":"stag"===t.env||"staging"===t.env?e.baseAPI="https://staging.taplytics.com/public_api/v1/":"local"===t.env&&(e.baseAPI="http://localhost:3002/public_api/v1/"),e.eventsFlushQueueTimeout=4e3,e.functionFlushQueueTimeout=500,e.sdkVersion="2.9.0",e.cookieDomain=t&&t.api&&t.api.config&&t.api.config.cookieDomain?t.api.config.cookieDomain:null,e},e.isProduction=function(){return"production"===r(9).env}},function(t,e,r){var n=r(45);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){"use strict";var n={};function i(t){return n[t]?n[t]:"title"===t?document.title:document.location?document.location[t]:null}e.toObject=function(){return{href:i("href"),hash:i("hash"),search:i("search"),host:i("host"),protocol:i("protocol"),pathname:i("pathname"),title:i("title")}},e.attr=function(t){return i(t)},e.listen=function(t){}},function(t,e,r){"use strict";t.exports={api:r(14),init:r(82),isReady:r(83),identify:r(84),track:r(85),page:r(86),reset:r(87),propertiesLoaded:r(88),runningExperiments:r(89),variable:r(90),codeBlock:r(92),featureFlagEnabled:r(93),runningFeatureFlags:r(94),hasUserOptedOutTracking:r(10),optOutTracking:r(95),optInTracking:r(96)}},function(t,e,r){"use strict";var n=r(4);t.exports=function(){return n.hasUserOptedOutTracking()}},function(t,e){var r=Array.isArray;t.exports=r},function(t,e){!function(){"use strict";function t(e,r,n,i){return this instanceof t?(this.domain=e||void 0,this.path=r||"/",this.secure=!!n,this.script=!!i,this):new t(e,r,n,i)}function r(t,e,n){return t instanceof r?t:this instanceof r?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=e||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,t&&this.parse(t,e,n),this):new r(t,e,n)}t.All=Object.freeze(Object.create(null)),e.CookieAccessInfo=t,e.Cookie=r,r.prototype.toString=function(){var t=[this.name+"="+this.value];return this.expiration_date!==1/0&&t.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&t.push("domain="+this.domain),this.path&&t.push("path="+this.path),this.secure&&t.push("secure"),this.noscript&&t.push("httponly"),t.join("; ")},r.prototype.toValueString=function(){return this.name+"="+this.value};var n=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var t,e;return this instanceof i?(t=Object.create(null),this.setCookie=function(n,i,o){var s,a;if(s=(n=new r(n,i,o)).expiration_date<=Date.now(),void 0!==t[n.name]){for(e=t[n.name],a=0;a0?t[0]:void 0}}},function(t,e,r){"use strict";var n=r(37),i=r(38),o=r(19);t.exports={formats:o,parse:i,stringify:n}},function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();e.arrayToObject=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=e.charAt(n):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(n)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},e.compact=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n>>((3&e)<<3)&255;return i}}},function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},function(t,e,r){var n=r(24),i=r(25);t.exports=function(t,e,r){var o=e&&r||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;++a)e[o+a]=s[a];return e||i(s)}},function(t,e,r){"use strict";var n=r(3),i=r(0),o=r(1),s=r(28),a=r(2);function u(t){if(!t||!t.winning_variation)return null;if("baseline"===t.winning_variation)return"b";var e=!0,r=!1,n=void 0;try{for(var i,o=t.variations[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var s=i.value;if(s&&t.winning_variation===s._id)return s}}catch(t){r=!0,n=t}finally{try{!e&&o.return&&o.return()}finally{if(r)throw n}}return null}function c(t){if(0===t.variations.length)return"baseline";var e=Math.random(),r=a.isNumber(t.baseline.distributionPercent)?t.baseline.distributionPercent:0;if(r&&e0){i.log("flushAppQueue: "+t.length,t,i.LOUD);for(var r=0;r=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4==r){var n;try{n=e.status}catch(t){n=0}if(!n){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var n=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.onprogress=n.bind(null,"download"),e.upload&&(e.upload.onprogress=n.bind(null,"upload"))}catch(t){}try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var i=this._header["content-type"],o=this._serializer||l.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=l.serialize["application/json"]),o&&(r=o(r))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&e.setRequestHeader(s,this.header[s]);return this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0!==r?r:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(t){u.prototype[t.toLowerCase()]=function(e,r){var n=new l.Request(t,e);return this._setDefaults(n),r&&n.end(r),n}}),u.prototype.del=u.prototype.delete,l.get=function(t,e,r){var n=l("GET",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},l.head=function(t,e,r){var n=l("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&n.query(e),r&&n.end(r),n},l.options=function(t,e,r){var n=l("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.del=g,l.delete=g,l.patch=function(t,e,r){var n=l("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.post=function(t,e,r){var n=l("POST",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n},l.put=function(t,e,r){var n=l("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&n.send(e),r&&n.end(r),n}},function(t,e,r){function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}t.exports=n,n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!=e.status)return!0;if(t){if(t.code&&~o.indexOf(t.code))return!0;if(t.timeout&&"ECONNABORTED"==t.code)return!0;if(t.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},i.prototype.then=function(t,e){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(t,e){r.end(function(r,n){r?e(r):t(n)})})}return this._fullfilledPromise.then(t,e)},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.use=function(t){return t(this),this},i.prototype.ok=function(t){if("function"!=typeof t)throw Error("Callback required");return this._okCallback=t,this},i.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},i.prototype.get=function(t){return this._header[t.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(t,e){if(n(t)){for(var r in t)this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},i.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},i.prototype.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(t)){for(var r in t)this.field(r,t[r]);return this}if(Array.isArray(e)){for(var i in e)this.field(t,e[i]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=""+e),this._getFormData().append(t,e),this},i.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},i.prototype._auth=function(t,e,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(t+":"+e));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer "+t)}return this},i.prototype.withCredentials=function(t){return void 0==t&&(t=!0),this._withCredentials=t,this},i.prototype.redirects=function(t){return this._maxRedirects=t,this},i.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw TypeError("Invalid argument");return this._maxResponseSize=t,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(t){var e=n(t),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(e&&n(this._data))for(var i in t)this._data[i]=t[i];else"string"==typeof t?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(r||this.type("json"),this)},i.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},i.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.substring(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,e)+"?"+r.join("&")}}},i.prototype._appendQueryString=function(){console.trace("Unsupported")},i.prototype._timeoutError=function(t,e,r){if(!this._aborted){var n=new Error(t+e+"ms exceeded");n.timeout=e,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},i.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(t,e,r){"use strict";var n=r(35);function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=n.type(e);var r=n.params(e);for(var i in r)this[i]=r[i];this.links={};try{t.link&&(this.links=n.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){var e=t/100|0;this.status=this.statusCode=t,this.statusType=e,this.info=1==e,this.ok=2==e,this.redirect=3==e,this.clientError=4==e,this.serverError=5==e,this.error=(4==e||5==e)&&this.toError(),this.accepted=202==t,this.noContent=204==t,this.badRequest=400==t,this.unauthorized=401==t,this.notAcceptable=406==t,this.forbidden=403==t,this.notFound=404==t}},function(t,e,r){"use strict";e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce(function(t,e){var r=e.split(/ *= */),n=r.shift(),i=r.shift();return n&&i&&(t[n]=i),t},{})},e.parseLinks=function(t){return t.split(/ *, */).reduce(function(t,e){var r=e.split(/ *; */),n=r[0].slice(1,-1);return t[r[1].split(/ *= */)[1].slice(1,-1)]=n,t},{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e){function r(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(t){r.prototype[t]=function(){return this._defaults.push({fn:t,arguments:arguments}),this}}),r.prototype._setDefaults=function(t){this._defaults.forEach(function(e){t[e.fn].apply(t,e.arguments)})},t.exports=r},function(t,e,r){"use strict";var n=r(18),i=r(19),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Date.prototype.toISOString,a={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},u=function t(e,r,i,o,s,u,c,l,f,p,h,d){var v=e;if("function"==typeof c)v=c(r,v);else if(v instanceof Date)v=p(v);else if(null===v){if(o)return u&&!d?u(r,a.encoder):r;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||n.isBuffer(v))return u?[h(d?r:u(r,a.encoder))+"="+h(u(v,a.encoder))]:[h(r)+"="+h(String(v))];var m,y=[];if(void 0===v)return y;if(Array.isArray(c))m=c;else{var g=Object.keys(v);m=l?g.sort(l):g}for(var _=0;_0?E+O:""}},function(t,e,r){"use strict";var n=r(18),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},s=function(t,e,r){if(t){var n=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,s=/(\[[^[\]]*])/.exec(n),a=s?n.slice(0,s.index):n,u=[];if(a){if(!r.plainObjects&&i.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var c=0;null!==(s=o.exec(n))&&c=0;--i){var o,s=t[i];if("[]"===s)o=(o=[]).concat(n);else{o=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(a,10);!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=n:o[a]=n}n=o}return n}(u,e,r)}};t.exports=function(t,e){var r=e?n.assign({},e):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:o.delimiter,r.depth="number"==typeof r.depth?r.depth:o.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:o.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:o.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:o.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,""===t||null===t||void 0===t)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof t?function(t,e){for(var r={},n=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=e.parameterLimit===1/0?void 0:e.parameterLimit,a=n.split(e.delimiter,s),u=0;u-1}},function(t,e,r){var n=r(6);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},function(t,e,r){var n=r(50),i=r(51),o=r(52),s=1,a=2;t.exports=function(t,e,r,u,c,l){var f=r&s,p=t.length,h=e.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var v=-1,m=!0,y=r&a?new n:void 0;for(l.set(t,e),l.set(e,t);++v-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(55),i=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,s,a,u){var c=r&i,l=n(t),f=l.length;if(f!=n(e).length&&!c)return!1;for(var p=f;p--;){var h=l[p];if(!(c?h in e:o.call(e,h)))return!1}var d=u.get(t);if(d&&u.get(e))return d==e;var v=!0;u.set(t,e),u.set(e,t);for(var m=c;++p-1}},function(t,e,r){var n=r(61),i=r(63);t.exports=function(t){return null==t?[]:n(t,i(t))}},function(t,e,r){var n=r(62);t.exports=function(t,e){return n(e,function(e){return t[e]})}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r=e||r<0||y&&t-v>=f}function w(){var t=i();if(b(t))return x(t);h=setTimeout(w,function(t){var r=e-(t-d);return y?u(r,f-(t-v)):r}(t))}function x(t){return h=void 0,g&&c?_(t):(c=l=void 0,p)}function D(){var t=i(),r=b(t);if(c=arguments,l=this,d=t,r){if(void 0===h)return function(t){return v=t,h=setTimeout(w,e),m?_(t):p}(d);if(y)return h=setTimeout(w,e),_(d)}return void 0===h&&(h=setTimeout(w,e)),p}return e=o(e)||0,n(r)&&(m=!!r.leading,f=(y="maxWait"in r)?a(o(r.maxWait)||0,e):f,g="trailing"in r?!!r.trailing:g),D.cancel=function(){void 0!==h&&clearTimeout(h),v=0,c=d=l=h=void 0},D.flush=function(){return void 0===h?p:x(i())},D}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(69);t.exports=function(){return n.Date.now()}},function(t,e,r){var n=r(70),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(e,r(71))},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=function(t){return t}},function(t,e){var r,n;r=this,n=function(){var t,e,r="lscache-",n="-cacheexpiration",i=10,o=6e4,s=Math.floor(864e13/o),a="",u=!1;function c(){var e="__lscachetest__";if(void 0!==t)return t;try{if(!localStorage)return!1}catch(t){return!1}try{v(e,"__lscachetest__"),m(e),t=!0}catch(e){t=!(!l(e)||!localStorage.length)}return t}function l(t){return!!(t&&"QUOTA_EXCEEDED_ERR"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name||"QuotaExceededError"===t.name)}function f(){return void 0===e&&(e=null!=window.JSON),e}function p(t){return t+n}function h(){return Math.floor((new Date).getTime()/o)}function d(t){return localStorage.getItem(r+a+t)}function v(t,e){localStorage.removeItem(r+a+t),localStorage.setItem(r+a+t,e)}function m(t){localStorage.removeItem(r+a+t)}function y(t){for(var e=new RegExp("^"+r+a.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&")+"(.*)"),i=localStorage.length-1;i>=0;--i){var o=localStorage.key(i);(o=(o=o&&o.match(e))&&o[1])&&o.indexOf(n)<0&&t(o,p(o))}}function g(t){var e=p(t);m(t),m(e)}function _(t){var e=p(t),r=d(e);if(r){var n=parseInt(r,i);if(h()>=n)return m(t),m(e),!0}}function b(t,e){u&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+t),e&&window.console.warn("lscache - The error was: "+e.message))}return{set:function(t,e,r){if(c()){if("string"!=typeof e){if(!f())return;try{e=JSON.stringify(e)}catch(t){return}}try{v(t,e)}catch(r){if(!l(r))return void b("Could not add item with key '"+t+"'",r);var n,o=[];y(function(t,e){var r=d(e);r=r?parseInt(r,i):s,o.push({key:t,size:(d(t)||"").length,expiration:r})}),o.sort(function(t,e){return e.expiration-t.expiration});for(var a=(e||"").length;o.length&&a>0;)n=o.pop(),b("Cache is full, removing item with key '"+t+"'"),g(n.key),a-=n.size;try{v(t,e)}catch(e){return void b("Could not add item with key '"+t+"', perhaps it's too big?",e)}}r?v(p(t),(h()+r).toString(i)):m(p(t))}},get:function(t){if(!c())return null;if(_(t))return null;var e=d(t);if(!e||!f())return e;try{return JSON.parse(e)}catch(t){return e}},remove:function(t){c()&&g(t)},supported:function(){return c()},flush:function(){c()&&y(function(t){g(t)})},flushExpired:function(){c()&&y(function(t){_(t)})},setBucket:function(t){a=t},resetBucket:function(){a=""},enableWarnings:function(t){u=t}}},void 0!==t&&t.exports?t.exports=n():r.lscache=n()},function(t,e,r){var n=r(75),i=r(26),o=i;o.v1=n,o.v4=i,t.exports=o},function(t,e,r){var n,i,o=r(24),s=r(25),a=0,u=0;t.exports=function(t,e,r){var c=e&&r||0,l=e||[],f=(t=t||{}).node||n,p=void 0!==t.clockseq?t.clockseq:i;if(null==f||null==p){var h=o();null==f&&(f=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var d=void 0!==t.msecs?t.msecs:(new Date).getTime(),v=void 0!==t.nsecs?t.nsecs:u+1,m=d-a+(v-u)/1e4;if(m<0&&void 0===t.clockseq&&(p=p+1&16383),(m<0||d>a)&&void 0===t.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=v,i=p;var y=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var g=d/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var _=0;_<6;++_)l[c+_]=f[_];return e||s(l)}},function(t,e,r){"use strict";t.exports=function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}},function(t,e,r){"use strict";var n=r(17);t.exports=function(){var t={},e=null;return location&&location.search&&location.search.length&&(t=n.parse(location.search.substr(1))),document&&document.referrer&&(e=document.referrer),{referrer:e,search:t}}},function(t,e,r){"use strict";var n=r(0),i=r(3);function o(t){this.promises=[],this.name=t?t.name:null}o.prototype.push=function(t){var e=!1,r=this;function o(r){e||t&&(e=!0,t(r))}this.promises.push(o),setTimeout(function(){e||(n.log(r.name+" promise timed out",null,n.LOG),o())},i.timeout)},o.prototype.completePromises=function(t){var e=!0,r=!1,n=void 0;try{for(var i,o=this.promises[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var s=i.value;s&&s(t)}}catch(t){r=!0,n=t}finally{try{!e&&o.return&&o.return()}finally{if(r)throw n}}this.promises=[]},t.exports=o},function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(1),s=r(80),a=r(81),u=void 0,c=setInterval(function(){document.body&&(l(),clearInterval(c),c=null)},1);function l(){if("undefined"!=typeof MutationObserver&&!u&&document.body){i.log("start DOM Observer",null,i.DEBUG);var t=function(){i.log("DOM mutation observed",null,i.DEBUG),e.applyVisualEditsFromConfig(o.config)};(u=new MutationObserver(n.debounce(t,50,{leading:!0}))).observe(document.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0,attributeFilter:[],characterDataOldValue:!1,attributeOldValue:!1}),t()}}e.applyVisualEditsFromConfig=function(t){if(t&&t.webModifications&&t.webElements){l(),i.log("Apply visual edits from config",null,i.DEBUG);var e=s.buildUrlFromLocation(window.location);t.webModifications.forEach(function(r){if(r){var n=t.webElements.find(function(t){return t._id===r._element});if(!n)return i.error("No web element found for _id: "+r._element+", modification: "+r._id,null,i.DEBUG);n.hostnameMatch&&!s.matchUrlsByDomain(n.url,e)||(n.hostnameMatch||s.matchUrlsByPath(n.url,e))&&a.applyModificationsToDOM({element:n,modification:r})}})}}},function(t,e,r){"use strict";var n=r(2);e.buildUrlFromLocation=function(t){return t&&t.origin?t.origin+(t.pathname?t.pathname:""):null},e.matchUrlsByPath=function(t,r){var n=e.getLocationFromUrl(t),i=e.getLocationFromUrl(r);return n&&i&&n.origin.length&&i.origin.length?e.buildUrlFromLocation(n)===e.buildUrlFromLocation(i):(t=t.replace(/^(http(s?):\/\/)?((www\.)?)/,""))===(r=r.replace(/^(http(s?):\/\/)?((www\.)?)/,""))},e.matchUrlsByDomain=function(t,e){return t=t.replace(/^(http(s?):\/\/)?((www\.)?)/,"").split("/")[0],e=e.replace(/^(http(s?):\/\/)?((www\.)?)/,"").split("/")[0],t=t.split(".").slice(-2),e=e.split(".").slice(-2),n.isEqual(t,e)},e.getLocationFromUrl=function(t){var e=document.createElement("a");return e.href=t,e.origin.length?{origin:e.origin,hostname:e.hostname,pathname:e.pathname,href:e.href}:null}},function(module,exports,__webpack_require__){"use strict";var log=__webpack_require__(0);exports.applyModificationsToDOM=function(_ref){var element=_ref.element,modification=_ref.modification;if(element&&modification){var htmlElements=exports.findElementsBySelector(element.selector),htmlElement=htmlElements&&htmlElements.length?htmlElements[0]:null;if(htmlElement){log.log("Apply modification for web element: "+htmlElement._id+", modification: "+modification._id,null,log.LOUD);var _modification$attribu=modification.attributes,outerHTML=_modification$attribu.outerHTML,script=_modification$attribu.script;if(outerHTML&&htmlElement.outerHTML!==outerHTML&&(htmlElement.outerHTML=outerHTML),script)try{eval(script)}catch(t){log.error("Error on modification script for web element: "+htmlElement._id+", modification: "+modification._id,t,log.DEBUG)}}}},exports.findElementsBySelector=function(t){return document.querySelectorAll(t)}},function(t,e,r){"use strict";var n=r(0),i=(r(8),r(1)),o=r(4),s=r(2),a=!0;t.exports=function(t,e){if(function(t){if(!t||"string"!=typeof t)return!1;return!!t.length}(t)){this.env="production",e&&(this.api.config.startOptions=e,s.isNumber(e.log_level)&&n.setPriorityLevel(e.log_level),!1===e.auto_page_view&&(a=!1),e.env&&(this.env=e.env),e.test_experiments&&(i.test_experiments=e.test_experiments),e.fast_mode&&(this.api.config.fastMode=e.fast_mode),e.cookie_domain&&(this.api.config.cookieDomain=e.cookie_domain),e.user_bucketing&&(this.api.config.userBucketing=e.user_bucketing),s.isNumber(e.timeout)&&this.api.request.setTimeout(e.timeout),e.anon_user&&!i.getUserID()&&i.setUserID(e.anon_user)),this._in={},this._in.token=t,this._in.logger=n,this._in.cookies=o,this.api.init(this);var r=e&&e.config?e.config:void 0,u=r?r.ad:void 0;i.start(u);var c=null;try{s.isString(e.user_attributes)?c=e&&e.user_attributes&&JSON.parse(e.user_attributes):s.isObjectLike(e.user_attributes)&&(c=e.user_attributes)}catch(t){n.error("Error trying to convert user attributes to JSON",t)}return this.api.config.get({dynamicConfig:r,user_attributes:c}),a&&this.page&&this.page(),this.api.events.scheduleTick(),this.api.events.watchLifecycleEvents(),this}n.error("An SDK token is required.",null,n.USER)}},function(t,e,r){"use strict";r(14);t.exports=function(){return!(!this._in||!this._in.token)}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(0),o=r(1);t.exports=function(t){if(!this.isReady())return i.error("Taplytics::identify: you have to call Taplytics.init first.",null,i.USER),this;if(!function(t){return!(!t||t&&"object"!==(void 0===t?"undefined":n(t)))}(t))return i.error("Taplytics::identify: you have to pass in an object with user attributes.",null,i.USER),this;var e=function(t){var e={customData:{}},r=!0,n=!1,i=void 0;try{for(var u,c=Object.keys(t)[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var l=u.value,f=t[l],p=s[l];p?(a.includes(p)&&o.setUserID(f),e[p]=f):e.customData[l]=f}}catch(t){n=!0,i=t}finally{try{!r&&c.return&&c.return()}finally{if(n)throw i}}return e}(t);return this.api.users.post(e,"Taplytics::identify: failed to save the user attributes properly."),this};var s={user_id:"user_id",id:"user_id",userID:"user_id",userId:"user_id",customer_id:"user_id",member_id:"user_id",email:"email",email_address:"email",name:"name",fullName:"name",full_name:"name",firstName:"firstName",first_name:"firstName",lastName:"lastName",last_name:"lastName",avatar:"avatarUrl",avatarUrl:"avatarUrl",avatar_url:"avatarUrl",age:"age",gender:"gender"},a=["user_id","userID","userId"]},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(2);t.exports=function(t,e,r){if(!this.isReady())return n.error("track: you have to call Taplytics.init first.",null,n.USER),!1;if(!t)return n.error("track: you have to specify an event name.",null,n.USER),!1;var s=e,a=r;return o.isObjectLike(e)&&!r&&(s=void 0,a=e),s&&!o.isNumber(s)?(n.error("track: if you're passing a value, it has to be a number.",null,n.USER),!1):(i.tick(),this.api.events.goalAchieved(t,s,a),this)}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(0),o=r(8),s=r(1),a={previous_page_href:"p_p_l_h",previous_page_title:"p_p_l_t",previous_page_location:"p_p_l",previous_page_name:"p_p_n",previous_page_category:"p_p_c",previous_page_view_date:"p_p_v_d"};t.exports=function(t,e,r){if(!this.isReady())return i.error("track: you have to call Taplytics.init first.",null,i.USER),this;var u=t,c=e,l=r;if("object"!==(void 0===e?"undefined":n(e))||r?t&&!e&&(u=void 0,c=t):(u=void 0,c=t,l=e),s.tick(),s.get(a.previous_page_href)){var f=function(){var t=s.get(a.previous_page_view_date);t&&(t=new Date(t));return{category:s.get(a.previous_page_category),name:s.get(a.previous_page_name),href:s.get(a.previous_page_href),title:s.get(a.previous_page_title),location:s.get(a.previous_page_location,JSON&&JSON.parse),view_date:t}}();this.api.events.pageClose(f.category,f.name,f.href,f.title,f.location),this.api.events.timeOnPage(f.category,f.name,f.href,f.title,f.location,f.view_date),s.unset(a.previous_page_category),s.unset(a.previous_page_name),s.unset(a.previous_page_href),s.unset(a.previous_page_title),s.unset(a.previous_page_location),s.unset(a.previous_page_view_date)}return this.api.events.pageView(u,c,l),function(t,e){s.set(a.previous_page_category,t),s.set(a.previous_page_name,e),s.set(a.previous_page_href,o.attr("href")),s.set(a.previous_page_title,o.attr("title")),s.set(a.previous_page_location,o.toObject(),JSON&&JSON.stringify),s.set(a.previous_page_view_date,(new Date).toISOString())}(u,c),this}},function(t,e,r){"use strict";var n=r(0),i=r(1);t.exports=function(){return this.isReady()?(i.tick(),this.api.users.del(),i.resetSession(),this.api.config.get({}),this):(n.error("Taplytics::reset: you have to call Taplytics.init first.",null,n.USER),!1)}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){n.configPromise(t)}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){n.configPromise(function(){var e=n.config&&n.config.expVarsNames?n.config.expVarsNames:{};return t&&t(e)})}},function(t,e,r){"use strict";r(1);var n=r(91);t.exports=function(t,e,r){var i=new n(t,e,r);return i&&i.init?i:null}},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(0),o=r(1),s=r(29);function a(t,e,r){return this.init=!1,t?(this.name=t,this.defaultValue=e,this.value=e,this.updatedBlock=r,this.defaultType=this.getValueType(e),this.defaultType?(this.init=!0,void this.getValueFromConfig()):i.log("Error: Taplytics variables only support Strings, Numbers, and Booleans.",null,i.USER)):i.log("Error: Taplytics variable is missing a name",null,i.USER)}a.prototype.getValueType=function(t){return"string"==typeof t?"String":"number"==typeof t?"Number":"boolean"==typeof t?"Boolean":"object"===(void 0===t?"undefined":n(t))?"JSON":null},a.prototype.stringifyValue=function(t){return"JSON"===this.defaultType?JSON.stringify(t):t},a.prototype.parseValue=function(t){if("JSON"===this.defaultType){if("object"===(void 0===t?"undefined":n(t)))return t;try{return JSON.parse(t)}catch(e){i.log("Error parsing JSON variable",t,i.LOG)}return null}return t},a.prototype.getValueFromConfig=function(){var t=this;function e(){t.updatedBlock&&t.updatedBlock(t.value)}o.configPromise(function(){var r=o.config,n=r&&r.dynamicVars?r.dynamicVars[t.name]:null;if(n){if(n.variableType!==t.defaultType)return e(),i.error("Taplytics variable "+t.name+" default type does not match server: "+n.variableType,null,i.LOG);t.value=t.parseValue(n.value)}else r&&(i.log("New Taplytics Variable: "+t.name,null,i.DEBUG),s.post(t));e()})},t.exports=a},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(29);t.exports=function(t,e){if(!t)return n.error("No name to run code block",null,n.USER);i.configPromise(function(){var r=i.config;if(r){var s=r.dynamicVars?r.dynamicVars[t]:null;if(s){if("Code Block"!==s.variableType)return n.error("Taplytics code block "+t+" default type does not match server: "+s.variableType,null,n.LOG);e&&s.value&&e()}else n.log("New Taplytics Code Block: "+t,null,n.DEBUG),o.post({name:t,defaultType:"Code Block",defaultValue:!1})}})}},function(t,e,r){"use strict";var n=r(0),i=r(1);t.exports=function(t){if(!t)return n.error("No key to return feature flag enabled",null,n.USER),!1;var e=i.config;if(!e||!e.ff)return!1;var r=e.ff[t];return r&&r.enabled}},function(t,e,r){"use strict";var n=r(1),i=r(2);t.exports=function(t){n.configPromise(function(){var e=n.config&&n.config.ff?n.config.ff:{},r={};return i.values(e).forEach(function(t){t.enabled&&(r[t.key]=t.name)}),t&&t(r)})}},function(t,e,r){"use strict";r(0);var n=r(4),i=r(13).OPT_OUT_KEY;t.exports=function(){return n.setLS(i,!0),n.removeAllCookies(),this}},function(t,e,r){"use strict";var n=r(4),i=r(13).OPT_OUT_KEY;t.exports=function(){return n.hasUserOptedOutTracking()&&(n.setLS(i,!1),this.init(this._in.token,this.api.config.startOptions)),this}}]); +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}([function(e,t,r){"use strict";var n=0;function i(e){return void 0!==e&&n>=e}t.LOUD=3,t.DEBUG=2,t.LOG=1,t.USER=0,t.setPriorityLevel=function(e){n=e},t.log=function(e,t,r){i(r)&&(console.log("[Taplytics]",e),t&&console.dir(t))},t.time=function(e,r,n,o){if(i(o)){if(n)e=e+", time: "+((new Date).getTime()-n.getTime())+"ms";t.log(e,r,o)}},t.error=function(e,t,r){i(r)&&(console.error("[Taplytics]",e),t&&console.dir(t))}},function(e,t,r){"use strict";var n="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},i=r(4),o=r(75),s=r(0),a=r(5),u=r(27),c=r(78),l=r(8),f=r(79),p=r(80),h=r(10),d=r(26),v="_tl_csid",m="_tl_duuid",y="_tl_suuid",g="_tl_uid",_="_tl_sid",b="_tl_auid",w="_tl_config",x=function(e,t){return e&&t?"tl_sopts_"+e+"_"+t:null};t.config=null,t.hasLoadedData=!1,t.sessionExpirationMin=30,t.start=function(e){return t.updateCookieSession().setDeviceUUID(e)},t.get=function(e,r){if(e){t.tick();var o=t.getCookieSessionID(),a=x(o,e);if(a){if(!(r&&JSON&&JSON.parse))return i.get(a);var u=i.get(a);if(u&&"object"===(void 0===u?"undefined":n(u)))return u;try{return JSON.parse(u)}catch(t){return s.error("Session.get("+e+") failed to parse JSON.",t,s.DEBUG),u}}}},t.tick=function(){return t.updateCookieSession(),t},t.set=function(e,r,n){if(!e||void 0===r||0===(""+r).length)return!1;t.tick();var i=t.getCookieSessionID(),o=x(i,e),s=E(),a=r;return!!o&&(n&&JSON&&JSON.stringify&&(a=JSON.stringify(r)),O(o,a,{expires:s}),!0)},t.unset=function(e){if(!e)return!1;t.tick();var r=t.getCookieSessionID(),n=x(r,e);i.expire(n)},t.updateCookieSession=function(){var e=t.getCookieSessionID();e||(e=o.v4(),t.deleteSessionID());var r=E();return O(v,e,{expires:r}),s.log("Set cookieSessionID to: "+e,{expires:r},s.LOUD),t},t.setDeviceUUID=function(e){return(e=e||t.getDeviceUUID())||(e=o.v4()),O(m,e,{expires:new Date(2147483647e3)}),s.log("Set deviceUUID to: "+e,null,s.DEBUG),t},t.setSessionID=function(e){return O(_,e,{expires:E()}),s.log("Set sessionID to: "+e,null,s.DEBUG),t},t.deleteSessionID=function(){return i.expire(_),t},t.setAppUserID=function(e){return O(b,e,{expires:E()}),s.log("Set appUserID to: "+e,null,s.DEBUG),t},t.deleteAppUserID=function(){return i.expire(b),t},t.deleteSessionUUID=function(){i.expire(y)},t.setUserID=function(e){if(u.userBucketing&&!e){var r="TL_Anon_"+d();s.log("setting anon id",r),i.set(g,r)}else e&&i.set(g,e);return t},t.resetUserID=function(){return u.userBucketing?t.setUserID(null):i.expire(g),t},t.setCachedConfig=function(e){return function(e,t,r,n){if(h())return;i.setJSON(e,t,r,n)}(w,{expVarsNamesHistory:e?e.expVarsNamesHistory:{},expVarsNames:e?e.expVarsNames:{},expVarsIds:e?e.expVarsIds:{},dynamicVars:e?e.dynamicVars:{}},null,!0),t},t.getDeviceUUID=function(){var e=i.get(y);if(e)return e;var r=i.get(m);return e===r&&t.deleteSessionUUID(),r},t.getCookieSessionID=function(){return i.get(v)},t.getAppUserID=function(){return i.get(b)},t.getOrCreateUserID=function(){var e=t.getUserID();return e||(t.setUserID(null),t.getUserID())},t.getUserID=function(){return i.get(g)},t.getSessionID=function(){return i.get(_)},t.getCachedConfig=function(){return i.getJSON(w,!0)},t.getSessionAttributes=function(e){e=e||{};var t=l.toObject(),r=c();return e.sid=this.getSessionID(),e.ad=this.getDeviceUUID(),e.adt="browser",e.ct="browser",e.lv=a.isProduction()?"0":"1",e.sdk=a.obj().sdkVersion,e.rfr=r.referrer,e.ub=u.userBucketing,e.exm=r.search.utm_medium,e.exs=r.search.utm_source,e.exc=r.search.utm_campaign,e.ext=r.search.utm_term,e.exct=r.search.utm_content,e.prms={search:r.search,location:t},navigator&&navigator.userAgent&&(e.prms.userAgent=navigator.userAgent),e},t.saveSessionConfig=function(e,r){r&&!e&&(s.log("Using cached config because of server error",null,s.DEBUG),e=t.getCachedConfig()),t.config=e,k=!0,e&&e.app_user_id&&e.session_id&&(t.hasLoadedData=!0,t.setAppUserID(e.app_user_id),t.setSessionID(e.session_id),t.tick()),e&&t.setCachedConfig(e),p.applyVisualEditsFromConfig(e),S.completePromises(!!e),(r||e&&e.app_user_id&&e.session_id)&&D.completePromises(!!e)};var D=new f({name:"sessionConfigPromises"});t.sessionConfigPromise=function(e){if(e)return t.hasLoadedData&&t.config?e(!0):void D.push(e)};var k=!1,S=new f({name:"configPromises"});function O(e,t,r){h()||(r?i.set(e,t,r):i.set(e,t))}function E(){return function(e,t,r){var n=new Date(e);switch(t.toLowerCase()){case"year":n.setFullYear(n.getFullYear()+r);break;case"quarter":n.setMonth(n.getMonth()+3*r);break;case"month":n.setMonth(n.getMonth()+r);break;case"week":n.setDate(n.getDate()+7*r);break;case"day":n.setDate(n.getDate()+r);break;case"hour":n.setTime(n.getTime()+36e5*r);break;case"minute":n.setTime(n.getTime()+6e4*r);break;case"second":n.setTime(n.getTime()+1e3*r);break;default:n=void 0}return n}(new Date,"minute",t.sessionExpirationMin)}t.configPromise=function(e){if(e)return k&&t.config?e(!0):void S.push(e)},t.resetSession=function(){t.deleteSessionID(),t.deleteAppUserID(),t.resetUserID(),t.config=null,t.hasLoadedData=!1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=t.isEqual=t.includes=t.values=t.isObjectLike=t.debounce=t.isString=t.isNumber=void 0;var n=f(r(39)),i=f(r(40)),o=f(r(60)),s=f(r(61)),a=f(r(7)),u=f(r(65)),c=f(r(66)),l=f(r(67));function f(e){return e&&e.__esModule?e:{default:e}}t.isNumber=c.default,t.isString=u.default,t.debounce=l.default,t.isObjectLike=a.default,t.values=s.default,t.includes=o.default,t.isEqual=i.default,t.forEach=n.default},function(e,t,r){"use strict";var n=r(31),i=r(5),o=r(0),s=r(16),a=r(17),u=r(10),c=new s,l=!1;t.publicToken=null,t.setPublicToken=function(e){this.publicToken=e},t.get=p(function(e,r,i){if(u())return;var s=v(r),a=d(e);o.log("GET request: "+a,s,o.LOUD),n.get(a).query(s.query).timeout(t.timeout).end(f(a,i))}),t.getJSON=p(function(e,r){if(u())return;var s=function(e){return i.obj().cdnAPI+(e||"")}(e);o.log("GET JSON file request: "+s,null,o.LOUD),n.get(s).timeout(t.timeout).end(f(s,r))}),t.post=p(function(e,t,r,i){if(u())return;var s=v(t,r),a=d(e);o.log("POST request: "+a,s,o.LOUD),n.post(a).query(s.query).set("Content-Type","application/json").send(s.payload).end(f(a,i))}),t.del=p(function(e,r,i,s){if(u())return;var a=v(r,i),c=d(e);o.log("DELETE request: "+c,a,o.LOUD),n.del(c).query(a.query).set("Content-Type","application/json").timeout(t.timeout).send(a.payload).end(f(c,s))});function f(e,t){return function(r,n){r&&o.error("Error: "+e,r,o.DEBUG),t&&"function"==typeof t&&t(r,n),h()}}function p(e){return function(){c.enqueue({requestFunction:e,args:arguments}),l||h()}}function h(){if(!c.isEmpty()){l=!0;var e=c.dequeue();return o.log("Processing request",e,o.DEBUG),e&&e.requestFunction&&e.requestFunction.apply(t,e.args)}l=!1}function d(e,t){return("events"===e&&i.obj().eventsAPI?i.obj().eventsAPI:i.obj().baseAPI)+(e||"")+function(e){return e?"?"+a.stringify(e):""}(t)}function v(e,r){var n={},i={};return e&&"function"==typeof e?n=e():e&&(n=e),r&&"function"==typeof r?i=r():r&&(i=r),n.r_v="0",t.publicToken&&(n.public_token=t.publicToken),{query:n,payload:i}}t.timeout=4e3,t.setTimeout=function(e){var r=1e3*e;r>3e4?(o.error("Timeout is larger then max timeout! timeout: "+e+"s, max timeout: 30s. Using max timeout value.",null,o.USER),t.timeout=3e4):r<1e3?(o.error("Timeout is smaller then the min timeout! timeout: "+e+"s, min timeout: 1s. Using min timeout value.",null,o.USER),t.timeout=1e3):(o.log("Set timeout: "+e+"s",null,o.LOUD),t.timeout=r)}},function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(5),s=r(74),a=r(12).CookieJar,u=r(12).Cookie,c=r(12).CookieAccessInfo,l=r(13).OPT_OUT_KEY;s.supported()||(n.log("Local Storage not supported",null,n.DEBUG),s=null);var f={cookieSessionID:"_tl_csid",deviceUUID:"_tl_duuid",sessionUUID:"_tl_suuid",sessionID:"_tl_sid",appUserID:"_tl_auid",userID:"_tl_uid"};t.getJSON=function(e,r){var o=t.get(e,r);if(!o||!i.isString(o))return o;try{return JSON.parse(o)}catch(e){return n.error("JSON parse cookie value",e,n.DEBUG),null}},t.getLS=function(e){if(!s)return null;var t=s.get(e);return n.log("Got local storage key: "+e+" with value: "+t,null,n.LOUD),t},t.get=function(e,r){if(t.getCookieSupport()&&!r){var n=h(),o=new c(t.getCookieDomain()),a=n.getCookie(e,o);return a&&!i.includes(i.values(f),e)&&(a.value=function(e){try{return decodeURIComponent(atob(e))}catch(t){return e}}(a.value)),a?a.value:void 0}return s?t.getLS(e):r?t.get(e):void 0},t.setJSON=function(e,r,o,s){var a=void 0;try{a=i.isString(r)?r:JSON.stringify(r)}catch(e){n.error("JSON stringify cookie value",e,n.DEBUG)}t.set(e,a,o,s)},t.set=function(e,r,o,a){if(e)if(t.getCookieSupport()&&!a){r=r||"",o=o||{};var c=h(),l=function(e,r,n){i.includes(i.values(f),e)||(o=r,r=btoa(encodeURIComponent(o)));var o;var s=new u(e+"="+r);n&&(s.expiration_date=n);return s.domain=t.getCookieDomain(),s}(e,r,o.expires).toString();document.cookie=l,c.setCookie(l),n.log("Setting cookies to:",l,n.LOUD)}else s?t.setLS(e,r,o):a&&t.set(e,r,o)},t.setLS=function(e,t,r){if(s){var i=r&&r.expires?30:null;s.set(e,t,i),n.log("Setting local storage key: "+e+" to value: "+t,null,n.LOUD)}},t.expire=function(e,r){t.getCookieSupport()&&!r?t.set(e,"-",{expires:new Date}):s?(n.log("Deleting local storage key: "+e,null,n.LOUD),s.remove(e)):r&&t.expire(e)};var p=void 0;function h(){return p||(p=new a,function(){if(p&&document.cookie&&document.cookie.length)for(var e=document.cookie.split(";"),t=0;t=3&&t[1].match(/^(com|edu|gov|net|mil|org|nom|co|ca|name|info|biz)$/i)?"."+t[2]+"."+t[1]+"."+t[0]:t&&t.length>1?"."+t[1]+"."+t[0]:null},t.hasUserOptedOutTracking=function(){var e=t.getLS(l);return null===e?null!=s&&(s.set(l,!1,null),n.log("Setting local storage key: "+l+" to value: "+!1,null,n.LOUD),!1):e},t.getCookies=function(){var e=h(),r=new c(t.getCookieDomain());return e.getCookies(r)},t.removeAllCookies=function(){var e=h(),r=new c(t.getCookieDomain());e.getCookies(r).forEach(function(e){n.log("expiring tl session cookie "+e.name,e,n.DEBUG),t.expire(e.name,!1)}),Object.keys(f).forEach(function(e){t.expire(f[e],!1)})};var d=void 0;t.getCookieSupport=function(){if(void 0!==d)return d;var e=!0;do{var t="gCStest="+Math.floor(1e8*Math.random());if(document.cookie=e?t+"; expires="+new Date("Tue, 01-Jan-2030 00:00:00").toUTCString():t,-1!==document.cookie.indexOf(t))return document.cookie=t+"; expires="+new Date("Sat, 01-Jan-2000 00:00:00 GMT").toUTCString(),d=e,e}while(!(e=!e));return d=null,null}},function(e,t,r){"use strict";t.obj=function(){var e=r(9),t={cdnAPI:"https://cdn-config.taplytics.com/js/"};return"production"===e.env?(t.baseAPI="https://api.taplytics.com/public_api/v1/",t.eventsAPI="https://ping.taplytics.com/public_api/v1/"):"dev"===e.env||"development"===e.env?t.baseAPI="https://dev.taplytics.com/public_api/v1/":"stag"===e.env||"staging"===e.env?t.baseAPI="https://staging.taplytics.com/public_api/v1/":"local"===e.env&&(t.baseAPI="http://localhost:3002/public_api/v1/"),t.eventsFlushQueueTimeout=4e3,t.functionFlushQueueTimeout=500,t.sdkVersion="2.10.0",t.cookieDomain=e&&e.api&&e.api.config&&e.api.config.cookieDomain?e.api.config.cookieDomain:null,t},t.isProduction=function(){return"production"===r(9).env}},function(e,t,r){var n=r(46);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){"use strict";var n={};function i(e){return n[e]?n[e]:"title"===e?document.title:document.location?document.location[e]:null}t.toObject=function(){return{href:i("href"),hash:i("hash"),search:i("search"),host:i("host"),protocol:i("protocol"),pathname:i("pathname"),title:i("title")}},t.attr=function(e){return i(e)},t.listen=function(e){}},function(e,t,r){"use strict";e.exports={api:r(14),init:r(83),isReady:r(84),identify:r(85),track:r(86),page:r(87),reset:r(88),propertiesLoaded:r(89),runningExperiments:r(90),variable:r(91),codeBlock:r(93),featureFlagEnabled:r(94),runningFeatureFlags:r(95),hasUserOptedOutTracking:r(10),optOutTracking:r(96),optInTracking:r(97)}},function(e,t,r){"use strict";var n=r(4);e.exports=function(){return n.hasUserOptedOutTracking()}},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){!function(){"use strict";function e(t,r,n,i){return this instanceof e?(this.domain=t||void 0,this.path=r||"/",this.secure=!!n,this.script=!!i,this):new e(t,r,n,i)}function r(e,t,n){return e instanceof r?e:this instanceof r?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=t||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,e&&this.parse(e,t,n),this):new r(e,t,n)}e.All=Object.freeze(Object.create(null)),t.CookieAccessInfo=e,t.Cookie=r,r.prototype.toString=function(){var e=[this.name+"="+this.value];return this.expiration_date!==1/0&&e.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&e.push("domain="+this.domain),this.path&&e.push("path="+this.path),this.secure&&e.push("secure"),this.noscript&&e.push("httponly"),e.join("; ")},r.prototype.toValueString=function(){return this.name+"="+this.value};var n=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var e,t;return this instanceof i?(e=Object.create(null),this.setCookie=function(n,i,o){var s,a;if(s=(n=new r(n,i,o)).expiration_date<=Date.now(),void 0!==e[n.name]){for(t=e[n.name],a=0;a0?e[0]:void 0}}},function(e,t,r){"use strict";var n=r(37),i=r(38),o=r(19);e.exports={formats:o,parse:i,stringify:n}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?r+=t.charAt(n):o<128?r+=i[o]:o<2048?r+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?r+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(n+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(n)),r+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return r},t.compact=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n>>((3&t)<<3)&255;return i}}},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}},function(e,t,r){var n=r(24),i=r(25);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},function(e,t,r){"use strict";var n=r(3),i=r(0),o=r(1),s=r(28),a=r(2);function u(e){if(!e||!e.winning_variation)return null;if("baseline"===e.winning_variation)return"b";var t=!0,r=!1,n=void 0;try{for(var i,o=e.variations[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value;if(s&&e.winning_variation===s._id)return s}}catch(e){r=!0,n=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw n}}return null}function c(e){if(0===e.variations.length)return"baseline";var t=Math.random(),r=a.isNumber(e.baseline.distributionPercent)?e.baseline.distributionPercent:0;if(r&&t0){i.log("flushAppQueue: "+e.length,e,i.LOUD);for(var r=0;r=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==r){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{t.onprogress=n.bind(null,"download"),t.upload&&(t.upload.onprogress=n.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof r&&!this._isHost(r)){var i=this._header["content-type"],o=this._serializer||l.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=l.serialize["application/json"]),o&&(r=o(r))}for(var s in this.header)null!=this.header[s]&&this.header.hasOwnProperty(s)&&t.setRequestHeader(s,this.header[s]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==r?r:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,r){var n=new l.Request(e,t);return this._setDefaults(n),r&&n.end(r),n}}),u.prototype.del=u.prototype.delete,l.get=function(e,t,r){var n=l("GET",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},l.head=function(e,t,r){var n=l("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},l.options=function(e,t,r){var n=l("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.del=g,l.delete=g,l.patch=function(e,t,r){var n=l("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.post=function(e,t,r){var n=l("POST",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},l.put=function(e,t,r){var n=l("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}},function(e,t,r){function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(e,t);if(!0===r)return!0;if(!1===r)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~o.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},i.prototype.then=function(e,t){if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){r.end(function(r,n){r?t(r):e(n)})})}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(n(e)){for(var r in e)this.set(r,e[r]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null===e||void 0===e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),n(e)){for(var r in e)this.field(r,e[r]);return this}if(Array.isArray(t)){for(var i in t)this.field(e,t[i]);return this}if(null===t||void 0===t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},i.prototype._auth=function(e,t,r,n){switch(r.type){case"basic":this.set("Authorization","Basic "+n(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},i.prototype.withCredentials=function(e){return void 0==e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=n(e),r=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&n(this._data))for(var i in e)this._data[i]=e[i];else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"==r?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(r||this.type("json"),this)},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var r=this.url.substring(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.substring(0,t)+"?"+r.join("&")}}},i.prototype._appendQueryString=function(){console.trace("Unsupported")},i.prototype._timeoutError=function(e,t,r){if(!this._aborted){var n=new Error(e+t+"ms exceeded");n.timeout=t,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.abort(),this.callback(n)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,r){"use strict";var n=r(35);function i(e){if(e)return function(e){for(var t in i.prototype)e[t]=i.prototype[t];return e}(e)}e.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=n.type(t);var r=n.params(t);for(var i in r)this[i]=r[i];this.links={};try{e.link&&(this.links=n.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e}},function(e,t,r){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var r=t.split(/ *= */),n=r.shift(),i=r.shift();return n&&i&&(e[n]=i),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var r=t.split(/ *; */),n=r[0].slice(1,-1);return e[r[1].split(/ *= */)[1].slice(1,-1)]=n,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t){function r(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(e){r.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}}),r.prototype._setDefaults=function(e){this._defaults.forEach(function(t){e[t.fn].apply(e,t.arguments)})},e.exports=r},function(e,t,r){"use strict";var n=r(18),i=r(19),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Date.prototype.toISOString,a={delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},u=function e(t,r,i,o,s,u,c,l,f,p,h,d){var v=t;if("function"==typeof c)v=c(r,v);else if(v instanceof Date)v=p(v);else if(null===v){if(o)return u&&!d?u(r,a.encoder):r;v=""}if("string"==typeof v||"number"==typeof v||"boolean"==typeof v||n.isBuffer(v))return u?[h(d?r:u(r,a.encoder))+"="+h(u(v,a.encoder))]:[h(r)+"="+h(String(v))];var m,y=[];if(void 0===v)return y;if(Array.isArray(c))m=c;else{var g=Object.keys(v);m=l?g.sort(l):g}for(var _=0;_0?E+O:""}},function(e,t,r){"use strict";var n=r(18),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},s=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=/(\[[^[\]]*])/.exec(n),a=s?n.slice(0,s.index):n,u=[];if(a){if(!r.plainObjects&&i.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var c=0;null!==(s=o.exec(n))&&c=0;--i){var o,s=e[i];if("[]"===s)o=(o=[]).concat(n);else{o=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(a,10);!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=n:o[a]=n}n=o}return n}(u,t,r)}};e.exports=function(e,t){var r=t?n.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:o.delimiter,r.depth="number"==typeof r.depth?r.depth:o.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:o.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:o.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:o.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:o.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:o.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:o.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:o.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var a="string"==typeof e?function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,a=n.split(t.delimiter,s),u=0;u-1}},function(e,t,r){var n=r(6);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},function(e,t,r){var n=r(51),i=r(52),o=r(53),s=1,a=2;e.exports=function(e,t,r,u,c,l){var f=r&s,p=e.length,h=t.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var v=-1,m=!0,y=r&a?new n:void 0;for(l.set(e,t),l.set(t,e);++v-1}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,r){var n=r(56),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,s,a,u){var c=r&i,l=n(e),f=l.length;if(f!=n(t).length&&!c)return!1;for(var p=f;p--;){var h=l[p];if(!(c?h in t:o.call(t,h)))return!1}var d=u.get(e);if(d&&u.get(t))return d==t;var v=!0;u.set(e,t),u.set(t,e);for(var m=c;++p-1}},function(e,t,r){var n=r(62),i=r(64);e.exports=function(e){return null==e?[]:n(e,i(e))}},function(e,t,r){var n=r(63);e.exports=function(e,t){return n(t,function(t){return e[t]})}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r=t||r<0||y&&e-v>=f}function w(){var e=i();if(b(e))return x(e);h=setTimeout(w,function(e){var r=t-(e-d);return y?u(r,f-(e-v)):r}(e))}function x(e){return h=void 0,g&&c?_(e):(c=l=void 0,p)}function D(){var e=i(),r=b(e);if(c=arguments,l=this,d=e,r){if(void 0===h)return function(e){return v=e,h=setTimeout(w,t),m?_(e):p}(d);if(y)return h=setTimeout(w,t),_(d)}return void 0===h&&(h=setTimeout(w,t)),p}return t=o(t)||0,n(r)&&(m=!!r.leading,f=(y="maxWait"in r)?a(o(r.maxWait)||0,t):f,g="trailing"in r?!!r.trailing:g),D.cancel=function(){void 0!==h&&clearTimeout(h),v=0,c=d=l=h=void 0},D.flush=function(){return void 0===h?p:x(i())},D}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){var n=r(70);e.exports=function(){return n.Date.now()}},function(e,t,r){var n=r(71),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},function(e,t,r){(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r}).call(t,r(72))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){e.exports=function(e){return e}},function(e,t){var r,n;r=this,n=function(){var e,t,r="lscache-",n="-cacheexpiration",i=10,o=6e4,s=Math.floor(864e13/o),a="",u=!1;function c(){var t="__lscachetest__";if(void 0!==e)return e;try{if(!localStorage)return!1}catch(e){return!1}try{v(t,"__lscachetest__"),m(t),e=!0}catch(t){e=!(!l(t)||!localStorage.length)}return e}function l(e){return!!(e&&"QUOTA_EXCEEDED_ERR"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||"QuotaExceededError"===e.name)}function f(){return void 0===t&&(t=null!=window.JSON),t}function p(e){return e+n}function h(){return Math.floor((new Date).getTime()/o)}function d(e){return localStorage.getItem(r+a+e)}function v(e,t){localStorage.removeItem(r+a+e),localStorage.setItem(r+a+e,t)}function m(e){localStorage.removeItem(r+a+e)}function y(e){for(var t=new RegExp("^"+r+a.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&")+"(.*)"),i=localStorage.length-1;i>=0;--i){var o=localStorage.key(i);(o=(o=o&&o.match(t))&&o[1])&&o.indexOf(n)<0&&e(o,p(o))}}function g(e){var t=p(e);m(e),m(t)}function _(e){var t=p(e),r=d(t);if(r){var n=parseInt(r,i);if(h()>=n)return m(e),m(t),!0}}function b(e,t){u&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+e),t&&window.console.warn("lscache - The error was: "+t.message))}return{set:function(e,t,r){if(c()){if("string"!=typeof t){if(!f())return;try{t=JSON.stringify(t)}catch(e){return}}try{v(e,t)}catch(r){if(!l(r))return void b("Could not add item with key '"+e+"'",r);var n,o=[];y(function(e,t){var r=d(t);r=r?parseInt(r,i):s,o.push({key:e,size:(d(e)||"").length,expiration:r})}),o.sort(function(e,t){return t.expiration-e.expiration});for(var a=(t||"").length;o.length&&a>0;)n=o.pop(),b("Cache is full, removing item with key '"+e+"'"),g(n.key),a-=n.size;try{v(e,t)}catch(t){return void b("Could not add item with key '"+e+"', perhaps it's too big?",t)}}r?v(p(e),(h()+r).toString(i)):m(p(e))}},get:function(e){if(!c())return null;if(_(e))return null;var t=d(e);if(!t||!f())return t;try{return JSON.parse(t)}catch(e){return t}},remove:function(e){c()&&g(e)},supported:function(){return c()},flush:function(){c()&&y(function(e){g(e)})},flushExpired:function(){c()&&y(function(e){_(e)})},setBucket:function(e){a=e},resetBucket:function(){a=""},enableWarnings:function(e){u=e}}},void 0!==e&&e.exports?e.exports=n():r.lscache=n()},function(e,t,r){var n=r(76),i=r(26),o=i;o.v1=n,o.v4=i,e.exports=o},function(e,t,r){var n,i,o=r(24),s=r(25),a=0,u=0;e.exports=function(e,t,r){var c=t&&r||0,l=t||[],f=(e=e||{}).node||n,p=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==p){var h=o();null==f&&(f=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,m=d-a+(v-u)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||d>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=v,i=p;var y=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;l[c++]=y>>>24&255,l[c++]=y>>>16&255,l[c++]=y>>>8&255,l[c++]=255&y;var g=d/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var _=0;_<6;++_)l[c+_]=f[_];return t||s(l)}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}},function(e,t,r){"use strict";var n=r(17);e.exports=function(){var e={},t=null;return location&&location.search&&location.search.length&&(e=n.parse(location.search.substr(1))),document&&document.referrer&&(t=document.referrer),{referrer:t,search:e}}},function(e,t,r){"use strict";var n=r(0),i=r(3);function o(e){this.promises=[],this.name=e?e.name:null}o.prototype.push=function(e){var t=!1,r=this;function o(r){t||e&&(t=!0,e(r))}this.promises.push(o),setTimeout(function(){t||(n.log(r.name+" promise timed out",null,n.LOG),o())},i.timeout)},o.prototype.completePromises=function(e){var t=!0,r=!1,n=void 0;try{for(var i,o=this.promises[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var s=i.value;s&&s(e)}}catch(e){r=!0,n=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw n}}this.promises=[]},e.exports=o},function(e,t,r){"use strict";var n=r(2),i=r(0),o=r(1),s=r(81),a=r(82),u=void 0,c=setInterval(function(){document.body&&(l(),clearInterval(c),c=null)},1);function l(){if("undefined"!=typeof MutationObserver&&!u&&document.body){i.log("start DOM Observer",null,i.DEBUG);var e=function(){i.log("DOM mutation observed",null,i.DEBUG),t.applyVisualEditsFromConfig(o.config)};(u=new MutationObserver(n.debounce(e,50,{leading:!0}))).observe(document.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0,attributeFilter:[],characterDataOldValue:!1,attributeOldValue:!1}),e()}}t.applyVisualEditsFromConfig=function(e){if(e&&e.webModifications&&e.webElements){l(),i.log("Apply visual edits from config",null,i.DEBUG);var t=s.buildUrlFromLocation(window.location);e.webModifications.forEach(function(r){if(r){var n=e.webElements.find(function(e){return e._id===r._element});if(!n)return i.error("No web element found for _id: "+r._element+", modification: "+r._id,null,i.DEBUG);e.urlRules&&s.matchUrlRules(e.urlRules,t)?a.applyModificationsToDOM({element:n,modification:r}):n.hostnameMatch&&!s.matchUrlsByDomain(n.url,t)||(n.hostnameMatch||s.matchUrlsByPath(n.url,t))&&a.applyModificationsToDOM({element:n,modification:r})}})}}},function(e,t,r){"use strict";var n=r(2);t.buildUrlFromLocation=function(e){return e&&e.origin?e.origin+(e.pathname?e.pathname:""):null},t.matchUrlsByPath=function(e,r){var n=t.getLocationFromUrl(e),i=t.getLocationFromUrl(r);return n&&i&&n.origin.length&&i.origin.length?t.buildUrlFromLocation(n)===t.buildUrlFromLocation(i):(e=e.replace(/^(http(s?):\/\/)?((www\.)?)/,""))===(r=r.replace(/^(http(s?):\/\/)?((www\.)?)/,""))},t.matchUrlsByDomain=function(e,t){return e=e.replace(/^(http(s?):\/\/)?((www\.)?)/,"").split("/")[0],t=t.replace(/^(http(s?):\/\/)?((www\.)?)/,"").split("/")[0],e=e.split(".").slice(-2),t=t.split(".").slice(-2),n.isEqual(e,t)},t.getLocationFromUrl=function(e){var t=document.createElement("a");return t.href=e,t.origin.length?{origin:t.origin,hostname:t.hostname,pathname:t.pathname,href:t.href}:null},t.matchUrlRules=function(e,t){if(!e||!e.length||!t)return!1;var r=!1;return n.forEach(e,function(e){var n=e.comparator,i=e.value;if("is"===n)r=t===i;else if("is not"===n)r=t!==i;else if("contains"===n)r=t.includes(i);else if("does not contain"===n)r=!t.includes(i);else if("Matches Regex"===n){var o=new RegExp(i);r=o.test(t)}if(r)return!1}),r}},function(module,exports,__webpack_require__){"use strict";var log=__webpack_require__(0);exports.applyModificationsToDOM=function(_ref){var element=_ref.element,modification=_ref.modification;if(element&&modification){var htmlElements=exports.findElementsBySelector(element.selector),htmlElement=htmlElements&&htmlElements.length?htmlElements[0]:null;if(htmlElement){log.log("Apply modification for web element: "+htmlElement._id+", modification: "+modification._id,null,log.LOUD);var _modification$attribu=modification.attributes,outerHTML=_modification$attribu.outerHTML,script=_modification$attribu.script;if(outerHTML&&htmlElement.outerHTML!==outerHTML&&(htmlElement.outerHTML=outerHTML),script)try{eval(script)}catch(e){log.error("Error on modification script for web element: "+htmlElement._id+", modification: "+modification._id,e,log.DEBUG)}}}},exports.findElementsBySelector=function(e){return document.querySelectorAll(e)}},function(e,t,r){"use strict";var n=r(0),i=(r(8),r(1)),o=r(4),s=r(2),a=!0;e.exports=function(e,t){if(function(e){if(!e||"string"!=typeof e)return!1;return!!e.length}(e)){this.env="production",t&&(this.api.config.startOptions=t,s.isNumber(t.log_level)&&n.setPriorityLevel(t.log_level),!1===t.auto_page_view&&(a=!1),t.env&&(this.env=t.env),t.test_experiments&&(i.test_experiments=t.test_experiments),t.fast_mode&&(this.api.config.fastMode=t.fast_mode),t.cookie_domain&&(this.api.config.cookieDomain=t.cookie_domain),t.user_bucketing&&(this.api.config.userBucketing=t.user_bucketing),s.isNumber(t.timeout)&&this.api.request.setTimeout(t.timeout),t.anon_user&&!i.getUserID()&&i.setUserID(t.anon_user)),this._in={},this._in.token=e,this._in.logger=n,this._in.cookies=o,this.api.init(this);var r=t&&t.config?t.config:void 0,u=r?r.ad:void 0;i.start(u);var c=null;try{s.isString(t.user_attributes)?c=t&&t.user_attributes&&JSON.parse(t.user_attributes):s.isObjectLike(t.user_attributes)&&(c=t.user_attributes)}catch(e){n.error("Error trying to convert user attributes to JSON",e)}return this.api.config.get({dynamicConfig:r,user_attributes:c}),a&&this.page&&this.page(),this.api.events.scheduleTick(),this.api.events.watchLifecycleEvents(),this}n.error("An SDK token is required.",null,n.USER)}},function(e,t,r){"use strict";r(14);e.exports=function(){return!(!this._in||!this._in.token)}},function(e,t,r){"use strict";var n="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},i=r(0),o=r(1);e.exports=function(e){if(!this.isReady())return i.error("Taplytics::identify: you have to call Taplytics.init first.",null,i.USER),this;if(!function(e){return!(!e||e&&"object"!==(void 0===e?"undefined":n(e)))}(e))return i.error("Taplytics::identify: you have to pass in an object with user attributes.",null,i.USER),this;var t=function(e){var t={customData:{}},r=!0,n=!1,i=void 0;try{for(var u,c=Object.keys(e)[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var l=u.value,f=e[l],p=s[l];p?(a.includes(p)&&o.setUserID(f),t[p]=f):t.customData[l]=f}}catch(e){n=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(n)throw i}}return t}(e);return this.api.users.post(t,"Taplytics::identify: failed to save the user attributes properly."),this};var s={user_id:"user_id",id:"user_id",userID:"user_id",userId:"user_id",customer_id:"user_id",member_id:"user_id",email:"email",email_address:"email",name:"name",fullName:"name",full_name:"name",firstName:"firstName",first_name:"firstName",lastName:"lastName",last_name:"lastName",avatar:"avatarUrl",avatarUrl:"avatarUrl",avatar_url:"avatarUrl",age:"age",gender:"gender"},a=["user_id","userID","userId"]},function(e,t,r){"use strict";var n=r(0),i=r(1),o=r(2);e.exports=function(e,t,r){if(!this.isReady())return n.error("track: you have to call Taplytics.init first.",null,n.USER),!1;if(!e)return n.error("track: you have to specify an event name.",null,n.USER),!1;var s=t,a=r;return o.isObjectLike(t)&&!r&&(s=void 0,a=t),s&&!o.isNumber(s)?(n.error("track: if you're passing a value, it has to be a number.",null,n.USER),!1):(i.tick(),this.api.events.goalAchieved(e,s,a),this)}},function(e,t,r){"use strict";var n="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},i=r(0),o=r(8),s=r(1),a={previous_page_href:"p_p_l_h",previous_page_title:"p_p_l_t",previous_page_location:"p_p_l",previous_page_name:"p_p_n",previous_page_category:"p_p_c",previous_page_view_date:"p_p_v_d"};e.exports=function(e,t,r){if(!this.isReady())return i.error("track: you have to call Taplytics.init first.",null,i.USER),this;var u=e,c=t,l=r;if("object"!==(void 0===t?"undefined":n(t))||r?e&&!t&&(u=void 0,c=e):(u=void 0,c=e,l=t),s.tick(),s.get(a.previous_page_href)){var f=function(){var e=s.get(a.previous_page_view_date);e&&(e=new Date(e));return{category:s.get(a.previous_page_category),name:s.get(a.previous_page_name),href:s.get(a.previous_page_href),title:s.get(a.previous_page_title),location:s.get(a.previous_page_location,JSON&&JSON.parse),view_date:e}}();this.api.events.pageClose(f.category,f.name,f.href,f.title,f.location),this.api.events.timeOnPage(f.category,f.name,f.href,f.title,f.location,f.view_date),s.unset(a.previous_page_category),s.unset(a.previous_page_name),s.unset(a.previous_page_href),s.unset(a.previous_page_title),s.unset(a.previous_page_location),s.unset(a.previous_page_view_date)}return this.api.events.pageView(u,c,l),function(e,t){s.set(a.previous_page_category,e),s.set(a.previous_page_name,t),s.set(a.previous_page_href,o.attr("href")),s.set(a.previous_page_title,o.attr("title")),s.set(a.previous_page_location,o.toObject(),JSON&&JSON.stringify),s.set(a.previous_page_view_date,(new Date).toISOString())}(u,c),this}},function(e,t,r){"use strict";var n=r(0),i=r(1);e.exports=function(){return this.isReady()?(i.tick(),this.api.users.del(),i.resetSession(),this.api.config.get({}),this):(n.error("Taplytics::reset: you have to call Taplytics.init first.",null,n.USER),!1)}},function(e,t,r){"use strict";var n=r(1);e.exports=function(e){n.configPromise(e)}},function(e,t,r){"use strict";var n=r(1);e.exports=function(e){n.configPromise(function(){var t=n.config&&n.config.expVarsNames?n.config.expVarsNames:{};return e&&e(t)})}},function(e,t,r){"use strict";r(1);var n=r(92);e.exports=function(e,t,r){var i=new n(e,t,r);return i&&i.init?i:null}},function(e,t,r){"use strict";var n="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},i=r(0),o=r(1),s=r(29);function a(e,t,r){return this.init=!1,e?(this.name=e,this.defaultValue=t,this.value=t,this.updatedBlock=r,this.defaultType=this.getValueType(t),this.defaultType?(this.init=!0,void this.getValueFromConfig()):i.log("Error: Taplytics variables only support Strings, Numbers, and Booleans.",null,i.USER)):i.log("Error: Taplytics variable is missing a name",null,i.USER)}a.prototype.getValueType=function(e){return"string"==typeof e?"String":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"object"===(void 0===e?"undefined":n(e))?"JSON":null},a.prototype.stringifyValue=function(e){return"JSON"===this.defaultType?JSON.stringify(e):e},a.prototype.parseValue=function(e){if("JSON"===this.defaultType){if("object"===(void 0===e?"undefined":n(e)))return e;try{return JSON.parse(e)}catch(t){i.log("Error parsing JSON variable",e,i.LOG)}return null}return e},a.prototype.getValueFromConfig=function(){var e=this;function t(){e.updatedBlock&&e.updatedBlock(e.value)}o.configPromise(function(){var r=o.config,n=r&&r.dynamicVars?r.dynamicVars[e.name]:null;if(n){if(n.variableType!==e.defaultType)return t(),i.error("Taplytics variable "+e.name+" default type does not match server: "+n.variableType,null,i.LOG);e.value=e.parseValue(n.value)}else r&&(i.log("New Taplytics Variable: "+e.name,null,i.DEBUG),s.post(e));t()})},e.exports=a},function(e,t,r){"use strict";var n=r(0),i=r(1),o=r(29);e.exports=function(e,t){if(!e)return n.error("No name to run code block",null,n.USER);i.configPromise(function(){var r=i.config;if(r){var s=r.dynamicVars?r.dynamicVars[e]:null;if(s){if("Code Block"!==s.variableType)return n.error("Taplytics code block "+e+" default type does not match server: "+s.variableType,null,n.LOG);t&&s.value&&t()}else n.log("New Taplytics Code Block: "+e,null,n.DEBUG),o.post({name:e,defaultType:"Code Block",defaultValue:!1})}})}},function(e,t,r){"use strict";var n=r(0),i=r(1);e.exports=function(e){if(!e)return n.error("No key to return feature flag enabled",null,n.USER),!1;var t=i.config;if(!t||!t.ff)return!1;var r=t.ff[e];return r&&r.enabled}},function(e,t,r){"use strict";var n=r(1),i=r(2);e.exports=function(e){n.configPromise(function(){var t=n.config&&n.config.ff?n.config.ff:{},r={};return i.values(t).forEach(function(e){e.enabled&&(r[e.key]=e.name)}),e&&e(r)})}},function(e,t,r){"use strict";r(0);var n=r(4),i=r(13).OPT_OUT_KEY;e.exports=function(){return n.setLS(i,!0),n.removeAllCookies(),this}},function(e,t,r){"use strict";var n=r(4),i=r(13).OPT_OUT_KEY;e.exports=function(){return n.hasUserOptedOutTracking()&&(n.setLS(i,!1),this.init(this._in.token,this.api.config.startOptions)),this}}]); //# sourceMappingURL=taplytics.min.js.map \ No newline at end of file