1import{r as c}from"./chunk-CjkYRJu7.js";/* empty css */import"./chunk-B00Lkan8.js";/* empty css *//* empty css *//* empty css */var u={},v="@vercel/analytics",w="1.6.1",m=()=>{window.va||(window.va=function(...n){(window.vaq=window.vaq||[]).push(n)})};function d(){return typeof window<"u"}function f(){try{const e="production"}catch{}return"production"}function b(e="auto"){if(e==="auto"){window.vam=f();return}window.vam=e}function l(){return(d()?window.vam:f())||"production"}function s(){return l()==="production"}function o(){return l()==="development"}function h(e,{[e]:n,...r}){return r}function g(e,n){if(!e)return;let r=e;const t=[];for(const[a,i]of Object.entries(e))typeof i=="object"&&i!==null&&(n.strip?r=h(a,r):t.push(a));if(t.length>0&&!n.strip)throw Error(`The following properties are not valid: ${t.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return r}function y(e){return e.scriptSrc?e.scriptSrc:o()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js"}function k(e={debug:!0}){var n;if(!d())return;b(e.mode),m(),e.beforeSend&&((n=window.va)==null||n.call(window,"beforeSend",e.beforeSend));const r=y(e);if(document.head.querySelector(`script[src*="${r}"]`))return;const t=document.createElement("script");t.src=r,t.defer=!0,t.dataset.sdkn=v+(e.framework?`/${e.framework}`:""),t.dataset.sdkv=w,e.disableAutoTrack&&(t.dataset.disableAutoTrack="1"),e.endpoint?t.dataset.endpoint=e.endpoint:e.basePath&&(t.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(t.dataset.dsn=e.dsn),t.onerror=()=>{const a=o()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${a}`)},o()&&e.debug===!1&&(t.dataset.debug="false"),document.head.appendChild(t)}function B(e,n,r){var t,a;if(!d()){const i="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(s())console.warn(i);else throw new Error(i);return}if(!n){(t=window.va)==null||t.call(window,"event",{name:e,options:r});return}try{const i=g(n,{strip:s()});(a=window.va)==null||a.call(window,"event",{name:e,data:i,options:r})}catch(i){i instanceof Error&&o()&&console.error(i)}}function P({route:e,path:n}){var r;(r=window.va)==null||r.call(window,"pageview",{route:e,path:n})}function S(){if(!(typeof process>"u"||typeof u>"u"))return u.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function q(e){return c.useEffect(()=>{var n;e.beforeSend&&((n=window.va)==null||n.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),c.useEffect(()=>{k({framework:e.framework||"react",basePath:e.basePath??S(),...e.route!==void 0&&{disableAutoTrack:!0},...e})},[]),c.useEffect(()=>{e.route&&e.path&&P({route:e.route,path:e.path})},[e.route,e.path]),null}export{q as Analytics,B as track};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.