firebase 12.6.0-20251113021847 → 12.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/app/dist/esm/index.esm.js +1 -1
  2. package/app/dist/index.cjs.js +1 -1
  3. package/app/dist/index.mjs +1 -1
  4. package/compat/app/dist/esm/index.esm.js +1 -1
  5. package/compat/app/dist/index.cjs.js +1 -1
  6. package/compat/app/dist/index.mjs +1 -1
  7. package/compat/dist/esm/index.esm.js +2 -2
  8. package/compat/dist/index.node.cjs +2 -2
  9. package/compat/dist/index.rn.cjs.js +2 -2
  10. package/firebase-ai.js +1 -1
  11. package/firebase-ai.js.map +1 -1
  12. package/firebase-analytics.js +1 -1
  13. package/firebase-app-check.js +1 -1
  14. package/firebase-app-compat.js +2 -2
  15. package/firebase-app-compat.js.map +1 -1
  16. package/firebase-app.js +5 -5
  17. package/firebase-auth-cordova.js +1 -1
  18. package/firebase-auth-web-extension.js +1 -1
  19. package/firebase-auth.js +1 -1
  20. package/firebase-compat.js +4 -4
  21. package/firebase-compat.js.map +1 -1
  22. package/firebase-data-connect.js +1 -1
  23. package/firebase-data-connect.js.map +1 -1
  24. package/firebase-database.js +1 -1
  25. package/firebase-firestore-compat.js +1 -1
  26. package/firebase-firestore-compat.js.map +1 -1
  27. package/firebase-firestore-lite.js +1 -1
  28. package/firebase-firestore-lite.js.map +1 -1
  29. package/firebase-firestore.js +1 -1
  30. package/firebase-firestore.js.map +1 -1
  31. package/firebase-functions.js +1 -1
  32. package/firebase-installations.js +1 -1
  33. package/firebase-messaging-sw.js +1 -1
  34. package/firebase-messaging.js +1 -1
  35. package/firebase-performance-standalone-compat.js +5 -5
  36. package/firebase-performance-standalone-compat.js.map +1 -1
  37. package/firebase-performance.js +1 -1
  38. package/firebase-remote-config.js +1 -1
  39. package/firebase-storage.js +1 -1
  40. package/package.json +5 -5
@@ -193,7 +193,7 @@ function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window
193
193
  * See the License for the specific language governing permissions and
194
194
  * limitations under the License.
195
195
  */
196
- class K{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===t?.type}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const J="@firebase/app",G="0.14.5",X=new k("@firebase/app"),Y="@firebase/app-compat",Z="@firebase/analytics-compat",Q="@firebase/analytics",ee="@firebase/app-check-compat",te="@firebase/app-check",ne="@firebase/auth",re="@firebase/auth-compat",ie="@firebase/database",ae="@firebase/data-connect",oe="@firebase/database-compat",se="@firebase/functions",ce="@firebase/functions-compat",le="@firebase/installations",ue="@firebase/installations-compat",fe="@firebase/messaging",de="@firebase/messaging-compat",pe="@firebase/performance",he="@firebase/performance-compat",ge="@firebase/remote-config",me="@firebase/remote-config-compat",be="@firebase/storage",ve="@firebase/storage-compat",ye="@firebase/firestore",_e="@firebase/ai",we="@firebase/firestore-compat",Ee="firebase",Se="[DEFAULT]",Ie={[J]:"fire-core",[Y]:"fire-core-compat",[Q]:"fire-analytics",[Z]:"fire-analytics-compat",[te]:"fire-app-check",[ee]:"fire-app-check-compat",[ne]:"fire-auth",[re]:"fire-auth-compat",[ie]:"fire-rtdb",[ae]:"fire-data-connect",[oe]:"fire-rtdb-compat",[se]:"fire-fn",[ce]:"fire-fn-compat",[le]:"fire-iid",[ue]:"fire-iid-compat",[fe]:"fire-fcm",[de]:"fire-fcm-compat",[pe]:"fire-perf",[he]:"fire-perf-compat",[ge]:"fire-rc",[me]:"fire-rc-compat",[be]:"fire-gcs",[ve]:"fire-gcs-compat",[ye]:"fire-fst",[we]:"fire-fst-compat",[_e]:"fire-vertex","fire-js":"fire-js",[Ee]:"fire-js-all"},Te=new Map,Ce=new Map,Ae=new Map;function De(e,t){try{e.container.addComponent(t)}catch(n){X.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ke(e){const t=e.name;if(Ae.has(t))return X.debug(`There were multiple attempts to register component ${t}.`),!1;Ae.set(t,e);for(const t of Te.values())De(t,e);for(const t of Ce.values())De(t,e);return!0}function Ne(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Me(e){return void 0!==e.options}function Oe(e){return!Me(e)&&("authIdToken"in e||"appCheckToken"in e||"releaseOnDeref"in e||"automaticDataCollectionEnabled"in e)}
196
+ class K{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===t?.type}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const J="@firebase/app",G="0.14.6",X=new k("@firebase/app"),Y="@firebase/app-compat",Z="@firebase/analytics-compat",Q="@firebase/analytics",ee="@firebase/app-check-compat",te="@firebase/app-check",ne="@firebase/auth",re="@firebase/auth-compat",ie="@firebase/database",ae="@firebase/data-connect",oe="@firebase/database-compat",se="@firebase/functions",ce="@firebase/functions-compat",le="@firebase/installations",ue="@firebase/installations-compat",fe="@firebase/messaging",de="@firebase/messaging-compat",pe="@firebase/performance",he="@firebase/performance-compat",ge="@firebase/remote-config",me="@firebase/remote-config-compat",be="@firebase/storage",ve="@firebase/storage-compat",ye="@firebase/firestore",_e="@firebase/ai",we="@firebase/firestore-compat",Ee="firebase",Se="[DEFAULT]",Ie={[J]:"fire-core",[Y]:"fire-core-compat",[Q]:"fire-analytics",[Z]:"fire-analytics-compat",[te]:"fire-app-check",[ee]:"fire-app-check-compat",[ne]:"fire-auth",[re]:"fire-auth-compat",[ie]:"fire-rtdb",[ae]:"fire-data-connect",[oe]:"fire-rtdb-compat",[se]:"fire-fn",[ce]:"fire-fn-compat",[le]:"fire-iid",[ue]:"fire-iid-compat",[fe]:"fire-fcm",[de]:"fire-fcm-compat",[pe]:"fire-perf",[he]:"fire-perf-compat",[ge]:"fire-rc",[me]:"fire-rc-compat",[be]:"fire-gcs",[ve]:"fire-gcs-compat",[ye]:"fire-fst",[we]:"fire-fst-compat",[_e]:"fire-vertex","fire-js":"fire-js",[Ee]:"fire-js-all"},Te=new Map,Ce=new Map,Ae=new Map;function De(e,t){try{e.container.addComponent(t)}catch(n){X.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ke(e){const t=e.name;if(Ae.has(t))return X.debug(`There were multiple attempts to register component ${t}.`),!1;Ae.set(t,e);for(const t of Te.values())De(t,e);for(const t of Ce.values())De(t,e);return!0}function Ne(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Me(e){return void 0!==e.options}function Oe(e){return!Me(e)&&("authIdToken"in e||"appCheckToken"in e||"releaseOnDeref"in e||"automaticDataCollectionEnabled"in e)}
197
197
  /**
198
198
  * @license
199
199
  * Copyright 2019 Google LLC
@@ -259,7 +259,7 @@ class Pe{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config
259
259
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
260
260
  * See the License for the specific language governing permissions and
261
261
  * limitations under the License.
262
- */const Fe="12.6.0-20251113021847";function $e(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r={name:Se,automaticDataCollectionEnabled:!0,...t},i=r.name;if("string"!=typeof i||!i)throw Le.create("bad-app-name",{appName:String(i)});if(n||(n=c()),!n)throw Le.create("no-options");const a=Te.get(i);if(a){if(b(n,a.options)&&b(r,a.config))return a;throw Le.create("duplicate-app",{appName:i})}const o=new E(i);for(const e of Ae.values())o.addComponent(e);const s=new Pe(n,r,o);return Te.set(i,s),s}async function Ue(e){let t=!1;const n=e.name;if(Te.has(n))t=!0,Te.delete(n);else if(Ce.has(n)){e.decRefCount()<=0&&(Ce.delete(n),t=!0)}t&&(await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function je(e,t,n){let r=Ie[e]??e;n&&(r+=`-${n}`);const i=r.match(/\s|\//),a=t.match(/\s|\//);if(i||a){const e=[`Unable to register library "${r}" with version "${t}":`];return i&&e.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void X.warn(e.join(" "))}ke(new y(`${r}-version`,(()=>({library:r,version:t})),"VERSION"))}function xe(e,t){if(null!==e&&"function"!=typeof e)throw Le.create("invalid-log-argument");!function(e,t){for(const n of S){let r=null;t&&t.level&&(r=T[t.level]),n.userLogHandler=null===e?null:(t,n,...i)=>{const a=i.map((e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((e=>e)).join(" ");n>=(r??t.logLevel)&&e({level:I[n].toLowerCase(),message:a,args:i,type:t.name})}}}(e,t)}function ze(e){var t;t=e,S.forEach((e=>{e.setLogLevel(t)}))}
262
+ */const Fe="12.6.0";function $e(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r={name:Se,automaticDataCollectionEnabled:!0,...t},i=r.name;if("string"!=typeof i||!i)throw Le.create("bad-app-name",{appName:String(i)});if(n||(n=c()),!n)throw Le.create("no-options");const a=Te.get(i);if(a){if(b(n,a.options)&&b(r,a.config))return a;throw Le.create("duplicate-app",{appName:i})}const o=new E(i);for(const e of Ae.values())o.addComponent(e);const s=new Pe(n,r,o);return Te.set(i,s),s}async function Ue(e){let t=!1;const n=e.name;if(Te.has(n))t=!0,Te.delete(n);else if(Ce.has(n)){e.decRefCount()<=0&&(Ce.delete(n),t=!0)}t&&(await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function je(e,t,n){let r=Ie[e]??e;n&&(r+=`-${n}`);const i=r.match(/\s|\//),a=t.match(/\s|\//);if(i||a){const e=[`Unable to register library "${r}" with version "${t}":`];return i&&e.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void X.warn(e.join(" "))}ke(new y(`${r}-version`,(()=>({library:r,version:t})),"VERSION"))}function xe(e,t){if(null!==e&&"function"!=typeof e)throw Le.create("invalid-log-argument");!function(e,t){for(const n of S){let r=null;t&&t.level&&(r=T[t.level]),n.userLogHandler=null===e?null:(t,n,...i)=>{const a=i.map((e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((e=>e)).join(" ");n>=(r??t.logLevel)&&e({level:I[n].toLowerCase(),message:a,args:i,type:t.name})}}}(e,t)}function ze(e){var t;t=e,S.forEach((e=>{e.setLogLevel(t)}))}
263
263
  /**
264
264
  * @license
265
265
  * Copyright 2021 Google LLC
@@ -406,7 +406,7 @@ const rt=function(){const e=nt(et);e.SDK_VERSION=`${e.SDK_VERSION}_LITE`;const t
406
406
  * See the License for the specific language governing permissions and
407
407
  * limitations under the License.
408
408
  */
409
- function(e){je("@firebase/app-compat","0.5.5",e)}("lite");
409
+ function(e){je("@firebase/app-compat","0.5.6",e)}("lite");
410
410
  /**
411
411
  * @license
412
412
  * Copyright 2020 Google LLC
@@ -423,7 +423,7 @@ function(e){je("@firebase/app-compat","0.5.5",e)}("lite");
423
423
  * See the License for the specific language governing permissions and
424
424
  * limitations under the License.
425
425
  */
426
- rt.registerVersion("firebase","12.6.0-20251113021847","app-compat");var it,at,ot=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},st=function(e){if("loading"===document.readyState)return"loading";var t=ot();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},ct=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},lt=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:ct(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},ut=-1,ft=function(e){addEventListener("pageshow",(function(t){t.persisted&&(ut=t.timeStamp,e(t))}),!0)},dt=function(){var e=ot();return e&&e.activationStart||0},pt=function(e,t){var n=ot(),r="navigate";return ut>=0?r="back-forward-cache":n&&(document.prerendering||dt()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ht=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},gt=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},mt=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},bt=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},vt=function(e){var t=!1;return function(){t||(e(),t=!0)}},yt=-1,_t=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},wt=function(e){"hidden"===document.visibilityState&&yt>-1&&(yt="visibilitychange"===e.type?e.timeStamp:0,St())},Et=function(){addEventListener("visibilitychange",wt,!0),addEventListener("prerenderingchange",wt,!0)},St=function(){removeEventListener("visibilitychange",wt,!0),removeEventListener("prerenderingchange",wt,!0)},It=function(){return yt<0&&(yt=_t(),Et(),ft((function(){setTimeout((function(){yt=_t(),Et()}),0)}))),{get firstHiddenTime(){return yt}}},Tt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Ct=[1800,3e3],At=[.1,.25],Dt=function(e,t){!function(e,t){t=t||{},function(e,t){t=t||{},Tt((function(){var n,r=It(),i=pt("FCP"),a=ht("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-dt(),0),i.entries.push(e),n(!0)))}))}));a&&(n=gt(e,i,Ct,t.reportAllChanges),ft((function(r){i=pt("FCP"),n=gt(e,i,Ct,t.reportAllChanges),mt((function(){i.value=performance.now()-r.timeStamp,n(!0)}))})))}))}(vt((function(){var n,r=pt("CLS",0),i=0,a=[],o=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=a[0],n=a[a.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e])}})),i>r.value&&(r.value=i,r.entries=a,n())},s=ht("layout-shift",o);s&&(n=gt(e,r,At,t.reportAllChanges),bt((function(){o(s.takeRecords()),n(!0)})),ft((function(){i=0,r=pt("CLS",0),n=gt(e,r,At,t.reportAllChanges),mt((function(){return n()}))})),setTimeout(n,0))})))}((function(t){var n=function(e){var t,n={};if(e.entries.length){var r=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(r&&r.sources&&r.sources.length){var i=(t=r.sources).find((function(e){return e.node&&1===e.node.nodeType}))||t[0];i&&(n={largestShiftTarget:lt(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:st(r.startTime)})}}return Object.assign(e,{attribution:n})}(t);e(n)}),t)},kt=0,Nt=1/0,Mt=0,Ot=function(e){e.forEach((function(e){e.interactionId&&(Nt=Math.min(Nt,e.interactionId),Mt=Math.max(Mt,e.interactionId),kt=Mt?(Mt-Nt)/7+1:0)}))},Lt=function(){return it?kt:performance.interactionCount||0},Pt=function(){"interactionCount"in performance||it||(it=ht("event",Ot,{type:"event",buffered:!0,durationThreshold:0}))},Bt=[],Rt=new Map,Ft=0,$t=[],Ut=function(e){if($t.forEach((function(t){return t(e)})),e.interactionId||"first-input"===e.entryType){var t=Bt[Bt.length-1],n=Rt.get(e.interactionId);if(n||Bt.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};Rt.set(r.id,r),Bt.push(r)}Bt.sort((function(e,t){return t.latency-e.latency})),Bt.length>10&&Bt.splice(10).forEach((function(e){return Rt.delete(e.id)}))}}},jt=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=vt(e),"hidden"===document.visibilityState?e():(n=t(e),bt(e)),n},xt=[200,500],zt=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Tt((function(){var n;Pt();var r,i=pt("INP"),a=function(e){jt((function(){e.forEach(Ut);var t=function(){var e=Math.min(Bt.length-1,Math.floor((Lt()-Ft)/50));return Bt[e]}();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())}))},o=ht("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=gt(e,i,xt,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),bt((function(){a(o.takeRecords()),r(!0)})),ft((function(){Ft=Lt(),Bt.length=0,Rt.clear(),i=pt("INP"),r=gt(e,i,xt,t.reportAllChanges)})))})))},Vt=[],Ht=[],qt=0,Wt=new WeakMap,Kt=new Map,Jt=-1,Gt=function(e){Vt=Vt.concat(e),Xt()},Xt=function(){Jt<0&&(Jt=jt(Yt))},Yt=function(){Kt.size>10&&Kt.forEach((function(e,t){Rt.has(t)||Kt.delete(t)}));var e=Bt.map((function(e){return Wt.get(e.entries[0])})),t=Ht.length-50;Ht=Ht.filter((function(n,r){return r>=t||e.includes(n)}));for(var n=new Set,r=0;r<Ht.length;r++){var i=Ht[r];Zt(i.startTime,i.processingEnd).forEach((function(e){n.add(e)}))}var a=Vt.length-1-50;Vt=Vt.filter((function(e,t){return e.startTime>qt&&t>a||n.has(e)})),Jt=-1};$t.push((function(e){e.interactionId&&e.target&&!Kt.has(e.interactionId)&&Kt.set(e.interactionId,e.target)}),(function(e){var t,n=e.startTime+e.duration;qt=Math.max(qt,e.processingEnd);for(var r=Ht.length-1;r>=0;r--){var i=Ht[r];if(Math.abs(n-i.renderTime)<=8){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},Ht.push(t)),(e.interactionId||"first-input"===e.entryType)&&Wt.set(e,t),Xt()}));var Zt=function(e,t){for(var n,r=[],i=0;n=Vt[i];i++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},Qt=function(e,t){at||(at=ht("long-animation-frame",Gt)),zt((function(t){var n=function(e){var t=e.entries[0],n=Wt.get(t),r=t.processingStart,i=n.processingEnd,a=n.entries.sort((function(e,t){return e.processingStart-t.processingStart})),o=Zt(t.startTime,i),s=e.entries.find((function(e){return e.target})),c=s&&s.target||Kt.get(t.interactionId),l=[t.startTime+t.duration,i].concat(o.map((function(e){return e.startTime+e.duration}))),u=Math.max.apply(Math,l),f={interactionTarget:lt(c),interactionTargetElement:c,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:u,processedEventEntries:a,longAnimationFrameEntries:o,inputDelay:r-t.startTime,processingDuration:i-r,presentationDelay:Math.max(u-i,0),loadState:st(t.startTime)};return Object.assign(e,{attribution:f})}(t);e(n)}),t)},en=[2500,4e3],tn={},nn=function(e,t){!function(e,t){t=t||{},Tt((function(){var n,r=It(),i=pt("LCP"),a=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-dt(),0),i.entries=[e],n())}))},o=ht("largest-contentful-paint",a);if(o){n=gt(e,i,en,t.reportAllChanges);var s=vt((function(){tn[i.id]||(a(o.takeRecords()),o.disconnect(),tn[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return jt(s)}),{once:!0,capture:!0})})),bt(s),ft((function(r){i=pt("LCP"),n=gt(e,i,en,t.reportAllChanges),mt((function(){i.value=performance.now()-r.timeStamp,tn[i.id]=!0,n(!0)}))}))}}))}((function(t){var n=function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=ot();if(n){var r=n.activationStart||0,i=e.entries[e.entries.length-1],a=i.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===i.url}))[0],o=Math.max(0,n.responseStart-r),s=Math.max(o,a?(a.requestStart||a.startTime)-r:0),c=Math.max(s,a?a.responseEnd-r:0),l=Math.max(c,i.startTime-r);t={element:lt(i.element),timeToFirstByte:o,resourceLoadDelay:s-o,resourceLoadDuration:c-s,elementRenderDelay:l-c,navigationEntry:n,lcpEntry:i},i.url&&(t.url=i.url),a&&(t.lcpResourceEntry=a)}}return Object.assign(e,{attribution:t})}(t);e(n)}),t)};const rn="@firebase/installations",an="0.6.19",on=1e4,sn=`w:${an}`,cn="FIS_v2",ln=36e5,un=new h("installations","Installations",{"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."});function fn(e){return e instanceof p&&e.code.includes("request-failed")}
426
+ rt.registerVersion("firebase","12.6.0","app-compat");var it,at,ot=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},st=function(e){if("loading"===document.readyState)return"loading";var t=ot();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},ct=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},lt=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var r=e,i=r.id?"#"+r.id:ct(r)+(r.classList&&r.classList.value&&r.classList.value.trim()&&r.classList.value.trim().length?"."+r.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},ut=-1,ft=function(e){addEventListener("pageshow",(function(t){t.persisted&&(ut=t.timeStamp,e(t))}),!0)},dt=function(){var e=ot();return e&&e.activationStart||0},pt=function(e,t){var n=ot(),r="navigate";return ut>=0?r="back-forward-cache":n&&(document.prerendering||dt()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},ht=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},gt=function(e,t,n,r){var i,a;return function(o){t.value>=0&&(o||r)&&((a=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=a,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},mt=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},bt=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},vt=function(e){var t=!1;return function(){t||(e(),t=!0)}},yt=-1,_t=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},wt=function(e){"hidden"===document.visibilityState&&yt>-1&&(yt="visibilitychange"===e.type?e.timeStamp:0,St())},Et=function(){addEventListener("visibilitychange",wt,!0),addEventListener("prerenderingchange",wt,!0)},St=function(){removeEventListener("visibilitychange",wt,!0),removeEventListener("prerenderingchange",wt,!0)},It=function(){return yt<0&&(yt=_t(),Et(),ft((function(){setTimeout((function(){yt=_t(),Et()}),0)}))),{get firstHiddenTime(){return yt}}},Tt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},Ct=[1800,3e3],At=[.1,.25],Dt=function(e,t){!function(e,t){t=t||{},function(e,t){t=t||{},Tt((function(){var n,r=It(),i=pt("FCP"),a=ht("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-dt(),0),i.entries.push(e),n(!0)))}))}));a&&(n=gt(e,i,Ct,t.reportAllChanges),ft((function(r){i=pt("FCP"),n=gt(e,i,Ct,t.reportAllChanges),mt((function(){i.value=performance.now()-r.timeStamp,n(!0)}))})))}))}(vt((function(){var n,r=pt("CLS",0),i=0,a=[],o=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=a[0],n=a[a.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,a.push(e)):(i=e.value,a=[e])}})),i>r.value&&(r.value=i,r.entries=a,n())},s=ht("layout-shift",o);s&&(n=gt(e,r,At,t.reportAllChanges),bt((function(){o(s.takeRecords()),n(!0)})),ft((function(){i=0,r=pt("CLS",0),n=gt(e,r,At,t.reportAllChanges),mt((function(){return n()}))})),setTimeout(n,0))})))}((function(t){var n=function(e){var t,n={};if(e.entries.length){var r=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(r&&r.sources&&r.sources.length){var i=(t=r.sources).find((function(e){return e.node&&1===e.node.nodeType}))||t[0];i&&(n={largestShiftTarget:lt(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:st(r.startTime)})}}return Object.assign(e,{attribution:n})}(t);e(n)}),t)},kt=0,Nt=1/0,Mt=0,Ot=function(e){e.forEach((function(e){e.interactionId&&(Nt=Math.min(Nt,e.interactionId),Mt=Math.max(Mt,e.interactionId),kt=Mt?(Mt-Nt)/7+1:0)}))},Lt=function(){return it?kt:performance.interactionCount||0},Pt=function(){"interactionCount"in performance||it||(it=ht("event",Ot,{type:"event",buffered:!0,durationThreshold:0}))},Bt=[],Rt=new Map,Ft=0,$t=[],Ut=function(e){if($t.forEach((function(t){return t(e)})),e.interactionId||"first-input"===e.entryType){var t=Bt[Bt.length-1],n=Rt.get(e.interactionId);if(n||Bt.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};Rt.set(r.id,r),Bt.push(r)}Bt.sort((function(e,t){return t.latency-e.latency})),Bt.length>10&&Bt.splice(10).forEach((function(e){return Rt.delete(e.id)}))}}},jt=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=vt(e),"hidden"===document.visibilityState?e():(n=t(e),bt(e)),n},xt=[200,500],zt=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Tt((function(){var n;Pt();var r,i=pt("INP"),a=function(e){jt((function(){e.forEach(Ut);var t=function(){var e=Math.min(Bt.length-1,Math.floor((Lt()-Ft)/50));return Bt[e]}();t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())}))},o=ht("event",a,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=gt(e,i,xt,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),bt((function(){a(o.takeRecords()),r(!0)})),ft((function(){Ft=Lt(),Bt.length=0,Rt.clear(),i=pt("INP"),r=gt(e,i,xt,t.reportAllChanges)})))})))},Vt=[],Ht=[],qt=0,Wt=new WeakMap,Kt=new Map,Jt=-1,Gt=function(e){Vt=Vt.concat(e),Xt()},Xt=function(){Jt<0&&(Jt=jt(Yt))},Yt=function(){Kt.size>10&&Kt.forEach((function(e,t){Rt.has(t)||Kt.delete(t)}));var e=Bt.map((function(e){return Wt.get(e.entries[0])})),t=Ht.length-50;Ht=Ht.filter((function(n,r){return r>=t||e.includes(n)}));for(var n=new Set,r=0;r<Ht.length;r++){var i=Ht[r];Zt(i.startTime,i.processingEnd).forEach((function(e){n.add(e)}))}var a=Vt.length-1-50;Vt=Vt.filter((function(e,t){return e.startTime>qt&&t>a||n.has(e)})),Jt=-1};$t.push((function(e){e.interactionId&&e.target&&!Kt.has(e.interactionId)&&Kt.set(e.interactionId,e.target)}),(function(e){var t,n=e.startTime+e.duration;qt=Math.max(qt,e.processingEnd);for(var r=Ht.length-1;r>=0;r--){var i=Ht[r];if(Math.abs(n-i.renderTime)<=8){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},Ht.push(t)),(e.interactionId||"first-input"===e.entryType)&&Wt.set(e,t),Xt()}));var Zt=function(e,t){for(var n,r=[],i=0;n=Vt[i];i++)if(!(n.startTime+n.duration<e)){if(n.startTime>t)break;r.push(n)}return r},Qt=function(e,t){at||(at=ht("long-animation-frame",Gt)),zt((function(t){var n=function(e){var t=e.entries[0],n=Wt.get(t),r=t.processingStart,i=n.processingEnd,a=n.entries.sort((function(e,t){return e.processingStart-t.processingStart})),o=Zt(t.startTime,i),s=e.entries.find((function(e){return e.target})),c=s&&s.target||Kt.get(t.interactionId),l=[t.startTime+t.duration,i].concat(o.map((function(e){return e.startTime+e.duration}))),u=Math.max.apply(Math,l),f={interactionTarget:lt(c),interactionTargetElement:c,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:u,processedEventEntries:a,longAnimationFrameEntries:o,inputDelay:r-t.startTime,processingDuration:i-r,presentationDelay:Math.max(u-i,0),loadState:st(t.startTime)};return Object.assign(e,{attribution:f})}(t);e(n)}),t)},en=[2500,4e3],tn={},nn=function(e,t){!function(e,t){t=t||{},Tt((function(){var n,r=It(),i=pt("LCP"),a=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-dt(),0),i.entries=[e],n())}))},o=ht("largest-contentful-paint",a);if(o){n=gt(e,i,en,t.reportAllChanges);var s=vt((function(){tn[i.id]||(a(o.takeRecords()),o.disconnect(),tn[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return jt(s)}),{once:!0,capture:!0})})),bt(s),ft((function(r){i=pt("LCP"),n=gt(e,i,en,t.reportAllChanges),mt((function(){i.value=performance.now()-r.timeStamp,tn[i.id]=!0,n(!0)}))}))}}))}((function(t){var n=function(e){var t={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadDuration:0,elementRenderDelay:e.value};if(e.entries.length){var n=ot();if(n){var r=n.activationStart||0,i=e.entries[e.entries.length-1],a=i.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===i.url}))[0],o=Math.max(0,n.responseStart-r),s=Math.max(o,a?(a.requestStart||a.startTime)-r:0),c=Math.max(s,a?a.responseEnd-r:0),l=Math.max(c,i.startTime-r);t={element:lt(i.element),timeToFirstByte:o,resourceLoadDelay:s-o,resourceLoadDuration:c-s,elementRenderDelay:l-c,navigationEntry:n,lcpEntry:i},i.url&&(t.url=i.url),a&&(t.lcpResourceEntry=a)}}return Object.assign(e,{attribution:t})}(t);e(n)}),t)};const rn="@firebase/installations",an="0.6.19",on=1e4,sn=`w:${an}`,cn="FIS_v2",ln=36e5,un=new h("installations","Installations",{"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."});function fn(e){return e instanceof p&&e.code.includes("request-failed")}
427
427
  /**
428
428
  * @license
429
429
  * Copyright 2019 Google LLC
@@ -963,5 +963,5 @@ var ii;(ii=rt).INTERNAL.registerComponent(new y("performance-compat",ri,"PUBLIC"
963
963
  * See the License for the specific language governing permissions and
964
964
  * limitations under the License.
965
965
  */
966
- return rt.registerVersion("firebase","12.6.0-20251113021847","compat-lite"),rt}));
966
+ return rt.registerVersion("firebase","12.6.0","compat-lite"),rt}));
967
967
  //# sourceMappingURL=firebase-performance-standalone-compat.js.map