(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[280],{927:(t,e,r)=>{"use strict";r.d(e,{Ao:()=>h,Bx:()=>o,Jh:()=>f,O4:()=>s,ZS:()=>n,fF:()=>l,iO:()=>i,ro:()=>a});var n,i,o,s,a,f,h,l,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c={};(function(){var t,e,r=Object.defineProperty,p=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof u&&u];for(var e=0;et&&AsyncContext.Snapshot.wrap(t):t=>t;function x(t){let e=t.length;if(e>0){let r=Array(e);for(let n=0;n0?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.i(),t}}class T{constructor(){this.h=this.g=null}add(t,e){let r=C.get();r.set(t,e),this.h?this.h.next=r:this.g=r,this.h=r}}var C=new I(()=>new S,t=>t.reset());class S{constructor(){this.next=this.g=this.h=null}set(t,e){this.h=t,this.g=e,this.next=null}reset(){this.next=this.g=this.h=null}}let O,R=!1,k=new T,D=()=>{let t=Promise.resolve(void 0);O=()=>{t.then(B)}};function B(){let t;for(var e;t=null,k.g&&(t=k.g,k.g=k.g.next,k.g||(k.h=null),t.next=null),e=t;){try{e.h.call(e.g)}catch(t){!function(t){y.setTimeout(()=>{throw t},0)}(t)}C.j(e),C.h<100&&(C.h++,e.next=C.g,C.g=e)}R=!1}function L(){this.u=this.u,this.C=this.C}function P(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}L.prototype.u=!1,L.prototype.dispose=function(){this.u||(this.u=!0,this.N())},L.prototype[Symbol.dispose]=function(){this.dispose()},L.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},P.prototype.h=function(){this.defaultPrevented=!0};var N=function(){if(!y.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{let t=()=>{};y.addEventListener("test",t,e),y.removeEventListener("test",t,e)}catch(t){}return t}();function M(t){return/^[\s\xa0]*$/.test(t)}function U(t,e){P.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t&&this.init(t,e)}_(U,P),U.prototype.init=function(t,e){let r=this.type=t.type,n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;this.target=t.target||t.srcElement,this.g=e,(e=t.relatedTarget)||("mouseover"==r?e=t.fromElement:"mouseout"==r&&(e=t.toElement)),this.relatedTarget=e,n?(this.clientX=void 0!==n.clientX?n.clientX:n.pageX,this.clientY=void 0!==n.clientY?n.clientY:n.pageY,this.screenX=n.screenX||0,this.screenY=n.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType=t.pointerType,this.state=t.state,this.i=t,t.defaultPrevented&&U.Z.h.call(this)},U.prototype.h=function(){U.Z.h.call(this);let t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var j="closure_listenable_"+(1e6*Math.random()|0),F=0;function H(t,e,r,n,i){this.listener=t,this.proxy=null,this.src=e,this.type=r,this.capture=!!n,this.ha=i,this.key=++F,this.da=this.fa=!1}function $(t){t.da=!0,t.listener=null,t.proxy=null,t.src=null,t.ha=null}function z(t,e,r){for(let n in t)e.call(r,t[n],n,t)}function V(t){let e={};for(let r in t)e[r]=t[r];return e}let W="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function K(t,e){let r,n;for(let e=1;e=0)&&Array.prototype.splice.call(i,o,1),n&&($(e),0==t.g[r].length&&(delete t.g[r],t.h--))}}function G(t,e,r,n){for(let i=0;i-1?(e=t[s],r||(e.fa=!1)):((e=new H(e,this.src,o,!!n,i)).fa=r,t.push(e)),e};var J="closure_lm_"+(1e6*Math.random()|0),Y={};function Z(t,e,r,n,i,o){if(!e)throw Error("Invalid event type");let s=m(i)?!!i.capture:!!i,a=tr(t);if(a||(t[J]=a=new X(t)),(r=a.add(e,r,n,s,o)).proxy)return r;if(n=function t(e){return te.call(t.src,t.listener,e)},r.proxy=n,n.src=t,n.listener=r,t.addEventListener)N||(i=s),void 0===i&&(i=!1),t.addEventListener(e.toString(),n,i);else if(t.attachEvent)t.attachEvent(tt(e.toString()),n);else if(t.addListener&&t.removeListener)t.addListener(n);else throw Error("addEventListener and attachEvent are unavailable.");return r}function Q(t){if("number"!=typeof t&&t&&!t.da){var e=t.src;if(e&&e[j])q(e.i,t);else{var r=t.type,n=t.proxy;e.removeEventListener?e.removeEventListener(r,n,t.capture):e.detachEvent?e.detachEvent(tt(r),n):e.addListener&&e.removeListener&&e.removeListener(n),(r=tr(e))?(q(r,t),0==r.h&&(r.src=null,e[J]=null)):$(t)}}}function tt(t){return t in Y?Y[t]:Y[t]="on"+t}function te(t,e){if(t.da)t=!0;else{e=new U(e,this);let r=t.listener,n=t.ha||t.src;t.fa&&Q(t),t=r.call(n,e)}return t}function tr(t){return(t=t[J])instanceof X?t:null}var tn="__closure_events_fn_"+(1e9*Math.random()>>>0);function ti(t){return"function"==typeof t?t:(t[tn]||(t[tn]=function(e){return t.handleEvent(e)}),t[tn])}function to(){L.call(this),this.i=new X(this),this.M=this,this.G=null}function ts(t,e){let r,n;var i,o=t.G;if(o)for(i=[];o;o=o.G)i.push(o);if(t=t.M,o=e.type||e,"string"==typeof e)e=new P(e,t);else if(e instanceof P)e.target=e.target||t;else{var s=e;K(e=new P(o,t),s)}if(s=!0,i)for(n=i.length-1;n>=0;n--)s=ta(r=e.g=i[n],o,!0,e)&&s;if(s=ta(r=e.g=t,o,!0,e)&&s,s=ta(r,o,!1,e)&&s,i)for(n=0;n-1&&($(r[n]),Array.prototype.splice.call(r,n,1),0==r.length&&(delete e.g[s],e.h--))):e&&(e=tr(e))&&(r=e.g[r.toString()],e=-1,r&&(e=G(r,n,i,o)),(n=e>-1?r[e]:null)&&Q(n))}(this,t,e,r,n)},to.prototype.N=function(){if(to.Z.N.call(this),this.i){var t=this.i;for(let e in t.g){let r=t.g[e];for(let t=0;t0x7fffffff?-1:y.setTimeout(t,e||0)}(()=>{e.g=null,e.i&&(e.i=!1,t(e))},e.l);let r=e.h;e.h=null,e.m.apply(null,r)}(this)}N(){super.N(),this.g&&(y.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function th(t){L.call(this),this.h=t,this.g={}}_(th,L);var tl=[];function tu(t){z(t.g,function(t,e){this.g.hasOwnProperty(e)&&Q(t)},t),t.g={}}th.prototype.N=function(){th.Z.N.call(this),tu(this)},th.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var tc=y.JSON.stringify,tp=y.JSON.parse,td=class{stringify(t){return y.JSON.stringify(t,void 0)}parse(t){return y.JSON.parse(t,void 0)}};function tg(){}function ty(){}var tm={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function tb(){P.call(this,"d")}function tv(){P.call(this,"c")}_(tb,P),_(tv,P);var tw={},t_=null;function tE(){return t_=t_||new to}function tx(t){P.call(this,tw.Ia,t)}function tA(t){let e=tE();ts(e,new tx(e))}function tI(t,e){P.call(this,tw.STAT_EVENT,t),this.stat=e}function tT(t){let e=tE();ts(e,new tI(e,t))}function tC(t,e){P.call(this,tw.Ja,t),this.size=e}function tS(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return y.setTimeout(function(){t()},e)}function tO(){this.g=!0}function tR(t,e,r,n){t.info(function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{let o=JSON.parse(e);if(o){for(t=0;t0&&(t.O=new tf(v(t.Y,t,t.g),t.P)),e=t.V,r=t.g,n=t.ba;var i="readystatechange";Array.isArray(i)||(i&&(tl[0]=i.toString()),i=tl);for(let t=0;t1){let t=f[0];f=f[1];let e=t.split("_");s=e.length>=2&&"type"==e[1]?s+(t+"=")+f+"&":s+(t+"=redacted&")}}}else s=null;else s=o;return"XMLHTTP REQ ("+n+") [attempt "+i+"]: "+e+"\n"+r+"\n"+s})}(t.i,t.v,t.B,t.l,t.S,t.u)}function tH(t){return!!t.g&&"GET"==t.v&&2!=t.M&&t.j.Aa}function t$(t){t.T=Date.now()+t.H,tz(t,t.H)}function tz(t,e){if(null!=t.D)throw Error("WatchDog timer not null");t.D=tS(v(t.aa,t),e)}function tV(t){t.D&&(y.clearTimeout(t.D),t.D=null)}function tW(t){0==t.j.I||t.K||eq(t.j,t)}function tK(t){tV(t);var e=t.O;e&&"function"==typeof e.dispose&&e.dispose(),t.O=null,tu(t.V),t.g&&(e=t.g,t.g=null,e.abort(),e.dispose())}function tX(t,e){try{var r=t.j;if(0!=r.I&&(r.g==t||tZ(r.h,t))){if(!t.L&&tZ(r.h,t)&&3==r.I){try{var n=r.Ba.g.parse(e)}catch(t){n=null}if(Array.isArray(n)&&3==n.length){var i=n;if(0==i[0]){t:if(!r.v){if(r.g)if(r.g.F+3e3=tY(r.h)&&r.ta&&(r.ta=void 0)}else eJ(r,11)}else if((t.L||r.g==t)&&eX(r),!M(e))for(i=r.Ba.g.parse(e),e=0;e0&&(r.O=n=1.5*f,r.j.info("backChannelRequestTimeoutMs_="+n)),n=r;let h=t.g;if(h){let t=h.g?h.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(t){var o=n.h;o.g||-1==t.indexOf("spdy")&&-1==t.indexOf("quic")&&-1==t.indexOf("h2")||(o.j=o.l,o.g=new Set,o.h&&(tQ(o,o.h),o.h=null))}if(n.G){let t=h.g?h.g.getResponseHeader("X-HTTP-Session-Id"):null;t&&(n.wa=t,t7(n.J,n.G,t))}}if(r.I=3,r.l&&r.l.ra(),r.aa&&(r.T=Date.now()-t.F,r.j.info("Handshake RTT: "+r.T+"ms")),(n=r).na=eZ(n,n.L?n.ba:null,n.W),t.L){t0(n.h,t);var s=n.O;s&&(t.H=s),t.D&&(tV(t),t$(t)),n.g=t}else ez(n);r.i.length>0&&ej(r)}else"stop"!=a[0]&&"close"!=a[0]||eJ(r,7);else 3==r.I&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?eJ(r,7):eN(r):"noop"!=a[0]&&r.l&&r.l.qa(a),r.A=0)}}tA(4)}catch(t){}}tP.prototype.ba=function(t){t=t.target;let e=this.O;e&&3==eD(t)?e.j():this.Y(t)},tP.prototype.Y=function(t){try{if(t==this.g)t:{let a=eD(this.g),f=this.g.ya(),h=this.g.ca();if(!(a<3)&&(3!=a||this.g&&(this.h.h||this.g.la()||eB(this.g)))){this.K||4!=a||7==f||(8==f||h<=0?tA(3):tA(2)),tV(this);var e=this.g.ca();this.X=e;var r=function(t){if(!tH(t))return t.g.la();let e=eB(t.g);if(""===e)return"";let r="",n=e.length,i=4==eD(t.g);if(!t.h.i){if("undefined"==typeof TextDecoder)return tK(t),tW(t),"";t.h.i=new y.TextDecoder}for(let o=0;oe.length?tU:(e=e.slice(n,n+r),t.C=n+r,e)}(this,r))==tU){4==a&&(this.m=4,tT(14),t=!1),tR(this.i,this.l,null,"[Incomplete Response]");break}else if(e==tM){this.m=4,tT(15),tR(this.i,this.l,r,"[Invalid Chunk]"),t=!1;break}else tR(this.i,this.l,e,null),tX(this,e);if(tH(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=a||0!=r.length||this.h.h||(this.m=1,tT(16),t=!1),this.o=this.o&&t,t){if(r.length>0&&!this.W){this.W=!0;var s=this.j;s.g==this&&s.aa&&!s.P&&(s.j.info("Great, no buffering proxy detected. Bytes received: "+r.length),eW(s),s.P=!0,tT(11))}}else tR(this.i,this.l,r,"[Invalid Chunked Response]"),tK(this),tW(this)}else tR(this.i,this.l,r,null),tX(this,r);4==a&&tK(this),this.o&&!this.K&&(4==a?eq(this.j,this):(this.o=!1,t$(this)))}else(function(t){let e={};t=(t.g&&eD(t)>=2&&t.g.getAllResponseHeaders()||"").split("\r\n");for(let n=0;n0&&t.length;)r.push(t.shift()),e--;return t.length&&r.push(t.join(":")),r}(t[n]);let i=r[0];if("string"!=typeof(r=r[1]))continue;r=r.trim();let o=e[i]||[];e[i]=o,o.push(r)}var n=function(t){return t.join(", ")};for(let t in e)n.call(void 0,e[t],t,e)})(this.g),400==e&&r.indexOf("Unknown SID")>0?(this.m=3,tT(12)):(this.m=0,tT(13)),tK(this),tW(this)}}}catch(t){}finally{}},tP.prototype.cancel=function(){this.K=!0,tK(this)},tP.prototype.aa=function(){this.D=null;let t=Date.now();t-this.T>=0?(function(t,e){t.info(function(){return"TIMEOUT: "+e})}(this.i,this.B),2!=this.M&&(tA(),tT(17)),tK(this),this.m=2,tW(this)):tz(this,this.T-t)};var tq=class{constructor(t,e){this.g=t,this.map=e}};function tG(t){this.l=t||10,t=y.PerformanceNavigationTiming?(t=y.performance.getEntriesByType("navigation")).length>0&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(y.chrome&&y.chrome.loadTimes&&y.chrome.loadTimes()&&y.chrome.loadTimes().wasFetchedViaSpdy),this.j=t?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function tJ(t){return!!t.h||!!t.g&&t.g.size>=t.j}function tY(t){return t.h?1:t.g?t.g.size:0}function tZ(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function tQ(t,e){t.g?t.g.add(e):t.h=e}function t0(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function t1(t){if(null!=t.h)return t.i.concat(t.h.G);if(null!=t.g&&0!==t.g.size){let e=t.i;for(let r of t.g.values())e=e.concat(r.G);return e}return x(t.i)}tG.prototype.cancel=function(){if(this.i=t1(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let t of this.g.values())t.cancel();this.g.clear()}};var t2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function t6(t){let e;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,t instanceof t6?(this.l=t.l,t5(this,t.j),this.o=t.o,this.g=t.g,t4(this,t.u),this.h=t.h,t8(this,ed(t.i)),this.m=t.m):t&&(e=String(t).match(t2))?(this.l=!1,t5(this,e[1]||"",!0),this.o=et(e[2]||""),this.g=et(e[3]||"",!0),t4(this,e[4]),this.h=et(e[5]||"",!0),t8(this,e[6]||"",!0),this.m=et(e[7]||"")):(this.l=!1,this.i=new ef(null,this.l))}function t3(t){return new t6(t)}function t5(t,e,r){t.j=r?et(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function t4(t,e){if(e){if(isNaN(e=Number(e))||e<0)throw Error("Bad port number "+e);t.u=e}else t.u=null}function t8(t,e,r){var n,i;e instanceof ef?(t.i=e,n=t.i,(i=t.l)&&!n.j&&(eh(n),n.i=null,n.g.forEach(function(t,e){let r=e.toLowerCase();e!=r&&(el(this,e),ep(this,r,t))},n)),n.j=i):(r||(e=ee(e,es)),t.i=new ef(e,t.l))}function t7(t,e,r){t.i.set(e,r)}function t9(t){return t7(t,"zx",Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^Date.now()).toString(36)),t}function et(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function ee(t,e,r){return"string"==typeof t?(t=encodeURI(t).replace(e,er),r&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function er(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}t6.prototype.toString=function(){let t=[];var e=this.j;e&&t.push(ee(e,en,!0),":");var r=this.g;return(r||"file"==e)&&(t.push("//"),(e=this.o)&&t.push(ee(e,en,!0),"@"),t.push(tL(r).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(r=this.u)&&t.push(":",String(r))),(r=this.h)&&(this.g&&"/"!=r.charAt(0)&&t.push("/"),t.push(ee(r,"/"==r.charAt(0)?eo:ei,!0))),(r=this.i.toString())&&t.push("?",r),(r=this.m)&&t.push("#",ee(r,ea)),t.join("")},t6.prototype.resolve=function(t){let e=t3(this),r=!!t.j;r?t5(e,t.j):r=!!t.o,r?e.o=t.o:r=!!t.g,r?e.g=t.g:r=null!=t.u;var n=t.h;if(r)t4(e,t.u);else if(r=!!t.h){if("/"!=n.charAt(0))if(this.g&&!this.h)n="/"+n;else{var i=e.h.lastIndexOf("/");-1!=i&&(n=e.h.slice(0,i+1)+n)}if(".."==(i=n)||"."==i)n="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){n=0==i.lastIndexOf("/",0),i=i.split("/");let t=[];for(let e=0;e1||1==t.length&&""!=t[0])&&t.pop(),n&&e==i.length&&t.push("")):(t.push(r),n=!0)}n=t.join("/")}else n=i}return r?e.h=n:r=""!==t.i.toString(),r?t8(e,ed(t.i)):r=!!t.m,r&&(e.m=t.m),e};var en=/[#\/\?@]/g,ei=/[#\?:]/g,eo=/[#\?]/g,es=/[#\?@]/g,ea=/#/g;function ef(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function eh(t){t.g||(t.g=new Map,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(let r=0;r=0?(i=t[r].substring(0,n),o=t[r].substring(n+1)):i=t[r],e(i,o?decodeURIComponent(o.replace(/\+/g," ")):"")}}}(t.i,function(e,r){t.add(decodeURIComponent(e.replace(/\+/g," ")),r)}))}function el(t,e){eh(t),e=eg(t,e),t.g.has(e)&&(t.i=null,t.h-=t.g.get(e).length,t.g.delete(e))}function eu(t,e){return eh(t),e=eg(t,e),t.g.has(e)}function ec(t,e){eh(t);let r=[];if("string"==typeof e)eu(t,e)&&(r=r.concat(t.g.get(eg(t,e))));else for(t=Array.from(t.g.values()),e=0;e0&&(t.i=null,t.g.set(eg(t,e),x(r)),t.h+=r.length)}function ed(t){let e=new ef;return e.i=t.i,t.g&&(e.g=new Map(t.g),e.h=t.h),e}function eg(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}function ey(t,e,r,n,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),n(r)}catch(t){}}function em(){this.g=new td}function eb(t){this.i=t.Sb||null,this.h=t.ab||!1}function ev(t,e){to.call(this),this.H=t,this.o=e,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function ew(t){t.j.read().then(t.Ma.bind(t)).catch(t.ga.bind(t))}function e_(t){t.readyState=4,t.l=null,t.j=null,t.B=null,eE(t)}function eE(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ex(t){let e="";return z(t,function(t,r){e+=r,e+=":",e+=t,e+="\r\n"}),e}function eA(t,e,r){t:{for(n in r){var n=!1;break t}n=!0}n||(r=ex(r),"string"==typeof t?null!=r&&tL(r):t7(t,e,r))}function eI(t){to.call(this),this.headers=new Map,this.L=t||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(e=ef.prototype).add=function(t,e){eh(this),this.i=null,t=eg(this,t);let r=this.g.get(t);return r||this.g.set(t,r=[]),r.push(e),this.h+=1,this},e.forEach=function(t,e){eh(this),this.g.forEach(function(r,n){r.forEach(function(r){t.call(e,r,n,this)},this)},this)},e.set=function(t,e){return eh(this),this.i=null,eu(this,t=eg(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},e.get=function(t,e){return t&&(t=ec(this,t)).length>0?String(t[0]):e},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";let t=[],e=Array.from(this.g.keys());for(let n=0;n{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,e_(this)),this.readyState=0},e.Pa=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,eE(this)),this.g&&(this.readyState=3,eE(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==y.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;ew(this)}else t.text().then(this.Oa.bind(this),this.ga.bind(this))},e.Ma=function(t){if(this.g){if(this.o&&t.value)this.response.push(t.value);else if(!this.o){var e=t.value?t.value:new Uint8Array(0);(e=this.B.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?e_(this):eE(this),3==this.readyState&&ew(this)}},e.Oa=function(t){this.g&&(this.response=this.responseText=t,e_(this))},e.Na=function(t){this.g&&(this.response=t,e_(this))},e.ga=function(){this.g&&e_(this)},e.setRequestHeader=function(t,e){this.A.append(t,e)},e.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";let t=[],e=this.h.entries();for(var r=e.next();!r.done;)t.push((r=r.value)[0]+": "+r[1]),r=e.next();return t.join("\r\n")},Object.defineProperty(ev.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}}),_(eI,to);var eT=/^https?$/i,eC=["POST","PUT"];function eS(t,e){t.h=!1,t.g&&(t.j=!0,t.g.abort(),t.j=!1),t.l=e,t.o=5,eO(t),ek(t)}function eO(t){t.A||(t.A=!0,ts(t,"complete"),ts(t,"error"))}function eR(t){if(t.h&&void 0!==g){if(t.v&&4==eD(t))setTimeout(t.Ca.bind(t),0);else if(ts(t,"readystatechange"),4==eD(t)){t.h=!1;try{let o=t.ca();switch(o){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var e,r,n=!0;break;default:n=!1}if(!(e=n)){if(r=0===o){let e=String(t.D).match(t2)[1]||null;!e&&y.self&&y.self.location&&(e=y.self.location.protocol.slice(0,-1)),r=!eT.test(e?e.toLowerCase():"")}e=r}if(e)ts(t,"complete"),ts(t,"success");else{t.o=6;try{var i=eD(t)>2?t.g.statusText:""}catch(t){i=""}t.l=i+" ["+t.ca()+"]",eO(t)}}finally{ek(t)}}}}function ek(t,e){if(t.g){t.m&&(clearTimeout(t.m),t.m=null);let r=t.g;t.g=null,e||ts(t,"ready");try{r.onreadystatechange=null}catch(t){}}}function eD(t){return t.g?t.g.readyState:0}function eB(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.F){case"":case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(t){return null}}function eL(t,e,r){return r&&r.internalChannelParams&&r.internalChannelParams[t]||e}function eP(t){this.za=0,this.i=[],this.j=new tO,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=eL("failFast",!1,t),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=eL("baseRetryDelayMs",5e3,t),this.Za=eL("retryDelaySeedMs",1e4,t),this.Ta=eL("forwardChannelMaxRetries",2,t),this.va=eL("forwardChannelRequestTimeoutMs",2e4,t),this.ma=t&&t.xmlHttpFactory||void 0,this.Ua=t&&t.Rb||void 0,this.Aa=t&&t.useFetchStreams||!1,this.O=void 0,this.L=t&&t.supportsCrossDomainXhr||!1,this.M="",this.h=new tG(t&&t.concurrentRequestLimit),this.Ba=new em,this.S=t&&t.fastHandshake||!1,this.R=t&&t.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=t&&t.Pb||!1,t&&t.ua&&this.j.ua(),t&&t.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&t&&t.detectBufferingProxy||!1,this.ia=void 0,t&&t.longPollingTimeout&&t.longPollingTimeout>0&&(this.ia=t.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function eN(t){if(eU(t),3==t.I){var e=t.V++,r=t3(t.J);if(t7(r,"SID",t.M),t7(r,"RID",e),t7(r,"TYPE","terminate"),eH(t,r),(e=new tP(t,t.j,e)).M=2,e.A=t9(t3(r)),r=!1,y.navigator&&y.navigator.sendBeacon)try{r=y.navigator.sendBeacon(e.A.toString(),"")}catch(t){}!r&&y.Image&&((new Image).src=e.A,r=!0),r||(e.g=eQ(e.j,null),e.g.ea(e.A)),e.F=Date.now(),t$(e)}eY(t)}function eM(t){t.g&&(eW(t),t.g.cancel(),t.g=null)}function eU(t){eM(t),t.v&&(y.clearTimeout(t.v),t.v=null),eX(t),t.h.cancel(),t.m&&("number"==typeof t.m&&y.clearTimeout(t.m),t.m=null)}function ej(t){if(!tJ(t.h)&&!t.m){t.m=!0;var e=t.Ea;O||D(),R||(O(),R=!0),k.add(e,t),t.D=0}}function eF(t,e){var r;r=e?e.l:t.V++;let n=t3(t.J);t7(n,"SID",t.M),t7(n,"RID",r),t7(n,"AID",t.K),eH(t,n),t.u&&t.o&&eA(n,t.u,t.o),r=new tP(t,t.j,r,t.D+1),null===t.u&&(r.J=t.o),e&&(t.i=e.G.concat(t.i)),e=e$(t,r,1e3),r.H=Math.round(.5*t.va)+Math.round(.5*t.va*Math.random()),tQ(t.h,r),tj(r,n,e)}function eH(t,e){t.H&&z(t.H,function(t,r){t7(e,r,t)}),t.l&&z({},function(t,r){t7(e,r,t)})}function e$(t,e,r){r=Math.min(t.i.length,r);let n=t.l?v(t.l.Ka,t.l,t):null;t:{var i=t.i;let e=-1;for(;;){let t=["count="+r];-1==e?r>0?(e=i[0].g,t.push("ofs="+e)):e=0:t.push("ofs="+e);let a=!0;for(let f=0;f=3)&&(t.Y++,t.v=tS(v(t.Da,t),eG(t,t.A)),t.A++,!0)}function eW(t){null!=t.B&&(y.clearTimeout(t.B),t.B=null)}function eK(t){t.g=new tP(t,t.j,"rpc",t.Y),null===t.u&&(t.g.J=t.o),t.g.P=0;var e=t3(t.na);t7(e,"RID","rpc"),t7(e,"SID",t.M),t7(e,"AID",t.K),t7(e,"CI",t.F?"0":"1"),!t.F&&t.ia&&t7(e,"TO",t.ia),t7(e,"TYPE","xmlhttp"),eH(t,e),t.u&&t.o&&eA(e,t.u,t.o),t.O&&(t.g.H=t.O);var r=t.g;t=t.ba,r.M=1,r.A=t9(t3(e)),r.u=null,r.R=!0,tF(r,t)}function eX(t){null!=t.C&&(y.clearTimeout(t.C),t.C=null)}function eq(t,e){var r,n=null;if(t.g==e){eX(t),eW(t),t.g=null;var i=2}else{if(!tZ(t.h,e))return;n=e.G,t0(t.h,e),i=1}if(0!=t.I){if(e.o)if(1==i){n=e.u?e.u.length:0,e=Date.now()-e.F;var o=t.D;ts(i=tE(),new tC(i,n)),ej(t)}else ez(t);else if(3==(o=e.m)||0==o&&e.X>0||!(1==i&&(r=e,!(tY(t.h)>=t.h.j-+!!t.m)&&(t.m?(t.i=r.G.concat(t.i),!0):1!=t.I&&2!=t.I&&!(t.D>=(t.Sa?0:t.Ta))&&(t.m=tS(v(t.Ea,t,r),eG(t,t.D)),t.D++,!0)))||2==i&&eV(t)))switch(n&&n.length>0&&((e=t.h).i=e.i.concat(n)),o){case 1:eJ(t,5);break;case 4:eJ(t,10);break;case 3:eJ(t,6);break;default:eJ(t,2)}}}function eG(t,e){let r=t.Qa+Math.floor(Math.random()*t.Za);return t.isActive()||(r*=2),r*e}function eJ(t,e){if(t.j.info("Error code "+e),2==e){var r=v(t.bb,t),n=t.Ua;let e=!n;n=new t6(n||"//www.google.com/images/cleardot.gif"),y.location&&"http"==y.location.protocol||t5(n,"https"),t9(n),e?function(t,e){let r=new tO;if(y.Image){let n=new Image;n.onload=w(ey,r,"TestLoadImage: loaded",!0,e,n),n.onerror=w(ey,r,"TestLoadImage: error",!1,e,n),n.onabort=w(ey,r,"TestLoadImage: abort",!1,e,n),n.ontimeout=w(ey,r,"TestLoadImage: timeout",!1,e,n),y.setTimeout(function(){n.ontimeout&&n.ontimeout()},1e4),n.src=t}else e(!1)}(n.toString(),r):function(t,e){let r=new tO,n=new AbortController,i=setTimeout(()=>{n.abort(),ey(r,"TestPingServer: timeout",!1,e)},1e4);fetch(t,{signal:n.signal}).then(t=>{clearTimeout(i),t.ok?ey(r,"TestPingServer: ok",!0,e):ey(r,"TestPingServer: server error",!1,e)}).catch(()=>{clearTimeout(i),ey(r,"TestPingServer: error",!1,e)})}(n.toString(),r)}else tT(2);t.I=0,t.l&&t.l.pa(e),eY(t),eU(t)}function eY(t){if(t.I=0,t.ja=[],t.l){let e=t1(t.h);(0!=e.length||0!=t.i.length)&&(A(t.ja,e),A(t.ja,t.i),t.h.i.length=0,x(t.i),t.i.length=0),t.l.oa()}}function eZ(t,e,r){var n=r instanceof t6?t3(r):new t6(r);if(""!=n.g)e&&(n.g=e+"."+n.g),t4(n,n.u);else{var i=y.location;n=i.protocol,e=e?e+"."+i.hostname:i.hostname,i=+i.port;let t=new t6(null);n&&t5(t,n),e&&(t.g=e),i&&t4(t,i),r&&(t.h=r),n=t}return r=t.G,e=t.wa,r&&e&&t7(n,r,e),t7(n,"VER",t.ka),eH(t,n),n}function eQ(t,e,r){if(e&&!t.L)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new eI(t.Aa&&!t.ma?new eb({ab:r}):t.ma)).Fa(t.L),e}function e0(){}function e1(){}function e2(t,e){to.call(this),this.g=new eP(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.o=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.sa&&(t?t["X-WebChannel-Client-Profile"]=e.sa:t={"X-WebChannel-Client-Profile":e.sa}),this.g.U=t,(t=e&&e.Qb)&&!M(t)&&(this.g.u=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!M(e)&&(this.g.G=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new e5(this)}function e6(t){tb.call(this),t.__headers__&&(this.headers=t.__headers__,this.statusCode=t.__status__,delete t.__headers__,delete t.__status__);var e=t.__sm__;if(e){t:{for(let r in e){t=r;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function e3(){tv.call(this),this.status=1}function e5(t){this.g=t}(e=eI.prototype).Fa=function(t){this.H=t},e.ea=function(e,r,n,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);r=r?r.toUpperCase():"GET",this.D=e,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():t.g(),this.g.onreadystatechange=E(v(this.Ca,this));try{this.B=!0,this.g.open(r,String(e),!0),this.B=!1}catch(t){eS(this,t);return}if(e=n||"",n=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var o in i)n.set(o,i[o]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let t of i.keys())n.set(t,i.get(t));else throw Error("Unknown input type for opt_headers: "+String(i));for(let[t,s]of(i=Array.from(n.keys()).find(t=>"content-type"==t.toLowerCase()),o=y.FormData&&e instanceof y.FormData,!(Array.prototype.indexOf.call(eC,r,void 0)>=0)||i||o||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n))this.g.setRequestHeader(t,s);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(e),this.v=!1}catch(t){eS(this,t)}},e.abort=function(t){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=t||7,ts(this,"complete"),ts(this,"abort"),ek(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),ek(this,!0)),eI.Z.N.call(this)},e.Ca=function(){this.u||(this.B||this.v||this.j?eR(this):this.Xa())},e.Xa=function(){eR(this)},e.isActive=function(){return!!this.g},e.ca=function(){try{return eD(this)>2?this.g.status:-1}catch(t){return -1}},e.la=function(){try{return this.g?this.g.responseText:""}catch(t){return""}},e.La=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),tp(e)}},e.ya=function(){return this.o},e.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(e=eP.prototype).ka=8,e.I=1,e.connect=function(t,e,r,n){tT(0),this.W=t,this.H=e||{},r&&void 0!==n&&(this.H.OSID=r,this.H.OAID=n),this.F=this.X,this.J=eZ(this,null,this.W),ej(this)},e.Ea=function(t){if(this.m)if(this.m=null,1==this.I){if(!t){this.V=Math.floor(1e5*Math.random()),t=this.V++;let i=new tP(this,this.j,t),o=this.o;if(this.U&&(o?K(o=V(o),this.U):o=this.U),null!==this.u||this.R||(i.J=o,o=null),this.S)t:{for(var e=0,r=0;r4096){e=r;break t}if(4096===e||r===this.i.length-1){e=r+1;break t}}e=1e3}else e=1e3;e=e$(this,i,e),t7(r=t3(this.J),"RID",t),t7(r,"CVER",22),this.G&&t7(r,"X-HTTP-Session-Id",this.G),eH(this,r),o&&(this.R?e="headers="+tL(ex(o))+"&"+e:this.u&&eA(r,this.u,o)),tQ(this.h,i),this.Ra&&t7(r,"TYPE","init"),this.S?(t7(r,"$req",e),t7(r,"SID","null"),i.U=!0,tj(i,r,null)):tj(i,r,e),this.I=2}}else 3==this.I&&(t?eF(this,t):0==this.i.length||tJ(this.h)||eF(this))},e.Da=function(){if(this.v=null,eK(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var t=4*this.T;this.j.info("BP detection timer enabled: "+t),this.B=tS(v(this.Wa,this),t)}},e.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,tT(10),eM(this),eK(this))},e.Va=function(){null!=this.C&&(this.C=null,eM(this),eV(this),tT(19))},e.bb=function(t){t?(this.j.info("Successfully pinged google.com"),tT(2)):(this.j.info("Failed to ping google.com"),tT(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=e0.prototype).ra=function(){},e.qa=function(){},e.pa=function(){},e.oa=function(){},e.isActive=function(){return!0},e.Ka=function(){},e1.prototype.g=function(t,e){return new e2(t,e)},_(e2,to),e2.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},e2.prototype.close=function(){eN(this.g)},e2.prototype.o=function(t){var e=this.g;if("string"==typeof t){var r={};r.__data__=t,t=r}else this.v&&((r={}).__data__=tc(t),t=r);e.i.push(new tq(e.Ya++,t)),3==e.I&&ej(e)},e2.prototype.N=function(){this.g.l=null,delete this.j,eN(this.g),delete this.g,e2.Z.N.call(this)},_(e6,tb),_(e3,tv),_(e5,e0),e5.prototype.ra=function(){ts(this.g,"a")},e5.prototype.qa=function(t){ts(this.g,new e6(t))},e5.prototype.pa=function(t){ts(this.g,new e3)},e5.prototype.oa=function(){ts(this.g,"b")},e1.prototype.createWebChannel=e1.prototype.g,e2.prototype.send=e2.prototype.o,e2.prototype.open=e2.prototype.m,e2.prototype.close=e2.prototype.close,l=c.createWebChannelTransport=function(){return new e1},h=c.getStatEventTarget=function(){return tE()},f=c.Event=tw,a=c.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},tk.NO_ERROR=0,tk.TIMEOUT=8,tk.HTTP_ERROR=6,s=c.ErrorCode=tk,tD.COMPLETE="complete",o=c.EventType=tD,ty.EventType=tm,tm.OPEN="a",tm.CLOSE="b",tm.ERROR="c",tm.MESSAGE="d",to.prototype.listen=to.prototype.J,i=c.WebChannel=ty,c.FetchXmlHttpFactory=eb,eI.prototype.listenOnce=eI.prototype.K,eI.prototype.getLastError=eI.prototype.Ha,eI.prototype.getLastErrorCode=eI.prototype.ya,eI.prototype.getStatus=eI.prototype.ca,eI.prototype.getResponseJson=eI.prototype.La,eI.prototype.getResponseText=eI.prototype.la,eI.prototype.send=eI.prototype.ea,eI.prototype.setWithCredentials=eI.prototype.Fa,n=c.XhrIo=eI}).apply(void 0!==u?u:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},1280:(t,e,r)=>{"use strict";r.d(e,{cY:()=>_,FA:()=>H,g:()=>F,dM:()=>j,u:()=>u,Uj:()=>l,p9:()=>Y,Fy:()=>A,tD:()=>q,bD:()=>function t(e,r){if(e===r)return!0;let n=Object.keys(e),i=Object.keys(r);for(let o of n){if(!i.includes(o))return!1;let n=e[o],s=r[o];if(V(n)&&V(s)){if(!t(n,s))return!1}else if(n!==s)return!1}for(let t of i)if(!n.includes(t))return!1;return!0},hp:()=>X,T9:()=>v,Tj:()=>m,yU:()=>b,XA:()=>w,mS:()=>c,Ku:()=>Z,ZQ:()=>S,sr:()=>D,zJ:()=>E,c1:()=>k,Im:()=>z,lT:()=>L,zW:()=>M,jZ:()=>O,lV:()=>B,nr:()=>P,Ov:()=>N,gE:()=>x,Am:()=>W,I9:()=>K,P1:()=>C,eX:()=>U});let n=()=>void 0;var i=r(9509);let o=function(t){let e=[],r=0;for(let n=0;n>6|192:((64512&i)==55296&&n+1>18|240,e[r++]=i>>12&63|128):e[r++]=i>>12|224,e[r++]=i>>6&63|128),e[r++]=63&i|128)}return e},s=function(t){let e=[],r=0,n=0;for(;r191&&i<224){let o=t[r++];e[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=t[r++],s=((7&i)<<18|(63&o)<<12|(63&t[r++])<<6|63&t[r++])-65536;e[n++]=String.fromCharCode(55296+(s>>10)),e[n++]=String.fromCharCode(56320+(1023&s))}else{let o=t[r++],s=t[r++];e[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")},a={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(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let e=0;e>2,l=(3&i)<<4|s>>4,u=(15&s)<<2|f>>6,c=63&f;a||(c=64,o||(u=64)),n.push(r[h],r[l],r[u],r[c])}return n.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(o(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):s(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();let r=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let e=0;e>4;if(n.push(h),64!==s){let t=o<<4&240|s>>2;if(n.push(t),64!==a){let t=s<<6&192|a;n.push(t)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class f extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let h=function(t){let e=o(t);return a.encodeByteArray(e,!0)},l=function(t){return h(t).replace(/\./g,"")},u=function(t){try{return a.decodeString(t,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function c(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")}let p=()=>c().__FIREBASE_DEFAULTS__,d=()=>{if(void 0===i||void 0===i.env)return;let t=i.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},g=()=>{let t;if("undefined"==typeof document)return;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(t){return}let e=t&&u(t[1]);return e&&JSON.parse(e)},y=()=>{try{return n()||p()||d()||g()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},m=t=>y()?.emulatorHosts?.[t],b=t=>{let e=m(t);if(!e)return;let r=e.lastIndexOf(":");if(r<=0||r+1===e.length)throw Error(`Invalid host ${e} with no separate hostname and port!`);let n=parseInt(e.substring(r+1),10);return"["===e[0]?[e.substring(1,r-1),n]:[e.substring(0,r),n]},v=()=>y()?.config,w=t=>y()?.[`_${t}`];class _{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}wrapCallback(t){return(e,r)=>{e?this.reject(e):this.resolve(r),"function"==typeof t&&(this.promise.catch(()=>{}),1===t.length?t(e):t(e,r))}}}function E(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return!1}}async function x(t){return(await fetch(t,{credentials:"include"})).ok}function A(t,e){if(t.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=e||"demo-project",n=t.iat||0,i=t.sub||t.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let o={iss:`https://securetoken.google.com/${r}`,aud:r,iat:n,exp:n+3600,auth_time:n,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}},...t};return[l(JSON.stringify({alg:"none",type:"JWT"})),l(JSON.stringify(o)),""].join(".")}let I={},T=!1;function C(t,e){if("undefined"==typeof window||"undefined"==typeof document||!E(window.location.host)||I[t]===e||I[t]||T)return;function r(t){return`__firebase__banner__${t}`}I[t]=e;let n="__firebase__banner",i=function(){let t={prod:[],emulator:[]};for(let e of Object.keys(I))I[e]?t.emulator.push(e):t.prod.push(e);return t}().prod.length>0;function o(){let t,e,o=(t=document.getElementById(n),e=!1,t||((t=document.createElement("div")).setAttribute("id",n),e=!0),{created:e,element:t}),s=r("text"),a=document.getElementById(s)||document.createElement("span"),f=r("learnmore"),h=document.getElementById(f)||document.createElement("a"),l=r("preprendIcon"),u=document.getElementById(l)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(o.created){let t=o.element;t.style.display="flex",t.style.background="#7faaf0",t.style.position="fixed",t.style.bottom="5px",t.style.left="5px",t.style.padding=".5em",t.style.borderRadius="5px",t.style.alignItems="center",h.setAttribute("id",f),h.innerText="Learn more",h.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",h.setAttribute("target","__blank"),h.style.paddingLeft="5px",h.style.textDecoration="underline";let e=function(){let t=document.createElement("span");return t.style.cursor="pointer",t.style.marginLeft="16px",t.style.fontSize="24px",t.innerHTML=" ×",t.onclick=()=>{T=!0;let t=document.getElementById(n);t&&t.remove()},t}();u.setAttribute("width","24"),u.setAttribute("id",l),u.setAttribute("height","24"),u.setAttribute("viewBox","0 0 24 24"),u.setAttribute("fill","none"),u.style.marginLeft="-6px",t.append(u,a,h,e),document.body.appendChild(t)}i?(a.innerText="Preview backend disconnected.",u.innerHTML=` `):(u.innerHTML=` `,a.innerText="Preview backend running in this workspace."),a.setAttribute("id",s)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",o):o()}function S(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function O(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(S())}function R(){let t=y()?.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(t){return!1}}function k(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function D(){let t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function B(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function L(){let t=S();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function P(){return!R()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function N(){return!R()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function M(){try{return"object"==typeof indexedDB}catch(t){return!1}}function U(){return new Promise((t,e)=>{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),t(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{e(i.error?.message||"")}}catch(t){e(t)}})}function j(){return"undefined"!=typeof navigator&&!!navigator.cookieEnabled}class F extends Error{constructor(t,e,r){super(e),this.code=t,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,F.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,H.prototype.create)}}class H{constructor(t,e,r){this.service=t,this.serviceName=e,this.errors=r}create(t,...e){var r,n;let i=e[0]||{},o=`${this.service}/${t}`,s=this.errors[t],a=s?(r=s,n=i,r.replace($,(t,e)=>{let r=n[e];return null!=r?String(r):`<${e}?>`})):"Error",f=`${this.serviceName}: ${a} (${o}).`;return new F(o,f,i)}}let $=/\{\$([^}]+)}/g;function z(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function V(t){return null!==t&&"object"==typeof t}function W(t){let e=[];for(let[r,n]of Object.entries(t))Array.isArray(n)?n.forEach(t=>{e.push(encodeURIComponent(r)+"="+encodeURIComponent(t))}):e.push(encodeURIComponent(r)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}function K(t){let e={};return t.replace(/^\?/,"").split("&").forEach(t=>{if(t){let[r,n]=t.split("=");e[decodeURIComponent(r)]=decodeURIComponent(n)}}),e}function X(t){let e=t.indexOf("?");if(!e)return"";let r=t.indexOf("#",e);return t.substring(e,r>0?r:void 0)}function q(t,e){let r=new G(t,e);return r.subscribe.bind(r)}class G{constructor(t,e){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then(()=>{t(this)}).catch(t=>{this.error(t)})}next(t){this.forEachObserver(e=>{e.next(t)})}error(t){this.forEachObserver(e=>{e.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,e,r){let n;if(void 0===t&&void 0===e&&void 0===r)throw Error("Missing Observer.");void 0===(n=!function(t,e){if("object"!=typeof t||null===t)return!1;for(let r of e)if(r in t&&"function"==typeof t[r])return!0;return!1}(t,["next","error","complete"])?{next:t,error:e,complete:r}:t).next&&(n.next=J),void 0===n.error&&(n.error=J),void 0===n.complete&&(n.complete=J);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?n.error(this.finalError):n.complete()}catch(t){}}),this.observers.push(n),i}unsubscribeOne(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let e=0;e{if(void 0!==this.observers&&void 0!==this.observers[t])try{e(this.observers[t])}catch(t){"undefined"!=typeof console&&console.error&&console.error(t)}})}close(t){this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function J(){}function Y(t,e=1e3,r=2){let n=e*Math.pow(r,t),i=Math.round(.5*n*(Math.random()-.5)*2);return Math.min(144e5,n+i)}function Z(t){return t&&t._delegate?t._delegate:t}},1906:(t,e,r)=>{"use strict";let n,i,o,s;r.d(e,{P5:()=>tA});var a=r(4093),f=r(6702),h=r(1280),l=r(2881),u=r(6984);let c="@firebase/installations",p="0.6.19",d=`w:${p}`,g="FIS_v2",y=new h.FA("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 m(t){return t instanceof h.g&&t.code.includes("request-failed")}function b({projectId:t}){return`https://firebaseinstallations.googleapis.com/v1/projects/${t}/installations`}function v(t){return{token:t.token,requestStatus:2,expiresIn:Number(t.expiresIn.replace("s","000")),creationTime:Date.now()}}async function w(t,e){let r=(await e.json()).error;return y.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function _({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function E(t,{refreshToken:e}){var r;let n=_(t);return n.append("Authorization",(r=e,`${g} ${r}`)),n}async function x(t){let e=await t();return e.status>=500&&e.status<600?t():e}async function A({appConfig:t,heartbeatServiceProvider:e},{fid:r}){let n=b(t),i=_(t),o=e.getImmediate({optional:!0});if(o){let t=await o.getHeartbeatsHeader();t&&i.append("x-firebase-client",t)}let s={method:"POST",headers:i,body:JSON.stringify({fid:r,authVersion:g,appId:t.appId,sdkVersion:d})},a=await x(()=>fetch(n,s));if(a.ok){let t=await a.json();return{fid:t.fid||r,registrationStatus:2,refreshToken:t.refreshToken,authToken:v(t.authToken)}}throw await w("Create Installation",a)}function I(t){return new Promise(e=>{setTimeout(e,t)})}let T=/^[cdef][\w-]{21}$/;function C(t){return`${t.appName}!${t.appId}`}let S=new Map;function O(t,e){let r=C(t);R(r,e),function(t,e){let r=function(){return!k&&"BroadcastChannel"in self&&((k=new BroadcastChannel("[Firebase] FID Change")).onmessage=t=>{R(t.data.key,t.data.fid)}),k}();r&&r.postMessage({key:t,fid:e}),function(){0===S.size&&k&&(k.close(),k=null)}()}(r,e)}function R(t,e){let r=S.get(t);if(r)for(let t of r)t(e)}let k=null,D="firebase-installations-store",B=null;function L(){return B||(B=(0,u.P2)("firebase-installations-database",1,{upgrade:(t,e)=>{0===e&&t.createObjectStore(D)}})),B}async function P(t,e){let r=C(t),n=(await L()).transaction(D,"readwrite"),i=n.objectStore(D),o=await i.get(r);return await i.put(e,r),await n.done,o&&o.fid===e.fid||O(t,e.fid),e}async function N(t){let e=C(t),r=(await L()).transaction(D,"readwrite");await r.objectStore(D).delete(e),await r.done}async function M(t,e){let r=C(t),n=(await L()).transaction(D,"readwrite"),i=n.objectStore(D),o=await i.get(r),s=e(o);return void 0===s?await i.delete(r):await i.put(s,r),await n.done,s&&(!o||o.fid!==s.fid)&&O(t,s.fid),s}async function U(t){let e,r=await M(t.appConfig,r=>{let n=function(t,e){if(0===e.registrationStatus){if(!navigator.onLine)return{installationEntry:e,registrationPromise:Promise.reject(y.create("app-offline"))};let r={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},n=j(t,r);return{installationEntry:r,registrationPromise:n}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:F(t)}:{installationEntry:e}}(t,$(r||{fid:function(){try{var t;let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let r=(t=e,btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22));return T.test(r)?r:""}catch{return""}}(),registrationStatus:0}));return e=n.registrationPromise,n.installationEntry});return""===r.fid?{installationEntry:await e}:{installationEntry:r,registrationPromise:e}}async function j(t,e){try{let r=await A(t,e);return P(t.appConfig,r)}catch(r){throw m(r)&&409===r.customData.serverCode?await N(t.appConfig):await P(t.appConfig,{fid:e.fid,registrationStatus:0}),r}}async function F(t){let e=await H(t.appConfig);for(;1===e.registrationStatus;)await I(100),e=await H(t.appConfig);if(0===e.registrationStatus){let{installationEntry:e,registrationPromise:r}=await U(t);return r||e}return e}function H(t){return M(t,t=>{if(!t)throw y.create("installation-not-found");return $(t)})}function $(t){var e;return 1===(e=t).registrationStatus&&e.registrationTime+1e4fetch(n,s));if(a.ok)return v(await a.json());throw await w("Generate Auth Token",a)}async function V(t,e=!1){let r,n=await M(t.appConfig,n=>{var i;if(!q(n))throw y.create("not-registered");let o=n.authToken;if(!e&&2===(i=o).requestStatus&&!function(t){let e=Date.now();return e{var e;if(!q(t))throw y.create("not-registered");return 1===(e=t.authToken).requestStatus&&e.requestTime+1e4{let e=t.getProvider("app").getImmediate(),r=function(t){if(!t||!t.options)throw Z("App Configuration");if(!t.name)throw Z("App Name");for(let e of["projectId","apiKey","appId"])if(!t.options[e])throw Z(e);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}(e),n=(0,a.j6)(e,"heartbeat");return{app:e,appConfig:r,heartbeatServiceProvider:n,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,a.om)(new l.uA("installations-internal",t=>{let e=t.getProvider("app").getImmediate(),r=(0,a.j6)(e,Q).getImmediate();return{getId:()=>G(r),getToken:t=>J(r,t)}},"PRIVATE")),(0,a.KO)(c,p),(0,a.KO)(c,p,"esm2020");let tt="analytics",te="https://www.googletagmanager.com/gtag/js",tr=new f.Vy("@firebase/analytics"),tn=new h.FA("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function ti(t){if(!t.startsWith(te)){let e=tn.create("invalid-gtag-resource",{gtagURL:t});return tr.warn(e.message),""}return t}function to(t){return Promise.all(t.map(t=>t.catch(t=>t)))}async function ts(t,e,r,n,i,o){let s=n[i];try{if(s)await e[s];else{let t=(await to(r)).find(t=>t.measurementId===i);t&&await e[t.appId]}}catch(t){tr.error(t)}t("config",i,o)}async function ta(t,e,r,n,i){try{let o=[];if(i&&i.send_to){let t=i.send_to;Array.isArray(t)||(t=[t]);let n=await to(r);for(let r of t){let t=n.find(t=>t.measurementId===r),i=t&&e[t.appId];if(i)o.push(i);else{o=[];break}}}0===o.length&&(o=Object.values(e)),await Promise.all(o),t("event",n,i||{})}catch(t){tr.error(t)}}class tf{constructor(t={},e=1e3){this.throttleMetadata=t,this.intervalMillis=e}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,e){this.throttleMetadata[t]=e}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}}let th=new tf;async function tl(t){let{appId:e,apiKey:r}=t,n={method:"GET",headers:new Headers({Accept:"application/json","x-goog-api-key":r})},i="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",e),o=await fetch(i,n);if(200!==o.status&&304!==o.status){let t="";try{let e=await o.json();e.error?.message&&(t=e.error.message)}catch(t){}throw tn.create("config-fetch-failed",{httpStatus:o.status,responseMessage:t})}return o.json()}async function tu(t,e=th,r){let{appId:n,apiKey:i,measurementId:o}=t.options;if(!n)throw tn.create("no-app-id");if(!i){if(o)return{measurementId:o,appId:n};throw tn.create("no-api-key")}let s=e.getThrottleMetadata(n)||{backoffCount:0,throttleEndTimeMillis:Date.now()},a=new tp;return setTimeout(async()=>{a.abort()},void 0!==r?r:6e4),tc({appId:n,apiKey:i,measurementId:o},s,a,e)}async function tc(t,{throttleEndTimeMillis:e,backoffCount:r},n,i=th){let{appId:o,measurementId:s}=t;try{var a,f;await (a=n,f=e,new Promise((t,e)=>{let r=setTimeout(t,Math.max(f-Date.now(),0));a.addEventListener(()=>{clearTimeout(r),e(tn.create("fetch-throttle",{throttleEndTimeMillis:f}))})}))}catch(t){if(s)return tr.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${s} provided in the "measurementId" field in the local Firebase config. [${t?.message}]`),{appId:o,measurementId:s};throw t}try{let e=await tl(t);return i.deleteThrottleMetadata(o),e}catch(f){if(!function(t){if(!(t instanceof h.g)||!t.customData)return!1;let e=Number(t.customData.httpStatus);return 429===e||500===e||503===e||504===e}(f)){if(i.deleteThrottleMetadata(o),s)return tr.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${s} provided in the "measurementId" field in the local Firebase config. [${f?.message}]`),{appId:o,measurementId:s};throw f}let e=503===Number(f?.customData?.httpStatus)?(0,h.p9)(r,i.intervalMillis,30):(0,h.p9)(r,i.intervalMillis),a={throttleEndTimeMillis:Date.now()+e,backoffCount:r+1};return i.setThrottleMetadata(o,a),tr.debug(`Calling attemptFetch again in ${e} millis`),tc(t,a,n,i)}}class tp{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}async function td(t,e,r,n,i){if(i&&i.global){t("event",r,n);return}{let i=await e;t("event",r,{...n,send_to:i})}}async function tg(t,e,r,n){if(n&&n.global){let e={};for(let t of Object.keys(r))e[`user_properties.${t}`]=r[t];return t("set",e),Promise.resolve()}t("config",await e,{update:!0,user_properties:r})}async function ty(){if(!(0,h.zW)())return tr.warn(tn.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await (0,h.eX)()}catch(t){return tr.warn(tn.create("indexeddb-unavailable",{errorInfo:t?.toString()}).message),!1}return!0}async function tm(t,e,r,o,s,a,f){let h=tu(t);h.then(e=>{r[e.measurementId]=e.appId,t.options.measurementId&&e.measurementId!==t.options.measurementId&&tr.warn(`The measurement ID in the local Firebase config (${t.options.measurementId}) does not match the measurement ID fetched from the server (${e.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(t=>tr.error(t)),e.push(h);let l=ty().then(t=>t?o.getId():void 0),[u,c]=await Promise.all([h,l]);!function(t){for(let e of Object.values(window.document.getElementsByTagName("script")))if(e.src&&e.src.includes(te)&&e.src.includes(t))return e;return null}(a)&&function(t,e){let r,n=(window.trustedTypes&&(r=window.trustedTypes.createPolicy("firebase-js-sdk-policy",{createScriptURL:ti})),r),i=document.createElement("script"),o=`${te}?l=${t}&id=${e}`;i.src=n?n?.createScriptURL(o):o,i.async=!0,document.head.appendChild(i)}(a,u.measurementId),i&&(s("consent","default",i),i=void 0),s("js",new Date);let p=f?.config??{};return p.origin="firebase",p.update=!0,null!=c&&(p.firebase_id=c),s("config",u.measurementId,p),n&&(s("set",n),n=void 0),u.measurementId}class tb{constructor(t){this.app=t}_delete(){return delete tv[this.app.options.appId],Promise.resolve()}}let tv={},tw=[],t_={},tE="dataLayer",tx=!1;function tA(t=(0,a.Sx)()){t=(0,h.Ku)(t);let e=(0,a.j6)(t,tt);return e.isInitialized()?e.getImmediate():function(t,e={}){let r=(0,a.j6)(t,tt);if(r.isInitialized()){let t=r.getImmediate();if((0,h.bD)(e,r.getOptions()))return t;throw tn.create("already-initialized")}return r.initialize({options:e})}(t)}let tI="@firebase/analytics",tT="0.10.19";(0,a.om)(new l.uA(tt,(t,{options:e})=>(function(t,e,r){let n=[];if((0,h.sr)()&&n.push("This is a browser extension environment."),(0,h.dM)()||n.push("Cookies are not available."),n.length>0){let t=n.map((t,e)=>`(${e+1}) ${t}`).join(" "),e=tn.create("invalid-analytics-context",{errorInfo:t});tr.warn(e.message)}let i=t.options.appId;if(!i)throw tn.create("no-app-id");if(!t.options.apiKey)if(t.options.measurementId)tr.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${t.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw tn.create("no-api-key");if(null!=tv[i])throw tn.create("already-exists",{id:i});if(!tx){var a,f;let t,e;t=[],Array.isArray(window[tE])?t=window[tE]:window[tE]=t;let{wrappedGtag:r,gtagCore:n}=(a="gtag",e=function(...t){window[tE].push(arguments)},window[a]&&"function"==typeof window[a]&&(e=window[a]),window[a]=(f=e,async function(t,...e){try{if("event"===t){let[t,r]=e;await ta(f,tv,tw,t,r)}else if("config"===t){let[t,r]=e;await ts(f,tv,tw,t_,t,r)}else if("consent"===t){let[t,r]=e;f("consent",t,r)}else if("get"===t){let[t,r,n]=e;f("get",t,r,n)}else if("set"===t){let[t]=e;f("set",t)}else f(t,...e)}catch(t){tr.error(t)}}),{gtagCore:e,wrappedGtag:window[a]});s=r,o=n,tx=!0}return tv[i]=tm(t,tw,t_,e,o,tE,r),new tb(t)})(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),e),"PUBLIC")),(0,a.om)(new l.uA("analytics-internal",function(t){try{let e=t.getProvider(tt).getImmediate();return{logEvent:(t,r,n)=>{var i;return i=e,void(i=(0,h.Ku)(i),td(s,tv[i.app.options.appId],t,r,n).catch(t=>tr.error(t)))},setUserProperties:(t,r)=>{var n;return n=e,void(n=(0,h.Ku)(n),tg(s,tv[n.app.options.appId],t,r).catch(t=>tr.error(t)))}}}catch(t){throw tn.create("interop-component-reg-failed",{reason:t})}},"PRIVATE")),(0,a.KO)(tI,tT),(0,a.KO)(tI,tT,"esm2020")},2107:(t,e,r)=>{"use strict";r.d(e,{VV:()=>i,jz:()=>n});var n,i,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={};(function(){function t(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.C=Array(this.blockSize),this.o=this.h=0,this.u()}var e=function(){this.blockSize=-1};function r(){}function o(t,e,r){r||(r=0);let n=Array(16);if("string"==typeof e)for(var i=0;i<16;++i)n[i]=e.charCodeAt(r++)|e.charCodeAt(r++)<<8|e.charCodeAt(r++)<<16|e.charCodeAt(r++)<<24;else for(i=0;i<16;++i)n[i]=e[r++]|e[r++]<<8|e[r++]<<16|e[r++]<<24;e=t.g[0],r=t.g[1],i=t.g[2];let o=t.g[3],s;s=e+(o^r&(i^o))+n[0]+0xd76aa478&0xffffffff,s=o+(i^(e=r+(s<<7&0xffffffff|s>>>25))&(r^i))+n[1]+0xe8c7b756&0xffffffff,s=i+(r^(o=e+(s<<12&0xffffffff|s>>>20))&(e^r))+n[2]+0x242070db&0xffffffff,s=r+(e^(i=o+(s<<17&0xffffffff|s>>>15))&(o^e))+n[3]+0xc1bdceee&0xffffffff,s=e+(o^(r=i+(s<<22&0xffffffff|s>>>10))&(i^o))+n[4]+0xf57c0faf&0xffffffff,s=o+(i^(e=r+(s<<7&0xffffffff|s>>>25))&(r^i))+n[5]+0x4787c62a&0xffffffff,s=i+(r^(o=e+(s<<12&0xffffffff|s>>>20))&(e^r))+n[6]+0xa8304613&0xffffffff,s=r+(e^(i=o+(s<<17&0xffffffff|s>>>15))&(o^e))+n[7]+0xfd469501&0xffffffff,s=e+(o^(r=i+(s<<22&0xffffffff|s>>>10))&(i^o))+n[8]+0x698098d8&0xffffffff,s=o+(i^(e=r+(s<<7&0xffffffff|s>>>25))&(r^i))+n[9]+0x8b44f7af&0xffffffff,s=i+(r^(o=e+(s<<12&0xffffffff|s>>>20))&(e^r))+n[10]+0xffff5bb1&0xffffffff,s=r+(e^(i=o+(s<<17&0xffffffff|s>>>15))&(o^e))+n[11]+0x895cd7be&0xffffffff,s=e+(o^(r=i+(s<<22&0xffffffff|s>>>10))&(i^o))+n[12]+0x6b901122&0xffffffff,s=o+(i^(e=r+(s<<7&0xffffffff|s>>>25))&(r^i))+n[13]+0xfd987193&0xffffffff,s=i+(r^(o=e+(s<<12&0xffffffff|s>>>20))&(e^r))+n[14]+0xa679438e&0xffffffff,s=r+(e^(i=o+(s<<17&0xffffffff|s>>>15))&(o^e))+n[15]+0x49b40821&0xffffffff,r=i+(s<<22&0xffffffff|s>>>10),s=e+(i^o&(r^i))+n[1]+0xf61e2562&0xffffffff,e=r+(s<<5&0xffffffff|s>>>27),s=o+(r^i&(e^r))+n[6]+0xc040b340&0xffffffff,o=e+(s<<9&0xffffffff|s>>>23),s=i+(e^r&(o^e))+n[11]+0x265e5a51&0xffffffff,i=o+(s<<14&0xffffffff|s>>>18),s=r+(o^e&(i^o))+n[0]+0xe9b6c7aa&0xffffffff,r=i+(s<<20&0xffffffff|s>>>12),s=e+(i^o&(r^i))+n[5]+0xd62f105d&0xffffffff,e=r+(s<<5&0xffffffff|s>>>27),s=o+(r^i&(e^r))+n[10]+0x2441453&0xffffffff,o=e+(s<<9&0xffffffff|s>>>23),s=i+(e^r&(o^e))+n[15]+0xd8a1e681&0xffffffff,i=o+(s<<14&0xffffffff|s>>>18),s=r+(o^e&(i^o))+n[4]+0xe7d3fbc8&0xffffffff,r=i+(s<<20&0xffffffff|s>>>12),s=e+(i^o&(r^i))+n[9]+0x21e1cde6&0xffffffff,e=r+(s<<5&0xffffffff|s>>>27),s=o+(r^i&(e^r))+n[14]+0xc33707d6&0xffffffff,o=e+(s<<9&0xffffffff|s>>>23),s=i+(e^r&(o^e))+n[3]+0xf4d50d87&0xffffffff,i=o+(s<<14&0xffffffff|s>>>18),s=r+(o^e&(i^o))+n[8]+0x455a14ed&0xffffffff,r=i+(s<<20&0xffffffff|s>>>12),s=e+(i^o&(r^i))+n[13]+0xa9e3e905&0xffffffff,e=r+(s<<5&0xffffffff|s>>>27),s=o+(r^i&(e^r))+n[2]+0xfcefa3f8&0xffffffff,o=e+(s<<9&0xffffffff|s>>>23),s=i+(e^r&(o^e))+n[7]+0x676f02d9&0xffffffff,i=o+(s<<14&0xffffffff|s>>>18),s=r+(o^e&(i^o))+n[12]+0x8d2a4c8a&0xffffffff,s=e+((r=i+(s<<20&0xffffffff|s>>>12))^i^o)+n[5]+0xfffa3942&0xffffffff,s=o+((e=r+(s<<4&0xffffffff|s>>>28))^r^i)+n[8]+0x8771f681&0xffffffff,s=i+((o=e+(s<<11&0xffffffff|s>>>21))^e^r)+n[11]+0x6d9d6122&0xffffffff,s=r+((i=o+(s<<16&0xffffffff|s>>>16))^o^e)+n[14]+0xfde5380c&0xffffffff,s=e+((r=i+(s<<23&0xffffffff|s>>>9))^i^o)+n[1]+0xa4beea44&0xffffffff,s=o+((e=r+(s<<4&0xffffffff|s>>>28))^r^i)+n[4]+0x4bdecfa9&0xffffffff,s=i+((o=e+(s<<11&0xffffffff|s>>>21))^e^r)+n[7]+0xf6bb4b60&0xffffffff,s=r+((i=o+(s<<16&0xffffffff|s>>>16))^o^e)+n[10]+0xbebfbc70&0xffffffff,s=e+((r=i+(s<<23&0xffffffff|s>>>9))^i^o)+n[13]+0x289b7ec6&0xffffffff,s=o+((e=r+(s<<4&0xffffffff|s>>>28))^r^i)+n[0]+0xeaa127fa&0xffffffff,s=i+((o=e+(s<<11&0xffffffff|s>>>21))^e^r)+n[3]+0xd4ef3085&0xffffffff,s=r+((i=o+(s<<16&0xffffffff|s>>>16))^o^e)+n[6]+0x4881d05&0xffffffff,s=e+((r=i+(s<<23&0xffffffff|s>>>9))^i^o)+n[9]+0xd9d4d039&0xffffffff,s=o+((e=r+(s<<4&0xffffffff|s>>>28))^r^i)+n[12]+0xe6db99e5&0xffffffff,s=i+((o=e+(s<<11&0xffffffff|s>>>21))^e^r)+n[15]+0x1fa27cf8&0xffffffff,s=r+((i=o+(s<<16&0xffffffff|s>>>16))^o^e)+n[2]+0xc4ac5665&0xffffffff,r=i+(s<<23&0xffffffff|s>>>9),s=e+(i^(r|~o))+n[0]+0xf4292244&0xffffffff,e=r+(s<<6&0xffffffff|s>>>26),s=o+(r^(e|~i))+n[7]+0x432aff97&0xffffffff,o=e+(s<<10&0xffffffff|s>>>22),s=i+(e^(o|~r))+n[14]+0xab9423a7&0xffffffff,i=o+(s<<15&0xffffffff|s>>>17),s=r+(o^(i|~e))+n[5]+0xfc93a039&0xffffffff,r=i+(s<<21&0xffffffff|s>>>11),s=e+(i^(r|~o))+n[12]+0x655b59c3&0xffffffff,e=r+(s<<6&0xffffffff|s>>>26),s=o+(r^(e|~i))+n[3]+0x8f0ccc92&0xffffffff,o=e+(s<<10&0xffffffff|s>>>22),s=i+(e^(o|~r))+n[10]+0xffeff47d&0xffffffff,i=o+(s<<15&0xffffffff|s>>>17),s=r+(o^(i|~e))+n[1]+0x85845dd1&0xffffffff,r=i+(s<<21&0xffffffff|s>>>11),s=e+(i^(r|~o))+n[8]+0x6fa87e4f&0xffffffff,e=r+(s<<6&0xffffffff|s>>>26),s=o+(r^(e|~i))+n[15]+0xfe2ce6e0&0xffffffff,o=e+(s<<10&0xffffffff|s>>>22),s=i+(e^(o|~r))+n[6]+0xa3014314&0xffffffff,i=o+(s<<15&0xffffffff|s>>>17),s=r+(o^(i|~e))+n[13]+0x4e0811a1&0xffffffff,r=i+(s<<21&0xffffffff|s>>>11),s=e+(i^(r|~o))+n[4]+0xf7537e82&0xffffffff,e=r+(s<<6&0xffffffff|s>>>26),s=o+(r^(e|~i))+n[11]+0xbd3af235&0xffffffff,o=e+(s<<10&0xffffffff|s>>>22),s=i+(e^(o|~r))+n[2]+0x2ad7d2bb&0xffffffff,i=o+(s<<15&0xffffffff|s>>>17),s=r+(o^(i|~e))+n[9]+0xeb86d391&0xffffffff,t.g[0]=t.g[0]+e&0xffffffff,t.g[1]=t.g[1]+(i+(s<<21&0xffffffff|s>>>11))&0xffffffff,t.g[2]=t.g[2]+i&0xffffffff,t.g[3]=t.g[3]+o&0xffffffff}function a(t,e){this.h=e;let r=[],n=!0;for(let i=t.length-1;i>=0;i--){let o=0|t[i];n&&o==e||(r[i]=o,n=!1)}this.g=r}r.prototype=e.prototype,t.F=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.D=function(t,r,n){for(var i=Array(arguments.length-2),o=2;o>>n&255;return t};var f,h={};function l(t){var e;return -128<=t&&t<128?Object.prototype.hasOwnProperty.call(h,t)?h[t]:h[t]=new a([0|(e=t)],e<0?-1:0):new a([0|t],t<0?-1:0)}function u(t){if(isNaN(t)||!isFinite(t))return c;if(t<0)return m(u(-t));let e=[],r=1;for(let n=0;t>=r;n++)e[n]=t/r|0,r*=0x100000000;return new a(e,0)}var c=l(0),p=l(1),d=l(0x1000000);function g(t){if(0!=t.h)return!1;for(let e=0;e>>16,t[e]&=65535,e++}function w(t,e){this.g=t,this.h=e}function _(t,e){if(g(e))throw Error("division by zero");if(g(t))return new w(c,c);if(y(t))return e=_(m(t),e),new w(m(e.g),m(e.h));if(y(e))return e=_(t,m(e)),new w(m(e.g),e.h);if(t.g.length>30){if(y(t)||y(e))throw Error("slowDivide_ only works with positive integers.");for(var r=p,n=e;0>=n.l(t);)r=E(r),n=E(n);var i=x(r,1),o=x(n,1);for(n=x(n,2),r=x(r,2);!g(n);){var s=o.add(n);0>=s.l(t)&&(i=i.add(r),o=s),n=x(n,1),r=x(r,1)}return e=b(t,i.j(e)),new w(i,e)}for(i=c;t.l(e)>=0;){for(n=(n=Math.ceil(Math.log(r=Math.max(1,Math.floor(t.m()/e.m())))/Math.LN2))<=48?1:Math.pow(2,n-48),s=(o=u(r)).j(e);y(s)||s.l(t)>0;)r-=n,s=(o=u(r)).j(e);g(o)&&(o=p),i=i.add(o),t=b(t,s)}return new w(i,t)}function E(t){let e=t.g.length+1,r=[];for(let n=0;n>>31;return new a(r,t.h)}function x(t,e){let r=e>>5;e%=32;let n=t.g.length-r,i=[];for(let o=0;o0?t.i(o+r)>>>e|t.i(o+r+1)<<32-e:t.i(o+r);return new a(i,t.h)}(f=a.prototype).m=function(){if(y(this))return-m(this).m();let t=0,e=1;for(let r=0;r=0?n:0x100000000+n)*e,e*=0x100000000}return t},f.toString=function(t){if((t=t||10)<2||360?r.g[0]:r.h)>>>0).toString(t);if(g(r=i))return o+n;for(;o.length<6;)o="0"+o;n=o+n}},f.i=function(t){return t<0?0:t>>16)+(this.i(i)>>>16)+(t.i(i)>>>16);n=o>>>16,e&=65535,o&=65535,r[i]=o<<16|e}return new a(r,-0x80000000&r[r.length-1]?-1:0)},f.j=function(t){if(g(this)||g(t))return c;if(y(this))return y(t)?m(this).j(m(t)):m(m(this).j(t));if(y(t))return m(this.j(m(t)));if(0>this.l(d)&&0>t.l(d))return u(this.m()*t.m());let e=this.g.length+t.g.length,r=[];for(var n=0;n<2*e;n++)r[n]=0;for(n=0;n>>16,o=65535&this.i(n),s=t.i(e)>>>16,a=65535&t.i(e);r[2*n+2*e]+=o*a,v(r,2*n+2*e),r[2*n+2*e+1]+=i*a,v(r,2*n+2*e+1),r[2*n+2*e+1]+=o*s,v(r,2*n+2*e+1),r[2*n+2*e+2]+=i*s,v(r,2*n+2*e+2)}for(t=0;t=0)throw Error('number format error: interior "-" character');let n=u(Math.pow(r,8)),i=c;for(let t=0;t{"use strict";r.d(e,{h1:()=>a,uA:()=>i});var n=r(1280);class i{constructor(t,e,r){this.name=t,this.instanceFactory=e,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}let o="[DEFAULT]";class s{constructor(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){let e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){let t=new n.cY;if(this.instancesDeferred.set(e,t),this.isInitialized(e)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:e});r&&t.resolve(r)}catch(t){}}return this.instancesDeferred.get(e).promise}getImmediate(t){let e=this.normalizeInstanceIdentifier(t?.identifier),r=t?.optional??!1;if(this.isInitialized(e)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:e})}catch(t){if(r)return null;throw t}else if(r)return null;else throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,this.shouldAutoInitialize()){if("EAGER"===t.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:o})}catch(t){}for(let[t,e]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(t);try{let t=this.getOrInitializeService({instanceIdentifier:r});e.resolve(t)}catch(t){}}}}clearInstance(t=o){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){let t=Array.from(this.instances.values());await Promise.all([...t.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...t.filter(t=>"_delete"in t).map(t=>t._delete())])}isComponentSet(){return null!=this.component}isInitialized(t=o){return this.instances.has(t)}getOptions(t=o){return this.instancesOptions.get(t)||{}}initialize(t={}){let{options:e={}}=t,r=this.normalizeInstanceIdentifier(t.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`);let n=this.getOrInitializeService({instanceIdentifier:r,options:e});for(let[t,e]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(t)&&e.resolve(n);return n}onInit(t,e){let r=this.normalizeInstanceIdentifier(e),n=this.onInitCallbacks.get(r)??new Set;n.add(t),this.onInitCallbacks.set(r,n);let i=this.instances.get(r);return i&&t(i,r),()=>{n.delete(t)}}invokeOnInitCallbacks(t,e){let r=this.onInitCallbacks.get(e);if(r)for(let n of r)try{n(t,e)}catch{}}getOrInitializeService({instanceIdentifier:t,options:e={}}){var r;let n=this.instances.get(t);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=t)===o?void 0:r,options:e}),this.instances.set(t,n),this.instancesOptions.set(t,e),this.invokeOnInitCallbacks(n,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,n)}catch{}return n||null}normalizeInstanceIdentifier(t=o){return this.component?this.component.multipleInstances?t:o:t}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{constructor(t){this.name=t,this.providers=new Map}addComponent(t){let e=this.getProvider(t.name);if(e.isComponentSet())throw Error(`Component ${t.name} has already been registered with ${this.name}`);e.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);let e=new s(t,this);return this.providers.set(t,e),e}getProviders(){return Array.from(this.providers.values())}}},3915:(t,e,r)=>{"use strict";r.d(e,{Dk:()=>n.Dk,Sx:()=>n.Sx,Wp:()=>n.Wp});var n=r(4093);(0,n.KO)("firebase","12.6.0","app")},4093:(t,e,r)=>{"use strict";r.d(e,{Dk:()=>T,KO:()=>S,MF:()=>x,Sx:()=>I,Wp:()=>A,j6:()=>b,om:()=>m,xZ:()=>v});var n=r(2881),i=r(6702),o=r(1280),s=r(6984);class a{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(!function(t){let e=t.getComponent();return e?.type==="VERSION"}(t))return null;{let e=t.getImmediate();return`${e.library}/${e.version}`}}).filter(t=>t).join(" ")}}let f="@firebase/app",h="0.14.6",l=new i.Vy("@firebase/app"),u="[DEFAULT]",c={[f]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},p=new Map,d=new Map,g=new Map;function y(t,e){try{t.container.addComponent(e)}catch(r){l.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,r)}}function m(t){let e=t.name;if(g.has(e))return l.debug(`There were multiple attempts to register component ${e}.`),!1;for(let r of(g.set(e,t),p.values()))y(r,t);for(let e of d.values())y(e,t);return!0}function b(t,e){let r=t.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),t.container.getProvider(e)}function v(t){return null!=t&&void 0!==t.settings}let w=new o.FA("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 _{constructor(t,e,r){this._isDeleted=!1,this._options={...t},this._config={...e},this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new n.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw w.create("app-deleted",{appName:this._name})}}function E(t,e){let r=(0,o.u)(t.split(".")[1]);if(null===r){console.error(`FirebaseServerApp ${e} is invalid: second part could not be parsed.`);return}if(void 0===JSON.parse(r).exp){console.error(`FirebaseServerApp ${e} is invalid: expiration claim could not be parsed`);return}let n=1e3*JSON.parse(r).exp;n-new Date().getTime()<=0&&console.error(`FirebaseServerApp ${e} is invalid: the token has expired.`)}let x="12.6.0";function A(t,e={}){let r=t;"object"!=typeof e&&(e={name:e});let i={name:u,automaticDataCollectionEnabled:!0,...e},s=i.name;if("string"!=typeof s||!s)throw w.create("bad-app-name",{appName:String(s)});if(r||(r=(0,o.T9)()),!r)throw w.create("no-options");let a=p.get(s);if(a)if((0,o.bD)(r,a.options)&&(0,o.bD)(i,a.config))return a;else throw w.create("duplicate-app",{appName:s});let f=new n.h1(s);for(let t of g.values())f.addComponent(t);let h=new _(r,i,f);return p.set(s,h),h}function I(t=u){let e=p.get(t);if(!e&&t===u&&(0,o.T9)())return A();if(!e)throw w.create("no-app",{appName:t});return e}function T(){return Array.from(p.values())}async function C(t){let e=!1,r=t.name;p.has(r)?(e=!0,p.delete(r)):d.has(r)&&0>=t.decRefCount()&&(d.delete(r),e=!0),e&&(await Promise.all(t.container.getProviders().map(t=>t.delete())),t.isDeleted=!0)}function S(t,e,r){let i=c[t]??t;r&&(i+=`-${r}`);let o=i.match(/\s|\//),s=e.match(/\s|\//);if(o||s){let t=[`Unable to register library "${i}" with version "${e}":`];o&&t.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&t.push("and"),s&&t.push(`version name "${e}" contains illegal characters (whitespace or "/")`),l.warn(t.join(" "));return}m(new n.uA(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}let O="firebase-heartbeat-store",R=null;function k(){return R||(R=(0,s.P2)("firebase-heartbeat-database",1,{upgrade:(t,e)=>{if(0===e)try{t.createObjectStore(O)}catch(t){console.warn(t)}}}).catch(t=>{throw w.create("idb-open",{originalErrorMessage:t.message})})),R}async function D(t){try{let e=(await k()).transaction(O),r=await e.objectStore(O).get(L(t));return await e.done,r}catch(t){if(t instanceof o.g)l.warn(t.message);else{let e=w.create("idb-get",{originalErrorMessage:t?.message});l.warn(e.message)}}}async function B(t,e){try{let r=(await k()).transaction(O,"readwrite"),n=r.objectStore(O);await n.put(e,L(t)),await r.done}catch(t){if(t instanceof o.g)l.warn(t.message);else{let e=w.create("idb-set",{originalErrorMessage:t?.message});l.warn(e.message)}}}function L(t){return`${t.name}!${t.options.appId}`}class P{constructor(t){this.container=t,this._heartbeatsCache=null;let e=this.container.getProvider("app").getImmediate();this._storage=new M(e),this._heartbeatsCachePromise=this._storage.read().then(t=>(this._heartbeatsCache=t,t))}async triggerHeartbeat(){try{let t=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),e=N();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===e||this._heartbeatsCache.heartbeats.some(t=>t.date===e))return;if(this._heartbeatsCache.heartbeats.push({date:e,agent:t}),this._heartbeatsCache.heartbeats.length>30){let t=function(t){if(0===t.length)return -1;let e=0,r=t[0].date;for(let n=1;nt.agent===i.agent);if(t){if(t.dates.push(i.date),U(r)>e){t.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),U(r)>e){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),n=(0,o.Uj)(JSON.stringify({version:2,heartbeats:e}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}catch(t){return l.warn(t),""}}}function N(){return new Date().toISOString().substring(0,10)}class M{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,o.zW)()&&(0,o.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let t=await D(this.app);return t?.heartbeats?t:{heartbeats:[]}}}async overwrite(t){if(await this._canUseIndexedDBPromise){let e=await this.read();return B(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??e.lastSentHeartbeatDate,heartbeats:t.heartbeats})}}async add(t){if(await this._canUseIndexedDBPromise){let e=await this.read();return B(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??e.lastSentHeartbeatDate,heartbeats:[...e.heartbeats,...t.heartbeats]})}}}function U(t){return(0,o.Uj)(JSON.stringify({version:2,heartbeats:t})).length}m(new n.uA("platform-logger",t=>new a(t),"PRIVATE")),m(new n.uA("heartbeat",t=>new P(t),"PRIVATE")),S(f,h,""),S(f,h,"esm2020"),S("fire-js","")},5317:(t,e,r)=>{"use strict";r.d(e,{AB:()=>n.AB,BN:()=>n.BN,GG:()=>n.GG,H9:()=>n.H9,HM:()=>n.HM,My:()=>n.My,O5:()=>n.O5,P:()=>n.P,_M:()=>n._M,aU:()=>n.aU,d_:()=>n.d_,kd:()=>n.kd,mZ:()=>n.mZ,rJ:()=>n.rJ,x7:()=>n.x7});var n=r(9745)},5404:(t,e,r)=>{"use strict";r.d(e,{eJ:()=>n.ab,xI:()=>n.p,hg:()=>n.z,x9:()=>n.ac,CI:()=>n.D,r7:()=>n.al});var n=r(4428);r(4093),r(1280),r(6702),r(2881)},6702:(t,e,r)=>{"use strict";var n;r.d(e,{$b:()=>n,Vy:()=>h});let i=[];!function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"}(n||(n={}));let o={debug:n.DEBUG,verbose:n.VERBOSE,info:n.INFO,warn:n.WARN,error:n.ERROR,silent:n.SILENT},s=n.INFO,a={[n.DEBUG]:"log",[n.VERBOSE]:"log",[n.INFO]:"info",[n.WARN]:"warn",[n.ERROR]:"error"},f=(t,e,...r)=>{if(e{"use strict";let n,i;r.d(e,{P2:()=>d});let o=(t,e)=>e.some(e=>t instanceof e),s=new WeakMap,a=new WeakMap,f=new WeakMap,h=new WeakMap,l=new WeakMap,u={get(t,e,r){if(t instanceof IDBTransaction){if("done"===e)return a.get(t);if("objectStoreNames"===e)return t.objectStoreNames||f.get(t);if("store"===e)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return c(t[e])},set:(t,e,r)=>(t[e]=r,!0),has:(t,e)=>t instanceof IDBTransaction&&("done"===e||"store"===e)||e in t};function c(t){if(t instanceof IDBRequest){let e=new Promise((e,r)=>{let n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{e(c(t.result)),n()},o=()=>{r(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(e=>{e instanceof IDBCursor&&s.set(e,t)}).catch(()=>{}),l.set(e,t),e}if(h.has(t))return h.get(t);let e=function(t){if("function"==typeof t)return t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(p(this),e),c(s.get(this))}:function(...e){return c(t.apply(p(this),e))}:function(e,...r){let n=t.call(p(this),e,...r);return f.set(n,e.sort?e.sort():[e]),c(n)};return(t instanceof IDBTransaction&&function(t){if(a.has(t))return;let e=new Promise((e,r)=>{let n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{e(),n()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});a.set(t,e)}(t),o(t,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,u):t}(t);return e!==t&&(h.set(t,e),l.set(e,t)),e}let p=t=>l.get(t);function d(t,e,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(t,e),a=c(s);return n&&s.addEventListener("upgradeneeded",t=>{n(c(s.result),t.oldVersion,t.newVersion,c(s.transaction),t)}),r&&s.addEventListener("blocked",t=>r(t.oldVersion,t.newVersion,t)),a.then(t=>{o&&t.addEventListener("close",()=>o()),i&&t.addEventListener("versionchange",t=>i(t.oldVersion,t.newVersion,t))}).catch(()=>{}),a}let g=["get","getKey","getAll","getAllKeys","count"],y=["put","add","delete","clear"],m=new Map;function b(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&"string"==typeof e))return;if(m.get(e))return m.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,i=y.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||g.includes(r)))return;let o=async function(t,...e){let o=this.transaction(t,i?"readwrite":"readonly"),s=o.store;return n&&(s=s.index(e.shift())),(await Promise.all([s[r](...e),i&&o.done]))[0]};return m.set(e,o),o}u=(t=>({...t,get:(e,r,n)=>b(e,r)||t.get(e,r,n),has:(e,r)=>!!b(e,r)||t.has(e,r)}))(u)},7505:(t,e,r)=>{"use strict";r.d(e,{qk:()=>tv,c7:()=>t_,KR:()=>tw,D:()=>tb});var n,i,o=r(4093),s=r(1280),a=r(2881);let f="firebasestorage.googleapis.com",h="storageBucket";class l extends s.g{constructor(t,e,r=0){super(u(t),`Firebase Storage: ${e} (${u(t)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,l.prototype)}get status(){return this.status_}set status(t){this.status_=t}_codeEquals(t){return u(t)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(t){this.customData.serverResponse=t,this.customData.serverResponse?this.message=`${this._baseMessage} ${this.customData.serverResponse}`:this.message=this._baseMessage}}function u(t){return"storage/"+t}function c(){return new l(n.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function p(){return new l(n.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function d(){return new l(n.CANCELED,"User canceled the upload/download.")}function g(){return new l(n.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function y(t){return new l(n.INVALID_ARGUMENT,t)}function m(){return new l(n.APP_DELETED,"The Firebase app was deleted.")}function b(t,e){return new l(n.INVALID_FORMAT,"String does not match format '"+t+"': "+e)}function v(t){throw new l(n.INTERNAL_ERROR,"Internal error: "+t)}!function(t){t.UNKNOWN="unknown",t.OBJECT_NOT_FOUND="object-not-found",t.BUCKET_NOT_FOUND="bucket-not-found",t.PROJECT_NOT_FOUND="project-not-found",t.QUOTA_EXCEEDED="quota-exceeded",t.UNAUTHENTICATED="unauthenticated",t.UNAUTHORIZED="unauthorized",t.UNAUTHORIZED_APP="unauthorized-app",t.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",t.INVALID_CHECKSUM="invalid-checksum",t.CANCELED="canceled",t.INVALID_EVENT_NAME="invalid-event-name",t.INVALID_URL="invalid-url",t.INVALID_DEFAULT_BUCKET="invalid-default-bucket",t.NO_DEFAULT_BUCKET="no-default-bucket",t.CANNOT_SLICE_BLOB="cannot-slice-blob",t.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",t.NO_DOWNLOAD_URL="no-download-url",t.INVALID_ARGUMENT="invalid-argument",t.INVALID_ARGUMENT_COUNT="invalid-argument-count",t.APP_DELETED="app-deleted",t.INVALID_ROOT_OPERATION="invalid-root-operation",t.INVALID_FORMAT="invalid-format",t.INTERNAL_ERROR="internal-error",t.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(n||(n={}));class w{constructor(t,e){this.bucket=t,this.path_=e}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){let t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(t,e){let r;try{r=w.makeFromUrl(t,e)}catch(e){return new w(t,"")}if(""===r.path)return r;throw new l(n.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}static makeFromUrl(t,e){let r=null,i="([A-Za-z0-9.\\-_]+)",o=RegExp("^gs://"+i+"(/(.*))?$","i");function s(t){t.path_=decodeURIComponent(t.path)}let a=e.replace(/[.]/g,"\\."),h=RegExp(`^https?://${a}/v[A-Za-z0-9_]+/b/${i}/o(/([^?#]*).*)?$`,"i"),u=e===f?"(?:storage.googleapis.com|storage.cloud.google.com)":e,c=[{regex:o,indices:{bucket:1,path:3},postModify:function(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}},{regex:h,indices:{bucket:1,path:3},postModify:s},{regex:RegExp(`^https?://${u}/${i}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:s}];for(let e=0;er)throw y(`Invalid value for '${t}'. Expected ${r} or less.`)}function T(t,e,r){let n=e;return null==r&&(n=`https://${e}`),`${r}://${n}/v0${t}`}function C(t){let e=encodeURIComponent,r="?";for(let n in t)t.hasOwnProperty(n)&&(r=r+(e(n)+"=")+e(t[n])+"&");return r.slice(0,-1)}function S(t,e){let r=t>=500&&t<600,n=-1!==[408,429].indexOf(t),i=-1!==e.indexOf(t);return r||n||i}!function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"}(i||(i={}));class O{constructor(t,e,r,n,i,o,s,a,f,h,l,u=!0,c=!1){this.url_=t,this.method_=e,this.headers_=r,this.body_=n,this.successCodes_=i,this.additionalRetryCodes_=o,this.callback_=s,this.errorCallback_=a,this.timeout_=f,this.progressCallback_=h,this.connectionFactory_=l,this.retry=u,this.isUsingEmulator=c,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((t,e)=>{this.resolve_=t,this.reject_=e,this.start_()})}start_(){let t=(t,e)=>{let r=this.resolve_,n=this.reject_,i=e.connection;if(e.wasSuccessCode)try{let t=this.callback_(i,i.getResponse());void 0!==t?r(t):r()}catch(t){n(t)}else if(null!==i){let t=c();t.serverResponse=i.getErrorText(),n(this.errorCallback_?this.errorCallback_(i,t):t)}else n(e.canceled?this.appDelete_?m():d():p())};this.canceled_?t(!1,new R(!1,null,!0)):this.backoffId_=function(t,e,r){let n=1,i=null,o=null,s=!1,a=0,f=!1;function h(...t){f||(f=!0,e.apply(null,t))}function l(e){i=setTimeout(()=>{i=null,t(c,2===a)},e)}function u(){o&&clearTimeout(o)}function c(t,...e){let r;if(f){u();return}if(t||2===a||s){u(),h.call(null,t,...e);return}n<64&&(n*=2),1===a?(a=2,r=0):r=(n+Math.random())*1e3,l(r)}let p=!1;function d(t){!p&&(p=!0,u(),f||(null!==i?(t||(a=2),clearTimeout(i),l(0)):t||(a=1)))}return l(0),o=setTimeout(()=>{s=!0,d(!0)},r),d}((t,e)=>{if(e){t(!1,new R(!1,null,!0));return}let r=this.connectionFactory_();this.pendingConnection_=r;let n=t=>{let e=t.loaded,r=t.lengthComputable?t.total:-1;null!==this.progressCallback_&&this.progressCallback_(e,r)};null!==this.progressCallback_&&r.addUploadProgressListener(n),r.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&r.removeUploadProgressListener(n),this.pendingConnection_=null;let e=r.getErrorCode()===i.NO_ERROR,o=r.getStatus();if(!e||S(o,this.additionalRetryCodes_)&&this.retry){t(!1,new R(!1,null,r.getErrorCode()===i.ABORT));return}t(!0,new R(-1!==this.successCodes_.indexOf(o),r))})},t,this.timeout_)}getPromise(){return this.promise_}cancel(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class R{constructor(t,e,r){this.wasSuccessCode=t,this.connection=e,this.canceled=!!r}}function k(...t){let e="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0;if(void 0!==e){let r=new e;for(let e=0;e>6,128|63&n):(64512&n)==55296?r>18,128|n>>12&63,128|n>>6&63,128|63&n)):e.push(239,191,189):(64512&n)==56320?e.push(239,191,189):e.push(224|n>>12,128|n>>6&63,128|63&n)}return new Uint8Array(e)}function P(t,e){let r;switch(t){case D.BASE64:{let r=-1!==e.indexOf("-"),n=-1!==e.indexOf("_");if(r||n)throw b(t,"Invalid character '"+(r?"-":"_")+"' found: is it base64url encoded?");break}case D.BASE64URL:{let r=-1!==e.indexOf("+"),n=-1!==e.indexOf("/");if(r||n)throw b(t,"Invalid character '"+(r?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}}try{r=function(t){if("undefined"==typeof atob)throw new l(n.UNSUPPORTED_ENVIRONMENT,"base-64 is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.");return atob(t)}(e)}catch(e){if(e.message.includes("polyfill"))throw e;throw b(t,"Invalid character found")}let i=new Uint8Array(r.length);for(let t=0;t][;base64],");let r=e[1]||null;null!=r&&(this.base64=function(t,e){return t.length>=e.length&&t.substring(t.length-e.length)===e}(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=t.substring(t.indexOf(",")+1)}}class M{constructor(t,e){let r=0,n="";x(t)?(this.data_=t,r=t.size,n=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),r=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),r=t.length),this.size_=r,this.type_=n}size(){return this.size_}type(){return this.type_}slice(t,e){if(!x(this.data_))return new M(new Uint8Array(this.data_.buffer,t,e-t),!0);{var r,n,i;let o=(r=this.data_,n=t,i=e,r.webkitSlice?r.webkitSlice(n,i):(0,r.mozSlice)?r.mozSlice(n,i):(0,r.slice)?r.slice(n,i):null);return null===o?null:new M(o)}}static getBlob(...t){if(A()){let e=t.map(t=>t instanceof M?t.data_:t);return new M(k.apply(null,e))}{let e=t.map(t=>E(t)?function(t,e){switch(t){case D.RAW:return new B(L(e));case D.BASE64:case D.BASE64URL:return new B(P(t,e));case D.DATA_URL:return new B(function(t){let e,r=new N(t);if(r.base64)return P(D.BASE64,r.rest);var n=r.rest;try{e=decodeURIComponent(n)}catch(t){throw b(D.DATA_URL,"Malformed data URL.")}return L(e)}(e),new N(e).contentType)}throw c()}(D.RAW,t).data:t.data_),r=0;e.forEach(t=>{r+=t.byteLength});let n=new Uint8Array(r),i=0;return e.forEach(t=>{for(let e=0;e{Promise.resolve().then(()=>t(...e))}}class ta{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=i.NO_ERROR,this.sendPromise_=new Promise(t=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=i.ABORT,t()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=i.NETWORK_ERROR,t()}),this.xhr_.addEventListener("load",()=>{t()})})}send(t,e,r,n,i){if(this.sent_)throw v("cannot .send() more than once");if((0,s.zJ)(t)&&r&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(e,t,!0),void 0!==i)for(let t in i)i.hasOwnProperty(t)&&this.xhr_.setRequestHeader(t,i[t].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw v("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw v("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return -1}}getResponse(){if(!this.sent_)throw v("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw v("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(t){return this.xhr_.getResponseHeader(t)}addUploadProgressListener(t){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",t)}removeUploadProgressListener(t){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",t)}}class tf extends ta{initXhr(){this.xhr_.responseType="text"}}function th(){return new tf}class tl extends null{initXhr(){this.xhr_.responseType="arraybuffer"}}class tu extends null{initXhr(){this.xhr_.responseType="blob"}}class tc{constructor(t,e){this._service=t,e instanceof w?this._location=e:this._location=w.makeFromUrl(e,t.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(t,e){return new tc(t,e)}get root(){let t=new w(this._location.bucket,"");return this._newRef(this._service,t)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return j(this._location.path)}get storage(){return this._service}get parent(){let t=function(t){if(0===t.length)return null;let e=t.lastIndexOf("/");return -1===e?"":t.slice(0,e)}(this._location.path);if(null===t)return null;let e=new w(this._location.bucket,t);return new tc(this._service,e)}_throwIfRoot(t){if(""===this._location.path)throw new l(n.INVALID_ROOT_OPERATION,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}}function tp(t,e){let r=e?.[h];return null==r?null:w.makeFromBucketSpec(r,t)}class td{constructor(t,e,r,n,i,o=!1){this.app=t,this._authProvider=e,this._appCheckProvider=r,this._url=n,this._firebaseVersion=i,this._isUsingEmulator=o,this._bucket=null,this._host=f,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,null!=n?this._bucket=w.makeFromBucketSpec(n,this._host):this._bucket=tp(this._host,this.app.options)}get host(){return this._host}set host(t){this._host=t,null!=this._url?this._bucket=w.makeFromBucketSpec(this._url,t):this._bucket=tp(t,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(t){I("time",0,Number.POSITIVE_INFINITY,t),this._maxUploadRetryTime=t}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(t){I("time",0,Number.POSITIVE_INFINITY,t),this._maxOperationRetryTime=t}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let t=this._authProvider.getImmediate({optional:!0});if(t){let e=await t.getToken();if(null!==e)return e.accessToken}return null}async _getAppCheckToken(){if((0,o.xZ)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let t=this._appCheckProvider.getImmediate({optional:!0});return t?(await t.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(t=>t.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(t){return new tc(this,t)}_makeRequest(t,e,r,n,i=!0){if(this._deleted)return new _(m());{let o=function(t,e,r,n,i,o,s=!0,a=!1){let f=C(t.urlParams),h=t.url+f,l=Object.assign({},t.headers);return e&&(l["X-Firebase-GMPID"]=e),null!==r&&r.length>0&&(l.Authorization="Firebase "+r),l["X-Firebase-Storage-Version"]="webjs/"+(o??"AppManager"),null!==n&&(l["X-Firebase-AppCheck"]=n),new O(h,t.method,l,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,i,s,a)}(t,this._appId,r,n,e,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(o),o.getPromise().then(()=>this._requests.delete(o),()=>this._requests.delete(o)),o}}async makeRequestWithTokens(t,e){let[r,n]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(t,e,r,n).getPromise()}}let tg="@firebase/storage",ty="0.14.0",tm="storage";function tb(t,e,r){return function(t,e,r){t._throwIfRoot("uploadBytes");let n=tt(t.storage,t._location,z(),new M(e,!0),r);return t.storage.makeRequestWithTokens(n,th).then(e=>({metadata:e,ref:t}))}(t=(0,s.Ku)(t),e,r)}function tv(t){return function(t){t._throwIfRoot("getDownloadURL");let e=function(t,e,r){let n=T(e.fullServerUrl(),t.host,t._protocol),i=new q(n,"GET",function(e,n){let i=V(t,n,r);return G(null!==i),function(t,e,r,n){let i=U(e);if(null===i||!E(i.downloadTokens))return null;let o=i.downloadTokens;if(0===o.length)return null;let s=encodeURIComponent;return o.split(",").map(e=>{let i=t.bucket,o=t.fullPath;return T("/b/"+s(i)+"/o/"+s(o),r,n)+C({alt:"media",token:e})})[0]}(i,n,t.host,t._protocol)},t.maxOperationRetryTime);return i.errorHandler=Z(e),i}(t.storage,t._location,z());return t.storage.makeRequestWithTokens(e,th).then(t=>{if(null===t)throw new l(n.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return t})}(t=(0,s.Ku)(t))}function tw(t,e){var r=t=(0,s.Ku)(t);if(!(e&&/^[A-Za-z]+:\/\//.test(e)))return function t(e,r){if(e instanceof td){if(null==e._bucket)throw new l(n.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+h+"' property when initializing the app?");let i=new tc(e,e._bucket);return null!=r?t(i,r):i}if(void 0!==r){var i=e,o=r;let t=function(t,e){let r=e.split("/").filter(t=>t.length>0).join("/");return 0===t.length?r:t+"/"+r}(i._location.path,o),n=new w(i._location.bucket,t);return new tc(i.storage,n)}return e}(r,e);if(r instanceof td)return new tc(r,e);throw y("To use ref(service, url), the first argument must be a Storage instance.")}function t_(t=(0,o.Sx)(),e){t=(0,s.Ku)(t);let r=(0,o.j6)(t,tm).getImmediate({identifier:e}),n=(0,s.yU)("storage");return n&&function(t,e,r,n={}){!function(t,e,r,n={}){t.host=`${e}:${r}`;let i=(0,s.zJ)(e);i&&((0,s.gE)(`https://${t.host}/b`),(0,s.P1)("Storage",!0)),t._isUsingEmulator=!0,t._protocol=i?"https":"http";let{mockUserToken:o}=n;o&&(t._overrideAuthToken="string"==typeof o?o:(0,s.Fy)(o,t.app.options.projectId))}(t,e,r,n)}(r,...n),r}(0,o.om)(new a.uA(tm,function(t,{instanceIdentifier:e}){let r=t.getProvider("app").getImmediate();return new td(r,t.getProvider("auth-internal"),t.getProvider("app-check-internal"),e,o.MF)},"PUBLIC").setMultipleInstances(!0)),(0,o.KO)(tg,ty,""),(0,o.KO)(tg,ty,"esm2020")},9641:t=>{!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=f(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=f(t),s=o[0],a=o[1],h=new i((s+a)*3/4-a),l=0,u=a>0?s-4:s;for(r=0;r>16&255,h[l++]=e>>8&255,h[l++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,h[l++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,h[l++]=e>>8&255,h[l++]=255&e),h},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(t,e,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),f=s(o),h=f.write(n,i);return h!==o&&(f=f.slice(0,h)),f}if(ArrayBuffer.isView(t))return u(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(O(t,ArrayBuffer)||t&&O(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(t,SharedArrayBuffer)||t&&O(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||O(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(t).length;default:if(i)return n?-1:I(t).length;e=(""+e).toLowerCase(),i=!0}}function d(t,e,r){var i,o,s,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return m(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(t,e,r,n,i){var o,s=1,a=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,f/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;oa&&(r=a-f),o=r;o>=0;o--){for(var u=!0,c=0;cr&&(t+=" ... "),""},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(O(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,f=Math.min(o,s),h=this.slice(n,i),l=t.slice(e,r),u=0;u239?4:h>223?3:h>191?2:1;if(i+u<=r)switch(u){case 1:h<128&&(l=h);break;case 2:(192&(o=t[i+1]))==128&&(f=(31&h)<<6|63&o)>127&&(l=f);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(f=(15&h)<<12|(63&o)<<6|63&s)>2047&&(f<55296||f>57343)&&(l=f);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(f=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&f<1114112&&(l=f)}null===l?(l=65533,u=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=u}var c=n,p=c.length;if(p<=4096)return String.fromCharCode.apply(String,c);for(var d="",g=0;gr)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function _(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,o){return e*=1,r>>>=0,o||_(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function x(t,e,r,n,o){return e*=1,r>>>=0,o||_(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,f,h,l,u,c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,u);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||v(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||v(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return x(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return x(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function T(t){for(var e=[],r=0;r=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function O(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var R=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,f=(1<>1,l=-7,u=r?i-1:0,c=r?-1:1,p=t[e+u];for(u+=c,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+u],u+=c,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+u],u+=c,l-=8);if(0===o)o=1-h;else{if(o===f)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=h}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,f,h=8*o-i-1,l=(1<>1,c=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,g=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+u>=1?e+=c/f:e+=c*Math.pow(2,1-u),e*f>=2&&(s++,f/=2),s+u>=l?(a=0,s=l):s+u>=1?(a=(e*f-1)*Math.pow(2,i),s+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[r+p]=255&s,p+=d,s/=256,h-=8);t[r+p-d]|=128*g}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},s=!0;try{e[t](o,o.exports,n),s=!1}finally{s&&delete r[t]}return o.exports}n.ab="//",t.exports=n(72)}()},9946:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=r(2115);let i=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var t=arguments.length,e=Array(t),r=0;r!!t&&""!==t.trim()&&r.indexOf(t)===e).join(" ").trim()};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((t,e)=>{let{color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:f,className:h="",children:l,iconNode:u,...c}=t;return(0,n.createElement)("svg",{ref:e,...s,width:i,height:i,stroke:r,strokeWidth:f?24*Number(a)/Number(i):a,className:o("lucide",h),...c},[...u.map(t=>{let[e,r]=t;return(0,n.createElement)(e,r)}),...Array.isArray(l)?l:[l]])}),f=(t,e)=>{let r=(0,n.forwardRef)((r,s)=>{let{className:f,...h}=r;return(0,n.createElement)(a,{ref:s,iconNode:e,className:o("lucide-".concat(i(t)),f),...h})});return r.displayName="".concat(t),r}}}]);