PageSourceSearch

https://icatched.de/assets/index.esm-BztwX4Re.js

js icatched.de collected 2026-10-05 20:16:18 UTC 10,286 bytes, 1 lines download raw bytes

1import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import{C as t,S as n,_ as r,a as i,b as a,c as o,g as s,h as c,m as l,o as u,p as d,u as f,v as p,x as m,y as h}from"./index.esm-D4i1BYsb.js";import"./index.esm-BFekKIHA.js";var g=`analytics`,_=`firebase_id`,ee=`origin`,te=6e4,ne=`https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig`,v=`https://www.googletagmanager.com/gtag/js`,y=new d(`@firebase/analytics`),b=new c(`analytics`,`Analytics`,{"already-exists":`A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.`,"already-initialized":`initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.`,"already-initialized-settings":`Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.`,"interop-component-reg-failed":`Firebase Analytics Interop Component failed to instantiate: {$reason}`,"invalid-analytics-context":`Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}`,"indexeddb-unavailable":`IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}`,"fetch-throttle":`The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.`,"config-fetch-failed":`Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}`,"no-api-key":`The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.`,"no-app-id":`The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.`,"no-client-id":`The "client_id" field is empty.`,"invalid-gtag-resource":`Trusted Types detected an invalid gtag resource: {$gtagURL}.`});function re(e){if(!e.startsWith(v)){let t=b.create(`invalid-gtag-resource`,{gtagURL:e});return y.warn(t.message),``}return e}function x(e){return Promise.all(e.map(e=>e.catch(e=>e)))}function S(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function C(e,t){let n=S(`firebase-js-sdk-policy`,{createScriptURL:re}),r=document.createElement(`script`),i=`${v}?l=${e}&id=${t}`;r.src=n?n?.createScriptURL(i):i,r.async=!0,document.head.appendChild(r)}function w(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}async function ie(e,t,n,r,i,a){let o=r[i];try{if(o)await t[o];else{let e=(await x(n)).find(e=>e.measurementId===i);e&&await t[e.appId]}}catch(e){y.error(e)}e(`config`,i,a)}async function ae(e,t,n,r,i){try{let a=[];if(i&&i.send_to){let e=i.send_to;Array.isArray(e)||(e=[e]);let r=await x(n);for(let n of e){let e=r.find(e=>e.measurementId===n),i=e&&t[e.appId];if(i)a.push(i);else{a=[];break}}}a.length===0&&(a=Object.values(t)),await Promise.all(a),e(`event`,r,i||{})}catch(e){y.error(e)}}function oe(e,t,n,r){async function i(i,...a){try{if(i===`event`){let[r,i]=a;await ae(e,t,n,r,i)}else if(i===`config`){let[i,o]=a;await ie(e,t,n,r,i,o)}else if(i===`consent`){let[t,n]=a;e(`consent`,t,n)}else if(i===`get`){let[t,n,r]=a;e(`get`,t,n,r)}else if(i===`set`){let[t]=a;e(`set`,t)}else e(i,...a)}catch(e){y.error(e)}}return i}function se(e,t,n,r,i){let a=function(...e){window[r].push(arguments)};return window[i]&&typeof window[i]==`function`&&(a=window[i]),window[i]=oe(a,e,t,n),{gtagCore:a,wrappedGtag:window[i]}}function ce(e){let t=window.document.getElementsByTagName(`script`);for(let n of Object.values(t))if(n.src&&n.src.includes(v)&&n.src.includes(e))return n;return null}var le=30,ue=1e3,T=new class{constructor(e={},t=ue){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};function de(e){return new Headers({Accept:`application/json`,"x-goog-api-key":e})}async function fe(e){let{appId:t,apiKey:n}=e,r={method:`GET`,headers:de(n)},i=ne.replace(`{app-id}`,t),a=await fetch(i,r);if(a.status!==200&&a.status!==304){let e=``;try{let t=await a.json();t.error?.message&&(e=t.error.message)}catch{}throw b.create(`config-fetch-failed`,{httpStatus:a.status,responseMessage:e})}return a.json()}async function E(e,t=T,n){let{appId:r,apiKey:i,measurementId:a}=e.options;if(!r)throw b.create(`no-app-id`);if(!i){if(a)return{measurementId:a,appId:r};throw b.create(`no-api-key`)}let o=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},s=new A;return setTimeout(async()=>{s.abort()},te),D({appId:r,apiKey:i,measurementId:a},o,s,t)}
1async function D(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=T){let{appId:a,measurementId:o}=e;try{await O(r,t)}catch(e){if(o)return y.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${e?.message}]`),{appId:a,measurementId:o};throw e}try{let t=await fe(e);return i.deleteThrottleMetadata(a),t}catch(t){let s=t;if(!k(s)){if(i.deleteThrottleMetadata(a),o)return y.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${s?.message}]`),{appId:a,measurementId:o};throw t}let c=Number(s?.customData?.httpStatus)===503?p(n,i.intervalMillis,le):p(n,i.intervalMillis),l={throttleEndTimeMillis:Date.now()+c,backoffCount:n+1};return i.setThrottleMetadata(a,l),y.debug(`Calling attemptFetch again in ${c} millis`),D(e,l,r,i)}}function O(e,t){return new Promise((n,r)=>{let i=Math.max(t-Date.now(),0),a=setTimeout(n,i);e.addEventListener(()=>{clearTimeout(a),r(b.create(`fetch-throttle`,{throttleEndTimeMillis:t}))})})}function k(e){if(!(e instanceof s)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}var A=class{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}},j;async function M(e,t,n,r,i){if(i&&i.global){e(`event`,n,r);return}{let i=await t;e(`event`,n,{...r,send_to:i})}}async function N(e,t,n,r){if(r&&r.global)return e(`set`,{user_id:n}),Promise.resolve();e(`config`,await t,{update:!0,user_id:n})}async function P(e,t,n,r){if(r&&r.global){let t={};for(let e of Object.keys(n))t[`user_properties.${e}`]=n[e];return e(`set`,t),Promise.resolve()}e(`config`,await t,{update:!0,user_properties:n})}var F;function I(e){F=e}function L(e){j=e}async function R(){if(n())try{await t()}catch(e){return y.warn(b.create(`indexeddb-unavailable`,{errorInfo:e?.toString()}).message),!1}else return y.warn(b.create(`indexeddb-unavailable`,{errorInfo:`IndexedDB is not available in this environment.`}).message),!1;return!0}async function z(e,t,n,r,i,a,o){let s=E(e);s.then(t=>{n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&y.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(e=>y.error(e)),t.push(s);let c=R().then(e=>{if(e)return r.getId()}),[l,u]=await Promise.all([s,c]);ce(a)||C(a,l.measurementId),F&&(i(`consent`,`default`,F),I(void 0)),i(`js`,new Date);let d=o?.config??{};return d[ee]=`firebase`,d.update=!0,u!=null&&(d[_]=u),i(`config`,l.measurementId,d),j&&(i(`set`,j),L(void 0)),l.measurementId}var B=class{constructor(e){this.app=e}_delete(){return delete V[this.app.options.appId],Promise.resolve()}},V={},H=[],U={},W=`dataLayer`,pe=`gtag`,G,K,q=!1;function me(){let e=[];
1if(m()&&e.push(`This is a browser extension environment.`),r()||e.push(`Cookies are not available.`),e.length>0){let t=e.map((e,t)=>`(${t+1}) ${e}`).join(` `),n=b.create(`invalid-analytics-context`,{errorInfo:t});y.warn(n.message)}}function he(e,t,n){me();let r=e.options.appId;if(!r)throw b.create(`no-app-id`);if(!e.options.apiKey){if(e.options.measurementId)y.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw b.create(`no-api-key`)}if(V[r]!=null)throw b.create(`already-exists`,{id:r});if(!q){w(W);let{wrappedGtag:e,gtagCore:t}=se(V,H,U,W,pe);K=e,G=t,q=!0}return V[r]=z(e,H,U,t,G,W,n),new B(e)}function ge(e=o()){e=a(e);let t=i(e,g);return t.isInitialized()?t.getImmediate():J(e)}function J(e,t={}){let n=i(e,g);if(n.isInitialized()){let e=n.getImmediate();if(h(t,n.getOptions()))return e;throw b.create(`already-initialized`)}return n.initialize({options:t})}function _e(e,t,n){e=a(e),N(K,V[e.app.options.appId],t,n).catch(e=>y.error(e))}function Y(e,t,n){e=a(e),P(K,V[e.app.options.appId],t,n).catch(e=>y.error(e))}function X(e,t,n,r){e=a(e),M(K,V[e.app.options.appId],t,n,r).catch(e=>y.error(e))}function Z(e){K?K(`consent`,`update`,e):I(e)}var Q=`@firebase/analytics`,$=`0.10.25`;function ve(){u(new l(g,(e,{options:t})=>he(e.getProvider(`app`).getImmediate(),e.getProvider(`installations-internal`).getImmediate(),t),`PUBLIC`)),u(new l(`analytics-internal`,e,`PRIVATE`)),f(Q,$),f(Q,$,`esm2020`);function e(e){try{let t=e.getProvider(g).getImmediate();return{logEvent:(e,n,r)=>X(t,e,n,r),setUserProperties:(e,n)=>Y(t,e,n)}}catch(e){throw b.create(`interop-component-reg-failed`,{reason:e})}}}ve();var ye=e({getAnalytics:()=>ge,initializeAnalytics:()=>J,logEvent:()=>X,setConsent:()=>Z,setUserId:()=>_e,setUserProperties:()=>Y});export{Z as n,ye as t};

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.