Socket
Socket
Sign inDemoInstall

@analytics/core

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@analytics/core - npm Package Compare versions

Comparing version 0.10.11 to 0.10.13

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

## [0.10.13](https://github.com/DavidWells/analytics/compare/@analytics/core@0.10.12...@analytics/core@0.10.13) (2021-08-05)
**Note:** Version bump only for package @analytics/core
## [0.10.12](https://github.com/DavidWells/analytics/compare/@analytics/core@0.10.11...@analytics/core@0.10.12) (2021-08-05)
**Note:** Version bump only for package @analytics/core
## [0.10.11](https://github.com/DavidWells/analytics/compare/@analytics/core@0.10.10...@analytics/core@0.10.11) (2021-07-31)

@@ -8,0 +24,0 @@

2

dist/@analytics/core.min.js

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

var _analytics=function(t){"use strict";var e=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}};var n=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var r=function(){throw new TypeError("")};var R=function(t){return e(t)||n(t)||r()};function i(t,e){return t(e={exports:{}},e.exports),e.exports}var V=i(function(e){function n(t){return(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})(t)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},r(t)}e.exports=r}),G=i(function(t){var e=function(o){var c,t=Object.prototype,s=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i,a,o,u,e=e&&e.prototype instanceof y?e:y,e=Object.create(e.prototype),r=new O(r||[]);return e._invoke=(i=t,a=n,o=r,u=f,function(t,e){if(u===d)throw new Error("");if(u===h){if("throw"===t)throw e;return P()}for(o.method=t,o.arg=e;;){var n=o.delegate;if(n){var r=function t(e,n){var r=e.iterator[n.method];if(r===c){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=c,t(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("")}return g}r=l(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var r=r.arg;if(!r)return n.method="throw",n.arg=new TypeError(""),n.delegate=null,g;{if(!r.done)return r;n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=c)}n.delegate=null;return g}(n,o);if(r){if(r===g)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(u===f)throw u=h,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);u=d;r=l(i,a,o);if("normal"===r.type){if(u=o.done?h:p,r.arg!==g)return{value:r.arg,done:o.done}}else"throw"===r.type&&(u=h,o.method="throw",o.arg=r.arg)}}),e}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}o.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",g={};function y(){}function m(){}function v(){}var b={};b[r]=function(){return this};e=Object.getPrototypeOf,e=e&&e(e(k([])));e&&e!==t&&s.call(e,r)&&(b=e);var w=v.prototype=y.prototype=Object.create(b);function x(t){["next","throw","return"].forEach(function(e){a(t,e,function(t){return this._invoke(e,t)})})}function E(o,u){var e;this._invoke=function(n,r){function t(){return new u(function(t,e){!function e(t,n,r,i){t=l(o[t],o,n);if("throw"!==t.type){var a=t.arg,n=a.value;return n&&"object"==typeof n&&s.call(n,"__await")?u.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):u.resolve(n).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,i)})}i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function k(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,t=function t(){for(;++n<e.length;)if(s.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return t.next=t}}return{next:P}}function P(){return{value:c,done:!0}}return((m.prototype=w.constructor=v).constructor=m).displayName=a(v,i,"GeneratorFunction"),o.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,a(t,i,"GeneratorFunction")),t.prototype=Object.create(w),t},o.awrap=function(t){return{__await:t}},x(E.prototype),E.prototype[n]=function(){return this},o.AsyncIterator=E,o.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var a=new E(u(t,e,n,r),i);return o.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},x(w),a(w,i,"Generator"),w[r]=function(){return this},w.toString=function(){return"[object Generator]"},o.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},o.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return a.type="throw",a.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],a=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var o=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(o&&u){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!u)throw new Error("");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r,i=n.completion;return"throw"===i.type&&(r=i.arg,S(n)),r}}throw new Error("")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),g}},o}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});function c(t,e,n,r,i,a,o){try{var u=t[a](o),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,i)}var $=function(u){return function(){var t=this,o=arguments;return new Promise(function(e,n){var r=u.apply(t,o);function i(t){c(r,e,n,i,a,"next",t)}function a(t){c(r,e,n,i,a,"throw",t)}i(void 0)})}};var p=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t};function a(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}var F=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e};function B(t,e,n,r,i){for(e=e.split?e.split("."):e,r=0;r<e.length;r++)t=t?t[e[r]]:i;return t===i?n:t}var X="undefined"!=typeof window;function J(t){return"function"==typeof t}function W(t){return"string"==typeof t}function Y(t){if("object"==typeof t&&null!==t){for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}}function u(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function H(e){return function(t){for(var e,n={},r=/([^&=]+)=?([^&]*)/g;a=r.exec(t);){var i=u(a[1]),a=u(a[2]);"[]"===i.substring(i.length-2)?(n[i=i.substring(0,i.length-2)]||(n[i]=[])).push(a):n[i]=""===a||a}for(e in n){var o=e.split("[");1<o.length&&(function(t,e,n){for(var r=e.length-1,i=0;i<r;++i){var a=e[i];a in t||(t[a]={}),t=t[a]}t[e[r]]=n}(n,o.map(function(t){return t.replace(/[?[\]\\ ]/g,"")}),n[e]),delete n[e])}return n}(function(){if(e){var t=e.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return X&&window.location.search.substring(1)}())}function Z(){for(var t="",e=0,n=4294967295*Math.random()|0;e++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&n;t+="-"==r||"4"==r?r:("x"==r?i:3&i|8).toString(16),n=e%8==0?4294967295*Math.random()|0:n>>4}return t}var o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0;function K(t){return o[t]}function Q(t,e){return o[t]=e}function tt(t){Q(t)}var g="function",y="undefined",m="reducer",s="@@redux/",v=s+"INIT",l=s+Math.random().toString(36),d=function(){return("undefined"==typeof Symbol?"undefined":V(Symbol))===g&&Symbol.observable||"@@observable"}(),h=" != "+g;function et(t,e,n){if(V(e)===g&&V(n)===y&&(n=e,e=void 0),V(n)!==y){if(V(n)!==g)throw new Error("enhancer"+h);return n(et)(t,e)}if(V(t)!==g)throw new Error(m+h);var r=t,i=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function s(){return i}function l(e){if(V(e)!==g)throw new Error("Listener"+h);var n=!0;return c(),o.push(e),function(){var t;n&&(n=!1,c(),t=o.indexOf(e),o.splice(t,1))}}function f(t){if(!Y(t))throw new Error("Act != obj");if(V(t.type)===y)throw new Error("ActType "+y);if(u)throw new Error("Dispatch in "+m);try{u=!0,i=r(i,t)}finally{u=!1}for(var e=a=o,n=0;n<e.length;n++)(0,e[n])();return t}return f({type:v}),p({dispatch:f,subscribe:l,getState:s,replaceReducer:function(t){if(V(t)!==g)throw new Error("next "+m+h);r=t,f({type:v})}},d,function(){var n=l;return p({subscribe:function(t){if("object"!==V(t))throw new TypeError("Observer != obj");function e(){t.next&&t.next(i)}return e(),{unsubscribe:n(e)}}},d,function(){return this})})}function nt(t){for(var e=Object.keys(t),p={},n=0;n<e.length;n++){var r=e[n];V(t[r])===g&&(p[r]=t[r])}var d,i,h=Object.keys(p);try{i=p,Object.keys(i).forEach(function(t){var e=i[t],n=e(void 0,{type:v});if(V(n)===y||V(e(void 0,{type:l}))===y)throw new Error(m+" "+t+" "+y)})}catch(t){d=t}return function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0;if(d)throw d;for(var i=!1,a={},o=0;o<h.length;o++){var u=h[o],c=p[u],s=n[u],l=c(s,r);if(V(l)===y){var f=(f=u,"action "+((c=(c=r)&&c.type)&&c.toString()||"?")+m+" "+f+" returns "+y);throw new Error(f)}a[u]=l,i=i||l!==s}return i?a:n}}function rt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}var f="analytics",it="userId",at="anonymousId",b="__",ot=b+"anon_id",ut=b+"user_id",ct=b+"user_traits",w=Object.freeze({ANON_ID:ot,USER_ID:ut,USER_TRAITS:ct}),st=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],lt=["name","EVENTS","config","loaded"],ft=st.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:".concat(t)},pluginReadyType:function(t){return"ready:".concat(t)}});var pt=/^utm_/,dt=/^an_prop_/,ht=/^an_trait_/;function gt(t){return{userId:t.getItem(ut),anonymousId:t.getItem(ot),traits:t.getItem(ct)}}var yt=function(t){return b+"TEMP"+b+t};var x={};function E(t,e){x[t]&&J(x[t])&&(x[t](e),delete x[t])}function I(i,a,o){return new Promise(function(e,n){return a()?e(i):o<1?n(F(F({},i),{},{queue:!0})):(r=10,new Promise(function(t){return setTimeout(t,r)}).then(function(t){return I(i,a,o-10).then(e,n)}));var r})}function mt(i,t,a){var n,o=t(),e=i.getState(),u=e.plugins,t=e.context,c=e.queue,s=e.user;!t.offline&&c&&c.actions&&c.actions.length&&((n=c.actions.reduce(function(t,e,n){return u[e.plugin].loaded?(t.process.push(e),t.processIndex.push(n)):(t.requeue.push(e),t.requeueIndex.push(n)),t},{processIndex:[],process:[],requeue:[],requeueIndex:[]})).processIndex&&n.processIndex.length&&(n.processIndex.forEach(function(t){var e=c.actions[t],n=e.plugin,r=e.payload.type,t=o[n][r];t&&J(t)&&(t({payload:e=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return[it,at].reduce(function(t,e){return n.hasOwnProperty(e)&&r[e]&&r[e]!==n[e]&&(t[e]=r[e]),t},n)}(e.payload,s),config:u[n].config,instance:a}),n="".concat(r,":").concat(n),i.dispatch(F(F({},e),{},{type:n,_:{called:n,from:"queueDrain"}})))}),t=c.actions.filter(function(t,e){return!~n.processIndex.indexOf(e)}),c.actions=t))}var S=function(t){if(Array.isArray(t))return t};var O=function(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}return n};var k=function(){throw new TypeError("")};var P=function(t,e){return S(t)||O(t,e)||k()};var j=/Start$/,_=/^bootstrap/,N=/^ready/;function A(){return(A=$(G.mark(function t(n,e,r,i,a){var o,u,c,s,l,f,p,d,h;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=J(e)?e():e,u=n.type,c=u.replace(j,""),n._&&n._.called)return t.abrupt("return",n);t.next=5;break;case 5:return s=r.getState(),f=function(e,t,n){var r=1<arguments.length&&void 0!==t?t:{},i=2<arguments.length&&void 0!==n?n:{};return Object.keys(e).filter(function(t){var e=i.plugins||{};return"boolean"==typeof e[t]?e[t]:!1!==e.all&&(!r[t]||!1!==r[t].enabled)}).map(function(t){return e[t]})}(o,s.plugins,n.options),u===ft.initializeStart&&n.fromEnable&&(f=Object.keys(s.plugins).filter(function(t){var e=s.plugins[t];return n.plugins.includes(t)&&!e.initialized}).map(function(t){return o[t]})),l=f.map(function(t){return t.name}),f=function(a,o){var t=D(a).map(function(t){return q(t,o)});return o.reduce(function(t,e){var n=e.name,r=D(a,n).map(function(t){return q(t,o)}),i=P(r,3),e=i[0],r=i[1],i=i[2];return e.length&&(t.beforeNS[n]=e),r.length&&(t.duringNS[n]=r),i.length&&(t.afterNS[n]=i),t},{before:t[0],beforeNS:{},during:t[1],duringNS:{},after:t[2],afterNS:{}})}(u,f),t.next=12,T({action:n,data:{exact:f.before,namespaced:f.beforeNS},state:s,allPlugins:o,allMatches:f,instance:r,store:i,EVENTS:a});case 12:if(C(p=t.sent,l.length))return t.abrupt("return",p);t.next=15;break;case 15:if(u!==c){t.next=19;break}d=p,t.next=22;break;case 19:return t.next=21,T({action:F(F({},p),{},{type:c}),data:{exact:f.during,namespaced:f.duringNS},state:s,allPlugins:o,allMatches:f,instance:r,store:i,EVENTS:a});case 21:d=t.sent;case 22:if(u.match(j))return h="".concat(c,"End"),t.next=26,T({action:F(F({},d),{},{type:h}),data:{exact:f.after,namespaced:f.afterNS},state:s,allPlugins:o,allMatches:f,instance:r,store:i,EVENTS:a});t.next=28;break;case 26:(h=t.sent).meta&&h.meta.hasCallback&&E(h.meta.rid,{payload:h});case 28:return t.abrupt("return",p);case 29:case"end":return t.stop()}},t)}))).apply(this,arguments)}function T(){return L.apply(this,arguments)}function L(){return(L=$(G.mark(function t(e){var p,o,d,h,n,g,r,y,i,m,v,b,w,x,a,u;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return p=e.data,o=e.action,d=e.instance,u=e.state,h=e.allPlugins,n=e.allMatches,g=e.store,r=e.EVENTS,y=u.plugins,i=u.context,m=o.type,v=m.match(j),u=p.exact.map(function(t){return t.pluginName}),v&&(u=n.during.map(function(t){return t.pluginName})),b=function(d,h){return function(t,e,n){var r=e.config,i=e.name,e="".concat(i,".").concat(t.type);n&&(e=n.event);var a,o,u,c,s,l,f,p,e=t.type.match(j)?(u=i,c=e,s=h,l=n,f=t,function(t,e){var n=l?l.name:u,r=e&&vt(e)?e:s;if(l&&(!(r=e&&vt(e)?e:[u]).includes(u)||1!==r.length))throw new Error("Method ".concat(c," can only abort ").concat(u," plugin. ").concat(JSON.stringify(r)," input valid"));return F(F({},f),{},{abort:{reason:t,plugins:r,caller:c,_:n}})}):(a=t,o=e,function(){throw new Error(a.type+" action not cancellable. Remove abort in "+o)});return{payload:(p=t,Object.keys(p).reduce(function(t,e){return"type"===e||(Y(p[e])?t[e]=Object.assign({},p[e]):t[e]=p[e]),t},{})),instance:d,config:r||{},abort:e}}}(d,u),w=p.exact.reduce(function(t,e){var n=e.pluginName,r=e.methodName,e=!1;return r.match(/^initialize/)||r.match(/^reset/)||(e=!y[n].loaded),i.offline&&r.match(/^(page|track|identify)/)&&(e=!0),t["".concat(n)]=e,t},{}),t.next=10,p.exact.reduce(function(){var r=$(G.mark(function t(e,n,r){var u,i,a;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=n.pluginName,t.next=3,e;case 3:if(i=t.sent,p.namespaced&&p.namespaced[u])return t.next=7,p.namespaced[u].reduce(function(){var r=$(G.mark(function t(e,n,r){var i,a,o;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=function(r,i,a){return function(t,e){var n=a||i;return F(F({},r),{},{abort:{reason:t,plugins:e||[i],caller:m,from:n}})}},t.next=3,e;case 3:if(i=t.sent,n.method&&J(n.method)){t.next=6;break}return t.abrupt("return",i);case 6:return function(t,e){var n=wt(t);if(n&&n.name===e){var r=wt(n.method),r=r?"or "+r.method:"";throw new Error([e+" plugin is calling method "+t,"Plugins cant call self","Use ".concat(n.method," ").concat(r," in ").concat(e," plugin insteadof ").concat(t)].join("\n"))}}(n.methodName,n.pluginName),t.next=9,n.method({payload:i,instance:d,abort:a(i,u,n.pluginName),config:M(n.pluginName,y,h),plugins:y});case 9:return o=t.sent,o=Y(o)?o:{},t.abrupt("return",Promise.resolve(F(F({},i),o)));case 12:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve(o));t.next=11;break;case 7:a=t.sent,i[u]=a,t.next=12;break;case 11:i[u]=o;case 12:return t.abrupt("return",Promise.resolve(i));case 13:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve({}));case 10:return x=t.sent,t.next=13,p.exact.reduce(function(){var r=$(G.mark(function t(e,n,r){var i,a,o,u,c,s,l,f;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=p.exact.length===r+1,a=n.pluginName,o=h[a],t.next=5,e;case 5:if(u=t.sent,c=x[a]||{},v&&(c=u),U(c,a))return z({data:c,method:m,instance:d,pluginName:a,store:g}),t.abrupt("return",Promise.resolve(u));t.next=11;break;case 11:if(U(u,a))return i&&z({data:u,method:m,instance:d,store:g}),t.abrupt("return",Promise.resolve(u));t.next=14;break;case 14:if(w.hasOwnProperty(a)&&!0===w[a])return g.dispatch({type:"queue",plugin:a,payload:c,_:{called:"queue",from:"queueMechanism"}}),t.abrupt("return",Promise.resolve(u));t.next=17;break;case 17:return s=b(x[a],h[a]),t.next=20,o[m]({abort:s.abort,payload:c,instance:d,config:M(a,y,h),plugins:y});case 20:return f=t.sent,l=Y(f)?f:{},s=F(F({},u),l),U(f=x[a],a)?z({data:f,method:m,instance:d,pluginName:a,store:g}):(l="".concat(m,":").concat(a),(l.match(/:/g)||[]).length<2&&!m.match(_)&&!m.match(N)&&(f=v?s:c,d.dispatch(F(F({},f),{},{type:l,_:{called:l,from:"submethod"}})))),t.abrupt("return",Promise.resolve(s));case 26:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve(o));case 13:if(a=t.sent,m.match(j)||m.match(/^registerPlugin/)||m.match(N)||m.match(_)||m.match(/^params/)||m.match(/^userIdChanged/)){t.next=21;break}if(r.plugins.includes(m),a._&&a._.originalAction===m)return t.abrupt("return",a);t.next=18;break;case 18:u=F(F({},a),{_:{originalAction:a.type,called:a.type,from:"engineEnd"}}),C(a,p.exact.length)&&!m.match(/End$/)&&(u=F(F({},u),{type:a.type+"Aborted"})),g.dispatch(u);case 21:return t.abrupt("return",a);case 22:case"end":return t.stop()}},t)}))).apply(this,arguments)}function z(t){var e=t.data,n=t.method,r=(t.instance,t.pluginName),r=n+"Aborted"+(r?":"+r:"");t.store.dispatch(F(F({},e),{},{type:r,_:{called:r,from:"abort"}}))}function M(t,e,n){t=e[t]||n[t];return t&&t.config?t.config:{}}function q(n,t){return t.reduce(function(t,e){return e[n]?t.concat({methodName:n,pluginName:e.name,method:e[n]}):t},[])}function D(t,e){var n=t.replace(j,""),e=e?":".concat(e):"";return["".concat(t).concat(e),"".concat(n).concat(e),"".concat(n,"End").concat(e)]}function U(t,e){t=t.abort;return t&&(!0===t||(bt(t,e)||t&&bt(t.plugins,e)))}function C(t,e){var n=t.abort;if(n){if(!0===n||W(n))return 1;t=n.plugins;return vt(n)&&n.length===e||vt(t)&&t.length===e}}function vt(t){return Array.isArray(t)}function bt(t,e){return!(!t||!vt(t))&&t.includes(e)}function wt(t){t=t.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function xt(g,y,m){var v={};return function(h){return function(d){return function(){var e=$(G.mark(function t(e){var n,r,i,a,o,u,c,s,l,f,p;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.type,r=e.abort,i=e.plugins,a=e,r)return t.abrupt("return",d(e));t.next=4;break;case 4:if(n===ft.enablePlugin&&h.dispatch({type:ft.initializeStart,plugins:i,disabled:[],fromEnable:!0,meta:e.meta}),n===ft.disablePlugin&&setTimeout(function(){return E(e.meta.rid,{payload:e})},0),n===ft.initializeEnd&&(o=y(),u=Object.keys(o),p=u.filter(function(t){return i.includes(t)}).map(function(t){return o[t]}),c=[],s=[],l=e.disabled,f=p.map(function(e){var t=e.loaded,n=e.name;return I(e,t,1e4).then(function(t){return v[n]||(h.dispatch({type:ft.pluginReadyType(n),name:n,events:Object.keys(e).filter(function(t){return!lt.includes(t)})}),v[n]=!0),c=c.concat(n),e}).catch(function(t){if(t instanceof Error)throw new Error(t);return s=s.concat(t.name),t})}),Promise.all(f).then(function(t){var e={plugins:c,failed:s,disabled:l};setTimeout(function(){u.length===f.length+l.length&&h.dispatch(F(F({},{type:ft.ready}),e))},0)})),n!==ft.bootstrap)return/^ready:([^:]*)$/.test(n)&&setTimeout(function(){return mt(h,y,g)},0),t.next=11,function(){return A.apply(this,arguments)}(e,y,g,h,m);t.next=13;break;case 11:return p=t.sent,t.abrupt("return",d(p));case 13:return t.abrupt("return",d(a));case 14:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}()}}}function Et(){var o=this;It(this,Et),p(this,"before",[]),p(this,"after",[]),p(this,"addMiddleware",function(t,e){o[e]=o[e].concat(t)}),p(this,"removeMiddleware",function(e,t){var n=o[t].findIndex(function(t){return t===e});-1!==n&&(o[t]=[].concat(R(o[t].slice(0,n)),R(o[t].slice(n+1))))}),p(this,"dynamicMiddlewares",function(a){return function(i){return function(r){return function(t){var e={getState:i.getState,dispatch:function(t){return i.dispatch(t)}},n=o[a].map(function(t){return t(e)});return rt.apply(void 0,R(n))(r)(t)}}}})}var It=function(t,e){if(!(t instanceof e))throw new TypeError("")};function St(t,e){return t.substring(e.length+1,t.length)}function Ot(t,n,r){return t.reduce(function(t,e){return t[e]=F(F({},r[e]),{enabled:n}),t},r)}function kt(t){try{return JSON.parse(JSON.stringify(t))}catch(t){}return t}var Pt={last:{},history:[]};function jt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Pt,e=1<arguments.length?arguments[1]:void 0,n=e.type,r=e.event,i=e.properties,a=e.options,e=e.meta;if(n!==ft.track)return t;e=kt(F(F({event:r,properties:i},Object.keys(a).length&&{options:a}),{},{meta:e}));return F(F({},t),{last:e,history:t.history.concat(e)})}var _t={actions:[]};function Nt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:_t,e=1<arguments.length?arguments[1]:void 0,n=e.type,r=e.payload;switch(n){case"queue":var i=r&&r.type&&r.type===ft.identify?[e].concat(t.actions):t.actions.concat(e);return F(F({},t),{},{actions:i});case"dequeue":return[];default:return t}}var At=/#.*$/;function Tt(t){var e=function(){if(X)for(var t,e=document.getElementsByTagName("link"),n=0;t=e[n];n++)if("canonical"===t.getAttribute("rel"))return t.getAttribute("href")}();return e?e.match(/\?/)?e:e+t:window.location.href.replace(At,"")}function Lt(t){var e=0<arguments.length&&void 0!==t?t:{};if(!X)return e;var n=(u=document).title,r=u.referrer,i=window,a=i.location,o=i.innerWidth,t=i.innerHeight,u=a.hash,a=Tt(i=a.search),t={title:n,url:a,path:"/"+((a=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(a=a))&&a[3]?a[3].split("?")[0].replace(At,""):""),hash:u,search:i,width:o,height:t};return r&&""!==r&&(t.referrer=r),F(F({},t),e)}var zt,Mt,qt,Dt={last:{},history:[]};function Ut(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Dt,e=1<arguments.length?arguments[1]:void 0,n=e.properties,r=e.options,i=e.meta;if(e.type!==ft.page)return t;r=kt(F({properties:n,meta:i},Object.keys(r).length&&{options:r}));return F(F({},t),{last:r,history:t.history.concat(r)})}zt=function(){if(!X)return!1;var t=navigator.appVersion;return~t.indexOf("Win")?"Windows":~t.indexOf("Mac")?"MacOS":~t.indexOf("X11")?"UNIX":~t.indexOf("Linux")?"Linux":"Unknown OS"}(),Mt=X?document.referrer:null,qt=function(){if(X){var t=navigator,e=t.languages;return t.userLanguage||(e&&e.length?e[0]:t.language)}}(),s=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}}();var Ct={initialized:!1,sessionId:Z(),app:null,version:null,debug:!1,offline:!!X&&!navigator.onLine,os:{name:zt},userAgent:X?navigator.userAgent:"node",library:{name:f,version:"0.10.10"},timezone:s,locale:qt,campaign:{},referrer:Mt};function Rt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ct,e=1<arguments.length?arguments[1]:void 0,n=t.initialized,r=e.type,i=e.campaign;switch(r){case ft.campaign:return F(F({},t),{campaign:i});case ft.offline:return F(F({},t),{offline:!0});case ft.online:return F(F({},t),{offline:!1});default:return n?t:F(F(F({},Ct),t),{initialized:!0})}}var Vt=["plugins","reducers","storage"];function Gt(t){var e=function(t,e,n){var r;X&&(r=window[(n?"add":"remove")+"EventListener"],t.split(" ").forEach(function(t){r(t,e)}))}.bind(null,"online offline",function(){return Promise.resolve(!navigator.onLine).then(t)});return e(!0),1}function $t(){var a=b+f+b;return Q(a,[]),function(i){return function(t,e,n){var n=i(t,e,n),r=n.dispatch;return Object.assign(n,{dispatch:function(t){var e=t.action||t;return o[a].push(e),r(t)}})}}}function Ft(){return function(){return rt(rt.apply(null,arguments),$t())}}function Bt(t){return t?(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]):[];var e}function Xt(t,e,n){var r,i,a=0<arguments.length&&void 0!==t?t:{},t=1<arguments.length?e:void 0,e=2<arguments.length?n:void 0,n=Z();return t&&(x[n]=(r=t,i=function(t){for(var e,n=t||Array.prototype.slice.call(arguments),r=0;r<n.length;r++)if(J(n[r])){e=n[r];break}return e}(e),function(t){i&&i(t),r(t)})),F(F({},a),{},{rid:n,ts:(new Date).getTime()},t?{hasCallback:!0}:{})}function Jt(){function t(){return c}function u(){throw new Error("Abort disabled inListener")}var r,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=e.reducers||{},i=e.initialUser||{},o=(e.plugins||[]).reduce(function(t,n){if(J(n))return t.middlewares=t.middlewares.concat(n),t;if(n.NAMESPACE&&(n.name=n.NAMESPACE),!n.name)throw new Error("https://lytics.dev/errors/1");var e=n.EVENTS?Object.keys(n.EVENTS).map(function(t){return n.EVENTS[t]}):[],r=!(!1===n.enabled),i=!(n.config&&!1===n.config.enabled);t.pluginEnabled[n.name]=r&&i,delete n.enabled,n.methods&&(t.methods[n.name]=Object.keys(n.methods).reduce(function(t,e){var r;return t[e]=(r=n.methods[e],function(){for(var t=Array.prototype.slice.call(arguments),e=new Array(r.length),n=0;n<t.length;n++)e[n]=t[n];return e[e.length]=N,r.apply({instance:N},e)}),t},{}),delete n.methods);e=Object.keys(n).concat(e),e=new Set(t.events.concat(e));if(t.events=Array.from(e),t.pluginsArray=t.pluginsArray.concat(n),t.plugins[n.name])throw new Error(n.name+"AlreadyLoaded");return t.plugins[n.name]=n,t.plugins[n.name].loaded||(t.plugins[n.name].loaded=function(){return!0}),t},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),a=e.storage||{getItem:K,setItem:Q,removeItem:tt},l=(r=a,function(t,e,n){e=e.getState("user")[t];if(e)return e;if(n&&Y(n)&&n[t])return n[t];n=gt(r)[t];return n||K(yt(t))||null}),c=o.plugins,s=o.events.filter(function(t){return!lt.includes(t)}).sort(),f=new Set(s.concat(st).filter(function(t){return!lt.includes(t)})),p=Array.from(f).sort(),d=new Et,h=d.addMiddleware,g=d.removeMiddleware,y=d.dynamicMiddlewares,m=H(),v=gt(a),f=F(F(F(F({},v),i),m.an_uid?{userId:m.an_uid}:{}),m.an_aid?{anonymousId:m.an_aid}:{});f.anonymousId||(f.anonymousId=Z());var b,w,x,E,I,S,O,k,P,j,_,d=F({enable:function(e,n){return new Promise(function(t){z.dispatch({type:ft.enablePlugin,plugins:Bt(e),_:{originalAction:ft.enablePlugin}},t,[n])})},disable:function(e,n){return new Promise(function(t){z.dispatch({type:ft.disablePlugin,plugins:Bt(e),_:{originalAction:ft.disablePlugin}},t,[n])})}},o.methods),N={identify:(x=$(G.mark(function t(e,n,r,i){var a,o,u,c,s;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=W(e)?e:null,o=Y(e)?e:n,u=r||{},c=N.user(),Q(yt(it),a),s=a||o.userId||l(it,N,o),t.abrupt("return",new Promise(function(t){z.dispatch(F({type:ft.identifyStart,userId:s,traits:o||{},options:u,anonymousId:c.anonymousId},c.id&&c.id!==a&&{previousId:c.id}),t,[n,r,i])}));case 7:case"end":return t.stop()}},t)})),function(t,e,n,r){return x.apply(this,arguments)}),track:(w=$(G.mark(function t(e,n,r,i){var a,o,u;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((a=Y(e)?e.event:e)&&W(a)){t.next=3;break}throw new Error("EventMissing");case 3:return o=Y(e)?e:n||{},u=Y(r)?r:{},t.abrupt("return",new Promise(function(t){z.dispatch({type:ft.trackStart,event:a,properties:o,options:u,userId:l(it,N,n),anonymousId:l(at,N,n)},t,[n,r,i])}));case 6:case"end":return t.stop()}},t)})),function(t,e,n,r){return w.apply(this,arguments)}),page:(b=$(G.mark(function t(e,n,r){var i,a;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=Y(e)?e:{},a=Y(n)?n:{},t.abrupt("return",new Promise(function(t){z.dispatch({type:ft.pageStart,properties:Lt(i),options:a,userId:l(it,N,i),anonymousId:l(at,N,i)},t,[e,n,r])}));case 3:case"end":return t.stop()}},t)})),function(t,e,n){return b.apply(this,arguments)}),user:function(t){if(t===it||"id"===t)return l(it,N);if(t===at||"anonId"===t)return l(at,N);var e=N.getState("user");return t?B(e,t):e},reset:function(e){return new Promise(function(t){z.dispatch({type:ft.resetStart},t,e)})},ready:function(t){return N.on(ft.ready,t)},on:function(n,r){if(!n||!J(r))return!1;if(n===ft.bootstrap)throw new Error(".on disabled for "+n);var i=/Start$|Start:/;if("*"===n){var t=function(){return function(e){return function(t){return t.type.match(i)&&r({payload:t,instance:N,plugins:c}),e(t)}}},e=function(){return function(e){return function(t){return t.type.match(i)||r({payload:t,instance:N,plugins:c}),e(t)}}};return h(t,Wt),h(e,Yt),function(){g(t,Wt),g(e,Yt)}}function a(){return function(e){return function(t){return t.type===n&&r({payload:t,instance:N,plugins:c,abort:u}),e(t)}}}var o=n.match(i)?Wt:Yt;return h(a,o),function(){return g(a,o)}},once:function(t,e){if(!t||!J(e))return!1;if(t===ft.bootstrap)throw new Error(".once disabled for "+t);var n=N.on(t,function(t){t=t.payload;e({payload:t,instance:N,plugins:c,abort:u}),n()});return n},getState:function(t){var e=z.getState();return t?B(e,t):Object.assign({},e)},dispatch:function(t){var e,n=W(t)?{type:t}:t;if(e=n.type,st.includes(e))throw new Error("reserved action "+n.type);t=t._||{},t=F(F({},n),{},{_:F({originalAction:n.type},t)});z.dispatch(t)},enablePlugin:d.enable,disablePlugin:d.disable,plugins:d,storage:{getItem:a.getItem,setItem:function(t,e,n){z.dispatch({type:ft.setItemStart,key:t,value:e,options:n})},removeItem:function(t,e){z.dispatch({type:ft.removeItemStart,key:t,options:e})}},setAnonymousId:function(t,e){N.storage.setItem(ot,t,e)},events:{all:p,core:st,plugins:s}},s=o.middlewares.concat([function(){return function(e){return function(t){return t.meta||(t.meta=Xt()),e(t)}}},y(Wt),xt(N,t,{all:p,plugins:s}),(P=a,function(t){return function(a){return function(t){var e=t.type,n=t.key,r=t.value,i=t.options;if(e===ft.setItem||e===ft.removeItem){if(t.abort)return a(t);e===ft.setItem?P.setItem(n,r,i):P.removeItem(n,i)}return a(t)}}}),(k=(O=N).storage.setItem,function(l){return function(s){return function(t){var r,e,n,i,a,o,u,c;return t.type===ft.bootstrap&&(r=t.params,e=t.user,n=t.persistedUser,a=t.initialUser,i=n.userId===e.userId,n.anonymousId!==e.anonymousId&&k(ot,e.anonymousId),i||k(ut,e.userId),a.traits&&k(ct,F(F({},i&&n.traits?n.traits:{}),a.traits)),(a=Object.keys(t.params)).length&&(o=r.an_uid,u=r.an_event,c=a.reduce(function(t,e){var n;return(e.match(pt)||e.match(/^(d|g)clid/))&&(n="campaign"===(n=e.replace(pt,""))?"name":n,t.campaign[n]=r[e]),e.match(dt)&&(t.props[e.replace(dt,"")]=r[e]),e.match(ht)&&(t.traits[e.replace(ht,"")]=r[e]),t},{campaign:{},props:{},traits:{}}),l.dispatch(F(F({type:ft.params,raw:r},c),o?{userId:o}:{})),o&&setTimeout(function(){return O.identify(o,c.traits)},0),u&&setTimeout(function(){return O.track(u,c.props)},0),Object.keys(c.campaign).length&&l.dispatch({type:ft.campaign,campaign:c.campaign}))),s(t)}}}),(E=(p=(p=N).storage).setItem,I=p.removeItem,S=p.getItem,function(u){return function(o){return function(t){var e,n,r=t.userId,i=t.traits,a=t.options;return t.type===ft.reset&&([ut,ct,ot].forEach(function(t){I(t)}),[it,at,"traits"].forEach(function(t){tt(yt(t))})),t.type===ft.identify&&(S(ot)||E(ot,Z()),e=S(ut),n=S(ct)||{},e&&e!==r&&u.dispatch({type:ft.userIdChanged,old:{userId:e,traits:n},new:{userId:r,traits:i},options:a}),r&&E(ut,r),i&&E(ct,F(F({},n),i))),o(t)}}}),y(Yt)]),p={context:Rt,user:(_=a,function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length&&void 0!==e?e:{};if(r.type===ft.setItemEnd){if(r.key===ot)return F(F({},n),{anonymousId:r.value});if(r.key===ut)return F(F({},n),{userId:r.value})}switch(r.type){case ft.identify:return Object.assign({},n,{userId:r.userId,traits:F(F({},n.traits),r.traits)});case ft.reset:return[ut,ot,ct].forEach(function(t){_.removeItem(t)}),Object.assign({},n,{userId:null,anonymousId:null,traits:{}});default:return n}}),page:Ut,track:jt,plugins:(j=t,function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0,t={};if("initialize:aborted"===r.type)return n;if(/^registerPlugin:([^:]*)$/.test(r.type)){var e=St(r.type,"registerPlugin"),i=j()[e];if(!i||!e)return n;var a=r.enabled;return t[e]={enabled:a,initialized:!!a&&Boolean(!i.initialize),loaded:!!a&&Boolean(i.loaded()),config:i.config||{}},F(F({},n),t)}if(/^initialize:([^:]*)$/.test(r.type)){a=St(r.type,ft.initialize),i=j()[a];return i&&a?(t[a]=F(F({},n[a]),{initialized:!0,loaded:Boolean(i.loaded())}),F(F({},n),t)):n}if(/^ready:([^:]*)$/.test(r.type))return t[r.name]=F(F({},n[r.name]),{loaded:!0}),F(F({},n),t);switch(r.type){case ft.disablePlugin:return F(F({},n),Ot(r.plugins,!1,n));case ft.enablePlugin:return F(F({},n),Ot(r.plugins,!0,n));default:return n}}),queue:Nt},y=rt,a=rt;X&&e.debug&&((L=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__)&&(y=L({trace:!0,traceLimit:25})),a=function(t){return 0===arguments.length?$t():Y(V(t))?Ft():Ft().apply(null,arguments)});var A,T,L=(A=e,Object.keys(A).reduce(function(t,e){return Vt.includes(e)||(t[e]=A[e]),t},{})),e={context:L,user:f,plugins:o.pluginsArray.reduce(function(t,e){var n=e.name,r=e.config,i=e.loaded,a=o.pluginEnabled[n];return t[n]={enabled:a,initialized:!!a&&Boolean(!e.initialize),loaded:Boolean(i()),config:r||{}},t},{})},z=et(nt(F(F({},p),n)),e,a(y(function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(a){return function(t,e,n){var e=a(t,e,n),r=e.dispatch,n=[],i={getState:e.getState,dispatch:function(t){return r(t)}},n=o.map(function(t){return t(i)}),r=rt.apply(void 0,R(n))(e.dispatch);return F(F({},e),{},{dispatch:r})}}}.apply(void 0,R(s)))));z.dispatch=(T=z.dispatch,function(t,e,n){n=Xt(t.meta,e,Bt(n)),n=F(F({},t),{meta:n});return T.apply(null,[n])});s=Object.keys(c);z.dispatch({type:ft.bootstrap,plugins:s,config:L,params:m,user:f,initialUser:i,persistedUser:v});var M,q,D,U=s.filter(function(t){return o.pluginEnabled[t]}),C=s.filter(function(t){return!o.pluginEnabled[t]});return z.dispatch({type:ft.registerPlugins,plugins:s,enabled:o.pluginEnabled}),o.pluginsArray.map(function(t,e){var n=t.bootstrap,r=t.config,i=t.name;n&&J(n)&&n({instance:N,config:r,payload:t}),z.dispatch({type:ft.registerPluginType(i),name:i,enabled:o.pluginEnabled[i],plugin:t}),o.pluginsArray.length===e+1&&z.dispatch({type:ft.initializeStart,plugins:U,disabled:C})}),Gt(function(t){z.dispatch({type:t?ft.offline:ft.online})}),M=z,q=t,D=N,setInterval(function(){return mt(M,q,D)},3e3),N}var Wt="before",Yt="after";return t.default=Jt,t.init=Jt,t.Analytics=Jt,t.EVENTS=ft,t.CONSTANTS=w,t}({});
var _analytics=function(t){"use strict";var e=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}};var n=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var r=function(){throw new TypeError("")};var R=function(t){return e(t)||n(t)||r()};function i(t,e){return t(e={exports:{}},e.exports),e.exports}var V=i(function(e){function n(t){return(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})(t)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},r(t)}e.exports=r}),G=i(function(t){var e=function(o){var c,t=Object.prototype,s=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i,a,o,u,e=e&&e.prototype instanceof y?e:y,e=Object.create(e.prototype),r=new O(r||[]);return e._invoke=(i=t,a=n,o=r,u=f,function(t,e){if(u===d)throw new Error("");if(u===h){if("throw"===t)throw e;return P()}for(o.method=t,o.arg=e;;){var n=o.delegate;if(n){var r=function t(e,n){var r=e.iterator[n.method];if(r===c){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=c,t(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("")}return g}r=l(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var r=r.arg;if(!r)return n.method="throw",n.arg=new TypeError(""),n.delegate=null,g;{if(!r.done)return r;n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=c)}n.delegate=null;return g}(n,o);if(r){if(r===g)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(u===f)throw u=h,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);u=d;r=l(i,a,o);if("normal"===r.type){if(u=o.done?h:p,r.arg!==g)return{value:r.arg,done:o.done}}else"throw"===r.type&&(u=h,o.method="throw",o.arg=r.arg)}}),e}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}o.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",g={};function y(){}function m(){}function v(){}var b={};b[r]=function(){return this};e=Object.getPrototypeOf,e=e&&e(e(k([])));e&&e!==t&&s.call(e,r)&&(b=e);var w=v.prototype=y.prototype=Object.create(b);function x(t){["next","throw","return"].forEach(function(e){a(t,e,function(t){return this._invoke(e,t)})})}function E(o,u){var e;this._invoke=function(n,r){function t(){return new u(function(t,e){!function e(t,n,r,i){t=l(o[t],o,n);if("throw"!==t.type){var a=t.arg,n=a.value;return n&&"object"==typeof n&&s.call(n,"__await")?u.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):u.resolve(n).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,i)})}i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function k(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,t=function t(){for(;++n<e.length;)if(s.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return t.next=t}}return{next:P}}function P(){return{value:c,done:!0}}return((m.prototype=w.constructor=v).constructor=m).displayName=a(v,i,"GeneratorFunction"),o.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,a(t,i,"GeneratorFunction")),t.prototype=Object.create(w),t},o.awrap=function(t){return{__await:t}},x(E.prototype),E.prototype[n]=function(){return this},o.AsyncIterator=E,o.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var a=new E(u(t,e,n,r),i);return o.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},x(w),a(w,i,"Generator"),w[r]=function(){return this},w.toString=function(){return"[object Generator]"},o.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},o.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return a.type="throw",a.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],a=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var o=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(o&&u){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(o){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!u)throw new Error("");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r,i=n.completion;return"throw"===i.type&&(r=i.arg,S(n)),r}}throw new Error("")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),g}},o}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});function c(t,e,n,r,i,a,o){try{var u=t[a](o),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,i)}var $=function(u){return function(){var t=this,o=arguments;return new Promise(function(e,n){var r=u.apply(t,o);function i(t){c(r,e,n,i,a,"next",t)}function a(t){c(r,e,n,i,a,"throw",t)}i(void 0)})}};var p=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t};function a(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}var F=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e};function B(t,e,n,r,i){for(e=e.split?e.split("."):e,r=0;r<e.length;r++)t=t?t[e[r]]:i;return t===i?n:t}var X="undefined"!=typeof window;function J(t){return"function"==typeof t}function W(t){return"string"==typeof t}function Y(t){if("object"==typeof t&&null!==t){for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}}function u(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function H(e){return function(t){for(var e,n={},r=/([^&=]+)=?([^&]*)/g;a=r.exec(t);){var i=u(a[1]),a=u(a[2]);"[]"===i.substring(i.length-2)?(n[i=i.substring(0,i.length-2)]||(n[i]=[])).push(a):n[i]=""===a||a}for(e in n){var o=e.split("[");1<o.length&&(function(t,e,n){for(var r=e.length-1,i=0;i<r;++i){var a=e[i];a in t||(t[a]={}),t=t[a]}t[e[r]]=n}(n,o.map(function(t){return t.replace(/[?[\]\\ ]/g,"")}),n[e]),delete n[e])}return n}(function(){if(e){var t=e.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return X&&window.location.search.substring(1)}())}function Z(){for(var t="",e=0,n=4294967295*Math.random()|0;e++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&n;t+="-"==r||"4"==r?r:("x"==r?i:3&i|8).toString(16),n=e%8==0?4294967295*Math.random()|0:n>>4}return t}var o="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0;function K(t){return o[t]}function Q(t,e){return o[t]=e}function tt(t){Q(t)}var g="function",y="undefined",m="reducer",s="@@redux/",v=s+"INIT",l=s+Math.random().toString(36),d=function(){return("undefined"==typeof Symbol?"undefined":V(Symbol))===g&&Symbol.observable||"@@observable"}(),h=" != "+g;function et(t,e,n){if(V(e)===g&&V(n)===y&&(n=e,e=void 0),V(n)!==y){if(V(n)!==g)throw new Error("enhancer"+h);return n(et)(t,e)}if(V(t)!==g)throw new Error(m+h);var r=t,i=e,a=[],o=a,u=!1;function c(){o===a&&(o=a.slice())}function s(){return i}function l(e){if(V(e)!==g)throw new Error("Listener"+h);var n=!0;return c(),o.push(e),function(){var t;n&&(n=!1,c(),t=o.indexOf(e),o.splice(t,1))}}function f(t){if(!Y(t))throw new Error("Act != obj");if(V(t.type)===y)throw new Error("ActType "+y);if(u)throw new Error("Dispatch in "+m);try{u=!0,i=r(i,t)}finally{u=!1}for(var e=a=o,n=0;n<e.length;n++)(0,e[n])();return t}return f({type:v}),p({dispatch:f,subscribe:l,getState:s,replaceReducer:function(t){if(V(t)!==g)throw new Error("next "+m+h);r=t,f({type:v})}},d,function(){var n=l;return p({subscribe:function(t){if("object"!==V(t))throw new TypeError("Observer != obj");function e(){t.next&&t.next(i)}return e(),{unsubscribe:n(e)}}},d,function(){return this})})}function nt(t){for(var e=Object.keys(t),p={},n=0;n<e.length;n++){var r=e[n];V(t[r])===g&&(p[r]=t[r])}var d,i,h=Object.keys(p);try{i=p,Object.keys(i).forEach(function(t){var e=i[t],n=e(void 0,{type:v});if(V(n)===y||V(e(void 0,{type:l}))===y)throw new Error(m+" "+t+" "+y)})}catch(t){d=t}return function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0;if(d)throw d;for(var i=!1,a={},o=0;o<h.length;o++){var u=h[o],c=p[u],s=n[u],l=c(s,r);if(V(l)===y){var f=(f=u,"action "+((c=(c=r)&&c.type)&&c.toString()||"?")+m+" "+f+" returns "+y);throw new Error(f)}a[u]=l,i=i||l!==s}return i?a:n}}function rt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}var f="analytics",it="userId",at="anonymousId",b="__",ot=b+"anon_id",ut=b+"user_id",ct=b+"user_traits",w=Object.freeze({ANON_ID:ot,USER_ID:ut,USER_TRAITS:ct}),st=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],lt=["name","EVENTS","config","loaded"],ft=st.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:".concat(t)},pluginReadyType:function(t){return"ready:".concat(t)}});var pt=/^utm_/,dt=/^an_prop_/,ht=/^an_trait_/;function gt(t){return{userId:t.getItem(ut),anonymousId:t.getItem(ot),traits:t.getItem(ct)}}var yt=function(t){return b+"TEMP"+b+t};var x={};function E(t,e){x[t]&&J(x[t])&&(x[t](e),delete x[t])}function I(i,a,o){return new Promise(function(e,n){return a()?e(i):o<1?n(F(F({},i),{},{queue:!0})):(r=10,new Promise(function(t){return setTimeout(t,r)}).then(function(t){return I(i,a,o-10).then(e,n)}));var r})}function mt(i,t,a){var n,o=t(),e=i.getState(),u=e.plugins,t=e.context,c=e.queue,s=e.user;!t.offline&&c&&c.actions&&c.actions.length&&((n=c.actions.reduce(function(t,e,n){return u[e.plugin].loaded?(t.process.push(e),t.processIndex.push(n)):(t.requeue.push(e),t.requeueIndex.push(n)),t},{processIndex:[],process:[],requeue:[],requeueIndex:[]})).processIndex&&n.processIndex.length&&(n.processIndex.forEach(function(t){var e=c.actions[t],n=e.plugin,r=e.payload.type,t=o[n][r];t&&J(t)&&(t({payload:e=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return[it,at].reduce(function(t,e){return n.hasOwnProperty(e)&&r[e]&&r[e]!==n[e]&&(t[e]=r[e]),t},n)}(e.payload,s),config:u[n].config,instance:a}),n="".concat(r,":").concat(n),i.dispatch(F(F({},e),{},{type:n,_:{called:n,from:"queueDrain"}})))}),t=c.actions.filter(function(t,e){return!~n.processIndex.indexOf(e)}),c.actions=t))}var S=function(t){if(Array.isArray(t))return t};var O=function(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}return n};var k=function(){throw new TypeError("")};var P=function(t,e){return S(t)||O(t,e)||k()};var j=/Start$/,_=/^bootstrap/,N=/^ready/;function A(){return(A=$(G.mark(function t(n,e,r,i,a){var o,u,c,s,l,f,p,d,h;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=J(e)?e():e,u=n.type,c=u.replace(j,""),n._&&n._.called)return t.abrupt("return",n);t.next=5;break;case 5:return s=r.getState(),f=function(e,t,n){var r=1<arguments.length&&void 0!==t?t:{},i=2<arguments.length&&void 0!==n?n:{};return Object.keys(e).filter(function(t){var e=i.plugins||{};return"boolean"==typeof e[t]?e[t]:!1!==e.all&&(!r[t]||!1!==r[t].enabled)}).map(function(t){return e[t]})}(o,s.plugins,n.options),u===ft.initializeStart&&n.fromEnable&&(f=Object.keys(s.plugins).filter(function(t){var e=s.plugins[t];return n.plugins.includes(t)&&!e.initialized}).map(function(t){return o[t]})),l=f.map(function(t){return t.name}),f=function(a,o){var t=D(a).map(function(t){return q(t,o)});return o.reduce(function(t,e){var n=e.name,r=D(a,n).map(function(t){return q(t,o)}),i=P(r,3),e=i[0],r=i[1],i=i[2];return e.length&&(t.beforeNS[n]=e),r.length&&(t.duringNS[n]=r),i.length&&(t.afterNS[n]=i),t},{before:t[0],beforeNS:{},during:t[1],duringNS:{},after:t[2],afterNS:{}})}(u,f),t.next=12,T({action:n,data:{exact:f.before,namespaced:f.beforeNS},state:s,allPlugins:o,allMatches:f,instance:r,store:i,EVENTS:a});case 12:if(C(p=t.sent,l.length))return t.abrupt("return",p);t.next=15;break;case 15:if(u!==c){t.next=19;break}d=p,t.next=22;break;case 19:return t.next=21,T({action:F(F({},p),{},{type:c}),data:{exact:f.during,namespaced:f.duringNS},state:s,allPlugins:o,allMatches:f,instance:r,store:i,EVENTS:a});case 21:d=t.sent;case 22:if(u.match(j))return h="".concat(c,"End"),t.next=26,T({action:F(F({},d),{},{type:h}),data:{exact:f.after,namespaced:f.afterNS},state:s,allPlugins:o,allMatches:f,instance:r,store:i,EVENTS:a});t.next=28;break;case 26:(h=t.sent).meta&&h.meta.hasCallback&&E(h.meta.rid,{payload:h});case 28:return t.abrupt("return",p);case 29:case"end":return t.stop()}},t)}))).apply(this,arguments)}function T(){return L.apply(this,arguments)}function L(){return(L=$(G.mark(function t(e){var p,o,d,h,n,g,r,y,i,m,v,b,w,x,a,u;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return p=e.data,o=e.action,d=e.instance,u=e.state,h=e.allPlugins,n=e.allMatches,g=e.store,r=e.EVENTS,y=u.plugins,i=u.context,m=o.type,v=m.match(j),u=p.exact.map(function(t){return t.pluginName}),v&&(u=n.during.map(function(t){return t.pluginName})),b=function(d,h){return function(t,e,n){var r=e.config,i=e.name,e="".concat(i,".").concat(t.type);n&&(e=n.event);var a,o,u,c,s,l,f,p,e=t.type.match(j)?(u=i,c=e,s=h,l=n,f=t,function(t,e){var n=l?l.name:u,r=e&&vt(e)?e:s;if(l&&(!(r=e&&vt(e)?e:[u]).includes(u)||1!==r.length))throw new Error("Method ".concat(c," can only abort ").concat(u," plugin. ").concat(JSON.stringify(r)," input valid"));return F(F({},f),{},{abort:{reason:t,plugins:r,caller:c,_:n}})}):(a=t,o=e,function(){throw new Error(a.type+" action not cancellable. Remove abort in "+o)});return{payload:(p=t,Object.keys(p).reduce(function(t,e){return"type"===e||(Y(p[e])?t[e]=Object.assign({},p[e]):t[e]=p[e]),t},{})),instance:d,config:r||{},abort:e}}}(d,u),w=p.exact.reduce(function(t,e){var n=e.pluginName,r=e.methodName,e=!1;return r.match(/^initialize/)||r.match(/^reset/)||(e=!y[n].loaded),i.offline&&r.match(/^(page|track|identify)/)&&(e=!0),t["".concat(n)]=e,t},{}),t.next=10,p.exact.reduce(function(){var r=$(G.mark(function t(e,n,r){var u,i,a;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=n.pluginName,t.next=3,e;case 3:if(i=t.sent,p.namespaced&&p.namespaced[u])return t.next=7,p.namespaced[u].reduce(function(){var r=$(G.mark(function t(e,n,r){var i,a,o;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=function(r,i,a){return function(t,e){var n=a||i;return F(F({},r),{},{abort:{reason:t,plugins:e||[i],caller:m,from:n}})}},t.next=3,e;case 3:if(i=t.sent,n.method&&J(n.method)){t.next=6;break}return t.abrupt("return",i);case 6:return function(t,e){var n=wt(t);if(n&&n.name===e){var r=wt(n.method),r=r?"or "+r.method:"";throw new Error([e+" plugin is calling method "+t,"Plugins cant call self","Use ".concat(n.method," ").concat(r," in ").concat(e," plugin insteadof ").concat(t)].join("\n"))}}(n.methodName,n.pluginName),t.next=9,n.method({payload:i,instance:d,abort:a(i,u,n.pluginName),config:M(n.pluginName,y,h),plugins:y});case 9:return o=t.sent,o=Y(o)?o:{},t.abrupt("return",Promise.resolve(F(F({},i),o)));case 12:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve(o));t.next=11;break;case 7:a=t.sent,i[u]=a,t.next=12;break;case 11:i[u]=o;case 12:return t.abrupt("return",Promise.resolve(i));case 13:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve({}));case 10:return x=t.sent,t.next=13,p.exact.reduce(function(){var r=$(G.mark(function t(e,n,r){var i,a,o,u,c,s,l,f;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=p.exact.length===r+1,a=n.pluginName,o=h[a],t.next=5,e;case 5:if(u=t.sent,c=x[a]||{},v&&(c=u),U(c,a))return z({data:c,method:m,instance:d,pluginName:a,store:g}),t.abrupt("return",Promise.resolve(u));t.next=11;break;case 11:if(U(u,a))return i&&z({data:u,method:m,instance:d,store:g}),t.abrupt("return",Promise.resolve(u));t.next=14;break;case 14:if(w.hasOwnProperty(a)&&!0===w[a])return g.dispatch({type:"queue",plugin:a,payload:c,_:{called:"queue",from:"queueMechanism"}}),t.abrupt("return",Promise.resolve(u));t.next=17;break;case 17:return s=b(x[a],h[a]),t.next=20,o[m]({abort:s.abort,payload:c,instance:d,config:M(a,y,h),plugins:y});case 20:return f=t.sent,l=Y(f)?f:{},s=F(F({},u),l),U(f=x[a],a)?z({data:f,method:m,instance:d,pluginName:a,store:g}):(l="".concat(m,":").concat(a),(l.match(/:/g)||[]).length<2&&!m.match(_)&&!m.match(N)&&(f=v?s:c,d.dispatch(F(F({},f),{},{type:l,_:{called:l,from:"submethod"}})))),t.abrupt("return",Promise.resolve(s));case 26:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve(o));case 13:if(a=t.sent,m.match(j)||m.match(/^registerPlugin/)||m.match(N)||m.match(_)||m.match(/^params/)||m.match(/^userIdChanged/)){t.next=21;break}if(r.plugins.includes(m),a._&&a._.originalAction===m)return t.abrupt("return",a);t.next=18;break;case 18:u=F(F({},a),{_:{originalAction:a.type,called:a.type,from:"engineEnd"}}),C(a,p.exact.length)&&!m.match(/End$/)&&(u=F(F({},u),{type:a.type+"Aborted"})),g.dispatch(u);case 21:return t.abrupt("return",a);case 22:case"end":return t.stop()}},t)}))).apply(this,arguments)}function z(t){var e=t.data,n=t.method,r=(t.instance,t.pluginName),r=n+"Aborted"+(r?":"+r:"");t.store.dispatch(F(F({},e),{},{type:r,_:{called:r,from:"abort"}}))}function M(t,e,n){t=e[t]||n[t];return t&&t.config?t.config:{}}function q(n,t){return t.reduce(function(t,e){return e[n]?t.concat({methodName:n,pluginName:e.name,method:e[n]}):t},[])}function D(t,e){var n=t.replace(j,""),e=e?":".concat(e):"";return["".concat(t).concat(e),"".concat(n).concat(e),"".concat(n,"End").concat(e)]}function U(t,e){t=t.abort;return t&&(!0===t||(bt(t,e)||t&&bt(t.plugins,e)))}function C(t,e){var n=t.abort;if(n){if(!0===n||W(n))return 1;t=n.plugins;return vt(n)&&n.length===e||vt(t)&&t.length===e}}function vt(t){return Array.isArray(t)}function bt(t,e){return!(!t||!vt(t))&&t.includes(e)}function wt(t){t=t.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function xt(g,y,m){var v={};return function(h){return function(d){return function(){var e=$(G.mark(function t(e){var n,r,i,a,o,u,c,s,l,f,p;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.type,r=e.abort,i=e.plugins,a=e,r)return t.abrupt("return",d(e));t.next=4;break;case 4:if(n===ft.enablePlugin&&h.dispatch({type:ft.initializeStart,plugins:i,disabled:[],fromEnable:!0,meta:e.meta}),n===ft.disablePlugin&&setTimeout(function(){return E(e.meta.rid,{payload:e})},0),n===ft.initializeEnd&&(o=y(),u=Object.keys(o),p=u.filter(function(t){return i.includes(t)}).map(function(t){return o[t]}),c=[],s=[],l=e.disabled,f=p.map(function(e){var t=e.loaded,n=e.name;return I(e,t,1e4).then(function(t){return v[n]||(h.dispatch({type:ft.pluginReadyType(n),name:n,events:Object.keys(e).filter(function(t){return!lt.includes(t)})}),v[n]=!0),c=c.concat(n),e}).catch(function(t){if(t instanceof Error)throw new Error(t);return s=s.concat(t.name),t})}),Promise.all(f).then(function(t){var e={plugins:c,failed:s,disabled:l};setTimeout(function(){u.length===f.length+l.length&&h.dispatch(F(F({},{type:ft.ready}),e))},0)})),n!==ft.bootstrap)return/^ready:([^:]*)$/.test(n)&&setTimeout(function(){return mt(h,y,g)},0),t.next=11,function(){return A.apply(this,arguments)}(e,y,g,h,m);t.next=13;break;case 11:return p=t.sent,t.abrupt("return",d(p));case 13:return t.abrupt("return",d(a));case 14:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}()}}}function Et(){var o=this;It(this,Et),p(this,"before",[]),p(this,"after",[]),p(this,"addMiddleware",function(t,e){o[e]=o[e].concat(t)}),p(this,"removeMiddleware",function(e,t){var n=o[t].findIndex(function(t){return t===e});-1!==n&&(o[t]=[].concat(R(o[t].slice(0,n)),R(o[t].slice(n+1))))}),p(this,"dynamicMiddlewares",function(a){return function(i){return function(r){return function(t){var e={getState:i.getState,dispatch:function(t){return i.dispatch(t)}},n=o[a].map(function(t){return t(e)});return rt.apply(void 0,R(n))(r)(t)}}}})}var It=function(t,e){if(!(t instanceof e))throw new TypeError("")};function St(t,e){return t.substring(e.length+1,t.length)}function Ot(t,n,r){return t.reduce(function(t,e){return t[e]=F(F({},r[e]),{enabled:n}),t},r)}function kt(t){try{return JSON.parse(JSON.stringify(t))}catch(t){}return t}var Pt={last:{},history:[]};function jt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Pt,e=1<arguments.length?arguments[1]:void 0,n=e.type,r=e.event,i=e.properties,a=e.options,e=e.meta;if(n!==ft.track)return t;e=kt(F(F({event:r,properties:i},Object.keys(a).length&&{options:a}),{},{meta:e}));return F(F({},t),{last:e,history:t.history.concat(e)})}var _t={actions:[]};function Nt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:_t,e=1<arguments.length?arguments[1]:void 0,n=e.type,r=e.payload;switch(n){case"queue":var i=r&&r.type&&r.type===ft.identify?[e].concat(t.actions):t.actions.concat(e);return F(F({},t),{},{actions:i});case"dequeue":return[];default:return t}}var At=/#.*$/;function Tt(t){var e=function(){if(X)for(var t,e=document.getElementsByTagName("link"),n=0;t=e[n];n++)if("canonical"===t.getAttribute("rel"))return t.getAttribute("href")}();return e?e.match(/\?/)?e:e+t:window.location.href.replace(At,"")}function Lt(t){var e=0<arguments.length&&void 0!==t?t:{};if(!X)return e;var n=(u=document).title,r=u.referrer,i=window,a=i.location,o=i.innerWidth,t=i.innerHeight,u=a.hash,a=Tt(i=a.search),t={title:n,url:a,path:"/"+((a=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(a=a))&&a[3]?a[3].split("?")[0].replace(At,""):""),hash:u,search:i,width:o,height:t};return r&&""!==r&&(t.referrer=r),F(F({},t),e)}var zt,Mt,qt,Dt={last:{},history:[]};function Ut(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Dt,e=1<arguments.length?arguments[1]:void 0,n=e.properties,r=e.options,i=e.meta;if(e.type!==ft.page)return t;r=kt(F({properties:n,meta:i},Object.keys(r).length&&{options:r}));return F(F({},t),{last:r,history:t.history.concat(r)})}zt=function(){if(!X)return!1;var t=navigator.appVersion;return~t.indexOf("Win")?"Windows":~t.indexOf("Mac")?"MacOS":~t.indexOf("X11")?"UNIX":~t.indexOf("Linux")?"Linux":"Unknown OS"}(),Mt=X?document.referrer:null,qt=function(){if(X){var t=navigator,e=t.languages;return t.userLanguage||(e&&e.length?e[0]:t.language)}}(),s=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}}();var Ct={initialized:!1,sessionId:Z(),app:null,version:null,debug:!1,offline:!!X&&!navigator.onLine,os:{name:zt},userAgent:X?navigator.userAgent:"node",library:{name:f,version:"0.10.12"},timezone:s,locale:qt,campaign:{},referrer:Mt};function Rt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ct,e=1<arguments.length?arguments[1]:void 0,n=t.initialized,r=e.type,i=e.campaign;switch(r){case ft.campaign:return F(F({},t),{campaign:i});case ft.offline:return F(F({},t),{offline:!0});case ft.online:return F(F({},t),{offline:!1});default:return n?t:F(F(F({},Ct),t),{initialized:!0})}}var Vt=["plugins","reducers","storage"];function Gt(t){var e=function(t,e,n){var r;X&&(r=window[(n?"add":"remove")+"EventListener"],t.split(" ").forEach(function(t){r(t,e)}))}.bind(null,"online offline",function(){return Promise.resolve(!navigator.onLine).then(t)});return e(!0),1}function $t(){var a=b+f+b;return Q(a,[]),function(i){return function(t,e,n){var n=i(t,e,n),r=n.dispatch;return Object.assign(n,{dispatch:function(t){var e=t.action||t;return o[a].push(e),r(t)}})}}}function Ft(){return function(){return rt(rt.apply(null,arguments),$t())}}function Bt(t){return t?(e=t,"[object Array]"===Object.prototype.toString.call(e)?t:[t]):[];var e}function Xt(t,e,n){var r,i,a=0<arguments.length&&void 0!==t?t:{},t=1<arguments.length?e:void 0,e=2<arguments.length?n:void 0,n=Z();return t&&(x[n]=(r=t,i=function(t){for(var e,n=t||Array.prototype.slice.call(arguments),r=0;r<n.length;r++)if(J(n[r])){e=n[r];break}return e}(e),function(t){i&&i(t),r(t)})),F(F({},a),{},{rid:n,ts:(new Date).getTime()},t?{hasCallback:!0}:{})}function Jt(){function t(){return c}function u(){throw new Error("Abort disabled inListener")}var r,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=e.reducers||{},i=e.initialUser||{},o=(e.plugins||[]).reduce(function(t,n){if(J(n))return t.middlewares=t.middlewares.concat(n),t;if(n.NAMESPACE&&(n.name=n.NAMESPACE),!n.name)throw new Error("https://lytics.dev/errors/1");var e=n.EVENTS?Object.keys(n.EVENTS).map(function(t){return n.EVENTS[t]}):[],r=!(!1===n.enabled),i=!(n.config&&!1===n.config.enabled);t.pluginEnabled[n.name]=r&&i,delete n.enabled,n.methods&&(t.methods[n.name]=Object.keys(n.methods).reduce(function(t,e){var r;return t[e]=(r=n.methods[e],function(){for(var t=Array.prototype.slice.call(arguments),e=new Array(r.length),n=0;n<t.length;n++)e[n]=t[n];return e[e.length]=N,r.apply({instance:N},e)}),t},{}),delete n.methods);e=Object.keys(n).concat(e),e=new Set(t.events.concat(e));if(t.events=Array.from(e),t.pluginsArray=t.pluginsArray.concat(n),t.plugins[n.name])throw new Error(n.name+"AlreadyLoaded");return t.plugins[n.name]=n,t.plugins[n.name].loaded||(t.plugins[n.name].loaded=function(){return!0}),t},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),a=e.storage||{getItem:K,setItem:Q,removeItem:tt},l=(r=a,function(t,e,n){e=e.getState("user")[t];if(e)return e;if(n&&Y(n)&&n[t])return n[t];n=gt(r)[t];return n||K(yt(t))||null}),c=o.plugins,s=o.events.filter(function(t){return!lt.includes(t)}).sort(),f=new Set(s.concat(st).filter(function(t){return!lt.includes(t)})),p=Array.from(f).sort(),d=new Et,h=d.addMiddleware,g=d.removeMiddleware,y=d.dynamicMiddlewares,m=H(),v=gt(a),f=F(F(F(F({},v),i),m.an_uid?{userId:m.an_uid}:{}),m.an_aid?{anonymousId:m.an_aid}:{});f.anonymousId||(f.anonymousId=Z());var b,w,x,E,I,S,O,k,P,j,_,d=F({enable:function(e,n){return new Promise(function(t){z.dispatch({type:ft.enablePlugin,plugins:Bt(e),_:{originalAction:ft.enablePlugin}},t,[n])})},disable:function(e,n){return new Promise(function(t){z.dispatch({type:ft.disablePlugin,plugins:Bt(e),_:{originalAction:ft.disablePlugin}},t,[n])})}},o.methods),N={identify:(x=$(G.mark(function t(e,n,r,i){var a,o,u,c,s;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=W(e)?e:null,o=Y(e)?e:n,u=r||{},c=N.user(),Q(yt(it),a),s=a||o.userId||l(it,N,o),t.abrupt("return",new Promise(function(t){z.dispatch(F({type:ft.identifyStart,userId:s,traits:o||{},options:u,anonymousId:c.anonymousId},c.id&&c.id!==a&&{previousId:c.id}),t,[n,r,i])}));case 7:case"end":return t.stop()}},t)})),function(t,e,n,r){return x.apply(this,arguments)}),track:(w=$(G.mark(function t(e,n,r,i){var a,o,u;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((a=Y(e)?e.event:e)&&W(a)){t.next=3;break}throw new Error("EventMissing");case 3:return o=Y(e)?e:n||{},u=Y(r)?r:{},t.abrupt("return",new Promise(function(t){z.dispatch({type:ft.trackStart,event:a,properties:o,options:u,userId:l(it,N,n),anonymousId:l(at,N,n)},t,[n,r,i])}));case 6:case"end":return t.stop()}},t)})),function(t,e,n,r){return w.apply(this,arguments)}),page:(b=$(G.mark(function t(e,n,r){var i,a;return G.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=Y(e)?e:{},a=Y(n)?n:{},t.abrupt("return",new Promise(function(t){z.dispatch({type:ft.pageStart,properties:Lt(i),options:a,userId:l(it,N,i),anonymousId:l(at,N,i)},t,[e,n,r])}));case 3:case"end":return t.stop()}},t)})),function(t,e,n){return b.apply(this,arguments)}),user:function(t){if(t===it||"id"===t)return l(it,N);if(t===at||"anonId"===t)return l(at,N);var e=N.getState("user");return t?B(e,t):e},reset:function(e){return new Promise(function(t){z.dispatch({type:ft.resetStart},t,e)})},ready:function(t){return N.on(ft.ready,t)},on:function(n,r){if(!n||!J(r))return!1;if(n===ft.bootstrap)throw new Error(".on disabled for "+n);var i=/Start$|Start:/;if("*"===n){var t=function(){return function(e){return function(t){return t.type.match(i)&&r({payload:t,instance:N,plugins:c}),e(t)}}},e=function(){return function(e){return function(t){return t.type.match(i)||r({payload:t,instance:N,plugins:c}),e(t)}}};return h(t,Wt),h(e,Yt),function(){g(t,Wt),g(e,Yt)}}function a(){return function(e){return function(t){return t.type===n&&r({payload:t,instance:N,plugins:c,abort:u}),e(t)}}}var o=n.match(i)?Wt:Yt;return h(a,o),function(){return g(a,o)}},once:function(t,e){if(!t||!J(e))return!1;if(t===ft.bootstrap)throw new Error(".once disabled for "+t);var n=N.on(t,function(t){t=t.payload;e({payload:t,instance:N,plugins:c,abort:u}),n()});return n},getState:function(t){var e=z.getState();return t?B(e,t):Object.assign({},e)},dispatch:function(t){var e,n=W(t)?{type:t}:t;if(e=n.type,st.includes(e))throw new Error("reserved action "+n.type);t=t._||{},t=F(F({},n),{},{_:F({originalAction:n.type},t)});z.dispatch(t)},enablePlugin:d.enable,disablePlugin:d.disable,plugins:d,storage:{getItem:a.getItem,setItem:function(t,e,n){z.dispatch({type:ft.setItemStart,key:t,value:e,options:n})},removeItem:function(t,e){z.dispatch({type:ft.removeItemStart,key:t,options:e})}},setAnonymousId:function(t,e){N.storage.setItem(ot,t,e)},events:{all:p,core:st,plugins:s}},s=o.middlewares.concat([function(){return function(e){return function(t){return t.meta||(t.meta=Xt()),e(t)}}},y(Wt),xt(N,t,{all:p,plugins:s}),(P=a,function(t){return function(a){return function(t){var e=t.type,n=t.key,r=t.value,i=t.options;if(e===ft.setItem||e===ft.removeItem){if(t.abort)return a(t);e===ft.setItem?P.setItem(n,r,i):P.removeItem(n,i)}return a(t)}}}),(k=(O=N).storage.setItem,function(l){return function(s){return function(t){var r,e,n,i,a,o,u,c;return t.type===ft.bootstrap&&(r=t.params,e=t.user,n=t.persistedUser,a=t.initialUser,i=n.userId===e.userId,n.anonymousId!==e.anonymousId&&k(ot,e.anonymousId),i||k(ut,e.userId),a.traits&&k(ct,F(F({},i&&n.traits?n.traits:{}),a.traits)),(a=Object.keys(t.params)).length&&(o=r.an_uid,u=r.an_event,c=a.reduce(function(t,e){var n;return(e.match(pt)||e.match(/^(d|g)clid/))&&(n="campaign"===(n=e.replace(pt,""))?"name":n,t.campaign[n]=r[e]),e.match(dt)&&(t.props[e.replace(dt,"")]=r[e]),e.match(ht)&&(t.traits[e.replace(ht,"")]=r[e]),t},{campaign:{},props:{},traits:{}}),l.dispatch(F(F({type:ft.params,raw:r},c),o?{userId:o}:{})),o&&setTimeout(function(){return O.identify(o,c.traits)},0),u&&setTimeout(function(){return O.track(u,c.props)},0),Object.keys(c.campaign).length&&l.dispatch({type:ft.campaign,campaign:c.campaign}))),s(t)}}}),(E=(p=(p=N).storage).setItem,I=p.removeItem,S=p.getItem,function(u){return function(o){return function(t){var e,n,r=t.userId,i=t.traits,a=t.options;return t.type===ft.reset&&([ut,ct,ot].forEach(function(t){I(t)}),[it,at,"traits"].forEach(function(t){tt(yt(t))})),t.type===ft.identify&&(S(ot)||E(ot,Z()),e=S(ut),n=S(ct)||{},e&&e!==r&&u.dispatch({type:ft.userIdChanged,old:{userId:e,traits:n},new:{userId:r,traits:i},options:a}),r&&E(ut,r),i&&E(ct,F(F({},n),i))),o(t)}}}),y(Yt)]),p={context:Rt,user:(_=a,function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length&&void 0!==e?e:{};if(r.type===ft.setItemEnd){if(r.key===ot)return F(F({},n),{anonymousId:r.value});if(r.key===ut)return F(F({},n),{userId:r.value})}switch(r.type){case ft.identify:return Object.assign({},n,{userId:r.userId,traits:F(F({},n.traits),r.traits)});case ft.reset:return[ut,ot,ct].forEach(function(t){_.removeItem(t)}),Object.assign({},n,{userId:null,anonymousId:null,traits:{}});default:return n}}),page:Ut,track:jt,plugins:(j=t,function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0,t={};if("initialize:aborted"===r.type)return n;if(/^registerPlugin:([^:]*)$/.test(r.type)){var e=St(r.type,"registerPlugin"),i=j()[e];if(!i||!e)return n;var a=r.enabled;return t[e]={enabled:a,initialized:!!a&&Boolean(!i.initialize),loaded:!!a&&Boolean(i.loaded()),config:i.config||{}},F(F({},n),t)}if(/^initialize:([^:]*)$/.test(r.type)){a=St(r.type,ft.initialize),i=j()[a];return i&&a?(t[a]=F(F({},n[a]),{initialized:!0,loaded:Boolean(i.loaded())}),F(F({},n),t)):n}if(/^ready:([^:]*)$/.test(r.type))return t[r.name]=F(F({},n[r.name]),{loaded:!0}),F(F({},n),t);switch(r.type){case ft.disablePlugin:return F(F({},n),Ot(r.plugins,!1,n));case ft.enablePlugin:return F(F({},n),Ot(r.plugins,!0,n));default:return n}}),queue:Nt},y=rt,a=rt;X&&e.debug&&((L=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__)&&(y=L({trace:!0,traceLimit:25})),a=function(t){return 0===arguments.length?$t():Y(V(t))?Ft():Ft().apply(null,arguments)});var A,T,L=(A=e,Object.keys(A).reduce(function(t,e){return Vt.includes(e)||(t[e]=A[e]),t},{})),e={context:L,user:f,plugins:o.pluginsArray.reduce(function(t,e){var n=e.name,r=e.config,i=e.loaded,a=o.pluginEnabled[n];return t[n]={enabled:a,initialized:!!a&&Boolean(!e.initialize),loaded:Boolean(i()),config:r||{}},t},{})},z=et(nt(F(F({},p),n)),e,a(y(function(){for(var t=arguments.length,o=new Array(t),e=0;e<t;e++)o[e]=arguments[e];return function(a){return function(t,e,n){var e=a(t,e,n),r=e.dispatch,n=[],i={getState:e.getState,dispatch:function(t){return r(t)}},n=o.map(function(t){return t(i)}),r=rt.apply(void 0,R(n))(e.dispatch);return F(F({},e),{},{dispatch:r})}}}.apply(void 0,R(s)))));z.dispatch=(T=z.dispatch,function(t,e,n){n=Xt(t.meta,e,Bt(n)),n=F(F({},t),{meta:n});return T.apply(null,[n])});s=Object.keys(c);z.dispatch({type:ft.bootstrap,plugins:s,config:L,params:m,user:f,initialUser:i,persistedUser:v});var M,q,D,U=s.filter(function(t){return o.pluginEnabled[t]}),C=s.filter(function(t){return!o.pluginEnabled[t]});return z.dispatch({type:ft.registerPlugins,plugins:s,enabled:o.pluginEnabled}),o.pluginsArray.map(function(t,e){var n=t.bootstrap,r=t.config,i=t.name;n&&J(n)&&n({instance:N,config:r,payload:t}),z.dispatch({type:ft.registerPluginType(i),name:i,enabled:o.pluginEnabled[i],plugin:t}),o.pluginsArray.length===e+1&&z.dispatch({type:ft.initializeStart,plugins:U,disabled:C})}),Gt(function(t){z.dispatch({type:t?ft.offline:ft.online})}),M=z,q=t,D=N,setInterval(function(){return mt(M,q,D)},3e3),N}var Wt="before",Yt="after";return t.default=Jt,t.init=Jt,t.Analytics=Jt,t.EVENTS=ft,t.CONSTANTS=w,t}({});
{
"name": "@analytics/core",
"version": "0.10.11",
"version": "0.10.13",
"description": "Lightweight analytics library for tracking events, page views, & identifying users. Works with any third party analytics provider via an extendable plugin system.",

@@ -52,4 +52,4 @@ "keywords": [

"@analytics/global-storage-utils": "^0.1.2",
"@analytics/type-utils": "^0.2.0",
"analytics-utils": "^1.0.0"
"@analytics/type-utils": "^0.3.1",
"analytics-utils": "^1.0.2"
},

@@ -84,3 +84,3 @@ "ava": {

},
"gitHead": "069f8cd5f353e5e37c40965b05c943537541fd51"
"gitHead": "c06cf56a1b0e72483c9b546da8263124617833d4"
}

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc