How to track your period – and why it matters

Product
Product
Health Library
Health Library
Calculators
Calculators
About
About

    How to track your period – and why you should

    Tracking your menstrual cycle can help you understand your body better. And help you feel prepared for the signs and symptoms linked to your period and fertile window.

    10 min read
    "),n}}};var Ro=r(7232);function No(t){return function(t){if(Array.isArray(t))return Do(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Do(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Do(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Do(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:-114,e=window.pageYOffset;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=window.pageYOffset;c(e<=n?t:r),(e=n)<=0&&(e=1)}window.addEventListener("scroll",function(){var e=document.querySelector(".flo-header__contents--hide");null!=i&&i.classList.contains("active")||(window.matchMedia("(max-width: 759px)").matches?r(e?t+60:t,0):r())})}e&&(n&&o&&[e.querySelectorAll("a"),o.querySelectorAll("a")].forEach(function(t){var e=function(e){return No(t).find(function(t){return t.getAttribute("device")===e})},r=e("android"===a||"ios"===a?a:"general");null==r||r.classList.remove("hide")}),window.addEventListener("scroll",function(){var t=document.querySelector(".flo-footer")?document.querySelector(".flo-footer").offsetHeight:0,r=document.documentElement.scrollHeight-document.documentElement.clientHeight-t,n=document.querySelector(".flo-article-header")?document.querySelector(".flo-article-header").offsetHeight:160;window.scrollY>=n/1.6&&e.classList.add("active"),window.scrollY>r&&e.classList.remove("active")}),r&&(window.matchMedia("(max-width: 759px)").matches&&s(),window.addEventListener("resize",function(){window.matchMedia("(max-width: 759px)").matches?s():s(0)})))}};const Uo=qo;const Mo={init:function(){var t=document.querySelector(".flo-popups"),e=(document.documentElement.scrollHeight,0);function r(t){if(0!==e)return!1;window.scrollY>t&&window.scrollTo(0,t)}t&&(function(){var n=t.getAttribute("displayprinciple"),o=Boolean(t.getAttribute("blockscroll"));if("scroll"===n)window.addEventListener("scroll",function(){if(0===e){var n=(document.documentElement.scrollHeight-document.documentElement.clientHeight)/100*(t.getAttribute("percentscroll")?t.getAttribute("percentscroll"):40);window.scrollY>=n&&(t.classList.add("active"),o&&r(n))}});else if("timing"===n){var i=t.getAttribute("timingpause")?1e3*t.getAttribute("timingpause"):15e3;setTimeout(function(){if(t.classList.add("active"),o){var e=window.scrollY;window.addEventListener("scroll",function(){r(e)})}},i)}}(),document.querySelector(".flo-popups__close").addEventListener("click",function(){t.classList.remove("active"),e++}))}};Pr();var Fo={init:function(){var t,e=document.querySelector(".flo-content"),r=null!==(t=document.querySelector(".flo-content-links__list"))&&void 0!==t?t:document.querySelector(".flo-content__aside-list"),n=document.querySelector(".flo-content-links .flo-preloader"),o=["flo-template__article_v2","flo-template__pregnancy-week","flo-template__dev-page","flo-template__calculator-new"].some(function(t){return document.body.classList.contains(t)}),i=document.querySelector(".flo-content__aside-content"),a=document.querySelector(".flo-header__contents");if(r){var c=o?function(){var t=[];return""!=r.getAttribute("tag-size")&&document.querySelectorAll("".concat(r.getAttribute("tag-size"))).forEach(function(e){var r,n=null!==(r=e.closest(".flo-article-text"))&&void 0!==r?r:e.closest(".flo-narrow-text");n&&"false"==(null==n?void 0:n.getAttribute("hide-header"))&&t.push(e)}),t}():document.querySelectorAll("".concat(r.getAttribute("tag-size")));if(c&&c.length>0){if(i&&(i.style.display="block"),null==n||n.classList.add("flo-preloader__deactive"),c.forEach(function(t){t.offsetTop>r.offsetTop&&(function(t){var e,n=null===(e=t.closest("[real-header]"))||void 0===e?void 0:e.getAttribute("real-header"),i=t.textContent.toLowerCase().replace(/[ @.",\/#!$%\^&\*;:{}=\-_`~()]/g,"-"),c=document.createElement("li"),s=document.createElement("a");if(c.classList.add("flo-content-links__list-item"),s.classList.add("flo-content-links__list-item-link"),s.href="#".concat(i),s.textContent=null!=n?n:t.textContent,s.addEventListener("click",function(e){var r;e.preventDefault(),o&&f(null===(r=e.target)||void 0===r?void 0:r.closest(".flo-content-links__list-item"),".flo-content-links__list-item"),t.scrollIntoView({behavior:"smooth",block:"center"})}),c.appendChild(s),r.appendChild(c),o){var u=a.querySelector(".flo-header__contents-list > ol"),l=document.createElement("li"),d=document.createElement("a");l.classList.add("flo-header__contents-list-element"),d.href="#".concat(i),d.textContent=null!=n?n:t.textContent,d.addEventListener("click",function(e){e.preventDefault(),t.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(function(){a.classList.toggle("active"),document.body.style.overflow=document.body.style.overflow?null:"hidden"},500)}),l.appendChild(d),u.appendChild(l)}}(t),function(t){t.id=t.textContent.toLowerCase().replace(/[ @.",\/#!$%\^&\*;:{}=\-_`~()]/g,"-")}(t))}),o){var s,u,l=function(t){"click"!==t.type&&"Enter"!==t.key||(a.classList.toggle("active"),document.body.style.overflow=document.body.style.overflow?null:"hidden")};null==a||null===(s=a.querySelector(".flo-header__contents-title"))||void 0===s||s.addEventListener("click",l),null==a||null===(u=a.querySelector(".flo-header__contents-title"))||void 0===u||u.addEventListener("keypress",l)}o&&function(t){var r,n=null==i?void 0:i.clientHeight,o=null===(r=document.querySelector(".flo-content__aside-list"))||void 0===r?void 0:r.clientHeight,c=new IntersectionObserver(s,{rootMargin:window.matchMedia("(max-width:850px)").matches?"-150px":"-400px"});function s(t){t.forEach(function(t){if(t.isIntersecting){var r,c,s=function(t){i.scrollTo({top:t,behavior:"smooth"})},u=null===(r=document.querySelector('a[href="#'.concat(t.target.id,'"].flo-content-links__list-item-link')))||void 0===r?void 0:r.closest(".flo-content-links__list-item"),l=null===(c=document.querySelector('.flo-header__contents-list-element > a[href="#'.concat(t.target.id,'"]')))||void 0===c?void 0:c.closest(".flo-header__contents-list-element"),d=document.querySelector(".flo-header__contents-title > span");u&&f(u,".flo-content-links__list-item"),l&&f(l,".flo-header__contents-list-element"),d&&u&&(d.textContent="".concat(u.textContent)),(null==d?void 0:d.textContent.length)>0&&(e.classList.add("flo-content--header-content-links"),a.classList.remove("flo-header__contents--hide")),o>=n&&(u.offsetTop+u.clientHeight>n-200?s(u.offsetTop/1.4):s(0))}})}o0&&t.forEach(function(t){if(t.getAttribute("device")){var r,n=null==t||null===(r=t.closest("section"))||void 0===r?void 0:r.querySelectorAll("a");(null==n?void 0:n.length)>1&&t.getAttribute("device")!==e?t.remove():t.classList.remove("hidden")}})}"android"===$o||"ios"===$o?t(Vo,$o):t(Jo,"other")}});function Ko(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return Xo(u,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,c=0,s=t,d.n=r,a}};function p(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e3?(o=v===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&pn||n>v)&&(i[4]=r,i[5]=n,d.n=v,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,v),c=l,s=v;(e=c<2?t:s)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,s)):d.n=s:d.v=s);try{if(u=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?s:r.call(n,d))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Xo(e={},n,function(){return this}),e),f=u.prototype=c.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,Xo(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,Xo(f,"constructor",u),Xo(u,"constructor",s),s.displayName="GeneratorFunction",Xo(u,o,"GeneratorFunction"),Xo(f),Xo(f,o,"Generator"),Xo(f,n,function(){return this}),Xo(f,"toString",function(){return"[object Generator]"}),(Ko=function(){return{w:i,m:d}})()}function Xo(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Xo=function(t,e,r,n){function i(e,r){Xo(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},Xo(t,e,r,n)}function Zo(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Qo(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){Zo(i,n,o,a,c,"next",t)}function c(t){Zo(i,n,o,a,c,"throw",t)}a(void 0)})}}function ti(t){return ei.apply(this,arguments)}function ei(){return(ei=Qo(Ko().m(function t(e){var r;return Ko().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,To();case 1:return r=t.v,t.a(2,e.every(function(t){return!0===(null==r?void 0:r[t])}))}},t)}))).apply(this,arguments)}Ar(),cn(),wr(),Pn(),bn(),Fn();const ri=Object.prototype.toString;function ni(t,e){return ri.call(t)===`[object ${e}]`}function oi(t){return ni(t,"Object")}function ii(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function ai(t){return t&&t.Math==Math?t:void 0}const ci="object"==typeof globalThis&&ai(globalThis)||"object"==typeof window&&ai(window)||"object"==typeof self&&ai(self)||"object"==typeof r.g&&ai(r.g)||function(){return this}()||{};function si(t,e,r){const n=r||ci,o=n.__SENTRY__=n.__SENTRY__||{};return o[t]||(o[t]=e())}function ui(){const t=ci,e=t.crypto||t.msCrypto;let r=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,t=>(t^(15&r())>>t/4).toString(16))}function li(){return Date.now()/1e3}const fi=function(){const{performance:t}=ci;if(!t||!t.now)return li;const e=Date.now()-t.now(),r=null==t.timeOrigin?e:t.timeOrigin;return()=>(r+t.now())/1e3}();let di;(()=>{const{performance:t}=ci;if(!t||!t.now)return void(di="none");const e=36e5,r=t.now(),n=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,i=o{const n=hi[t];r[t]=e[t],e[t]=n});try{return t()}finally{n.forEach(t=>{e[t]=r[t]})}}const wi=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return pi?vi.forEach(r=>{e[r]=(...e)=>{t&&gi(()=>{ci.console[r](`Sentry Logger [${r}]:`,...e)})}}):vi.forEach(t=>{e[t]=()=>{}}),e}(),yi="production",bi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var mi;!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(mi||(mi={}));class _i{constructor(t){_i.prototype.__init.call(this),_i.prototype.__init2.call(this),_i.prototype.__init3.call(this),_i.prototype.__init4.call(this),this._state=mi.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new _i((r,n)=>{this._handlers.push([!1,e=>{if(t)try{r(t(e))}catch(t){n(t)}else r(e)},t=>{if(e)try{r(e(t))}catch(t){n(t)}else n(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new _i((e,r)=>{let n,o;return this.then(e=>{o=!1,n=e,t&&t()},e=>{o=!0,n=e,t&&t()}).then(()=>{o?r(n):e(n)})})}__init(){this._resolve=t=>{this._setResult(mi.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(mi.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===mi.PENDING&&(ii(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===mi.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===mi.RESOLVED&&t[1](this._value),this._state===mi.REJECTED&&t[2](this._value),t[0]=!0)})}}}function xi(){return si("globalEventProcessors",()=>[])}function Si(t,e,r,n=0){return new _i((o,i)=>{const a=t[n];if(null===e||"function"!=typeof a)o(e);else{const c=a({...e},r);bi&&a.id&&null===c&&wi.log(`Event processor "${a.id}" dropped event`),ii(c)?c.then(e=>Si(t,e,r,n+1).then(o)).then(null,i):Si(t,c,r,n+1).then(o).then(null,i)}})}function Ei(t){return Oi(t,new Map)}function Oi(t,e){if(function(t){if(!oi(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const r=e.get(t);if(void 0!==r)return r;const n={};e.set(t,n);for(const r of Object.keys(t))void 0!==t[r]&&(n[r]=Oi(t[r],e));return n}if(Array.isArray(t)){const r=e.get(t);if(void 0!==r)return r;const n=[];return e.set(t,n),t.forEach(t=>{n.push(Oi(t,e))}),n}return t}function ki(t){const e=fi(),r={sid:ui(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return Ei({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(r)};return t&&Ti(r,t),r}function Ti(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||fi(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:ui()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function ji(t){return t.transaction}function Pi(t){const{spanId:e,traceId:r}=t.spanContext(),{data:n,op:o,parent_span_id:i,status:a,tags:c,origin:s}=Ai(t);return Ei({data:n,op:o,parent_span_id:i,span_id:e,status:a,tags:c,trace_id:r,origin:s})}function Ai(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function Li(t){const{traceFlags:e}=t.spanContext();return Boolean(1&e)}function Ci(t){const e=Ji();if(!e)return{};const r=function(t,e,r){const n=e.getOptions(),{publicKey:o}=e.getDsn()||{},{segment:i}=r&&r.getUser()||{},a=Ei({environment:n.environment||yi,release:n.release,user_segment:i,public_key:o,trace_id:t});return e.emit&&e.emit("createDsc",a),a}(Ai(t).trace_id||"",e,Wi()),n=ji(t);if(!n)return r;const o=n&&n._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:a}=n.metadata;null!=i&&(r.sample_rate=`${i}`);const c=Ai(n);return a&&"url"!==a&&(r.transaction=c.description),r.sampled=String(Li(n)),e.emit&&e.emit("createDsc",r),r}function Ii(t,e){const{fingerprint:r,span:n,breadcrumbs:o,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:r,tags:n,user:o,contexts:i,level:a,transactionName:c}=e,s=Ei(r);s&&Object.keys(s).length&&(t.extra={...s,...t.extra});const u=Ei(n);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const l=Ei(o);l&&Object.keys(l).length&&(t.user={...l,...t.user});const f=Ei(i);f&&Object.keys(f).length&&(t.contexts={...f,...t.contexts});a&&(t.level=a);c&&(t.transaction=c)}(t,e),n&&function(t,e){t.contexts={trace:Pi(e),...t.contexts};const r=ji(e);if(r){t.sdkProcessingMetadata={dynamicSamplingContext:Ci(e),...t.sdkProcessingMetadata};const n=Ai(r).description;n&&(t.tags={transaction:n,...t.tags})}}(t,n),function(t,e){t.fingerprint=t.fingerprint?function(t){return Array.isArray(t)?t:[t]}(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e));t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,r),function(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}(t,o),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}class Ri{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ni()}static clone(t){return t?t.clone():new Ri}clone(){const t=new Ri;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Ti(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t;if(e instanceof Ri){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if(oi(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Ni(),this}addBreadcrumb(t,e){const r="number"==typeof e?e:100;if(r<=0)return this;const n={timestamp:li(),...t},o=this._breadcrumbs;return o.push(n),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:r,_tags:n,_extra:o,_user:i,_level:a,_fingerprint:c,_eventProcessors:s,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:f,_span:d}=this;return{breadcrumbs:t,attachments:e,contexts:r,tags:n,extra:o,user:i,level:a,fingerprint:c||[],eventProcessors:s,propagationContext:u,sdkProcessingMetadata:l,transactionName:f,span:d}}applyToEvent(t,e={},r=[]){Ii(t,this.getScopeData());return Si([...r,...xi(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const r=e&&e.event_id?e.event_id:ui();if(!this._client)return wi.warn("No client configured on scope - will not capture exception!"),r;const n=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:n,...e,event_id:r},this),r}captureMessage(t,e,r){const n=r&&r.event_id?r.event_id:ui();if(!this._client)return wi.warn("No client configured on scope - will not capture message!"),n;const o=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:o,...r,event_id:n},this),n}captureEvent(t,e){const r=e&&e.event_id?e.event_id:ui();return this._client?(this._client.captureEvent(t,{...e,event_id:r},this),r):(wi.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Ni(){return{traceId:ui(),spanId:ui().substring(16)}}const Di=parseFloat("7.120.4"),qi=100;class Ui{constructor(t,e,r,n=Di){let o,i;this._version=n,e?o=e:(o=new Ri,o.setClient(t)),r?i=r:(i=new Ri,i.setClient(t)),this._stack=[{scope:o}],t&&this.bindClient(t),this._isolationScope=i}isOlderThan(t){return this._version(this.popScope(),t),t=>{throw this.popScope(),t}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const r=this._lastEventId=e&&e.event_id?e.event_id:ui(),n=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:n,...e,event_id:r}),r}captureMessage(t,e,r){const n=this._lastEventId=r&&r.event_id?r.event_id:ui(),o=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:o,...r,event_id:n}),n}captureEvent(t,e){const r=e&&e.event_id?e.event_id:ui();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...e,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:r,client:n}=this.getStackTop();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=qi}=n.getOptions&&n.getOptions()||{};if(i<=0)return;const a={timestamp:li(),...t},c=o?gi(()=>o(a,e)):a;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,i))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:r}=this.getStackTop();r&&t(e)}run(t){const e=Fi(this);try{t(this)}finally{Fi(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return bi&&wi.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const r=this._callExtensionMethod("startTransaction",t,e);if(bi&&!r){this.getClient()?wi.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):wi.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let r={};e?r={status:e}:"ok"===t.status&&(r={status:"exited"}),Ti(t,r)}(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:r}=this.getStackTop(),{release:n,environment:o=yi}=r&&r.getOptions()||{},{userAgent:i}=ci.navigator||{},a=ki({release:n,environment:o,user:e.getUser(),...i&&{userAgent:i},...t}),c=e.getSession&&e.getSession();return c&&"ok"===c.status&&Ti(c,{status:"exited"}),this.endSession(),e.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),r=t.getSession();r&&e&&e.captureSession&&e.captureSession(r)}_callExtensionMethod(t,...e){const r=Mi().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[t])return r.extensions[t].apply(this,e);bi&&wi.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Mi(){return ci.__SENTRY__=ci.__SENTRY__||{extensions:{},hub:void 0},ci}function Fi(t){const e=Mi(),r=zi(e);return $i(e,t),r}function Gi(){const t=Mi();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return Hi(t)}function Hi(t=Mi()){return Bi(t)&&!zi(t).isOlderThan(Di)||$i(t,new Ui),zi(t)}function Bi(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function zi(t){return si("hub",()=>new Ui,t)}function $i(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}new WeakMap;function Yi(t){if(t)return function(t){return t instanceof Ri||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Vi.includes(t))}(t)?{captureContext:t}:t}const Vi=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ji(){return Gi().getClient()}function Wi(){return Gi().getScope()}function Ki(t){var e,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=t,Gi().captureException(e,Yi(r)),"prod"!==webEnv&&(console.error(t),!0===n))throw t}function Xi(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Zi(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0])||arguments[0],e={};try{var r,n=Xi(new URLSearchParams(window.location.search));try{for(n.s();!(r=n.n()).done;){var o,i,a,c,s=r.value,u=null==s||null===(o=s[0])||void 0===o||null===(i=o.toLowerCase)||void 0===i?void 0:i.call(o),l=null==s||null===(a=s[1])||void 0===a||null===(c=a.toLowerCase)||void 0===c?void 0:c.call(a);u&&l&&0===u.indexOf("utm_")&&(e[t?u.replace("utm_",""):u]=l)}}catch(t){n.e(t)}finally{n.f()}}catch(t){Ki(t)}return e}function ta(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return ea(u,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,c=0,s=t,d.n=r,a}};function p(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e3?(o=v===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&pn||n>v)&&(i[4]=r,i[5]=n,d.n=v,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,v),c=l,s=v;(e=c<2?t:s)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,s)):d.n=s:d.v=s);try{if(u=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?s:r.call(n,d))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(ea(e={},n,function(){return this}),e),f=u.prototype=c.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,ea(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,ea(f,"constructor",u),ea(u,"constructor",s),s.displayName="GeneratorFunction",ea(u,o,"GeneratorFunction"),ea(f),ea(f,o,"Generator"),ea(f,n,function(){return this}),ea(f,"toString",function(){return"[object Generator]"}),(ta=function(){return{w:i,m:d}})()}function ea(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ea=function(t,e,r,n){function i(e,r){ea(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},ea(t,e,r,n)}function ra(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return na(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?na(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function na(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&void 0!==arguments[1]?arguments[1]:0,r=(ga[t[e+0]]+ga[t[e+1]]+ga[t[e+2]]+ga[t[e+3]]+"-"+ga[t[e+4]]+ga[t[e+5]]+"-"+ga[t[e+6]]+ga[t[e+7]]+"-"+ga[t[e+8]]+ga[t[e+9]]+"-"+ga[t[e+10]]+ga[t[e+11]]+ga[t[e+12]]+ga[t[e+13]]+ga[t[e+14]]+ga[t[e+15]]).toLowerCase();if(!ha(r))throw TypeError("Stringified UUID is invalid");return r};const ba=function(t,e,r){var n=(t=t||{}).random||(t.rng||pa)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return ya(n)};function ma(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return _a(u,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,c=0,s=t,d.n=r,a}};function p(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e3?(o=v===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&pn||n>v)&&(i[4]=r,i[5]=n,d.n=v,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,v),c=l,s=v;(e=c<2?t:s)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,s)):d.n=s:d.v=s);try{if(u=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?s:r.call(n,d))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(_a(e={},n,function(){return this}),e),f=u.prototype=c.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,_a(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,_a(f,"constructor",u),_a(u,"constructor",s),s.displayName="GeneratorFunction",_a(u,o,"GeneratorFunction"),_a(f),_a(f,o,"Generator"),_a(f,n,function(){return this}),_a(f,"toString",function(){return"[object Generator]"}),(ma=function(){return{w:i,m:d}})()}function _a(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}_a=function(t,e,r,n){function i(e,r){_a(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},_a(t,e,r,n)}function xa(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Sa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:365,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=Hn.get(t);return n||(n=ba(),Hn.set(t,n,{expires:e,domain:r}),n)}function Ea(){var t=window.location.hostname.split(".").reverse();return t.length<=1||!t[1]||!t[0]?window.location.hostname:".".concat(t[1],".").concat(t[0])}function Oa(){return ka.apply(this,arguments)}function ka(){var t;return t=ma().m(function t(){return ma().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,ti(["marketing","necessary","statistics"]);case 1:if(t.v){t.n=2;break}return t.a(2,{sessionId:void 0,visitorId:void 0});case 2:return t.a(2,{sessionId:Sa("session_id"),visitorId:Sa("visitor_id",365,Ea())})}},t)}),ka=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){xa(i,n,o,a,c,"next",t)}function c(t){xa(i,n,o,a,c,"throw",t)}a(void 0)})},ka.apply(this,arguments)}function Ta(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return ja(u,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,c=0,s=t,d.n=r,a}};function p(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e3?(o=v===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&pn||n>v)&&(i[4]=r,i[5]=n,d.n=v,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,v),c=l,s=v;(e=c<2?t:s)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,s)):d.n=s:d.v=s);try{if(u=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?s:r.call(n,d))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(ja(e={},n,function(){return this}),e),f=u.prototype=c.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,ja(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,ja(f,"constructor",u),ja(u,"constructor",s),s.displayName="GeneratorFunction",ja(u,o,"GeneratorFunction"),ja(f),ja(f,o,"Generator"),ja(f,n,function(){return this}),ja(f,"toString",function(){return"[object Generator]"}),(Ta=function(){return{w:i,m:d}})()}function ja(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}ja=function(t,e,r,n){function i(e,r){ja(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},ja(t,e,r,n)}function Pa(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Aa(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){Pa(i,n,o,a,c,"next",t)}function c(t){Pa(i,n,o,a,c,"throw",t)}a(void 0)})}}Lr();var La="prod"===webEnv?"https://api.owhealth.com/v1/web-analytics":"https://api.staging.owhealth.com/v1/web-analytics";function Ca(t){return Ia.apply(this,arguments)}function Ia(){return Ia=Aa(Ta().m(function t(e){var r,n,o,i;return Ta().w(function(t){for(;;)switch(t.p=t.n){case 0:return r={events:e},t.p=1,n=fetch(La,{method:"POST",headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(r)}),o=new Promise(function(t,e){setTimeout(Aa(Ta().m(function e(){return Ta().w(function(e){for(;;)switch(e.n){case 0:t();case 1:return e.a(2)}},e)})),1500)}),t.n=2,Promise.race([n,o]);case 2:t.n=4;break;case 3:t.p=3,i=t.v,"dev"!==webEnv&&Ki(i);case 4:return t.a(2)}},t,null,[[1,3]])})),Ia.apply(this,arguments)}function Ra(t){return Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(t)}function Na(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return Da(u,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,c=0,s=t,d.n=r,a}};function p(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e3?(o=v===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&pn||n>v)&&(i[4]=r,i[5]=n,d.n=v,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,v),c=l,s=v;(e=c<2?t:s)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,s)):d.n=s:d.v=s);try{if(u=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?s:r.call(n,d))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Da(e={},n,function(){return this}),e),f=u.prototype=c.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,Da(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,Da(f,"constructor",u),Da(u,"constructor",s),s.displayName="GeneratorFunction",Da(u,o,"GeneratorFunction"),Da(f),Da(f,o,"Generator"),Da(f,n,function(){return this}),Da(f,"toString",function(){return"[object Generator]"}),(Na=function(){return{w:i,m:d}})()}function Da(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Da=function(t,e,r,n){function i(e,r){Da(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},Da(t,e,r,n)}function qa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function Ua(t){for(var e=1;e1&&void 0!==g[1]?g[1]:{},t.n=1,Oa();case 1:return u=t.v,l=u.sessionId,f=u.visitorId,d=null===(r=document.querySelector("html").getAttribute("lang"))||void 0===r?void 0:r.toUpperCase(),p=Qi(),t.n=2,la();case 2:return v=t.v,h=new Ro.UAParser(navigator.userAgent),t.a(2,{date:(new Date).toISOString(),event_type:e,page_path:window.location.pathname,referal:document.referrer,screen_name:window.location.pathname,session:{session_id:l,source:null==p?void 0:p.source,ad_campaign:null==p?void 0:p.campaign,ad_id:null==p?void 0:p.id,ad_set:null==p?void 0:p.set},visitor:{additional_attributes:{},br:null==h||null===(n=h.getBrowser())||void 0===n?void 0:n.name,br_ver:null==h||null===(o=h.getBrowser())||void 0===o?void 0:o.version,co:v,os:null==h?void 0:h.getOS().name,os_version:null==h?void 0:h.getOS().version,user_agent:null==h||null===(i=h.getResult())||void 0===i?void 0:i.ua,visitor_id:f,lang:null===(a=navigator)||void 0===a||null===(a=a.language)||void 0===a||null===(c=a.slice)||void 0===c||null===(c=c.call(a,0,2))||void 0===c?void 0:c.toUpperCase()},web_user:{additional_attributes:{}},additional_fields:Ua({authentication_type:"",utm_medium:null==p?void 0:p.medium,service:"content_site",lang_page:d,page_url:window.location.href,page_referrer:document.referrer,utm:p},s)})}},t)})),Ba.apply(this,arguments)}var za=[],$a=null;function Ya(){return Ya=Ga(Na().m(function t(e){var r,n,o=arguments;return Na().w(function(t){for(;;)switch(t.n){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},n=za,t.n=1,Ha(e,r);case 1:return n.push.call(n,t.v),t.a(2,new Promise(function(t,e){$a&&clearTimeout($a),$a=setTimeout(function(){var e=[].concat(za);za.length=0,Ca(e).catch(Ki).finally(function(){t()})},1)}))}},t)})),Ya.apply(this,arguments)}function Va(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(r,n){ti(["marketing","statistics"]).then(function(o){o?function(t){return Ya.apply(this,arguments)}(t,e).catch(Ki).catch(n).then(r):r()})})}function Ja(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=n&&n.prototype instanceof c?n:c,u=Object.create(s.prototype);return Wa(u,"_invoke",function(r,n,o){var i,c,s,u=0,l=o||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,r){return i=e,c=0,s=t,d.n=r,a}};function p(r,n){for(c=r,s=n,e=0;!f&&u&&!o&&e3?(o=v===n)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=r<2&&pn||n>v)&&(i[4]=r,i[5]=n,d.n=v,c=0))}if(o||r>1)return a;throw f=!0,n}return function(o,l,v){if(u>1)throw TypeError("Generator is already running");for(f&&1===l&&p(l,v),c=l,s=v;(e=c<2?t:s)||!f;){i||(c?c<3?(c>1&&(d.n=-1),p(c,s)):d.n=s:d.v=s);try{if(u=2,i){if(c||(o="next"),e=i[o]){if(!(e=e.call(i,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,c<2&&(c=0)}else 1===c&&(e=i.return)&&e.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((e=(f=d.n<0)?s:r.call(n,d))!==a)break}catch(e){i=t,c=1,s=e}finally{u=1}}return{value:e,done:f}}}(r,o,i),!0),u}var a={};function c(){}function s(){}function u(){}e=Object.getPrototypeOf;var l=[][n]?e(e([][n]())):(Wa(e={},n,function(){return this}),e),f=u.prototype=c.prototype=Object.create(l);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,Wa(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=u,Wa(f,"constructor",u),Wa(u,"constructor",s),s.displayName="GeneratorFunction",Wa(u,o,"GeneratorFunction"),Wa(f),Wa(f,o,"Generator"),Wa(f,n,function(){return this}),Wa(f,"toString",function(){return"[object Generator]"}),(Ja=function(){return{w:i,m:d}})()}function Wa(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Wa=function(t,e,r,n){function i(e,r){Wa(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))},Wa(t,e,r,n)}function Ka(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function Xa(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){Ka(i,n,o,a,c,"next",t)}function c(t){Ka(i,n,o,a,c,"throw",t)}a(void 0)})}}function Za(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Qa(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qa(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Qa(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r\n \n ';t.forEach(function(t){var r=document.createElement("div");r.className="table-scroll-controls";var n=document.createElement("button");n.className="table-scroll-control table-scroll-left",n.innerHTML=e,n.setAttribute("aria-label","Scroll table left");var o=document.createElement("button");o.className="table-scroll-control table-scroll-right",o.innerHTML=e,o.setAttribute("aria-label","Scroll table right"),r.appendChild(n),r.appendChild(o),t.insertAdjacentElement("afterend",r);var i=function(){var e=t.scrollWidth>t.clientWidth,i=t.scrollLeft,a=t.scrollWidth-t.clientWidth;r.classList.toggle("hidden",!e),e&&(n.classList.toggle("disabled",0===i),o.classList.toggle("disabled",i>=a))};i(),n.addEventListener("click",function(){var e=Math.max(0,t.scrollLeft-t.clientWidth/2);t.scrollTo({left:e,behavior:"smooth"})}),o.addEventListener("click",function(){var e=t.scrollWidth-t.clientWidth,r=Math.min(e,t.scrollLeft+t.clientWidth/2);t.scrollTo({left:r,behavior:"smooth"})}),t.addEventListener("scroll",i),window.addEventListener("resize",i)})}};document.addEventListener("DOMContentLoaded",function(){document.querySelector(".floating-button")?Uo.init():ho.init(),Wo.init(),zn.init(),Yn.init(),Zn.init(),uo.init(),Io.init(),Mo.init(),Go.init(),Ho.init(),Bo.init(),tc.init(),ec.init()})})()})();