1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[70415,30469],{30469:function(e,t,n){n.r(t),n.d(t,{IMPERSONATION_TAB_KEY:function(){return f},IS_IMPERSONATION_TAB:function(){return b},LOGIN_AS_PATH:function(){return v},auth:function(){return m},clearImpersonationTab:function(){return h},db:function(){return E},getClientStorage:function(){return y}});var r,o,i=n(738),s=n(82148),a=n(56943),c=n(96485),u=n(31764),d=n(40257);let l=["bottlservice.com","www.bottlservice.com","distryb.com","www.distryb.com","app.distryb.com"],p={apiKey:"AIzaSyAW2rEazIreyTsZLAWN7z7LOTv_b2oKbgk",authDomain:function(){let e=window.location.hostname;return l.includes(e)?e:"bottlservice-prod.firebaseapp.com"}(),projectId:"bottlservice-prod",storageBucket:"bottlservice-prod.firebasestorage.app",messagingSenderId:"1083494176522",appId:"1:1083494176522:web:373bb45cbcfaac06f84cf3"},f="distryb_login_as_tab",v="/auth/login-as",w="login-as",b=function(){try{if("1"===window.sessionStorage.getItem(f))return!0;if(window.location.pathname.replace(/\/+$/,"")===v)return window.sessionStorage.setItem(f,"1"),!0}catch(e){}return!1}();function h(){try{window.sessionStorage.removeItem(f)}catch(e){}}let I=null!==(o=(0,i.C6)().find(e=>"[DEFAULT]"===e.name))&&void 0!==o?o:(0,i.ZF)(p),g=b?null!==(r=(0,i.C6)().find(e=>e.name===w))&&void 0!==r?r:(0,i.ZF)(p,w):I;{let e=d.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY,t="1"===d.env.NEXT_PUBLIC_APPCHECK_ENABLED,n=window.location.hostname;if(e&&t&&!("localhost"===n||"127.0.0.1"===n||"[::1]"===n)){window.addEventListener("unhandledrejection",e=>{var t,n,r;let o=String(null!==(r=null!==(n=null===(t=e.reason)||void 0===t?void 0:t.message)&&void 0!==n?n:e.reason)&&void 0!==r?r:"");/recaptcha|app-?check/i.test(o)&&(console.warn("[app-check] attestation unavailable on this host â continuing without it:",o),e.preventDefault())});try{(0,u.yu)(g,{provider:new u.z9(e),isTokenAutoRefreshEnabled:!0})}catch(e){}}}let m=function(e){if(!b)return(0,s.getAuth)(e);try{return(0,s.initializeAuth)(e,{persistence:s.browserSessionPersistence,popupRedirectResolver:s.browserPopupRedirectResolver})}catch(t){return(0,s.getAuth)(e)}}(g),E=(0,a.getFirestore)(g),D=null;function y(){return D||(D=(0,c.cF)(g)),D}},21542:function(e,t,n){let r,o,i;n.r(t),n.d(t,{deleteDB:function(){return b},openDB:function(){return w},unwrap:function(){return v},wrap:function(){return f}});let s=(e,t)=>t.some(t=>e instanceof t),a=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,l=new WeakMap,p={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return c.get(e);if("objectStoreNames"===t)return e.objectStoreNames||u.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return f(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function f(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(f(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)});return t.then(t=>{t instanceof IDBCursor&&a.set(t,e)}).catch(()=>{}),l.set(t,e),t}(e);if(d.has(e))return d.get(e);let n="function"==typeof(t=e)?t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(o||(o=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(v(this),e),f(a.get(this))}:function(...e){return f(t.apply(v(this),e))}:function(e,...n){let r=t.call(v(this),e,...n);return u.set(r,e.sort?e.sort():[e]),f(r)}:(t instanceof IDBTransaction&&function(e){if(c.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)});c.set(e,t)}(t),s(t,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,p):t;return n!==e&&(d.set(e,n),l.set(n,e)),n}let v=e=>l.get(e);function w(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){let s=indexedDB.open(e,t),a=f(s);return r&&s.addEventListener("upgradeneeded",e=>{r(f(s.result),e.oldVersion,e.newVersion,f(s.transaction),e)}),n&&s.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{i&&e.addEventListener("close",()=>i()),o&&e.addEventListener("versionchange",e=>o(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}function b(e,{blocked:t}={}){let n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",e=>t(e.oldVersion,e)),f(n).then(()=>void 0)}let h=["get","getKey","getAll","getAllKeys","count"],I=["put","add","delete","clear"],g=new Map;function m(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(g.get(t))return g.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,o=I.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||h.includes(n)))return;let i=async function(e,...t){let i=this.transaction(e,o?"readwrite":"readonly"),s=i.store;
1return r&&(s=s.index(t.shift())),(await Promise.all([s[n](...t),o&&i.done]))[0]};return g.set(t,i),i}p={...i=p,get:(e,t,n)=>m(e,t)||i.get(e,t,n),has:(e,t)=>!!m(e,t)||i.has(e,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.