PageSourceSearch

https://vcgmarkets.com/_next/static/chunks/2926-21561da15e4e1776.js

js vcgmarkets.com collected 2026-10-02 15:16:05 UTC 21,098 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2926],{72926:function(t,e,i){i.d(e,{xS:function(){return tw},sN:function(){return ti},NA:function(){return tr}});var a=i(21796),s=i(87607),r=i(35339),n=i(90531),o=i(84996);let c="@firebase/installations",l="0.6.17",u=`w:${l}`,g="FIS_v2",h=new s.LL("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 f(t){return t instanceof s.ZR&&t.code.includes("request-failed")}function p({projectId:t}){return`https://firebaseinstallations.googleapis.com/v1/projects/${t}/installations`}function d(t){return{token:t.token,requestStatus:2,expiresIn:Number(t.expiresIn.replace("s","000")),creationTime:Date.now()}}async function m(t,e){let i=(await e.json()).error;return h.create("request-failed",{requestName:t,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}function w({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}async function C(t){let e=await t();return e.status>=500&&e.status<600?t():e}async function S({appConfig:t,heartbeatServiceProvider:e},{fid:i}){let a=p(t),s=w(t),r=e.getImmediate({optional:!0});if(r){let t=await r.getHeartbeatsHeader();t&&s.append("x-firebase-client",t)}let n={method:"POST",headers:s,body:JSON.stringify({fid:i,authVersion:g,appId:t.appId,sdkVersion:u})},o=await C(()=>fetch(a,n));if(o.ok){let t=await o.json();return{fid:t.fid||i,registrationStatus:2,refreshToken:t.refreshToken,authToken:d(t.authToken)}}throw await m("Create Installation",o)}function _(t){return new Promise(e=>{setTimeout(e,t)})}let v=/^[cdef][\w-]{21}$/;function y(t){return`${t.appName}!${t.appId}`}let T=new Map;function b(t,e){let i=y(t);I(i,e),function(t,e){let i=(!F&&"BroadcastChannel"in self&&((F=new BroadcastChannel("[Firebase] FID Change")).onmessage=t=>{I(t.data.key,t.data.fid)}),F);i&&i.postMessage({key:t,fid:e}),0===T.size&&F&&(F.close(),F=null)}(i,e)}function I(t,e){let i=T.get(t);if(i)for(let t of i)t(e)}let F=null,M="firebase-installations-store",E=null;function k(){return E||(E=(0,o.X3)("firebase-installations-database",1,{upgrade:(t,e)=>{0===e&&t.createObjectStore(M)}})),E}async function P(t,e){let i=y(t),a=(await k()).transaction(M,"readwrite"),s=a.objectStore(M),r=await s.get(i);return await s.put(e,i),await a.done,r&&r.fid===e.fid||b(t,e.fid),e}async function j(t){let e=y(t),i=(await k()).transaction(M,"readwrite");await i.objectStore(M).delete(e),await i.done}async function L(t,e){let i=y(t),a=(await k()).transaction(M,"readwrite"),s=a.objectStore(M),r=await s.get(i),n=e(r);return void 0===n?await s.delete(i):await s.put(n,i),await a.done,n&&(!r||r.fid!==n.fid)&&b(t,n.fid),n}async function A(t){let e;let i=await L(t.appConfig,i=>{let a=function(t,e){if(0===e.registrationStatus){if(!navigator.onLine)return{installationEntry:e,registrationPromise:Promise.reject(h.create("app-offline"))};let i={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},a=O(t,i);return{installationEntry:i,registrationPromise:a}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:N(t)}:{installationEntry:e}}(t,D(i||{fid:function(){try{let t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;let e=btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22);return v.test(e)?e:""}catch(t){return""}}(),registrationStatus:0}));return e=a.registrationPromise,a.installationEntry});return""===i.fid?{installationEntry:await e}:{installationEntry:i,registrationPromise:e}}async function O(t,e){try{let i=await S(t,e);return P(t.appConfig,i)}
1catch(i){throw f(i)&&409===i.customData.serverCode?await j(t.appConfig):await P(t.appConfig,{fid:e.fid,registrationStatus:0}),i}}async function N(t){let e=await $(t.appConfig);for(;1===e.registrationStatus;)await _(100),e=await $(t.appConfig);if(0===e.registrationStatus){let{installationEntry:e,registrationPromise:i}=await A(t);return i||e}return e}function $(t){return L(t,t=>{if(!t)throw h.create("installation-not-found");return D(t)})}function D(t){return 1===t.registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:t.fid,registrationStatus:0}:t}async function q({appConfig:t,heartbeatServiceProvider:e},i){let a=function(t,{fid:e}){return`${p(t)}/${e}/authTokens:generate`}(t,i),s=function(t,{refreshToken:e}){let i=w(t);return i.append("Authorization",`${g} ${e}`),i}(t,i),r=e.getImmediate({optional:!0});if(r){let t=await r.getHeartbeatsHeader();t&&s.append("x-firebase-client",t)}let n={method:"POST",headers:s,body:JSON.stringify({installation:{sdkVersion:u,appId:t.appId}})},o=await C(()=>fetch(a,n));if(o.ok)return d(await o.json());throw await m("Generate Auth Token",o)}async function x(t,e=!1){let i;let a=await L(t.appConfig,a=>{var s;if(!U(a))throw h.create("not-registered");let r=a.authToken;if(!e&&2===(s=r).requestStatus&&!function(t){let e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+36e5}(s))return a;if(1===r.requestStatus)return i=R(t,e),a;{if(!navigator.onLine)throw h.create("app-offline");let e=function(t){let e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}(a);return i=K(t,e),e}});return i?await i:a.authToken}async function R(t,e){let i=await z(t.appConfig);for(;1===i.authToken.requestStatus;)await _(100),i=await z(t.appConfig);let a=i.authToken;return 0===a.requestStatus?x(t,e):a}function z(t){return L(t,t=>{var e;if(!U(t))throw h.create("not-registered");return 1===(e=t.authToken).requestStatus&&e.requestTime+1e4<Date.now()?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function K(t,e){try{let i=await q(t,e),a=Object.assign(Object.assign({},e),{authToken:i});return await P(t.appConfig,a),i}catch(i){if(f(i)&&(401===i.customData.serverCode||404===i.customData.serverCode))await j(t.appConfig);else{let i=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await P(t.appConfig,i)}throw i}}function U(t){return void 0!==t&&2===t.registrationStatus}async function B(t){let{installationEntry:e,registrationPromise:i}=await A(t);
1return i?i.catch(console.error):x(t).catch(console.error),e.fid}async function H(t,e=!1){return await V(t),(await x(t,e)).token}async function V(t){let{registrationPromise:e}=await A(t);e&&await e}function X(t){return h.create("missing-app-config-values",{valueName:t})}let W="installations";(0,a.Xd)(new r.wA(W,t=>{let e=t.getProvider("app").getImmediate(),i=function(t){if(!t||!t.options)throw X("App Configuration");if(!t.name)throw X("App Name");for(let e of["projectId","apiKey","appId"])if(!t.options[e])throw X(e);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}(e),s=(0,a.qX)(e,"heartbeat");return{app:e,appConfig:i,heartbeatServiceProvider:s,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,a.Xd)(new r.wA("installations-internal",t=>{let e=t.getProvider("app").getImmediate(),i=(0,a.qX)(e,W).getImmediate();return{getId:()=>B(i),getToken:t=>H(i,t)}},"PRIVATE")),(0,a.KN)(c,l),(0,a.KN)(c,l,"esm2017");let J="@firebase/remote-config",G="0.6.4";class Z{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}let Y="remote-config",Q=new s.LL("remoteconfig","Remote Config",{"already-initialized":"Remote Config already initialized","registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser","custom-signal-max-allowed-signals":"Setting more than {$maxSignals} custom signals is not supported."}),tt=["1","true","t","yes","y","on"];class te{constructor(t,e=""){this._source=t,this._value=e}asString(){return this._value}asBoolean(){return"static"!==this._source&&tt.indexOf(this._value.toLowerCase())>=0}asNumber(){if("static"===this._source)return 0;let t=Number(this._value);return isNaN(t)&&(t=0),t}getSource(){return this._source}}function ti(t=(0,a.Mq)(),e={}){var i,r;t=(0,s.m9)(t);let n=(0,a.qX)(t,Y);if(n.isInitialized()){let t=n.getOptions();if((0,s.vZ)(t,e))return n.getImmediate();throw Q.create("already-initialized")}n.initialize({options:e});let o=n.getImmediate();return e.initialFetchResponse&&(o._initializePromise=Promise.all([o._storage.setLastSuccessfulFetchResponse(e.initialFetchResponse),o._storage.setActiveConfigEtag((null===(i=e.initialFetchResponse)||void 0===i?void 0:i.eTag)||""),o._storageCache.setLastSuccessfulFetchTimestampMillis(Date.now()),o._storageCache.setLastFetchStatus("success"),o._storageCache.setActiveConfig((null===(r=e.initialFetchResponse)||void 0===r?void 0:r.config)||{})]).then(),o._isInitializationComplete=!0),o}async function ta(t){let e=(0,s.m9)(t),[i,a]=await Promise.all([e._storage.getLastSuccessfulFetchResponse(),e._storage.getActiveConfigEtag()]);return!!i&&!!i.config&&!!i.eTag&&i.eTag!==a&&(await Promise.all([e._storageCache.setActiveConfig(i.config),e._storage.setActiveConfigEtag(i.eTag)]),!0)}async function ts(t){let e=(0,s.m9)(t),i=new Z;setTimeout(async()=>{i.abort()},e.settings.fetchTimeoutMillis);let a=e._storageCache.getCustomSignals();a&&e._logger.debug(`Fetching config with custom signals: ${JSON.stringify(a)}`);try{await e._client.fetch({cacheMaxAgeMillis:e.settings.minimumFetchIntervalMillis,signal:i,customSignals:a}),await e._storageCache.setLastFetchStatus("success")}catch(i){var r;
1let t=(r="fetch-throttle",i instanceof s.ZR&&-1!==i.code.indexOf(r))?"throttle":"failure";throw await e._storageCache.setLastFetchStatus(t),i}}function tr(t,e){let i=(0,s.m9)(t);i._isInitializationComplete||i._logger.debug(`A value was requested for key "${e}" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.`);let a=i._storageCache.getActiveConfig();return a&&void 0!==a[e]?new te("remote",a[e]):i.defaultConfig&&void 0!==i.defaultConfig[e]?new te("default",String(i.defaultConfig[e])):(i._logger.debug(`Returning static value for key "${e}". Define a default or remote value if this is unintentional.`),new te("static"))}class tn{constructor(t,e,i,a){this.client=t,this.storage=e,this.storageCache=i,this.logger=a}isCachedDataFresh(t,e){if(!e)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;let i=Date.now()-e,a=i<=t;return this.logger.debug(`Config fetch cache check. Cache age millis: ${i}. Cache max age millis (minimumFetchIntervalMillis setting): ${t}. Is cache hit: ${a}.`),a}async fetch(t){let[e,i]=await Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(i&&this.isCachedDataFresh(t.cacheMaxAgeMillis,e))return i;t.eTag=i&&i.eTag;let a=await this.client.fetch(t),s=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===a.status&&s.push(this.storage.setLastSuccessfulFetchResponse(a)),await Promise.all(s),a}}class to{constructor(t,e,i,a,s,r){this.firebaseInstallations=t,this.sdkVersion=e,this.namespace=i,this.projectId=a,this.apiKey=s,this.appId=r}async fetch(t){let e,i,a;let[s,r]=await Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),n=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",o=fetch(`${n}/v1/projects/${this.projectId}/namespaces/${this.namespace}:fetch?key=${this.apiKey}`,{method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":t.eTag||"*"},body:JSON.stringify({sdk_version:this.sdkVersion,app_instance_id:s,app_instance_id_token:r,app_id:this.appId,language_code:function(t=navigator){return t.languages&&t.languages[0]||t.language}(),custom_signals:t.customSignals})}),c=new Promise((e,i)=>{t.signal.addEventListener(()=>{let t=Error("The operation was aborted.");t.name="AbortError",i(t)})});try{await Promise.race([o,c]),e=await o}catch(e){let t="fetch-client-network";throw(null==e?void 0:e.name)==="AbortError"&&(t="fetch-timeout"),Q.create(t,{originalErrorMessage:null==e?void 0:e.message})}let l=e.status,u=e.headers.get("ETag")||void 0;if(200===e.status){let t;try{t=await e.json()}catch(t){throw Q.create("fetch-client-parse",{originalErrorMessage:null==t?void 0:t.message})}i=t.entries,a=t.state}if("INSTANCE_STATE_UNSPECIFIED"===a?l=500:"NO_CHANGE"===a?l=304:("NO_TEMPLATE"===a||"EMPTY_CONFIG"===a)&&(i={}),304!==l&&200!==l)throw Q.create("fetch-status",{httpStatus:l});return{status:l,eTag:u,config:i}}}class tc{constructor(t,e){this.client=t,this.storage=e}async fetch(t){let e=await this.storage.getThrottleMetadata()||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(t,e)}async attemptFetch(t,{throttleEndTimeMillis:e,backoffCount:i}){var a;await (a=t.signal,new Promise((t,i)=>{let s=setTimeout(t,Math.max(e-Date.now(),0));a.addEventListener(()=>{clearTimeout(s),i(Q.create("fetch-throttle",{throttleEndTimeMillis:e}))})}));try{let e=await this.client.fetch(t);return await this.storage.deleteThrottleMetadata(),e}catch(a){if(!function(t){if(!(t instanceof s.ZR)||!t.customData)return!1;let e=Number(t.customData.httpStatus);return 429===e||500===e||503===e||504===e}(a))throw a;let e={throttleEndTimeMillis:Date.now()+(0,s.$s)(i),backoffCount:i+1};return await this.storage.setThrottleMetadata(e),this.attemptFetch(t,e)}}}class tl{get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}constructor(t,e,i,a,s){this.app=t,this._client=e,this._storageCache=i,this._storage=a,this._logger=s,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}}function tu(t,e){let i=t.target.error||void 0;return Q.create(e,{originalErrorMessage:i&&(null==i?void 0:i.message)})}let tg="app_namespace_store";class th{getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(t){return this.set("last_fetch_status",t)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(t){return this.set("last_successful_fetch_timestamp_millis",t)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(t){return this.set("last_successful_fetch_response",t)}getActiveConfig(){return this.get("active_config")}setActiveConfig(t){return this.set("active_config",t)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(t){return this.set("active_config_etag",t)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(t){return this.set("throttle_metadata",t)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}getCustomSignals(){return this.get("custom_signals")}}class tf extends th{constructor(t,e,i,a=new Promise((t,e)=>{try{let i=indexedDB.open("firebase_remote_config",1);i.onerror=t=>{e(tu(t,"storage-open"))},i.onsuccess=e=>{t(e.target.result)},i.onupgradeneeded=t=>{let e=t.target.result;0===t.oldVersion&&e.createObjectStore(tg,{keyPath:"compositeKey"})}}catch(t){e(Q.create("storage-open",{originalErrorMessage:null==t?void 0:t.message}))}})){super(),this.appId=t,this.appName=e,this.namespace=i,this.openDbPromise=a}async setCustomSignals(t){let e=(await this.openDbPromise).transaction([tg],"readwrite"),i=td(t,await this.getWithTransaction("custom_signals",e)||{});return await this.setWithTransaction("custom_signals",i,e),i}async getWithTransaction(t,e){return new Promise((i,a)=>{let s=e.objectStore(tg),r=this.createCompositeKey(t);try{let t=s.get(r);t.onerror=t=>{a(tu(t,"storage-get"))},t.onsuccess=t=>{let e=t.target.result;e?i(e.value):i(void 0)}}catch(t){a(Q.create("storage-get",{originalErrorMessage:null==t?void 0:t.message}))}})}
1async setWithTransaction(t,e,i){return new Promise((a,s)=>{let r=i.objectStore(tg),n=this.createCompositeKey(t);try{let t=r.put({compositeKey:n,value:e});t.onerror=t=>{s(tu(t,"storage-set"))},t.onsuccess=()=>{a()}}catch(t){s(Q.create("storage-set",{originalErrorMessage:null==t?void 0:t.message}))}})}async get(t){let e=(await this.openDbPromise).transaction([tg],"readonly");return this.getWithTransaction(t,e)}async set(t,e){let i=(await this.openDbPromise).transaction([tg],"readwrite");return this.setWithTransaction(t,e,i)}async delete(t){let e=await this.openDbPromise;return new Promise((i,a)=>{let s=e.transaction([tg],"readwrite").objectStore(tg),r=this.createCompositeKey(t);try{let t=s.delete(r);t.onerror=t=>{a(tu(t,"storage-delete"))},t.onsuccess=()=>{i()}}catch(t){a(Q.create("storage-delete",{originalErrorMessage:null==t?void 0:t.message}))}})}createCompositeKey(t){return[this.appId,this.appName,this.namespace,t].join()}}class tp extends th{constructor(){super(...arguments),this.storage={}}async get(t){return Promise.resolve(this.storage[t])}async set(t,e){return this.storage[t]=e,Promise.resolve(void 0)}async delete(t){return this.storage[t]=void 0,Promise.resolve()}async setCustomSignals(t){let e=this.storage.custom_signals||{};return this.storage.custom_signals=td(t,e),Promise.resolve(this.storage.custom_signals)}}function td(t,e){let i=Object.fromEntries(Object.entries(Object.assign(Object.assign({},e),t)).filter(([t,e])=>null!==e).map(([t,e])=>"number"==typeof e?[t,e.toString()]:[t,e]));if(Object.keys(i).length>100)throw Q.create("custom-signal-max-allowed-signals",{maxSignals:100});return i}class tm{constructor(t){this.storage=t}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}getCustomSignals(){return this.customSignals}async loadFromStorage(){let t=this.storage.getLastFetchStatus(),e=this.storage.getLastSuccessfulFetchTimestampMillis(),i=this.storage.getActiveConfig(),a=this.storage.getCustomSignals(),s=await t;s&&(this.lastFetchStatus=s);let r=await e;r&&(this.lastSuccessfulFetchTimestampMillis=r);let n=await i;n&&(this.activeConfig=n);let o=await a;o&&(this.customSignals=o)}setLastFetchStatus(t){return this.lastFetchStatus=t,this.storage.setLastFetchStatus(t)}setLastSuccessfulFetchTimestampMillis(t){return this.lastSuccessfulFetchTimestampMillis=t,this.storage.setLastSuccessfulFetchTimestampMillis(t)}setActiveConfig(t){return this.activeConfig=t,this.storage.setActiveConfig(t)}async setCustomSignals(t){this.customSignals=await this.storage.setCustomSignals(t)}}async function tw(t){return t=(0,s.m9)(t),await ts(t),ta(t)}(0,a.Xd)(new r.wA(Y,function(t,{options:e}){let i=t.getProvider("app").getImmediate(),r=t.getProvider("installations-internal").getImmediate(),{projectId:o,apiKey:c,appId:l}=i.options;if(!o)throw Q.create("registration-project-id");if(!c)throw Q.create("registration-api-key");if(!l)throw Q.create("registration-app-id");let u=(null==e?void 0:e.templateId)||"firebase",g=(0,s.hl)()?new tf(l,i.name,u):new tp,h=new tm(g),f=new n.Yd(J);f.logLevel=n.in.ERROR;let p=new tl(i,new tn(new tc(new to(r,a.Jn,u,o,c,l),g),g,h,f),h,g,f);return function(t){let e=(0,s.m9)(t);e._initializePromise||(e._initializePromise=e._storageCache.loadFromStorage().then(()=>{e._isInitializationComplete=!0})),e._initializePromise}(p),p},"PUBLIC").setMultipleInstances(!0)),(0,a.KN)(J,G),(0,a.KN)(J,G,"esm2017")}}]);

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.