PageSourceSearch

https://urldna.io/chunk-BF5PYRQI.js

js urldna.io collected 2026-09-24 13:19:15 UTC 19,564 bytes, 1 lines download raw bytes

1import{B as ne,C as ie,D as A,E as S,I as j,K as k,j as $,m as M,n as N,o as L,p as E,q as P,s as te,x,y as I,z as v}from"./chunk-HQIKM7W4.js";import{h as c}from"./chunk-SIAVTO45.js";var se="@firebase/installations",V="0.6.9";var oe=1e4,ce=`w:${V}`,le="FIS_v2",Fe="https://firebaseinstallations.googleapis.com/v1",$e=60*60*1e3,Me="installations",Ne="Installations";var Le={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},b=new P(Me,Ne,Le);function ue(e){return e instanceof E&&e.code.includes("request-failed")}function de({projectId:e}){return`${Fe}/projects/${e}/installations`}function fe(e){return{token:e.token,requestStatus:2,expiresIn:je(e.expiresIn),creationTime:Date.now()}}function pe(e,t){return c(this,null,function*(){let i=(yield t.json()).error;return b.create("request-failed",{requestName:e,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})})}function ge({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function xe(e,{refreshToken:t}){let n=ge(e);return n.append("Authorization",qe(t)),n}function me(e){return c(this,null,function*(){let t=yield e();return t.status>=500&&t.status<600?e():t})}function je(e){return Number(e.replace("s","000"))}function qe(e){return`${le} ${e}`}function Be(i,a){return c(this,arguments,function*({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=de(e),s=ge(e),o=t.getImmediate({optional:!0});if(o){let u=yield o.getHeartbeatsHeader();u&&s.append("x-firebase-client",u)}let l={fid:n,authVersion:le,appId:e.appId,sdkVersion:ce},f={method:"POST",headers:s,body:JSON.stringify(l)},d=yield me(()=>fetch(r,f));if(d.ok){let u=yield d.json();return{fid:u.fid||n,registrationStatus:2,refreshToken:u.refreshToken,authToken:fe(u.authToken)}}else throw yield pe("Create Installation",d)})}function he(e){return new Promise(t=>{setTimeout(t,e)})}function Ue(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}var Ve=/^[cdef][\w-]{21}$/,U="";function ze(){try{let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let n=Ge(e);return Ve.test(n)?n:U}catch{return U}}function Ge(e){return Ue(e).substr(0,22)}function _(e){return`${e.appName}!${e.appId}`}var we=new Map;function Ie(e,t){let n=_(e);ye(n,t),He(n,t)}function ye(e,t){let n=we.get(e);if(n)for(let i of n)i(t)}function He(e,t){let n=Ke();n&&n.postMessage({key:e,fid:t}),We()}var y=null;function Ke(){return!y&&"BroadcastChannel"in self&&(y=new BroadcastChannel("[Firebase] FID Change"),y.onmessage=e=>{ye(e.data.key,e.data.fid)}),y}function We(){we.size===0&&y&&(y.close(),y=null)}var Ye="firebase-installations-database",Je=1,T="firebase-installations-store",q=null;function z(){return q||(q=ie(Ye,Je,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(T)}}})),q}function R(e,t){return c(this,null,function*(){let n=_(e),a=(yield z()).transaction(T,"readwrite"),r=a.objectStore(T),s=yield r.get(n);return yield r.put(t,n),yield a.done,(!s||s.fid!==t.fid)&&Ie(e,t.fid),t})}function be(e){return c(this,null,function*(){let t=_(e),i=(yield z()).transaction(T,"readwrite");yield i.objectStore(T).delete(t),yield i.done})}function O(e,t){return c(this,null,function*(){let n=_(e),a=(yield z()).transaction(T,"readwrite"),r=a.objectStore(T),s=yield r.get(n),o=t(s);return o===void 0?yield r.delete(n):yield r.put(o,n),yield a.done,o&&(!s||s.fid!==o.fid)&&Ie(e,o.fid),o})}function G(e){return c(this,null,function*(){let t,n=yield O(e.appConfig,i=>{let a=Xe(i),r=Qe(e,a);return t=r.registrationPromise,r.installationEntry});return n.fid===U?{installationEntry:yield t}:{installationEntry:n,registrationPromise:t}})}function Xe(e){let t=e||{fid:ze(),registrationStatus:0};return Te(t)}function Qe(e,t){if(t.registrationStatus===0){if(!navigator.onLine){let a=Prom
1ise.reject(b.create("app-offline"));return{installationEntry:t,registrationPromise:a}}let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=Ze(e,n);return{installationEntry:n,registrationPromise:i}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:et(e)}:{installationEntry:t}}function Ze(e,t){return c(this,null,function*(){try{let n=yield Be(e,t);return R(e.appConfig,n)}catch(n){throw ue(n)&&n.customData.serverCode===409?yield be(e.appConfig):yield R(e.appConfig,{fid:t.fid,registrationStatus:0}),n}})}function et(e){return c(this,null,function*(){let t=yield ae(e.appConfig);for(;t.registrationStatus===1;)yield he(100),t=yield ae(e.appConfig);if(t.registrationStatus===0){let{installationEntry:n,registrationPromise:i}=yield G(e);return i||n}return t})}function ae(e){return O(e,t=>{if(!t)throw b.create("installation-not-found");return Te(t)})}function Te(e){return tt(e)?{fid:e.fid,registrationStatus:0}:e}function tt(e){return e.registrationStatus===1&&e.registrationTime+oe<Date.now()}function nt(i,a){return c(this,arguments,function*({appConfig:e,heartbeatServiceProvider:t},n){let r=it(e,n),s=xe(e,n),o=t.getImmediate({optional:!0});if(o){let u=yield o.getHeartbeatsHeader();u&&s.append("x-firebase-client",u)}let l={installation:{sdkVersion:ce,appId:e.appId}},f={method:"POST",headers:s,body:JSON.stringify(l)},d=yield me(()=>fetch(r,f));if(d.ok){let u=yield d.json();return fe(u)}else throw yield pe("Generate Auth Token",d)})}function it(e,{fid:t}){return`${de(e)}/${t}/authTokens:generate`}function H(e,t=!1){return c(this,null,function*(){let n,i=yield O(e.appConfig,r=>{if(!ve(r))throw b.create("not-registered");let s=r.authToken;if(!t&&st(s))return r;if(s.requestStatus===1)return n=at(e,t),r;{if(!navigator.onLine)throw b.create("app-offline");let o=ct(r);return n=rt(e,o),o}});return n?yield n:i.authToken})}function at(e,t){return c(this,null,function*(){let n=yield re(e.appConfig);for(;n.authToken.requestStatus===1;)yield he(100),n=yield re(e.appConfig);let i=n.authToken;return i.requestStatus===0?H(e,t):i})}function re(e){return O(e,t=>{if(!ve(t))throw b.create("not-registered");let n=t.authToken;return lt(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}function rt(e,t){return c(this,null,function*(){try{let n=yield nt(e,t),i=Object.assign(Object.assign({},t),{authToken:n});return yield R(e.appConfig,i),n}catch(n){if(ue(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))yield be(e.appConfig);else{let i=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});yield R(e.appConfig,i)}throw n}})}function ve(e){return e!==void 0&&e.registrationStatus===2}function st(e){return e.requestStatus===2&&!ot(e)}function ot(e){let t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+$e}function ct(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function lt(e){return e.requestStatus===1&&e.requestTime+oe<Date.now()}function ut(e){return c(this,null,function*(){let t=e,{installationEntry:n,registrationPromise:i}=yield G(t);return i?i.catch(console.error):H(t).catch(console.error),n.fid})}function dt(e,t=!1){return c(this,null,function*(){let n=e;return yield ft(n),(yield H(n,t)).token})}function ft(e){return c(this,null,function*(){let{registrationPromise:t}=yield G(e);t&&(yield t)})}function pt(e){if(!e||!e.options)throw B("App Configuration");if(!e.name)throw B("App Name");let t=["projectId","apiKey","appId"];for(let n of t)if(!e.options[n])throw B(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function B(e){return b.create("missing-app-config-values",{valueName:e})}var Ae="installations",gt="installations-internal",mt=e=>{let t=e.getProvider("app").getImmediate(),n=pt(t),i=S(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:i,_delete:()=>Promise.resolve()}},ht=e=>{let t=e.getProvider("app").getImmediate(),n=S(t,Ae).getImmediate();return{getId:()=>ut(n),getToken:a=>dt(n,a)}};function wt(){A(new v(Ae,mt,"PUBLIC")),A(new v(gt,ht,"PRIVATE"))}wt();k(se,V);k(se,V,"esm2017");var F="analytics",It="firebase_id",yt="origin",bt=60*1e3,Tt="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Z="https://www.googletagmanager.com/gtag/js";var p=new ne("@firebase/analytics");var vt={"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}
1","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}."},m=new P("analytics","Analytics",vt);function At(e){if(!e.startsWith(Z)){let t=m.create("invalid-gtag-resource",{gtagURL:e});return p.warn(t.message),""}return e}function Re(e){return Promise.all(e.map(t=>t.catch(n=>n)))}function St(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function kt(e,t){let n=St("firebase-js-sdk-policy",{createScriptURL:At}),i=document.createElement("script"),a=`${Z}?l=${e}&id=${t}`;i.src=n?n?.createScriptURL(a):a,i.async=!0,document.head.appendChild(i)}function Ct(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}function Et(e,t,n,i,a,r){return c(this,null,function*(){let s=i[a];try{if(s)yield t[s];else{let l=(yield Re(n)).find(f=>f.measurementId===a);l&&(yield t[l.appId])}}catch(o){p.error(o)}e("config",a,r)})}function Pt(e,t,n,i,a){return c(this,null,function*(){try{let r=[];if(a&&a.send_to){let s=a.send_to;Array.isArray(s)||(s=[s]);let o=yield Re(n);for(let l of s){let f=o.find(u=>u.measurementId===l),d=f&&t[f.appId];if(d)r.push(d);else{r=[];break}}}r.length===0&&(r=Object.values(t)),yield Promise.all(r),e("event",i,a||{})}catch(r){p.error(r)}})}function Rt(e,t,n,i){function a(r,...s){return c(this,null,function*(){try{if(r==="event"){let[o,l]=s;yield Pt(e,t,n,o,l)}else if(r==="config"){let[o,l]=s;yield Et(e,t,n,i,o,l)}else if(r==="consent"){let[o,l]=s;e("consent",o,l)}else if(r==="get"){let[o,l,f]=s;e("get",o,l,f)}else if(r==="set"){let[o]=s;e("set",o)}else e(r,...s)}catch(o){p.error(o)}})}return a}function _t(e,t,n,i,a){let r=function(...s){window[i].push(arguments)};return window[a]&&typeof window[a]=="function"&&(r=window[a]),window[a]=Rt(r,e,t,n),{gtagCore:r,wrappedGtag:window[a]}}function Ot(e){let t=window.document.getElementsByTagName("script");for(let n of Object.values(t))if(n.src&&n.src.includes(Z)&&n.src.includes(e))return n;return null}var Dt=30,Ft=1e3,K=class{constructor(t={},n=Ft){this.throttleMetadata=t,this.intervalMillis=n}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,n){this.throttleMetadata[t]=n}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}},_e=new K;function $t(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function Mt(e){return c(this,null,function*(){var t;let{appId:n,apiKey:i}=e,a={method:"GET",headers:$t(i)},r=Tt.replace("{app-id}",n),s=yield fetch(r,a);if(s.status!==200&&s.status!==304){let o="";try{let l=yield s.json();!((t=l.error)===null||t===void 0)&&t.message&&(o=l.error.message)}catch{}throw m.create("config-fetch-failed",{httpStatus:s.status,responseMessage:o})}return s.json()})}function Nt(i){return c(this,arguments,function*(e,t=_e,n){let{appId:a,apiKey:r,measurementId:s}=e.options;if(!a)throw m.create("no-app-id");if(!r){if(s)return{measurementId:s,appId:a};throw m.create("no-api-key")}let o=t.getThrottleMetadata(a)||{backoffCount:0,throttleEndTimeMillis:Date.now()},l=new W;return setTimeout(()=>c(this,null,function*(){l.abort()}),n!==void 0?n:bt),Oe({appId:a,apiKey:r,measurementId:s},o,l,t)})}function Oe(r,s,o){return c(this,arguments,function*(e,{throttleEndTimeMillis:t,backoffCount:n},i,a=_e){var l;let{appId:f,measurementId:d}=e;try{yield Lt(i,t)}catch(u){if(d)return p.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${d} provided in the "measurementId" field in the local Firebase config. [${u?.message}
1]`),{appId:f,measurementId:d};throw u}try{let u=yield Mt(e);return a.deleteThrottleMetadata(f),u}catch(u){let g=u;if(!xt(g)){if(a.deleteThrottleMetadata(f),d)return p.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${d} provided in the "measurementId" field in the local Firebase config. [${g?.message}]`),{appId:f,measurementId:d};throw u}let h=Number((l=g?.customData)===null||l===void 0?void 0:l.httpStatus)===503?x(n,a.intervalMillis,Dt):x(n,a.intervalMillis),ee={throttleEndTimeMillis:Date.now()+h,backoffCount:n+1};return a.setThrottleMetadata(f,ee),p.debug(`Calling attemptFetch again in ${h} millis`),Oe(e,ee,i,a)}})}function Lt(e,t){return new Promise((n,i)=>{let a=Math.max(t-Date.now(),0),r=setTimeout(n,a);e.addEventListener(()=>{clearTimeout(r),i(m.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function xt(e){if(!(e instanceof E)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}var W=class{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}};var Y;function jt(e,t,n,i,a){return c(this,null,function*(){if(a&&a.global){e("event",n,i);return}else{let r=yield t,s=Object.assign(Object.assign({},i),{send_to:r});e("event",n,s)}})}function qt(e,t,n,i){return c(this,null,function*(){if(i&&i.global)return e("set",{screen_name:n}),Promise.resolve();{let a=yield t;e("config",a,{update:!0,screen_name:n})}})}function Bt(e,t,n,i){return c(this,null,function*(){if(i&&i.global)return e("set",{user_id:n}),Promise.resolve();{let a=yield t;e("config",a,{update:!0,user_id:n})}})}function Ut(e,t,n,i){return c(this,null,function*(){if(i&&i.global){let a={};for(let r of Object.keys(n))a[`user_properties.${r}`]=n[r];return e("set",a),Promise.resolve()}else{let a=yield t;e("config",a,{update:!0,user_properties:n})}})}function Vt(e,t){return c(this,null,function*(){let n=yield e;window[`ga-disable-${n}`]=!t})}var J;function zt(e){J=e}function Gt(e){Y=e}function Ht(){return c(this,null,function*(){if(M())try{yield N()}catch(e){return p.warn(m.create("indexeddb-unavailable",{errorInfo:e?.toString()}).message),!1}else return p.warn(m.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0})}function Kt(e,t,n,i,a,r,s){return c(this,null,function*(){var o;let l=Nt(e);l.then(h=>{n[h.measurementId]=h.appId,e.options.measurementId&&h.measurementId!==e.options.measurementId&&p.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${h.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(h=>p.error(h)),t.push(l);let f=Ht().then(h=>{if(h)return i.getId()}),[d,u]=yield Promise.all([l,f]);Ot(r)||kt(r,d.measurementId),J&&(a("consent","default",J),zt(void 0)),a("js",new Date);let g=(o=s?.config)!==null&&o!==void 0?o:{};return g[yt]="firebase",g.update=!0,u!=null&&(g[It]=u),a("config",d.measurementId,g),Y&&(a("set",Y),Gt(void 0)),d.measurementId})}var X=class{constructor(t){this.app=t}_delete(){return delete w[this.app.options.appId],Promise.resolve()}},w={},Se=[],ke={},D="dataLayer",De="gtag",Ce,C,Q=!1;function dn(e){if(Q)throw m.create("already-initialized");e.dataLayerName&&(D=e.dataLayerName),e.gtagName&&(De=e.gtagName)}function Wt(){let e=[];
1if($()&&e.push("This is a browser extension environment."),L()||e.push("Cookies are not available."),e.length>0){let t=e.map((i,a)=>`(${a+1}) ${i}`).join(" "),n=m.create("invalid-analytics-context",{errorInfo:t});p.warn(n.message)}}function Yt(e,t,n){Wt();let i=e.options.appId;if(!i)throw m.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)p.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 m.create("no-api-key");if(w[i]!=null)throw m.create("already-exists",{id:i});if(!Q){Ct(D);let{wrappedGtag:r,gtagCore:s}=_t(w,Se,ke,D,De);C=r,Ce=s,Q=!0}return w[i]=Kt(e,Se,ke,t,Ce,D,n),new X(e)}function fn(e=j()){e=I(e);let t=S(e,F);return t.isInitialized()?t.getImmediate():Jt(e)}function Jt(e,t={}){let n=S(e,F);if(n.isInitialized()){let a=n.getImmediate();if(te(t,n.getOptions()))return a;throw m.create("already-initialized")}return n.initialize({options:t})}function pn(){return c(this,null,function*(){if($()||!L()||!M())return!1;try{return yield N()}catch{return!1}})}function gn(e,t,n){e=I(e),qt(C,w[e.app.options.appId],t,n).catch(i=>p.error(i))}function mn(e,t,n){e=I(e),Bt(C,w[e.app.options.appId],t,n).catch(i=>p.error(i))}function hn(e,t,n){e=I(e),Ut(C,w[e.app.options.appId],t,n).catch(i=>p.error(i))}function wn(e,t){e=I(e),Vt(w[e.app.options.appId],t).catch(n=>p.error(n))}function Xt(e,t,n,i){e=I(e),jt(C,w[e.app.options.appId],t,n,i).catch(a=>p.error(a))}var Ee="@firebase/analytics",Pe="0.10.8";function Qt(){A(new v(F,(t,{options:n})=>{let i=t.getProvider("app").getImmediate(),a=t.getProvider("installations-internal").getImmediate();return Yt(i,a,n)},"PUBLIC")),A(new v("analytics-internal",e,"PRIVATE")),k(Ee,Pe),k(Ee,Pe,"esm2017");function e(t){try{let n=t.getProvider(F).getImmediate();return{logEvent:(i,a,r)=>Xt(n,i,a,r)}}catch(n){throw m.create("interop-component-reg-failed",{reason:n})}}}Qt();export{dn as a,fn as b,pn as c,gn as d,mn as e,hn as f,wn as g,Xt as h};

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.