@amplitude/plugin-autocapture-browser 1.14.3 → 1.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/lib/cjs/constants.d.ts +2 -0
  2. package/lib/cjs/constants.d.ts.map +1 -1
  3. package/lib/cjs/constants.js +4 -1
  4. package/lib/cjs/constants.js.map +1 -1
  5. package/lib/cjs/data-extractor.d.ts +5 -0
  6. package/lib/cjs/data-extractor.d.ts.map +1 -1
  7. package/lib/cjs/data-extractor.js +24 -11
  8. package/lib/cjs/data-extractor.js.map +1 -1
  9. package/lib/cjs/hierarchy.d.ts.map +1 -1
  10. package/lib/cjs/hierarchy.js +2 -3
  11. package/lib/cjs/hierarchy.js.map +1 -1
  12. package/lib/cjs/version.d.ts +1 -1
  13. package/lib/cjs/version.js +1 -1
  14. package/lib/cjs/version.js.map +1 -1
  15. package/lib/esm/constants.d.ts +2 -0
  16. package/lib/esm/constants.d.ts.map +1 -1
  17. package/lib/esm/constants.js +3 -0
  18. package/lib/esm/constants.js.map +1 -1
  19. package/lib/esm/data-extractor.d.ts +5 -0
  20. package/lib/esm/data-extractor.d.ts.map +1 -1
  21. package/lib/esm/data-extractor.js +24 -11
  22. package/lib/esm/data-extractor.js.map +1 -1
  23. package/lib/esm/hierarchy.d.ts.map +1 -1
  24. package/lib/esm/hierarchy.js +1 -2
  25. package/lib/esm/hierarchy.js.map +1 -1
  26. package/lib/esm/version.d.ts +1 -1
  27. package/lib/esm/version.js +1 -1
  28. package/lib/esm/version.js.map +1 -1
  29. package/lib/scripts/amplitude-min.js +1 -1
  30. package/lib/scripts/amplitude-min.js.gz +0 -0
  31. package/lib/scripts/amplitude-min.js.map +1 -1
  32. package/lib/scripts/amplitude-min.umd.js +1 -1
  33. package/lib/scripts/amplitude-min.umd.js.gz +0 -0
  34. package/lib/scripts/constants.d.ts +2 -0
  35. package/lib/scripts/constants.d.ts.map +1 -1
  36. package/lib/scripts/data-extractor.d.ts +5 -0
  37. package/lib/scripts/data-extractor.d.ts.map +1 -1
  38. package/lib/scripts/hierarchy.d.ts.map +1 -1
  39. package/lib/scripts/version.d.ts +1 -1
  40. package/package.json +2 -2
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).amplitude={})}(this,(function(t){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))((function(i,o){function u(t){try{l(r.next(t))}catch(t){o(t)}}function c(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}l((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}function u(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function l(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function a(t){return this instanceof a?(this.v=t,this):new a(t)}function s(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",(function(t){return function(e){return Promise.resolve(e).then(t,s)}})),r[Symbol.asyncIterator]=function(){return this},r;function u(t,e){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||c(t,e)}))},e&&(r[t]=e(r[t])))}function c(t,e){try{(n=i[t](e)).value instanceof a?Promise.resolve(n.value.v).then(l,s):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function l(t){c("next",t)}function s(t){c("throw",t)}function f(t,e){t(e),o.shift(),o.length&&c(o[0][0],o[0][1])}}function f(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=u(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var d=function(t,e){return!e||!e.length||e.some((function(e){return"string"==typeof e?t===e:t.match(e)}))},v=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],p="data-amp-track-",h=["div","span","h1","h2","h3","h4","h5","h6"],b=l(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],c(["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]']),!1),y=["*"],m="[Amplitude] Element Clicked",g="[Amplitude] Rage Click",w="[Amplitude] Element Tag",x="[Amplitude] Element Text",E="[Amplitude] Page URL",A="https://app.amplitude.com",_={US:A,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},k="data-amp-mask-attributes";function S(t){return"function"==typeof t}function T(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var O=T((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function C(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var P=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=u(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(S(f))try{f()}catch(t){i=t instanceof O?t.errors:[t]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var v=u(d),p=v.next();!p.done;p=v.next()){var h=p.value;try{j(h)}catch(t){i=null!=i?i:[],t instanceof O?i=l(l([],c(i)),c(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}}if(i)throw new O(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)j(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&C(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&C(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),I=P.EMPTY;function M(t){return t instanceof P||t&&"closed"in t&&S(t.remove)&&S(t.add)&&S(t.unsubscribe)}function j(t){S(t)?t():t.unsubscribe()}var L={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},N=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,l([t,e],c(n)))};function q(t){N((function(){throw t}))}function R(){}function F(t){t()}var D=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,M(e)&&e.add(n)):n.destination=B,n}return n(e,t),e.create=function(t,e,n){return new Y(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(P),z=Function.prototype.bind;function U(t,e){return z.call(t,e)}var H=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){V(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){V(t)}else V(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){V(t)}},t}(),Y=function(t){function e(e,n,r){var i,o,u=t.call(this)||this;S(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:u&&L.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return u.unsubscribe()},i={next:e.next&&U(e.next,o),error:e.error&&U(e.error,o),complete:e.complete&&U(e.complete,o)}):i=e;return u.destination=new H(i),u}return n(e,t),e}(D);function V(t){q(t)}var B={closed:!0,next:R,error:function(t){throw t},complete:R},W="function"==typeof Symbol&&Symbol.observable||"@@observable";function X(t){return t}var G=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof D||function(t){return t&&S(t.next)&&S(t.error)&&S(t.complete)}(r)&&M(r)?t:new Y(t,e,n);return F((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=J(e))((function(e,r){var i=new Y({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[W]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?X:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=J(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function J(t){var e;return null!==(e=null!=t?t:L.Promise)&&void 0!==e?e:Promise}function Z(t){return S(null==t?void 0:t.lift)}function K(t){return function(e){if(Z(e))return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")}}function Q(t,e,n,r,i){return new $(t,e,n,r,i)}var $=function(t){function e(e,n,r,i,o,u){var c=t.call(this,e)||this;return c.onFinalize=o,c.shouldUnsubscribe=u,c._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,c._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,c}return n(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(D);!function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Z(e)&&(r.lift=e.lift),r}n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new P;var n=this.getSubject();e.add(this.source.subscribe(Q(n,void 0,(function(){t._teardown(),n.complete()}),(function(e){t._teardown(),n.error(e)}),(function(){return t._teardown()})))),e.closed&&(this._connection=null,e=P.EMPTY)}return e},e.prototype.refCount=function(){return K((function(t,e){var n=null;t._refCount++;var r=Q(e,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),e.unsubscribe()}}));t.subscribe(r),r.closed||(n=t.connect())}))(this)}}(G);var tt,et={now:function(){return(et.delegate||performance).now()},delegate:void 0},nt={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e((function(e){n=void 0,t(e)}));return new P((function(){return null==n?void 0:n(r)}))},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=nt.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,l([],c(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,l([],c(t)))},delegate:void 0};new G((function(t){var e=tt||et,n=e.now(),r=0,i=function(){t.closed||(r=nt.requestAnimationFrame((function(o){r=0;var u=e.now();t.next({timestamp:tt?u:o,elapsed:u-n}),i()})))};return i(),function(){r&&nt.cancelAnimationFrame(r)}}));var rt=T((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),it=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return n(e,t),e.prototype.lift=function(t){var e=new ot(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new rt},e.prototype.next=function(t){var e=this;F((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=u(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;F((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;F((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?I:(this.currentObservers=null,o.push(t),new P((function(){e.currentObservers=null,C(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new G;return t.source=this,t},e.create=function(t,e){return new ot(t,e)},e}(G),ot=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return n(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:I},e}(it);!function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(it);var ut={now:function(){return(ut.delegate||Date).now()},delegate:void 0};!function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ut);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}n(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,u=n._timestampProvider,c=n._windowTime;r||(i.push(e),!o&&i.push(u.now()+c)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var u=n.now(),c=0,l=1;l<r.length&&r[l]<=u;l+=2)c=l;c&&r.splice(0,c+1)}}}(it),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}n(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,i=e._value,o=e.thrownError,u=e.isStopped,c=e._isComplete;n?t.error(o):(u||c)&&(r&&t.next(i),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(it);var ct,lt=function(t){function e(e,n){return t.call(this)||this}return n(e,t),e.prototype.schedule=function(t,e){return this},e}(P),at=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,l([t,e],c(n)))},st=function(t){return clearInterval(t)},ft=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return n(e,t),e.prototype.schedule=function(t,e){var n;if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),at(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&st(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,C(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(lt),dt=1,vt={};function pt(t){return t in vt&&(delete vt[t],!0)}var ht=function(t){var e=dt++;return vt[e]=!0,ct||(ct=Promise.resolve()),ct.then((function(){return pt(e)&&t()})),e},bt=function(t){pt(t)},yt={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=yt.delegate;return((null==n?void 0:n.setImmediate)||ht).apply(void 0,l([],c(t)))},clearImmediate:function(t){return bt(t)},delegate:void 0},mt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return n(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=yt.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);var o=e.actions;null!=n&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(yt.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))},e}(ft),gt=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=ut.now,t}(),wt=function(t){function e(e,n){void 0===n&&(n=gt.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(gt),xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(wt);new xt(mt);var Et=new wt(ft),At=Et,_t=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return n(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.flush(this),0)},e}(ft),kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(wt);new kt(_t);var St=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return n(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=nt.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);var o=e.actions;null!=n&&n===e._scheduled&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(nt.cancelAnimationFrame(n),e._scheduled=void 0)},e}(ft),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){var e;this._active=!0,t?e=t.id:(e=this._scheduled,this._scheduled=void 0);var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(wt);new Tt(St),function(t){function e(e,n){void 0===e&&(e=Ot),void 0===n&&(n=1/0);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}n(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(wt);var Ot=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return n(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return P.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(ft),Ct=new G((function(t){return t.complete()}));function Pt(t){return t&&S(t.schedule)}function It(t){return t[t.length-1]}function Mt(t){return Pt(It(t))?t.pop():void 0}var jt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Lt(t){return S(null==t?void 0:t.then)}function Nt(t){return S(t[W])}function qt(t){return Symbol.asyncIterator&&S(null==t?void 0:t[Symbol.asyncIterator])}function Rt(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var Ft,Dt="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function zt(t){return S(null==t?void 0:t[Dt])}function Ut(t){return s(this,arguments,(function(){var e,n,r;return o(this,(function(i){switch(i.label){case 0:e=t.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,a(e.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,a(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,a(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}}))}))}function Ht(t){return S(null==t?void 0:t.getReader)}function Yt(t){if(t instanceof G)return t;if(null!=t){if(Nt(t))return i=t,new G((function(t){var e=i[W]();if(S(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(jt(t))return r=t,new G((function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()}));if(Lt(t))return n=t,new G((function(t){n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,q)}));if(qt(t))return Vt(t);if(zt(t))return e=t,new G((function(t){var n,r;try{for(var i=u(e),o=i.next();!o.done;o=i.next()){var c=o.value;if(t.next(c),t.closed)return}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()}));if(Ht(t))return Vt(Ut(t))}var e,n,r,i;throw Rt(t)}function Vt(t){return new G((function(e){(function(t,e){var n,r,u,c;return i(this,void 0,void 0,(function(){var i,l;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),n=f(t),o.label=1;case 1:return[4,n.next()];case 2:if((r=o.sent()).done)return[3,4];if(i=r.value,e.next(i),e.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=o.sent(),u={error:l},[3,11];case 6:return o.trys.push([6,,9,10]),r&&!r.done&&(c=n.return)?[4,c.call(n)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}}))}))})(t,e).catch((function(t){return e.error(t)}))}))}function Bt(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=e.schedule((function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()}),r);if(t.add(o),!i)return o}function Wt(t,e){return void 0===e&&(e=0),K((function(n,r){n.subscribe(Q(r,(function(n){return Bt(r,t,(function(){return r.next(n)}),e)}),(function(){return Bt(r,t,(function(){return r.complete()}),e)}),(function(n){return Bt(r,t,(function(){return r.error(n)}),e)})))}))}function Xt(t,e){return void 0===e&&(e=0),K((function(n,r){r.add(t.schedule((function(){return n.subscribe(r)}),e))}))}function Gt(t,e){if(!t)throw new Error("Iterable cannot be null");return new G((function(n){Bt(n,e,(function(){var r=t[Symbol.asyncIterator]();Bt(n,e,(function(){r.next().then((function(t){t.done?n.complete():n.next(t.value)}))}),0,!0)}))}))}function Jt(t,e){if(null!=t){if(Nt(t))return function(t,e){return Yt(t).pipe(Xt(e),Wt(e))}(t,e);if(jt(t))return function(t,e){return new G((function(n){var r=0;return e.schedule((function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())}))}))}(t,e);if(Lt(t))return function(t,e){return Yt(t).pipe(Xt(e),Wt(e))}(t,e);if(qt(t))return Gt(t,e);if(zt(t))return function(t,e){return new G((function(n){var r;return Bt(n,e,(function(){r=t[Dt](),Bt(n,e,(function(){var t,e,i;try{e=(t=r.next()).value,i=t.done}catch(t){return void n.error(t)}i?n.complete():n.next(e)}),0,!0)})),function(){return S(null==r?void 0:r.return)&&r.return()}}))}(t,e);if(Ht(t))return function(t,e){return Gt(Ut(t),e)}(t,e)}throw Rt(t)}function Zt(t,e){return e?Jt(t,e):Yt(t)}function Kt(t){return t instanceof Date&&!isNaN(t)}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(Ft||(Ft={})),T((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),T((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),T((function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})),T((function(t){return function(e){t(this),this.name="SequenceError",this.message=e}}));var Qt=T((function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}}));function $t(t){throw new Qt(t)}function te(t,e){return K((function(n,r){var i=0;n.subscribe(Q(r,(function(n){r.next(t.call(e,n,i++))})))}))}var ee=Array.isArray;function ne(t){return te((function(e){return function(t,e){return ee(e)?t.apply(void 0,l([],c(e))):t(e)}(t,e)}))}function re(t,e,n){return void 0===n&&(n=1/0),S(e)?re((function(n,r){return te((function(t,i){return e(n,t,r,i)}))(Yt(t(n,r)))}),n):("number"==typeof e&&(n=e),K((function(e,r){return function(t,e,n,r,i,o,u,c){var l=[],a=0,s=0,f=!1,d=function(){!f||l.length||a||e.complete()},v=function(t){return a<r?p(t):l.push(t)},p=function(t){o&&e.next(t),a++;var c=!1;Yt(n(t,s++)).subscribe(Q(e,(function(t){null==i||i(t),o?v(t):e.next(t)}),(function(){c=!0}),void 0,(function(){if(c)try{a--;for(var t=function(){var t=l.shift();u?Bt(e,u,(function(){return p(t)})):p(t)};l.length&&a<r;)t();d()}catch(t){e.error(t)}})))};return t.subscribe(Q(e,v,(function(){f=!0,d()}))),function(){null==c||c()}}(e,r,t,n)})))}function ie(t){return void 0===t&&(t=1/0),re(X,t)}function oe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ie(1)(Zt(t,Mt(t)))}var ue=["addListener","removeListener"],ce=["addEventListener","removeEventListener"],le=["on","off"];function ae(t,e,n,r){if(S(n)&&(r=n,n=void 0),r)return ae(t,e,n).pipe(ne(r));var i=c(function(t){return S(t.addEventListener)&&S(t.removeEventListener)}(t)?ce.map((function(r){return function(i){return t[r](e,i,n)}})):function(t){return S(t.addListener)&&S(t.removeListener)}(t)?ue.map(se(t,e)):function(t){return S(t.on)&&S(t.off)}(t)?le.map(se(t,e)):[],2),o=i[0],u=i[1];if(!o&&jt(t))return re((function(t){return ae(t,e,n)}))(Yt(t));if(!o)throw new TypeError("Invalid event target");return new G((function(t){var e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1<e.length?e:e[0])};return o(e),function(){return u(e)}}))}function se(t,e){return function(n){return function(r){return t[n](e,r)}}}function fe(t,e,n){void 0===t&&(t=0),void 0===n&&(n=At);var r=-1;return null!=e&&(Pt(e)?n=e:r=e),new G((function(e){var i=Kt(t)?+t-n.now():t;i<0&&(i=0);var o=0;return n.schedule((function(){e.closed||(e.next(o++),0<=r?this.schedule(void 0,r):e.complete())}),i)}))}function de(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Mt(t),r=function(t,e){return"number"==typeof It(t)?t.pop():e}(t,1/0),i=t;return i.length?1===i.length?Yt(i[0]):ie(r)(Zt(i,n)):Ct}new G(R);var ve=Array.isArray;function pe(t,e){return K((function(n,r){var i=0;n.subscribe(Q(r,(function(n){return t.call(e,n,i++)&&r.next(n)})))}))}function he(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===(e=1===(t=e).length&&ve(t[0])?t[0]:t).length?Yt(e[0]):new G(function(t){return function(e){for(var n=[],r=function(r){n.push(Yt(t[r]).subscribe(Q(e,(function(t){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}e.next(t)}))))},i=0;n&&!e.closed&&i<t.length;i++)r(i)}}(e))}function be(t){return t<=0?function(){return Ct}:K((function(e,n){var r=0;e.subscribe(Q(n,(function(e){++r<=t&&(n.next(e),t<=r&&n.complete())})))}))}function ye(t,e){return e?function(n){return oe(e.pipe(be(1),K((function(t,e){t.subscribe(Q(e,R))}))),n.pipe(ye(t)))}:re((function(e,n){return Yt(t(e,n)).pipe(be(1),function(t){return te((function(){return t}))}(e))}))}function me(t){void 0===t&&(t={});var e=t.connector,n=void 0===e?function(){return new it}:e,r=t.resetOnError,i=void 0===r||r,o=t.resetOnComplete,u=void 0===o||o,c=t.resetOnRefCountZero,l=void 0===c||c;return function(t){var e,r,o,c=0,a=!1,s=!1,f=function(){null==r||r.unsubscribe(),r=void 0},d=function(){f(),e=o=void 0,a=s=!1},v=function(){var t=e;d(),null==t||t.unsubscribe()};return K((function(t,p){c++,s||a||f();var h=o=null!=o?o:n();p.add((function(){0!==--c||s||a||(r=ge(v,l))})),h.subscribe(p),!e&&c>0&&(e=new Y({next:function(t){return h.next(t)},error:function(t){s=!0,f(),r=ge(d,i,t),h.error(t)},complete:function(){a=!0,f(),r=ge(d,u),h.complete()}}),Yt(t).subscribe(e))}))(t)}}function ge(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0!==e){if(!1!==e){var i=new Y({next:function(){i.unsubscribe(),t()}});return Yt(e.apply(void 0,l([],c(n)))).subscribe(i)}}else t()}function we(t,e,n){void 0===e&&(e=Et);var r=fe(t,e);return function(t,e){return K((function(n,r){var i=null!=e?e:{},o=i.leading,u=void 0===o||o,c=i.trailing,l=void 0!==c&&c,a=!1,s=null,f=null,d=!1,v=function(){null==f||f.unsubscribe(),f=null,l&&(b(),d&&r.complete())},p=function(){f=null,d&&r.complete()},h=function(e){return f=Yt(t(e)).subscribe(Q(r,v,p))},b=function(){if(a){a=!1;var t=s;s=null,r.next(t),!d&&h(t)}};n.subscribe(Q(r,(function(t){a=!0,s=t,(!f||f.closed)&&(u?b():h(t))}),(function(){d=!0,(!(l&&a&&f)||f.closed)&&r.complete()})))}))}((function(){return r}),n)}var xe=["input","select","textarea"],Ee=function(t,e){var n,r=null===(n=null===window||void 0===window?void 0:window.getComputedStyle)||void 0===n?void 0:n.call(window,t);return"pointer"===(null==r?void 0:r.getPropertyValue("cursor"))&&"click"===e},Ae=function(t,e,n){return void 0===n&&(n=!1),function(r,i){var o,u,c=t.pageUrlAllowlist,l=t.pageUrlExcludelist,a=t.shouldTrackEventResolver,s=null===(u=null===(o=null==i?void 0:i.tagName)||void 0===o?void 0:o.toLowerCase)||void 0===u?void 0:u.call(o);if(!s)return!1;if(a)return a(r,i);if(!d(window.location.href,c))return!1;if(l&&l.length>0&&d(window.location.href,l))return!1;var f=String(null==i?void 0:i.getAttribute("type"))||"";if("string"==typeof f)switch(f.toLowerCase()){case"hidden":case"password":return!1}var v=Ee(i,r);if(n&&v)return!0;if(e){var p=e.some((function(t){var e;return!!(null===(e=null==i?void 0:i.matches)||void 0===e?void 0:e.call(i,t))}));if(!p)return!1}switch(s){case"input":case"select":case"textarea":return"change"===r||"click"===r;default:return!!v||"click"===r}}},_e=function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return function(t){return null==t||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length}(r)||(e[n]=r),e}),{})},ke=function(t,e){return t?e.some((function(e){var n;return null===(n=null==t?void 0:t.matches)||void 0===n?void 0:n.call(t,e)}))?t:ke(null==t?void 0:t.parentElement,e):null};var Se=function(t){return!(null===t.event.target||!t.closestTrackedAncestor)};var Te="data-amp-mask",Oe="*****",Ce=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",k,Te]),Pe=["type"],Ie=["svg","path","g"],Me=["password","hidden"];function je(t,e){var n,r,i,o,c,l;if(null===t)return null;var a=String(t.tagName).toLowerCase(),s={tag:a},f=Array.from(null!==(o=null===(i=t.parentElement)||void 0===i?void 0:i.children)&&void 0!==o?o:[]);f.length&&(s.index=f.indexOf(t),s.indexOfType=f.filter((function(e){return e.tagName===t.tagName})).indexOf(t));var d=null===(l=null===(c=t.previousElementSibling)||void 0===c?void 0:c.tagName)||void 0===l?void 0:l.toLowerCase();d&&(s.prevSib=String(d));var v=t.getAttribute("id");v&&(s.id=String(v));var p=Array.from(t.classList);p.length&&(s.classes=p);var h={},b=Array.from(t.attributes).filter((function(t){return!Ce.has(t.name)})),y=!function(t){var e,n,r,i=null===(n=null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase)||void 0===n?void 0:n.call(e),o=t instanceof HTMLElement&&"true"===(null===(r=t.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase());return!xe.includes(i)&&!o}(t);if(!Me.includes(String(t.getAttribute("type")))&&!Ie.includes(a))try{for(var m=u(b),g=m.next();!g.done;g=m.next()){var w=g.value;y&&!Pe.includes(w.name)||(e.has(w.name)?h[w.name]=Oe:h[w.name]=String(w.value).substring(0,128))}}catch(t){n={error:t}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return Object.keys(h).length&&(s.attrs=h),s}var Le=function(t,e,n){t.forEach((function(t){if("string"!=typeof t&&"ATTACH_EVENT_PROPERTY"===t.actionType){var r=n.extractDataFromDataSource(t.dataSource,e.closestTrackedAncestor);e.targetElementProperties[t.destinationKey]=r}}))},Ne=/\b(?:\d[ -]*?){13,16}\b/,qe=/(\d{3}-?\d{2}-?\d{4})/g,Re=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,Fe=function(t,e){var n,r,i,o=this;this.replaceSensitiveString=function(t){var e,n;if("string"!=typeof t)return"";var r=t;r=(r=(r=r.replace(Ne,Oe)).replace(qe,Oe)).replace(Re,Oe);try{for(var i=u(o.additionalMaskTextPatterns),c=i.next();!c.done;c=i.next()){var l=c.value;try{r=r.replace(l,Oe)}catch(t){}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},this.getHierarchy=function(t){var e,n,r,i,a,s=performance.now();if(!t)return[];for(var f,d=function(t){var e=[];if(!t)return e;e.push(t);for(var n=t.parentElement;n&&"HTML"!==n.tagName;)e.push(n),n=n.parentElement;return e}(t),v=new Map,p=d.length-1;p>=0;p--){var h=d[p];if(h){var b=(f=h.getAttribute(k))?f.split(",").map((function(t){return t.trim()})).filter((function(t){return t.length>0&&"id"!==t&&"class"!==t})):[],y=p===d.length-1?[]:null!==(r=v.get(d[p+1]))&&void 0!==r?r:new Set,m=new Set(l(l([],c(y),!1),c(b),!1));v.set(h,m)}}a=d.map((function(t){var e;return je(t,null!==(e=v.get(t))&&void 0!==e?e:new Set)}));var g=function(t){(null==t?void 0:t.attrs)&&Object.entries(t.attrs).forEach((function(e){var n=c(e,2),r=n[0],i=n[1];t.attrs&&(t.attrs[r]=o.replaceSensitiveString(i))}))};try{for(var w=u(a),x=w.next();!x.done;x=w.next())g(x.value)}catch(t){e={error:t}}finally{try{x&&!x.done&&(n=w.return)&&n.call(w)}finally{if(e)throw e.error}}var E=performance.now();return null===(i=o.diagnosticsClient)||void 0===i||i.recordHistogram("autocapturePlugin.getHierarchy",E-s),a},this.getNearestLabel=function(t){var e,n=t.parentElement;if(!n)return"";try{e=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(t){e=null}return e?o.getText(e):o.getNearestLabel(n)},this.getEventProperties=function(t,e,n){var r,i,u,l,a,s,f=null===(u=null===(i=null==e?void 0:e.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===u?void 0:u.call(i),d="function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{left:null,top:null},v=o.getHierarchy(e),p=null===(l=v[0])||void 0===l?void 0:l.attrs,h=o.getNearestLabel(e),b=(a=null!=p?p:{},s=n,Object.entries(a).reduce((function(t,e){var n=c(e,2),r=n[0],i=n[1];if(r.startsWith(s)){var o=r.replace(s,"");o&&(t[o]=i||"")}return t}),{})),y=((r={})["[Amplitude] Element Hierarchy"]=v,r[w]=f,r[x]=o.getText(e),r["[Amplitude] Element Position Left"]=null==d.left?null:Math.round(d.left),r["[Amplitude] Element Position Top"]=null==d.top?null:Math.round(d.top),r["[Amplitude] Element Attributes"]=b,r["[Amplitude] Element Parent Label"]=h,r[E]=function(t,e){var n=t;try{n=decodeURI(t)}catch(t){null==e||e.error("Malformed URI sequence: ",t)}return n}(window.location.href.split("?")[0]),r["[Amplitude] Page Title"]=function(t){if("undefined"==typeof document||!document.title)return"";var e=document.querySelector("title");return e&&e.hasAttribute(Te)?Oe:t?t(document.title):document.title}(o.replaceSensitiveString),r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return y["[Amplitude] Element ID"]=e.getAttribute("id")||"",y["[Amplitude] Element Class"]=e.getAttribute("class"),y["[Amplitude] Element Aria Label"]=null==p?void 0:p["aria-label"],"a"===f&&"click"===t&&e instanceof HTMLAnchorElement&&(y["[Amplitude] Element Href"]=o.replaceSensitiveString(e.href)),_e(y)},this.addAdditionalEventProperties=function(t,e,n,r,i){void 0===i&&(i=!1);var u={event:t,timestamp:Date.now(),type:e};if(function(t){return"click"===t.type||"change"===t.type}(u)&&null!==u.event.target){if(i&&Ee(u.event.target,u.type))return u.closestTrackedAncestor=u.event.target,u.targetElementProperties=o.getEventProperties(u.type,u.closestTrackedAncestor,r),u;var c=ke(u.event.target,n);return c&&(u.closestTrackedAncestor=c,u.targetElementProperties=o.getEventProperties(u.type,c,r)),u}return u},this.extractDataFromDataSource=function(t,e){if("DOM_ELEMENT"===t.sourceType){var n=function(t,e){try{if("DOM_ELEMENT"===t.sourceType){var n=document.documentElement;return t.scope&&e&&(n=e.closest(t.scope)),n&&t.selector?n.querySelector(t.selector):n}}catch(t){return}}(t,e);if(!n)return;return"TEXT"===t.elementExtractType?o.getText(n):"ATTRIBUTE"===t.elementExtractType&&t.attribute?n.getAttribute(t.attribute):void 0}},this.getText=function(t){if(null!==t.closest("[".concat(Te,"]")))return Oe;var e="";if(t.querySelector("[".concat(Te,"], [contenteditable]"))){var n=t.cloneNode(!0);n.querySelectorAll("[".concat(Te,"], [contenteditable]")).forEach((function(t){t.innerText=Oe})),e=n.innerText||""}else e=t.innerText||"";return o.replaceSensitiveString(e.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(t){var e,n,r;if(!t)return{};var i=null===(r=null===(n=null==t?void 0:t.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n),u=((e={})[w]=i,e[x]=o.getText(t),e[E]=window.location.href.split("?")[0],e);return _e(u)},this.diagnosticsClient=null==e?void 0:e.diagnosticsClient;var a=null!==(i=t.maskTextRegex)&&void 0!==i?i:[],s=[];try{for(var f=u(a),d=f.next();!d.done;d=f.next()){var v=d.value;if(s.length>=25)break;if(v instanceof RegExp)s.push(v);else if("pattern"in v&&"string"==typeof v.pattern)try{s.push(new RegExp(v.pattern,"i"))}catch(t){}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}this.additionalMaskTextPatterns=s},De=function(){function t(t){var e=(void 0===t?{}:t).origin,n=void 0===e?A:e,r=this;this.endpoint=A,this.requestCallbacks={},this.onSelect=function(t){r.notify({action:"element-selected",data:t})},this.onTrack=function(t,e){"selector-mode-changed"===t?r.notify({action:"track-selector-mode-changed",data:e}):"selector-moved"===t&&r.notify({action:"track-selector-moved",data:e})},this.endpoint=n}return t.prototype.notify=function(t){var e,n,r,i;null===(n=null===(e=this.logger)||void 0===e?void 0:e.debug)||void 0===n||n.call(e,"Message sent: ",JSON.stringify(t)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,t,this.endpoint)},t.prototype.sendRequest=function(t,e,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:t,args:e};return new Promise((function(e,u){r.requestCallbacks[i]={resolve:e,reject:u},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout((function(){u(new Error("".concat(t," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]}),n.timeout)}))},t.prototype.handleResponse=function(t){var e;this.requestCallbacks[t.id]?(this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]):null===(e=this.logger)||void 0===e||e.warn("No callback found for request id: ".concat(t.id))},t.prototype.setup=function(t){var e=this,n=void 0===t?{dataExtractor:new Fe({})}:t,r=n.logger,i=n.endpoint,o=n.isElementSelectable,u=n.cssSelectorAllowlist,c=n.actionClickAllowlist,l=n.dataExtractor;this.logger=r,i&&this.endpoint===A&&(this.endpoint=i);var a=null;window.addEventListener("message",(function(t){var n,r,i,s,f;if(null===(r=null===(n=e.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(t)),e.endpoint===t.origin){var d,v=null==t?void 0:t.data,p=null==v?void 0:v.action;if(p)if("id"in v)null===(s=null===(i=e.logger)||void 0===i?void 0:i.debug)||void 0===s||s.call(i,"Received Response to previous request: ",JSON.stringify(t)),e.handleResponse(v);else if("ping"===p)e.notify({action:"pong"});else if("initialize-visual-tagging-selector"===p){var h=null==v?void 0:v.data;(d="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise((function(t,e){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=d,r.addEventListener("load",(function(){t({status:!0})}),{once:!0}),r.addEventListener("error",(function(){e({status:!1,message:"Failed to load the script ".concat(d)})})),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(t){e(t)}}))).then((function(){var t;a=null===(t=null===window||void 0===window?void 0:window.amplitudeVisualTaggingSelector)||void 0===t?void 0:t.call(window,{getEventTagProps:l.getEventTagProps,isElementSelectable:function(t){return!o||o((null==h?void 0:h.actionType)||"click",t)},onTrack:e.onTrack,onSelect:e.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:e,cssSelectorAllowlist:u,actionClickAllowlist:c,extractDataFromDataSource:l.extractDataFromDataSource,dataExtractor:l,diagnostics:{autocapture:{version:"1.14.3"}}}),e.notify({action:"selector-loaded"})})).catch((function(){var t;null===(t=e.logger)||void 0===t||t.warn("Failed to initialize visual tagging selector")}))}else"close-visual-tagging-selector"===p&&(null===(f=null==a?void 0:a.close)||void 0===f||f.call(a))}})),this.notify({action:"page-loaded"})},t}();function ze(t){var e,n,r,i=t.amplitude,o=t.allObservables,l=t.options,a=t.shouldTrackEvent,s=t.evaluateTriggers,f=o.clickObservable,d=f.pipe(K((function(t,e){var n,r=!1;t.subscribe(Q(e,(function(t){var i=n;n=t,r&&e.next([i,t]),r=!0})))})),pe((function(t){var e=c(t,2),n=e[0],r=e[1],i=n.event.target!==r.event.target,o=Math.abs(r.event.screenX-n.event.screenX)<=20&&Math.abs(r.event.screenY-n.event.screenY)<=20;return i&&!o}))),v=de(d,f.pipe((e=l.debounceTime,void 0===n&&(n=Et),K((function(t,r){var i=null,o=null,u=null,c=function(){if(i){i.unsubscribe(),i=null;var t=o;o=null,r.next(t)}};function l(){var t=u+e,o=n.now();if(o<t)return i=this.schedule(void 0,t-o),void r.add(i);c()}t.subscribe(Q(r,(function(t){o=t,u=n.now(),i||(i=n.schedule(l,e),r.add(i))}),(function(){c(),r.complete()}),void 0,(function(){o=i=null})))}))),te((function(){return"timeout"})))),p=f.pipe(function(t,e){void 0===e&&(e=Et);var n=fe(t,e);return ye((function(){return n}))}(0),pe(Se),pe((function(t){return a("click",t.closestTrackedAncestor)})),te((function(t){return s(t)})),(r=v,K((function(t,e){var n=[];return t.subscribe(Q(e,(function(t){return n.push(t)}),(function(){e.next(n),e.complete()}))),Yt(r).subscribe(Q(e,(function(){var t=n;n=[],e.next(t)}),R)),function(){n=null}}))));return p.subscribe((function(t){var e,n,r=(t.length,m);try{for(var o=u(t),c=o.next();!c.done;c=o.next()){var l=c.value;null==i||i.track(r,l.targetElementProperties)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}))}function Ue(t){var e=t.amplitude,n=t.allObservables,r=t.options,i=t.getEventProperties,o=t.shouldTrackEvent,u=t.shouldTrackActionClick,a=n.clickObservable,s=n.mutationObservable,f=n.navigateObservable,d=a.pipe(pe((function(t){return!o("click",t.closestTrackedAncestor)})),te((function(t){var e=ke(t.event.target,r.actionClickAllowlist);return t.closestTrackedAncestor=e,null!==t.closestTrackedAncestor&&(t.targetElementProperties=i(t.type,t.closestTrackedAncestor)),t})),pe(Se),pe((function(t){return u("click",t.closestTrackedAncestor)}))),v=[s];f&&v.push(f);var p,h,b=de.apply(void 0,l([],c(v),!1)),y=d.pipe((p=function(t){return b.pipe(be(1),function(t,e){var n=Kt(t)?{first:t}:"number"==typeof t?{each:t}:t,r=n.first,i=n.each,o=n.with,u=void 0===o?$t:o,c=n.scheduler,l=void 0===c?null!=e?e:Et:c,a=n.meta,s=void 0===a?null:a;if(null==r&&null==i)throw new TypeError("No timeout provided.");return K((function(t,e){var n,o,c=null,a=0,f=function(t){o=Bt(e,l,(function(){try{n.unsubscribe(),Yt(u({meta:s,lastValue:c,seen:a})).subscribe(e)}catch(t){e.error(t)}}),t)};n=t.subscribe(Q(e,(function(t){null==o||o.unsubscribe(),a++,e.next(c=t),i>0&&f(i)}),void 0,void 0,(function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),c=null}))),!a&&f(null!=r?"number"==typeof r?r:+r-l.now():i)}))}({first:500,with:function(){return Ct}}),te((function(){return t})))},K((function(t,e){var n=null,r=0,i=!1,o=function(){return i&&!n&&e.complete()};t.subscribe(Q(e,(function(t){null==n||n.unsubscribe();var i=0,u=r++;Yt(p(t,u)).subscribe(n=Q(e,(function(n){return e.next(h?h(t,n,u,i++):n)}),(function(){n=null,o()})))}),(function(){i=!0,o()})))}))));return y.subscribe((function(t){null==e||e.track(m,i("click",t.closestTrackedAncestor))}))}var He,Ye=function(){return new G((function(t){var e=new MutationObserver((function(e){t.next(e)}));return e.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return e.disconnect()}}))},Ve=function(t){return void 0===t&&(t="click"),ae(document,t,{capture:!0})},Be={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},We=function(t){var e,n,r,i,o=Object.values(Be).reduce((function(t,e){return t[e]=new Set,t}),{});if(!t)return o;try{for(var c=u(t),l=c.next();!l.done;l=c.next()){var a=l.value;try{try{for(var s=(r=void 0,u(a.definition)),f=s.next();!f.done;f=s.next()){var d=f.value,v=Be[d.event_type];v&&o[v].add(a.id)}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}catch(t){console.warn("Skipping Labeled Event due to malformed definition",null==a?void 0:a.id,t)}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return o},Xe=function(t){var e,n,r,i,o=new Map;try{for(var c=u(t),l=c.next();!l.done;l=c.next()){var a=l.value;try{for(var s=(r=void 0,u(a.conditions)),f=s.next();!f.done;f=s.next()){var d=f.value;if("LABELED_EVENT"===d.type){var v=d.match.eventId,p=o.get(v);p||(p=[],o.set(v,p)),p.push(a)}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return o},Ge=function(t,e){return e.filter((function(e){return e.definition.some((function(e){return Be[e.event_type]===t.type&&e.filters.every((function(e){return function(t,e){try{if("[Amplitude] Element Text"===e.subprop_key)return"is"===e.subprop_op&&e.subprop_value.includes(t.targetElementProperties["[Amplitude] Element Text"]);if("[Amplitude] Element Hierarchy"===e.subprop_key)return"autotrack css match"===e.subprop_op&&!!t.closestTrackedAncestor.closest(e.subprop_value.toString())}catch(t){return console.error("Error matching event to filter",t),!1}return!1}(t,e)}))}))}))},Je=function(){function t(t,e,n,r){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=e,this.dataExtractor=n,this.options=r}return t.prototype.evaluate=function(t){var e,n,r=this.options.pageActions;if(!r)return t;var i=function(t,e){var n,r,i,o,c=new Set;try{for(var l=u(t),a=l.next();!a.done;a=l.next()){var s=a.value,f=e.get(s.id);if(f)try{for(var d=(i=void 0,u(f)),v=d.next();!v.done;v=d.next()){var p=v.value;c.add(p)}}catch(t){i={error:t}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return Array.from(c)}(Ge(t,Array.from(this.groupedLabeledEvents[t.type]).map((function(t){return r.labeledEvents[t]}))),this.labeledEventToTriggerMap);try{for(var o=u(i),c=o.next();!c.done;c=o.next()){var l=c.value;Le(l.actions,t,this.dataExtractor)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return t},t.prototype.update=function(t,e,n){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=e,this.options=n},t}();!function(t){t.ClickObservable="clickObservable",t.ChangeObservable="changeObservable",t.NavigateObservable="navigateObservable",t.MutationObservable="mutationObservable"}(He||(He={}));var Ze=function(t,e){var n,a,s,f,d,b,y,m;void 0===t&&(t={});var g=t.dataAttributePrefix,w=void 0===g?p:g,x=t.visualTaggingOptions,E=void 0===x?{enabled:!0,messenger:new De}:x;t.cssSelectorAllowlist=null!==(n=t.cssSelectorAllowlist)&&void 0!==n?n:v,t.actionClickAllowlist=null!==(a=t.actionClickAllowlist)&&void 0!==a?a:h,t.debounceTime=null!==(s=t.debounceTime)&&void 0!==s?s:0,t.pageUrlExcludelist=null===(f=t.pageUrlExcludelist)||void 0===f?void 0:f.reduce((function(t,e){if("string"==typeof e&&t.push(e),e instanceof RegExp&&t.push(e),"object"==typeof e&&null!==e&&"pattern"in e)try{t.push(new RegExp(e.pattern))}catch(n){return console.warn("Invalid regex pattern: ".concat(e.pattern),n),t}return t}),[]);var A="@amplitude/plugin-autocapture-browser",k=[],S=new Fe(t,e),T=We(Object.values(null!==(b=null===(d=t.pageActions)||void 0===d?void 0:d.labeledEvents)&&void 0!==b?b:{})),O=Xe(null!==(m=null===(y=t.pageActions)||void 0===y?void 0:y.triggers)&&void 0!==m?m:[]),C=function(t,e,n,r){return new Je(t,e,n,r)}(T,O,S,t);return{name:A,type:"enrichment",setup:function(e,n){return i(void 0,void 0,void 0,(function(){var i,u,a,s,f,d,v,p,h,b;return o(this,(function(o){return"undefined"==typeof document||(e.fetchRemoteConfig&&(e.remoteConfigClient?e.remoteConfigClient.subscribe("analyticsSDK.pageActions","all",(function(e){!function(e){var n,i;e&&(t.pageActions=r(r({},t.pageActions),e),T=We(Object.values(null!==(n=t.pageActions.labeledEvents)&&void 0!==n?n:{})),O=Xe(null!==(i=t.pageActions.triggers)&&void 0!==i?i:[]),C.update(T,O,t))}(e)})):e.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),i=Ae(t,t.cssSelectorAllowlist),u=Ae(t,t.actionClickAllowlist),a=function(){var e,n,r=Ve().pipe(te((function(e){return S.addAdditionalEventProperties(e,"click",t.cssSelectorAllowlist,w)})),me()),i=ae(document,"change",{capture:!0}).pipe(te((function(e){return S.addAdditionalEventProperties(e,"change",t.cssSelectorAllowlist,w)})),me());window.navigation&&(n=ae(window.navigation,"navigate").pipe(te((function(e){return S.addAdditionalEventProperties(e,"navigate",t.cssSelectorAllowlist,w)})),me()));var o=Ye().pipe(te((function(e){return S.addAdditionalEventProperties(e,"mutation",t.cssSelectorAllowlist,w)})),me());return(e={})[He.ClickObservable]=r,e[He.ChangeObservable]=i,e[He.NavigateObservable]=n,e[He.MutationObservable]=o,e}(),s=ze({allObservables:a,options:t,amplitude:n,shouldTrackEvent:i,evaluateTriggers:C.evaluate.bind(C)}),k.push(s),f=function(t){var e=t.amplitude,n=t.allObservables,r=t.getEventProperties,i=t.shouldTrackEvent,o=t.evaluateTriggers;return n.changeObservable.pipe(pe(Se),pe((function(t){return i("change",t.closestTrackedAncestor)})),te((function(t){return o(t)}))).subscribe((function(t){null==e||e.track("[Amplitude] Element Changed",r("change",t.closestTrackedAncestor))}))}({allObservables:a,getEventProperties:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S.getEventProperties.apply(S,l(l([],c(t),!1),[w],!1))},amplitude:n,shouldTrackEvent:i,evaluateTriggers:C.evaluate.bind(C)}),k.push(f),d=Ue({allObservables:a,options:t,getEventProperties:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S.getEventProperties.apply(S,l(l([],c(t),!1),[w],!1))},amplitude:n,shouldTrackEvent:i,shouldTrackActionClick:u}),k.push(d),null===(h=null==e?void 0:e.loggerProvider)||void 0===h||h.log("".concat(A," has been successfully added.")),window.opener&&E.enabled&&(v=t.cssSelectorAllowlist,p=t.actionClickAllowlist,null===(b=E.messenger)||void 0===b||b.setup(r(r({dataExtractor:S,logger:null==e?void 0:e.loggerProvider},(null==e?void 0:e.serverZone)&&{endpoint:_[e.serverZone]}),{isElementSelectable:Ae(t,l(l([],c(v),!1),c(p),!1)),cssSelectorAllowlist:v,actionClickAllowlist:p})))),[2]}))}))},execute:function(t){return i(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2,t]}))}))},teardown:function(){return i(void 0,void 0,void 0,(function(){var t,e,n,r;return o(this,(function(i){try{for(t=u(k),e=t.next();!e.done;e=t.next())e.value.unsubscribe()}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return[2]}))}))}}};function Ke(t,e){var n,r,i,o,u=e.event,c=u.clientX,l=u.clientY;t.yMin=Math.min(null!==(n=t.yMin)&&void 0!==n?n:l,l),t.yMax=Math.max(null!==(r=t.yMax)&&void 0!==r?r:l,l),t.xMin=Math.min(null!==(i=t.xMin)&&void 0!==i?i:c,c),t.xMax=Math.max(null!==(o=t.xMax)&&void 0!==o?o:c,c),t.isOutOfBounds=t.yMax-t.yMin>50||t.xMax-t.xMin>50}function Qe(t){var e=t[0],n=t[t.length-1];return{rageClickEvent:r({"[Amplitude] Begin Time":new Date(e.timestamp).toISOString(),"[Amplitude] End Time":new Date(n.timestamp).toISOString(),"[Amplitude] Duration":n.timestamp-e.timestamp,"[Amplitude] Clicks":t.map((function(t){return{X:t.event.clientX,Y:t.event.clientY,Time:t.timestamp}})),"[Amplitude] Click Count":t.length},e.targetElementProperties),time:e.timestamp}}function $e(t){var e,n=t.amplitude,r=t.allObservables,i=t.shouldTrackRageClick,o=r.clickObservable,u=[],c={};function l(t){u=[],c={},t&&(Ke(c,t),u.push(t))}return o.pipe(pe(Se),pe((function(t){return i("click",t.closestTrackedAncestor)})),te((function(t){if(e&&clearTimeout(e),Ke(c,t),0===u.length)return u.push(t),null;if(function(t,e){return t.length>0&&t[t.length-1].closestTrackedAncestor!==e.closestTrackedAncestor}(u,t)||function(t,e){var n=t[Math.max(0,t.length-4+1)];return e.timestamp-n.timestamp>=1e3}(u,t)||c.isOutOfBounds){var r=u.length>=4?Qe(u):null;return l(t),r}return u.push(t),u.length>=4&&(e=setTimeout((function(){var t=Qe(u),e=t.rageClickEvent,r=t.time;n.track(g,e,{time:r}),l()}),1e3)),null})),pe((function(t){return null!==t}))).subscribe((function(t){null!==t&&n.track(g,t.rageClickEvent,{time:t.time})}))}t.DataExtractor=Fe,t.WindowMessenger=De,t.autocapturePlugin=Ze,t.frustrationPlugin=function(t){var e,n,a,s,f;void 0===t&&(t={});var d="@amplitude/plugin-frustration-browser",v=[],h=null!==(n=null===(e=t.rageClicks)||void 0===e?void 0:e.cssSelectorAllowlist)&&void 0!==n?n:y,m=null!==(s=null===(a=t.deadClicks)||void 0===a?void 0:a.cssSelectorAllowlist)&&void 0!==s?s:b,g=null!==(f=t.dataAttributePrefix)&&void 0!==f?f:p,w=new Fe(t),x=l([],c(new Set(l(l([],c(h),!1),c(m),!1))),!1);return{name:d,type:"enrichment",setup:function(e,n){return i(void 0,void 0,void 0,(function(){var i,u,a,s,f,p;return o(this,(function(o){return"undefined"==typeof document||(i=Ae(t,h),u=Ae(t,m),a=function(){var t,e,n=Ve("pointerdown").pipe(te((function(t){return w.addAdditionalEventProperties(t,"click",x,g,!0)})),me());window.navigation&&(e=ae(window.navigation,"navigate").pipe(te((function(t){return w.addAdditionalEventProperties(t,"navigate",x,g)})),me()));var r=Ye().pipe(te((function(t){return w.addAdditionalEventProperties(t,"mutation",x,g)})),me());return(t={})[He.ClickObservable]=n,t[He.ChangeObservable]=new G,t[He.NavigateObservable]=e,t[He.MutationObservable]=r,t}(),s=$e({allObservables:a,amplitude:n,shouldTrackRageClick:i}),v.push(s),f=function(t){var e=t.amplitude,n=t.allObservables,i=t.getEventProperties,o=t.shouldTrackDeadClick,u=n.clickObservable,a=n.mutationObservable,s=n.navigateObservable,f=u.pipe(pe(Se),pe((function(t){return o("click",t.closestTrackedAncestor)})),pe((function(t){return null===t.event.target.closest('a[target="_blank"]')}))),d=[a];s&&d.push(s);var v=de.apply(void 0,l([],c(d),!1));return f.pipe(re((function(t){var e;return he(new G((function(n){return e=setTimeout((function(){return n.next(t)}),3e3),function(){clearTimeout(e)}})),v.pipe(be(1),te((function(){return null})))).pipe(pe((function(t){return null!==t})))})),we(3e3)).subscribe((function(t){var n={"[Amplitude] X":t.event.clientX,"[Amplitude] Y":t.event.clientY};e.track("[Amplitude] Dead Click",r(r({},i("click",t.closestTrackedAncestor)),n),{time:t.timestamp})}))}({amplitude:n,allObservables:a,getEventProperties:function(t,e){return w.getEventProperties(t,e,g)},shouldTrackDeadClick:u}),v.push(f),null===(p=null==e?void 0:e.loggerProvider)||void 0===p||p.log("".concat(d," has been successfully added."))),[2]}))}))},execute:function(t){return i(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2,t]}))}))},teardown:function(){return i(void 0,void 0,void 0,(function(){var t,e,n,r;return o(this,(function(i){try{for(t=u(v),e=t.next();!e.done;e=t.next())e.value.unsubscribe()}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return[2]}))}))}}},t.plugin=Ze,Object.defineProperty(t,"__esModule",{value:!0})}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).amplitude={})}(this,function(t){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))(function(i,o){function u(t){try{l(r.next(t))}catch(t){o(t)}}function c(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(u,c)}l((r=r.apply(t,e||[])).next())})}function o(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&c[0]?r.return:c[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,c[1])).done)return i;switch(r=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t],r=0}finally{n=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}function u(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function l(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function a(t){return this instanceof a?(this.v=t,this):new a(t)}function s(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",function(t){return function(e){return Promise.resolve(e).then(t,s)}}),r[Symbol.asyncIterator]=function(){return this},r;function u(t,e){i[t]&&(r[t]=function(e){return new Promise(function(n,r){o.push([t,e,n,r])>1||c(t,e)})},e&&(r[t]=e(r[t])))}function c(t,e){try{(n=i[t](e)).value instanceof a?Promise.resolve(n.value.v).then(l,s):f(o[0][2],n)}catch(t){f(o[0][3],t)}var n}function l(t){c("next",t)}function s(t){c("throw",t)}function f(t,e){t(e),o.shift(),o.length&&c(o[0][0],o[0][1])}}function f(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=u(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){(function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)})(r,i,(e=t[n](e)).done,e.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var d=function(t,e){return!e||!e.length||e.some(function(e){return"string"==typeof e?t===e:t.match(e)})},v=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],p="data-amp-track-",h=["div","span","h1","h2","h3","h4","h5","h6"],b=l(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],c(["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]']),!1),y=["*"],m="[Amplitude] Element Clicked",g="[Amplitude] Rage Click",w="[Amplitude] Element Tag",x="[Amplitude] Element Text",E="[Amplitude] Page URL",A="https://app.amplitude.com",_={US:A,EU:"https://app.eu.amplitude.com",STAGING:"https://apps.stag2.amplitude.com"},k="data-amp-mask-attributes",S="data-amp-mask",T="*****";function O(t){return"function"==typeof t}function C(t){var e=t(function(t){Error.call(t),t.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var P=C(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function I(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var M=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=u(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(O(f))try{f()}catch(t){i=t instanceof P?t.errors:[t]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var v=u(d),p=v.next();!p.done;p=v.next()){var h=p.value;try{N(h)}catch(t){i=null!=i?i:[],t instanceof P?i=l(l([],c(i)),c(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{p&&!p.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}}if(i)throw new P(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)N(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&I(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&I(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),j=M.EMPTY;function L(t){return t instanceof M||t&&"closed"in t&&O(t.remove)&&O(t.add)&&O(t.unsubscribe)}function N(t){O(t)?t():t.unsubscribe()}var q={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},R=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,l([t,e],c(n)))};function F(t){R(function(){throw t})}function D(){}function z(t){t()}var U=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,L(e)&&e.add(n)):n.destination=X,n}return n(e,t),e.create=function(t,e,n){return new B(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(M),H=Function.prototype.bind;function Y(t,e){return H.call(t,e)}var V=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){W(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){W(t)}else W(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){W(t)}},t}(),B=function(t){function e(e,n,r){var i,o,u=t.call(this)||this;O(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:u&&q.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return u.unsubscribe()},i={next:e.next&&Y(e.next,o),error:e.error&&Y(e.error,o),complete:e.complete&&Y(e.complete,o)}):i=e;return u.destination=new V(i),u}return n(e,t),e}(U);function W(t){F(t)}var X={closed:!0,next:D,error:function(t){throw t},complete:D},G="function"==typeof Symbol&&Symbol.observable||"@@observable";function J(t){return t}var Z=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof U||function(t){return t&&O(t.next)&&O(t.error)&&O(t.complete)}(r)&&L(r)?t:new B(t,e,n);return z(function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))}),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=K(e))(function(e,r){var i=new B({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)})},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[G]=function(){return this},t.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?J:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)})(this)},t.prototype.toPromise=function(t){var e=this;return new(t=K(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function K(t){var e;return null!==(e=null!=t?t:q.Promise)&&void 0!==e?e:Promise}function Q(t){return O(null==t?void 0:t.lift)}function $(t){return function(e){if(Q(e))return e.lift(function(e){try{return t(e,this)}catch(t){this.error(t)}});throw new TypeError("Unable to lift unknown Observable type")}}function tt(t,e,n,r,i){return new et(t,e,n,r,i)}var et=function(t){function e(e,n,r,i,o,u){var c=t.call(this,e)||this;return c.onFinalize=o,c.shouldUnsubscribe=u,c._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,c._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,c}return n(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(U);!function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Q(e)&&(r.lift=e.lift),r}n(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new M;var n=this.getSubject();e.add(this.source.subscribe(tt(n,void 0,function(){t._teardown(),n.complete()},function(e){t._teardown(),n.error(e)},function(){return t._teardown()}))),e.closed&&(this._connection=null,e=M.EMPTY)}return e},e.prototype.refCount=function(){return $(function(t,e){var n=null;t._refCount++;var r=tt(e,void 0,void 0,void 0,function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),e.unsubscribe()}});t.subscribe(r),r.closed||(n=t.connect())})(this)}}(Z);var nt,rt={now:function(){return(rt.delegate||performance).now()},delegate:void 0},it={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e(function(e){n=void 0,t(e)});return new M(function(){return null==n?void 0:n(r)})},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=it.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,l([],c(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,l([],c(t)))},delegate:void 0};new Z(function(t){var e=nt||rt,n=e.now(),r=0,i=function(){t.closed||(r=it.requestAnimationFrame(function(o){r=0;var u=e.now();t.next({timestamp:nt?u:o,elapsed:u-n}),i()}))};return i(),function(){r&&it.cancelAnimationFrame(r)}});var ot=C(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ut=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return n(e,t),e.prototype.lift=function(t){var e=new ct(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new ot},e.prototype.next=function(t){var e=this;z(function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=u(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var e=this;z(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;z(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?j:(this.currentObservers=null,o.push(t),new M(function(){e.currentObservers=null,I(o,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new Z;return t.source=this,t},e.create=function(t,e){return new ct(t,e)},e}(Z),ct=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return n(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:j},e}(ut);!function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}n(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(ut);var lt={now:function(){return(lt.delegate||Date).now()},delegate:void 0};!function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=lt);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}n(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,u=n._timestampProvider,c=n._windowTime;r||(i.push(e),!o&&i.push(u.now()+c)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var u=n.now(),c=0,l=1;l<r.length&&r[l]<=u;l+=2)c=l;c&&r.splice(0,c+1)}}}(ut),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}n(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,i=e._value,o=e.thrownError,u=e.isStopped,c=e._isComplete;n?t.error(o):(u||c)&&(r&&t.next(i),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(ut);var at,st=function(t){function e(e,n){return t.call(this)||this}return n(e,t),e.prototype.schedule=function(t,e){return this},e}(M),ft=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,l([t,e],c(n)))},dt=function(t){return clearInterval(t)},vt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return n(e,t),e.prototype.schedule=function(t,e){var n;if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),ft(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&dt(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,I(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(st),pt=1,ht={};function bt(t){return t in ht&&(delete ht[t],!0)}var yt=function(t){var e=pt++;return ht[e]=!0,at||(at=Promise.resolve()),at.then(function(){return bt(e)&&t()}),e},mt=function(t){bt(t)},gt={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=gt.delegate;return((null==n?void 0:n.setImmediate)||yt).apply(void 0,l([],c(t)))},clearImmediate:function(t){return mt(t)},delegate:void 0},wt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return n(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=gt.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);var o=e.actions;null!=n&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(gt.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))},e}(vt),xt=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=lt.now,t}(),Et=function(t){function e(e,n){void 0===n&&(n=xt.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r}return n(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(xt),At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(Et);new At(wt);var _t=new Et(vt),kt=_t,St=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return n(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.flush(this),0)},e}(vt),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Et);new Tt(St);var Ot=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return n(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=it.requestAnimationFrame(function(){return e.flush(void 0)})))},e.prototype.recycleAsyncId=function(e,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);var o=e.actions;null!=n&&n===e._scheduled&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(it.cancelAnimationFrame(n),e._scheduled=void 0)},e}(vt),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.flush=function(t){var e;this._active=!0,t?e=t.id:(e=this._scheduled,this._scheduled=void 0);var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(Et);new Ct(Ot),function(t){function e(e,n){void 0===e&&(e=Pt),void 0===n&&(n=1/0);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}n(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(Et);var Pt=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return n(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return M.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(vt),It=new Z(function(t){return t.complete()});function Mt(t){return t&&O(t.schedule)}function jt(t){return t[t.length-1]}function Lt(t){return Mt(jt(t))?t.pop():void 0}var Nt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function qt(t){return O(null==t?void 0:t.then)}function Rt(t){return O(t[G])}function Ft(t){return Symbol.asyncIterator&&O(null==t?void 0:t[Symbol.asyncIterator])}function Dt(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var zt,Ut="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Ht(t){return O(null==t?void 0:t[Ut])}function Yt(t){return s(this,arguments,function(){var e,n,r;return o(this,function(i){switch(i.label){case 0:e=t.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,a(e.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,a(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,a(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function Vt(t){return O(null==t?void 0:t.getReader)}function Bt(t){if(t instanceof Z)return t;if(null!=t){if(Rt(t))return i=t,new Z(function(t){var e=i[G]();if(O(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(Nt(t))return r=t,new Z(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()});if(qt(t))return n=t,new Z(function(t){n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,F)});if(Ft(t))return Wt(t);if(Ht(t))return e=t,new Z(function(t){var n,r;try{for(var i=u(e),o=i.next();!o.done;o=i.next()){var c=o.value;if(t.next(c),t.closed)return}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()});if(Vt(t))return Wt(Yt(t))}var e,n,r,i;throw Dt(t)}function Wt(t){return new Z(function(e){(function(t,e){var n,r,u,c;return i(this,void 0,void 0,function(){var i,l;return o(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),n=f(t),o.label=1;case 1:return[4,n.next()];case 2:if((r=o.sent()).done)return[3,4];if(i=r.value,e.next(i),e.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=o.sent(),u={error:l},[3,11];case 6:return o.trys.push([6,,9,10]),r&&!r.done&&(c=n.return)?[4,c.call(n)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})})(t,e).catch(function(t){return e.error(t)})})}function Xt(t,e,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function Gt(t,e){return void 0===e&&(e=0),$(function(n,r){n.subscribe(tt(r,function(n){return Xt(r,t,function(){return r.next(n)},e)},function(){return Xt(r,t,function(){return r.complete()},e)},function(n){return Xt(r,t,function(){return r.error(n)},e)}))})}function Jt(t,e){return void 0===e&&(e=0),$(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function Zt(t,e){if(!t)throw new Error("Iterable cannot be null");return new Z(function(n){Xt(n,e,function(){var r=t[Symbol.asyncIterator]();Xt(n,e,function(){r.next().then(function(t){t.done?n.complete():n.next(t.value)})},0,!0)})})}function Kt(t,e){if(null!=t){if(Rt(t))return function(t,e){return Bt(t).pipe(Jt(e),Gt(e))}(t,e);if(Nt(t))return function(t,e){return new Z(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}(t,e);if(qt(t))return function(t,e){return Bt(t).pipe(Jt(e),Gt(e))}(t,e);if(Ft(t))return Zt(t,e);if(Ht(t))return function(t,e){return new Z(function(n){var r;return Xt(n,e,function(){r=t[Ut](),Xt(n,e,function(){var t,e,i;try{e=(t=r.next()).value,i=t.done}catch(t){return void n.error(t)}i?n.complete():n.next(e)},0,!0)}),function(){return O(null==r?void 0:r.return)&&r.return()}})}(t,e);if(Vt(t))return function(t,e){return Zt(Yt(t),e)}(t,e)}throw Dt(t)}function Qt(t,e){return e?Kt(t,e):Bt(t)}function $t(t){return t instanceof Date&&!isNaN(t)}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(zt||(zt={})),C(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}}),C(function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),C(function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}}),C(function(t){return function(e){t(this),this.name="SequenceError",this.message=e}});var te=C(function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}});function ee(t){throw new te(t)}function ne(t,e){return $(function(n,r){var i=0;n.subscribe(tt(r,function(n){r.next(t.call(e,n,i++))}))})}var re=Array.isArray;function ie(t){return ne(function(e){return function(t,e){return re(e)?t.apply(void 0,l([],c(e))):t(e)}(t,e)})}function oe(t,e,n){return void 0===n&&(n=1/0),O(e)?oe(function(n,r){return ne(function(t,i){return e(n,t,r,i)})(Bt(t(n,r)))},n):("number"==typeof e&&(n=e),$(function(e,r){return function(t,e,n,r,i,o,u,c){var l=[],a=0,s=0,f=!1,d=function(){!f||l.length||a||e.complete()},v=function(t){return a<r?p(t):l.push(t)},p=function(t){o&&e.next(t),a++;var c=!1;Bt(n(t,s++)).subscribe(tt(e,function(t){null==i||i(t),o?v(t):e.next(t)},function(){c=!0},void 0,function(){if(c)try{a--;for(var t=function(){var t=l.shift();u?Xt(e,u,function(){return p(t)}):p(t)};l.length&&a<r;)t();d()}catch(t){e.error(t)}}))};return t.subscribe(tt(e,v,function(){f=!0,d()})),function(){null==c||c()}}(e,r,t,n)}))}function ue(t){return void 0===t&&(t=1/0),oe(J,t)}function ce(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ue(1)(Qt(t,Lt(t)))}var le=["addListener","removeListener"],ae=["addEventListener","removeEventListener"],se=["on","off"];function fe(t,e,n,r){if(O(n)&&(r=n,n=void 0),r)return fe(t,e,n).pipe(ie(r));var i=c(function(t){return O(t.addEventListener)&&O(t.removeEventListener)}(t)?ae.map(function(r){return function(i){return t[r](e,i,n)}}):function(t){return O(t.addListener)&&O(t.removeListener)}(t)?le.map(de(t,e)):function(t){return O(t.on)&&O(t.off)}(t)?se.map(de(t,e)):[],2),o=i[0],u=i[1];if(!o&&Nt(t))return oe(function(t){return fe(t,e,n)})(Bt(t));if(!o)throw new TypeError("Invalid event target");return new Z(function(t){var e=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1<e.length?e:e[0])};return o(e),function(){return u(e)}})}function de(t,e){return function(n){return function(r){return t[n](e,r)}}}function ve(t,e,n){void 0===t&&(t=0),void 0===n&&(n=kt);var r=-1;return null!=e&&(Mt(e)?n=e:r=e),new Z(function(e){var i=$t(t)?+t-n.now():t;i<0&&(i=0);var o=0;return n.schedule(function(){e.closed||(e.next(o++),0<=r?this.schedule(void 0,r):e.complete())},i)})}function pe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Lt(t),r=function(t,e){return"number"==typeof jt(t)?t.pop():e}(t,1/0),i=t;return i.length?1===i.length?Bt(i[0]):ue(r)(Qt(i,n)):It}new Z(D);var he=Array.isArray;function be(t,e){return $(function(n,r){var i=0;n.subscribe(tt(r,function(n){return t.call(e,n,i++)&&r.next(n)}))})}function ye(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===(e=1===(t=e).length&&he(t[0])?t[0]:t).length?Bt(e[0]):new Z(function(t){return function(e){for(var n=[],r=function(r){n.push(Bt(t[r]).subscribe(tt(e,function(t){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}e.next(t)})))},i=0;n&&!e.closed&&i<t.length;i++)r(i)}}(e))}function me(t){return t<=0?function(){return It}:$(function(e,n){var r=0;e.subscribe(tt(n,function(e){++r<=t&&(n.next(e),t<=r&&n.complete())}))})}function ge(t,e){return e?function(n){return ce(e.pipe(me(1),$(function(t,e){t.subscribe(tt(e,D))})),n.pipe(ge(t)))}:oe(function(e,n){return Bt(t(e,n)).pipe(me(1),function(t){return ne(function(){return t})}(e))})}function we(t){void 0===t&&(t={});var e=t.connector,n=void 0===e?function(){return new ut}:e,r=t.resetOnError,i=void 0===r||r,o=t.resetOnComplete,u=void 0===o||o,c=t.resetOnRefCountZero,l=void 0===c||c;return function(t){var e,r,o,c=0,a=!1,s=!1,f=function(){null==r||r.unsubscribe(),r=void 0},d=function(){f(),e=o=void 0,a=s=!1},v=function(){var t=e;d(),null==t||t.unsubscribe()};return $(function(t,p){c++,s||a||f();var h=o=null!=o?o:n();p.add(function(){0!==--c||s||a||(r=xe(v,l))}),h.subscribe(p),!e&&c>0&&(e=new B({next:function(t){return h.next(t)},error:function(t){s=!0,f(),r=xe(d,i,t),h.error(t)},complete:function(){a=!0,f(),r=xe(d,u),h.complete()}}),Bt(t).subscribe(e))})(t)}}function xe(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!0!==e){if(!1!==e){var i=new B({next:function(){i.unsubscribe(),t()}});return Bt(e.apply(void 0,l([],c(n)))).subscribe(i)}}else t()}function Ee(t,e,n){void 0===e&&(e=_t);var r=ve(t,e);return function(t,e){return $(function(n,r){var i=null!=e?e:{},o=i.leading,u=void 0===o||o,c=i.trailing,l=void 0!==c&&c,a=!1,s=null,f=null,d=!1,v=function(){null==f||f.unsubscribe(),f=null,l&&(b(),d&&r.complete())},p=function(){f=null,d&&r.complete()},h=function(e){return f=Bt(t(e)).subscribe(tt(r,v,p))},b=function(){if(a){a=!1;var t=s;s=null,r.next(t),!d&&h(t)}};n.subscribe(tt(r,function(t){a=!0,s=t,(!f||f.closed)&&(u?b():h(t))},function(){d=!0,(!(l&&a&&f)||f.closed)&&r.complete()}))})}(function(){return r},n)}var Ae=["input","select","textarea"],_e=function(t,e){var n,r=null===(n=null===window||void 0===window?void 0:window.getComputedStyle)||void 0===n?void 0:n.call(window,t);return"pointer"===(null==r?void 0:r.getPropertyValue("cursor"))&&"click"===e},ke=function(t,e,n){return void 0===n&&(n=!1),function(r,i){var o,u,c=t.pageUrlAllowlist,l=t.pageUrlExcludelist,a=t.shouldTrackEventResolver,s=null===(u=null===(o=null==i?void 0:i.tagName)||void 0===o?void 0:o.toLowerCase)||void 0===u?void 0:u.call(o);if(!s)return!1;if(a)return a(r,i);if(!d(window.location.href,c))return!1;if(l&&l.length>0&&d(window.location.href,l))return!1;var f=String(null==i?void 0:i.getAttribute("type"))||"";if("string"==typeof f)switch(f.toLowerCase()){case"hidden":case"password":return!1}var v=_e(i,r);if(n&&v)return!0;if(e){var p=e.some(function(t){var e;return!!(null===(e=null==i?void 0:i.matches)||void 0===e?void 0:e.call(i,t))});if(!p)return!1}switch(s){case"input":case"select":case"textarea":return"change"===r||"click"===r;default:return!!v||"click"===r}}},Se=function(t){return t?t.split(",").map(function(t){return t.trim()}).filter(function(t){return t.length>0&&"id"!==t&&"class"!==t}):[]},Te=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return function(t){return null==t||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length}(r)||(e[n]=r),e},{})},Oe=function(t,e){return t?e.some(function(e){var n;return null===(n=null==t?void 0:t.matches)||void 0===n?void 0:n.call(t,e)})?t:Oe(null==t?void 0:t.parentElement,e):null};var Ce=function(t){return!(null===t.event.target||!t.closestTrackedAncestor)};var Pe=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",k,S]),Ie=["type"],Me=["svg","path","g"],je=["password","hidden"];function Le(t,e){var n,r,i,o,c,l;if(null===t)return null;var a=String(t.tagName).toLowerCase(),s={tag:a},f=Array.from(null!==(o=null===(i=t.parentElement)||void 0===i?void 0:i.children)&&void 0!==o?o:[]);f.length&&(s.index=f.indexOf(t),s.indexOfType=f.filter(function(e){return e.tagName===t.tagName}).indexOf(t));var d=null===(l=null===(c=t.previousElementSibling)||void 0===c?void 0:c.tagName)||void 0===l?void 0:l.toLowerCase();d&&(s.prevSib=String(d));var v=t.getAttribute("id");v&&(s.id=String(v));var p=Array.from(t.classList);p.length&&(s.classes=p);var h={},b=Array.from(t.attributes).filter(function(t){return!Pe.has(t.name)}),y=!function(t){var e,n,r,i=null===(n=null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase)||void 0===n?void 0:n.call(e),o=t instanceof HTMLElement&&"true"===(null===(r=t.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase());return!Ae.includes(i)&&!o}(t);if(!je.includes(String(t.getAttribute("type")))&&!Me.includes(a))try{for(var m=u(b),g=m.next();!g.done;g=m.next()){var w=g.value;y&&!Ie.includes(w.name)||(e.has(w.name)?h[w.name]=T:h[w.name]=String(w.value).substring(0,128))}}catch(t){n={error:t}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return Object.keys(h).length&&(s.attrs=h),s}var Ne=function(t,e,n){t.forEach(function(t){if("string"!=typeof t&&"ATTACH_EVENT_PROPERTY"===t.actionType){var r=n.extractDataFromDataSource(t.dataSource,e.closestTrackedAncestor);e.targetElementProperties[t.destinationKey]=r}})},qe=/\b(?:\d[ -]*?){13,16}\b/,Re=/(\d{3}-?\d{2}-?\d{4})/g,Fe=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,De=function(t,e){var n,r,i,o=this;this.replaceSensitiveString=function(t){var e,n;if("string"!=typeof t)return"";var r=t;r=(r=(r=r.replace(qe,T)).replace(Re,T)).replace(Fe,T);try{for(var i=u(o.additionalMaskTextPatterns),c=i.next();!c.done;c=i.next()){var l=c.value;try{r=r.replace(l,T)}catch(t){}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},this.getHierarchy=function(t){var e,n,r,i,a,s=performance.now();if(!t)return[];for(var f=function(t){var e=[];if(!t)return e;e.push(t);for(var n=t.parentElement;n&&"HTML"!==n.tagName;)e.push(n),n=n.parentElement;return e}(t),d=new Map,v=f.length-1;v>=0;v--){var p=f[v];if(p){var h=Se(p.getAttribute(k)),b=v===f.length-1?[]:null!==(r=d.get(f[v+1]))&&void 0!==r?r:new Set,y=new Set(l(l([],c(b),!1),c(h),!1));d.set(p,y)}}a=f.map(function(t){var e;return Le(t,null!==(e=d.get(t))&&void 0!==e?e:new Set)});var m=function(t){(null==t?void 0:t.attrs)&&Object.entries(t.attrs).forEach(function(e){var n=c(e,2),r=n[0],i=n[1];t.attrs&&(t.attrs[r]=o.replaceSensitiveString(i))})};try{for(var g=u(a),w=g.next();!w.done;w=g.next())m(w.value)}catch(t){e={error:t}}finally{try{w&&!w.done&&(n=g.return)&&n.call(g)}finally{if(e)throw e.error}}var x=performance.now();return null===(i=o.diagnosticsClient)||void 0===i||i.recordHistogram("autocapturePlugin.getHierarchy",x-s),a},this.getNearestLabel=function(t){var e,n=t.parentElement;if(!n)return"";try{e=n.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(t){e=null}return e?o.getText(e):o.getNearestLabel(n)},this.getEventProperties=function(t,e,n){var r,i,u,l,a,s,f=null===(u=null===(i=null==e?void 0:e.tagName)||void 0===i?void 0:i.toLowerCase)||void 0===u?void 0:u.call(i),d="function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{left:null,top:null},v=o.getHierarchy(e),p=null===(l=v[0])||void 0===l?void 0:l.attrs,h=o.getNearestLabel(e),b=(a=null!=p?p:{},s=n,Object.entries(a).reduce(function(t,e){var n=c(e,2),r=n[0],i=n[1];if(r.startsWith(s)){var o=r.replace(s,"");o&&(t[o]=i||"")}return t},{})),y=((r={})["[Amplitude] Element Hierarchy"]=v,r[w]=f,r[x]=o.getText(e),r["[Amplitude] Element Position Left"]=null==d.left?null:Math.round(d.left),r["[Amplitude] Element Position Top"]=null==d.top?null:Math.round(d.top),r["[Amplitude] Element Attributes"]=b,r["[Amplitude] Element Parent Label"]=h,r[E]=function(t,e){var n=t;try{n=decodeURI(t)}catch(t){null==e||e.error("Malformed URI sequence: ",t)}return n}(window.location.href.split("?")[0]),r["[Amplitude] Page Title"]=o.getPageTitle(),r["[Amplitude] Viewport Height"]=window.innerHeight,r["[Amplitude] Viewport Width"]=window.innerWidth,r);return y["[Amplitude] Element ID"]=e.getAttribute("id")||"",y["[Amplitude] Element Class"]=e.getAttribute("class"),y["[Amplitude] Element Aria Label"]=null==p?void 0:p["aria-label"],"a"===f&&"click"===t&&e instanceof HTMLAnchorElement&&(y["[Amplitude] Element Href"]=o.replaceSensitiveString(e.href)),Te(y)},this.addAdditionalEventProperties=function(t,e,n,r,i){void 0===i&&(i=!1);var u={event:t,timestamp:Date.now(),type:e};if(function(t){return"click"===t.type||"change"===t.type}(u)&&null!==u.event.target){if(i&&_e(u.event.target,u.type))return u.closestTrackedAncestor=u.event.target,u.targetElementProperties=o.getEventProperties(u.type,u.closestTrackedAncestor,r),u;var c=Oe(u.event.target,n);return c&&(u.closestTrackedAncestor=c,u.targetElementProperties=o.getEventProperties(u.type,c,r)),u}return u},this.extractDataFromDataSource=function(t,e){if("DOM_ELEMENT"===t.sourceType){var n=function(t,e){try{if("DOM_ELEMENT"===t.sourceType){var n=document.documentElement;return t.scope&&e&&(n=e.closest(t.scope)),n&&t.selector?n.querySelector(t.selector):n}}catch(t){return}}(t,e);if(!n)return;return"TEXT"===t.elementExtractType?o.getText(n):"ATTRIBUTE"===t.elementExtractType&&t.attribute?n.getAttribute(t.attribute):void 0}},this.getText=function(t){if(null!==t.closest("[".concat(S,"]")))return T;var e="";if(t.querySelector("[".concat(S,"], [contenteditable]"))){var n=t.cloneNode(!0);n.querySelectorAll("[".concat(S,"], [contenteditable]")).forEach(function(t){t.innerText=T}),e=n.innerText||""}else e=t.innerText||"";return o.replaceSensitiveString(e.substring(0,255)).replace(/\s+/g," ").trim()},this.getPageTitle=function(){if("undefined"==typeof document)return"";var t=document.querySelector("title");return t&&t.hasAttribute(S)?T:o.replaceSensitiveString(document.title)},this.getEventTagProps=function(t){var e,n,r;if(!t)return{};var i=null===(r=null===(n=null==t?void 0:t.tagName)||void 0===n?void 0:n.toLowerCase)||void 0===r?void 0:r.call(n),u=((e={})[w]=i,e[x]=o.getText(t),e[E]=window.location.href.split("?")[0],e);return Te(u)},this.diagnosticsClient=null==e?void 0:e.diagnosticsClient;var a=null!==(i=t.maskTextRegex)&&void 0!==i?i:[],s=[];try{for(var f=u(a),d=f.next();!d.done;d=f.next()){var v=d.value;if(s.length>=25)break;if(v instanceof RegExp)s.push(v);else if("pattern"in v&&"string"==typeof v.pattern)try{s.push(new RegExp(v.pattern,"i"))}catch(t){}}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}this.additionalMaskTextPatterns=s},ze=function(){function t(t){var e=(void 0===t?{}:t).origin,n=void 0===e?A:e,r=this;this.endpoint=A,this.requestCallbacks={},this.onSelect=function(t){r.notify({action:"element-selected",data:t})},this.onTrack=function(t,e){"selector-mode-changed"===t?r.notify({action:"track-selector-mode-changed",data:e}):"selector-moved"===t&&r.notify({action:"track-selector-moved",data:e})},this.endpoint=n}return t.prototype.notify=function(t){var e,n,r,i;null===(n=null===(e=this.logger)||void 0===e?void 0:e.debug)||void 0===n||n.call(e,"Message sent: ",JSON.stringify(t)),null===(i=null===(r=window.opener)||void 0===r?void 0:r.postMessage)||void 0===i||i.call(r,t,this.endpoint)},t.prototype.sendRequest=function(t,e,n){var r=this;void 0===n&&(n={timeout:15e3});var i="".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),o={id:i,action:t,args:e};return new Promise(function(e,u){r.requestCallbacks[i]={resolve:e,reject:u},r.notify(o),(null==n?void 0:n.timeout)>0&&setTimeout(function(){u(new Error("".concat(t," timed out (id: ").concat(i,")"))),delete r.requestCallbacks[i]},n.timeout)})},t.prototype.handleResponse=function(t){var e;this.requestCallbacks[t.id]?(this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]):null===(e=this.logger)||void 0===e||e.warn("No callback found for request id: ".concat(t.id))},t.prototype.setup=function(t){var e=this,n=void 0===t?{dataExtractor:new De({})}:t,r=n.logger,i=n.endpoint,o=n.isElementSelectable,u=n.cssSelectorAllowlist,c=n.actionClickAllowlist,l=n.dataExtractor;this.logger=r,i&&this.endpoint===A&&(this.endpoint=i);var a=null;window.addEventListener("message",function(t){var n,r,i,s,f;if(null===(r=null===(n=e.logger)||void 0===n?void 0:n.debug)||void 0===r||r.call(n,"Message received: ",JSON.stringify(t)),e.endpoint===t.origin){var d,v=null==t?void 0:t.data,p=null==v?void 0:v.action;if(p)if("id"in v)null===(s=null===(i=e.logger)||void 0===i?void 0:i.debug)||void 0===s||s.call(i,"Received Response to previous request: ",JSON.stringify(t)),e.handleResponse(v);else if("ping"===p)e.notify({action:"pong"});else if("initialize-visual-tagging-selector"===p){var h=null==v?void 0:v.data;(d="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",new Promise(function(t,e){var n;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=d,r.addEventListener("load",function(){t({status:!0})},{once:!0}),r.addEventListener("error",function(){e({status:!1,message:"Failed to load the script ".concat(d)})}),null===(n=document.head)||void 0===n||n.appendChild(r)}catch(t){e(t)}})).then(function(){var t;a=null===(t=null===window||void 0===window?void 0:window.amplitudeVisualTaggingSelector)||void 0===t?void 0:t.call(window,{getEventTagProps:l.getEventTagProps,isElementSelectable:function(t){return!o||o((null==h?void 0:h.actionType)||"click",t)},onTrack:e.onTrack,onSelect:e.onSelect,visualHighlightClass:"amp-visual-tagging-selector-highlight",messenger:e,cssSelectorAllowlist:u,actionClickAllowlist:c,extractDataFromDataSource:l.extractDataFromDataSource,dataExtractor:l,diagnostics:{autocapture:{version:"1.14.4"}}}),e.notify({action:"selector-loaded"})}).catch(function(){var t;null===(t=e.logger)||void 0===t||t.warn("Failed to initialize visual tagging selector")})}else"close-visual-tagging-selector"===p&&(null===(f=null==a?void 0:a.close)||void 0===f||f.call(a))}}),this.notify({action:"page-loaded"})},t}();function Ue(t){var e,n,r,i=t.amplitude,o=t.allObservables,l=t.options,a=t.shouldTrackEvent,s=t.evaluateTriggers,f=o.clickObservable,d=f.pipe($(function(t,e){var n,r=!1;t.subscribe(tt(e,function(t){var i=n;n=t,r&&e.next([i,t]),r=!0}))}),be(function(t){var e=c(t,2),n=e[0],r=e[1],i=n.event.target!==r.event.target,o=Math.abs(r.event.screenX-n.event.screenX)<=20&&Math.abs(r.event.screenY-n.event.screenY)<=20;return i&&!o})),v=pe(d,f.pipe((e=l.debounceTime,void 0===n&&(n=_t),$(function(t,r){var i=null,o=null,u=null,c=function(){if(i){i.unsubscribe(),i=null;var t=o;o=null,r.next(t)}};function l(){var t=u+e,o=n.now();if(o<t)return i=this.schedule(void 0,t-o),void r.add(i);c()}t.subscribe(tt(r,function(t){o=t,u=n.now(),i||(i=n.schedule(l,e),r.add(i))},function(){c(),r.complete()},void 0,function(){o=i=null}))})),ne(function(){return"timeout"}))),p=f.pipe(function(t,e){void 0===e&&(e=_t);var n=ve(t,e);return ge(function(){return n})}(0),be(Ce),be(function(t){return a("click",t.closestTrackedAncestor)}),ne(function(t){return s(t)}),(r=v,$(function(t,e){var n=[];return t.subscribe(tt(e,function(t){return n.push(t)},function(){e.next(n),e.complete()})),Bt(r).subscribe(tt(e,function(){var t=n;n=[],e.next(t)},D)),function(){n=null}})));return p.subscribe(function(t){var e,n,r=(t.length,m);try{for(var o=u(t),c=o.next();!c.done;c=o.next()){var l=c.value;null==i||i.track(r,l.targetElementProperties)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}})}function He(t){var e=t.amplitude,n=t.allObservables,r=t.options,i=t.getEventProperties,o=t.shouldTrackEvent,u=t.shouldTrackActionClick,a=n.clickObservable,s=n.mutationObservable,f=n.navigateObservable,d=a.pipe(be(function(t){return!o("click",t.closestTrackedAncestor)}),ne(function(t){var e=Oe(t.event.target,r.actionClickAllowlist);return t.closestTrackedAncestor=e,null!==t.closestTrackedAncestor&&(t.targetElementProperties=i(t.type,t.closestTrackedAncestor)),t}),be(Ce),be(function(t){return u("click",t.closestTrackedAncestor)})),v=[s];f&&v.push(f);var p,h,b=pe.apply(void 0,l([],c(v),!1)),y=d.pipe((p=function(t){return b.pipe(me(1),function(t,e){var n=$t(t)?{first:t}:"number"==typeof t?{each:t}:t,r=n.first,i=n.each,o=n.with,u=void 0===o?ee:o,c=n.scheduler,l=void 0===c?null!=e?e:_t:c,a=n.meta,s=void 0===a?null:a;if(null==r&&null==i)throw new TypeError("No timeout provided.");return $(function(t,e){var n,o,c=null,a=0,f=function(t){o=Xt(e,l,function(){try{n.unsubscribe(),Bt(u({meta:s,lastValue:c,seen:a})).subscribe(e)}catch(t){e.error(t)}},t)};n=t.subscribe(tt(e,function(t){null==o||o.unsubscribe(),a++,e.next(c=t),i>0&&f(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),c=null})),!a&&f(null!=r?"number"==typeof r?r:+r-l.now():i)})}({first:500,with:function(){return It}}),ne(function(){return t}))},$(function(t,e){var n=null,r=0,i=!1,o=function(){return i&&!n&&e.complete()};t.subscribe(tt(e,function(t){null==n||n.unsubscribe();var i=0,u=r++;Bt(p(t,u)).subscribe(n=tt(e,function(n){return e.next(h?h(t,n,u,i++):n)},function(){n=null,o()}))},function(){i=!0,o()}))})));return y.subscribe(function(t){null==e||e.track(m,i("click",t.closestTrackedAncestor))})}var Ye,Ve=function(){return new Z(function(t){var e=new MutationObserver(function(e){t.next(e)});return e.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return e.disconnect()}})},Be=function(t){return void 0===t&&(t="click"),fe(document,t,{capture:!0})},We={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},Xe=function(t){var e,n,r,i,o=Object.values(We).reduce(function(t,e){return t[e]=new Set,t},{});if(!t)return o;try{for(var c=u(t),l=c.next();!l.done;l=c.next()){var a=l.value;try{try{for(var s=(r=void 0,u(a.definition)),f=s.next();!f.done;f=s.next()){var d=f.value,v=We[d.event_type];v&&o[v].add(a.id)}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}catch(t){console.warn("Skipping Labeled Event due to malformed definition",null==a?void 0:a.id,t)}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return o},Ge=function(t){var e,n,r,i,o=new Map;try{for(var c=u(t),l=c.next();!l.done;l=c.next()){var a=l.value;try{for(var s=(r=void 0,u(a.conditions)),f=s.next();!f.done;f=s.next()){var d=f.value;if("LABELED_EVENT"===d.type){var v=d.match.eventId,p=o.get(v);p||(p=[],o.set(v,p)),p.push(a)}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return o},Je=function(t,e){return e.filter(function(e){return e.definition.some(function(e){return We[e.event_type]===t.type&&e.filters.every(function(e){return function(t,e){try{if("[Amplitude] Element Text"===e.subprop_key)return"is"===e.subprop_op&&e.subprop_value.includes(t.targetElementProperties["[Amplitude] Element Text"]);if("[Amplitude] Element Hierarchy"===e.subprop_key)return"autotrack css match"===e.subprop_op&&!!t.closestTrackedAncestor.closest(e.subprop_value.toString())}catch(t){return console.error("Error matching event to filter",t),!1}return!1}(t,e)})})})},Ze=function(){function t(t,e,n,r){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=e,this.dataExtractor=n,this.options=r}return t.prototype.evaluate=function(t){var e,n,r=this.options.pageActions;if(!r)return t;var i=function(t,e){var n,r,i,o,c=new Set;try{for(var l=u(t),a=l.next();!a.done;a=l.next()){var s=a.value,f=e.get(s.id);if(f)try{for(var d=(i=void 0,u(f)),v=d.next();!v.done;v=d.next()){var p=v.value;c.add(p)}}catch(t){i={error:t}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return Array.from(c)}(Je(t,Array.from(this.groupedLabeledEvents[t.type]).map(function(t){return r.labeledEvents[t]})),this.labeledEventToTriggerMap);try{for(var o=u(i),c=o.next();!c.done;c=o.next()){var l=c.value;Ne(l.actions,t,this.dataExtractor)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return t},t.prototype.update=function(t,e,n){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=e,this.options=n},t}();!function(t){t.ClickObservable="clickObservable",t.ChangeObservable="changeObservable",t.NavigateObservable="navigateObservable",t.MutationObservable="mutationObservable"}(Ye||(Ye={}));var Ke=function(t,e){var n,a,s,f,d,b,y,m;void 0===t&&(t={});var g=t.dataAttributePrefix,w=void 0===g?p:g,x=t.visualTaggingOptions,E=void 0===x?{enabled:!0,messenger:new ze}:x;t.cssSelectorAllowlist=null!==(n=t.cssSelectorAllowlist)&&void 0!==n?n:v,t.actionClickAllowlist=null!==(a=t.actionClickAllowlist)&&void 0!==a?a:h,t.debounceTime=null!==(s=t.debounceTime)&&void 0!==s?s:0,t.pageUrlExcludelist=null===(f=t.pageUrlExcludelist)||void 0===f?void 0:f.reduce(function(t,e){if("string"==typeof e&&t.push(e),e instanceof RegExp&&t.push(e),"object"==typeof e&&null!==e&&"pattern"in e)try{t.push(new RegExp(e.pattern))}catch(n){return console.warn("Invalid regex pattern: ".concat(e.pattern),n),t}return t},[]);var A="@amplitude/plugin-autocapture-browser",k=[],S=new De(t,e),T=Xe(Object.values(null!==(b=null===(d=t.pageActions)||void 0===d?void 0:d.labeledEvents)&&void 0!==b?b:{})),O=Ge(null!==(m=null===(y=t.pageActions)||void 0===y?void 0:y.triggers)&&void 0!==m?m:[]),C=function(t,e,n,r){return new Ze(t,e,n,r)}(T,O,S,t);return{name:A,type:"enrichment",setup:function(e,n){return i(void 0,void 0,void 0,function(){var i,u,a,s,f,d,v,p,h,b;return o(this,function(o){return"undefined"==typeof document||(e.fetchRemoteConfig&&(e.remoteConfigClient?e.remoteConfigClient.subscribe("analyticsSDK.pageActions","all",function(e){!function(e){var n,i;e&&(t.pageActions=r(r({},t.pageActions),e),T=Xe(Object.values(null!==(n=t.pageActions.labeledEvents)&&void 0!==n?n:{})),O=Ge(null!==(i=t.pageActions.triggers)&&void 0!==i?i:[]),C.update(T,O,t))}(e)}):e.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),i=ke(t,t.cssSelectorAllowlist),u=ke(t,t.actionClickAllowlist),a=function(){var e,n,r=Be().pipe(ne(function(e){return S.addAdditionalEventProperties(e,"click",t.cssSelectorAllowlist,w)}),we()),i=fe(document,"change",{capture:!0}).pipe(ne(function(e){return S.addAdditionalEventProperties(e,"change",t.cssSelectorAllowlist,w)}),we());window.navigation&&(n=fe(window.navigation,"navigate").pipe(ne(function(e){return S.addAdditionalEventProperties(e,"navigate",t.cssSelectorAllowlist,w)}),we()));var o=Ve().pipe(ne(function(e){return S.addAdditionalEventProperties(e,"mutation",t.cssSelectorAllowlist,w)}),we());return(e={})[Ye.ClickObservable]=r,e[Ye.ChangeObservable]=i,e[Ye.NavigateObservable]=n,e[Ye.MutationObservable]=o,e}(),s=Ue({allObservables:a,options:t,amplitude:n,shouldTrackEvent:i,evaluateTriggers:C.evaluate.bind(C)}),k.push(s),f=function(t){var e=t.amplitude,n=t.allObservables,r=t.getEventProperties,i=t.shouldTrackEvent,o=t.evaluateTriggers;return n.changeObservable.pipe(be(Ce),be(function(t){return i("change",t.closestTrackedAncestor)}),ne(function(t){return o(t)})).subscribe(function(t){null==e||e.track("[Amplitude] Element Changed",r("change",t.closestTrackedAncestor))})}({allObservables:a,getEventProperties:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S.getEventProperties.apply(S,l(l([],c(t),!1),[w],!1))},amplitude:n,shouldTrackEvent:i,evaluateTriggers:C.evaluate.bind(C)}),k.push(f),d=He({allObservables:a,options:t,getEventProperties:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return S.getEventProperties.apply(S,l(l([],c(t),!1),[w],!1))},amplitude:n,shouldTrackEvent:i,shouldTrackActionClick:u}),k.push(d),null===(h=null==e?void 0:e.loggerProvider)||void 0===h||h.log("".concat(A," has been successfully added.")),window.opener&&E.enabled&&(v=t.cssSelectorAllowlist,p=t.actionClickAllowlist,null===(b=E.messenger)||void 0===b||b.setup(r(r({dataExtractor:S,logger:null==e?void 0:e.loggerProvider},(null==e?void 0:e.serverZone)&&{endpoint:_[e.serverZone]}),{isElementSelectable:ke(t,l(l([],c(v),!1),c(p),!1)),cssSelectorAllowlist:v,actionClickAllowlist:p})))),[2]})})},execute:function(t){return i(void 0,void 0,void 0,function(){return o(this,function(e){return[2,t]})})},teardown:function(){return i(void 0,void 0,void 0,function(){var t,e,n,r;return o(this,function(i){try{for(t=u(k),e=t.next();!e.done;e=t.next())e.value.unsubscribe()}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return[2]})})}}};function Qe(t,e){var n,r,i,o,u=e.event,c=u.clientX,l=u.clientY;t.yMin=Math.min(null!==(n=t.yMin)&&void 0!==n?n:l,l),t.yMax=Math.max(null!==(r=t.yMax)&&void 0!==r?r:l,l),t.xMin=Math.min(null!==(i=t.xMin)&&void 0!==i?i:c,c),t.xMax=Math.max(null!==(o=t.xMax)&&void 0!==o?o:c,c),t.isOutOfBounds=t.yMax-t.yMin>50||t.xMax-t.xMin>50}function $e(t){var e=t[0],n=t[t.length-1];return{rageClickEvent:r({"[Amplitude] Begin Time":new Date(e.timestamp).toISOString(),"[Amplitude] End Time":new Date(n.timestamp).toISOString(),"[Amplitude] Duration":n.timestamp-e.timestamp,"[Amplitude] Clicks":t.map(function(t){return{X:t.event.clientX,Y:t.event.clientY,Time:t.timestamp}}),"[Amplitude] Click Count":t.length},e.targetElementProperties),time:e.timestamp}}function tn(t){var e,n=t.amplitude,r=t.allObservables,i=t.shouldTrackRageClick,o=r.clickObservable,u=[],c={};function l(t){u=[],c={},t&&(Qe(c,t),u.push(t))}return o.pipe(be(Ce),be(function(t){return i("click",t.closestTrackedAncestor)}),ne(function(t){if(e&&clearTimeout(e),Qe(c,t),0===u.length)return u.push(t),null;if(function(t,e){return t.length>0&&t[t.length-1].closestTrackedAncestor!==e.closestTrackedAncestor}(u,t)||function(t,e){var n=t[Math.max(0,t.length-4+1)];return e.timestamp-n.timestamp>=1e3}(u,t)||c.isOutOfBounds){var r=u.length>=4?$e(u):null;return l(t),r}return u.push(t),u.length>=4&&(e=setTimeout(function(){var t=$e(u),e=t.rageClickEvent,r=t.time;n.track(g,e,{time:r}),l()},1e3)),null}),be(function(t){return null!==t})).subscribe(function(t){null!==t&&n.track(g,t.rageClickEvent,{time:t.time})})}t.DataExtractor=De,t.WindowMessenger=ze,t.autocapturePlugin=Ke,t.frustrationPlugin=function(t){var e,n,a,s,f;void 0===t&&(t={});var d="@amplitude/plugin-frustration-browser",v=[],h=null!==(n=null===(e=t.rageClicks)||void 0===e?void 0:e.cssSelectorAllowlist)&&void 0!==n?n:y,m=null!==(s=null===(a=t.deadClicks)||void 0===a?void 0:a.cssSelectorAllowlist)&&void 0!==s?s:b,g=null!==(f=t.dataAttributePrefix)&&void 0!==f?f:p,w=new De(t),x=l([],c(new Set(l(l([],c(h),!1),c(m),!1))),!1);return{name:d,type:"enrichment",setup:function(e,n){return i(void 0,void 0,void 0,function(){var i,u,a,s,f,p;return o(this,function(o){return"undefined"==typeof document||(i=ke(t,h),u=ke(t,m),a=function(){var t,e,n=Be("pointerdown").pipe(ne(function(t){return w.addAdditionalEventProperties(t,"click",x,g,!0)}),we());window.navigation&&(e=fe(window.navigation,"navigate").pipe(ne(function(t){return w.addAdditionalEventProperties(t,"navigate",x,g)}),we()));var r=Ve().pipe(ne(function(t){return w.addAdditionalEventProperties(t,"mutation",x,g)}),we());return(t={})[Ye.ClickObservable]=n,t[Ye.ChangeObservable]=new Z,t[Ye.NavigateObservable]=e,t[Ye.MutationObservable]=r,t}(),s=tn({allObservables:a,amplitude:n,shouldTrackRageClick:i}),v.push(s),f=function(t){var e=t.amplitude,n=t.allObservables,i=t.getEventProperties,o=t.shouldTrackDeadClick,u=n.clickObservable,a=n.mutationObservable,s=n.navigateObservable,f=u.pipe(be(Ce),be(function(t){return o("click",t.closestTrackedAncestor)}),be(function(t){return null===t.event.target.closest('a[target="_blank"]')})),d=[a];s&&d.push(s);var v=pe.apply(void 0,l([],c(d),!1));return f.pipe(oe(function(t){var e;return ye(new Z(function(n){return e=setTimeout(function(){return n.next(t)},3e3),function(){clearTimeout(e)}}),v.pipe(me(1),ne(function(){return null}))).pipe(be(function(t){return null!==t}))}),Ee(3e3)).subscribe(function(t){var n={"[Amplitude] X":t.event.clientX,"[Amplitude] Y":t.event.clientY};e.track("[Amplitude] Dead Click",r(r({},i("click",t.closestTrackedAncestor)),n),{time:t.timestamp})})}({amplitude:n,allObservables:a,getEventProperties:function(t,e){return w.getEventProperties(t,e,g)},shouldTrackDeadClick:u}),v.push(f),null===(p=null==e?void 0:e.loggerProvider)||void 0===p||p.log("".concat(d," has been successfully added."))),[2]})})},execute:function(t){return i(void 0,void 0,void 0,function(){return o(this,function(e){return[2,t]})})},teardown:function(){return i(void 0,void 0,void 0,function(){var t,e,n,r;return o(this,function(i){try{for(t=u(v),e=t.next();!e.done;e=t.next())e.value.unsubscribe()}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return[2]})})}}},t.plugin=Ke,Object.defineProperty(t,"__esModule",{value:!0})});
Binary file
@@ -30,5 +30,7 @@ export declare const AMPLITUDE_ORIGINS_MAP: {
30
30
  export declare const AMPLITUDE_VISUAL_TAGGING_SELECTOR_SCRIPT_URL = "https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz";
31
31
  export declare const AMPLITUDE_VISUAL_TAGGING_HIGHLIGHT_CLASS = "amp-visual-tagging-selector-highlight";
32
32
  export declare const DATA_AMP_MASK_ATTRIBUTES = "data-amp-mask-attributes";
33
+ export declare const TEXT_MASK_ATTRIBUTE = "data-amp-mask";
34
+ export declare const MASKED_TEXT_VALUE = "*****";
33
35
  export declare const MAX_MASK_TEXT_PATTERNS = 25;
34
36
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,0CAA0C,CAAC;AACnE,eAAO,MAAM,uBAAuB,0CAA0C,CAAC;AAE/E,eAAO,MAAM,+BAA+B,gCAAgC,CAAC;AAC7E,eAAO,MAAM,oCAAoC,2BAA2B,CAAC;AAC7E,eAAO,MAAM,oCAAoC,2BAA2B,CAAC;AAC7E,eAAO,MAAM,+BAA+B,gCAAgC,CAAC;AAE7E,eAAO,MAAM,+BAA+B,2BAA2B,CAAC;AACxE,eAAO,MAAM,kCAAkC,8BAA8B,CAAC;AAC9E,eAAO,MAAM,gCAAgC,4BAA4B,CAAC;AAC1E,eAAO,MAAM,iCAAiC,6BAA6B,CAAC;AAC5E,eAAO,MAAM,sCAAsC,kCAAkC,CAAC;AACtF,eAAO,MAAM,iCAAiC,6BAA6B,CAAC;AAC5E,eAAO,MAAM,0CAA0C,sCAAsC,CAAC;AAC9F,eAAO,MAAM,yCAAyC,qCAAqC,CAAC;AAC5F,eAAO,MAAM,uCAAuC,mCAAmC,CAAC;AACxF,eAAO,MAAM,uCAAuC,mCAAmC,CAAC;AAExF,eAAO,MAAM,yCAAyC,qCAAqC,CAAC;AAC5F,eAAO,MAAM,6BAA6B,yBAAyB,CAAC;AACpE,eAAO,MAAM,+BAA+B,2BAA2B,CAAC;AACxE,eAAO,MAAM,oCAAoC,gCAAgC,CAAC;AAClF,eAAO,MAAM,mCAAmC,+BAA+B,CAAC;AAGhF,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAC5D,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAClE,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAC3E,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,4CAA4C,6EACmB,CAAC;AAG7E,eAAO,MAAM,wCAAwC,0CAA0C,CAAC;AAGhG,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,sBAAsB,KAAK,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,0CAA0C,CAAC;AACnE,eAAO,MAAM,uBAAuB,0CAA0C,CAAC;AAE/E,eAAO,MAAM,+BAA+B,gCAAgC,CAAC;AAC7E,eAAO,MAAM,oCAAoC,2BAA2B,CAAC;AAC7E,eAAO,MAAM,oCAAoC,2BAA2B,CAAC;AAC7E,eAAO,MAAM,+BAA+B,gCAAgC,CAAC;AAE7E,eAAO,MAAM,+BAA+B,2BAA2B,CAAC;AACxE,eAAO,MAAM,kCAAkC,8BAA8B,CAAC;AAC9E,eAAO,MAAM,gCAAgC,4BAA4B,CAAC;AAC1E,eAAO,MAAM,iCAAiC,6BAA6B,CAAC;AAC5E,eAAO,MAAM,sCAAsC,kCAAkC,CAAC;AACtF,eAAO,MAAM,iCAAiC,6BAA6B,CAAC;AAC5E,eAAO,MAAM,0CAA0C,sCAAsC,CAAC;AAC9F,eAAO,MAAM,yCAAyC,qCAAqC,CAAC;AAC5F,eAAO,MAAM,uCAAuC,mCAAmC,CAAC;AACxF,eAAO,MAAM,uCAAuC,mCAAmC,CAAC;AAExF,eAAO,MAAM,yCAAyC,qCAAqC,CAAC;AAC5F,eAAO,MAAM,6BAA6B,yBAAyB,CAAC;AACpE,eAAO,MAAM,+BAA+B,2BAA2B,CAAC;AACxE,eAAO,MAAM,oCAAoC,gCAAgC,CAAC;AAClF,eAAO,MAAM,mCAAmC,+BAA+B,CAAC;AAGhF,eAAO,MAAM,gBAAgB,8BAA8B,CAAC;AAC5D,eAAO,MAAM,mBAAmB,iCAAiC,CAAC;AAClE,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAC3E,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,4CAA4C,6EACmB,CAAC;AAG7E,eAAO,MAAM,wCAAwC,0CAA0C,CAAC;AAGhG,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD,eAAO,MAAM,iBAAiB,UAAU,CAAC;AAEzC,eAAO,MAAM,sBAAsB,KAAK,CAAC"}
@@ -18,6 +18,11 @@ export declare class DataExtractor {
18
18
  addAdditionalEventProperties: <T>(event: T, type: "click" | "change" | "rage" | "error" | "navigate" | "mutation", selectorAllowlist: string[], dataAttributePrefix: string, isCapturingCursorPointer?: boolean) => TimestampedEvent<T>;
19
19
  extractDataFromDataSource: (dataSource: DataSource, contextElement: HTMLElement) => string | null | undefined;
20
20
  getText: (element: Element) => string;
21
+ /**
22
+ * Gets the page title, checking if the title element has data-amp-mask attribute
23
+ * @returns The page title, masked if the title element has data-amp-mask attribute
24
+ */
25
+ getPageTitle: () => string;
21
26
  getEventTagProps: (element: Element) => Record<string, JSONValue>;
22
27
  }
23
28
  //# sourceMappingURL=data-extractor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-extractor.d.ts","sourceRoot":"","sources":["../../src/data-extractor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAgB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACrH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAU/F,OAAO,KAAK,EAAwB,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEtG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAOlD,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAW;IACtD,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;gBAE3B,OAAO,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE;QAAE,iBAAiB,EAAE,kBAAkB,CAAA;KAAE;IAuBpG,sBAAsB,SAAU,MAAM,GAAG,IAAI,KAAG,MAAM,CA0BpD;IAGF,YAAY,YAAa,OAAO,GAAG,IAAI,eA4CrC;IAEF,eAAe,YAAa,OAAO,KAAG,MAAM,CAiB1C;IAGF,kBAAkB,eAAgB,UAAU,WAAW,OAAO,uBAAuB,MAAM;;MA0CzF;IAEF,4BAA4B,0GAGP,MAAM,EAAE,uBACN,MAAM,6DAuC3B;IAEF,yBAAyB,eAAgB,UAAU,kBAAkB,WAAW,+BAkB9E;IAEF,OAAO,YAAa,OAAO,KAAG,MAAM,CAkBlC;IAGF,gBAAgB,YAAa,OAAO,KAAG,OAAO,MAAM,EAAE,SAAS,CAAC,CAa9D;CACH"}
1
+ {"version":3,"file":"data-extractor.d.ts","sourceRoot":"","sources":["../../src/data-extractor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAgB,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACrH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAU/F,OAAO,KAAK,EAAwB,4BAA4B,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEtG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAMlD,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAW;IACtD,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;gBAE3B,OAAO,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE;QAAE,iBAAiB,EAAE,kBAAkB,CAAA;KAAE;IAuBpG,sBAAsB,SAAU,MAAM,GAAG,IAAI,KAAG,MAAM,CA0BpD;IAGF,YAAY,YAAa,OAAO,GAAG,IAAI,eA4CrC;IAEF,eAAe,YAAa,OAAO,KAAG,MAAM,CAiB1C;IAGF,kBAAkB,eAAgB,UAAU,WAAW,OAAO,uBAAuB,MAAM;;MAwCzF;IAEF,4BAA4B,0GAGP,MAAM,EAAE,uBACN,MAAM,6DAuC3B;IAEF,yBAAyB,eAAgB,UAAU,kBAAkB,WAAW,+BAkB9E;IAEF,OAAO,YAAa,OAAO,KAAG,MAAM,CAkBlC;IAEF;;;OAGG;IACH,YAAY,QAAO,MAAM,CAWvB;IAGF,gBAAgB,YAAa,OAAO,KAAG,OAAO,MAAM,EAAE,SAAS,CAAC,CAa9D;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"hierarchy.d.ts","sourceRoot":"","sources":["../../src/hierarchy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAuC3D,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GAAG,IAAI,EACvB,wBAAwB,EAAE,GAAG,CAAC,MAAM,CAAC,GACpC,aAAa,GAAG,IAAI,CA2DtB;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,EAAE,CAehE"}
1
+ {"version":3,"file":"hierarchy.d.ts","sourceRoot":"","sources":["../../src/hierarchy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAsC3D,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,GAAG,IAAI,EACvB,wBAAwB,EAAE,GAAG,CAAC,MAAM,CAAC,GACpC,aAAa,GAAG,IAAI,CA2DtB;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,EAAE,CAehE"}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.14.3";
1
+ export declare const VERSION = "1.14.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplitude/plugin-autocapture-browser",
3
- "version": "1.14.3",
3
+ "version": "1.14.4",
4
4
  "description": "",
5
5
  "author": "Amplitude Inc",
6
6
  "homepage": "https://github.com/amplitude/Amplitude-TypeScript",
@@ -58,5 +58,5 @@
58
58
  "files": [
59
59
  "lib"
60
60
  ],
61
- "gitHead": "3fb30ef85184a6b55503171f99be5648fc00651c"
61
+ "gitHead": "859b13ab478941c1544e90da196aa9323f96680e"
62
62
  }