"use strict";(()=>{function e(e){let t=location.href;if(e){let n=new URL(t);if(n.pathname!==e)return n.pathname=e,n.search="",n.href}return t}var t,n,r,o,a=(r=()=>{},()=>(r&&(o=r(r=0)),o));(t=()=>{a(),function(){let t=e=>e,n=t,r=document.currentScript,o=((null==r?void 0:r.dataset.endpoint)||null!=r&&r.src.includes("/va/"),null==r?void 0:r.dataset.disableAutoTrack),a=null,i=null,l=!0;function u(e,...t){(null==r?void 0:r.dataset.debug)!=="false"&&console.log(`%c[Vercel Web Analytics]%c ${e}`,"color: rgb(120, 120, 120)","color: inherit",...t)}async function d({type:o,data:l,options:d}){var s,c;let f=e(i),p=document.referrer,v={type:o,url:f},h=n(v);if(t===n||(!1===h||null===h?u("Page view would be ignored by `beforeSend` because null was returned.",v):u("Event transformed by `beforeSend`",{before:v,after:h})),!1===h||null===h)return;h&&(f=h.url);let w=p.includes(location.host),y={o:f,sv:"0.1.2",sdkn:null!=(s=null==r?void 0:r.dataset.sdkn)?s:void 0,sdkv:null!=(c=null==r?void 0:r.dataset.sdkv)?c:void 0,ts:Date.now(),...a&&{dp:a},...null!=d&&d.withReferrer&&!w?{r:p}:{},..."event"===o&&l&&{en:l.name,ed:l.data}};"pageview"===o&&u(`[pageview] ${y.o}`,y),"event"===o&&l&&u(`[event] ${l.name}`,y)}async function s(e={}){return d({type:"pageview",options:{withReferrer:e.withReferrer}})}async function c(e,t){{let n="is longer than the 255 character limit and would have been dropped in production.";if(e.length>255){u(`Event "${e}" ${n}`);return}if(t)for(let r of Object.keys(t)){r.length>255&&u(`Property "${r}" ${n}`);let o=t[r];"string"==typeof o&&o.length>255&&u(`Value of property "${r}" ${n}`)}}return d({type:"event",data:{name:e,data:t},options:{withReferrer:!0}})}function f(e){return e.pathname===new URL(v).pathname}function p(e){let t=e?"string"==typeof e?new URL(e,location.origin):new URL(e.href):null;!t||f(t)||Boolean(t.hash)&&f(t)||s()}u("Debug mode is enabled by default in development. No requests will be sent to the server.");let v=e(),h=()=>{var e;window.va=function(e,t){"beforeSend"===e?n=t:"event"===e?t&&c(t.name,t.data):"pageview"===e&&t&&(t.route&&(a=t.route),t.path&&(i=t.path),s({withReferrer:l}),l=!1)},null==(e=window.vaq)||e.forEach(([e,t])=>{"function"==typeof t||u("Running queued event",e,t),window.va(e,t)})};(()=>{if(window.vai||(window.vai=!0,h(),o))return;s({withReferrer:!0});let t=history.pushState.bind(history);history.pushState=function(...n){t(...n);try{p(n[2]),v=e()}catch(r){}},window.addEventListener("popstate",function(){p(e()),v=e()})})()}()},()=>(n||t((n={exports:{}}).exports,n),n.exports))()})();