PageSourceSearch

https://www.natursidan.se/app/themes/hopp/assets/javascript/chunks/google-analytics-adapter.05aef2c3.js

js natursidan.se collected 2026-09-24 09:55:47 UTC 2,909 bytes, 1 lines download raw bytes

1var _=Object.defineProperty;var E=(t,e,a)=>e in t?_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var l=(t,e,a)=>E(t,typeof e!="symbol"?e+"":e,a);import{S as w}from"./consent.cea05f21.js";import{b as m,e as L}from"../application.3a13dd1a.js";const A=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),C=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),P=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),S=/[^\p{L}\d]+/giu,o="$1\0$2",g="";function h(t){let e=t.trim();e=e.replace(A,o).replace(C,o),e=e.replace(S,"\0");let a=0,n=e.length;for(;e.charAt(a)==="\0";)a++;if(a===n)return[];for(;e.charAt(n-1)==="\0";)n--;return e.slice(a,n).split(/\0/g)}function T(t){const e=h(t);for(let a=0;a<e.length;a++){const n=e[a],r=P.exec(n);if(r){const s=r.index+(r[1]??r[2]).length;e.splice(a,1,n.slice(0,s),n.slice(s))}}return e}function I(t,e){const[a,n,r]=R(t,e);return a+n.map(y(e==null?void 0:e.locale)).join((e==null?void 0:e.delimiter)??" ")+r}function x(t,e){return I(t,{delimiter:"_",...e})}function y(t){return t===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(t)}function R(t,e={}){const a=e.split??(e.separateNumbers?T:h),n=e.prefixCharacters??g,r=e.suffixCharacters??g;let s=0,i=t.length;for(;s<t.length;){const c=t.charAt(s);if(!n.includes(c))break;s++}for(;i>s;){const c=i-1,d=t.charAt(c);if(!r.includes(d))break;i=c}return[t.slice(0,s),a(t.slice(s,i)),t.slice(i)]}const U=t=>t!==null&&typeof t=="object";function F(t){return function e(a,n=1,r){if(n===0||!U(a))return a;if(Array.isArray(a))return a.map(i=>e(i,n-1,r));const s=Object.create(Object.getPrototypeOf(a));return Object.keys(a).forEach(i=>{const c=a[i],d=t(i,r),p=e(c,n-1,r);s[d]=p}),s}}const u=F(x);function b(t){return t?"granted":"denied"}function f(){return{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:b(w)}}class M{constructor(){l(this,"scriptAdded",!1);l(this,"enabled",!1);var a,n;this.consentUpdatedHandler=this.consentUpdatedHandler.bind(this);let e=null;(n=(a=window.hopp)==null?void 0:a.tracking)!=null&&n.gaMeasurementId&&(e=window.hopp.tracking.gaMeasurementId),this.gaMeasurementId=e,e&&(this.enabled=!0)}initialize(){window.dataLayer||(window.dataLayer=[]),window.gtag||(window.gtag=function(){dataLayer.push(arguments)}),window.gtag("js",new Date),window.gtag("consent","default",f()),window.gtag("config",this.gaMeasurementId,{send_page_view:!1}),this.addScriptTag(),window.addEventListener(m,this.consentUpdatedHandler)}consentUpdatedHandler(){window.gtag&&window.gtag("consent","update",f()),this.addScriptTag()}addScriptTag(){if(this.scriptAdded||!L(w))return;const e=document.createElement("script");e.async=!0,e.src=`https://www.googletagmanager.com/gtag/js?id=${this.gaMeasurementId}`,document.body.appendChild(e),this.scriptAdded=!0}trackPageView(e){window.gtag("event","page_view",u(e))}trackEvent({name:e,params:a={}}={}){window.gtag("event",e,u(a))}}export{M as default};

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.