From dc9a9c5ac7690bb331954d85593cf49cdadc23ea Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Tue, 4 Mar 2025 22:57:14 +0200 Subject: [PATCH] --- Target/.vite/manifest.json | 6 +++--- ...> Base.astro_astro_type_script_index_0_lang.BlN5aCla.js} | 2 +- ...tRouter.astro_astro_type_script_index_0_lang.Bf0-8Hxx.js | 1 + ...tRouter.astro_astro_type_script_index_0_lang.DElhdQ9j.js | 1 - .../_astro/{index.esm.DMCO24_P.js => index.esm.CH6WyvPW.js} | 2 +- Target/index.html | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename Target/_astro/{Base.astro_astro_type_script_index_0_lang.Bg-CVTnE.js => Base.astro_astro_type_script_index_0_lang.BlN5aCla.js} (94%) create mode 100644 Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.Bf0-8Hxx.js delete mode 100644 Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DElhdQ9j.js rename Target/_astro/{index.esm.DMCO24_P.js => index.esm.CH6WyvPW.js} (99%) diff --git a/Target/.vite/manifest.json b/Target/.vite/manifest.json index ffb0b3b9..56b5b099 100644 --- a/Target/.vite/manifest.json +++ b/Target/.vite/manifest.json @@ -1,6 +1,6 @@ { "Source/Layout/Base.astro?astro&type=script&index=0&lang.ts": { - "file": "_astro/Base.astro_astro_type_script_index_0_lang.Bg-CVTnE.js", + "file": "_astro/Base.astro_astro_type_script_index_0_lang.BlN5aCla.js", "name": "Base.astro_astro_type_script_index_0_lang", "src": "Source/Layout/Base.astro?astro&type=script&index=0&lang.ts", "isEntry": true, @@ -22,7 +22,7 @@ ] }, "node_modules/astro/components/ClientRouter.astro?astro&type=script&index=0&lang.ts": { - "file": "_astro/ClientRouter.astro_astro_type_script_index_0_lang.DElhdQ9j.js", + "file": "_astro/ClientRouter.astro_astro_type_script_index_0_lang.Bf0-8Hxx.js", "name": "ClientRouter.astro_astro_type_script_index_0_lang", "src": "node_modules/astro/components/ClientRouter.astro?astro&type=script&index=0&lang.ts", "isEntry": true, @@ -31,7 +31,7 @@ ] }, "node_modules/firebase/app/dist/esm/index.esm.js": { - "file": "_astro/index.esm.DMCO24_P.js", + "file": "_astro/index.esm.CH6WyvPW.js", "name": "index.esm", "src": "node_modules/firebase/app/dist/esm/index.esm.js", "isDynamicEntry": true diff --git a/Target/_astro/Base.astro_astro_type_script_index_0_lang.Bg-CVTnE.js b/Target/_astro/Base.astro_astro_type_script_index_0_lang.BlN5aCla.js similarity index 94% rename from Target/_astro/Base.astro_astro_type_script_index_0_lang.Bg-CVTnE.js rename to Target/_astro/Base.astro_astro_type_script_index_0_lang.BlN5aCla.js index 2f7b635a..08baaf9a 100644 --- a/Target/_astro/Base.astro_astro_type_script_index_0_lang.Bg-CVTnE.js +++ b/Target/_astro/Base.astro_astro_type_script_index_0_lang.BlN5aCla.js @@ -1 +1 @@ -const e={};await((function(t,n){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),o=t?.nonce||t?.getAttribute("nonce");r=Promise.allSettled(n.map((t=>{if((t=function(e){return"/~nikola/"+e}(t))in e)return;e[t]=!0;const n=t.endsWith(".css"),r=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${r}`))return;const i=document.createElement("link");return i.rel=n?"stylesheet":"modulepreload",n||(i.as="script"),i.crossOrigin="",i.href=t,o&&i.setAttribute("nonce",o),document.head.appendChild(i),n?new Promise(((e,n)=>{i.addEventListener("load",e),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then((e=>{for(const t of e||[])"rejected"===t.status&&o(t.reason);return t().catch(o)}))}))((async()=>{const{initializeApp:e}=await import("./index.esm.DMCO24_P.js");return{initializeApp:e}}),[]).initializeApp({apiKey:"",appId:"",authDomain:"",databaseURL:"",measurementId:"",messagingSenderId:"",projectId:"",storageBucket:""}); \ No newline at end of file +const e={};await((function(t,n){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),o=t?.nonce||t?.getAttribute("nonce");r=Promise.allSettled(n.map((t=>{if((t=function(e){return"/~nikola/"+e}(t))in e)return;e[t]=!0;const n=t.endsWith(".css"),r=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${r}`))return;const i=document.createElement("link");return i.rel=n?"stylesheet":"modulepreload",n||(i.as="script"),i.crossOrigin="",i.href=t,o&&i.setAttribute("nonce",o),document.head.appendChild(i),n?new Promise(((e,n)=>{i.addEventListener("load",e),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then((e=>{for(const t of e||[])"rejected"===t.status&&o(t.reason);return t().catch(o)}))}))((async()=>{const{initializeApp:e}=await import("./index.esm.CH6WyvPW.js");return{initializeApp:e}}),[]).initializeApp({apiKey:"",appId:"",authDomain:"",databaseURL:"",measurementId:"",messagingSenderId:"",projectId:"",storageBucket:""}); \ No newline at end of file diff --git a/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.Bf0-8Hxx.js b/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.Bf0-8Hxx.js new file mode 100644 index 00000000..3d4c1d52 --- /dev/null +++ b/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.Bf0-8Hxx.js @@ -0,0 +1 @@ +import{i as t}from"./index.ftVfT69A.js";const e="data-astro-transition-persist",n=new Set;function o(t){const e=t.src?new URL(t.src,location.href).href:t.textContent;return!!n.has(e)||(n.add(e),!1)}const r=({activeElement:t,start:e,end:n})=>{t&&(t.focus(),(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&("number"==typeof e&&(t.selectionStart=e),"number"==typeof n&&(t.selectionEnd=n)))},i=(t,n)=>{const o=t.getAttribute(e),r=o&&n.head.querySelector(`[${e}="${o}"]`);if(r)return r;if(t.matches("link[rel=stylesheet]")){const e=t.getAttribute("href");return n.head.querySelector(`link[rel=stylesheet][href="${e}"]`)}return null},a=t=>{const e=t.dataset.astroTransitionPersistProps;return null==e||"false"===e},s=(t,e)=>t.getAttribute("props")===e.getAttribute("props"),l=t=>{!function(t){for(const e of t.scripts)!e.hasAttribute("data-astro-rerun")&&o(e)&&(e.dataset.astroExec="")}(t),function(t){const e=document.documentElement,n=[...e.attributes].filter((({name:t})=>(e.removeAttribute(t),t.startsWith("data-astro-"))));[...t.documentElement.attributes,...n].forEach((({name:t,value:n})=>e.setAttribute(t,n)))}(t),function(t){for(const e of Array.from(document.head.children)){const n=i(e,t);n?n.remove():e.remove()}document.head.append(...t.head.children)}(t);const n=(()=>{const t=document.activeElement;if(t?.closest(`[${e}]`)){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){const e=t.selectionStart,n=t.selectionEnd;return()=>r({activeElement:t,start:e,end:n})}return()=>r({activeElement:t})}return()=>r({activeElement:null})})();!function(t,n){n.replaceWith(t);for(const o of n.querySelectorAll(`[${e}]`)){const n=o.getAttribute(e),r=t.querySelector(`[${e}="${n}"]`);r&&(r.replaceWith(o),"astro-island"===r.localName&&a(o)&&!s(o,r)&&(o.setAttribute("ssr",""),o.setAttribute("props",r.getAttribute("props"))))}}(t.body,document.body),n()};class c extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(t,e,n,o,r,i,a,s,l,c){super(t,e),this.from=n,this.to=o,this.direction=r,this.navigationType=i,this.sourceElement=a,this.info=s,this.newDocument=l,this.signal=c,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class u extends c{formData;loader;constructor(t,e,n,o,r,i,a,s,l,c){super("astro:before-preparation",{cancelable:!0},t,e,n,o,r,i,a,s),this.formData=l,this.loader=c.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class d extends c{direction;viewTransition;swap;constructor(t,e){super("astro:before-swap",void 0,t.from,t.to,t.direction,t.navigationType,t.sourceElement,t.info,t.newDocument,t.signal),this.direction=t.direction,this.viewTransition=e,this.swap=()=>l(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function m(t,e,n,o,r,i,a,s,l){const c=new u(t,e,n,o,r,i,window.document,a,s,l);return document.dispatchEvent(c)&&(await c.loader(),c.defaultPrevented||(document.dispatchEvent(new Event("astro:after-preparation")),"traverse"!==c.navigationType&&p({scrollX:scrollX,scrollY:scrollY}))),c}const f=history.pushState.bind(history),h=history.replaceState.bind(history),p=t=>{history.state&&(history.scrollRestoration="manual",h({...history.state,...t},""))},v=!!document.startViewTransition,b=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),w=(t,e)=>t.pathname===e.pathname&&t.search===e.search;let y,g,E;const T=t=>document.dispatchEvent(new Event(t)),A=()=>T("astro:page-load"),S="data-astro-transition-persist",L="data-astro-transition",D="data-astro-transition-fallback";let x,k=0;function P(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}history.state?(k=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):b()&&(h({index:k,scrollX:scrollX,scrollY:scrollY},""),history.scrollRestoration="manual");const X=(t,e,n,o,r)=>{const i=w(e,t),a=document.title;document.title=o;let s=!1;if(t.href!==location.href&&!r)if("replace"===n.history){const e=history.state;h({...n.state,index:e.index,scrollX:e.scrollX,scrollY:e.scrollY},"",t.href)}else f({...n.state,index:++k,scrollX:0,scrollY:0},"",t.href);if(document.title=a,E=t,i||(scrollTo({left:0,top:0,behavior:"instant"}),s=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(t.hash){history.scrollRestoration="auto";const e=history.state;location.href=t.href,history.state||(h(e,""),i&&window.dispatchEvent(new PopStateEvent("popstate")))}else s||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};async function Y(t,e,n,o,r){async function i(t){const e=document.getAnimations();document.documentElement.setAttribute(D,t);const n=document.getAnimations().filter((t=>!e.includes(t)&&!function(t){const e=t.effect;return!!(e&&e instanceof KeyframeEffect&&e.target)&&"infinite"===window.getComputedStyle(e.target,e.pseudoElement).animationIterationCount}(t)));return Promise.allSettled(n.map((t=>t.finished)))}if("animate"===r&&!n.transitionSkipped&&!t.signal.aborted)try{await i("old")}catch{}const a=document.title,s=function(t,e){const n=new d(t,e);return document.dispatchEvent(n),n.swap(),n}(t,n.viewTransition);X(s.to,s.from,e,a,o),T("astro:after-swap"),"animate"===r&&(n.transitionSkipped||s.signal.aborted?n.viewTransitionFinished():i("new").finally((()=>n.viewTransitionFinished())))}async function R(t,e,n,o,r){const i=(y?.controller.abort(),y={controller:new AbortController});if(!b()||location.origin!==n.origin)return i===y&&(y=void 0),void(location.href=n.href);const a=r?"traverse":"replace"===o.history?"replace":"push";if("traverse"!==a&&p({scrollX:scrollX,scrollY:scrollY}),w(e,n)&&("back"!==t&&n.hash||"back"===t&&e.hash))return X(n,e,o,document.title,r),void(i===y&&(y=void 0));const s=await m(e,n,t,a,o.sourceElement,o.info,i.controller.signal,o.formData,(async function(t){const n=t.to.href,o={signal:t.signal};if(t.formData){o.method="POST";const n=t.sourceElement instanceof HTMLFormElement?t.sourceElement:t.sourceElement instanceof HTMLElement&&"form"in t.sourceElement?t.sourceElement.form:t.sourceElement?.closest("form");o.body=void 0!==e&&"application/x-www-form-urlencoded"===Reflect.get(HTMLFormElement.prototype,"attributes",n).getNamedItem("enctype")?.value?new URLSearchParams(t.formData):t.formData}const r=await async function(t,e){try{const n=await fetch(t,e),o=(n.headers.get("content-type")??"").split(";",1)[0].trim();return"text/html"!==o&&"application/xhtml+xml"!==o?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:o}}catch{return null}}(n,o);if(null===r)return void t.preventDefault();if(r.redirected){const e=new URL(r.redirected);if(e.origin!==t.to.origin)return void t.preventDefault();t.to=e}if(x??=new DOMParser,t.newDocument=x.parseFromString(r.html,r.mediaType),t.newDocument.querySelectorAll("noscript").forEach((t=>t.remove())),!t.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!t.formData)return void t.preventDefault();const i=function(t){const e=[];for(const n of t.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${S}="${n.getAttribute(S)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const t=document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("as","style"),t.setAttribute("href",n.getAttribute("href")),e.push(new Promise((e=>{["load","error"].forEach((n=>t.addEventListener(n,e))),document.head.append(t)})))}return e}(t.newDocument);i.length&&!t.signal.aborted&&await Promise.all(i)}));if(s.defaultPrevented||s.signal.aborted)return i===y&&(y=void 0),void(s.signal.aborted||(location.href=n.href));const l=await async function(){if(g&&g.viewTransition){try{g.viewTransition.skipTransition()}catch{}try{await g.viewTransition.updateCallbackDone}catch{}}return g={transitionSkipped:!1}}();if(s.signal.aborted)i===y&&(y=void 0);else{if(document.documentElement.setAttribute(L,s.direction),v)l.viewTransition=document.startViewTransition((async()=>await Y(s,o,l,r)));else{const t=(async()=>{await Promise.resolve(),await Y(s,o,l,r,P())})();l.viewTransition={updateCallbackDone:t,ready:t,finished:new Promise((t=>l.viewTransitionFinished=t)),skipTransition:()=>{l.transitionSkipped=!0,document.documentElement.removeAttribute(D)}}}l.viewTransition?.updateCallbackDone.finally((async()=>{await function(){let t=Promise.resolve();for(const e of document.getElementsByTagName("script")){if(""===e.dataset.astroExec)continue;const n=e.getAttribute("type");if(n&&"module"!==n&&"text/javascript"!==n)continue;const o=document.createElement("script");o.innerHTML=e.innerHTML;for(const n of e.attributes){if("src"===n.name){const e=new Promise((t=>{o.onload=o.onerror=t}));t=t.then((()=>e))}o.setAttribute(n.name,n.value)}o.dataset.astroExec="",e.replaceWith(o)}return t}(),A(),(()=>{let t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="astro-route-announcer",document.body.append(t),setTimeout((()=>{let e=document.title||document.querySelector("h1")?.textContent||location.pathname;t.textContent=e}),60)})()})),l.viewTransition?.finished.finally((()=>{l.viewTransition=void 0,l===g&&(g=void 0),i===y&&(y=void 0),document.documentElement.removeAttribute(L),document.documentElement.removeAttribute(D)}));try{await(l.viewTransition?.updateCallbackDone)}catch(t){const e=t;console.log("[astro]",e.name,e.message,e.stack)}}}async function M(t,e){await R("forward",E,new URL(t,location.href),e??{})}const H=()=>{!history.state||scrollX===history.state.scrollX&&scrollY===history.state.scrollY||p({scrollX:scrollX,scrollY:scrollY})};if(v||"none"!==P())if(E=new URL(location.href),addEventListener("popstate",(function(t){if(!b()&&t.state)return void location.reload();if(null===t.state)return;const e=history.state,n=e.index,o=n>k?"forward":"back";k=n,R(o,E,new URL(location.href),{},e)})),addEventListener("load",A),"onscrollend"in window)addEventListener("scrollend",H);else{let t,e,n,o;const r=()=>o!==history.state?.index?(clearInterval(t),void(t=void 0)):e===scrollY&&n===scrollX?(clearInterval(t),t=void 0,void H()):(e=scrollY,void(n=scrollX));addEventListener("scroll",(()=>{void 0===t&&(o=history.state?.index,e=scrollY,n=scrollX,t=window.setInterval(r,50))}),{passive:!0})}for(const t of document.getElementsByTagName("script"))o(t);function q(t){return void 0!==t.dataset.astroReload}(v||"none"!==function(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}())&&(document.addEventListener("click",(t=>{let e=t.target;if(t.composed&&(e=t.composedPath()[0]),e instanceof Element&&(e=e.closest("a, area")),!(e instanceof HTMLAnchorElement||e instanceof SVGAElement||e instanceof HTMLAreaElement))return;const n=e instanceof HTMLElement?e.target:e.target.baseVal,o=e instanceof HTMLElement?e.href:e.href.baseVal,r=new URL(o,location.href).origin;q(e)||e.hasAttribute("download")||!e.href||n&&"_self"!==n||r!==location.origin||0!==t.button||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||(t.preventDefault(),M(o,{history:"replace"===e.dataset.astroHistory?"replace":"auto",sourceElement:e}))})),document.addEventListener("submit",(t=>{let e=t.target;if("FORM"!==e.tagName||t.defaultPrevented||q(e))return;const n=e,o=t.submitter,r=new FormData(n,o),i="string"==typeof n.action?n.action:n.getAttribute("action"),a="string"==typeof n.method?n.method:n.getAttribute("method");let s=o?.getAttribute("formaction")??i??location.pathname;const l=o?.getAttribute("formmethod")??a??"get";if("dialog"===l||location.origin!==new URL(s,location.href).origin)return;const c={sourceElement:o??n};if("get"===l){const t=new URLSearchParams(r),e=new URL(s);e.search=t.toString(),s=e.toString()}else c.formData=r;t.preventDefault(),M(s,c)})),t({prefetchAll:!0})); \ No newline at end of file diff --git a/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DElhdQ9j.js b/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DElhdQ9j.js deleted file mode 100644 index 8e699e01..00000000 --- a/Target/_astro/ClientRouter.astro_astro_type_script_index_0_lang.DElhdQ9j.js +++ /dev/null @@ -1 +0,0 @@ -import{i as t}from"./index.ftVfT69A.js";const e="data-astro-transition-persist",n=({activeElement:t,start:e,end:n})=>{t&&(t.focus(),(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&("number"==typeof e&&(t.selectionStart=e),"number"==typeof n&&(t.selectionEnd=n)))},o=(t,n)=>{const o=t.getAttribute(e),r=o&&n.head.querySelector(`[${e}="${o}"]`);if(r)return r;if(t.matches("link[rel=stylesheet]")){const e=t.getAttribute("href");return n.head.querySelector(`link[rel=stylesheet][href="${e}"]`)}return null},r=t=>{const e=t.dataset.astroTransitionPersistProps;return null==e||"false"===e},i=(t,e)=>t.getAttribute("props")===e.getAttribute("props"),a=t=>{!function(t){for(const e of document.scripts)for(const n of t.scripts)if(!n.hasAttribute("data-astro-rerun")&&(!e.src&&e.textContent===n.textContent||e.src&&e.type===n.type&&e.src===n.src)){n.dataset.astroExec="";break}}(t),function(t){const e=document.documentElement,n=[...e.attributes].filter((({name:t})=>(e.removeAttribute(t),t.startsWith("data-astro-"))));[...t.documentElement.attributes,...n].forEach((({name:t,value:n})=>e.setAttribute(t,n)))}(t),function(t){for(const e of Array.from(document.head.children)){const n=o(e,t);n?n.remove():e.remove()}document.head.append(...t.head.children)}(t);const a=(()=>{const t=document.activeElement;if(t?.closest(`[${e}]`)){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){const e=t.selectionStart,o=t.selectionEnd;return()=>n({activeElement:t,start:e,end:o})}return()=>n({activeElement:t})}return()=>n({activeElement:null})})();!function(t,n){n.replaceWith(t);for(const o of n.querySelectorAll(`[${e}]`)){const n=o.getAttribute(e),a=t.querySelector(`[${e}="${n}"]`);a&&(a.replaceWith(o),"astro-island"===a.localName&&r(o)&&!i(o,a)&&(o.setAttribute("ssr",""),o.setAttribute("props",a.getAttribute("props"))))}}(t.body,document.body),a()};class s extends Event{from;to;direction;navigationType;sourceElement;info;newDocument;signal;constructor(t,e,n,o,r,i,a,s,c,l){super(t,e),this.from=n,this.to=o,this.direction=r,this.navigationType=i,this.sourceElement=a,this.info=s,this.newDocument=c,this.signal=l,Object.defineProperties(this,{from:{enumerable:!0},to:{enumerable:!0,writable:!0},direction:{enumerable:!0,writable:!0},navigationType:{enumerable:!0},sourceElement:{enumerable:!0},info:{enumerable:!0},newDocument:{enumerable:!0,writable:!0},signal:{enumerable:!0}})}}class c extends s{formData;loader;constructor(t,e,n,o,r,i,a,s,c,l){super("astro:before-preparation",{cancelable:!0},t,e,n,o,r,i,a,s),this.formData=c,this.loader=l.bind(this,this),Object.defineProperties(this,{formData:{enumerable:!0},loader:{enumerable:!0,writable:!0}})}}class l extends s{direction;viewTransition;swap;constructor(t,e){super("astro:before-swap",void 0,t.from,t.to,t.direction,t.navigationType,t.sourceElement,t.info,t.newDocument,t.signal),this.direction=t.direction,this.viewTransition=e,this.swap=()=>a(this.newDocument),Object.defineProperties(this,{direction:{enumerable:!0},viewTransition:{enumerable:!0},swap:{enumerable:!0,writable:!0}})}}async function u(t,e,n,o,r,i,a,s,l){const u=new c(t,e,n,o,r,i,window.document,a,s,l);return document.dispatchEvent(u)&&(await u.loader(),u.defaultPrevented||(document.dispatchEvent(new Event("astro:after-preparation")),"traverse"!==u.navigationType&&f({scrollX:scrollX,scrollY:scrollY}))),u}const d=history.pushState.bind(history),m=history.replaceState.bind(history),f=t=>{history.state&&(history.scrollRestoration="manual",m({...history.state,...t},""))},h=!!document.startViewTransition,p=()=>!!document.querySelector('[name="astro-view-transitions-enabled"]'),v=(t,e)=>t.pathname===e.pathname&&t.search===e.search;let b,w,y;const g=t=>document.dispatchEvent(new Event(t)),E=()=>g("astro:page-load"),T="data-astro-transition-persist",A="data-astro-transition",S="data-astro-transition-fallback";let D,x=0;function L(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}history.state?(x=history.state.index,scrollTo({left:history.state.scrollX,top:history.state.scrollY})):p()&&(m({index:x,scrollX:scrollX,scrollY:scrollY},""),history.scrollRestoration="manual");const k=(t,e,n,o,r)=>{const i=v(e,t),a=document.title;document.title=o;let s=!1;if(t.href!==location.href&&!r)if("replace"===n.history){const e=history.state;m({...n.state,index:e.index,scrollX:e.scrollX,scrollY:e.scrollY},"",t.href)}else d({...n.state,index:++x,scrollX:0,scrollY:0},"",t.href);if(document.title=a,y=t,i||(scrollTo({left:0,top:0,behavior:"instant"}),s=!0),r)scrollTo(r.scrollX,r.scrollY);else{if(t.hash){history.scrollRestoration="auto";const e=history.state;location.href=t.href,history.state||(m(e,""),i&&window.dispatchEvent(new PopStateEvent("popstate")))}else s||scrollTo({left:0,top:0,behavior:"instant"});history.scrollRestoration="manual"}};async function P(t,e,n,o,r){async function i(t){const e=document.getAnimations();document.documentElement.setAttribute(S,t);const n=document.getAnimations().filter((t=>!e.includes(t)&&!function(t){const e=t.effect;return!!(e&&e instanceof KeyframeEffect&&e.target)&&"infinite"===window.getComputedStyle(e.target,e.pseudoElement).animationIterationCount}(t)));return Promise.allSettled(n.map((t=>t.finished)))}if("animate"===r&&!n.transitionSkipped&&!t.signal.aborted)try{await i("old")}catch{}const a=document.title,s=function(t,e){const n=new l(t,e);return document.dispatchEvent(n),n.swap(),n}(t,n.viewTransition);k(s.to,s.from,e,a,o),g("astro:after-swap"),"animate"===r&&(n.transitionSkipped||s.signal.aborted?n.viewTransitionFinished():i("new").finally((()=>n.viewTransitionFinished())))}async function X(t,e,n,o,r){const i=(b?.controller.abort(),b={controller:new AbortController});if(!p()||location.origin!==n.origin)return i===b&&(b=void 0),void(location.href=n.href);const a=r?"traverse":"replace"===o.history?"replace":"push";if("traverse"!==a&&f({scrollX:scrollX,scrollY:scrollY}),v(e,n)&&("back"!==t&&n.hash||"back"===t&&e.hash))return k(n,e,o,document.title,r),void(i===b&&(b=void 0));const s=await u(e,n,t,a,o.sourceElement,o.info,i.controller.signal,o.formData,(async function(t){const e=t.to.href,n={signal:t.signal};if(t.formData){n.method="POST";const e=t.sourceElement instanceof HTMLFormElement?t.sourceElement:t.sourceElement instanceof HTMLElement&&"form"in t.sourceElement?t.sourceElement.form:t.sourceElement?.closest("form");n.body="application/x-www-form-urlencoded"===e?.attributes.getNamedItem("enctype")?.value?new URLSearchParams(t.formData):t.formData}const o=await async function(t,e){try{const n=await fetch(t,e),o=(n.headers.get("content-type")??"").split(";",1)[0].trim();return"text/html"!==o&&"application/xhtml+xml"!==o?null:{html:await n.text(),redirected:n.redirected?n.url:void 0,mediaType:o}}catch{return null}}(e,n);if(null===o)return void t.preventDefault();if(o.redirected){const e=new URL(o.redirected);if(e.origin!==t.to.origin)return void t.preventDefault();t.to=e}if(D??=new DOMParser,t.newDocument=D.parseFromString(o.html,o.mediaType),t.newDocument.querySelectorAll("noscript").forEach((t=>t.remove())),!t.newDocument.querySelector('[name="astro-view-transitions-enabled"]')&&!t.formData)return void t.preventDefault();const r=function(t){const e=[];for(const n of t.querySelectorAll("head link[rel=stylesheet]"))if(!document.querySelector(`[${T}="${n.getAttribute(T)}"], link[rel=stylesheet][href="${n.getAttribute("href")}"]`)){const t=document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("as","style"),t.setAttribute("href",n.getAttribute("href")),e.push(new Promise((e=>{["load","error"].forEach((n=>t.addEventListener(n,e))),document.head.append(t)})))}return e}(t.newDocument);r.length&&!t.signal.aborted&&await Promise.all(r)}));if(s.defaultPrevented||s.signal.aborted)return i===b&&(b=void 0),void(s.signal.aborted||(location.href=n.href));const c=await async function(){if(w&&w.viewTransition){try{w.viewTransition.skipTransition()}catch{}try{await w.viewTransition.updateCallbackDone}catch{}}return w={transitionSkipped:!1}}();if(s.signal.aborted)i===b&&(b=void 0);else{if(document.documentElement.setAttribute(A,s.direction),h)c.viewTransition=document.startViewTransition((async()=>await P(s,o,c,r)));else{const t=(async()=>{await Promise.resolve(),await P(s,o,c,r,L())})();c.viewTransition={updateCallbackDone:t,ready:t,finished:new Promise((t=>c.viewTransitionFinished=t)),skipTransition:()=>{c.transitionSkipped=!0,document.documentElement.removeAttribute(S)}}}c.viewTransition?.updateCallbackDone.finally((async()=>{await function(){let t=Promise.resolve();for(const e of document.getElementsByTagName("script")){if(""===e.dataset.astroExec)continue;const n=e.getAttribute("type");if(n&&"module"!==n&&"text/javascript"!==n)continue;const o=document.createElement("script");o.innerHTML=e.innerHTML;for(const n of e.attributes){if("src"===n.name){const e=new Promise((t=>{o.onload=o.onerror=t}));t=t.then((()=>e))}o.setAttribute(n.name,n.value)}o.dataset.astroExec="",e.replaceWith(o)}return t}(),E(),(()=>{let t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),t.className="astro-route-announcer",document.body.append(t),setTimeout((()=>{let e=document.title||document.querySelector("h1")?.textContent||location.pathname;t.textContent=e}),60)})()})),c.viewTransition?.finished.finally((()=>{c.viewTransition=void 0,c===w&&(w=void 0),i===b&&(b=void 0),document.documentElement.removeAttribute(A),document.documentElement.removeAttribute(S)}));try{await(c.viewTransition?.updateCallbackDone)}catch(t){const e=t;console.log("[astro]",e.name,e.message,e.stack)}}}async function Y(t,e){await X("forward",y,new URL(t,location.href),e??{})}const R=()=>{!history.state||scrollX===history.state.scrollX&&scrollY===history.state.scrollY||f({scrollX:scrollX,scrollY:scrollY})};if(h||"none"!==L())if(y=new URL(location.href),addEventListener("popstate",(function(t){if(!p()&&t.state)return void location.reload();if(null===t.state)return;const e=history.state,n=e.index,o=n>x?"forward":"back";x=n,X(o,y,new URL(location.href),{},e)})),addEventListener("load",E),"onscrollend"in window)addEventListener("scrollend",R);else{let t,e,n,o;const r=()=>o!==history.state?.index?(clearInterval(t),void(t=void 0)):e===scrollY&&n===scrollX?(clearInterval(t),t=void 0,void R()):(e=scrollY,void(n=scrollX));addEventListener("scroll",(()=>{void 0===t&&(o=history.state?.index,e=scrollY,n=scrollX,t=window.setInterval(r,50))}),{passive:!0})}for(const t of document.getElementsByTagName("script"))t.dataset.astroExec="";function M(t){return void 0!==t.dataset.astroReload}(h||"none"!==function(){const t=document.querySelector('[name="astro-view-transitions-fallback"]');return t?t.getAttribute("content"):"animate"}())&&(document.addEventListener("click",(t=>{let e=t.target;if(t.composed&&(e=t.composedPath()[0]),e instanceof Element&&(e=e.closest("a, area")),!(e instanceof HTMLAnchorElement||e instanceof SVGAElement||e instanceof HTMLAreaElement))return;const n=e instanceof HTMLElement?e.target:e.target.baseVal,o=e instanceof HTMLElement?e.href:e.href.baseVal,r=new URL(o,location.href).origin;M(e)||e.hasAttribute("download")||!e.href||n&&"_self"!==n||r!==location.origin||0!==t.button||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey||t.defaultPrevented||(t.preventDefault(),Y(o,{history:"replace"===e.dataset.astroHistory?"replace":"auto",sourceElement:e}))})),document.addEventListener("submit",(t=>{let e=t.target;if("FORM"!==e.tagName||t.defaultPrevented||M(e))return;const n=e,o=t.submitter,r=new FormData(n,o),i="string"==typeof n.action?n.action:n.getAttribute("action"),a="string"==typeof n.method?n.method:n.getAttribute("method");let s=o?.getAttribute("formaction")??i??location.pathname;const c=o?.getAttribute("formmethod")??a??"get";if("dialog"===c||location.origin!==new URL(s,location.href).origin)return;const l={sourceElement:o??n};if("get"===c){const t=new URLSearchParams(r),e=new URL(s);e.search=t.toString(),s=e.toString()}else l.formData=r;t.preventDefault(),Y(s,l)})),t({prefetchAll:!0})); \ No newline at end of file diff --git a/Target/_astro/index.esm.DMCO24_P.js b/Target/_astro/index.esm.CH6WyvPW.js similarity index 99% rename from Target/_astro/index.esm.DMCO24_P.js rename to Target/_astro/index.esm.CH6WyvPW.js index ed1162e8..06b73187 100644 --- a/Target/_astro/index.esm.DMCO24_P.js +++ b/Target/_astro/index.esm.CH6WyvPW.js @@ -1 +1 @@ -var e={};const t=function(e){const t=[];let r=0;for(let n=0;n>6|192,t[r++]=63&a|128):55296==(64512&a)&&n+1>18|240,t[r++]=a>>12&63|128,t[r++]=a>>6&63|128,t[r++]=63&a|128):(t[r++]=a>>12|224,t[r++]=a>>6&63|128,t[r++]=63&a|128)}return t},r={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t>2,l=(3&a)<<4|s>>4;let d=(15&s)<<2|c>>6,u=63&c;o||(u=64,i||(d=64)),n.push(r[h],r[l],r[d],r[u])}return n.join("")},encodeString(e,r){return this.HAS_NATIVE_SUPPORT&&!r?btoa(e):this.encodeByteArray(t(e),r)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let r=0,n=0;for(;r191&&a<224){const i=e[r++];t[n++]=String.fromCharCode((31&a)<<6|63&i)}else if(a>239&&a<365){const i=((7&a)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(i>>10)),t[n++]=String.fromCharCode(56320+(1023&i))}else{const i=e[r++],s=e[r++];t[n++]=String.fromCharCode((15&a)<<12|(63&i)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,a=[];for(let t=0;t>4;if(a.push(h),64!==o){const e=s<<4&240|o>>2;if(a.push(e),64!==c){const e=o<<6&192|c;a.push(e)}}}return a},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class n extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const a=function(e){return function(e){const n=t(e);return r.encodeByteArray(n,!0)}(e).replace(/\./g,"")},i=()=>function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,s=()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&function(e){try{return r.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}(e[1]);return t&&JSON.parse(t)},o=()=>{try{return i()||(()=>{if("undefined"==typeof process)return;const t=e.__FIREBASE_DEFAULTS__;return t?JSON.parse(t):void 0})()||s()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}};class c{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,r))}}}class h extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,h.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,l.prototype.create)}}class l{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){const r=t[0]||{},n=`${this.service}/${e}`,a=this.errors[e],i=a?function(e,t){return e.replace(d,((e,r)=>{const n=t[r];return null!=n?String(n):`<${r}?>`}))}(a,r):"Error",s=`${this.serviceName}: ${i} (${n}).`;return new h(n,s,r)}}const d=/\{\$([^}]+)}/g;function u(e,t){if(e===t)return!0;const r=Object.keys(e),n=Object.keys(t);for(const a of r){if(!n.includes(a))return!1;const r=e[a],i=t[a];if(f(r)&&f(i)){if(!u(r,i))return!1}else if(r!==i)return!1}for(const e of n)if(!r.includes(e))return!1;return!0}function f(e){return null!==e&&"object"==typeof e}class p{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const g="[DEFAULT]";class b{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new c;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:g})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=g){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=g){return this.instances.has(e)}getOptions(e=g){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(const[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){var r;const n=this.normalizeInstanceIdentifier(t),a=null!==(r=this.onInitCallbacks.get(n))&&void 0!==r?r:new Set;a.add(e),this.onInitCallbacks.set(n,a);const i=this.instances.get(n);return i&&e(i,n),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const r=this.onInitCallbacks.get(t);if(r)for(const n of r)try{n(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(n=e,n===g?void 0:n),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(e){}var n;return r||null}normalizeInstanceIdentifier(e=g){return this.component?this.component.multipleInstances?e:g:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class m{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new b(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}var v;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(v||(v={}));const _={debug:v.DEBUG,verbose:v.VERBOSE,info:v.INFO,warn:v.WARN,error:v.ERROR,silent:v.SILENT},E=v.INFO,y={[v.DEBUG]:"log",[v.VERBOSE]:"log",[v.INFO]:"info",[v.WARN]:"warn",[v.ERROR]:"error"},w=(e,t,...r)=>{if(t(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function N(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(S||(S=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(R(this),t),M(D.get(this))}:function(...t){return M(e.apply(R(this),t))}:function(t,...r){const n=e.call(R(this),t,...r);return A.set(n,t.sort?t.sort():[t]),M(n)}}function T(e){return"function"==typeof e?N(e):(e instanceof IDBTransaction&&function(e){if(C.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)}));C.set(e,t)}(e),t=e,(I||(I=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,L):e);var t}function M(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",i)},a=()=>{t(M(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&D.set(t,e)})).catch((()=>{})),O.set(t,e),t}(e);if(B.has(e))return B.get(e);const t=T(e);return t!==e&&(B.set(e,t),O.set(t,e)),t}const R=e=>O.get(e),$=["get","getKey","getAll","getAllKeys","count"],H=["put","add","delete","clear"],k=new Map;function P(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(k.get(t))return k.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,a=H.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!$.includes(r))return;const i=async function(e,...t){const i=this.transaction(e,a?"readwrite":"readonly");let s=i.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),a&&i.done]))[0]};return k.set(t,i),i}L=(e=>({...e,get:(t,r,n)=>P(t,r)||e.get(t,r,n),has:(t,r)=>!!P(t,r)||e.has(t,r)}))(L);class F{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const j="@firebase/app",V="0.11.1",x=new class{constructor(e){this.name=e,this._logLevel=E,this._logHandler=w,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in v))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?_[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,v.DEBUG,...e),this._logHandler(this,v.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,v.VERBOSE,...e),this._logHandler(this,v.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,v.INFO,...e),this._logHandler(this,v.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,v.WARN,...e),this._logHandler(this,v.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,v.ERROR,...e),this._logHandler(this,v.ERROR,...e)}}("@firebase/app"),z="@firebase/app-compat",U="@firebase/analytics-compat",W="@firebase/analytics",G="@firebase/app-check-compat",J="@firebase/app-check",K="@firebase/auth",Y="@firebase/auth-compat",q="@firebase/database",X="@firebase/data-connect",Z="@firebase/database-compat",Q="@firebase/functions",ee="@firebase/functions-compat",te="@firebase/installations",re="@firebase/installations-compat",ne="@firebase/messaging",ae="@firebase/messaging-compat",ie="@firebase/performance",se="@firebase/performance-compat",oe="@firebase/remote-config",ce="@firebase/remote-config-compat",he="@firebase/storage",le="@firebase/storage-compat",de="@firebase/firestore",ue="@firebase/vertexai",fe="@firebase/firestore-compat",pe="firebase",ge="[DEFAULT]",be={[j]:"fire-core",[z]:"fire-core-compat",[W]:"fire-analytics",[U]:"fire-analytics-compat",[J]:"fire-app-check",[G]:"fire-app-check-compat",[K]:"fire-auth",[Y]:"fire-auth-compat",[q]:"fire-rtdb",[X]:"fire-data-connect",[Z]:"fire-rtdb-compat",[Q]:"fire-fn",[ee]:"fire-fn-compat",[te]:"fire-iid",[re]:"fire-iid-compat",[ne]:"fire-fcm",[ae]:"fire-fcm-compat",[ie]:"fire-perf",[se]:"fire-perf-compat",[oe]:"fire-rc",[ce]:"fire-rc-compat",[he]:"fire-gcs",[le]:"fire-gcs-compat",[de]:"fire-fst",[fe]:"fire-fst-compat",[ue]:"fire-vertex","fire-js":"fire-js",[pe]:"fire-js-all"},me=new Map,ve=new Map,_e=new Map;function Ee(e,t){try{e.container.addComponent(t)}catch(r){x.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function ye(e){const t=e.name;if(_e.has(t))return x.debug(`There were multiple attempts to register component ${t}.`),!1;_e.set(t,e);for(const t of me.values())Ee(t,e);for(const t of ve.values())Ee(t,e);return!0}const we=new l("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Ie{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new p("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw we.create("app-deleted",{appName:this._name})}}function Se(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});const n=Object.assign({name:ge,automaticDataCollectionEnabled:!1},t),a=n.name;if("string"!=typeof a||!a)throw we.create("bad-app-name",{appName:String(a)});var i;if(r||(r=null===(i=o())||void 0===i?void 0:i.config),!r)throw we.create("no-options");const s=me.get(a);if(s){if(u(r,s.options)&&u(n,s.config))return s;throw we.create("duplicate-app",{appName:a})}const c=new m(a);for(const e of _e.values())c.addComponent(e);const h=new Ie(r,n,c);return me.set(a,h),h}function De(e,t,r){var n;let a=null!==(n=be[e])&&void 0!==n?n:e;r&&(a+=`-${r}`);const i=a.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const e=[`Unable to register library "${a}" with version "${t}":`];return i&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),i&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void x.warn(e.join(" "))}ye(new p(`${a}-version`,(()=>({library:a,version:t})),"VERSION"))}const Ce="firebase-heartbeat-store";let Ae=null;function Be(){return Ae||(Ae=function(e,t,{blocked:r,upgrade:n,blocking:a,terminated:i}={}){const s=indexedDB.open(e,t),o=M(s);return n&&s.addEventListener("upgradeneeded",(e=>{n(M(s.result),e.oldVersion,e.newVersion,M(s.transaction),e)})),r&&s.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),o.then((e=>{i&&e.addEventListener("close",(()=>i())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Ce)}catch(e){console.warn(e)}}}).catch((e=>{throw we.create("idb-open",{originalErrorMessage:e.message})}))),Ae}async function Oe(e,t){try{const r=(await Be()).transaction(Ce,"readwrite"),n=r.objectStore(Ce);await n.put(t,Le(e)),await r.done}catch(e){if(e instanceof h)x.warn(e.message);else{const t=we.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});x.warn(t.message)}}}function Le(e){return`${e.name}!${e.options.appId}`}class Ne{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Me(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;try{const r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=Te();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some((e=>e.date===n)))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,r=e[0].date;for(let n=1;ne.agent===a.agent));if(e){if(e.dates.push(a.date),Re(r)>t){e.dates.pop();break}}else if(r.push({agent:a.agent,dates:[a.date]}),Re(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),i=a(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return x.warn(e),""}}}function Te(){return(new Date).toISOString().substring(0,10)}class Me{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!function(){try{return"object"==typeof indexedDB}catch(e){return!1}}()&&new Promise(((e,t)=>{try{let r=!0;const n="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(n);a.onsuccess=()=>{a.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},a.onupgradeneeded=()=>{r=!1},a.onerror=()=>{var e;t((null===(e=a.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}})).then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await Be()).transaction(Ce),r=await t.objectStore(Ce).get(Le(e));return await t.done,r}catch(e){if(e instanceof h)x.warn(e.message);else{const t=we.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});x.warn(t.message)}}}(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const r=await this.read();return Oe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const r=await this.read();return Oe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function Re(e){return a(JSON.stringify({version:2,heartbeats:e})).length}var $e;$e="",ye(new p("platform-logger",(e=>new F(e)),"PRIVATE")),ye(new p("heartbeat",(e=>new Ne(e)),"PRIVATE")),De(j,V,$e),De(j,V,"esm2017"),De("fire-js",""),De("firebase","11.3.1","app");export{h as FirebaseError,ge as _DEFAULT_ENTRY_NAME,Ee as _addComponent,me as _apps,_e as _components,ye as _registerComponent,ve as _serverApps,Se as initializeApp,De as registerVersion}; \ No newline at end of file +var e={};const t=function(e){const t=[];let r=0;for(let n=0;n>6|192,t[r++]=63&a|128):55296==(64512&a)&&n+1>18|240,t[r++]=a>>12&63|128,t[r++]=a>>6&63|128,t[r++]=63&a|128):(t[r++]=a>>12|224,t[r++]=a>>6&63|128,t[r++]=63&a|128)}return t},r={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t>2,l=(3&a)<<4|s>>4;let d=(15&s)<<2|c>>6,u=63&c;o||(u=64,i||(d=64)),n.push(r[h],r[l],r[d],r[u])}return n.join("")},encodeString(e,r){return this.HAS_NATIVE_SUPPORT&&!r?btoa(e):this.encodeByteArray(t(e),r)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let r=0,n=0;for(;r191&&a<224){const i=e[r++];t[n++]=String.fromCharCode((31&a)<<6|63&i)}else if(a>239&&a<365){const i=((7&a)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(i>>10)),t[n++]=String.fromCharCode(56320+(1023&i))}else{const i=e[r++],s=e[r++];t[n++]=String.fromCharCode((15&a)<<12|(63&i)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,a=[];for(let t=0;t>4;if(a.push(h),64!==o){const e=s<<4&240|o>>2;if(a.push(e),64!==c){const e=o<<6&192|c;a.push(e)}}}return a},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class n extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const a=function(e){return function(e){const n=t(e);return r.encodeByteArray(n,!0)}(e).replace(/\./g,"")},i=()=>function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,s=()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&function(e){try{return r.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null}(e[1]);return t&&JSON.parse(t)},o=()=>{try{return i()||(()=>{if("undefined"==typeof process)return;const t=e.__FIREBASE_DEFAULTS__;return t?JSON.parse(t):void 0})()||s()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}};class c{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,r))}}}class h extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,h.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,l.prototype.create)}}class l{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){const r=t[0]||{},n=`${this.service}/${e}`,a=this.errors[e],i=a?function(e,t){return e.replace(d,((e,r)=>{const n=t[r];return null!=n?String(n):`<${r}?>`}))}(a,r):"Error",s=`${this.serviceName}: ${i} (${n}).`;return new h(n,s,r)}}const d=/\{\$([^}]+)}/g;function u(e,t){if(e===t)return!0;const r=Object.keys(e),n=Object.keys(t);for(const a of r){if(!n.includes(a))return!1;const r=e[a],i=t[a];if(f(r)&&f(i)){if(!u(r,i))return!1}else if(r!==i)return!1}for(const e of n)if(!r.includes(e))return!1;return!0}function f(e){return null!==e&&"object"==typeof e}class p{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const g="[DEFAULT]";class b{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new c;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const r=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),n=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(r)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:r})}catch(e){if(n)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:g})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=g){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=g){return this.instances.has(e)}getOptions(e=g){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(const[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){var r;const n=this.normalizeInstanceIdentifier(t),a=null!==(r=this.onInitCallbacks.get(n))&&void 0!==r?r:new Set;a.add(e),this.onInitCallbacks.set(n,a);const i=this.instances.get(n);return i&&e(i,n),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const r=this.onInitCallbacks.get(t);if(r)for(const n of r)try{n(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(n=e,n===g?void 0:n),options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(e){}var n;return r||null}normalizeInstanceIdentifier(e=g){return this.component?this.component.multipleInstances?e:g:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class m{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new b(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}var v;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(v||(v={}));const _={debug:v.DEBUG,verbose:v.VERBOSE,info:v.INFO,warn:v.WARN,error:v.ERROR,silent:v.SILENT},E=v.INFO,y={[v.DEBUG]:"log",[v.VERBOSE]:"log",[v.INFO]:"info",[v.WARN]:"warn",[v.ERROR]:"error"},w=(e,t,...r)=>{if(t(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function N(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(S||(S=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(R(this),t),M(D.get(this))}:function(...t){return M(e.apply(R(this),t))}:function(t,...r){const n=e.call(R(this),t,...r);return A.set(n,t.sort?t.sort():[t]),M(n)}}function T(e){return"function"==typeof e?N(e):(e instanceof IDBTransaction&&function(e){if(C.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)}));C.set(e,t)}(e),t=e,(I||(I=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,L):e);var t}function M(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",i)},a=()=>{t(M(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&D.set(t,e)})).catch((()=>{})),O.set(t,e),t}(e);if(B.has(e))return B.get(e);const t=T(e);return t!==e&&(B.set(e,t),O.set(t,e)),t}const R=e=>O.get(e),$=["get","getKey","getAll","getAllKeys","count"],H=["put","add","delete","clear"],k=new Map;function P(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(k.get(t))return k.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,a=H.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!$.includes(r))return;const i=async function(e,...t){const i=this.transaction(e,a?"readwrite":"readonly");let s=i.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),a&&i.done]))[0]};return k.set(t,i),i}L=(e=>({...e,get:(t,r,n)=>P(t,r)||e.get(t,r,n),has:(t,r)=>!!P(t,r)||e.has(t,r)}))(L);class F{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const j="@firebase/app",V="0.11.2",x=new class{constructor(e){this.name=e,this._logLevel=E,this._logHandler=w,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in v))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?_[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,v.DEBUG,...e),this._logHandler(this,v.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,v.VERBOSE,...e),this._logHandler(this,v.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,v.INFO,...e),this._logHandler(this,v.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,v.WARN,...e),this._logHandler(this,v.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,v.ERROR,...e),this._logHandler(this,v.ERROR,...e)}}("@firebase/app"),z="@firebase/app-compat",U="@firebase/analytics-compat",W="@firebase/analytics",G="@firebase/app-check-compat",J="@firebase/app-check",K="@firebase/auth",Y="@firebase/auth-compat",q="@firebase/database",X="@firebase/data-connect",Z="@firebase/database-compat",Q="@firebase/functions",ee="@firebase/functions-compat",te="@firebase/installations",re="@firebase/installations-compat",ne="@firebase/messaging",ae="@firebase/messaging-compat",ie="@firebase/performance",se="@firebase/performance-compat",oe="@firebase/remote-config",ce="@firebase/remote-config-compat",he="@firebase/storage",le="@firebase/storage-compat",de="@firebase/firestore",ue="@firebase/vertexai",fe="@firebase/firestore-compat",pe="firebase",ge="[DEFAULT]",be={[j]:"fire-core",[z]:"fire-core-compat",[W]:"fire-analytics",[U]:"fire-analytics-compat",[J]:"fire-app-check",[G]:"fire-app-check-compat",[K]:"fire-auth",[Y]:"fire-auth-compat",[q]:"fire-rtdb",[X]:"fire-data-connect",[Z]:"fire-rtdb-compat",[Q]:"fire-fn",[ee]:"fire-fn-compat",[te]:"fire-iid",[re]:"fire-iid-compat",[ne]:"fire-fcm",[ae]:"fire-fcm-compat",[ie]:"fire-perf",[se]:"fire-perf-compat",[oe]:"fire-rc",[ce]:"fire-rc-compat",[he]:"fire-gcs",[le]:"fire-gcs-compat",[de]:"fire-fst",[fe]:"fire-fst-compat",[ue]:"fire-vertex","fire-js":"fire-js",[pe]:"fire-js-all"},me=new Map,ve=new Map,_e=new Map;function Ee(e,t){try{e.container.addComponent(t)}catch(r){x.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function ye(e){const t=e.name;if(_e.has(t))return x.debug(`There were multiple attempts to register component ${t}.`),!1;_e.set(t,e);for(const t of me.values())Ee(t,e);for(const t of ve.values())Ee(t,e);return!0}const we=new l("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Ie{constructor(e,t,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new p("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw we.create("app-deleted",{appName:this._name})}}function Se(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});const n=Object.assign({name:ge,automaticDataCollectionEnabled:!1},t),a=n.name;if("string"!=typeof a||!a)throw we.create("bad-app-name",{appName:String(a)});var i;if(r||(r=null===(i=o())||void 0===i?void 0:i.config),!r)throw we.create("no-options");const s=me.get(a);if(s){if(u(r,s.options)&&u(n,s.config))return s;throw we.create("duplicate-app",{appName:a})}const c=new m(a);for(const e of _e.values())c.addComponent(e);const h=new Ie(r,n,c);return me.set(a,h),h}function De(e,t,r){var n;let a=null!==(n=be[e])&&void 0!==n?n:e;r&&(a+=`-${r}`);const i=a.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const e=[`Unable to register library "${a}" with version "${t}":`];return i&&e.push(`library name "${a}" contains illegal characters (whitespace or "/")`),i&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void x.warn(e.join(" "))}ye(new p(`${a}-version`,(()=>({library:a,version:t})),"VERSION"))}const Ce="firebase-heartbeat-store";let Ae=null;function Be(){return Ae||(Ae=function(e,t,{blocked:r,upgrade:n,blocking:a,terminated:i}={}){const s=indexedDB.open(e,t),o=M(s);return n&&s.addEventListener("upgradeneeded",(e=>{n(M(s.result),e.oldVersion,e.newVersion,M(s.transaction),e)})),r&&s.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),o.then((e=>{i&&e.addEventListener("close",(()=>i())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(Ce)}catch(e){console.warn(e)}}}).catch((e=>{throw we.create("idb-open",{originalErrorMessage:e.message})}))),Ae}async function Oe(e,t){try{const r=(await Be()).transaction(Ce,"readwrite"),n=r.objectStore(Ce);await n.put(t,Le(e)),await r.done}catch(e){if(e instanceof h)x.warn(e.message);else{const t=we.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});x.warn(t.message)}}}function Le(e){return`${e.name}!${e.options.appId}`}class Ne{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Me(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;try{const r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),n=Te();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some((e=>e.date===n)))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:r}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,r=e[0].date;for(let n=1;ne.agent===a.agent));if(e){if(e.dates.push(a.date),Re(r)>t){e.dates.pop();break}}else if(r.push({agent:a.agent,dates:[a.date]}),Re(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),i=a(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=t,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return x.warn(e),""}}}function Te(){return(new Date).toISOString().substring(0,10)}class Me{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!function(){try{return"object"==typeof indexedDB}catch(e){return!1}}()&&new Promise(((e,t)=>{try{let r=!0;const n="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(n);a.onsuccess=()=>{a.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},a.onupgradeneeded=()=>{r=!1},a.onerror=()=>{var e;t((null===(e=a.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}})).then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await Be()).transaction(Ce),r=await t.objectStore(Ce).get(Le(e));return await t.done,r}catch(e){if(e instanceof h)x.warn(e.message);else{const t=we.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});x.warn(t.message)}}}(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const r=await this.read();return Oe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const r=await this.read();return Oe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}}}function Re(e){return a(JSON.stringify({version:2,heartbeats:e})).length}var $e;$e="",ye(new p("platform-logger",(e=>new F(e)),"PRIVATE")),ye(new p("heartbeat",(e=>new Ne(e)),"PRIVATE")),De(j,V,$e),De(j,V,"esm2017"),De("fire-js",""),De("firebase","11.4.0","app");export{h as FirebaseError,ge as _DEFAULT_ENTRY_NAME,Ee as _addComponent,me as _apps,_e as _components,ye as _registerComponent,ve as _serverApps,Se as initializeApp,De as registerVersion}; \ No newline at end of file diff --git a/Target/index.html b/Target/index.html index e3841a7e..009013bc 100644 --- a/Target/index.html +++ b/Target/index.html @@ -1 +1 @@ -The Hardest Game
\ No newline at end of file +The Hardest Game
\ No newline at end of file